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

GMP::Solution::GetNodesUsed

The function GMP::Solution::GetNodesUsed returns the number of nodes used to create a solution in the solution repository of a generated mathematical program.

GMP::Solution::GetNodesUsed(
     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 number of nodes used to create a solution.

Note

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

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