Skip to content

Constrained API ​

API reference for the 5 classes of opt.constrained. This page is generated from the source; see the algorithm pages for formulations and references.

Imports ​

python
from opt.constrained import (
    AugmentedLagrangian,
    BarrierMethodOptimizer,
    PenaltyMethodOptimizer,
    SequentialQuadraticProgramming,
    SuccessiveLinearProgramming,
)

Common interface ​

Every class takes the objective func, the search-space lower_bound, upper_bound and dim, usually max_iter and seed, and implements search() -> tuple[np.ndarray, float]. See AbstractOptimizer.

Classes ​

ClassAlgorithmAdditional parameters
AugmentedLagrangianAugmented Lagrangian Methodc=1, lambda_=0.1, static_cost=10000000000.0
BarrierMethodOptimizerBarrier Method (Interior Point)constraints=None, initial_mu=10.0, mu_reduction=0.5
PenaltyMethodOptimizerPenalty Method (Quadratic Penalty)constraints=None, eq_constraints=None, initial_penalty=1.0, penalty_growth=2.0
SequentialQuadraticProgrammingSequential Quadratic Programmingconstraints=None, eq_constraints=None, tol=1e-06
SuccessiveLinearProgrammingSuccessive Linear Programming-

Released under the MIT License.