
Yizhi ZHEN
- Total activity 8
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 3
Activity overview
Latest activity by Yizhi ZHEN-
Yizhi ZHEN commented,
Sorry I make a spelling mistake, the corrected should be if x!=0: y=x^-0.5; if x==0: y=0 where x is a non-negative integer. Thanks. Best regards
-
Yizhi ZHEN created a post,
How to include an exponent function in an indicator constraint
AnsweredHi, Now I want to model the relationship as followed: if x==1: y=x^-0.5; if x==0: y=0 I have used addGenConstrPow(x,y,-0.5) to model function y=x^-0.5, and used addGenConstrIndicator() function to ...
-
Yizhi ZHEN created a post,
How to include negative exponent in model
Awaiting user inputHi everyone, Now I have a constraint of y=x^-0.5, where y and x are both decision variables. When I code the constraint as below in my model. Result shown that the model is infeasible. But when I m...
-
Yizhi ZHEN commented,
Hi, Thanks for your reply. But the error " KeyError: (0, 1, <gurobi.Var i_d_1>, 10, 1) " still shown up when the code as below is performed: model.addConstr(x[i, t, i_d[m], t_prime, m] <= z[i, m], ...
-
Yizhi ZHEN created a post,
Using value of a decision variable as index of another decision variable
AnsweredHi everyone, I am having trouble on using value of a decision variable as index of another decision variable. Now I have an integer variable i_d[m] for each m, which means the location of vehicle m...