[R] reading in and mps file

Dhiren DSouza dhiren22 at hotmail.com
Tue Aug 2 20:54:15 CEST 2005


Hi all:

How does one read in an mps file and store it in a matrix as is.  I have 
pasted the format of the file.  I have implemented an mps writer but would 
like to have the capability to read in an mps file as well and store it in a 
matrix with out using the 'linprog' routines in R.  Is there are way to use 
read.table or scan on the file below.  Your help will be greatly 
appreciated.

-Dhiren

NAME test.2005-08-02.Tue
ROWS
N obj
L CPA
E ass1
E ass2
E ass3
COLUMNS
982323.1 obj 7.12279694339023 CPA -0.300433084368706 ass1 1
982323.2 obj -8.41320485916529 CPA 0.603671897647387 ass1 1
982323.41 obj 0 CPA 0 ass1 1
982351.1 obj -21.4471176117659 CPA 1.80909823649563 ass2 1
982351.22 obj -32.9606785054072 CPA 3.23030611400710 ass2 1
982351.41 obj 0 CPA 0 ass2 1
982554.1 obj 1.66536080466821 CPA -0.107303781434894 ass3 1
982554.23 obj -1.07268986390231 CPA 0.100720627703143 ass3 1
982554.41 obj 0 CPA 0 ass3 1
RHS
rhs ass1 1
rhs ass2 1
rhs ass3 1
ENDATA




More information about the R-help mailing list