decomp.h File Reference
Detailed Description
private methods for working with decomp structures
Definition in file decomp.h.
#include "gcg/type_decomp.h"#include "gcg/type_detector.h"#include "scip/scip.h"#include "gcg/gcg.h"Go to the source code of this file.
Functions | |
| GCG_EXPORT SCIP_RETCODE | GCGdecompSetDetectorChain (GCG *gcg, GCG_DECOMP *decomp, GCG_DETECTOR **detectors, int ndetectors) |
| GCG_EXPORT void | GCGdecompSetPartialdecID (GCG_DECOMP *decomp, int id) |
Function Documentation
◆ GCGdecompSetDetectorChain()
| GCG_EXPORT SCIP_RETCODE GCGdecompSetDetectorChain | ( | GCG * | gcg, |
| GCG_DECOMP * | decomp, | ||
| GCG_DETECTOR ** | detectors, | ||
| int | ndetectors | ||
| ) |
sets the detectors for the given decomposition
- Note
- make sure you know what you are doing, only use at initialization
- Parameters
-
gcg GCG data structure decomp decomposition data structure detectors new detector chain ndetectors number of new detectors (i.e. length of the detector array)
Definition at line 1635 of file decomp.c.
References BMSclearMemoryArray, GCG_Decomp::detectorchain, GCGgetOrigprob(), SCIP_CALL_ABORT, SCIP_OKAY, SCIPallocBlockMemoryArray, SCIPcalcMemGrowSize(), and GCG_Decomp::sizedetectorchain.
Referenced by createDecompFromPartialdec().
◆ GCGdecompSetPartialdecID()
| GCG_EXPORT void GCGdecompSetPartialdecID | ( | GCG_DECOMP * | decomp, |
| int | id | ||
| ) |
sets the id of the original partialdec
- Parameters
-
decomp decomposition data structure id ID of partialdec
Definition at line 1673 of file decomp.c.
References NULL, and GCG_Decomp::partialdecid.
Referenced by createDecompFromPartialdec().