[Coin-discuss] how to convert .MPS file to .LP in cplex

Paul A. Rubin rubin at msu.edu
Sat Dec 13 13:20:46 EST 2008


coin-discuss-request at list.coin-or.org wrote:
> What is the easiest way to convert .MPS file to .LP file in CPLEX?
>   
In the CPLEX interactive optimizer, do 'read myfile.mps' and then 'write 
myfile.lp'.

In the Java API (C++ is similar):

IloCplex cplex = new IloCplex();
cplex.importModel("myfile.mps");
cplex.exportModel("myfile.lp");

in a try/catch block.

/Paul




More information about the Coin-discuss mailing list