|
Writing options during a model run |
Top Previous Next |
|
Users may wish to construct the options file during a job to insure that the option file contents are always current. This can be done using Put command as discussed in the Output via Put Commands chapter. In that case, the file must be closed prior to the SOLVE statement using a PUTCLOSE. The following example shows the creation and closing of an option file for the MINOS solver as implemented in frstpart.gms.
FILE OPT MINOS option file / MINOS5.OPT /; PUT OPT; PUT 'BEGIN'/ ' Iteration limit 500'/ ' Major damping parameter 0.5'/ ' Feasibility tolerance 1.0E-7'/ ' Scale all variables'/ 'END'; PUTCLOSE OPT;
|