improve WriteMpsToFile

This commit is contained in:
Laurent Perron
2024-08-02 10:55:25 -07:00
parent 99d869a4a1
commit 61696270ee
3 changed files with 7 additions and 35 deletions

View File

@@ -101,26 +101,7 @@ absl::StatusOr<std::string> ExportModelAsMpsFormat(
* Write the current model (variables, constraints, objective) to a file in MPS
* file format, using the "free" MPS format.
*
* Returns false if some error has occurred during execution. Models with
* maximization objectives trigger an error, because MPS can encode only
* minimization problems.
*
* The validity of names is automatically checked. If a variable name or a
* constraint name is invalid or non-existent, a new valid name is
* automatically generated.
*
* Name validity and obfuscation works exactly as in ExportModelAsLpFormat().
*
* For more information about the MPS format:
* http://en.wikipedia.org/wiki/MPS_(format)
* A close-to-original description coming from OSL:
* http://tinyurl.com/mps-format-by-osl
* A recent description from CPLEX:
* http://tinyurl.com/mps-format-by-cplex
* CPLEX extensions:
* http://tinyurl.com/mps-extensions-by-cplex
* Gurobi's description:
* http://www.gurobi.com/documentation/5.1/reference-manual/node869
* See ExportModelAsMpsFormat().
*/
absl::Status WriteModelToMpsFile(
absl::string_view filename, const MPModelProto& model,