Scippy

GCG

Branch-and-Price & Column Generation for Everyone

type_varclassifier.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program */
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-2021 Operations Research, RWTH Aachen University */
10 /* Zuse Institute Berlin (ZIB) */
11 /* */
12 /* This program is free software; you can redistribute it and/or */
13 /* modify it under the terms of the GNU Lesser General Public License */
14 /* as published by the Free Software Foundation; either version 3 */
15 /* of the License, or (at your option) any later version. */
16 /* */
17 /* This program is distributed in the hope that it will be useful, */
18 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
19 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
20 /* GNU Lesser General Public License for more details. */
21 /* */
22 /* You should have received a copy of the GNU Lesser General Public License */
23 /* along with this program; if not, write to the Free Software */
24 /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.*/
25 /* */
26 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
27 
28 /**@file type_varclassifier.h
29  * @ingroup TYPEDEFINITIONS
30  * @brief type definitions for variable classifier in GCG projects
31  * @author William Ma
32  */
33 
34 #ifndef GCG_TYPE_VARCLASSIFIER_H__
35 #define GCG_TYPE_VARCLASSIFIER_H__
36 
37 #include <scip/def.h>
38 #include "scip/type_retcode.h"
39 #include "scip/type_scip.h"
40 #include "scip/type_result.h"
41 #include "type_classifier.h"
42 
44 
45 /** destructor of classifier to free classifier data (called when GCG is exiting)
46  *
47  * input:
48  * - scip : SCIP main data structure
49  * - classifier : classifier data structure
50  */
51 #define DEC_DECL_FREEVARCLASSIFIER(x) SCIP_RETCODE x (SCIP* scip, DEC_VARCLASSIFIER* classifier)
52 
53 /**
54  * Tries to classify variables with data of the according detprobdata and store the classification in the detprobdata
55  *
56  * input:
57  * - scip : SCIP data structure
58  * - transformed : should use data from transformed detprobdata or not
59  */
60 #define DEC_DECL_VARCLASSIFY(x) SCIP_RETCODE x (SCIP* scip, SCIP_Bool transformed)
61 
62 #endif //GCG_TYPE_VARCLASSIFIER_H__
type definitions for classifier in GCG project