coco::objbounds_comp_hook Class Reference
[Search Graph]

The objective-bounds computation hook (work node computation hook). More...

#include <objbounds_hook.h>

Inheritance diagram for coco::objbounds_comp_hook:

Inheritance graph
[legend]
Collaboration diagram for coco::objbounds_comp_hook:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 objbounds_comp_hook (bool _ub=false, bool _cd=false)
virtual ~objbounds_comp_hook ()
objbounds_comp_hooknew_copy () const
void operator() (const work_node &wn, dbt_row &dbr, std::list< delta > *add_ds=NULL, std::list< certificate > *add_cs=NULL) const
bool init_columns (vdbl::standard_table &stable)
bool drop_columns (vdbl::standard_table &stable)
const std::string & name () const

Protected Member Functions

template<class _CI >
bool _init_column (vdbl::standard_table &stable, const std::string &colname, const _CI &c)
template<class _CI >
bool _init_column (vdbl::standard_table &stable, const char *colname, const _CI &c)
bool _drop_columns (vdbl::standard_table &stable)
search_node_relation parent_relation (const work_node &wn) const
search_node_id node_id (const work_node &wn) const


Detailed Description

This class is a work node computation hook (
See also:
work_node_comp_hook), which calculates lower and upper bounds on the objective function on the work node and keeps them in the columns ``obj lowbound'' and ``obj upbound''. The diameter of the interval is kept in the column ``obj diameter''

Definition at line 46 of file objbounds_hook.h.


Constructor & Destructor Documentation

coco::objbounds_comp_hook::objbounds_comp_hook ( bool  _ub = false,
bool  _cd = false 
) [inline]

Standard Constructor

Definition at line 54 of file objbounds_hook.h.

virtual coco::objbounds_comp_hook::~objbounds_comp_hook (  )  [inline, virtual]

Standard Destructor

Definition at line 60 of file objbounds_hook.h.


Member Function Documentation

bool coco::wnc_hook_base::_drop_columns ( vdbl::standard_table &  stable  )  [protected, inherited]

Remove all columns, whose identifiers are stored in __managed_cols from table stable.

Definition at line 34 of file comp_hook.cc.

template<class _CI >
bool coco::wnc_hook_base::_init_column ( vdbl::standard_table &  stable,
const char *  colname,
const _CI &  c 
) [inline, protected, inherited]

Add a column of type _CI with name colname to the table stable. The column is stored in __managed_cols.

Definition at line 135 of file comp_hook.h.

template<class _CI >
bool coco::wnc_hook_base::_init_column ( vdbl::standard_table &  stable,
const std::string &  colname,
const _CI &  c 
) [inline, protected, inherited]

Add a column of type _CI with name colname to the table stable. The column is stored in __managed_cols.

Definition at line 238 of file comp_hook.h.

bool coco::objbounds_comp_hook::drop_columns ( vdbl::standard_table &  stable  )  [inline, virtual]

Upon unregistering this hook, destroy the columns ``obj lowbound'' ``obj diameter'', and ``obj upbound'' in the ``search info'' table.

Reimplemented from coco::wnc_hook_base.

Definition at line 130 of file objbounds_hook.h.

bool coco::objbounds_comp_hook::init_columns ( vdbl::standard_table &  stable  )  [inline, virtual]

Upon registering this hook, initialize the columns ``obj lowbound'' ``obj diameter'', and ``obj upbound'' in the ``search info'' table.

Reimplemented from coco::wnc_hook_base.

Definition at line 120 of file objbounds_hook.h.

const std::string& coco::wnc_hook_base::name (  )  const [inline, inherited]

Return the identifier string of this work node computation hook.

Definition at line 190 of file comp_hook.h.

objbounds_comp_hook* coco::objbounds_comp_hook::new_copy (  )  const [inline, virtual]

Clone Operation

Implements coco::wnc_hook_base.

Definition at line 63 of file objbounds_hook.h.

search_node_id coco::wnc_hook_base::node_id ( const work_node wn  )  const [protected, inherited]

This method is an accessor to the search_node_id of work_node wn.

Definition at line 43 of file comp_hook.cc.

void coco::objbounds_comp_hook::operator() ( const work_node wn,
dbt_row dbr,
std::list< delta > *  add_ds = NULL,
std::list< certificate > *  add_cs = NULL 
) const [inline, virtual]

The evaluation operator of this computation hook. It stores the lower and upper bounds on the objective function on the work_node wn in dbt_row dbr.

Implements coco::wnc_hook_base.

Definition at line 69 of file objbounds_hook.h.

search_node_relation coco::wnc_hook_base::parent_relation ( const work_node wn  )  const [protected, inherited]

This method is an accessor to the search_node_relation of work_node wn.

Definition at line 46 of file comp_hook.cc.


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

Generated on Tue Feb 9 14:49:47 2010 for COCONUT API by  doxygen 1.5.8