Nourhan Ismail
- Total activity 5
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 1
Activity overview
Latest activity by Nourhan Ismail-
Nourhan Ismail commented,
it worked ,thank you so much
-
Nourhan Ismail commented,
another question: Con_Kc=m.addConstr(quicksum(M[k] for k in blocks)== Kc) can i say : for k in blocks: if k == Kc: Cont_3=m.addConstr(Z== C*P[k+1])
-
Nourhan Ismail commented,
this is P: blocks= list(range(1,8)) P={}for k in blocks:P[1]=4P[2]=3P[3]=5P[4]=1P[5]=6P[6]=3P[7]=2 and i have this constraints that i use to get the value of Kc Con_Kc=m.addConstr(quicksum(M[k] for...
-
Nourhan Ismail created a post,
use a decision variable as an index
AnsweredI have k which is index called blocks and equals to range (7) blocks= list(range(1,8)) and i have this constraints that i use to get the value of Kc Con_Kc=m.addConstr(quicksum(M[k] for k in blocks...