Difference between revisions of "OptObjective"
(Created page with 'Category:Optimization Functions Category:Doc Status D <!-- For Lumina use, do not change --> ''New to Analytica 4.3'' -- prior to Analytica 4.3, was called [[LpOpt]…') |
|||
Line 4: | Line 4: | ||
''[[New to Analytica 4.3]]'' -- prior to Analytica 4.3, was called [[LpOpt]]. | ''[[New to Analytica 4.3]]'' -- prior to Analytica 4.3, was called [[LpOpt]]. | ||
− | = OptObjective( | + | = OptObjective(opt) = |
− | Returns the value of the objective function at the optimum solution. | + | 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. |
Revision as of 23:43, 10 February 2011
New to Analytica 4.3 -- prior to Analytica 4.3, was called LpOpt.
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.
See Also
Comments
Enable comment auto-refresher