| [ Performance World Home | Board | Tools | PerformanceLib | Links | GamsWorld group | Search | Contact ] |
|---|
Some guidelines for the model file. The model file
| >>   gams crbatch.gms --batfile=(output filename) --gmsopts=(GAMS options) --iterlim=(GAMS iterlim) --modelfile=(file containing model names) --optfile=(1 for optfile use) --optca=(GAMS optca) --optcr=(GAMS optcr) --outdir=(.LST and .LOG output directory) --reslim=(GAMS reslim) --solver=(solvername) --type=(model type) |
All of the --options are not required, that is if ommitted they are set to default options as described in the next section. A sample call is:
| >>   gams crbatch --modelfile=tiny_mod.txt --batfile=samplebat --gmsopts="lo=2" --solver=bdmlp --type=lp |
This will create a batch file called samplebat.gms consisting of all models in the tiny_mod.txt --modelfile (these are all of the tiny models from the LinLib collection). The solver used is BDMLP and the GAMS user option is lo=2. In order to run the batch file created, run as a regular GAMS model. In this case:
| >>   gams samplebat |
User can specify multiple entries within one --option. For example, users may want to run all tiny and small models. The commands differ slightly for Windows and UNIX:
| >>   gams crbatch --modelfile=tiny_mod.txt --gmsopts="lo=2 lf=output.log" |
| >>   gams crbatch --modelfile=tiny_mod.txt --gmsopts=\" lo=2 lf=output.log \" |
A sample batch.gms output:
| Option | Input Type | Description | Default |
| --batfile | Text | Output batch filename. File will automatically have .gms extension. | batch |
| --gmsopts | Text | GAMS command line options. Users can spcify multiple entries. The command
differs slightly for Windows and for UNIX.
For example, if users wish to create a tracefile
called trace.trc with trace option 3, users would specify for Windows:
--gmsopts="trace=trace.trc traceopt=3"For UNIX: --gmsopts=\"trace=trace.trc traceopt=3\" |
lo=1 |
| --iterlim | Text | GAMS iterlim (solver iteration limit). | none (i.e. GAMS default) |
| --modelfile | Text | Model file containing modelnames. A sample modelfile is tiny_mod.txt. containing all tiny sized LPs. | none given |
| --optca | Text | GAMS optca (absolute optimality tolerance for discrete models). | none (i.e. GAMS default) |
| --optcr | Text | GAMS optcr (relative optimality tolerance for discrete models). | none (i.e. GAMS default) |
| --optfile | Text | GAMS optfile (solver option file indicator). | none (i.e. GAMS default) |
| --outdir | Text | Output directory for .LST and .LOG files. If the directory doesn't exist, it is created. | none |
| --reslim | Text | GAMS reslim (resource time limit). | none (i.e. GAMS default) |
| --solver | Text | Solver(s) to be used. In general, it is advised to only use one solver
for each tracefile created. If multiple solvers are desired, then
these can be inputted using --solver="solver1,solver2"for Windows or --solver=\"solver1,solver2\"for UNIX. |
bdmlp |
| --type | Text | Model type. | LP |