Here is my cplex code
I have mentioned stored[month] as float+ but in the final result I get negative values. What is wrong with my model?
Operations Research Stack Exchange is a question and answer site for operations research and analytics professionals, educators, and students. It only takes a minute to sign up.
Sign up to join this communityHere is my cplex code
I have mentioned stored[month] as float+ but in the final result I get negative values. What is wrong with my model?
you get negative values because your model is relaxed by cplex since it is not feasible. You should debug it. Your
if (i==i)
looks very strange, I would change one i into 1
Plus to get help try to copy / paste code instead of screenshots