#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.
|
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.
|
|