Difference between revisions of "Examining Available Settings"
Jhernandez3 (talk | contribs) (Created page with "Category: Analytica Optimizer Guide <breadcrumbs> Analytica Optimizer Guide > {{PAGENAME}}</breadcrumbs><br /> The following function returns the set of control settings...") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category: Analytica Optimizer Guide]] | [[Category: Analytica Optimizer Guide]] | ||
− | <breadcrumbs> Analytica Optimizer Guide > {{PAGENAME}}</breadcrumbs><br /> | + | <breadcrumbs> Analytica Optimizer Guide > Optimizer control settings > {{PAGENAME}}</breadcrumbs><br /> |
The following function returns the set of control settings used for a problem. | The following function returns the set of control settings used for a problem. | ||
− | + | :<code>OptInfo(opt, "Setting")</code> | |
− | Replace opt with the name of the variable holding the result from [ | + | Replace <code>opt</code> with the name of the variable holding the result from [[DefineOptimization]](). |
− | You can also access the range of allowed values for each setting, as well as the default value, using [ | + | You can also access the range of allowed values for each setting, as well as the default value, using [[OptInfo]]() or [[OptEngineInfo]](). [[OptInfo]] is used when you have a problem instance, [[OptEngineInfo]] is defined when you know the name of the engine but don’t have a problem instance. |
The range (min/max) of possible values for each setting, and the default value, can be obtained using these — first case using an existing problem instance, second case using the engine name: | The range (min/max) of possible values for each setting, and the default value, can be obtained using these — first case using an existing problem instance, second case using the engine name: | ||
− | + | :<code>OptInfo(opt, ["MinSetting", "MaxSetting", "Defaults"])</code> | |
− | + | :<code>OptEngineInfo("LP/Quadratic", ["MinSetting", "MaxSetting", "Defaults"])</code> | |
− | <footer> | + | ==See Also== |
+ | * [[OptInfo]] | ||
+ | * [[OptEngineInfo]] | ||
+ | |||
+ | |||
+ | <footer>Specifying Settings / {{PAGENAME}} / Termination Controls</footer> |
Latest revision as of 17:20, 24 May 2016
The following function returns the set of control settings used for a problem.
OptInfo(opt, "Setting")
Replace opt
with the name of the variable holding the result from DefineOptimization().
You can also access the range of allowed values for each setting, as well as the default value, using OptInfo() or OptEngineInfo(). OptInfo is used when you have a problem instance, OptEngineInfo is defined when you know the name of the engine but don’t have a problem instance.
The range (min/max) of possible values for each setting, and the default value, can be obtained using these — first case using an existing problem instance, second case using the engine name:
OptInfo(opt, ["MinSetting", "MaxSetting", "Defaults"])
OptEngineInfo("LP/Quadratic", ["MinSetting", "MaxSetting", "Defaults"])
See Also
Comments
Enable comment auto-refresher