How can I read a .lp or .mps file into Matlab?

I have made my linear program in AIMMS, but now I want to perform some matrix computations on the constraints and objectives. Thus, from the LP file I would like to extract the matrix A and the vectors b and c. How can I do this? I can also construct the .mps file in AIMMS, so it would also be fine to read that into Matlab. As long as I end up with the matrix A and the vectors b and c. Thanks a lot!

 Accepted Answer

Marjan
Marjan on 31 Dec 2012
I created my own file to do this by now, it reads the data of the problem min y=cx s.t. Ax=b from the .lp file and gives A, b and c as output.

More Answers (0)

Asked:

on 8 Nov 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!