18template <
typename _Scalar>
32 void projection(
const ConstVectorRef &z, VectorRef zout)
const {
33 zout = z.cwiseMin(
static_cast<Scalar>(0.));
37 zout = z.cwiseMax(
static_cast<Scalar>(0.));
42 Eigen::Ref<ActiveType> out)
const {
43 out.array() = (z.array() >
static_cast<Scalar>(0.));
ConstraintSetTpl()=default
Eigen::Matrix< bool, Eigen::Dynamic, 1 > ActiveType
typename Base::ActiveType ActiveType
NegativeOrthantTpl(NegativeOrthantTpl &&)=default
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
void projection(const ConstVectorRef &z, VectorRef zout) const
Compute projection of variable z onto the constraint set.
NegativeOrthantTpl(const NegativeOrthantTpl &)=default
NegativeOrthantTpl & operator=(const NegativeOrthantTpl &)=default
void normalConeProjection(const ConstVectorRef &z, VectorRef zout) const
Compute projection of z onto the normal cone to the set. The default implementation is just .
NegativeOrthantTpl & operator=(NegativeOrthantTpl &&)=default
NegativeOrthantTpl()=default
void computeActiveSet(const ConstVectorRef &z, Eigen::Ref< ActiveType > out) const
The elements of the active set are the components such that .
ConstraintSetTpl< Scalar > Base