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

Chendong Li liconey at gmail.com
Sun Dec 21 01:36:30 EST 2008


Hello.

How could I represent SOS2 in .lp file (to be solved in cplex 11.2)?
 For example, to represent {d11, d12, d13} is SOS2, when I use
SOS2: d11, d12, d13
cplex provides the warning: name "SOS2: d11, d12, d13" does not exist.
Thank you!

Have a great holiday!

Best,
Chendong


On Sun, Dec 14, 2008 at 12:13 AM, Matthew Saltzman <mjs at clemson.edu> wrote:

> On Fri, 2008-12-12 at 14:05 -0600, Chendong Li wrote:
> > Hi,
> >
> > What is the easiest way to convert .MPS file to .LP file in CPLEX?
>
> Read the file into CPLEX, then write it out in .lp format.
>
> See the read and write commands in the CPLEX docs.
>
> Note that certain .mps files need to be run through the convert utility
> provided with CPLEX before reading.  Particularly, if row, column, or
> section names contain blanks, this step is necessary.
>
> >
> > Thanks,
> >
> >
> > Chendong
> > _______________________________________________
> > Coin-discuss mailing list
> > Coin-discuss at list.coin-or.org
> > http://list.coin-or.org/mailman/listinfo/coin-discuss
> --
>                Matthew Saltzman
>
> Clemson University Math Sciences
> mjs AT clemson DOT edu
> http://www.math.clemson.edu/~mjs <http://www.math.clemson.edu/%7Emjs>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20081221/0e474c2d/attachment.html>


More information about the Coin-discuss mailing list