MINLP::ConstraintView Class Reference

#include <MINLP.h>

Inheritance diagram for MINLP::ConstraintView:
Inheritance graph
[legend]
Collaboration diagram for MINLP::ConstraintView:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

Definition at line 45 of file MINLP.h.


Constructor & Destructor Documentation

MINLP::ConstraintView::ConstraintView ( const MINLPData::Constraint con_  )  [inline]

Definition at line 47 of file MINLP.h.


Member Function Documentation

int MINLP::ConstraintView::dim (  )  const [inline, virtual]

Reimplemented from MINLP::ObjConView< MINLPData::Constraint >.

Definition at line 51 of file MINLP.h.

int MINLP::ConstraintView::index (  )  const [inline, virtual]

Implements MINLPView::ConstraintView.

Definition at line 52 of file MINLP.h.

bool MINLP::ConstraintView::equality (  )  const [inline, virtual]

Implements MINLPView::ConstraintView.

Definition at line 53 of file MINLP.h.

const string& MINLP::ConstraintView::name (  )  const [inline, virtual]

Reimplemented from MINLP::ObjConView< MINLPData::Constraint >.

Definition at line 54 of file MINLP.h.

SepQcFunc::ftype MINLP::ConstraintView::functype (  )  const [inline, virtual]

Reimplemented from MINLP::ObjConView< MINLPData::Constraint >.

Definition at line 55 of file MINLP.h.

Func::CurvatureType MINLP::ConstraintView::curvature (  )  const [inline, virtual]

Reimplemented from MINLP::ObjConView< MINLPData::Constraint >.

Definition at line 56 of file MINLP.h.

double MINLP::ConstraintView::evaluate ( const UserVector< double > &  x  )  const [inline, virtual]

Evaluates the constraint.

TODO: Can throw an evaluation exception.

Parameters:
x The point where to evaluate the constraint.
Returns:
The value of the constraint in x.

Reimplemented from MINLP::ObjConView< MINLPData::Constraint >.

Definition at line 58 of file MINLP.h.

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.

Parameters:
grad The vector to store the gradient in.
x The point where to compute the gradient.

Reimplemented from MINLP::ObjConView< MINLPData::Constraint >.

Definition at line 61 of file MINLP.h.

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.

Parameters:
grad The vector where the gradient is stored.
x The point where to evaluate the constraint and to compute the gradient.
Returns:
The value of the constraint.

Reimplemented from MINLP::ObjConView< MINLPData::Constraint >.

Definition at line 64 of file MINLP.h.

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.

Parameters:
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 >.

Definition at line 66 of file MINLP.h.


The documentation for this class was generated from the following file:

Generated on 10 Mar 2013 for LaGO by  doxygen 1.6.1