30 bp::class_<StageConstraint>(
32 "A stage-wise constraint, of the form :math:`c(x,u) \\leq 0 c(x,u)`.\n"
33 ":param f: underlying function\n"
34 ":param cs: constraint set",
39 eigenpy::deprecation_warning_policy<>(
40 "This class has been deprecated and will be removed in a "
41 "future version of aligator."),
42 (
"func"_a,
"cstr_set")),
43 "Contruct a StageConstraint from a StageFunction and a constraint "
45 .def_readwrite(
"func", &StageConstraint::func)
46 .def_readwrite(
"set", &StageConstraint::set)
48 "nr", +[](StageConstraint
const &el) {
return el.func->nr; },
49 "Get constraint dimension.");
51 bp::class_<ConstraintStack>(
"ConstraintStack",
"The stack of constraint.",
54 "Get number of individual constraints.")
59 bp::return_internal_reference<>()),
60 "Get the individual dimensions of all constraints.")
62 "Get total dimension of all constraints.");
StageFunctionTpl< Scalar > StageFunction
ConstraintSetTpl< Scalar > ConstraintSet
ConstraintStackTpl< Scalar > ConstraintStack