- Procedure GMP::SolverSession::Transfer(solverSession, GMP)
GMP::SolverSession::Transfer
GMP::SolverSession::Transfer
can be used to transfer
a solver session from its current GMP to another similar GMP. Both
GMPs should be created from the same symbolic math program.GMP::SolverSession::Transfer(
solverSession, ! (input) a solver session
GMP ! (input) a generated mathematical program
)
Arguments
- solverSession
An element in the set
AllSolverSessions
.- GMP
An element in the set
AllGeneratedMathematicalPrograms
.
Return Value
The procedure returns 1 on success, or 0 otherwise.
Note
If each GMP has its own solver session then more memory is required which might not be available for large models or if many GMPs are used. To save memory this procedure can be used since it allows similar GMPs to share one solver session. After transfering a solver session to a GMP, only the differences between the old and new GMP will be passed as updates to the solver.
See also
The routines GMP::Instance::CreateSolverSession
, GMP::Instance::GenerateStochasticProgram
and GMP::Stochastic::BendersFindReference
.