Calculates the constraint violations for linear constraints. More...
#include <linear_constraint.h>
Public Member Functions | |
| void | FillJacobianBlock (std::string var_set, Jacobian &) const override final |
| VecBound | GetBounds () const override final |
| VectorXd | GetValues () const override final |
| LinearEqualityConstraint (const MatrixXd &M, const VectorXd &v, const std::string &variable_set) | |
| Defines the elements of the linear constraint as g = Mx+v = 0. | |
| virtual | ~LinearEqualityConstraint () |
Private Attributes | |
| MatrixXd | M_ |
| VectorXd | v_ |
| std::string | variable_name_ |
Calculates the constraint violations for linear constraints.
Definition at line 40 of file linear_constraint.h.
| towr::LinearEqualityConstraint::LinearEqualityConstraint | ( | const MatrixXd & | M, |
| const VectorXd & | v, | ||
| const std::string & | variable_set | ||
| ) |
Defines the elements of the linear constraint as g = Mx+v = 0.
| M | The matrix M defining the slope. |
| v | The vector v defining the constanct offset. |
| variable_set | The name of the variables x. |
Definition at line 35 of file linear_constraint.cc.
| virtual towr::LinearEqualityConstraint::~LinearEqualityConstraint | ( | ) | [virtual] |
| void towr::LinearEqualityConstraint::FillJacobianBlock | ( | std::string | var_set, |
| Jacobian & | jac | ||
| ) | const [override] |
Definition at line 67 of file linear_constraint.cc.
| LinearEqualityConstraint::VecBound towr::LinearEqualityConstraint::GetBounds | ( | ) | const [override] |
Definition at line 54 of file linear_constraint.cc.
| LinearEqualityConstraint::VectorXd towr::LinearEqualityConstraint::GetValues | ( | ) | const [override] |
Definition at line 47 of file linear_constraint.cc.
MatrixXd towr::LinearEqualityConstraint::M_ [private] |
Definition at line 61 of file linear_constraint.h.
VectorXd towr::LinearEqualityConstraint::v_ [private] |
Definition at line 62 of file linear_constraint.h.
std::string towr::LinearEqualityConstraint::variable_name_ [private] |
Definition at line 63 of file linear_constraint.h.