HeapLimit: Hl

Top  Previous  Next

Cases may arise where one needs to limit the amount of memory a GAMS job can use during compilation and execution. HeapLimit is a GAMS parameter with which one can limit the maximum amount of memory that can be used to store data during GAMS compilation and execution. If the needed data storage exceeds this limit, the job will be terminated with return code 10, out of memory.

The command is implemented with

 

Heaplimit=number

 

where number gives the memory use limit in megabytes. The default value is 1e20.

This can also be implemented through the function heaplimit.

The limit does not apply to solvers but CONOPT contains the option HeapLimit to allow memory limitations during the solve.