Model infeasible
Awaiting user inputHello,
I want to model a stock management problem,
I have 3 variables :
P[i,t] : Production of product i in period t
X[i,j,t] : Amount of product i in location j in period t ( each location j has its capacity)
F[i,t] : Fictive location ( to avoid model infesability) ( amount of product i that we couldnt stock at period t.
The Constraint i built is :
for i in range(I):
for t in range(T):
model.addConstr(gp.quicksum(X[i,j,t] for j in range(J))+F[i,t]==P[i,t]
Logicaly, i wouldn't have any problem of capacity because if the production is too big i can stock in the fictive location F[i,t], but the problem is if the production exceeds a certain number i have an infeasible model.
So i don't now why
Thank you
0
-
Official comment
This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support. -
Hi Rayan,
Did you have a look at the Knowledge Base article How do I determine why my model is infeasible?
Best regards,
Jaromił0
Post is closed for comments.
Comments
2 comments