Difference between revisions of "Primary Optimization Functions"

Line 4: Line 4:
 
__TOC__
 
__TOC__
  
Using just these three functions, you will be able to define any optimization and view results.
+
Using just these four functions, you will be able to define any optimization and view results.
* [http://wiki.analytica.com/index.php?title=DefineOptimization DefineOptimization]()
+
* DefineOptimization()
* [http://wiki.analytica.com/index.php?title=OptSolution OptSolution]()
+
* OptSolution()
* [http://wiki.analytica.com/index.php?title=OptObjective OptObjective]()
+
* OptObjective()
* [http://wiki.analytica.com/index.php?title=OptObjectiveSa OptObjectivesa]()
+
* OptObjectivesa()
  
 +
==DefineOptimization()==
 +
This function defines an optimization problem. It automatically determines the type of optimization: LP, QP, or NLP.<ref> [[DefineOptimization]]() replaces [[LpDefine]](), [[QpDefine]]() and [[NlpDefine]]() used in Analytica Optimizer releases previous to 4.3. These legacy functions are still supported for backward compatibility with older models. See the Analytica Wiki wiki.lumina.com for details.)</ref> If you want to specify a particular type of optimization instead of having Analytica make the choice auto-matically, use DefineOptimization() with the optional Type parameter (see sub-section below).
  
 +
When DefineOptimization() is evaluated, it returns a special object, which displays as: «LP», «QP», «QCP», «NCQCP», «NLP», or «NSP», depending on the type of problem. This object encapsulates an encoding of the problem definition that is passed to the solution functions.
 +
 +
<tip title="Tip">
 +
Double-clicking on the special object in the DefineOptimization() evaluation window will display a new window containing details about the optimization. The new window may also contain clickable objects that let you drill down to more specific levels of detail.
 +
</Tip>
 +
 +
==Notes==
 +
<references>
  
 
==See Also==
 
==See Also==

Revision as of 04:50, 30 December 2015

Using just these four functions, you will be able to define any optimization and view results.

  • DefineOptimization()
  • OptSolution()
  • OptObjective()
  • OptObjectivesa()

DefineOptimization()

This function defines an optimization problem. It automatically determines the type of optimization: LP, QP, or NLP.[1] If you want to specify a particular type of optimization instead of having Analytica make the choice auto-matically, use DefineOptimization() with the optional Type parameter (see sub-section below).

When DefineOptimization() is evaluated, it returns a special object, which displays as: «LP», «QP», «QCP», «NCQCP», «NLP», or «NSP», depending on the type of problem. This object encapsulates an encoding of the problem definition that is passed to the solution functions.

Tip

Double-clicking on the special object in the DefineOptimization() evaluation window will display a new window containing details about the optimization. The new window may also contain clickable objects that let you drill down to more specific levels of detail.

Notes

<references>

See Also

  1. DefineOptimization() replaces LpDefine(), QpDefine() and NlpDefine() used in Analytica Optimizer releases previous to 4.3. These legacy functions are still supported for backward compatibility with older models. See the Analytica Wiki wiki.lumina.com for details.)
Comments


You are not allowed to post comments.