- Function GMP::SolverSession::GetMemoryUsed(solverSession)
GMP::SolverSession::GetMemoryUsed
GMP::SolverSession::GetMemoryUsed
returns the amount
of memory used by the solver session.GMP::SolverSession::GetMemoryUsed(
solverSession ! (input) a solver session
)
Arguments
- solverSession
An element in the set
AllSolverSessions
.
Return Value
The amount of megabytes used to execute a solver session.
Note
This function should be called inside a callback procedure to retrieve the current amount of memory used by the solver during a solve.
During a solve, the memory used by the solver can fluctuate.
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.