cpp_robotics::ConstraintArray
数理最適化問題の制約の集合
#include <constraint.hpp>
Inherits from std::vector< Constraint >
Public Functions
Name | |
---|---|
ConstraintArray() =default | |
ConstraintArray(std::initializer_list< Constraint > con) | |
ConstraintArray(std::initializer_list< VariItem< Constraint, ConstraintArray >> cons) | |
std::vector< double > | eval(const Eigen::VectorXd & x) const |
double | eval_sum(const Eigen::VectorXd & x) const |
bool | all_satisfy(const Eigen::VectorXd & x, const double tol) const |
std::vector< Constraint >::size_type | eq_constraint_size() const |
std::vector< Constraint >::size_type | ineq_constraint_size() const |
std::vector< Constraint > | gen_eq_constraint_list() const |
std::vector< Constraint > | gen_ineq_constraint_list() const |
Public Functions Documentation
function ConstraintArray
ConstraintArray() =default
function ConstraintArray
inline ConstraintArray(
std::initializer_list< Constraint > con
)
function ConstraintArray
inline ConstraintArray(
std::initializer_list< VariItem< Constraint, ConstraintArray >> cons
)
function eval
inline std::vector< double > eval(
const Eigen::VectorXd & x
) const
function eval_sum
inline double eval_sum(
const Eigen::VectorXd & x
) const
function all_satisfy
inline bool all_satisfy(
const Eigen::VectorXd & x,
const double tol
) const
function eq_constraint_size
inline std::vector< Constraint >::size_type eq_constraint_size() const
function ineq_constraint_size
inline std::vector< Constraint >::size_type ineq_constraint_size() const
function gen_eq_constraint_list
inline std::vector< Constraint > gen_eq_constraint_list() const
function gen_ineq_constraint_list
inline std::vector< Constraint > gen_ineq_constraint_list() const
Updated on 2024-05-28 at 06:55:39 +0000