-
-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MIPVariable: Better names for backend variables #31791
Comments
comment:1
Ideally, every variable name should pass the test |
Commit: |
comment:3
Here's a rough version New commits:
|
comment:4
Bug example:
In
|
comment:5
Regarding
In Caveats:
Examples:
|
(from #31742)
The current variable names for the backend, constructed in
MIPVariable.__getitem__
:Such variable names are not compatible with LP (http://lpsolve.sourceforge.net/5.0/CPLEX-format.htm) or MPS file format (https://www.gurobi.com/documentation/9.1/refman/mps_format.html).
They are also not compatible with the rules for Python identifiers - which becomes relevant when we want to use
SR
variables with the same name, as is done byInteractiveLPBackend
.So changing this to something that has a chance to work with these file formats and is a valid Python identifier, such as
x_1_2
, would be an improvement.CC: @yuan-zhou
Component: linear programming
Branch/Commit: u/mkoeppe/mipvariable__better_names_for_backend_variable_names @
637f609
Issue created by migration from https://trac.sagemath.org/ticket/31791
The text was updated successfully, but these errors were encountered: