Hello to all,
I have a problem since I am using OpenSolver to which I have added Gurobi.
The peculiarity of my problem lies in the fact that my variable has a conditional constraint
Xi < Upperbound.
This Upperbound must be the minimum between a constant and a function that depends on the sum of Xi-n (n=0 to i-1):
Vi-1 = Sum(Xi-1) -> (Filling of the day before).
This is a filling of a minimum cost store.
This nonlinear term can be easily be linearized:
Xi≤H, where H=min(Constant ,f(Vi-1))
Becomes two inequalities (assuming you have a maximization problem)
When I solve separately there are no problems but when I add both constraints I get the error: Unfeasible or Unbounded model.
How can I solve it? When I put in the MIN(Hconstant, Hf(V-1) sentence, it doesn't let me solve either.
I would be very grateful if you could solve my problem, thank you very much in advance.
Thanks in advance,
Please sign in to leave a comment.