smcopt⚓︎
Stochastic Monte-Carlo optimization compatible with OptimizerBase.
SmcOpt
⚓︎
Bases: OptimizerBase
Sequential Monte-Carlo optimizer with resampling and backtracking.
obj_func_values
⚓︎
Legacy alias for fk.
__init__(x0, fun, sens=None, args=(), bounds=None, callback=None, **options)
⚓︎
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x0
|
ndarray
|
Initial state |
required |
fun
|
callable
|
objective function |
required |
sens
|
callable
|
Ensemble sensitivity function |
None
|
args
|
tuple
|
Initial covariance tuple where |
()
|
bounds
|
list
|
(min, max) pairs for each element in x. None is used to specify no bound. |
None
|
callback
|
callable
|
Callback invoked after successful updates. |
None
|
options
|
dict
|
SmcOpt configuration, plus everything :class:
|
{}
|
log_columns()
⚓︎
The row of the iteration log: iteration, backtracking attempts, objective, best objective seen, step size.
update_step()
⚓︎
Perform one SMC update step with backtracking and optional resampling.