LP file format is designed to be human-readable, so Gurobi writes coefficients in LP files with fewer decimal digits. Also, the LP file format does not preserve the order of variables, so when you export a model in LP format and read it again, the solution path may be different. Gurobi writes MPS files with full precision and maintains variable order. Thus, LP format is best for debugging a model, and MPS format is best for future testing of a model.
Articles in this section
- Managing Infeasibility
- Where can I learn more about building optimization models?
- How do I model piecewise linear functions?
- How do I model logical expressions?
- Can I add locally valid constraints in Gurobi MIP?
- How do I manage multiple models in a program?
- Why does an MPS file produce a completely different objective with different solvers?
- What are the differences between LP and MPS file format?
- Why is Gurobi slow to build a model matrix?
- Why do I get random errors when solving the same model on the same computer?