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