Procedure GMP::Instance::SetMemoryLimit(GMP, memory)

GMP::Instance::SetMemoryLimit

The procedure GMP::Instance::SetMemoryLimit limits the amount of memory available to solve a generated mathematical program.

GMP::Instance::SetMemoryLimit(
     GMP,             ! (input) a generated mathematical program
     memory           ! (input) amount of memory
     )

Arguments

GMP

An element in AllGeneratedMathematicalPrograms.

memory

Maximum number of megabytes available to solve the generated mathematical program.

Return Value

The procedure returns 1 on success, or 0 otherwise.

Note

  • Setting the memory limit using this procedure has the same effect as using the Solvers General option Solver workspace.

  • This procedure has no effect on CPLEX. For CPLEX the option Tree Memory Limit should be used instead.