Detailed Description
type definitions for detectors in GCG projects
Definition in file type_detector.h.
#include "scip/type_retcode.h"#include "scip/type_scip.h"#include "scip/type_result.h"#include "gcg/type_decomp.h"#include "gcg/type_gcg.h"Go to the source code of this file.
Typedefs | |
| typedef struct GCG_Detector | GCG_DETECTOR |
| typedef struct GCG_DetectorData | GCG_DETECTORDATA |
| typedef struct Partialdec_Detection_Data | PARTIALDEC_DETECTION_DATA |
Macro Definition Documentation
◆ GCG_DECL_FREEDETECTOR
| #define GCG_DECL_FREEDETECTOR | ( | x | ) | SCIP_RETCODE x (GCG* gcg, GCG_DETECTOR* detector) |
destructor of detector to free user data (called when GCG is exiting)
input:
- scip : SCIP main data structure
- detector : detector data structure
Definition at line 62 of file type_detector.h.
◆ GCG_DECL_INITDETECTOR
| #define GCG_DECL_INITDETECTOR | ( | x | ) | SCIP_RETCODE x (GCG* gcg, GCG_DETECTOR* detector) |
detector initialization method (called after problem was transformed) It can be used to fill the detector data with needed information. The implementation is optional.
input:
- scip : SCIP data structure
- detector : detector data structure
Definition at line 72 of file type_detector.h.
◆ GCG_DECL_EXITDETECTOR
| #define GCG_DECL_EXITDETECTOR | ( | x | ) | SCIP_RETCODE x (GCG* gcg, GCG_DETECTOR* detector) |
detector deinitialization method (called before the transformed problem is freed) It can be used to clean up the data created in DEC_DECL_INITDETECTOR. The implementation is optional.
input:
- scip : SCIP data structure
- detector : detector data structure
Definition at line 82 of file type_detector.h.
◆ GCG_DECL_PROPAGATEPARTIALDEC
| #define GCG_DECL_PROPAGATEPARTIALDEC | ( | x | ) | SCIP_RETCODE x (GCG* gcg, GCG_DETECTOR* detector, PARTIALDEC_DETECTION_DATA* partialdecdetectiondata, SCIP_RESULT* result) |
given a partialdec (incomplete decomposition) the detector tries to find refined partialdec and stores it
input:
- scip : SCIP data structure
- detector : pointer to detector
- partialdecdetectiondata : pointer to partialdec propagation data structure
- result : pointer where to store the result
possible return values for result:
- SCIP_SUCCESS : the method completed and found decompositions
- SCIP_DIDNOTFIND : the method completed without finding a decomposition
- SCIP_DIDNOTRUN : the method did not run
Definition at line 100 of file type_detector.h.
◆ GCG_DECL_FINISHPARTIALDEC
| #define GCG_DECL_FINISHPARTIALDEC | ( | x | ) | SCIP_RETCODE x (GCG* gcg, GCG_DETECTOR* detector, PARTIALDEC_DETECTION_DATA* partialdecdetectiondata, SCIP_RESULT* result) |
given a partialdec (incomplete decomposition) the detector tries to find finished partialdecs and stores them
input:
- scip : SCIP data structure
- detector : pointer to detector
- partialdecdetectiondata : pointer to partialdec propagation data structure
- result : pointer where to store the result
possible return values for result:
- SCIP_SUCCESS : the method completed and found decompositions
- SCIP_DIDNOTFIND : the method completed without finding a decomposition
- SCIP_DIDNOTRUN : the method did not run
Definition at line 118 of file type_detector.h.
◆ GCG_DECL_POSTPROCESSPARTIALDEC
| #define GCG_DECL_POSTPROCESSPARTIALDEC | ( | x | ) | SCIP_RETCODE x (GCG* gcg, GCG_DETECTOR* detector, PARTIALDEC_DETECTION_DATA* partialdecdetectiondata, SCIP_RESULT* result) |
given a complete partialdec (complete decomposition) the detector postprocess the partialdec in order to find a different yet promising partialdec
input:
- scip : SCIP data structure
- detector : pointer to detector
- partialdecdetectiondata : pointer to partialdec propagation data structure
- result : pointer where to store the result
possible return values for result:
- SCIP_SUCCESS : the method completed and found decompositions
- SCIP_DIDNOTFIND : the method completed without finding a decomposition
- SCIP_DIDNOTRUN : the method did not run
Definition at line 135 of file type_detector.h.
◆ GCG_DECL_SETPARAMFAST
| #define GCG_DECL_SETPARAMFAST | ( | x | ) | SCIP_RETCODE x (GCG* gcg, GCG_DETECTOR* detector, SCIP_RESULT* result) |
set the parameter of a detector to values according to fast emphasis and size of the instance input:
- scip : SCIP data structure
- detector : pointer to detector
- result : pointer where to store the result
possible return values for result:
- SCIP_SUCCESS : the method completed
- SCIP_DIDNOTRUN : the method did not run
Definition at line 148 of file type_detector.h.
◆ GCG_DECL_SETPARAMAGGRESSIVE
| #define GCG_DECL_SETPARAMAGGRESSIVE | ( | x | ) | SCIP_RETCODE x (GCG* gcg, GCG_DETECTOR* detector, SCIP_RESULT* result) |
set the parameter of a detector to values according to aggressive emphasis and size of the instance input:
- scip : SCIP data structure
- detector : pointer to detector
- result : pointer where to store the result
possible return values for result:
- SCIP_SUCCESS : the method completed
- SCIP_DIDNOTRUN : the method did not run
Definition at line 161 of file type_detector.h.
◆ GCG_DECL_SETPARAMDEFAULT
| #define GCG_DECL_SETPARAMDEFAULT | ( | x | ) | SCIP_RETCODE x (GCG* gcg, GCG_DETECTOR* detector, SCIP_RESULT* result) |
set the parameter of a detector to values according to default emphasis and size of the instance input:
- scip : SCIP data structure
- detector : pointer to detector
- result : pointer where to store the result
possible return values for result:
- SCIP_SUCCESS : the method completed
- SCIP_DIDNOTRUN : the method did not run
Definition at line 174 of file type_detector.h.
Typedef Documentation
◆ GCG_DETECTOR
| typedef struct GCG_Detector GCG_DETECTOR |
Definition at line 48 of file type_detector.h.
◆ GCG_DETECTORDATA
| typedef struct GCG_DetectorData GCG_DETECTORDATA |
Definition at line 49 of file type_detector.h.
◆ PARTIALDEC_DETECTION_DATA
| typedef struct Partialdec_Detection_Data PARTIALDEC_DETECTION_DATA |
Definition at line 53 of file type_detector.h.