WPILibC++ 2027.0.0-alpha-2
Loading...
Searching...
No Matches
multistart.hpp File Reference
#include <algorithm>
#include <future>
#include <span>
#include <gch/small_vector.hpp>
#include "sleipnir/optimization/solver/exit_status.hpp"
#include "sleipnir/util/function_ref.hpp"

Go to the source code of this file.

Classes

struct  slp::MultistartResult< DecisionVariables >
 The result of a multistart solve. More...
 

Namespaces

namespace  slp
 

Functions

template<typename DecisionVariables >
MultistartResult< DecisionVariables > slp::Multistart (function_ref< MultistartResult< DecisionVariables >(const DecisionVariables &initial_guess)> solve, std::span< const DecisionVariables > initial_guesses)
 Solves an optimization problem from different starting points in parallel, then returns the solution with the lowest cost.