Define a dynamic point+bounds, with a way to save and restore previous points+bounds through a LIFO structure. More...
#include <CouenneDomain.hpp>
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... | |
DomainPoint * | current () |
return current point More... | |
CouNumber & | x (register int index) |
current variable More... | |
CouNumber & | lb (register int index) |
current lower bound More... | |
CouNumber & | ub (register int index) |
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... | |
Protected Attributes | |
DomainPoint * | point_ |
current point More... | |
std::stack< DomainPoint * > | domStack_ |
stack of saved points More... | |
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.
|
inline |
basic constructor
Definition at line 114 of file CouenneDomain.hpp.
|
inline |
copy constructor
Definition at line 117 of file CouenneDomain.hpp.
Domain::~Domain | ( | ) |
destructor
Definition at line 153 of file domain.cpp.
save current point and start using another
Definition at line 166 of file domain.cpp.
void Domain::push | ( | int | dim, |
const CouNumber * | x, | ||
const CouNumber * | lb, | ||
const CouNumber * | ub, | ||
bool | copy = true |
||
) |
save current point and start using another
Definition at line 180 of file domain.cpp.
void 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
Definition at line 195 of file domain.cpp.
void Domain::push | ( | const DomainPoint & | dp, |
bool | copy = true |
||
) |
save current point and start using another
Definition at line 246 of file domain.cpp.
void Domain::pop | ( | ) |
restore previous point
Definition at line 255 of file domain.cpp.
|
inline |
return current point
Definition at line 154 of file CouenneDomain.hpp.
current variable
Definition at line 156 of file CouenneDomain.hpp.
current lower bound
Definition at line 157 of file CouenneDomain.hpp.
current upper bound
Definition at line 158 of file CouenneDomain.hpp.
|
inline |
return current variable vector
Definition at line 160 of file CouenneDomain.hpp.
|
inline |
return current lower bound vector
Definition at line 161 of file CouenneDomain.hpp.
|
inline |
return current upper bound vector
Definition at line 162 of file CouenneDomain.hpp.
|
protected |
current point
Definition at line 108 of file CouenneDomain.hpp.
|
protected |
stack of saved points
Definition at line 109 of file CouenneDomain.hpp.