Lightweight numerical optimisers used by the Bonsai core. These mirror the scipy primitives the reference python code relies on: a 1-D Brent root-finder (scipy.optimize.brentq) and a bound-constrained L-BFGS (scipy.optimize.minimize(method="L-BFGS-B", jac=True)).
Optimizer
01 Syntax
Microsoft.VisualBasic.DataMining.Bonsai.Optimizer
02 Methods
03 Members
Find a root of f in [a, b] assuming f(a) and f(b) have opposite signs. Mirrors scipy.optimize.brentq with the same convergence criteria.
Minimise obj subject to box constraints bounds using a limited-memory BFGS with gradient projection. Mirrors scipy L-BFGS-B on the small (3-variable) problems Bonsai needs.