#10341: make MIP backend interface more Python-ic
----------------------------------------------+-----------------------------
Reporter: malb | Owner: ncohen
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.6.1
Component: linear programming | Keywords: LP, MIP
Author: Martin Albrecht, Nathann Cohen | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
----------------------------------------------+-----------------------------
Comment(by malb):
The patch looks good, I'm running long doctests on sage.math now. Can I
assume you ran doctests for CPLEX and Coin (i.e. with the optional
packages installed)? I think the only remaining issue is:
{{{
#!python
sage: p = MixedIntegerLinearProgram()
sage: p.new_variable(name="foo")
MIPVariable of dimension 1.
sage: x = _
sage: p.add_constraint(0 <= x[1] <= 2)
sage: p.show()
Maximization:
Constraints:
x_0 <= 2.0
Variables:
x_0 is a real variable (min=0.0, max=+oo)
}}}
For some reason MIPVariable ignores the optional name parameter and
hardcodes "x". Is there a reason for this?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10341#comment:34>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.