Returns the value of the objective function at the optimum solution. «opt» is a linear, quadratic or non-linear problem defined from a previous call to DefineOptimization.

If the optimization has not yet been solved, the evaluation of OptObjective will cause it to be solved. If it has already been solved (as a result of OptSolution, OptStatusText, or other similar function being previously evaluated), the result is obtained immediately with no further work. It is always a good idea to check the result of OptStatusNum or OptStatusText, since the returned value is only valid when the solver reports finding an optimal, or likely optimal solution.


This function was introduced in Analytica 4.3, an earlier version of the function was called LpOpt.

See Also


You are not allowed to post comments.