LinExpr.getValue()

getValue ( )

Compute the value of an expression using the current solution.

Return value:

The value of the expression.

Example usage:

  obj = model.getObjective()
  print(obj.getValue())