Post
by cnbrksnr »
Hi!!!
Firstly, this is not an LP, it is a mixed-integer LP. You should change the "solve" statement accordingly.
Secondly, the state-of-charge equation is only defined for h > h1. So, replace "Hourly_charge1" equation as below:
Hourly_charge1(h,b)$(h.pos > 1).. Ehb(h,b) =e= Ehb(h-1,b) - Phb(h-1,b);
This gives an optimal solution.