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

Comment (by ncohen):

 > as far as I am concerned this is an LP with 3 variables, not 2.
 > So my code is right :–)

 Yeah, but itbreaks doctests.

 > (well, you don't have means to control that RgR0, so what?)

 None at all. When you add a as a constraint a linar function + two bounds
 (min and max) Gurobi automatically creates a newbounded variable and makes
 the constraint an equality.
 That's stupid, boring, whatever you want, but this is still how it
 behaves.

 > When you construct the usual dual of such an LP, you'll end up with
 > a different dual.

 Yeah. That's why I told you by email that you would be surpised by the
 behviour of some solvers on his respect.

 > hmm, I don't see what you mean here.

 If you remove either the min or the max bound from your code Gurobi will
 not do that and break the doctest, that's all...

 Nathann

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