InsertSetup [Sensitivity]

Inserts a new sensitivity setup.

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

["NAME:<SetupName>", "SaveFields:=",

<SaveField>, ["Name:StartingPoint"], "MaxIterations:=",

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

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

<Constraint>,

["NAME:Goals", ["NAME:Goal",

<OptiGoalSpec>], ..., ["NAME:Goal",

<OptiGoalSpec>]], "Primary Goal:=". <PrimaryGoalID>,

"PrimaryError:=", <PrimaryError>]

<SensitivityVars> Array

["NAME:Variables",

"VarName:=", Array["i:=", <IncludeVar>,

"Min:=", <MinV>, "Max:=", <MaxV>,

"IDisp:=", <InitialDisp>],...

"VarName:=", ["i:=", <IncludeVar>,

"Min:=", <MinV>, "Max:=", <MaxV>,

"IDisp:=", <InitialDisp>]]

<InitialDisp> VarValue Index of the Primary goal. Index starts from zero.
<PrimaryError> Double Error associated with the Primary goal.
Return Value None

 

Python Syntax InsertSetup ("OptiSensitivity", <SensitivityParams>,<SensitivityVars>, <InitialDisp>,<PrimaryError>)
Python Example

oModule.InsertSetup(

"OptiSensitivity",

["NAME:SensitivitySetup1",

"SaveFields:=", true,

["NAME:StartingPoint"],

"MaxIterations:=", 20,

"PriorPSetup:=", "",

"PreSolvePSetup:=", true,

["NAME:Variables"],

["NAME:LCS"],

"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"]]]],

"Primary Goal:=", 1,

"PrimaryError:=", 0.001])