GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
gcg::BLOCK_STRUCTURE Struct Reference

Detailed Description

a lightweight struct that stores nested structure information of a block

Definition at line 81 of file class_partialdecomp.h.

#include <class_partialdecomp.h>

Public Member Functions

 ~BLOCK_STRUCTURE ()
PARTIALDECOMP * createPartialdec (DETPROBDATA *parentdetprobdata, DETPROBDATA *newdetprobdata, int probnr)
BLOCK_STRUCTURE * translateStructure (std::vector< int > &rowmapping, std::vector< int > &colmapping, SCIP_Bool translatesymmetry)

Data Fields

std::vector< int > masterconss
std::vector< std::vector< int > > blockconss
std::vector< BLOCK_STRUCTURE * > blockstructures
std::vector< int > symmetricalblocks
std::unordered_map< int, int > symmetryvardata

Constructor & Destructor Documentation

◆ ~BLOCK_STRUCTURE()

gcg::BLOCK_STRUCTURE::~BLOCK_STRUCTURE ( )

destructor

Definition at line 92 of file class_partialdecomp.cpp.

References blockstructures.

Member Function Documentation

◆ createPartialdec()

PARTIALDECOMP * gcg::BLOCK_STRUCTURE::createPartialdec ( DETPROBDATA * parentdetprobdata,
DETPROBDATA * newdetprobdata,
int probnr )

◆ translateStructure()

BLOCK_STRUCTURE * gcg::BLOCK_STRUCTURE::translateStructure ( std::vector< int > & rowmapping,
std::vector< int > & colmapping,
SCIP_Bool translatesymmetry )

translates the structure using provided mappings

Parameters
rowmappingrow mapping used to translate data
colmappingcolumn mapping used to translate data
translatesymmetrytranslate symmetry information?

Definition at line 193 of file class_partialdecomp.cpp.

References assert(), blockconss, blockstructures, masterconss, symmetricalblocks, and symmetryvardata.

Referenced by createPartialdec().

Field Documentation

◆ masterconss

std::vector<int> gcg::BLOCK_STRUCTURE::masterconss

vector containing the master constraints

Definition at line 103 of file class_partialdecomp.h.

Referenced by JDecDecompositionData::createBlockStructure(), createPartialdec(), and translateStructure().

◆ blockconss

std::vector<std::vector<int> > gcg::BLOCK_STRUCTURE::blockconss

vector of vectors (for each block) containing the block constraints

Definition at line 104 of file class_partialdecomp.h.

Referenced by JDecDecompositionData::createBlockStructure(), createPartialdec(), and translateStructure().

◆ blockstructures

std::vector<BLOCK_STRUCTURE*> gcg::BLOCK_STRUCTURE::blockstructures

vector containing pointers to block structures for each block (if available)

Definition at line 105 of file class_partialdecomp.h.

Referenced by JDecDecompositionData::createBlockStructure(), createPartialdec(), translateStructure(), and ~BLOCK_STRUCTURE().

◆ symmetricalblocks

std::vector<int> gcg::BLOCK_STRUCTURE::symmetricalblocks

vector containing for each block an id of a block that is symmetrical

Definition at line 106 of file class_partialdecomp.h.

Referenced by JDecDecompositionData::createBlockStructure(), createPartialdec(), and translateStructure().

◆ symmetryvardata

std::unordered_map<int, int> gcg::BLOCK_STRUCTURE::symmetryvardata

symmetry information of variables (mapping)

Definition at line 107 of file class_partialdecomp.h.

Referenced by JDecDecompositionData::createBlockStructure(), createPartialdec(), and translateStructure().