proxsuite-nlp  0.10.0
A primal-dual augmented Lagrangian-type solver for nonlinear programming on manifolds.
Loading...
Searching...
No Matches
proxsuite::nlp::ManifoldDifferenceToPoint< _Scalar > Struct Template Reference

#include <proxsuite-nlp/modelling/residuals/state-residual.hpp>

Inheritance diagram for proxsuite::nlp::ManifoldDifferenceToPoint< _Scalar >:
[legend]
Collaboration diagram for proxsuite::nlp::ManifoldDifferenceToPoint< _Scalar >:
[legend]

Public Types

using Scalar = _Scalar
 
using Base = C2FunctionTpl<Scalar>
 
using Manifold = ManifoldAbstractTpl<Scalar>
 
- Public Types inherited from proxsuite::nlp::C2FunctionTpl< _Scalar >
using Scalar
 
using Base
 
- Public Types inherited from proxsuite::nlp::C1FunctionTpl< _Scalar >
using Scalar
 
using Base
 
- Public Types inherited from proxsuite::nlp::BaseFunctionTpl< _Scalar >
using Scalar
 
- Public Types inherited from proxsuite::nlp::math_types< _Scalar >
using Scalar = _Scalar
 

Public Member Functions

 ManifoldDifferenceToPoint (const polymorphic< Manifold > &space, const ConstVectorRef &target)
 
VectorXs operator() (const ConstVectorRef &x) const
 Evaluate the residual at a given point x.
 
void computeJacobian (const ConstVectorRef &x, MatrixRef Jout) const
 Jacobian matrix of the constraint function.
 
- Public Member Functions inherited from proxsuite::nlp::C2FunctionTpl< _Scalar >
 C2FunctionTpl (const int nx, const int ndx, const int nr)
 
 C2FunctionTpl (const ManifoldAbstractTpl< _Scalar > &manifold, const int nr)
 
virtual void vectorHessianProduct (const ConstVectorRef &, const ConstVectorRef &, MatrixRef Hout) const
 Vector-hessian product.
 
- Public Member Functions inherited from proxsuite::nlp::C1FunctionTpl< _Scalar >
 C1FunctionTpl (const int nx, const int ndx, const int nr)
 
 C1FunctionTpl (const ManifoldAbstractTpl< _Scalar > &manifold, const int nr)
 
MatrixXs computeJacobian (const ConstVectorRef &x) const
 Jacobian matrix of the constraint function.
 
- Public Member Functions inherited from proxsuite::nlp::BaseFunctionTpl< _Scalar >
 BaseFunctionTpl (const int nx, const int ndx, const int nr)
 
 BaseFunctionTpl (const ManifoldAbstractTpl< _Scalar > &manifold, const int nr)
 
virtual ~BaseFunctionTpl ()=default
 
int nx () const
 Get function input vector size (representation of manifold).
 
int ndx () const
 Get input manifold's tangent space dimension.
 
int nr () const
 Get function codimension.
 

Public Attributes

 Scalar
 
VectorXs target_
 Target point on the space.
 
polymorphic< Manifoldspace_
 
- Public Attributes inherited from proxsuite::nlp::C2FunctionTpl< _Scalar >
 Scalar
 
- Public Attributes inherited from proxsuite::nlp::C1FunctionTpl< _Scalar >
 Scalar
 
- Public Attributes inherited from proxsuite::nlp::BaseFunctionTpl< _Scalar >
 Scalar
 
- Public Attributes inherited from proxsuite::nlp::math_types< _Scalar >
 _Scalar
 

Additional Inherited Members

- Protected Attributes inherited from proxsuite::nlp::BaseFunctionTpl< _Scalar >
int nx_
 
int ndx_
 
int nr_
 

Detailed Description

template<typename _Scalar>
struct proxsuite::nlp::ManifoldDifferenceToPoint< _Scalar >

Constraint function to be equal to a given element of a space. This is templated on the space.

Definition at line 19 of file state-residual.hpp.

Member Typedef Documentation

◆ Scalar

template<typename _Scalar >
using proxsuite::nlp::ManifoldDifferenceToPoint< _Scalar >::Scalar = _Scalar

Definition at line 21 of file state-residual.hpp.

◆ Base

Definition at line 24 of file state-residual.hpp.

◆ Manifold

Definition at line 27 of file state-residual.hpp.

Constructor & Destructor Documentation

◆ ManifoldDifferenceToPoint()

template<typename _Scalar >
proxsuite::nlp::ManifoldDifferenceToPoint< _Scalar >::ManifoldDifferenceToPoint ( const polymorphic< Manifold > & space,
const ConstVectorRef & target )
inline

Definition at line 33 of file state-residual.hpp.

Member Function Documentation

◆ operator()()

template<typename _Scalar >
VectorXs proxsuite::nlp::ManifoldDifferenceToPoint< _Scalar >::operator() ( const ConstVectorRef & x) const
inlinevirtual

Evaluate the residual at a given point x.

Implements proxsuite::nlp::BaseFunctionTpl< _Scalar >.

Definition at line 43 of file state-residual.hpp.

◆ computeJacobian()

template<typename _Scalar >
void proxsuite::nlp::ManifoldDifferenceToPoint< _Scalar >::computeJacobian ( const ConstVectorRef & x,
MatrixRef Jout ) const
inlinevirtual

Jacobian matrix of the constraint function.

Implements proxsuite::nlp::C1FunctionTpl< _Scalar >.

Definition at line 47 of file state-residual.hpp.

Member Data Documentation

◆ Scalar

Definition at line 22 of file state-residual.hpp.

◆ target_

template<typename _Scalar >
VectorXs proxsuite::nlp::ManifoldDifferenceToPoint< _Scalar >::target_

Target point on the space.

Definition at line 30 of file state-residual.hpp.

◆ space_

Definition at line 31 of file state-residual.hpp.


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