Template Struct BoxQPSolutionTpl
Defined in File box-qp.hpp
Struct Documentation
-
template<typename _Scalar>
struct BoxQPSolutionTpl Box QP solution.
It contains the Box QP solution data which consists of
the inverse of the free space Hessian
the optimal decision vector
the indexes for the free space
the indexes for the clamped (constrained) space
Public Types
-
typedef MathBaseTpl<Scalar> MathBase
Public Functions
-
inline BoxQPSolutionTpl()
Initialize the QP solution structure.
-
inline BoxQPSolutionTpl(const MatrixXs &Hff_inv, const VectorXs &x, const std::vector<size_t> &free_idx, const std::vector<size_t> &clamped_idx)
Initialize the QP solution structure.
- Parameters:
Hff_inv – [in] Inverse of the free space Hessian
x – [in] Decision vector
free_idx – [in] Free space indexes
clamped_idx – [in] Clamped space indexes
-
template<typename NewScalar>
inline BoxQPSolutionTpl<NewScalar> cast() const Cast the BoxQP solution to a different scalar type.
It is useful for operations requiring different precision or scalar types.
- Template Parameters:
NewScalar – The new scalar type to cast to.
- Returns:
BoxQPSolutionTpl<NewScalar> A BoxQP solution with the new scalar type.