WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
Multistart.hpp File Reference
#include <algorithm>
#include <future>
#include <span>
#include <wpi/SmallVector.h>
#include "sleipnir/optimization/SolverStatus.hpp"
#include "sleipnir/util/FunctionRef.hpp"

Go to the source code of this file.

Classes

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

Namespaces

namespace  sleipnir
 

Functions

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