EditSetup [Optimization]

Modifies an existing optimization setup.

UI Access Right-click the setup in the Project Manager tree, and then click Properties from the shortcut menu
Parameters
Name Type Description
<SetupName> String Name of the Setup
<OptimizationParams> List Parameters that define the setup; examples are listed below.
Return Value None

 

Python Syntax EditSetup (<SetupName>, <OptimizationParams>)
Python Example

oModule.EditSetup("OptimizationSetup1",

[

"NAME:OptimizationSetup1",

"UseFastCalculationUpdateAlgo:=", False,

"FastCalcOptCtrledByUser:=", False,

"IsEnabled:=", True,

"SaveSolutions:=", False,

[

"NAME:StartingPoint"

],

"Optimizer:=", "Quasi Newton",

[

"NAME:AnalysisStopOptions",

"StopForNumIteration:=" , True,

"StopForElapsTime:=", False,

"StopForSlowImprovement:=", False,

"StopForGrdTolerance:=", False,

"MaxNumIteration:=",1000,

"MaxSolTimeInSec:=",3600,

"RelGradientTolerance:=", 0,

"MinNumIteration:=", 10

],

"CostFuncNormType:=", "L2",

"PriorPSetup:=", "",

"PreSolvePSetup:=", True,

[

"NAME:Variables"

],

[

"NAME:LCS"

],

[

"NAME:Goals",

[

"NAME:Goal",

"ReportType:=", "Standard",

"Solution:=", "TR",

[

"NAME:SimValueContext",

"SimValueContext:=", [1,0,2,0,False,False,-1,1,0,1,1,"",0,0

]

],

"Calculation:=", "acosh(Time)",

"Name:=", "Time",

[

"NAME:Ranges",

"Range:=", ["Var:=", "Time","Type:=", "a"]

],

"Condition:=", "==",

[

"NAME:GoalValue",

"GoalValueType:=", "Independent",

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

"bG:=", ["v:=", "[1;]"]

],

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

],

"Acceptable_Cost:=" , 0,

"Noise:=", 0.0001,

"UpdateDesign:=", False,

"UpdateIteration:=", 5,

"KeepReportAxis:=", True,

"UpdateDesignWhenDone:=", True

])

 

VB Syntax EditSetup <SetupName>, <OptimizationParams>
VB Example

oModule.EditSetup "OptimizationSetup1",

Array("NAME:OptimizationSetup1", "UseFastCalculationUpdateAlgo:=", _

false, "FastCalcOptCtrledByUser:=", false,

"IsEnabled:=", true, "SaveSolutions:=", _

false, Array("NAME:StartingPoint"), "Optimizer:=",

"Quasi Newton", Array("NAME:AnalysisStopOptions", "StopForNumIteration:=", _

true, "StopForElapsTime:=", false,

"StopForSlowImprovement:=", false, "StopForGrdTolerance:=", _

false, "MaxNumIteration:=", 1000, "MaxSolTimeInSec:=",

3600, "RelGradientTolerance:=", _

0, "MinNumIteration:=", 10), "CostFuncNormType:=",

"L2", "PriorPSetup:=", "", "PreSolvePSetup:=", _

true, Array("NAME:Variables"), Array("NAME:LCS"),

Array("NAME:Goals", Array("NAME:Goal", "ReportType:=", _

"Standard", "Solution:=", "TR", Array("NAME:SimValueContext",

"SimValueContext:=", Array( _

1, 0, 2, 0, false, false, -1, 1, 0, 1, 1, "", 0, 0)),

"Calculation:=", "Time", "Name:=", _

"Time", Array("NAME:Ranges", "Range:=",

Array("Var:=", "Time", "Type:=", "a")), "Condition:=", _

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

"Independent", "Format:=", _

"Real/Imag", "bG:=", Array("v:=", "[1;]")),

"Weight:=", "[1;]")), "Acceptable_Cost:=", _

0, "Noise:=", 0.0001, "UpdateDesign:=", false,

"UpdateIteration:=", 5, "KeepReportAxis:=", _

true, "UpdateDesignWhenDone:=", true)