Han Shih

• Total activity 26
• Last activity
• Member since
• Following 0 users
• Followed by 0 users
• Subscriptions 7

Activity overview

Latest activity by Han Shih
• Han Shih commented,

Hi Eli, Thank you very much for your help. It seems not easy to write the codes. I will give a try. Sincerely, Robert

• Han Shih commented,

Hell Eli, Can you please help me another question? I have a code as below: for v in m.getVars():      print('%s %g' % (v.varName, v.x)) The varName is 3 by 2 dimension, so x is 3 by 2 dimension to...

• Han Shih commented,

Hi Eli, Thank you very much. It works! Best Robert

• Han Shih created a post,

How to use if and elif on checking variables?

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

• Han Shih commented,

• Han Shih created a post,

Nested quicksum function?

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

• Han Shih commented,

Dear Eli, I check my code regarding matrix output in excel. Can you halp me? The codes I have as below: m.addConstrs(( EACHDAYSCEN[TT,KK] == EACHDAYSCENCOST[TT,KK] for TT in set_T                  ...

• Han Shih commented,

Dear Thomas, I think my code in Gurobi cause problems but not sure why? I have codes as below: DeltaA, DeltaB are binary variables. MM is big number A <= MM * DeltaA B < = MM * DeltaB If MM= 99999...

• Han Shih commented,

Dear Thomas, I think my code in Gurobi cause problems but not sure why? I have codes as below: DeltaA, DeltaB are binary variables. MM is big number A <= MM DeltaA B < = MM * DeltaB If MM= 99999999...

• Han Shih commented,

Dear Eli,   Thank you for your help. I will try your codes to see how it works. Again, thank you Robert