Shesha Sreenivasamurthy
- 合計アクティビティ 32
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 0
- サブスクリプション 7
コメント
Shesha Sreenivasamurthyによる最近のアクティビティ-
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