Hi,
Does MixedIntegerLinearProgram allow for variables to be removed just as constraints can? I don't see a method for it, but perhaps I'm missing something.
I tried to emulate this by using set_min/max to set both bounds to 0, but it failed (silently! should I file a bug?):
sage: version() 'Sage Version 6.0, Release Date: 2013-12-17' sage: p = MixedIntegerLinearProgram(constraint_generation=True) sage: x = p.new_variable() sage: p.add_constraint(x[0], max=3) sage: p.show() Maximization: Constraints: x_0 <= 3.0 Variables: x_0 is a continuous variable (min=0.0, max=+oo) sage: p.set_max(x[0], 0.0) sage: p.show() Maximization: Constraints: x_0 <= 3.0 Variables: x_0 is a continuous variable (min=0.0, max=+oo) sage: p.set_max(x[0], 1.0) sage: p.show() Maximization: Constraints: x_0 <= 3.0 Variables: x_0 is a continuous variable (min=0.0, max=1.0) Thanks, Erik -- You received this message because you are subscribed to the Google Groups "sage-support" 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 http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
