jrl::qp::test::QPProblem< Separated > Struct Template Reference

#include <jrl-qp/test/problems.h>

Inheritance diagram for jrl::qp::test::QPProblem< Separated >:
Collaboration diagram for jrl::qp::test::QPProblem< Separated >:

Public Types

using Base = std::conditional_t< Separated, SeparatedFeasibilityConstraints, FeasibilityConstraints >
 

Public Member Functions

 QPProblem ()=default
 
 QPProblem (const QPProblem &)=default
 
 QPProblem (QPProblem &&)=default
 
QPProblemoperator= (const QPProblem &qp)=default
 
QPProblemoperator= (QPProblem &&qp)=default
 
 QPProblem (const QPProblem<!Separated > &qp)
 
template<bool LSSeparated>
 QPProblem (const LeastSquareProblem< LSSeparated > &ls)
 
template<bool LSSeparated>
QPProblemoperator= (const LeastSquareProblem< LSSeparated > &ls)
 
QPProblemoperator= (const QPProblem<!Separated > &qp)
 
bool wellFormed () const
 
template<bool LSSeparated>
QPProblem< Separated > & operator= (const LeastSquareProblem< LSSeparated > &ls)
 

Public Attributes

Eigen::MatrixXd G
 
Eigen::VectorXd a
 
double objCst = 0
 

Detailed Description

template<bool Separated = false>
struct jrl::qp::test::QPProblem< Separated >

Representation of the Linear least-square problem min. 0.5 x^T G x + a^T x + objCst s.t. feasibility constraints where the feasibility constraints are given by SeparatedFeasibilityConstraints if

Template Parameters
Separated= true and FeasibilityConstraints otherwise.

Member Typedef Documentation

◆ Base

template<bool Separated = false>
using jrl::qp::test::QPProblem< Separated >::Base = std::conditional_t<Separated, SeparatedFeasibilityConstraints, FeasibilityConstraints>

Constructor & Destructor Documentation

◆ QPProblem() [1/5]

template<bool Separated = false>
jrl::qp::test::QPProblem< Separated >::QPProblem ( )
default

◆ QPProblem() [2/5]

template<bool Separated = false>
jrl::qp::test::QPProblem< Separated >::QPProblem ( const QPProblem< Separated > &  )
default

◆ QPProblem() [3/5]

template<bool Separated = false>
jrl::qp::test::QPProblem< Separated >::QPProblem ( QPProblem< Separated > &&  )
default

◆ QPProblem() [4/5]

template<bool Separated>
jrl::qp::test::QPProblem< Separated >::QPProblem ( const QPProblem<!Separated > &  qp)
inline

◆ QPProblem() [5/5]

template<bool Separated>
template<bool LSSeparated>
jrl::qp::test::QPProblem< Separated >::QPProblem ( const LeastSquareProblem< LSSeparated > &  ls)
inline

Member Function Documentation

◆ operator=() [1/5]

template<bool Separated = false>
template<bool LSSeparated>
QPProblem& jrl::qp::test::QPProblem< Separated >::operator= ( const LeastSquareProblem< LSSeparated > &  ls)

◆ operator=() [2/5]

template<bool Separated = false>
template<bool LSSeparated>
QPProblem<Separated>& jrl::qp::test::QPProblem< Separated >::operator= ( const LeastSquareProblem< LSSeparated > &  ls)
inline

◆ operator=() [3/5]

template<bool Separated = false>
QPProblem& jrl::qp::test::QPProblem< Separated >::operator= ( const QPProblem< Separated > &  qp)
default

◆ operator=() [4/5]

template<bool Separated>
QPProblem< Separated > & jrl::qp::test::QPProblem< Separated >::operator= ( const QPProblem<!Separated > &  qp)
inline

◆ operator=() [5/5]

template<bool Separated = false>
QPProblem& jrl::qp::test::QPProblem< Separated >::operator= ( QPProblem< Separated > &&  qp)
default

◆ wellFormed()

template<bool Separated>
bool jrl::qp::test::QPProblem< Separated >::wellFormed
inline

Member Data Documentation

◆ a

template<bool Separated = false>
Eigen::VectorXd jrl::qp::test::QPProblem< Separated >::a

◆ G

template<bool Separated = false>
Eigen::MatrixXd jrl::qp::test::QPProblem< Separated >::G

◆ objCst

template<bool Separated = false>
double jrl::qp::test::QPProblem< Separated >::objCst = 0

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