LP File Format

1,468 views
Skip to first unread message

Scott J. Mason

unread,
Jan 10, 2010, 4:50:25 PM1/10/10
to Gurobi Optimization
I have a large .lp file (I could also generate a .mps file) that I'd
like Gurobi to analyze. Can it do this? I am evaluating the command
line, executable version of Gurobi. Thanks!

Greg Glockner

unread,
Jan 10, 2010, 5:01:36 PM1/10/10
to gur...@googlegroups.com
Yes, Gurobi can solve both LP and MPS files. Information supported file formats can be found in:

http://www.gurobi.com/html/doc/refman/node383.html

If your model contains double-precision numerical coefficients (ex: many digits after the decimal point), MPS format is recommended. Otherwise, either LP or MPS formats can be used.

As for solving a model from the command-line, there are two options. Full control is available through the Interactive Shell, while a simple interface is available through the gurobi_cl command. These are both described in:

http://www.gurobi.com/html/doc/quickstart/node3.html

Scott J. Mason

unread,
Jan 13, 2010, 11:37:50 AM1/13/10
to Gurobi Optimization
However, I have generated .lp files using GLPK and CPLEX and Gurobi
can't read either of them. I have generated .mps files (both free and
fixed format) using GLPK and Gurobi can't read either of them.
Thoughts?

Scott J. Mason

unread,
Jan 13, 2010, 11:40:27 AM1/13/10
to Gurobi Optimization
Sorry, I got it to work, disregard!

Greg Glockner

unread,
Aug 15, 2012, 2:26:59 PM8/15/12
to gur...@googlegroups.com, ma...@uark.edu
> Could anyone comment on why the .LP file type works in the Interactive Shell but not via the object model (I am using .NET). I can't seem to get it to work with a GLPK .LP file.

Can you provide details? What do you mean when you say it's working in the shell but not with the .NET API?

Greg Glockner

unread,
Aug 15, 2012, 3:17:08 PM8/15/12
to gur...@googlegroups.com
Use the GRBModel constructor; see "Load and solve a model from a file" in the Example Tour:

http://www.gurobi.com/documentation/5.0/example-tour/node2

Reply all
Reply to author
Forward
0 new messages