I would like to solve a large number of very similar linear programs. More specifically I would like to be able to
1) Create a MixedIntegerLinearProgram, and add some constraints. 2) Keep this MILP somewhere. 3) (Repeated many times) Take a copy of the saved MILP, add a few more constraints specific to this problem instance, and solve it. The difficulty I have is that I am unclear how to add new constraints that include previous variables. Suppose I do lp = MixedIntegerLinearProgram(maximization=True) x = lp.new_variable() Then I do: nlp = copy(lp) x = nlp.new_variable() The variable 'x' now seems to contain different variables. So I cannot add any constraints that use the existing variables. Or is there some way to do this? Thanks, Emil -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org