Download gams a user's guide

Transcript
B.3 DETAILED DESCRIPTION OF COMMAND LINE PARAMETERS
195
B.3.31 optfile
This option initializes the modelname.optfile parameter to the value set. This parameter
has to be set to a value between 1 and 999 in order for GAMS to inform the solver to read the
solver option file. modelname is the name of the model specified in the model statement. For
example,
model m /all/ ;
m.optfile = 1 ;
solve m using nlp maximizing dollars ;
The option file that is being used after this assignment is solvername.opt, where 'solvername' is the name of the solver that is specified. For CONOPT, the option file is called
conopt.opt; for MINOS5, it is minos5.opt The names that you can use are listed in the
solver manual.
Setting modelname.optfile in the GAMS input file overrides the value of the
optfile parameter passed through the command line.
Long Name
Short Name
Type
Range
Default
optfile
optfile
integer
0-999
0
To allow different option file names for the same solver, the optfile parameter can take other values as well. Formally, the rule is optfile=n will use solvename.opt if n=1, and
solvername.opX, solvername.oXX or solvername.XXX, where X's are the characters
representing the value of n, for n>1 and will use no option file at all for n=0. This scheme implies an upper bound on n of 999. For example,
optfile value
0
1
2
26
345
CONOPT option file name
no option file used
conopt.opt
conopt.op2
conopt.o26
conopt.345
B.3.32 output
If no name is given, the input file name is combined with the current directory and the standard
output file extension is applied. If the output parameter is given as a file name without an absolute path, using the current directory composes the final name. If the absolute path is included in
the file name, then the name is used as given.
Long Name
Short Name
Type
output
o
string