Chenshi Jia
- Total activity 11
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 1
- Subscriptions 4
Activity overview
Latest activity by Chenshi Jia-
Chenshi Jia created a post,
Constraint has no bool value
AnsweredHi, 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.
-
Chenshi Jia commented,
Thank you!
-
Chenshi Jia commented,
Some pictures are missing.
-
Chenshi Jia created a post,
Why binary variables range from (0,1)
AnsweredHi, 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')
-
Chenshi Jia commented,
Hi, To describe my issue, I add a set of continuous variables to the TSP problem in the Gurobi example for callback. The detailed model can be seen: The detailed code can be seen: import mathimpor...
-
Chenshi Jia created a post,
Lazy constraints can not be added to the model.
AnsweredHi, 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...