|
The profile statement is associated with a number i.e.
option profile=1 or option profile=3
The use of higher numbers causes GAMS to carry out profiling within control structures such as loop, if, repeat, for and when. The number tells how deep within the control structures to go.
If profile is set to
| 1 | then GAMS reports statement timing and memory use at the control statement level without details on statements within control structures. |
| 2 | then GAMS includes output on statement timing and memory use for all statements that are not within control statements (everything but ifs or loops etc) plus the first level of statements within control structures. |
| 3 | then GAMS includes profile reports output on statement timing and memory use for all statements that are not within control statements and on statements nested within a second level of control statements (i.e. loops or ifs within loops). |
gamsloop.gms provides an example. Note profile can have values of 4 and above.
|