Page 1 of 1
Error 65!!!
Posted: Mon Oct 11, 2021 10:57 pm
by Miller
Hi Everyone,
I am a student who learn GAMS recently. Here is my coding but there is one error in the end. Please check it and waiting for your guys advice.
Re: Error 65!!!
Posted: Tue Oct 12, 2021 5:05 am
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.
Re: Error 65!!!
Posted: Wed Oct 13, 2021 12:30 am
by Miller
Hi cnbrksnr!
Thank you so much
!!! It bothers me a bit.
Re: Error 65!!!
Posted: Wed Oct 13, 2021 12:34 am
by Miller