Skip to content

← Back to optimization

OptimizationBasis

Source: Distributed_Design_Optimizer/subsystem/optimization/OptimizationBasis.py

Optimization basis module.

This module provides the base class for optimization implementations.

Classes

OptimizationBasis

Inherits from: OptimizationInterface

Base implementation of the optimization interface.

Provides the foundational optimization functionality for subsystem optimization, delegating the actual optimization to a configured optimizer algorithm.

Methods

init(self, optimizer: SolverInterface) → None

Initialize the optimization basis with the solver to delegate to.

Args:

optimizer: The solver algorithm used to optimize the subsystem.

callOptimizer(self, subsystemin: SubSystemInterface) → OptimDataBasis

📐 Pseudocode: Call the optimizer wrapper (Line 1) → SubSystemBasis.run_IterativeOptimization

Execute the optimizer on the given subsystem.

Runs the configured optimizer algorithm on the subsystem and returns the optimization results.

Args:

subsystemin: The subsystem to be optimized.

Returns:

The optimization results produced by the configured solver.

get_Optimizer(self) → SolverInterface

Return the solver algorithm configured for this optimization.

Returns:

The solver instance that this optimization delegates to.