Public Member Functions | |
ObjConView (const ObjOrCon &objcon_) | |
int | dim () 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. | |
Protected Attributes | |
const ObjOrCon & | objcon |
Definition at line 18 of file MINLP.h.
MINLP::ObjConView< ObjOrCon >::ObjConView | ( | const ObjOrCon & | objcon_ | ) | [inline] |
int MINLP::ObjConView< ObjOrCon >::dim | ( | ) | const [inline, virtual] |
Implements MINLPView::ObjConView.
Reimplemented in MINLP::ConstraintView, and MINLP::ObjectiveView.
const string& MINLP::ObjConView< ObjOrCon >::name | ( | ) | const [inline, virtual] |
Implements MINLPView::ObjConView.
Reimplemented in MINLP::ConstraintView, and MINLP::ObjectiveView.
SepQcFunc::ftype MINLP::ObjConView< ObjOrCon >::functype | ( | ) | const [inline, virtual] |
Implements MINLPView::ObjConView.
Reimplemented in MINLP::ConstraintView, and MINLP::ObjectiveView.
Func::CurvatureType MINLP::ObjConView< ObjOrCon >::curvature | ( | ) | const [inline, virtual] |
Implements MINLPView::ObjConView.
Reimplemented in MINLP::ConstraintView, and MINLP::ObjectiveView.
double MINLP::ObjConView< ObjOrCon >::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. |
Implements MINLPView::ObjConView.
Reimplemented in MINLP::ConstraintView, and MINLP::ObjectiveView.
void MINLP::ObjConView< ObjOrCon >::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. |
Implements MINLPView::ObjConView.
Reimplemented in MINLP::ConstraintView, and MINLP::ObjectiveView.
double MINLP::ObjConView< ObjOrCon >::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 MINLPView::ObjConView.
Reimplemented in MINLP::ConstraintView, and MINLP::ObjectiveView.
void MINLP::ObjConView< ObjOrCon >::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. |
Implements MINLPView::ObjConView.
Reimplemented in MINLP::ConstraintView, and MINLP::ObjectiveView.
const ObjOrCon& MINLP::ObjConView< ObjOrCon >::objcon [protected] |