proxsuite-nlp  0.10.0
A primal-dual augmented Lagrangian-type solver for nonlinear programming on manifolds.
Loading...
Searching...
No Matches
expose-results.cpp
Go to the documentation of this file.
3
4namespace proxsuite {
5namespace nlp {
6namespace python {
7
10
11 bp::enum_<ConvergenceFlag>("ConvergenceFlag", "Convergence flag enum.")
13 .value("success", ConvergenceFlag::SUCCESS)
14 .value("max_iters_reached", ConvergenceFlag::MAX_ITERS_REACHED);
15
16 bp::class_<Results>("Results", "Results holder struct.",
17 bp::init<context::Problem &>(bp::args("self", "problem")))
18 .def_readonly("converged", &Results::converged)
19 .def_readonly("merit", &Results::merit, "Merit function value.")
20 .def_readonly("value", &Results::value)
21 .def_readonly("xopt", &Results::x_opt)
22 .def_readonly("data_lamsopt", &Results::data_lams_opt)
23 .def_readonly("lamsopt", &Results::lams_opt)
24 .def_readonly("activeset", &Results::active_set)
25 .def_readonly("num_iters", &Results::num_iters)
26 .def_readonly("mu", &Results::mu)
27 .def_readonly("rho", &Results::rho)
28 .def_readonly("dual_infeas", &Results::dual_infeas)
29 .def_readonly("prim_infeas", &Results::prim_infeas)
30 .def_readonly("constraint_errs", &Results::constraint_violations,
31 "Constraint violations.")
32 .def(bp::self_ns::str(bp::self));
33}
34
35} // namespace python
36} // namespace nlp
37} // namespace proxsuite
Main package namespace.
Definition bcl-params.hpp:5
Results struct, holding the returned data from the solver.
Definition results.hpp:20