proxsuite-nlp  0.10.0
A primal-dual augmented Lagrangian-type solver for nonlinear programming on manifolds.
Loading...
Searching...
No Matches
proxsuite::nlp::python Namespace Reference

Python bindings. More...

Classes

struct  C1FunctionWrap
 
struct  C2FunctionWrap
 
struct  CallbackWrapper
 
struct  CostWrapper
 
struct  FunctionWrap
 
struct  LDLTVisitor
 
struct  OwningNonOwningHolder
 
struct  PolymorphicVisitor
 
struct  PolymorphicVisitor< xyz::polymorphic< Base, A > >
 
struct  PolymorphicWrapper
 

Typedefs

using PolymorphicManifold = polymorphic<Manifold>
 
using CartesianProduct = CartesianProductTpl<Scalar>
 
using L1Penalty = NonsmoothPenaltyL1Tpl<Scalar>
 
using ConstraintSetProduct = ConstraintSetProductTpl<Scalar>
 
using BoxConstraint = BoxConstraintTpl<Scalar>
 
using PolyManifold = polymorphic<Manifold>
 

Functions

void expose_finite_differences ()
 Expose finite difference helpers.
 
void exposeAutodiff ()
 
void exposeCallbacks ()
 
std::vector< VectorXs > copy_vec_constref (const std::vector< ConstVectorRef > &x)
 
void exposeCartesianProduct ()
 
template<typename T >
auto exposeSpecificConstraintSet (const char *name, const char *docstring)
 
template<typename ConstraintType >
context::Constraint make_constraint (const shared_ptr< context::C2Function > &f)
 
static void exposeConstraintTypes ()
 
void exposeConstraints ()
 
void exposeQuadraticCosts ()
 Expose specific cost functions.
 
void exposeCost ()
 
void exposeFunctionOps ()
 
void exposeFunctionTypes ()
 
void exposeLdltRoutines ()
 
void exposeManifoldBase ()
 
template<typename M >
bp::class_< TangentBundleTpl< M >, bp::bases< Manifold > > exposeTangentBundle (const char *name, const char *docstring)
 Expose the tangent bundle of a manifold type M.
 
template<typename M , class Init >
bp::class_< TangentBundleTpl< M >, bp::bases< Manifold > > exposeTangentBundle (const char *name, const char *docstring, Init init)
 Expose the tangent bundle with an additional constructor.
 
void exposeManifolds ()
 
void exposeProblem ()
 
void exposeResiduals ()
 Expose some residual functions.
 
void exposeResults ()
 
void exposeSolver ()
 
void exposeWorkspace ()
 
bp::arg operator""_a (const char *argname, std::size_t)
 User-defined literal for bp::arg.
 
template<class Poly >
void register_polymorphic_to_python ()
 Expose a polymorphic value type, e.g. xyz::polymorphic<T, A>.
 
template<typename T , class Init >
auto expose_function (const char *name, const char *docstring, Init init)
 Expose a differentiable residual (subclass of C2FunctionTpl).
 
std::string get_scope_name (bp::scope scope)
 
bp::object get_namespace (const std::string &name)
 Create or retrieve a Python scope (that is, a class or module namespace).
 
void exposeContainerTypes ()
 Expose some useful container types.
 

Detailed Description

Python bindings.

Typedef Documentation

◆ PolymorphicManifold

◆ CartesianProduct

◆ L1Penalty

◆ ConstraintSetProduct

◆ BoxConstraint

◆ PolyManifold

Definition at line 25 of file expose-manifold.cpp.

Function Documentation

◆ expose_finite_differences()

void proxsuite::nlp::python::expose_finite_differences ( )

Expose finite difference helpers.

Definition at line 11 of file expose-autodiff.cpp.

◆ exposeAutodiff()

void proxsuite::nlp::python::exposeAutodiff ( )

Definition at line 40 of file expose-autodiff.cpp.

◆ exposeCallbacks()

void proxsuite::nlp::python::exposeCallbacks ( )

Definition at line 17 of file expose-callbacks.cpp.

◆ copy_vec_constref()

std::vector< VectorXs > proxsuite::nlp::python::copy_vec_constref ( const std::vector< ConstVectorRef > & x)

Definition at line 18 of file expose-cartesian-product.cpp.

◆ exposeCartesianProduct()

void proxsuite::nlp::python::exposeCartesianProduct ( )

Definition at line 25 of file expose-cartesian-product.cpp.

◆ exposeSpecificConstraintSet()

template<typename T >
auto proxsuite::nlp::python::exposeSpecificConstraintSet ( const char * name,
const char * docstring )

