Changes

Jump to: navigation, search

Running Parametric Sweeps and Monte Carlo Tests

79 bytes added, 21:19, 19 August 2015
{{Note | Caution should be exercised in setting up multilevel sweeps as a large number of steps combined with long Test runs can result in very long computation times.}}
[[File:b2MAN_Fig216.png|thumb|600px|The output graph of a parametric sweep.]]
===Output of a Parametric Sweep===
The results of a Parametric Sweep Test can be displayed either in a 2D graph or in a table or both. The procedure to define your data plots is very similar to a basic (single-run) test. This is done in the "2D Output" section of the "Sweep" tab at the bottom of the test setup panel. Check either the "Graph" or "Table" or both checkboxes and click one of the buttons labeled "Preset Graph Plots" or "Preset Table Plots" to open up the "Edit Plot List" dialog. The main difference with a basic test graph or table is that the sweep results appear as a family of Cartesian curves on the 2D graph or a set of data columns in a table. Each individual curve or data column corresponds to one sample of the sweep variable. These are differentiated by bracketed indices like variable_name[i], i = 0,1,2, ...
 
<table>
<tr>
<td>
[[File:b2MAN_Fig216.png|thumb|640px|The output graph of a parametric sweep.]]
</td>
</tr>
</table>
==Monte Carlo Tests==
To select and set up the statistical properties of [[parameters]] from the Monte Carlo Settings Dialog, select the appropriate parameter from the one of the lists in the available tabs. Resistor and capacitor distributions are set through their own dedicated buttons because Monte Carlo tolerance is built into their models and requires its own setup. For other devices, use the "Edit Distribution" button to set up each particular parameter for Monte Carlo analysis. This opens up the "Parameter Distribution Settings Dialog". The name of the Part/Parameter that you are setting the distribution for is displayed in the "Parameter" box. Make sure to check the checkbox labeled "Override Schematic Value". Use the "Random Type" drop-down box to set the distribution type. The "random Type" drop-down list is set to "Fixed" by default, meaning that the selected parameter is currently deterministic. Change the distribution type to "Uniform" or "Gaussian (Normal". You can also choose the "Discrete Value List" option. In that case, either enter the discrete values manually in the edit box provided or use the "Load From File" button to import the numeric values from a text file. Enter the tolerance in the box labeled "Std Deviation" (or sigma) and indicate if it is expressed as a percentage. You can also associate the percentage with multiple sigmas. Enter a value larger than one in the box labeled "# Std Deviations", and the sigma value is adjusted accordingly. You can set "Max Cutoff" and "Min Cutoff" values for the parameter. However, you need to enable these options. In that case, if the designated random distribution generates a parameter value that fall below the Min Cutoff or above the Max Cutoff, it will be eliminated, and a new legitimate value will be generated.
 
[[File:b2MAN_Fig220.png|thumb|600px|The histogram output of a Monte Carlo test.]]
===Output of a Monte Carlo Simulation===
The results of a Monte Carlo Test can be displayed either in a 2D graph or in the form of a histogram or both. A Histogram displays the distribution frequency of the results over the parameter range. Each graph type is set up under the respective tab in the Monte Carlo setup section of the Test Setup Panel. If you specify "2D Output", the results will appear as a set of Cartesian curves on the 2D graph. If you specify "Histogram", the results will appear as a bar chart.
 
<table>
<tr>
<td>
[[File:b2MAN_Fig220.png|thumb|640px|The histogram output of a Monte Carlo test.]]
</td>
</tr>
</table>
===More on Shared Models===
28,333
edits