InsertSetup [Optimization]

Use: Inserts a new optimization setup.

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

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

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

<Optimizer>,

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

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

<OptimizationVars>, <Constraint>,

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

<OptiGoalSpec>, <OptimizationGoalSpec>), ...

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

<OptimizationGoalSpec>)),

"Acceptable_Cost:=", <AcceptableCost>, "Noise:=",

<Noise>, "UpdateDesignWhenDone:=", <UpdateDesign>

<OptimizationVars> Array

Array("NAME:Variables", "VarName:=", Array("i:=",

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

"MinStep:=", <MinStepV>, "MaxStep:=", <MaxStepV>),

………………. "VarName:=", Array("i:=", <IncludeVar>, "Min:=", <MinV>, "Max:=", <MaxV>,

"MinStep:=", <MinStepV>, "MaxStep:=", <MaxStepV>))

<MinStepV> VarValue The minimum step of the variable.
<MaxStepV> VarValue The maximum step of the variable.
<AcceptableCost> Double The acceptable cost value for the optimizer to stop.
<Noise> Double The noise of the design.
<UpdateDesign> Boolean Specifies whether or not to apply the optimal variation to the design after the optimization is done.
<OptimizationGoalSpec> Array

"Condition:=", <OptimizationCond>,

Array("NAME:GoalValue", "GoalValeType:=",

<GoalValueType>,

"Format:=", <GoalValueFormat>, "bG:=",

Array("v:=", <GoalValue>)), "Weight:=", <Weight>)

<OptimizationCond> String Either "<=", "==", or ">="
<GoalValueType> String Either "Independent" or "Dependent"
<GoalValueFormat> String Either "Real/Imag" or "Mag/Ang".
<GoalValue> String Value in string. Value can be a real number, complex number, or expression.
Return Value None

 

<MinStepV>

Type : <VarValue>

The minimum step of the variable.

<MaxStepV>

Type: <VarValue>

The maximum step of the variable.

<AcceptableCost>

Type: <double>

The acceptable cost value for the optimizer to stop.

<Noise>

Type: <double>

The noise of the design.

<UpdateDesign>

Type: <bool>

Specifies whether or not to apply the optimal variation to the design after the optimization is done.

<OptimizationGoalSpec>

"Condition:=", <OptimizationCond>,

Array("NAME:GoalValue", "GoalValueType:=",

<GoalValueType>,

"Format:=", <GoalValueFormat>, "bG:=",

Array("v:=", <GoalValue>)), "Weight:=", <Weight>)

<OptimizationCond>

Type: <string>

Either "<=", "==", or ">="

<GoalValueType>

Type: <string>

Either "Independent" or "Dependent"

<GoalValueFormat>

Type:<string>

Either "Real/Imag" or "Mag/Ang".

<GoalValue>

Type: <string>

Value in string. Value can be a real number, complex number, or expression.

Python Syntax InsertSetup ("OptiOptimization", <OptimizationParams>)
Python Example

oModule.InsertSetup("OptiOptimization",

["NAME:OptimizationSetup1",

"SaveFields:=", false, _

["NAME:StartingPoint", "$length:=", "8mm",

"$width:=", "14.5mm"],

"Optimizer:=", "Quasi Newton",

"MaxIterations:=", 100,

"PriorPSetup:=", "ParametricSetup1",

"PreSolvePSetup:=", true,

["NAME:Variables",

"$length:=", ["i:=", true, "Min:=", "6mm",

"Max:=", "18mm",

"MinStep:=", "0.001mm", "MaxStep:=",

"1.2mm"],

"$width:=", ["i:=", true, "Min:=",

"6.5mm", "Max:=", "19.5mm",

"MinStep:=", "0.001mm", "MaxStep:=",

"1.3mm"]],

["NAME:LCS"],

["NAME:Goals",

["NAME:Goal",

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

"Calculation:=", "reflect",

"Context:=", "",

["NAME:Ranges",

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

"Type:=", "s",

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

"Condition:=", "&lt;=",

["NAME:GoalValue",

"GoalValueType:=", "Independent",

"Format:=", "Real/Imag",

"bG:=", ["v:=", "[0.0001]"]],

"Weight:=", "[1]"]],

"Acceptable_Cost:=", 0.0002,

"Noise:=", 0.0001,

"UpdateDesign:=", true,

"UpdateIteration:=", 5,

"KeepReportAxis:=", true,

"UpdateDesignWhenDone:=", true

])