Difference between revisions of "OptObjective"

 
Line 2: Line 2:
 
[[Category:Doc Status D]] <!-- For Lumina use, do not change -->
 
[[Category:Doc Status D]] <!-- For Lumina use, do not change -->
 
   
 
   
''[[New to Analytica 4.3]]'' -- prior to Analytica 4.3, was called [[LpOpt]].
 
 
= OptObjective(opt) =
 
  
 +
== OptObjective(opt) ==
 
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]].
 
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.
 
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.
  
= See Also =
+
==History==
 +
This function was introduced in [[Analytica 4.3]], an earlier version of the function was called [[LpOpt]].
  
 +
== See Also ==
 
* [[DefineOptimization]]
 
* [[DefineOptimization]]
* [[OptStatusText]], [[OptStatusNum]]
+
* [[OptStatusText]]
 +
* [[OptStatusNum]]
 
* [[OptSolution]]
 
* [[OptSolution]]

Latest revision as of 21:35, 22 January 2016


OptObjective(opt)

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.

History

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

See Also

Comments


You are not allowed to post comments.