#include <CouenneDomain.hpp>
Public Member Functions | |
DomainPoint (int dim=0, CouNumber *x=NULL, CouNumber *lb=NULL, CouNumber *ub=NULL, bool copy=true) | |
constructor | |
DomainPoint (int dim=0, const CouNumber *x=NULL, const CouNumber *lb=NULL, const CouNumber *ub=NULL, bool copy=true) | |
constructor | |
~DomainPoint () | |
destructor | |
DomainPoint (const DomainPoint &src) | |
copy constructor | |
void | resize (int newdim) |
resize domain point (for extending into higher space) | |
int | size () const |
return current size | |
int | Dimension () |
return dimension_ | |
CouNumber & | x (register int index) |
return current variable | |
CouNumber & | lb (register int index) |
return current lower bound | |
CouNumber & | ub (register int index) |
return current upper bound | |
CouNumber * | x () |
return current variable vector | |
CouNumber * | lb () |
return current lower bound vector | |
CouNumber * | ub () |
return current upper bound vector | |
DomainPoint & | operator= (const DomainPoint &src) |
assignment operator | |
bool & | isNlp () |
true if this point is the nlp solution | |
Protected Attributes | |
int | dimension_ |
dimension of point | |
CouNumber * | x_ |
current value of variables | |
CouNumber * | lb_ |
lower bound | |
CouNumber * | ub_ |
upper bound | |
bool | copied_ |
true if data has been copied (so we own it, and have to delete it upon destruction) | |
bool | isNlp_ |
true if this point comes from an NLP solver (and is thus nlp feasible) | |
Friends | |
class | Domain |
Definition at line 30 of file CouenneDomain.hpp.
DomainPoint::DomainPoint | ( | int | dim = 0 , |
|
CouNumber * | x = NULL , |
|||
CouNumber * | lb = NULL , |
|||
CouNumber * | ub = NULL , |
|||
bool | copy = true | |||
) |
constructor
Definition at line 24 of file domain.cpp.
References copied_, COUENNE_INFINITY, dimension_, lb_, size(), ub_, and x_.
DomainPoint::DomainPoint | ( | int | dim = 0 , |
|
const CouNumber * | x = NULL , |
|||
const CouNumber * | lb = NULL , |
|||
const CouNumber * | ub = NULL , |
|||
bool | copy = true | |||
) |
constructor
Definition at line 51 of file domain.cpp.
References copied_, COUENNE_INFINITY, dimension_, lb_, ub_, and x_.
Couenne::DomainPoint::~DomainPoint | ( | ) | [inline] |
DomainPoint::DomainPoint | ( | const DomainPoint & | src | ) |
copy constructor
Definition at line 76 of file domain.cpp.
References copied_, dimension_, lb_, ub_, and x_.
void DomainPoint::resize | ( | int | newdim | ) |
resize domain point (for extending into higher space)
Definition at line 97 of file domain.cpp.
References copied_, dimension_, EXTRA_STORAGE, lb_, ub_, and x_.
int Couenne::DomainPoint::size | ( | ) | const [inline] |
return current size
Definition at line 79 of file CouenneDomain.hpp.
References dimension_.
Referenced by DomainPoint().
int Couenne::DomainPoint::Dimension | ( | ) | [inline] |
return dimension_
Definition at line 82 of file CouenneDomain.hpp.
References dimension_.
Referenced by Couenne::CouenneProblem::checkNLP2().
CouNumber& Couenne::DomainPoint::x | ( | register int | index | ) | [inline] |
CouNumber& Couenne::DomainPoint::lb | ( | register int | index | ) | [inline] |
CouNumber& Couenne::DomainPoint::ub | ( | register int | index | ) | [inline] |
CouNumber* Couenne::DomainPoint::x | ( | ) | [inline] |
CouNumber* Couenne::DomainPoint::lb | ( | ) | [inline] |
CouNumber* Couenne::DomainPoint::ub | ( | ) | [inline] |
DomainPoint & DomainPoint::operator= | ( | const DomainPoint & | src | ) |
assignment operator
Definition at line 133 of file domain.cpp.
References copied_, dimension_, lb_, ub_, and x_.
bool& Couenne::DomainPoint::isNlp | ( | ) | [inline] |
true if this point is the nlp solution
Definition at line 96 of file CouenneDomain.hpp.
References isNlp_.
friend class Domain [friend] |
Definition at line 32 of file CouenneDomain.hpp.
int Couenne::DomainPoint::dimension_ [protected] |
dimension of point
Definition at line 36 of file CouenneDomain.hpp.
Referenced by Dimension(), DomainPoint(), operator=(), resize(), and size().
CouNumber* Couenne::DomainPoint::x_ [protected] |
current value of variables
Definition at line 38 of file CouenneDomain.hpp.
Referenced by DomainPoint(), operator=(), resize(), x(), and ~DomainPoint().
CouNumber* Couenne::DomainPoint::lb_ [protected] |
lower bound
Definition at line 39 of file CouenneDomain.hpp.
Referenced by DomainPoint(), lb(), operator=(), resize(), and ~DomainPoint().
CouNumber* Couenne::DomainPoint::ub_ [protected] |
upper bound
Definition at line 40 of file CouenneDomain.hpp.
Referenced by DomainPoint(), operator=(), resize(), ub(), and ~DomainPoint().
bool Couenne::DomainPoint::copied_ [protected] |
true if data has been copied (so we own it, and have to delete it upon destruction)
Definition at line 42 of file CouenneDomain.hpp.
Referenced by DomainPoint(), operator=(), resize(), and ~DomainPoint().
bool Couenne::DomainPoint::isNlp_ [protected] |
true if this point comes from an NLP solver (and is thus nlp feasible)
Definition at line 45 of file CouenneDomain.hpp.
Referenced by isNlp().