Scippy

SCIP

Solving Constraint Integer Programs

type_disp.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program and library */
4 /* SCIP --- Solving Constraint Integer Programs */
5 /* */
6 /* Copyright (C) 2002-2017 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not email to scip@zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file type_disp.h
17  * @ingroup TYPEDEFINITIONS
18  * @brief type definitions for displaying runtime statistics
19  * @author Tobias Achterberg
20  *
21  * This file defines the interface for display columns implemented in C.
22  *
23  * - \ref DISP "Instructions for implementing a display column"
24  * - \ref DISPLAYS "List of available display columns"
25  * - \ref scip::ObjDisp "C++ wrapper class
26  */
27 
28 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
29 
30 #ifndef __SCIP_TYPE_DISP_H__
31 #define __SCIP_TYPE_DISP_H__
32 
33 #include <stdio.h>
34 
35 #include "scip/def.h"
36 #include "scip/type_retcode.h"
37 #include "scip/type_scip.h"
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
43 /** display activation status of display column */
45 {
46  SCIP_DISPSTATUS_OFF = 0, /**< display column is not displayed */
47  SCIP_DISPSTATUS_AUTO = 1, /**< display column is switched on and off automatically */
48  SCIP_DISPSTATUS_ON = 2 /**< display column is displayed */
49 };
51 
52 /** display activation status of display column */
54 {
55  SCIP_DISPMODE_DEFAULT = 0x00000001u, /**< display column is displayed only in sequential mode */
56  SCIP_DISPMODE_CONCURRENT = 0x00000002u, /**< display column is displayed only in concurrent mode */
57  SCIP_DISPMODE_ALL = 0x00000003u /**< display column is displayed in concurrent and sequential mode*/
58 };
60 
61 typedef struct SCIP_Disp SCIP_DISP; /**< display column data structure */
62 typedef struct SCIP_DispData SCIP_DISPDATA; /**< display column specific data */
63 
64 
65 /** copy method for display plugins (called when SCIP copies plugins)
66  *
67  * input:
68  * - scip : SCIP main data structure
69  * - disp : the display column itself
70  */
71 #define SCIP_DECL_DISPCOPY(x) SCIP_RETCODE x (SCIP* scip, SCIP_DISP* disp)
72 
73 /** destructor of display column to free user data (called when SCIP is exiting)
74  *
75  * input:
76  * - scip : SCIP main data structure
77  * - disp : the display column itself
78  */
79 #define SCIP_DECL_DISPFREE(x) SCIP_RETCODE x (SCIP* scip, SCIP_DISP* disp)
80 
81 /** initialization method of display column (called after problem was transformed)
82  *
83  * input:
84  * - scip : SCIP main data structure
85  * - disp : the display column itself
86  */
87 #define SCIP_DECL_DISPINIT(x) SCIP_RETCODE x (SCIP* scip, SCIP_DISP* disp)
88 
89 /** deinitialization method of display column (called before transformed problem is freed)
90  *
91  * input:
92  * - scip : SCIP main data structure
93  * - disp : the display column itself
94  */
95 #define SCIP_DECL_DISPEXIT(x) SCIP_RETCODE x (SCIP* scip, SCIP_DISP* disp)
96 
97 /** solving process initialization method of display column (called when branch and bound process is about to begin)
98  *
99  * This method is called when the presolving was finished and the branch and bound process is about to begin.
100  * The display column may use this call to initialize its branch and bound specific data.
101  *
102  * input:
103  * - scip : SCIP main data structure
104  * - disp : the display column itself
105  */
106 #define SCIP_DECL_DISPINITSOL(x) SCIP_RETCODE x (SCIP* scip, SCIP_DISP* disp)
107 
108 /** solving process deinitialization method of display column (called before branch and bound process data is freed)
109  *
110  * This method is called before the branch and bound process is freed.
111  * The display column should use this call to clean up its branch and bound data.
112  *
113  * input:
114  * - scip : SCIP main data structure
115  * - disp : the display column itself
116  */
117 #define SCIP_DECL_DISPEXITSOL(x) SCIP_RETCODE x (SCIP* scip, SCIP_DISP* disp)
118 
119 /** output method of display column to output file stream 'file'
120  *
121  * input:
122  * - scip : SCIP main data structure
123  * - disp : the display column itself
124  * - file : file stream for output
125  */
126 #define SCIP_DECL_DISPOUTPUT(x) SCIP_RETCODE x (SCIP* scip, SCIP_DISP* disp, FILE* file)
127 
128 #ifdef __cplusplus
129 }
130 #endif
131 
132 #endif
struct SCIP_DispData SCIP_DISPDATA
Definition: type_disp.h:62
SCIP_DispStatus
Definition: type_disp.h:44
enum SCIP_DispMode SCIP_DISPMODE
Definition: type_disp.h:59
type definitions for return codes for SCIP methods
type definitions for SCIP&#39;s main datastructure
enum SCIP_DispStatus SCIP_DISPSTATUS
Definition: type_disp.h:50
common defines and data types used in all packages of SCIP
SCIP_DispMode
Definition: type_disp.h:53