List of all members
BCP_problem_core Class Reference

This class describes the core of the MIP problem, the variables/cuts in it as well as the matrix corresponding the core variables and cuts. More...

#include <BCP_problem_core.hpp>

Collaboration diagram for BCP_problem_core:
Collaboration graph
[legend]

Public Member Functions

Constructors and destructor
 BCP_problem_core ()
 The default constructor creates an empty core description: no variables/cuts and an empty matrix. More...
 
 BCP_problem_core (BCP_vec< BCP_var_core * > &v, BCP_vec< BCP_cut_core * > &c, BCP_lp_relax *&m)
 This constructor "takes over" the arguments. More...
 
 ~BCP_problem_core ()
 The desctructor deletes all data members. More...
 
Query methods
size_t varnum () const
 Return the number of variables in the core. More...
 
size_t cutnum () const
 Return the number of cuts in the core. More...
 
Packing and unpacking methods
void pack (BCP_buffer &buf) const
 Pack the contents of the core description into the buffer. More...
 
void unpack (BCP_buffer &buf)
 Unpack the contents of the core description from the buffer. More...
 

Public Attributes

Data members
BCP_vec< BCP_var_core * > vars
 A vector of pointers to the variables in the core of the problem. More...
 
BCP_vec< BCP_cut_core * > cuts
 A vector of pointers to the cuts in the core of the problem. More...
 
BCP_lp_relaxmatrix
 A pointer to the constraint matrix corresponding to the core variables and cuts. More...
 

Private Member Functions

Private and disabled methods
void clear ()
 Delete all data members. More...
 
 BCP_problem_core (const BCP_problem_core &)
 The copy constructor is declared but not defined to disable it. More...
 
BCP_problem_coreoperator= (const BCP_problem_core &)
 The assignment operator is declared but not defined to disable it. More...
 

Detailed Description

This class describes the core of the MIP problem, the variables/cuts in it as well as the matrix corresponding the core variables and cuts.

Core cuts and variables never leave the formulation.

Definition at line 31 of file BCP_problem_core.hpp.

Constructor & Destructor Documentation

BCP_problem_core::BCP_problem_core ( const BCP_problem_core )
private

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

BCP_problem_core::BCP_problem_core ( )

The default constructor creates an empty core description: no variables/cuts and an empty matrix.

Definition at line 22 of file BCP_problem_core.cpp.

BCP_problem_core::BCP_problem_core ( BCP_vec< BCP_var_core * > &  v,
BCP_vec< BCP_cut_core * > &  c,
BCP_lp_relax *&  m 
)
inline

This constructor "takes over" the arguments.

The created core description will have the content of the arguments in its data members while the arguments lose their content.

Definition at line 65 of file BCP_problem_core.hpp.

BCP_problem_core::~BCP_problem_core ( )

The desctructor deletes all data members.

Definition at line 25 of file BCP_problem_core.cpp.

Member Function Documentation

void BCP_problem_core::clear ( )
inlineprivate

Delete all data members.

This method purges the pointer vector members, i.e., deletes the object the pointers in the vectors point to.

Definition at line 14 of file BCP_problem_core.cpp.

BCP_problem_core& BCP_problem_core::operator= ( const BCP_problem_core )
private

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

size_t BCP_problem_core::varnum ( ) const
inline

Return the number of variables in the core.

Definition at line 78 of file BCP_problem_core.hpp.

size_t BCP_problem_core::cutnum ( ) const
inline

Return the number of cuts in the core.

Definition at line 80 of file BCP_problem_core.hpp.

void BCP_problem_core::pack ( BCP_buffer buf) const

Pack the contents of the core description into the buffer.

Definition at line 32 of file BCP_problem_core.cpp.

void BCP_problem_core::unpack ( BCP_buffer buf)

Unpack the contents of the core description from the buffer.

Definition at line 72 of file BCP_problem_core.cpp.

Member Data Documentation

BCP_vec<BCP_var_core*> BCP_problem_core::vars

A vector of pointers to the variables in the core of the problem.

These are the variables that always stay in the problem formulation.

Definition at line 48 of file BCP_problem_core.hpp.

BCP_vec<BCP_cut_core*> BCP_problem_core::cuts

A vector of pointers to the cuts in the core of the problem.

These are the cuts that always stay in the problem formulation.

Definition at line 51 of file BCP_problem_core.hpp.

BCP_lp_relax* BCP_problem_core::matrix

A pointer to the constraint matrix corresponding to the core variables and cuts.

Definition at line 54 of file BCP_problem_core.hpp.


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