Scippy

SCIP

Solving Constraint Integer Programs

struct_visual.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-2023 Zuse Institute Berlin (ZIB) */
7 /* */
8 /* Licensed under the Apache License, Version 2.0 (the "License"); */
9 /* you may not use this file except in compliance with the License. */
10 /* You may obtain a copy of the License at */
11 /* */
12 /* http://www.apache.org/licenses/LICENSE-2.0 */
13 /* */
14 /* Unless required by applicable law or agreed to in writing, software */
15 /* distributed under the License is distributed on an "AS IS" BASIS, */
16 /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
17 /* See the License for the specific language governing permissions and */
18 /* limitations under the License. */
19 /* */
20 /* You should have received a copy of the Apache-2.0 license */
21 /* along with SCIP; see the file LICENSE. If not visit scipopt.org. */
22 /* */
23 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
24 
25 /**@file struct_visual.h
26  * @ingroup INTERNALAPI
27  * @brief data structures for output for visualization tools (VBC, BAK)
28  * @author Tobias Achterberg
29  * @author Marc Pfetsch
30  * @author Gregor Hendel
31  */
32 
33 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
34 
35 #ifndef __SCIP_STRUCT_VISUAL_H__
36 #define __SCIP_STRUCT_VISUAL_H__
37 
38 #include <stdio.h>
39 
40 #include "scip/def.h"
41 #include "scip/type_visual.h"
42 #include "scip/type_misc.h"
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
48 /** visual data structure */
50 {
51  FILE* vbcfile; /**< file to store VBC information */
52  FILE* bakfile; /**< file to store BAK information */
53  SCIP_MESSAGEHDLR* messagehdlr; /**< message handler to use */
54  SCIP_HASHMAP* nodenum; /**< hash map for mapping nodes to node numbers */
55  SCIP_Longint timestep; /**< time step counter for non real time output */
56  SCIP_NODE* lastnode; /**< last node that was colored */
57  SCIP_VBCCOLOR lastcolor; /**< last color that was used */
58  SCIP_Bool userealtime; /**< should the real solving time be used instead of a time step counter? */
59  SCIP_Real lastlowerbound; /**< last lower bound that was output */
60 };
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif
enum SCIP_VBCColor SCIP_VBCCOLOR
Definition: type_visual.h:73
type definitions for miscellaneous datastructures
FILE * vbcfile
Definition: struct_visual.h:51
type definitions for output for visualization tools (VBC, BAK)
SCIP_VBCCOLOR lastcolor
Definition: struct_visual.h:57
SCIP_HASHMAP * nodenum
Definition: struct_visual.h:54
SCIP_Real lastlowerbound
Definition: struct_visual.h:59
SCIP_NODE * lastnode
Definition: struct_visual.h:56
FILE * bakfile
Definition: struct_visual.h:52
#define SCIP_Bool
Definition: def.h:93
SCIP_Bool userealtime
Definition: struct_visual.h:58
SCIP_Longint timestep
Definition: struct_visual.h:55
SCIP_MESSAGEHDLR * messagehdlr
Definition: struct_visual.h:53
#define SCIP_Real
Definition: def.h:186
#define SCIP_Longint
Definition: def.h:171
common defines and data types used in all packages of SCIP