InsertSetup [Statistical]

Inserts a new statistical setup.

UI Access Right-click Optimetrics in the project tree, and then click Add>Statistical on the shortcut menu.
Parameters
Name Type Description
<StatisticalParams> Array

Array("NAME:<SetupName>", "SaveFields:=",

<SaveField>, <StartingPoint>, "MaxIterations:=",

<MaxIter>, "PriorPSetup:=", <PriorSetup>,

"PreSolvePSetup:=", <Preceed>, <StatisticalVars>,

Array("NAME:Goals", Array("NAME:Goal",

<OptiGoalSpec>), …, Array("NAME:Goal",

<OptiGoalSpec>)))

<StatisticalVars> Array

Array("NAME:Variables",

"VarName:=", Array("i:=", <IncludeVar>, "Dist:=",

<DistType>, "Tol:=", <Tolerance>,

"StdD:=", <StdD>, "Min:=", <MinCutoff>, "Max:=",

<MaxCutoff>, ...

"VarName:=", Array("i:=", <IncludeVar>, "Dist:=",

<DistType>, "Tol:=", <Tolerance>, "StdD:=",

<StdD>, "Min:=", <MinCutoff>, "Max:=",

<MaxCutoff>))

<DistType> String Distrbution can be "Gaussian" or "Uniform".
<Tolerance> VarValue The tolerance for the variable when distribution is Uniform
<StdD> VarValue The standard deviation for the variable when distribution is Gaussian.
<MinCutoff> Double The minimum cut-off for the variable when distribution is Gaussian.
<MaxCutoff> Double The maximum cut-off for the variable when distribution is Gaussian.
Return Value None

 

Python Syntax InsertSetup ("OptiStatistical", <StatisticalParams>)
Python Example

oModule.InsertSetup(

"OptiStatistical", _

["NAME:StatisticalSetup1", _

"SaveFields:=", true, _

["NAME:StartingPoint"],_

"MaxIterations:=", 50,_

"PriorPSetup:=", "", _

["NAME:Variables"], _

["NAME:Goals", _

["NAME:Goal", _

"Solution:=", "Setup1 : LastAdaptive", _

"Calculation:=", "returnloss", _

"Context:=", "", _

["NAME:Ranges", _

"Range:=", ["Var:=", "Freq", _

"Type:=", "s",_

"Start:=", "8GHz", "Stop:=", "8GHz"]]],_

["NAME:Goal",_

"Solution:=", "Setup1 : LastAdaptive",_

"Calculation:=", "reflect",_

"Context:=", "", _

["NAME:Ranges",_

"Range:=", ["Var:=", "Freq", "Type:=",_

"s", "Start:=", "8GHz", "Stop:=", "8GHz"]]]])

 

For Q3D Extractor and Circuit the command details are as follows:

Inserts a new statistical setup.

Command: Right-click Optimetrics in the project tree, and then click Add>Statistical on the shortcut menu.

Syntax: InsertSetup "OptiStatistical", <StatisticalParams>

Return Value: None

Parameters: <StatisticalParams>

Array("NAME:<SetupName>", "SaveFields:=",

<SaveField>, <StartingPoint>, "MaxIterations:=",

<MaxIter>, "PriorPSetup:=", <PriorSetup>,

"PreSolvePSetup:=", <Preceed>, <StatisticalVars>,

Array("NAME:Goals", Array("NAME:Goal",

<OptiGoalSpec>), …, Array("NAME:Goal",

<OptiGoalSpec>))),

<StatisticalVars>

Array("NAME:Variables",

"VarName:=", Array("i:=", <IncludeVar>, "Dist:=",

<DistType>, "Tol:=", <Tolerance>,

"StdD:=", <StdD>, "Min:=", <MinCutoff>, "Max:=",

<MaxCutoff>, ...

"VarName:=", Array("i:=", <IncludeVar>, "Dist:=",

<DistType>, "Tol:=", <Tolerance>, "StdD:=",

<StdD>, "Min:=", <MinCutoff>, "Max:=",

<MaxCutoff>))

Parameters:

<DistType>

Type : <string>

Distrbution can be "Gaussian" or "Uniform".

<Tolerance>

Type: <VarValue>

The tolerance for the variable when distribution is Uniform.

<StdD>

Type: <VarValue>

The standard deviation for the variable when distribution is Gaussian.

<MinCutoff>

Type: <double>

The minimum cut-off for the variable when distribution is Gaussian.

<MaxCutoff>

Type: <double>

The maximum cut-off for the variable when distribution is Gaussian.