MATLAB: How to read a .lp or .mps file into Matlab

.lpfilelinear programmatrixmpsread

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!

Best Answer

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.