Function GMP::Solution::GetMemoryUsed(GMP, solution)

GMP::Solution::GetMemoryUsed

The function GMP::Solution::GetMemoryUsed returns the amount of (peak) memory used to create a solution in the solution repository of a generated mathematical program.

GMP::Solution::GetMemoryUsed(
     GMP,            ! (input) a generated mathematical program
     solution        ! (input) a solution
     )

Arguments

GMP

An element in AllGeneratedMathematicalPrograms.

solution

An integer scalar reference to a solution.

Return Value

The amount of megabytes used to create a solution.

Note

For CPLEX and Gurobi, AIMMS calculates the memory in use based on the virtual memory used by the process. This approach is not reliable for asynchronous solver sessions.

See also

The procedure GMP::Instance::SetMemoryLimit.