Changes between Version 11 and Version 17 of Ticket #14540


Ignore:
Timestamp:
04/21/16 08:51:53 (4 years ago)
Author:
jdemeyer
Comment:

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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14540

    • Property Status changed from new to needs_work
    • Property Authors changed from to Jeroen Demeyer
    • Property Cc mkoeppe added
    • Property Summary changed from MILP constraints do no deal with Python types properly to Fix complicated MILP constraints
    • Property Branch changed from to u/jdemeyer/milp_constraints_do_no_deal_with_python_ints_properly
    • Property Commit changed from to ba7613b12a717f7ca72137d9c91d7edca5f6cbbb
  • Ticket #14540 – Description

    v11 v17  
    55x_0 <= 2
    66}}}
     7
     8{{{
     9sage: p = MixedIntegerLinearProgram()
     10sage: b = p.new_variable()
     11sage: b[0] <= 3 <= 4 <= b[1]
     124 <= x_1
     13}}}
     14
     15{{{
     16sage: p = MixedIntegerLinearProgram()
     17sage: b = p.new_variable()
     18sage: float(0) <= b[0] <= int(1) <= b[1] <= float(2)
     191 <= x_1 <= 2
     20}}}
     21
     22{{{
     23sage: p = MixedIntegerLinearProgram()
     24sage: b = p.new_variable()
     25sage: b[0] <= 555*b[1] >= 2
     262 <= x_0 <= 555*x_1
     27}}}