Yu yue
- Total activity 16
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 4
Activity overview
Latest activity by Yu yue-
Yu yue commented,
Hi Jaromił, This method is really great, it solved my problem.Thank you very much! Best regards, Yu
-
Yu yue commented,
Hi David, Thank you very much,it worked! I have one more question, if a is not a decision variable(a∈[1,10]), b is a decision variable. Can it still be solved in this way? Best regards, Yu
-
Yu yue commented,
Hi Jaromił, I failed to understand the Community Post you recommended to me(use a decision variable as an index). Perhaps my description was not clear and I would like to recount my problem in the ...
-
Yu yue created a post,
How to add such an indicator constraints? if a=b then c<d else c>d
AnsweredI would like to add this instruction constraint: if a=b then c<d else c>d when a=b → k =1 a !=b → k =0 I know how to handle such situations if a<b then c<d else c>d But I'm confused about how...
-
Yu yue commented,
Hi Matthias, Thanks, this is very helpful to me. Best regards, Yu
-
Yu yue commented,
Hi Jonasz, I'm sorry I didn't think carefully about the method you proposed, and I did the calculation again using your method. It worked. Thank you very much! Yu
-
Yu yue commented,
This is my objective function: My code is as follows: m = gp.Model("MCIkRP1")K = [k.no for k in orders] P = [p.no for p in paths]T = [t for t in range(1, 60)]x = m.addVars(K, P, vtype=GRB.INTEGE...
-
Yu yue commented,
Sorry, I didn't describe the problem I encountered clearly. I would like to solve the following problem, Cargo k starts shipping at time and arrives at time. The start time is known (represents ...
-
Yu yue created a post,
How to take the remainder of the variables in gurobi?
AnsweredHi,I want to take the remainder of the variable. for k in orders: m.addConstr(t[k.no] % 7 + 1 == k.rk % 7) t is the decision variable. But it returns the following error TypeError: unsup...
-
Yu yue created a post,
Comparing variables with constants when adding an objective function
AnsweredI want to set the following objective function: and it contains the condition that where is the decision variable. My code is as follows dep_1 = gp.quicksum((k.hk * h[k.no, t] for k in orders...