GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
struct_detector.h
Go to the documentation of this file.
1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2/* */
3/* This file is part of the program and library */
4/* GCG --- Generic Column Generation */
5/* a Dantzig-Wolfe decomposition based extension */
6/* of the branch-cut-and-price framework */
7/* SCIP --- Solving Constraint Integer Programs */
8/* */
9/* Copyright (C) 2010-2026 Operations Research, RWTH Aachen University */
10/* Zuse Institute Berlin (ZIB) */
11/* */
12/* Licensed under the Apache License, Version 2.0 (the "License"); */
13/* you may not use this file except in compliance with the License. */
14/* You may obtain a copy of the License at */
15/* */
16/* http://www.apache.org/licenses/LICENSE-2.0 */
17/* */
18/* Unless required by applicable law or agreed to in writing, software */
19/* distributed under the License is distributed on an "AS IS" BASIS, */
20/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
21/* See the License for the specific language governing permissions and */
22/* limitations under the License. */
23/* */
24/* You should have received a copy of the Apache-2.0 license */
25/* along with GCG; see the file LICENSE. If not visit gcg.or.rwth-aachen.de.*/
26/* */
27/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
28
29/**@file struct_detector.h
30 * @ingroup DATASTRUCTURES
31 * @brief data structures for detectors
32 * @author Martin Bergner
33 * @author Christian Puchert
34 * @author Michael Bastubbe
35 */
36
37/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
38
39#ifndef GCG_STRUCT_DETECTOR_H__
40#define GCG_STRUCT_DETECTOR_H__
41
42#include "gcg/type_detector.h"
43
44
45
46/** detector data structure */
48 const char* name; /**< name of the detector */
49 GCG_DETECTORDATA* decdata; /**< custom data structure of the detectors */
50 char decchar; /**< display character of detector */
51 const char* description; /**< description of the detector */
52 int freqCallRound; /** frequency the detector gets called in detection loop ,ie it is called in round r if and only if minCallRound <= r <= maxCallRound AND (r - minCallRound) mod freqCallRound == 0 */
53 int maxCallRound; /** last round the detector gets called */
54 int minCallRound; /** first round the detector gets called (offset in detection loop) */
55 int freqCallRoundOriginal; /** frequency the detector gets called in detection loop while detecting the original problem */
56 int maxCallRoundOriginal; /** last round the detector gets called while detecting the original problem */
57 int minCallRoundOriginal; /** first round the detector gets calles (offset in detection loop) while detecting the original problem */
58 int priority; /**< detector priority */
59 SCIP_Bool enabled; /**< flag to indicate whether detector is enabled */
60 SCIP_Bool enabledFinishing; /**< flag to indicate whether finishing is enabled */
61 SCIP_Bool enabledPostprocessing; /**< flag to indicate whether finishing is enabled */
62 SCIP_Bool skip; /**< should detector be skipped if other detectors found decompositions */
63 SCIP_Bool usefulRecall; /** is it useful to call this detector on a descendant of the propagated partialdec */
64 SCIP_Bool overruleemphasis; /**< should the emphasis settings be overruled */
65 int ndecomps; /**< number of decompositions the detector has worked on */
66 int ncompletedecomps; /**< number of complete decompositions the detector has worked on (including decompositions that were finished by other detectors) */
67 SCIP_Real dectime; /**< time the detector took to find decompositions */
68
69 GCG_DECL_FREEDETECTOR((*freeDetector)); /**< destructor of detector */
70 GCG_DECL_INITDETECTOR((*initDetector)); /**< initialization method of detector */
71 GCG_DECL_EXITDETECTOR((*exitDetector)); /**< deinitialization method of detector */
72 GCG_DECL_EXITDETECTOR((*exitDetection)); /**< deinitialization method of detector */
73 GCG_DECL_PROPAGATEPARTIALDEC((*propagatePartialdec)); /**< propagation method of detector (or NULL) */
74 GCG_DECL_FINISHPARTIALDEC((*finishPartialdec)); /**< finish method of detector (or NULL) */
75 GCG_DECL_POSTPROCESSPARTIALDEC((*postprocessPartialdec)); /**< postprocess method of detector (or NULL) */
76 GCG_DECL_SETPARAMAGGRESSIVE((*setParamAggressive)); /**< set method for aggressive parameters of detector (or NULL) */
77 GCG_DECL_SETPARAMDEFAULT((*setParamDefault)); /**< set method for default parameters of detector (or NULL) */
78 GCG_DECL_SETPARAMFAST((*setParamFast)); /**< set method for fast parameters of detector (or NULL) */
79
80
81};
82
83
84#endif
#define SCIP_Bool
#define SCIP_Real
GCG_DECL_SETPARAMAGGRESSIVE((*setParamAggressive))
SCIP_Bool overruleemphasis
const char * description
SCIP_Bool usefulRecall
SCIP_Bool enabledPostprocessing
GCG_DECL_PROPAGATEPARTIALDEC((*propagatePartialdec))
SCIP_Bool enabledFinishing
GCG_DECL_SETPARAMDEFAULT((*setParamDefault))
GCG_DECL_POSTPROCESSPARTIALDEC((*postprocessPartialdec))
GCG_DECL_EXITDETECTOR((*exitDetection))
const char * name
SCIP_Real dectime
GCG_DECL_SETPARAMFAST((*setParamFast))
GCG_DECL_FINISHPARTIALDEC((*finishPartialdec))
SCIP_Bool enabled
GCG_DECL_FREEDETECTOR((*freeDetector))
GCG_DECL_INITDETECTOR((*initDetector))
GCG_DETECTORDATA * decdata
GCG_DECL_EXITDETECTOR((*exitDetector))
type definitions for detectors in GCG projects
struct GCG_DetectorData GCG_DETECTORDATA