DomainPoint Class Reference

Define a point in the solution space and the bounds around it. More...

#include <domain.hpp>

List of all members.

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)
 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_
CouNumberx (register int index)
 return current variable
CouNumberlb (register int index)
 return current lower bound
CouNumberub (register int index)
 return current upper bound
CouNumberx ()
 return current variable vector
CouNumberlb ()
 return current lower bound vector
CouNumberub ()
 return current upper bound vector
DomainPointoperator= (const DomainPoint &src)
 assignment operator
bool & isNlp ()
 true if this point is the nlp solution

Protected Attributes

int dimension_
 dimension of point
CouNumberx_
 current value of variables
CouNumberlb_
 lower bound
CouNumberub_
 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)


Detailed Description

Define a point in the solution space and the bounds around it.

Definition at line 21 of file domain.hpp.


Constructor & Destructor Documentation

DomainPoint::DomainPoint ( int  dim = 0,
CouNumber x = NULL,
CouNumber lb = NULL,
CouNumber ub = NULL,
bool  copy = true 
)

constructor

Definition at line 18 of file domain.cpp.

References copied_, COUENNE_INFINITY, dimension_, lb_, ub_, and x_.

DomainPoint::DomainPoint ( int  dim = 0,
const CouNumber x = NULL,
const CouNumber lb = NULL,
const CouNumber ub = NULL 
)

constructor

Definition at line 43 of file domain.cpp.

References COUENNE_INFINITY, dimension_, lb_, ub_, and x_.

DomainPoint::~DomainPoint (  )  [inline]

destructor

Definition at line 52 of file domain.hpp.

References copied_, lb_, ub_, and x_.

DomainPoint::DomainPoint ( const DomainPoint src  ) 

copy constructor

Definition at line 67 of file domain.cpp.

References copied_, dimension_, lb_, ub_, and x_.


Member Function Documentation

void DomainPoint::resize ( int  newdim  ) 

resize domain point (for extending into higher space)

Definition at line 88 of file domain.cpp.

References copied_, dimension_, EXTRA_STORAGE, lb_, ub_, and x_.

int DomainPoint::size (  )  const [inline]

return current size

Definition at line 67 of file domain.hpp.

References dimension_.

int DomainPoint::Dimension (  )  [inline]

return dimension_

Definition at line 70 of file domain.hpp.

References dimension_.

CouNumber& DomainPoint::x ( register int  index  )  [inline]

return current variable

Definition at line 72 of file domain.hpp.

References x_.

CouNumber& DomainPoint::lb ( register int  index  )  [inline]

return current lower bound

Definition at line 73 of file domain.hpp.

References lb_.

CouNumber& DomainPoint::ub ( register int  index  )  [inline]

return current upper bound

Definition at line 74 of file domain.hpp.

References ub_.

CouNumber* DomainPoint::x (  )  [inline]

return current variable vector

Definition at line 76 of file domain.hpp.

References x_.

CouNumber* DomainPoint::lb (  )  [inline]

return current lower bound vector

Definition at line 77 of file domain.hpp.

References lb_.

CouNumber* DomainPoint::ub (  )  [inline]

return current upper bound vector

Definition at line 78 of file domain.hpp.

References ub_.

DomainPoint & DomainPoint::operator= ( const DomainPoint src  ) 

assignment operator

Definition at line 124 of file domain.cpp.

References copied_, dimension_, lb_, ub_, and x_.

bool& DomainPoint::isNlp (  )  [inline]

true if this point is the nlp solution

Definition at line 84 of file domain.hpp.

References isNlp_.


Member Data Documentation

int DomainPoint::dimension_ [protected]

dimension of point

Definition at line 25 of file domain.hpp.

Referenced by Dimension(), DomainPoint(), operator=(), resize(), and size().

CouNumber* DomainPoint::x_ [protected]

current value of variables

Definition at line 27 of file domain.hpp.

Referenced by DomainPoint(), operator=(), resize(), x(), and ~DomainPoint().

CouNumber* DomainPoint::lb_ [protected]

lower bound

Definition at line 28 of file domain.hpp.

Referenced by DomainPoint(), lb(), operator=(), resize(), and ~DomainPoint().

CouNumber* DomainPoint::ub_ [protected]

upper bound

Definition at line 29 of file domain.hpp.

Referenced by DomainPoint(), operator=(), resize(), ub(), and ~DomainPoint().

bool DomainPoint::copied_ [protected]

true if data has been copied (so we own it, and have to delete it upon destruction)

Definition at line 31 of file domain.hpp.

Referenced by DomainPoint(), operator=(), resize(), and ~DomainPoint().

bool DomainPoint::isNlp_ [protected]

true if this point comes from an NLP solver (and is thus nlp feasible)

Definition at line 34 of file domain.hpp.

Referenced by isNlp().


The documentation for this class was generated from the following files:
Generated on Mon Aug 3 03:07:18 2009 by  doxygen 1.4.7