Ways to include numerous variable names after bilevel

Problems with syntax of GAMS
Post Reply
Jubeyer
User
User
Posts: 41
Joined: 4 years ago

Ways to include numerous variable names after bilevel

Post by Jubeyer »

Hi,
I would like to draw your attention regarding the syntax of this given code regarding bilevel optimization:
https://www.gams.com/latest/docs/UG_EMP ... l_Example1

Since there is only one variable x in this case which doesn't belong to the follower so writing it was easy but how about cases where there are hundreds of variables which belongs to the leader. How those variables should be written in the code since writing them one by one is highly inconvenient?

Sorry I forgot to mention the specific line in the program. I was talking about writing the variables after the keyword bilevel here.
$echo bilevel x min objin * defin e1 e2 e3 e4 > "%emp.info%"

Regards,
Post Reply