aligator  0.6.1
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
expose-cholmod-solver.cpp
Go to the documentation of this file.
3
4namespace aligator::python {
5
7using cholmod_solver_t = gar::CholmodLqSolver<context::Scalar>;
8
10 bp::class_<cholmod_solver_t, boost::noncopyable>(
11 "CholmodLqSolver",
12 "A wrapper for CHOLMOD to solve the linear system for the LQ step.",
13 bp::no_init)
14 .def(bp::init<const lqr_t &, uint>(
15 ("self"_a, "problem", "numRefinementSteps"_a = 1)))
16 .def_readonly("kktMatrix", &cholmod_solver_t::kktMatrix)
17 .def_readonly("kktRhs", &cholmod_solver_t::kktRhs)
18 .def("backward", &cholmod_solver_t::backward, ("self"_a, "mudyn", "mueq"))
19 .def("forward", &cholmod_solver_t::forward,
20 ("self"_a, "xs", "us", "vs", "lbdas"))
21 .add_property("sparse_residual", &cholmod_solver_t::computeSparseResidual,
22 "Sparse problem residual.")
23 .def_readonly("cholmod", &cholmod_solver_t::cholmod)
24 .def_readwrite("numRefinementSteps",
25 &cholmod_solver_t::numRefinementSteps);
26}
27
28} // namespace aligator::python
The Python bindings.
Definition blk-matrix.hpp:5
gar::CholmodLqSolver< context::Scalar > cholmod_solver_t