Derivative-free and global search
Compare derivative-free methods on Rosenbrock and Styblinski–Tang, and active CMA-ES on rotated ellipsoid and Ackley problems.
Nelder–Mead
The simplex comparison uses 12-variable chained Rosenbrock, with the same alternating starting-point formula. Basin and argmin use identical simplex coordinates and standard coefficients. gomez 0.5.1 and NLopt construct their own simplexes with their default coefficients.
All seek . Basin, argmin, and gomez have a 10000-iteration cap; NLopt has a 10000-objective-evaluation cap.
NEWUOA
Basin and NLopt run Powell's model-based derivative-free method on 30-dimensional Styblinski–Tang, starting at the origin. Basin follows the modernized PRIMA implementation, while NLopt uses Powell's reference.
The initial radius is , the final radius is , and the interpolation set has points. Basin has a 10,000-iteration safety cap and NLopt a 10,000-evaluation cap.
A single start does not measure the probability of finding the global minimum on a multimodal problem.
Active CMA-ES
Basin is compared with cmaes 0.2.2 on two unconstrained problems with 40 variables. Both use active covariance adaptation; the reference explicitly selects Weights::Negative. Both start with mean , identity covariance, step size , and a population of 16. Runs use a fixed seed of 0, without restarts or local search. Matching seed numbers do not produce the same random samples across libraries.
The rotated ellipsoid is a nonseparable quadratic with condition number :
where is the orthonormal discrete cosine transform, with and for . Its global minimum is zero at the origin. The dense rotation prevents the solvers from exploiting coordinate separability.
Returned solutions and evaluation counts
basin: seed 0; TargetReached. Independent accuracy check passed. Returned (0.00000423111, 0.00000373489, 0.00000335178, 0.00000302749, 0.00000310481, 0.00000418565, …), objective 9.911e-9. 3038 sampled generations; 51646 objective calls.
cmaes: seed 0; TargetReached. Independent accuracy check passed. Returned (-0.00000284406, -0.00000297125, -0.00000322959, -0.00000354005, -0.00000423557, -0.00000459631, …), objective 8.956e-9. 3123 sampled generations; 49968 objective calls.
Ackley has a broad outer funnel and many local minima. We use Basin's standard formula with , , and , whose global minimum is also zero at the origin. These runs impose no box bounds.
Returned solutions and evaluation counts
basin: seed 0; TargetReached. Independent accuracy check passed. Returned (2.16435e-9, 1.50427e-9, -1.06551e-9, -2.13890e-10, -1.58400e-9, -1.23121e-9, …), objective 9.170e-9. 606 sampled generations; 10302 objective calls.
cmaes: seed 0; TargetReached. Independent accuracy check passed. Returned (-1.87960e-9, -3.08444e-9, 3.01102e-9, 3.32389e-9, -4.01200e-9, 1.45225e-9, …), objective 9.839e-9. 602 sampled generations; 9632 objective calls.
Both drivers seek a best evaluated objective of at most , with safety caps of 100,000 objective calls and 10,000 sampled generations. Budgets are checked at generation boundaries, so a run can exceed its evaluation cap by less than one generation. The reference's optional objective-change and distribution-size tolerances are zeroed, and its stagnation window lies beyond the generation cap. Its intrinsic numerical safeguards remain enabled, and their termination reasons remain visible. Basin's optional distribution-size check is disabled. Independent checks recompute the best returned point's objective outside the timer; a budget or safeguard stop alone does not count as success.
Basin uses nalgebra 0.34.2, while cmaes uses nalgebra 0.33.3. Basin evaluates the mean as well as the 16 population members, charging 17 objective calls per sampled generation; the reference evaluates only the 16 members. Basin uses with_eigen_update_period(3) to refresh its eigendecomposition every three generations, matching the reference's cadence for this workload. Basin's solver default remains every generation. Periodic refresh changes seeded trajectories and can affect convergence.
Each run warms up once and uses 11 timing repetitions of the same numerical path. A single seed does not measure stochastic reliability.