Difference between revisions of "Specifying Settings"

(Created page with "Category: Analytica Optimizer Guide <breadcrumbs> Analytica Optimizer Guide > {{PAGENAME}}</breadcrumbs><br /> If you want to change the value for a single control settin...")
 
 
(7 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 />
  
If you want to change the value for a single control setting, you can specify values for two optional parameters, '''settingName''' and '''settingValue''', to [http://wiki.analytica.com/index.php?title=DefineOptimization DefineOptimization](), providing the text name of the setting to '''settingName''', and the numeric value to '''settingValue'''.
+
If you want to change the value for a single control setting, you can specify values for two optional parameters, «settingName» and «settingValue», to [[DefineOptimization]](), providing the text name of the setting to «settingName», and the numeric value to «settingValue». For example, if you want to set the <code>Scaling</code> parameter to 1, you would modify your call to [[DefineOptimization]]() as follows.
For example, if you want to set the Scaling parameter to 1, you would modify your call to [http://wiki.analytica.com/index.php?title=DefineOptimization DefineOptimization]() as follows.
 
  
<nowiki>   DefineOptimization( .., settingName: "Scaling", settingValue: 1 )</nowiki>
+
:<code>DefineOptimization(.., settingName: "Scaling", settingValue: 1)</code>
  
To alter more than one control setting, you need to supply arrays to these parameters. The arrays passed to '''settingName''' and '''settingValue''' should have a single common index. If the index of the array passed to '''settingValue''' is a list of labels, where the index labels contain the name of each control setting, then you only need to include the '''settingValue''' parameter.
+
To alter more than one control setting, you need to supply arrays to these parameters. The arrays passed to «settingName» and «settingValue» should have a single common index. If the index of the array passed to «settingValue» is a list of labels, where the index labels contain the name of each control setting, then you only need to include the «settingValue» parameter.
  
 
It is often convenient to specify control settings in a self-indexed edit table. The following steps illustrate this:
 
It is often convenient to specify control settings in a self-indexed edit table. The following steps illustrate this:
# Drag a variable node to your diagram, title it '''Opt Settings'''.
+
# Drag a variable node to your diagram, title it <code>Opt Settings</code>.
 
# In the definition pane, set the definition type to '''Table'''.
 
# In the definition pane, set the definition type to '''Table'''.
 
# In the '''Index Chooser''' box, select '''Opt Settings (Self)''' as the table index.
 
# In the '''Index Chooser''' box, select '''Opt Settings (Self)''' as the table index.
 
# Click the row heading cell, and change <code>Item</code> 1 to <code>Scaling</code>.
 
# Click the row heading cell, and change <code>Item</code> 1 to <code>Scaling</code>.
# With the row header still selected, press down-arrow to add a row.
+
# With the row header still selected, press ''down-arrow'' to add a row.
 
# Change the second row header cell to <code>MaxTime</code>.
 
# Change the second row header cell to <code>MaxTime</code>.
 
# Enter <code>1</code> into the first table body cell.
 
# Enter <code>1</code> into the first table body cell.
# Enter <code>30</code> into the second body table cell.
+
# Enter <code>30</code> into the second body table cell.<br />
  
 
::[[File:7-2.png|300px]]
 
::[[File:7-2.png|300px]]
  
<ol start="9"><li> In your call to [http://wiki.analytica.com/index.php?title=DefineOptimization DefineOptimization](), insert a settng parameter as follows.</li></ol>
+
<ol start="9"><li> In your call to [[DefineOptimization]](), insert a setting parameter as follows.</li></ol><br />
  
<nowiki>     DefineOptimization( ..., settingValue: Opt_Settings )</nowiki>
+
:<code>DefineOptimization( ..., settingValue: Opt_Settings)</code>
  
 
The Optimizer scales parameters and terminates after 30 seconds if the optimum has not been found. A self-indexed table set up in this fashion makes it easy to adjust multiple control settings if the need arises.
 
The Optimizer scales parameters and terminates after 30 seconds if the optimum has not been found. A self-indexed table set up in this fashion makes it easy to adjust multiple control settings if the need arises.
  
<footer>Optimizer Function Reference / {{PAGENAME}} / Examining Available Settings</footer>
+
==See Also==
 +
* [[DefineOptimization#Engine_Settings|Optimization engine settings]]
 +
* [[OptRead]]
 +
* [[Function calls and parameters]]
 +
* [[Definition menu]]
 +
 
 +
 
 +
<footer>Examining Engine Capabilities / {{PAGENAME}} / Examining Available Settings</footer>

Latest revision as of 21:26, 18 August 2016


If you want to change the value for a single control setting, you can specify values for two optional parameters, «settingName» and «settingValue», to DefineOptimization(), providing the text name of the setting to «settingName», and the numeric value to «settingValue». For example, if you want to set the Scaling parameter to 1, you would modify your call to DefineOptimization() as follows.

DefineOptimization(.., settingName: "Scaling", settingValue: 1)

To alter more than one control setting, you need to supply arrays to these parameters. The arrays passed to «settingName» and «settingValue» should have a single common index. If the index of the array passed to «settingValue» is a list of labels, where the index labels contain the name of each control setting, then you only need to include the «settingValue» parameter.

It is often convenient to specify control settings in a self-indexed edit table. The following steps illustrate this:

  1. Drag a variable node to your diagram, title it Opt Settings.
  2. In the definition pane, set the definition type to Table.
  3. In the Index Chooser box, select Opt Settings (Self) as the table index.
  4. Click the row heading cell, and change Item 1 to Scaling.
  5. With the row header still selected, press down-arrow to add a row.
  6. Change the second row header cell to MaxTime.
  7. Enter 1 into the first table body cell.
  8. Enter 30 into the second body table cell.
7-2.png
  1. In your call to DefineOptimization(), insert a setting parameter as follows.


DefineOptimization( ..., settingValue: Opt_Settings)

The Optimizer scales parameters and terminates after 30 seconds if the optimum has not been found. A self-indexed table set up in this fashion makes it easy to adjust multiple control settings if the need arises.

See Also


Comments


You are not allowed to post comments.