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
5
#include "
sleipnir/autodiff/ExpressionType.hpp
"
6
#include "
sleipnir/optimization/SolverExitCondition.hpp
"
7
#include "
sleipnir/util/SymbolExports.hpp
"
8
9
namespace
sleipnir
{
10
11
/**
12
* Return value of OptimizationProblem::Solve() containing the cost function and
13
* constraint types and solver's exit condition.
14
*/
15
struct
SLEIPNIR_DLLEXPORT
SolverStatus
{
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
ExpressionType.hpp
SolverExitCondition.hpp
SymbolExports.hpp
SLEIPNIR_DLLEXPORT
#define SLEIPNIR_DLLEXPORT
Definition
SymbolExports.hpp:34
sleipnir
Definition
Hessian.hpp:18
sleipnir::ExpressionType
ExpressionType
Expression type.
Definition
ExpressionType.hpp:14
sleipnir::SolverExitCondition
SolverExitCondition
Solver exit condition.
Definition
SolverExitCondition.hpp:16
sleipnir::SolverStatus
Return value of OptimizationProblem::Solve() containing the cost function and constraint types and so...
Definition
SolverStatus.hpp:15
thirdparty
sleipnir
include
sleipnir
optimization
SolverStatus.hpp
Generated on Thu Jan 2 2025 00:19:44 for WPILibC++ by
1.12.0