Difference between revisions of "Examining Available Settings"
Jhernandez3 (talk | contribs) m |
|||
Line 4: | Line 4: | ||
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 <code>opt</code> 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> | |
+ | |||
+ | ==See Also== | ||
+ | * [[OptInfo]] | ||
+ | * [[OptEngineInfo]] | ||
+ | |||
<footer>Optimizer Function Reference / {{PAGENAME}} / Termination Controls</footer> | <footer>Optimizer Function Reference / {{PAGENAME}} / Termination Controls</footer> |
Revision as of 22:43, 7 April 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