Runs multiple solvers and returns the best result (highest log-likelihood). Useful when unsure which method will work best for a given problem.
Details
For parallel execution or more than 2 solvers, use race.
See also
race for parallel execution
Examples
# Race gradient-based vs derivative-free
strategy <- gradient_ascent() %|% nelder_mead()
# Race multiple methods
strategy <- gradient_ascent() %|% bfgs() %|% nelder_mead()