WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
sleipnir::SolverStatus Struct Reference

Return value of OptimizationProblem::Solve() containing the cost function and constraint types and solver's exit condition. More...

#include </home/runner/work/allwpilib/allwpilib/wpimath/src/main/native/thirdparty/sleipnir/include/sleipnir/optimization/SolverStatus.hpp>

Public Attributes

ExpressionType costFunctionType = ExpressionType::kNone
 The cost function type detected by the solver.
 
ExpressionType equalityConstraintType = ExpressionType::kNone
 The equality constraint type detected by the solver.
 
ExpressionType inequalityConstraintType = ExpressionType::kNone
 The inequality constraint type detected by the solver.
 
SolverExitCondition exitCondition = SolverExitCondition::kSuccess
 The solver's exit condition.
 
double cost = 0.0
 The solution's cost.
 

Detailed Description

Return value of OptimizationProblem::Solve() containing the cost function and constraint types and solver's exit condition.

Member Data Documentation

◆ cost

double sleipnir::SolverStatus::cost = 0.0

The solution's cost.

◆ costFunctionType

ExpressionType sleipnir::SolverStatus::costFunctionType = ExpressionType::kNone

The cost function type detected by the solver.

◆ equalityConstraintType

ExpressionType sleipnir::SolverStatus::equalityConstraintType = ExpressionType::kNone

The equality constraint type detected by the solver.

◆ exitCondition

SolverExitCondition sleipnir::SolverStatus::exitCondition = SolverExitCondition::kSuccess

The solver's exit condition.

◆ inequalityConstraintType

ExpressionType sleipnir::SolverStatus::inequalityConstraintType = ExpressionType::kNone

The inequality constraint type detected by the solver.


The documentation for this struct was generated from the following file: