JUN ZHOU
- Total activity 26
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 1
- Subscriptions 4
Comments
Recent activity by JUN ZHOU-
Let me be clear, I denote I the indicator function.
-
Hi, Eli Towel. Thanks a lot for your reply. I see your point. Thank you again.
-
Hi Eli Towle, Thanks a lot. It works after I updated the Gurobi version. But I can't tell the difference between your code and mine. I think they are following the logic, though your code is more e...
-
Train_Sample colud contain float variables, not just integers.
-
Thanks for your reply. I just tried as you said. So,ethimg is wrong. Here is my code. import numpy as npimport mathimport pandas as pdimport gurobipy as gpfrom gurobipy import GRB def SP_opt_P(c,r,...
-
Train_Sample=[1,2,3,4,5,6,7,8,9,10]c=5p=20SP_opt_P(c,p,Train_Sample) The optimal order should be $y=8$, and the profit should be $64$. But when I add the count variables, the optimal order amount ...
-
Thanks for your reply. Suppose I'm considering a news vendor problem and define a function to compute the optimal order quantity. During the process, I'm curious how will the count variables vary. ...
-
Let me be clear. count varaiables vary with y. I need the values of count for each y, not just the final optimal y.
-
Thanks for your reply. Yes, I'm trying to model $Train_Sample [k] <=y$ for each $k$. The count variables are binary and Train_Sample are contain continuous values. I tried your code, but it says "i...
-
For example, $TrainSample=[1,2,3,4,5]$, optimal $y=3$, the count should be $[1,1,1,0,0]$, that's what I expect