Shesha Sreenivasamurthy
- Total activity 32
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 7
Comments
Recent activity by Shesha Sreenivasamurthy-
Yes, exactly. :)
-
Thank you Ron for all your kind responses . I will debug it. I have last two questions. 1. Can you confirm if the indicator constrains are specified correctly? 2. Is the one aux variable solution ...
-
I attempted to use your suggestions .. for i in range (NVARS): for j in range (NCONTAINERS): for k in range (NVARS): for l in range (NCONTAINERS): if i != k and ...
-
This is my attempt to model it. M = 1Z = [[None for j in range(NCONTAINERS)] for i in range (NVARS)]EPSILON = 0.001for i in range (NVARS): for j in range (NCONTAINERS): varname = "Z_%02d_...
-
Hi Maliheh , I see your point. I am new to gurobi. How do I program indicator constraints in Python? In my example X is a continuous variable in the range of {0..1}.Regards, Shesha.
-
Thank you Maliheh for you reply. Unfortunately, that is not the constraint that I want to implemt. I have variables X[0..n] which are getting populated based on some constraints. Some of those can ...
-
Thanks Ronald for your explanation. So if I understand correctly, solver will choose AUX=0 and try to satisfy the first condition. If not, it will set to 1 and tries to satisfy the second condition...
-
Should I have to add? opt_mod.addConstr( aux >= 1, name = varname) Additionally, |-----------| (uses index i,j)|-------| (uses index k, l) In this case, for the first indicator e...
-
Thanks for introducing me to indicator constaints. I was thinking of implementing this way. Is there a better way ? if i != k and j != l: varname = "AUX1_%02d_%02d" % (k, l) aux1 = opt_mod.ad...
-
Thanks a lot for the information