QuadraticConstraint class
          #include <ScsEigen/QuadraticConstraint.h>
        
        Contents
QuadraticConstraint is a concrete implementation of Constraint. It implements a constraint of the form
where is the optimization variable. is a semipositive definite matrix.
Base classes
- class Constraint
Constructors, destructors, conversion operators
- QuadraticConstraint()
- Constructor.
- QuadraticConstraint(const Eigen::Ref<const Eigen::MatrixXd>& Q, const Eigen::Ref<const Eigen::MatrixXd>& b, double upperBound)
- Constructor.
Public functions
- auto setQ(const Eigen::Ref<const Eigen::MatrixXd>& Q) -> bool
- Set the hessian matrix Q.
- auto setB(const Eigen::Ref<const Eigen::VectorXd>& b) -> bool
- Set the gradient vector.
- auto setLowerBound(const Eigen::Ref<const Eigen::VectorXd>& lowerBound) -> bool final
- Set the lower bound.
- auto getQ() const -> Eigen::Ref<const Eigen::MatrixXd>
- Get the hessian .
- auto getB() const -> Eigen::Ref<const Eigen::VectorXd>
- Get the vector .
Function documentation
               ScsEigen::
            Constructor.
               ScsEigen::
            Constructor.
| Parameters | |
|---|---|
| Q | the PSD matrix representing the hessian of the constraint function. | 
| b | the gradient of the constraint function. | 
| upperBound | vector containing the upper bound. | 
              bool ScsEigen::
            Set the hessian matrix Q.
| Parameters | |
|---|---|
| Q | the PSD matrix representing the hessian of the constraint function. | 
              bool ScsEigen::
            Set the gradient vector.
| Parameters | |
|---|---|
| b | the vector | 
              bool ScsEigen::
            Set the lower bound.
| Parameters | |
|---|---|
| lowerBound | vector representing the lower bound. | 
| Returns | true in case of success/false otherwise |