#13205: make LP return bounds on variables
--------------------------------------+-------------------------------------
       Reporter:  dimpase             |         Owner:  ncohen      
           Type:  enhancement         |        Status:  needs_review
       Priority:  major               |     Milestone:  sage-5.2    
      Component:  linear programming  |    Resolution:              
       Keywords:                      |   Work issues:              
Report Upstream:  N/A                 |     Reviewers:              
        Authors:                      |     Merged in:              
   Dependencies:  #13148              |      Stopgaps:              
--------------------------------------+-------------------------------------

Comment (by ncohen):

 Yep, but then we would have two ways to do the same thing, with methods
 that take different arguments. What about changing get_min and get_max so
 that they accept integers instead ?

 All that would need to be added is a type check : if the given value is a
 MIPVariable type then the old code (one line) is used, and otherwise the
 backend function is called.

 Actually, the only line that this function contains is
 {{{
 return self._backend.variable_lower_bound(self._variables[v])
 }}}
 That is : first take the integer corresponding to the variable, then
 return the value. More or less what you want to do too `:-P`

 Nathann

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13205#comment:5>
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.

Reply via email to