[sage-support] memory leak when copying Coin linear program

2011-11-08 Thread john_perry_usm
The following code quickly consumes all available memory on the machine: sage: P = MixedIntegerLinearProgram(solver="Coin") sage: P.add_constraint(P[0]+P[1]==1) sage: while True: : P = copy(P) : w = solve(P) A ticket has been opened, #12004. If the solver is GLPK, however, this issue

[sage-support] Re: if statements and arguments in sage

2011-11-08 Thread kcrisman
On Nov 8, 12:01 pm, Alastair Irving wrote: > On 08/11/2011 16:52, Chappman wrote: > > > Hi folks, > > > When I try and do to two arguments in the same lines in sagemath it > > does not compute, this is what I have written: > > >    if A==1 and D==1 then case<- 1 else > >    if A==2 and D==1 then

Re: [sage-support] if statements and arguments in sage

2011-11-08 Thread Alastair Irving
On 08/11/2011 16:52, Chappman wrote: Hi folks, When I try and do to two arguments in the same lines in sagemath it does not compute, this is what I have written: if A==1 and D==1 then case<- 1 else if A==2 and D==1 then case<- 2 Hi This is not the correct syntax for an if statement in

[sage-support] if statements and arguments in sage

2011-11-08 Thread Chappman
Hi folks, When I try and do to two arguments in the same lines in sagemath it does not compute, this is what I have written: if A==1 and D==1 then case <- 1 else if A==2 and D==1 then case <- 2 and if case==1 then probsy <- list1 and probsz <- list1 else if case==2 then probsy <- lis