Cannot use break command

Problems with syntax of GAMS
Post Reply
eagle
User
User
Posts: 2
Joined: 5 days ago

Cannot use break command

Post by eagle » 5 days ago

Hi all,

I want to use break to jump out a loop, but it seems that GAMS cannot recognize this keyword. I have checked the online document of GAMS, so I am sure my syntax was right. Also, I have tried the example code in GAMS document, which did not work either. Could anyone tell me what's wrong with me?

My GAMS is 24.6.1, and I have attached the demo GAMS code explaining how to use break command from GAMS online document.

Thank you,
eagle
Attachments
break_demo.gms
(113 Bytes) Downloaded 1 time

User avatar
bussieck
Moderator
Moderator
Posts: 268
Joined: 2 years ago

Re: Cannot use break command

Post by bussieck » 4 days ago

Break/Continue were added in 24.8: https://www.gams.com/latest/docs/RN_248 ... 20continue

-Michael

eagle
User
User
Posts: 2
Joined: 5 days ago

Re: Cannot use break command

Post by eagle » 4 days ago

bussieck wrote:
4 days ago
Break/Continue were added in 24.8: https://www.gams.com/latest/docs/RN_248 ... 20continue

-Michael
Hi Michael,

I understand. Thank you very much for the quick response.

-eagle

Post Reply