Public Types | Public Member Functions | Private Attributes | List of all members
towr::LinearEqualityConstraint Class Reference

Calculates the constraint violations for linear constraints. More...

#include <linear_constraint.h>

Inheritance diagram for towr::LinearEqualityConstraint:
Inheritance graph
[legend]

Public Types

using MatrixXd = Eigen::MatrixXd
 

Public Member Functions

void FillJacobianBlock (std::string var_set, Jacobian &) const overridefinal
 
VecBound GetBounds () const overridefinal
 
VectorXd GetValues () const overridefinal
 
 LinearEqualityConstraint (const MatrixXd &M, const VectorXd &v, const std::string &variable_set)
 Defines the elements of the linear constraint as g = Mx+v = 0. More...
 
virtual ~LinearEqualityConstraint ()=default
 

Private Attributes

MatrixXd M_
 
VectorXd v_
 
std::string variable_name_
 

Detailed Description

Calculates the constraint violations for linear constraints.

Definition at line 40 of file linear_constraint.h.

Member Typedef Documentation

Definition at line 42 of file linear_constraint.h.

Constructor & Destructor Documentation

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.

Parameters
MThe matrix M defining the slope.
vThe vector v defining the constanct offset.
variable_setThe name of the variables x.

Definition at line 35 of file linear_constraint.cc.

virtual towr::LinearEqualityConstraint::~LinearEqualityConstraint ( )
virtualdefault

Member Function Documentation

void towr::LinearEqualityConstraint::FillJacobianBlock ( std::string  var_set,
Jacobian &  jac 
) const
finaloverride

Definition at line 67 of file linear_constraint.cc.

LinearEqualityConstraint::VecBound towr::LinearEqualityConstraint::GetBounds ( ) const
finaloverride

Definition at line 54 of file linear_constraint.cc.

LinearEqualityConstraint::VectorXd towr::LinearEqualityConstraint::GetValues ( ) const
finaloverride

Definition at line 47 of file linear_constraint.cc.

Member Data Documentation

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.


The documentation for this class was generated from the following files:


towr_core
Author(s): Alexander W. Winkler
autogenerated on Sat Apr 7 2018 02:15:57