Drake
LinearConstraint Class Reference

Implements a constraint of the form lb <= Ax <= ub . More...

#include <drake/solvers/Constraint.h>

Inheritance diagram for LinearConstraint:
Collaboration diagram for LinearConstraint:

Public Member Functions

 LinearConstraint (size_t num_constraints)
 
template<typename DerivedA , typename DerivedLB , typename DerivedUB >
 LinearConstraint (const Eigen::MatrixBase< DerivedA > &a, const Eigen::MatrixBase< DerivedLB > &lb, const Eigen::MatrixBase< DerivedUB > &ub)
 
 ~LinearConstraint () override
 
void eval (const Eigen::Ref< const Eigen::VectorXd > &x, Eigen::VectorXd &y) const override
 
void eval (const Eigen::Ref< const Drake::TaylorVecXd > &x, Drake::TaylorVecXd &y) const override
 
virtual Eigen::SparseMatrix< doubleGetSparseMatrix () const
 
virtual const Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > & A () const
 
- Public Member Functions inherited from Constraint
 Constraint (size_t num_constraints)
 
template<typename DerivedLB , typename DerivedUB >
 Constraint (size_t num_constraints, Eigen::MatrixBase< DerivedLB > const &lb, Eigen::MatrixBase< DerivedUB > const &ub)
 
virtual ~Constraint ()
 
Eigen::VectorXd const & lower_bound () const
 
Eigen::VectorXd const & upper_bound () const
 
size_t num_constraints () const
 

Protected Attributes

Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > A_
 
- Protected Attributes inherited from Constraint
Eigen::VectorXd lower_bound_
 
Eigen::VectorXd upper_bound_
 

Detailed Description

Implements a constraint of the form lb <= Ax <= ub .

Constructor & Destructor Documentation

LinearConstraint ( size_t  num_constraints)
inlineexplicit
LinearConstraint ( const Eigen::MatrixBase< DerivedA > &  a,
const Eigen::MatrixBase< DerivedLB > &  lb,
const Eigen::MatrixBase< DerivedUB > &  ub 
)
inline
~LinearConstraint ( )
inlineoverride

Member Function Documentation

virtual const Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>& A ( ) const
inlinevirtual
void eval ( const Eigen::Ref< const Eigen::VectorXd > &  x,
Eigen::VectorXd &  y 
) const
inlineoverridevirtual

Implements Constraint.

Reimplemented in BoundingBoxConstraint.

Here is the call graph for this function:

void eval ( const Eigen::Ref< const Drake::TaylorVecXd > &  x,
Drake::TaylorVecXd y 
) const
inlineoverridevirtual

Implements Constraint.

Reimplemented in BoundingBoxConstraint.

Here is the call graph for this function:

virtual Eigen::SparseMatrix<double> GetSparseMatrix ( ) const
inlinevirtual

Member Data Documentation

Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic> A_
protected

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