36 cl.def(bp::init<std::string>((bp::arg(
"name")),
37 "Default constructor with name."))
38 .def(bp::init<std::string, unsigned int>(
39 (bp::arg(
"name"), bp::arg(
"size")),
40 "Default constructor with name and size."))
41 .def(bp::init<std::string, Eigen::VectorXd, Eigen::VectorXd>(
42 (bp::arg(
"name"), bp::arg(
"lb"), bp::arg(
"ub")),
43 "Default constructor with name and constraint."))
45 .add_property(
"rows", &ConstraintBound::rows)
46 .add_property(
"cols", &ConstraintBound::cols)
47 .def(
"resize", &ConstraintBound::resize, (bp::arg(
"r"), bp::arg(
"c")),
48 "Resize constraint size.")
50 .add_property(
"isEquality", &ConstraintBound::isEquality)
51 .add_property(
"isInequality", &ConstraintBound::isInequality)
52 .add_property(
"isBound", &ConstraintBound::isBound)
59 (
bool (ConstraintBound::*)(
61 const Eigen::VectorXd>))&ConstraintBound::setVector,
62 bp::args(
"vector"),
"Set Vector")
64 (
bool (ConstraintBound::*)(
66 const Eigen::VectorXd>))&ConstraintBound::setLowerBound,
67 bp::args(
"lb"),
"Set LowerBound")
69 (
bool (ConstraintBound::*)(
71 const Eigen::VectorXd>))&ConstraintBound::setUpperBound,
72 bp::args(
"ub"),
"Set UpperBound");