Bradley Ning

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

Activity overview

Latest activity by Bradley Ning
  • Bradley Ning commented,

    Dear Eli, thanks for your kind help and very detailed response, it is work if u is defined variable. While in my original problem, the 'u' in my code actually is a combination of other variables, f...

  • Bradley Ning created a post,

    A weird output, is it a bug of Gurobi 8.1.1?

    Answered

    Hi there, I am runing the following simple python code, the m.ObjVal output is 4.0, v.X is 0.01, while obviously, the minimum should be 0 if u is between 1/3 to 2/3?  My Gurobi version is 8.1.1, an...

  • Bradley Ning commented,

    Hi Eli, I understand how to get the value of a variable, while what I want is add constraint to T[i][j], T[i][j] are binary variables, and T[i][j] = T[i][j] or ( T[i][k] and T[k][j] ) with i, j, k ...

  • Bradley Ning commented,

    My logic experssion and operation is: T[i][j] = T[i][j] or ( T[i][k] and T[k][j] ) with i, j, k in T.keys() loops T[i][j] are binary variables, it looks like Guroby does not support such logic oper...

  • Bradley Ning commented,

    Hi Sonja: Thanks for your reply, I have copied a screen shot here. From the screen shot, we can find that: print(ttt['A']['A'], x_ij['B']['C']) the output is: <gurobi.Var T_A_A (value 0.0)> <gurobi...

  • Bradley Ning created a post,

    Very weird output of binary variable?

    Answered

    After optimizing successfully, when I transfer the binary variables as input parameters to a logic function (‘and’, ‘or’ operation etc.), the output is different from when I transfer the values of ...