LpOpt

Revision as of 19:02, 28 January 2010 by Lchrisman (talk | contribs)


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.