Page 1 of 1

How to write the constraints in GAMS efficiently?

Posted: Tue Nov 20, 2018 6:20 am
by TsungHaoHu
Hi all,
I posted "How to simplify the CCGT unit commitment model?" in GAMS World Modeling Topic,
I want to ask another question about the CCGTs' extension. When I added the number of CCGTs to 2 or more, it will difficult to simplify "CCGT_excl" and "CCGT_trans_excl" constraints.
For example, if I have 2 "CCGTs" in the model, it will become
"CCGT1_excl", "CCGT2_excl", "CCGT1_trans_excl", "CCGT2_trans_excl".

How to write the constraints in GAMS efficiently?

Related program files such as attachments.

Thanks.

Re: How to write the constraints in GAMS efficiently?

Posted: Wed Nov 21, 2018 7:04 am
by bussieck
There is a long discussion with an answer to this question in the following thread: viewtopic.php?f=9&t=10634&p=24730#p24693

-Michael