embcol.optimizers.TrustRegionLocalOptimizer¶
- class embcol.optimizers.TrustRegionLocalOptimizer(problem, callback=(), color_diff_rms_tol=0.02)[source]¶
Bases:
BaseLocalOptimizerTrust-region local optimizer.
Search a local optimum by the trust-region method.
- Parameters:
problem (
embcol.problem.Problem) – Optimization problem.callback (callable or sequence of callable, optional) – Function(s) called after each iteration. The signature of a function must be
(params, cost, state) -> None, whereparamsis a one-dimensional array of parameters of type numpy.ndarray,costis a cost value of type float, andstateis a dict object of str to float detailing an optimization state.color_diff_rms_tol (
float, optional) – Convergence tolerance for the root mean square of color differences among samples.
Inherited methods
optimize(init_oklabs[, max_n_iters])Run an optimization.