# What is wrong with my linear programming model?

I tried solving this problem

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?

• Why in objective function you have $\rm demand \times 0.3$? Shouldn't be $\rm stored \times 0.3$? – Mostafa Apr 15 '20 at 11:37
• In the future, please use code blocks rather than screenshots. It makes it much easier for us to read, and also for us to copy and paste into our own systems to test and debug your code. – LarrySnyder610 Apr 15 '20 at 15:22

if (i==i)