Skip to content
Snippets Groups Projects
Commit 16ac4271 authored by Carlos Mastalli's avatar Carlos Mastalli
Browse files

[bindings] Exposed gaps in DDP solver

parent a4115ea2
No related branches found
No related tags found
No related merge requests found
......@@ -21,14 +21,14 @@ namespace bp = boost::python;
class SolverAbstract_wrap : public SolverAbstract, public bp::wrapper<SolverAbstract> {
public:
using SolverAbstract::is_feasible_;
using SolverAbstract::cost_;
using SolverAbstract::is_feasible_;
using SolverAbstract::iter_;
using SolverAbstract::problem_;
using SolverAbstract::steplength_;
using SolverAbstract::th_acceptstep_;
using SolverAbstract::th_stop_;
using SolverAbstract::ureg_;
using SolverAbstract::steplength_;
using SolverAbstract::us_;
using SolverAbstract::xreg_;
using SolverAbstract::xs_;
......
......@@ -96,7 +96,9 @@ void exposeSolverDDP() {
.add_property("Qx", make_function(&SolverDDP::get_Qx, bp::return_value_policy<bp::copy_const_reference>()), "Qx")
.add_property("Qu", make_function(&SolverDDP::get_Qu, bp::return_value_policy<bp::copy_const_reference>()), "Qu")
.add_property("K", make_function(&SolverDDP::get_K, bp::return_value_policy<bp::copy_const_reference>()), "K")
.add_property("k", make_function(&SolverDDP::get_k, bp::return_value_policy<bp::copy_const_reference>()), "k");
.add_property("k", make_function(&SolverDDP::get_k, bp::return_value_policy<bp::copy_const_reference>()), "k")
.add_property("gaps", make_function(&SolverDDP::get_gaps, bp::return_value_policy<bp::copy_const_reference>()),
"gaps");
}
} // namespace python
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment