Re: [sage-devel] copying MixedIntegerLinearProgram problem

2016-05-18 Thread 'Martin R' via sage-devel
Dear Dima! Thank you for your interest! (I was away for the weekend...) 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. >> > > Somewhat naively, I'd

Re: [sage-devel] copying MixedIntegerLinearProgram problem

2016-05-13 Thread Dima Pasechnik
On Friday, May 13, 2016 at 3:16:28 PM UTC+1, Martin R wrote: > > 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. > all the constraints are indexed,

Re: [sage-devel] copying MixedIntegerLinearProgram problem

2016-05-13 Thread 'Martin R' via sage-devel
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

Re: [sage-devel] copying MixedIntegerLinearProgram problem

2016-05-13 Thread 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 >

Re: [sage-devel] copying MixedIntegerLinearProgram problem

2016-05-13 Thread 'Martin R' via sage-devel
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. -- You received this

Re: [sage-devel] copying MixedIntegerLinearProgram problem

2016-05-13 Thread Dima Pasechnik
On Thursday, May 12, 2016 at 6:17:33 PM UTC+1, Martin R wrote: > > > So, what is the proper way to do it? As I wrote, it's not really an >>> option to solve the whole problem for each new constraint... >>> >> >> add a constraint, and solve again? >> >> Yes, and then? I don't think I can

Re: [sage-devel] copying MixedIntegerLinearProgram problem

2016-05-12 Thread 'Martin R' via sage-devel
> So, what is the proper way to do it? As I wrote, it's not really an >> option to solve the whole problem for each new constraint... >> > > add a constraint, and solve again? > > Yes, and then? I don't think I can remove it again, can I? As I wrote, pseudo-code is as follows, and keep in

Re: [sage-devel] copying MixedIntegerLinearProgram problem

2016-05-12 Thread Dima Pasechnik
On Thursday, May 12, 2016 at 4:16:07 PM UTC+1, Martin R wrote: > > So, what is the proper way to do it? As I wrote, it's not really an > option to solve the whole problem for each new constraint... > add a constraint, and solve again? Dima > > Martin > -- You received this message

Re: [sage-devel] copying MixedIntegerLinearProgram problem

2016-05-12 Thread 'Martin R' via sage-devel
So, what is the proper way to do it? As I wrote, it's not really an option to solve the whole problem for each new constraint... Martin -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails

Re: [sage-devel] copying MixedIntegerLinearProgram problem

2016-05-12 Thread Jeroen Demeyer
On 2016-05-12 15:32, Vincent Delecroix wrote: Hi, The point is that you are not able anymore to use variables from other problems. For good reasons obviously... -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group

Re: [sage-devel] copying MixedIntegerLinearProgram problem

2016-05-12 Thread Vincent Delecroix
Hi, The point is that you are not able anymore to use variables from other problems. Namely "assignment" is a variable from "p" not "p_new". Vincent On 12/05/16 02:18, 'Martin R' via sage-devel wrote: Hi there! I am having a severe problem with a program of mine that stopped working, very