Changes between Version 9 and Version 11 of Ticket #14540


Ignore:
Timestamp:
04/19/16 08:50:02 (4 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14540

    • Property Summary changed from MILP constraints do no deal with Python ints properly to MILP constraints do no deal with Python types properly
  • Ticket #14540 – Description

    v9 v11  
    22sage: p = MixedIntegerLinearProgram()
    33sage: b = p.new_variable()
    4 sage: p.add_constraint(int(1) <= b[0] + b[1] + b[2] <= int(2))
    5 sage: p.show()
    6 Maximization:
    7  
    8 Constraints:
    9   x_0 + x_1 + x_2 <= 2.0
    10 Variables:
    11   x_0 is a continuous variable (min=0.0, max=+oo)
    12   x_1 is a continuous variable (min=0.0, max=+oo)
    13   x_2 is a continuous variable (min=0.0, max=+oo)
     4sage: int(1) <= b[0] <= int(2)
     5x_0 <= 2
    146}}}