I was trying to read a MPS
file by using the PuLP
package in the Python, but I can't find any related documents on it. Does anybody know, is there any way to read an LP/MPS file on the PuLP
?
-
2$\begingroup$ Check out the Q&A here as well. $\endgroup$– EhsanK ♦Commented Jun 26, 2019 at 19:30
1 Answer
According to PuLP's documentation, it seems that load_file
function in PuLP's Amply
class can only handle AMPL files with a subset of AMPL syntax for data.
So if you want to use those LP/MPS files in PuLP
, you may have to first convert them into AMPL files. You can either write a small script by yourself or use some existing scripts.
Here are some discussions (post 1, post 2) in AMPL users group on how to do that or whether it is a good idea.