#12091: bug in add_constraint to MixedIntegerLinearProgram
----------------------------------+-----------------------------------------
   Reporter:  dimpase             |          Owner:  ncohen  
       Type:  defect              |         Status:  new     
   Priority:  critical            |      Milestone:  sage-5.0
  Component:  linear programming  |       Keywords:          
Work_issues:                      |       Upstream:  N/A     
   Reviewer:                      |         Author:          
     Merged:                      |   Dependencies:          
----------------------------------+-----------------------------------------

Comment(by dimpase):

 Replying to [comment:7 ppurka]:
 > Replying to [comment:6 dimpase]:
 > > How come? The LP inequalities have LP variables. So one of the tokens
 will be such a variable...
 >
 > My understanding is this:
 >
 > When you start with `5 <= b[0]` your program will see the ''number'' 5
 not an object from the class `LinearConstraint` or `LinearFunction`. So,
 `LinearConstraint.__le__` won't be called. This is ok when you have the
 opposite `b[0] >= 5`.

 OK, this just means that the preparser should keep looking further if he
 sees a constant...
 IMHO it's some kind of basic compiler/interpreter piece of technology.

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