Han Shih

Gurobi-versary
Conversationalist
Curious
  • Total activity 26
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 7

Posts

Recent activity by Han Shih Recent activity Votes
  • How to use if and elif on checking variables?

    Answered

    Dear Python/Gurobi professionals: Can you help meva question? If I have two variable,  AA[I,J] and BB[I,J,K]   where I, J, K are index for demensions How can I check if v.varName= AA[I,J] or v.varN...

  • Nested quicksum function?

    Answered

    Dear Python/Gurobi Professionals:   I tried to figure out the quicksum function? Are the two cosed below equal? Are the generateingthe same output? Thank you, Robert  COST = quicksum ( PW[K] * quic...

  • How to make the binary variables work ?

    Answered

    Dear Python / Gurobi Professionals, Please help. I have a code define DeltaHP as binary variable as below: DeltaHP = m.addVar( lb=0, vtype=GRB.BINARY, name="DeltaHP") But The output is DeltaHP =1....

  • How to write output to excel file in gurobi in python?

    Answered

    Dear Python / Gurobi Professional, I found the codes below can write the output to csv file. The var.varName will be written into the first cell in each row on excel file But how can I write the va...

  • How to print a variable value

    Answered

    Dear Sir/Madam, Can you help me? I have a python with gurobi optimization code as below? When I print the output, it only print A..  and B... but did not print ATOTAL and BTOTAL, I undersatnd that ...

  • Researcher

    Answered

    I am new to gurobi, I have a question regarding creating an array of variables. Question regarding how to start index with1 instead 0? For example in gurobi, x = model.addVars(2, 3) would create si...

  • Researcher

    Dear Sir, I have a question regarding programming codes for gurobi working in python. Does gurobi have the feature as below: ? How to write codes for random normal distribution to be assigned to a...