Haung Carol

  • Gurobi-versary
  • First Question
  • Total activity 8
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 4

Activity overview

Latest activity by Haung Carol
  • Haung Carol created a post,

    how to use value of a continuous variable as another variable's index?

    Answered

    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 created a post,

    if multi_constraints then

    Answered

    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 created a post,

    two side condition with binary

    Answered

    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 created a post,

    How do I model conditional statements with equal in Gurobi?

    Answered

    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...