[R] reading in and mps file

From: Dhiren DSouza <dhiren22_at_hotmail.com>
Date: Wed 03 Aug 2005 - 04:54:15 EST


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

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Aug 03 04:59:35 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:01:56 EST