Error 65!!! Topic is solved

Solver related questions
Post Reply
Miller
User
User
Posts: 3
Joined: 4 days ago

Error 65!!!

Post by Miller » 4 days ago

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. :cry:
My_Grid6.gms
(5.89 KiB) Downloaded 8 times

cnbrksnr
User
User
Posts: 10
Joined: 1 year ago

Re: Error 65!!!

Post by cnbrksnr » 3 days ago

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.

Miller
User
User
Posts: 3
Joined: 4 days ago

Re: Error 65!!!

Post by Miller » 3 days ago

Hi cnbrksnr!

Thank you so much🤩🤩🤩!!! It bothers me a bit.

Miller
User
User
Posts: 3
Joined: 4 days ago

Re: Error 65!!!

Post by Miller » 3 days ago

Hi!

I will say thank you so much!!! 🤩🤩🤩🤩🤩🤩 Appreciated by your help!!

Post Reply