#include <MINLP.h>
Public Member Functions | |
ConstraintView (const MINLPData::Constraint &con_) | |
int | dim () const |
int | index () const |
bool | equality () const |
const string & | name () const |
SepQcFunc::ftype | functype () const |
Func::CurvatureType | curvature () const |
double | evaluate (const UserVector< double > &x) const |
Evaluates the constraint. | |
void | gradient (UserVector< double > &grad, const UserVector< double > &x) const |
Computes the gradient of the constraint. | |
double | evaluate_and_gradient (UserVector< double > &grad, const UserVector< double > &x) const |
Evaluates the constraint and computes is gradient. | |
void | hessianmult (UserVector< double > &prod, const UserVector< double > &x, const UserVector< double > &factor) const |
Computes the product of the hessian with a vector. |
Definition at line 45 of file MINLP.h.
MINLP::ConstraintView::ConstraintView | ( | const MINLPData::Constraint & | con_ | ) | [inline] |
int MINLP::ConstraintView::dim | ( | ) | const [inline, virtual] |
Reimplemented from MINLP::ObjConView< MINLPData::Constraint >.
int MINLP::ConstraintView::index | ( | ) | const [inline, virtual] |
Implements MINLPView::ConstraintView.
bool MINLP::ConstraintView::equality | ( | ) | const [inline, virtual] |
Implements MINLPView::ConstraintView.
const string& MINLP::ConstraintView::name | ( | ) | const [inline, virtual] |
Reimplemented from MINLP::ObjConView< MINLPData::Constraint >.
SepQcFunc::ftype MINLP::ConstraintView::functype | ( | ) | const [inline, virtual] |
Reimplemented from MINLP::ObjConView< MINLPData::Constraint >.
Func::CurvatureType MINLP::ConstraintView::curvature | ( | ) | const [inline, virtual] |
Reimplemented from MINLP::ObjConView< MINLPData::Constraint >.
double MINLP::ConstraintView::evaluate | ( | const UserVector< double > & | x | ) | const [inline, virtual] |
Evaluates the constraint.
TODO: Can throw an evaluation exception.
x | The point where to evaluate the constraint. |
Reimplemented from MINLP::ObjConView< MINLPData::Constraint >.
void MINLP::ConstraintView::gradient | ( | UserVector< double > & | grad, | |
const UserVector< double > & | x | |||
) | const [inline, virtual] |
Computes the gradient of the constraint.
TODO: Can throw an evaluation exception.
grad | The vector to store the gradient in. | |
x | The point where to compute the gradient. |
Reimplemented from MINLP::ObjConView< MINLPData::Constraint >.
double MINLP::ConstraintView::evaluate_and_gradient | ( | UserVector< double > & | grad, | |
const UserVector< double > & | x | |||
) | const [inline, virtual] |
Evaluates the constraint and computes is gradient.
TODO: Can throw an evaluation exception.
grad | The vector where the gradient is stored. | |
x | The point where to evaluate the constraint and to compute the gradient. |
Reimplemented from MINLP::ObjConView< MINLPData::Constraint >.
void MINLP::ConstraintView::hessianmult | ( | UserVector< double > & | prod, | |
const UserVector< double > & | x, | |||
const UserVector< double > & | factor | |||
) | const [inline, virtual] |
Computes the product of the hessian with a vector.
TODO: Can throw an evaluation exception.
prod | The vector to store the product in. | |
x | The point where to evaluate the constraint. | |
factor | The vector to multiply the hessian with. |
Reimplemented from MINLP::ObjConView< MINLPData::Constraint >.