Explore nonlinear optimizers, both local/"quasi-Newton" and global/stochastic, for the exact solver. For instance, see https://github.com/jbrea/CMAEvolutionStrategy.jl, https://jump.dev/, https://github.com/SciML/Optimization.jl.