remove_constraint takes as input the index of the constraint to be removed! It is unlikely, that add_constraint(variable==0) creates an indexed constraint, but perhaps I am mistaken.
Am Freitag, 13. Mai 2016 15:25:17 UTC+2 schrieb Dima Pasechnik: > > On Friday, May 13, 2016 at 9:53:13 AM UTC+1, Martin R wrote: >> >> >> Yes, and then? I don't think I can remove it again, can I? >> >>> >>> sage: p.remove_constraint? >>> Docstring: >>> Removes a constraint from self. >>> >>> I do not thing that this works, because a constraint may (and often will >> be) subsumed by other constraints already there. >> > > It either works, or else please do a bug report... > If you added a redundant constraint, its removal should have no effect, > isn't it? > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.