Function GMP::SolverSession::GetNodeObjective(solverSession)


The function GMP::SolverSession::GetNodeObjective returns the objective value for the subproblem at the current node during MIP optimization from within a node callback.

     solverSession     ! (input) a solver session



An element in the set AllSolverSessions.

Return Value

In case of success, the objective value at the current node. Otherwise it returns UNDF.


  • This function has only meaning for solver sessions belonging to a GMP with type MIP, MIQP or MIQCP.

  • This function can only be used inside a branch, cut or heuristic callback.

  • The procedure GMP::Solution::RetrieveFromSolverSession can be used to retrieve the node solution inside a branch, cut or heuristic callback.

  • This function is only supported by CPLEX, however it is not supported if the CPLEX option Use generic callbacks is switched on.