problem.getObjVal
problem.getObjVal |
Purpose
Returns the objective value of the solution found by the Optimizer.
Synopsis
o = problem.getObjVal ()
Example
The following prints the objective value of an optimal solution after the
solve() command is run:
p.solve () print ("optimal solution:", p.getObjVal ())
Related topics