15 throw std::runtime_error(
"[ocra::BoundFunction::BoundFunction] invalid bound type");
27 throw std::runtime_error(
"[ocra::BoundFunction::BoundFunction] invalid bound type");
32 throw std::runtime_error(
"[ocra::BoundFunction::changeDiagonal] invalid operation on BoundFunction");
38 throw std::runtime_error(
"[ocra::BoundFunction::changeDiagonal] invalid operation on BoundFunction");
44 throw std::runtime_error(
"[ocra::BoundFunction::changeDefaultDiagonalValue] invalid operation on BoundFunction");
50 throw std::runtime_error(
"[ocra::BoundFunction::changeDefaultbValue] invalid operation on BoundFunction");
57 _b.setConstant(-bound);
59 _b.setConstant(bound);
73 ocra_assert(i<
_dim &&
"[BoundFunction::changeIthBound] Invalid index i");
void doChangeDefaultDiagonalValue(const double v)
void changeBounds(const double bound)
void doChangeDiagonal(const VectorXd &d)
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
void changeIthBound(const int i, const double bound)
This class represents a variable in a mathematical sense.
void doChangeDefaultbValue(const double v)
Declaration file of the BoundFunction class.
#define ocra_assert(ocra_expression)
DiagonalLinearFunction class.