qdesignoptimizer.anmod_optimizer module

class qdesignoptimizer.anmod_optimizer.ANModOptimizer(opt_targets: List[OptTarget], system_target_params: dict[str, float | int], adjustment_rate: float = 1, minimization_tol: float = 1e-12)[source]

Bases: object

Approximate Nonlinear Model-driven Optimizer (ANModOptimizer)

calculate_target_design_var(system_optimized_params: dict[str, float | int], variables_with_units: dict[str, str]) tuple[dict, list[dict]][source]

Calculate the new design value for the optimization targets.

static group_targets(optimization_targets: List[OptTarget]) List[List[OptTarget]][source]

Group optimization targets based on their independent_target attribute.