Chenshi Jia

First Question
First Comment
  • Total activity 11
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 1
  • Subscriptions 4


Recent activity by Chenshi Jia Recent activity Votes
  • Constraint has no bool value


    Hi, when I add a lazy constraint  which is a variable less than a float number, I meet the error as follows: print(ro[0])print(model._eta[0])model.cbLazy(ro[0] >= model._eta[0]) Please suggest.

  • Why binary variables range from (0,1)


    Hi, I set the variables as binary. But while adding lazy constraints, some values of variables range from (0,1). Please suggest. var = m.addVars(dist.keys(), vtype=GRB.BINARY, name='e')

  • Lazy constraints can not be added to the model.


    Hi, I’m currently facing a problem. There are two sets of variables A and B. The objective function is to maximize the summation of A. The constraints are only about B in the model. I want to add l...