There is in-feasibility issue in Gurobi
for r in Requests :
for i in plocs :
SIM.addConstr((quicksum (w[r,i,1,g,n] for g in tlocs for n in NodeVisits if w.get((r,i,1,g,n)) != None)
+ quicksum (y[r,i,1,j,n] - y[r,j,n,i,1] for j in locs for n in NodeVisits if y.get((r,i,1,j,n)) != None if y.get((r,j,n,i,1)) != None )
+ quicksum (v[r,i,1,j,n] - v[r,j,n,i,1] for j in locs for n in NodeVisits if v.get((r,i,1,j,n)) != None if v.get((r,j,n,i,1)) != None )) == Fr[(r,i)])
show me infeasible constraints but there is no synatic error but it's from formulation what can i do to solve it
0
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hello Ziyad,
please do not open another post, while you already have the issue discussed.
The issue is not with Gurobi, but with your model. What are you trying to obtain in this comparison,
y.get((r,j,n,i,1)) != None
?
0 -
if is in my variable matrix on not
0 -
Have you had a chance to save an LP file and examine the model "by hand", to make sure your indices are correct etc.?
You can save the model using
> model.write("myModel.lp")
Let me know what you observe.
0
Post is closed for comments.
Comments
4 comments