Definition at line 25 of file expose-constraint.cpp.

◆ make_constraint()

template<typename ConstraintType >
context::Constraint proxsuite::nlp::python::make_constraint ( const shared_ptr< context::C2Function > & f)

Definition at line 31 of file expose-constraint.cpp.

◆ exposeConstraintTypes()

static void proxsuite::nlp::python::exposeConstraintTypes ( )
static

Definition at line 102 of file expose-constraint.cpp.

◆ exposeConstraints()

void proxsuite::nlp::python::exposeConstraints ( )
Todo
Expose properly using pure_virtual, to allow overriding from Python

Definition at line 38 of file expose-constraint.cpp.

◆ exposeQuadraticCosts()

void proxsuite::nlp::python::exposeQuadraticCosts ( )

Expose specific cost functions.

Definition at line 17 of file expose-quadratic-costs.cpp.

◆ exposeCost()

void proxsuite::nlp::python::exposeCost ( )

Definition at line 39 of file expose-cost.cpp.

◆ exposeFunctionOps()

void proxsuite::nlp::python::exposeFunctionOps ( )

Definition at line 66 of file expose-function.cpp.

◆ exposeFunctionTypes()

void proxsuite::nlp::python::exposeFunctionTypes ( )

Definition at line 17 of file expose-function.cpp.

◆ exposeLdltRoutines()

void proxsuite::nlp::python::exposeLdltRoutines ( )

Definition at line 43 of file expose-ldlt.cpp.

◆ exposeManifoldBase()

void proxsuite::nlp::python::exposeManifoldBase ( )

Definition at line 28 of file expose-manifold.cpp.

◆ exposeTangentBundle() [1/2]

template<typename M >
bp::class_< TangentBundleTpl< M >, bp::bases< Manifold > > proxsuite::nlp::python::exposeTangentBundle ( const char * name,
const char * docstring )

Expose the tangent bundle of a manifold type M.

Definition at line 122 of file expose-manifold.cpp.

◆ exposeTangentBundle() [2/2]

template<typename M , class Init >
bp::class_< TangentBundleTpl< M >, bp::bases< Manifold > > proxsuite::nlp::python::exposeTangentBundle ( const char * name,
const char * docstring,
Init init )

Expose the tangent bundle with an additional constructor.

Definition at line 136 of file expose-manifold.cpp.

◆ exposeManifolds()

void proxsuite::nlp::python::exposeManifolds ( )

Definition at line 230 of file expose-manifold.cpp.

◆ exposeProblem()

void proxsuite::nlp::python::exposeProblem ( )

Definition at line 9 of file expose-problem.cpp.

◆ exposeResiduals()

void proxsuite::nlp::python::exposeResiduals ( )

Expose some residual functions.

Expose defined residuals for modelling.

Definition at line 19 of file expose-residual.cpp.

◆ exposeResults()

void proxsuite::nlp::python::exposeResults ( )

Definition at line 8 of file expose-results.cpp.

◆ exposeSolver()

void proxsuite::nlp::python::exposeSolver ( )

Definition at line 10 of file expose-solver.cpp.

◆ exposeWorkspace()

void proxsuite::nlp::python::exposeWorkspace ( )

Definition at line 8 of file expose-workspace.cpp.

◆ operator""_a()

bp::arg proxsuite::nlp::python::operator""_a ( const char * argname,
std::size_t  )
inline

User-defined literal for bp::arg.

Definition at line 14 of file fwd.hpp.

◆ register_polymorphic_to_python()

template<class Poly >
void proxsuite::nlp::python::register_polymorphic_to_python ( )
inline

Expose a polymorphic value type, e.g. xyz::polymorphic<T, A>.

Just an alias for bp::register_ptr_to_python<>().

Definition at line 25 of file polymorphic.hpp.

◆ expose_function()

template<typename T , class Init >
auto proxsuite::nlp::python::expose_function ( const char * name,
const char * docstring,
Init init )

Expose a differentiable residual (subclass of C2FunctionTpl).

Definition at line 9 of file residuals.hpp.

◆ get_scope_name()

std::string proxsuite::nlp::python::get_scope_name ( bp::scope scope)
inline

Definition at line 10 of file namespace.hpp.

◆ get_namespace()

bp::object proxsuite::nlp::python::get_namespace ( const std::string & name)
inline

Create or retrieve a Python scope (that is, a class or module namespace).

Returns
The submodule with the input name.

Definition at line 20 of file namespace.hpp.

◆ exposeContainerTypes()

void proxsuite::nlp::python::exposeContainerTypes ( )

Expose some useful container types.

Definition at line 13 of file module.cpp.