BCP_cut_indexed Class Reference

Implementation-wise indexed cuts differ from core cuts only in having a user given index. More...

#include <BCP_cut.hpp>

Inheritance diagram for BCP_cut_indexed:
Inheritance graph
[legend]
Collaboration diagram for BCP_cut_indexed:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Constructor and destructor



 BCP_cut_indexed (const int index, const double lb, const double ub)
 This constructor just sets the data members to the given values.
 ~BCP_cut_indexed ()
 The destructor deletes the object.
Query methods



int index () const
 Return the user index of the cut.
BCP_object_t obj_type () const
 Return BCP_IndexedObj indicating that the object is an indexed cut.

Private Member Functions

Disabled methods



 BCP_cut_indexed ()
 The default constructor is declared but not defined to disable it.
 BCP_cut_indexed (const BCP_cut_indexed &)
 The copy constructor is declared but not defined to disable it.
BCP_cut_indexedoperator= (const BCP_cut_indexed &)
 The assignment operator is declared but not defined to disable it.

Private Attributes

Data members



int _index
 The only (not inherited) data member is the user-given name of the cut.

Detailed Description

Implementation-wise indexed cuts differ from core cuts only in having a user given index.

This index is a unique user specified ID which enables the user to expand the cut into a constraint that can be added to the LP formulation.

Definition at line 234 of file BCP_cut.hpp.


Constructor & Destructor Documentation

BCP_cut_indexed::BCP_cut_indexed (  )  [private]

The default constructor is declared but not defined to disable it.

BCP_cut_indexed::BCP_cut_indexed ( const BCP_cut_indexed  )  [private]

The copy constructor is declared but not defined to disable it.

BCP_cut_indexed::BCP_cut_indexed ( const int  index,
const double  lb,
const double  ub 
) [inline]

This constructor just sets the data members to the given values.

See also the constructor of [BCP_cut{BCP_cut.html}.

Definition at line 259 of file BCP_cut.hpp.

BCP_cut_indexed::~BCP_cut_indexed (  )  [inline]

The destructor deletes the object.

Definition at line 262 of file BCP_cut.hpp.


Member Function Documentation

BCP_cut_indexed& BCP_cut_indexed::operator= ( const BCP_cut_indexed  )  [private]

The assignment operator is declared but not defined to disable it.

Reimplemented from BCP_cut.

int BCP_cut_indexed::index (  )  const [inline]

Return the user index of the cut.

Definition at line 268 of file BCP_cut.hpp.

BCP_object_t BCP_cut_indexed::obj_type (  )  const [inline, virtual]

Return BCP_IndexedObj indicating that the object is an indexed cut.

Implements BCP_cut.

Definition at line 270 of file BCP_cut.hpp.


Member Data Documentation

int BCP_cut_indexed::_index [private]

The only (not inherited) data member is the user-given name of the cut.

Definition at line 251 of file BCP_cut.hpp.


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

Generated on 15 Mar 2015 for Coin-All by  doxygen 1.6.1