#14540: Fix complicated MILP constraints
-------------------------------------+-------------------------------------
       Reporter:  ncohen             |        Owner:  ncohen
           Type:  defect             |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-7.2
      Component:  linear             |   Resolution:
  programming                        |    Merged in:
       Keywords:                     |    Reviewers:
        Authors:  Jeroen Demeyer     |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  ba7613b12a717f7ca72137d9c91d7edca5f6cbbb
  u/jdemeyer/milp_constraints_do_no_deal_with_python_ints_properly|     
Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Old description:

> {{{
> sage: p = MixedIntegerLinearProgram()
> sage: b = p.new_variable()
> sage: int(1) <= b[0] <= int(2)
> x_0 <= 2
> }}}

New description:

 {{{
 sage: p = MixedIntegerLinearProgram()
 sage: b = p.new_variable()
 sage: int(1) <= b[0] <= int(2)
 x_0 <= 2
 }}}

 {{{
 sage: p = MixedIntegerLinearProgram()
 sage: b = p.new_variable()
 sage: b[0] <= 3 <= 4 <= b[1]
 4 <= x_1
 }}}

 {{{
 sage: p = MixedIntegerLinearProgram()
 sage: b = p.new_variable()
 sage: float(0) <= b[0] <= int(1) <= b[1] <= float(2)
 1 <= x_1 <= 2
 }}}

 {{{
 sage: p = MixedIntegerLinearProgram()
 sage: b = p.new_variable()
 sage: b[0] <= 555*b[1] >= 2
 2 <= x_0 <= 555*x_1
 }}}

--

Comment (by jdemeyer):

 Allright, let's fix everything on this ticket...

--
Ticket URL: <http://trac.sagemath.org/ticket/14540#comment:17>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to