WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
SolverStatus.hpp
Go to the documentation of this file.
1// Copyright (c) Sleipnir contributors
2
3#pragma once
4
8
9namespace sleipnir {
10
11/**
12 * Return value of OptimizationProblem::Solve() containing the cost function and
13 * constraint types and solver's exit condition.
14 */
16 /// The cost function type detected by the solver.
17 ExpressionType costFunctionType = ExpressionType::kNone;
18
19 /// The equality constraint type detected by the solver.
20 ExpressionType equalityConstraintType = ExpressionType::kNone;
21
22 /// The inequality constraint type detected by the solver.
23 ExpressionType inequalityConstraintType = ExpressionType::kNone;
24
25 /// The solver's exit condition.
26 SolverExitCondition exitCondition = SolverExitCondition::kSuccess;
27
28 /// The solution's cost.
29 double cost = 0.0;
30};
31
32} // namespace sleipnir
#define SLEIPNIR_DLLEXPORT
Definition SymbolExports.hpp:34
Definition Hessian.hpp:18
ExpressionType
Expression type.
Definition ExpressionType.hpp:14
SolverExitCondition
Solver exit condition.
Definition SolverExitCondition.hpp:16
Return value of OptimizationProblem::Solve() containing the cost function and constraint types and so...
Definition SolverStatus.hpp:15