GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
decomp.h File Reference

Detailed Description

private methods for working with decomp structures

Author
Martin Bergner

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
gcgGCG data structure
decompdecomposition data structure
detectorsnew detector chain
ndetectorsnumber of new detectors (i.e. length of the detector array)

Definition at line 1635 of file decomp.c.

References GCG_Decomp::detectorchain, GCGdecompSetDetectorChain(), GCGgetOrigprob(), and GCG_Decomp::sizedetectorchain.

Referenced by createDecompFromPartialdec(), and GCGdecompSetDetectorChain().

◆ GCGdecompSetPartialdecID()

GCG_EXPORT void GCGdecompSetPartialdecID ( GCG_DECOMP * decomp,
int id )

sets the id of the original partialdec

Parameters
decompdecomposition data structure
idID of partialdec

Definition at line 1673 of file decomp.c.

References assert(), GCGdecompSetPartialdecID(), and GCG_Decomp::partialdecid.

Referenced by createDecompFromPartialdec(), and GCGdecompSetPartialdecID().