proxsuite-nlp  0.10.0
A primal-dual augmented Lagrangian-type solver for nonlinear programming on manifolds.
Loading...
Searching...
No Matches
expose-residual.cpp
Go to the documentation of this file.
2
5
6namespace proxsuite {
7namespace nlp {
8namespace python {
10using context::ConstMatrixRef;
11using context::ConstVectorRef;
13using context::MatrixXs;
14using context::Scalar;
15using context::Vector3s;
16using context::VectorXs;
17
20
21 using LinearFunction = LinearFunctionTpl<Scalar>;
22
24 "LinearFunction", "Residual f(x) = Ax + b.",
25 bp::init<MatrixXs, VectorXs>(bp::args("self", "A", "b")))
26 .def(bp::init<MatrixXs>(bp::args("self", "A")))
27 .def_readwrite("A", &LinearFunction::mat, "Matrix :math:`A`.")
28 .def_readwrite("b", &LinearFunction::b, "Intercept :math:`b`.");
29
31 "ManifoldDifferenceToPoint", "Difference vector x (-) x0.",
32 bp::init<const polymorphic<Manifold> &, const ConstVectorRef &>(
33 ("self"_a, "space", "target")))
34 .add_property("target", &ManifoldDifferenceToPoint<Scalar>::target_);
35
37 "LinearFunctionDifferenceToPoint",
38 "Linear function of the vector difference to a reference point.",
39 bp::init<const polymorphic<Manifold> &, VectorXs, MatrixXs, VectorXs>(
40 ("self"_a, "space", "target", "A", "b")));
41}
42
43} // namespace python
44} // namespace nlp
45} // namespace proxsuite
void exposeResiduals()
Expose some residual functions.
auto expose_function(const char *name, const char *docstring, Init init)
Expose a differentiable residual (subclass of C2FunctionTpl).
Definition residuals.hpp:9
Main package namespace.
Definition bcl-params.hpp:5
Twice-differentiable function, with method Jacobian and vector-hessian product evaluation.
Definition fwd.hpp:76