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 | ( | ) |
Member Function Documentation
◆ createPartialdec()
| PARTIALDECOMP * gcg::BLOCK_STRUCTURE::createPartialdec | ( | DETPROBDATA * | parentdetprobdata, |
| DETPROBDATA * | newdetprobdata, | ||
| int | probnr ) |
Creates a partialdec using the stored structure information. The new partialdec is created using the constraint and variable names of a pricing problem created by GCG.
- Parameters
-
parentdetprobdata parent detprobdata (the one that fits to the stored con/var ids) newdetprobdata detprobdata used to create the new partialdec probnr the number of the pricing problem the partialdec is created for
Definition at line 99 of file class_partialdecomp.cpp.
References gcg::PARTIALDECOMP::aggInfoCalculated(), assert(), blockconss, blockstructures, gcg::PARTIALDECOMP::fixConsToBlock(), gcg::PARTIALDECOMP::fixConsToMaster(), GCGconshdlrDecompAddPreexisitingPartialDec(), gcg::DETPROBDATA::getCons(), gcg::DETPROBDATA::getGcg(), gcg::DETPROBDATA::getIndexForCons(), gcg::DETPROBDATA::getIndexForVar(), gcg::DETPROBDATA::getNConss(), gcg::DETPROBDATA::getNVars(), gcg::DETPROBDATA::getScip(), gcg::DETPROBDATA::getVar(), gcg::PARTIALDECOMP::getVarProbindexForBlock(), gcg::PARTIALDECOMP::getVarsForBlock(), gcg::DETPROBDATA::isAssignedToOrigProb(), masterconss, gcg::PARTIALDECOMP::PARTIALDECOMP(), gcg::PARTIALDECOMP::setBlockStructure(), gcg::PARTIALDECOMP::setNBlocks(), gcg::PARTIALDECOMP::setSymmetryInformation(), success, symmetricalblocks, symmetryvardata, translateStructure(), and var.
Referenced by buildProblem().
◆ 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
-
rowmapping row mapping used to translate data colmapping column mapping used to translate data translatesymmetry translate 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().