Optimizers API¶
OptimizationProperty¶
Defines one optimization variable.
Fields include:
nametype(MODEL_INPUTorNETLIST_VARIABLE)min_valuemax_valuestep- optional
unit - optional
linked_to
OptimizationType¶
MODEL_INPUT: variable passed to ONNX surrogate inputs.NETLIST_VARIABLE: variable patched directly in parsed netlist content.
DesignGoal and DesignParameter¶
DesignGoal combines:
- parameter enum (
DesignParameter), - optional min/max bounds,
- optional
frequency_range, - optional weight.
Penalty is computed from normalized squared bound violations.
Each DesignParameter declares the analysis it needs, so goals are grouped by simulation type and evaluated against the matching result. Small-signal parameters (S-parameters, Lp, Qs, k, mu, SRF, …) read the .AC network; the spectrum parameters read the HB or transient spectrum:
| Factory | Parameter name | Description |
|---|---|---|
make_power_dbm(node, simulation_type) |
Power_dBm[<node>] |
Output power in dBm at an analysis point |
make_gain_db(port, amplitude, z0, node, simulation_type) |
Gain_dB[<port>@<node>] |
Transducer gain in dB referred to a port's drive level |
make_isolation_db(node, simulation_type) |
Isolation_dB[<node>] |
Margin in dB between the target line and the strongest other line |
simulation_type defaults to SimulationType.HB; passing SimulationType.TRAN evaluates the same quantity on the transient spectrum and prefixes the name with TRAN:. These are built per netlist rather than taken from the static catalogue, because the available nodes and ports differ per circuit. See Advanced -> Harmonic Balance and Advanced -> Transient Analysis.
OptunaOptimizer¶
Default optimizer wrapper for Optuna.
Typical options:
sampler:tpe,random,simulated_annealing,autopruner:median,successive_halving,hyperbandmulti_objective: boolean
GradientDescentOptimizer¶
Used for local refinement workflows, including optional fine-tuning mode in COBRA.
Tip
Start with OptunaOptimizer and move to gradient descent only when you are refining near a known good region.