
Magnus Mariegaard
- Total activity 20
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 7
- Subscriptions 3
Comments
Recent activity by Magnus Mariegaard-
Okay thank you a lot for the help Jaromil, it is much appreciated. Your explaination makes a lot of sense. Best regards, Magnus
-
Hi Jaromil Ahh okay, sorry for the trouble then, my bad then… is there a way to start the program without the lazy constraint for maybe one branching for then to use the lazy constraint after?
-
Of course, the mdl._x is used to get the relaxed values of the LP relaxation of my MIP problem, and are used as such: def sub_elim(model, where): if where == GRB.callback.MIPSOL: sol = m...
-
And if it helps, the sub_elim function is in short like the following: def sub_elim(model, where): if where == GRB.callback.MIPSol: Testing and adding the lazy constraints...
-
I can try to shorten it down to give an example A = list of tuplesx = {}for i,j in A: x[i,j] = mdl.addVar(vtype = GRB.BINARY, name = 'x_%d_%d' & (i,j))#multiple contraints givenmdl.addConstrs(.....
-
Hi Jaromil My mistake with setting of x[i] value, that is a typo and it is iterated as you suggested. However I have tried to impliment it again, and it seems that the mdl._x = x interfeers with th...
-
Thank you both for the quick and precise responses, that helped a lot.