Skip to content

Commit 4023242

Browse files
mlubinclaude
andcommitted
docs(mps_parser): drop Gurobi-specific LP dialect references
Replace the four mentions of Gurobi and their docs URL with a neutral description: the parser accepts the conventional LP dialect implemented by most commercial optimization solvers (not the lpsolve variant, which has a different syntax). Files touched: - cpp/libmps_parser/include/mps_parser/lp_parser.hpp (public-header doxygen) - python/cuopt/cuopt/linear_programming/cuopt_mps_parser/parser.py (ParseLp docstring) - docs/cuopt/source/cuopt-c/lp-qp-milp/lp-qp-example.rst - docs/cuopt/source/cuopt-cli/cli-examples.rst Comment-only change; no behavior impact. PARSER_TEST: 95/95 pass. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Signed-off-by: Miles Lubin <mlubin@nvidia.com>
1 parent e48dcfb commit 4023242

4 files changed

Lines changed: 16 additions & 14 deletions

File tree

cpp/libmps_parser/include/mps_parser/lp_parser.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ namespace cuopt::mps_parser {
1717
* @brief Reads a linear, mixed-integer, or quadratic optimization problem from
1818
* a file in LP format.
1919
*
20-
* The LP format is a human-readable alternative to MPS format. Several
21-
* optimization solvers use slightly different dialects; this parser
22-
* implements the dialect documented at:
23-
* https://docs.gurobi.com/projects/optimizer/en/current/reference/fileformats/modelformats.html#lp-format
20+
* The LP format is a human-readable alternative to MPS format. This parser
21+
* supports the conventional LP dialect implemented by most commercial
22+
* optimization solvers (not the lpsolve variant, which has a different
23+
* syntax).
2424
*
2525
* Scope: LP, MIP, and QP problems are supported. SOS constraints, PWL
2626
* objectives, semi-continuous variables, general constraints, and user cuts

docs/cuopt/source/cuopt-c/lp-qp-milp/lp-qp-example.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,10 @@ Example With LP File
150150
``cuOptReadProblem`` also accepts LP format files. The same function is
151151
used — it dispatches on the file extension (``.lp`` ⇒ LP parser,
152152
otherwise MPS). LP format scope includes LP, MIP, and QP; SOS, PWL, and
153-
semi-continuous sections are rejected with a clear error. The specific LP
154-
dialect parsed is documented at
155-
https://docs.gurobi.com/projects/optimizer/en/current/reference/fileformats/modelformats.html#lp-format.
153+
semi-continuous sections are rejected with a clear error. The parser
154+
accepts the conventional LP dialect implemented by most commercial
155+
optimization solvers (not the lpsolve variant, which has a different
156+
syntax).
156157
157158
The example code is available at ``examples/cuopt-c/lp/lp_file_example.c`` (:download:`download <examples/lp_file_example.c>`):
158159

docs/cuopt/source/cuopt-cli/cli-examples.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ format is dispatched automatically from the file extension:
1010
- ``*.lp`` → parsed as LP format (LP, MIP, and QP supported)
1111
- ``*.mps``, ``*.mps.gz``, ``*.mps.bz2``, or no extension → parsed as MPS
1212

13-
The specific LP dialect parsed is documented at
14-
https://docs.gurobi.com/projects/optimizer/en/current/reference/fileformats/modelformats.html#lp-format.
15-
SOS constraints, piecewise-linear objectives, semi-continuous variables,
16-
user cuts and general constraint sections are rejected with a clear error.
13+
The LP parser accepts the conventional LP dialect implemented by most
14+
commercial optimization solvers (not the lpsolve variant, which has a
15+
different syntax). SOS constraints, piecewise-linear objectives,
16+
semi-continuous variables, user cuts and general constraint sections are
17+
rejected with a clear error.
1718

1819
Basic Usage
1920
###########

python/cuopt/cuopt/linear_programming/cuopt_mps_parser/parser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def ParseLp(lp_file_path):
5858
Reads an optimization problem from a file in LP format.
5959
6060
The LP format is a human-readable alternative to MPS and supports LP,
61-
MIP, and QP. Several solvers use slightly different LP dialects; the
62-
one parsed here is documented at
63-
https://docs.gurobi.com/projects/optimizer/en/current/reference/fileformats/modelformats.html#lp-format
61+
MIP, and QP. This function parses the conventional LP dialect
62+
implemented by most commercial optimization solvers (not the lpsolve
63+
variant, which has a different syntax).
6464
6565
Unsupported LP sections (SOS, semi-continuous, PWL objective, user cuts,
6666
general constraints) raise a ValueError.

0 commit comments

Comments
 (0)