Haung Carol
- 合計アクティビティ 8
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 0
- サブスクリプション 4
アクティビティの概要
Haung Carolさんの最近のアクティビティ-
Haung Carolさんが投稿を作成しました:
how to use value of a continuous variable as another variable's index?
回答済みHi~ I have a integer variable a_int. a_int = {(i, k): model.addVar(vtype=gp.GRB.INTEGER, name=f'a_int_{i}_{k}') for i in V for k in K}And I have another continuous variable X[t,k], which t=a_int[i,...
-
Haung Carolさんが投稿を作成しました:
if multi_constraints then
回答済みHi~I have three continuous variable a,b,c and three binary P, N, and Z. I want to set three constraints : 1. if a>0 and b>0 and c>0, then P==1 #when abc are all positive, P==1 2. if a<0 and b<0 and...
-
Haung Carolさんが投稿を作成しました:
two side condition with binary
回答済みHi! I have a binary x_in_grid, which is to decide if my variable X is in the range [0,5] X is a continuous variable. So, my constraints is : if 0<=X<=5, then x_in_grid==1 here is something I'm try...
-
Haung Carolさんが投稿を作成しました:
How do I model conditional statements with equal in Gurobi?
回答済みI have two CONTINUOUS variables X and Y, which represent the x and y coor. And one binary Service which means (X,Y) is serviced (reached). So the relationship is like: if X==0.5 and Y==1.3, then bi...