#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 ncohen):
> Is there a reason for this?
Not really.
Technically, you will find this 'x' inside of the __repr__ method in
LinearFunction, which does not care at all whether the variable has a name
or not (it does not even know the MIPVariable object itself, just its id
in the LP, and the MIPVariable itself does not know its name (only the LP
does). All of is has to be rewritten, it is ugly and inefficient code, but
would like to find a way to deal with this that does not make every LP
waste time on totally useless name-related operations.
I still think we should just remove anything in these classes which is
name-related for the same eternal reasons. The code is ugly, hard to
understand, it slows the class down, and it is totally useless for solving
LP anyway `:-/`
Nathann
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10341#comment:35>
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.