Couenne  0.5.8
Public Member Functions | Protected Attributes | List of all members
Couenne::Domain Class Reference

Define a dynamic point+bounds, with a way to save and restore previous points+bounds through a LIFO structure. More...

#include <CouenneDomain.hpp>

+ Collaboration diagram for Couenne::Domain:

Public Member Functions

 Domain ()
 basic constructor More...
 
 Domain (const Domain &src)
 copy constructor More...
 
 ~Domain ()
 destructor More...
 
void push (int dim, CouNumber *x, CouNumber *lb, CouNumber *ub, bool copy=true)
 save current point and start using another More...
 
void push (int dim, const CouNumber *x, const CouNumber *lb, const CouNumber *ub, bool copy=true)
 save current point and start using another More...
 
void push (const OsiSolverInterface *si, OsiCuts *cs=NULL, bool copy=true)
 save current point and start using another – retrieve information from solver interface and from previous column cuts More...
 
void push (const DomainPoint &dp, bool copy=true)
 save current point and start using another More...
 
void pop ()
 restore previous point More...
 
DomainPointcurrent ()
 return current point More...
 
CouNumberx (register int index)
 current variable More...
 
CouNumberlb (register int index)
 current lower bound More...
 
CouNumberub (register int index)
 current upper bound More...
 
CouNumberx ()
 return current variable vector More...
 
CouNumberlb ()
 return current lower bound vector More...
 
CouNumberub ()
 return current upper bound vector More...
 

Protected Attributes

DomainPointpoint_
 current point More...
 
std::stack< DomainPoint * > domStack_
 stack of saved points More...
 

Detailed Description

Define a dynamic point+bounds, with a way to save and restore previous points+bounds through a LIFO structure.

Definition at line 104 of file CouenneDomain.hpp.

Constructor & Destructor Documentation

◆ Domain() [1/2]

Couenne::Domain::Domain ( )
inline

basic constructor

Definition at line 114 of file CouenneDomain.hpp.

◆ Domain() [2/2]

Couenne::Domain::Domain ( const Domain src)
inline

copy constructor

Definition at line 117 of file CouenneDomain.hpp.

◆ ~Domain()

Couenne::Domain::~Domain ( )

destructor

Member Function Documentation

◆ push() [1/4]

void Couenne::Domain::push ( int  dim,
CouNumber x,
CouNumber lb,
CouNumber ub,
bool  copy = true 
)

save current point and start using another

◆ push() [2/4]

void Couenne::Domain::push ( int  dim,
const CouNumber x,
const CouNumber lb,
const CouNumber ub,
bool  copy = true 
)

save current point and start using another

◆ push() [3/4]

void Couenne::Domain::push ( const OsiSolverInterface si,
OsiCuts cs = NULL,
bool  copy = true 
)

save current point and start using another – retrieve information from solver interface and from previous column cuts

◆ push() [4/4]

void Couenne::Domain::push ( const DomainPoint dp,
bool  copy = true 
)

save current point and start using another

◆ pop()

void Couenne::Domain::pop ( )

restore previous point

◆ current()

DomainPoint* Couenne::Domain::current ( )
inline

return current point

Definition at line 154 of file CouenneDomain.hpp.

◆ x() [1/2]

CouNumber& Couenne::Domain::x ( register int  index)
inline

current variable

Definition at line 156 of file CouenneDomain.hpp.

◆ lb() [1/2]

CouNumber& Couenne::Domain::lb ( register int  index)
inline

current lower bound

Definition at line 157 of file CouenneDomain.hpp.

◆ ub() [1/2]

CouNumber& Couenne::Domain::ub ( register int  index)
inline

current upper bound

Definition at line 158 of file CouenneDomain.hpp.

◆ x() [2/2]

CouNumber* Couenne::Domain::x ( )
inline

return current variable vector

Definition at line 160 of file CouenneDomain.hpp.

◆ lb() [2/2]

CouNumber* Couenne::Domain::lb ( )
inline

return current lower bound vector

Definition at line 161 of file CouenneDomain.hpp.

◆ ub() [2/2]

CouNumber* Couenne::Domain::ub ( )
inline

return current upper bound vector

Definition at line 162 of file CouenneDomain.hpp.

Member Data Documentation

◆ point_

DomainPoint* Couenne::Domain::point_
protected

current point

Definition at line 108 of file CouenneDomain.hpp.

◆ domStack_

std::stack<DomainPoint *> Couenne::Domain::domStack_
protected

stack of saved points

Definition at line 109 of file CouenneDomain.hpp.


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