|
Single line comments |
Top Previous Next |
|
Users may insert a single line comment (or a group thereof) on any line by placing an asterisk in column 1 followed by any text whatsoever. The commented text is completely ignored by the GAMS compiler. It can contain GAMS reserved words, messages or any other content. Uses can cause GAMS to recognize a character other than an asterisk as the column 1 delimiter. This is done by using the $ command $Comment c where the character c replaces * as the comment delimiter. For example
$comment !
changes the character to a !. An example follows and is in commentdol.gms
*normal comment *next line is deactivated GAMS statement * x=sum(I,z(i)); $comment ! !comment with new character Notes:
|