Difference between revisions of "LpOpt"

 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Optimization Functions]]
+
[[Category:Deprecated Optimization Functions]]
{{stub}}
+
[[Category:Doc Status D]] <!-- For Lumina use, do not change -->
 +
 +
''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 ==
 +
 
 +
* [[LpDefine]]
 +
* [[QpDefine]]
 +
* [[NlpDefine]]
 +
* [[LpStatusText]]
 +
* [[LpStatusNum]]
 +
* [[LpSolution]]

Latest revision as of 21:36, 22 January 2016


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.