Solvelink: Sl

Top  Previous  Next

This option controls GAMS function when linking to solve.  Numeric input is expected with the allowable numeric values being

0GAMS operates as it has for years (default)
1the solver is called from a  shell and GAMS remains open.
2the solver is called with a spawn (if possible as determined by GAMS) or a shell (if the spawn is not possible) and GAMS remains open.
3GAMS starts the solution and continues in a Grid computing environment
4 GAMS starts the solution and wait (same submission process as 3) in a Grid computing environment
5the problem is passed to the solver in core without use of temporary files.

 

The command is implemented with

 

Solvelink=number

 

 

Leaving GAMS open or passing the information in core saves time.  On the other hand additional memory is required.  This option is best for jobs that have a large data set and solve many small models as in that case one sacrifices memory but avoids the overhead of many GAMS saves and restarts.  This is implemented by using the option SOLVELINK that can appear on the command line, as a model attribute or as an internal option statement.

The default setting is zero.

A set of SolveLink constants have been defined

 Solvelink.ChainScript is a constant that equals 0.
 Solvelink.CallScript is a constant that equals 1.
 Solvelink.CallModule is a constant that equals 2.
 Solvelink.AsyncGrid is a constant that equals 3.
 Solvelink.AsyncSimulate is a constant that equals 4.
 Solvelink.LoadLibrary is a constant that equals 5.

These may be used as follows

modelname.solvelink=%solvelink.AsyncGrid%;

which is the same as setting the item to 3

These constants are defined at compile time and cannot be manipulated or reassigned.

 

 

This can also be done through a model attribute or an option command.