$if set!!??

hello dears GAMSers;
I was studying a MINLP code from below link:
4stufen.gms

but in some line I see below syntax:

(1):$if set nostart $goto modeldef
(2):$label modeldef
(3):$if NOT ‘%gams.u1%’ == ‘’ $include ‘%gams.u1%’ (4):$if not set MINLP $set MINLP MINLP
(5):…%MINLP%…

anybody can explain why these command is necessary and what do these command do?
Plz explain easily these 5 line and dont refer me to user guide and other manuals for GAMS! :wink:

regards
SAMAN :slight_smile:

\

To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/5Zq1FPzjD_kJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

I’ll take a crack at it. I think most are command line parameters during the call to gams


\

  1. if the command line contains --nostart, then you want the model to skip to the line that says modeldef

  2. this is where the model will skip to from step 1

  3. the %gams.ul% is again a command line parameter but in this case kind of like a wild card.

  4. if you didnt set MINLP, then this line sets it for you

  5. another wild card.



    hope that helps. you really need to see how the command line is setup to understand some of this.



    At least thats what I think :]



    Dewayne




    From: gamsworld@googlegroups.com [gamsworld@googlegroups.com] on behalf of saman [m.mahmudi@gmail.com]
    Sent: Friday, November 04, 2011 6:57 PM
    To: gamsworld@googlegroups.com
    Subject: $if set!!??

hello dears GAMSers;
I was studying a MINLP code from below link:
4stufen.gms

but in some line I see below syntax:

(1):$if set nostart $goto modeldef
(2):$label modeldef
(3):$if NOT ‘%gams.u1%’ == ‘’ $include ‘%gams.u1%’ (4):$if not set MINLP $set MINLP MINLP
(5):…%MINLP%…

anybody can explain why these command is necessary and what do these command do?
Plz explain easily these 5 line and dont refer me to user guide and other manuals for GAMS! :wink:

regards
SAMAN :slight_smile:

\

To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/5Zq1FPzjD_kJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.


This e-mail transmission is strictly confidential. It is intended solely for the
addressee. If you are not the addressee, please delete the e-mail and notify us
by return email or by contacting our systems administrator on +44 131 243 4444
forthwith.

Moreover if you are not the addressee, you must not copy, use, act or rely on,
disclose or distribute this e-mail. Wood Mackenzie Limited accepts no
responsibility or liability for any harm to your, or any third party’s, system
or data caused by this e-mail or its attachments or any viruses or similar
contained in it.

Wood Mackenzie Limited may monitor and record e-mails and their content passing
through its network.


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.