LpOpt

Revision as of 21:36, 22 January 2016 by Bbecane (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Deprecated as of Analytica 4.3. Renamed to OptObjective in Analytica 4.3 which you should now use instead.

LpOpt(lp)

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

If the LP has not yet been solved, the evaluation of LpOpt will cause it to be solved. If it has already been solved (as a result of LpSolution, LpStatusText, 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 LpStatusNum or LpStatusText, since the returned value is only valid when the solver reports finding an optimal, or likely optimal solution.

See Also

Comments


You are not allowed to post comments.