WPILibC++ 2027.0.0-alpha-4
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< Scalar, DecisionVariables >
 The result of a multistart solve. More...

Namespaces

namespace  slp

Functions

template<typename Scalar, typename DecisionVariables>
MultistartResult< Scalar, DecisionVariables > slp::multistart (function_ref< MultistartResult< Scalar, 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.