Sleipnir C++ API
|
#include <sleipnir/autodiff/Variable.hpp>
Public Member Functions | |
InequalityConstraints (std::initializer_list< InequalityConstraints > inequalityConstraints) | |
InequalityConstraints (const std::vector< InequalityConstraints > &inequalityConstraints) | |
template<typename LHS , typename RHS > requires (ScalarLike<std::decay_t<LHS>> || MatrixLike<std::decay_t<LHS>>) && (ScalarLike<std::decay_t<RHS>> || MatrixLike<std::decay_t<RHS>>) && (!std::same_as<std::decay_t<LHS>, double> || !std::same_as<std::decay_t<RHS>, double>) | |
InequalityConstraints (LHS &&lhs, RHS &&rhs) | |
operator bool () | |
Public Attributes | |
small_vector< Variable > | constraints |
A vector of scalar inequality constraints. | |
A vector of inequality constraints of the form cᵢ(x) ≥ 0.
|
inline |
Concatenates multiple inequality constraints.
inequalityConstraints | The list of InequalityConstraints to concatenate. |
|
inlineexplicit |
Concatenates multiple inequality constraints.
This overload is for Python bindings only.
inequalityConstraints | The list of InequalityConstraints to concatenate. |
|
inline |
Constructs an inequality constraint from a left and right side.
The standard form for inequality constraints is c(x) ≥ 0. This function takes a constraints of the form lhs ≥ rhs and converts it to lhs - rhs ≥ 0.
lhs | Left-hand side. |
rhs | Right-hand side. |
|
inline |
Implicit conversion operator to bool.
small_vector<Variable> sleipnir::InequalityConstraints::constraints |
A vector of scalar inequality constraints.