Difference between revisions of "LpOpt"
m (adding doc status category stub page) |
|||
Line 2: | Line 2: | ||
[[Category:Doc Status D]] <!-- For Lumina use, do not change --> | [[Category:Doc Status D]] <!-- For Lumina use, do not change --> | ||
− | + | = 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 = | ||
+ | |||
+ | * [[LpDefine]], [[QpDefine]], [[NlpDefine]] | ||
+ | * [[LpStatusText]], [[LpStatusNum]] | ||
+ | * [[LpSolution]] |
Revision as of 19:02, 28 January 2010
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
Enable comment auto-refresher