Hu Zhenghao
- Total activity 5
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 1
- Subscriptions 1
Activity overview
Latest activity by Hu Zhenghao-
Hu Zhenghao commented,
Actually, my objective is also changed with variables, like : if p[9,0]>=4: objective=max p[9,1] else: objective=max p[9,0] the expression is simplified.The objective function is segmented an...
-
Hu Zhenghao commented,
Thanks for your suggestion, I tried to use a binary variable and use indicator constraints, but the constraint is quadratic. So I added a new variable to define the quadratic equation, it works. I ...
-
Hu Zhenghao created a post,
about the constraints changed with variables
Awaiting user inputEexcuse me, in my problem, I have several constraints changed with variables. For example I need to achieve the model has following logic: if p[0]>=4: model.addConstr(p[1]<=1.5) else: model.a...