-
-
Notifications
You must be signed in to change notification settings - Fork 512
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
numerical.MIP: named constraints and variables, methods, structure, etc #7270
Comments
Attachment: trac_7270.patch.gz |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:4
Looks good, positive review. |
Author: Nathann Cohen |
Reviewer: Martin Albrecht |
comment:5
I had to add a missing #optional on line 550. |
Merged: sage-4.3.alpha1 |
sagetrac-mvngu
mannequin
changed the title
numerical.MIP : named constraints and variables, methods, structure, etc ...
numerical.MIP: named constraints and variables, methods, structure, etc
Dec 26, 2009
This comment has been minimized.
This comment has been minimized.
This was referenced Dec 2, 2009
This was referenced Dec 20, 2009
Closed
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello everybody !!!
This is the last "fundamental" modification of class numerical.MIP. From now on, the methods' names should not change anymore, and the patches based upon this class should not have to be updated each time an update is sent for numerical.mip.
This patch changes mainly comports changes of structure in this class. Here is the list of what is includes :
The line
has been replaced by
as asked in clean up sage/numerical/mip.pyx #7012
Private variables have been renamed with a '_' in front of their names. The user is not interested in them
x
to_x
values
to_values
The
__eq__
method has been added ( asked in __eq__ methods for the classes in numerical.MIP #6913 )Names in the Linear Program
set_problem_same
set_objective_name
new_variable
now can take aname
as part of its inputadd_constraint
A function
_update_variables_name
. The name of variables are only computed beforethe LP is written to a file. They are obviously useless in the solving process.
A function
constraints
to list the constraints of the LP.Function
write_mps
andwrite_lp
to export the problem to MPS and LP file format ( see the docstrings for more information )Class
MIPSolverException
includes doctests of exceptions for GLPK ( CBC will follow )Some comments have been added to the code to ease reviews :-)
Warnings :
Thank you for your help !!!
Nathann
Component: numerical
Author: Nathann Cohen
Reviewer: Martin Albrecht
Merged: sage-4.3.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/7270
The text was updated successfully, but these errors were encountered: