Bcp 1.4.4
Loading...
Searching...
No Matches
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:

Public Member Functions

Constructors and destructor
 BCP_problem_core ()
 The default constructor creates an empty core description: no variables/cuts and an empty matrix.
 
 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.
 
 ~BCP_problem_core ()
 The desctructor deletes all data members.
 
Query methods
size_t varnum () const
 Return the number of variables in the core.
 
size_t cutnum () const
 Return the number of cuts in the core.
 
Packing and unpacking methods
void pack (BCP_buffer &buf) const
 Pack the contents of the core description into the buffer.
 
void unpack (BCP_buffer &buf)
 Unpack the contents of the core description from the buffer.
 

Public Attributes

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

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() [1/2]

BCP_problem_core::BCP_problem_core ( )

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

◆ BCP_problem_core() [2/2]

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::~BCP_problem_core ( )

The desctructor deletes all data members.

Member Function Documentation

◆ varnum()

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.

◆ cutnum()

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.

◆ pack()

void BCP_problem_core::pack ( BCP_buffer & buf) const

Pack the contents of the core description into the buffer.

◆ unpack()

void BCP_problem_core::unpack ( BCP_buffer & buf)

Unpack the contents of the core description from the buffer.

Member Data Documentation

◆ vars

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.

◆ cuts

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.

◆ matrix

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 file: