enopt⚓︎
Ensemble optimization methods compatible with OptimizerBase.
EnOpt
⚓︎
Bases: OptimizerBase
Ensemble-based optimization (EnOpt).
obj_func_values
⚓︎
Legacy alias for fk.
__init__(x0, fun, jac=None, hess=None, args=(), bounds=None, callback=None, **options)
⚓︎
Initialize an EnOpt optimizer instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x0
|
ndarray
|
Initial control/state vector. |
required |
fun
|
callable
|
Objective function. |
required |
jac
|
callable
|
Ensemble gradient function. |
None
|
hess
|
callable
|
Ensemble Hessian function. |
None
|
args
|
tuple
|
The first tuple element is interpreted as the initial covariance. |
()
|
bounds
|
sequence
|
Lower and upper bounds for each state variable. |
None
|
callback
|
callable
|
Callback invoked after successful updates. |
None
|
**options
|
EnOpt configuration, plus everything :class: |
{}
|
log_columns()
⚓︎
The row of the iteration log: iteration, backtracking attempts, objective, step size, first covariance entry.
update_step()
⚓︎
Perform one EnOpt step with backtracking and optional resampling.