Changes between Version 9 and Version 11 of Ticket #14540
 Timestamp:
 04/19/16 08:50:02 (6 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

Ticket #14540

Property
Summary
changed from
MILP constraints do no deal with Python ints properly
toMILP constraints do no deal with Python types properly

Property
Summary
changed from

Ticket #14540 – Description
v9 v11 2 2 sage: p = MixedIntegerLinearProgram() 3 3 sage: 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) 4 sage: int(1) <= b[0] <= int(2) 5 x_0 <= 2 14 6 }}}