Yizhi ZHEN
- 合計アクティビティ 8
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 0
- サブスクリプション 3
アクティビティの概要
Yizhi ZHENさんの最近のアクティビティ-
Yizhi ZHENさんがコメントを作成しました:
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さんが投稿を作成しました:
How to include an exponent function in an indicator constraint
回答済みHi, 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さんが投稿を作成しました:
How to include negative exponent in model
ユーザーの入力を待っています。Hi 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さんがコメントを作成しました:
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さんが投稿を作成しました:
Using value of a decision variable as index of another decision variable
回答済みHi 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...