Scippy

UG

Ubiquity Generator framework

bbParaTagDef.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program and software framework */
4 /* UG --- Ubquity Generator Framework */
5 /* */
6 /* Copyright Written by Yuji Shinano <shinano@zib.de>, */
7 /* Copyright (C) 2021 by Zuse Institute Berlin, */
8 /* licensed under LGPL version 3 or later. */
9 /* Commercial licenses are available through <licenses@zib.de> */
10 /* */
11 /* This code is free software; you can redistribute it and/or */
12 /* modify it under the terms of the GNU Lesser General Public License */
13 /* as published by the Free Software Foundation; either version 3 */
14 /* of the License, or (at your option) any later version. */
15 /* */
16 /* This program is distributed in the hope that it will be useful, */
17 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
18 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
19 /* GNU Lesser General Public License for more details. */
20 /* */
21 /* You should have received a copy of the GNU Lesser General Public License */
22 /* along with this program. If not, see <http://www.gnu.org/licenses/>. */
23 /* */
24 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
25 
26 /**@file bbParaTagDef.h
27  * @brief ug_bb Tag definitions
28  * @author Yuji Shinano
29  *
30  *
31  *
32  */
33 
34 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
35 
36 
37 #ifndef __BB_PARA_TAG_DEF_H__
38 #define __BB_PARA_TAG_DEF_H__
39 
40 #include "ug/paraTagDef.h"
41 
42 namespace UG
43 {
44 static const int TAG_BB_FIRST = TAG_UG_LAST + 1;
45 //------------------------------------------------------------------------------------------------
46 static const int TagRetryRampUp = TAG_BB_FIRST + 0;
47 static const int TagGlobalBestDualBoundValueAtWarmStart = TAG_BB_FIRST + 1;
48 static const int TagAnotherNodeRequest = TAG_BB_FIRST + 2;
49 static const int TagNoNodes = TAG_BB_FIRST + 3;
50 static const int TagInCollectingMode = TAG_BB_FIRST + 4;
51 static const int TagCollectAllNodes = TAG_BB_FIRST + 5;
52 static const int TagOutCollectingMode = TAG_BB_FIRST + 6;
53 static const int TagLCBestBoundValue = TAG_BB_FIRST + 7;
54 static const int TagLightWeightRootNodeProcess = TAG_BB_FIRST + 8;
55 static const int TagBreaking = TAG_BB_FIRST + 9;
56 static const int TagGivenGapIsReached = TAG_BB_FIRST + 10;
57 static const int TagAllowToBeInCollectingMode = TAG_BB_FIRST + 11;
58 static const int TagTestDualBoundGain = TAG_BB_FIRST + 12;
59 static const int TagNoTestDualBoundGain = TAG_BB_FIRST + 13;
60 static const int TagNoWaitModeSend = TAG_BB_FIRST + 14;
61 static const int TagRestart = TAG_BB_FIRST + 15;
62 static const int TagLbBoundTightenedIndex = TAG_BB_FIRST + 16;
63 static const int TagLbBoundTightenedBound = TAG_BB_FIRST + 17;
64 static const int TagUbBoundTightenedIndex = TAG_BB_FIRST + 18;
65 static const int TagUbBoundTightenedBound = TAG_BB_FIRST + 19;
66 static const int TagCutOffValue = TAG_BB_FIRST + 20;
67 static const int TagChangeSearchStrategy = TAG_BB_FIRST + 21;
68 static const int TagSolverDiffParamSet = TAG_BB_FIRST + 22;
69 static const int TagKeepRacing = TAG_BB_FIRST + 23;
70 static const int TagTerminateSolvingToRestart = TAG_BB_FIRST + 24;
71 static const int TagSelfSplitFinished = TAG_BB_FIRST + 25;
72 static const int TagNewSubtreeRootNode = TAG_BB_FIRST + 26;
73 static const int TagSubtreeRootNodeStartComputation = TAG_BB_FIRST + 27;
74 static const int TagSubtreeRootNodeToBeRemoved = TAG_BB_FIRST + 28;
75 static const int TagReassignSelfSplitSubtreeRootNode = TAG_BB_FIRST + 29;
76 static const int TagSelfSlpitNodeCalcuationState = TAG_BB_FIRST + 30;
77 static const int TagTermStateForInterruption = TAG_BB_FIRST + 31;
78 static const int TagSelfSplitTermStateForInterruption = TAG_BB_FIRST + 32;
79 //-----------------------------------------------------------------------------------------------
80 static const int TAG_BB_BASE_LAST = TAG_BB_FIRST + 32;
81 static const int N_BB_BASE_TAGS = TAG_BB_BASE_LAST - TAG_UG_FIRST + 1;
82 
83 #ifdef _COMM_MPI_WORLD
84 
85 static const int TAG_BB_MPI_FIRST = TAG_BB_BASE_LAST + 1;
86 //-----------------------------------------------------------------------------------------------
87 //-----------------------------------------------------------------------------------------------
88 static const int TAG_BB_MPI_LAST = TAG_BB_MPI_FIRST - 1; // no tag
89 static const int N_BB_MPI_TAGS = TAG_BB_MPI_LAST - TAG_UG_FIRST + 1;
90 //-----------------------------------------------------------------------------------------------
91 static const int TAG_BB_LAST = TAG_BB_MPI_LAST;
92 static const int N_BB_TAGS = TAG_BB_LAST - TAG_UG_FIRST + 1;
93 
94 #endif
95 
96 #if defined(_COMM_PTH) || defined (_COMM_CPP11)
97 
98 static const int TAG_BB_TH_FIRST = TAG_BB_BASE_LAST + 1;
99 //-----------------------------------------------------------------------------------------------
100 //-----------------------------------------------------------------------------------------------
101 static const int TAG_BB_TH_LAST = TAG_BB_TH_FIRST - 1; // no tag
102 static const int N_BB_TH_TAGS = TAG_BB_TH_LAST - TAG_UG_FIRST + 1;
103 //-----------------------------------------------------------------------------------------------
104 static const int TAG_BB_LAST = TAG_BB_TH_LAST;
105 static const int N_BB_TAGS = TAG_BB_LAST - TAG_UG_FIRST + 1;
106 
107 #endif
108 }
109 
110 #endif // __BB_PARA_TAG_DEF_H__
static const int TagReassignSelfSplitSubtreeRootNode
Definition: bbParaTagDef.h:75
static const int TagNewSubtreeRootNode
Definition: bbParaTagDef.h:72
static const int TagCutOffValue
Definition: bbParaTagDef.h:66
static const int TagLightWeightRootNodeProcess
Definition: bbParaTagDef.h:54
static const int TagSubtreeRootNodeToBeRemoved
Definition: bbParaTagDef.h:74
static const int TagNoTestDualBoundGain
Definition: bbParaTagDef.h:59
static const int TagLCBestBoundValue
Definition: bbParaTagDef.h:53
static const int TagGivenGapIsReached
Definition: bbParaTagDef.h:56
static const int TagLbBoundTightenedBound
Definition: bbParaTagDef.h:63
static const int TagCollectAllNodes
Definition: bbParaTagDef.h:51
static const int TagSelfSlpitNodeCalcuationState
Definition: bbParaTagDef.h:76
static const int TagChangeSearchStrategy
Definition: bbParaTagDef.h:67
static const int TagRestart
Definition: bbParaTagDef.h:61
static const int TagInCollectingMode
Definition: bbParaTagDef.h:50
static const int TAG_UG_FIRST
Definition: paraTagDef.h:45
static const int TAG_BB_FIRST
Definition: bbParaTagDef.h:44
static const int TagTermStateForInterruption
Definition: bbParaTagDef.h:77
static const int TagGlobalBestDualBoundValueAtWarmStart
Definition: bbParaTagDef.h:47
static const int TagAnotherNodeRequest
Definition: bbParaTagDef.h:48
static const int TagUbBoundTightenedIndex
Definition: bbParaTagDef.h:64
static const int TagRetryRampUp
Definition: bbParaTagDef.h:46
static const int TagBreaking
Definition: bbParaTagDef.h:55
static const int TagTestDualBoundGain
Definition: bbParaTagDef.h:58
static const int TagAllowToBeInCollectingMode
Definition: bbParaTagDef.h:57
static const int N_BB_BASE_TAGS
Definition: bbParaTagDef.h:81
static const int TagTerminateSolvingToRestart
Definition: bbParaTagDef.h:70
Fundamental Tag definitions.
static const int TagSelfSplitTermStateForInterruption
Definition: bbParaTagDef.h:78
static const int TagNoNodes
Definition: bbParaTagDef.h:49
static const int TagSolverDiffParamSet
Definition: bbParaTagDef.h:68
static const int TagLbBoundTightenedIndex
Definition: bbParaTagDef.h:62
static const int TagSubtreeRootNodeStartComputation
Definition: bbParaTagDef.h:73
static const int TagSelfSplitFinished
Definition: bbParaTagDef.h:71
static const int TAG_BB_BASE_LAST
Definition: bbParaTagDef.h:80
static const int TagNoWaitModeSend
Definition: bbParaTagDef.h:60
static const int TagUbBoundTightenedBound
Definition: bbParaTagDef.h:65
static const int TagKeepRacing
Definition: bbParaTagDef.h:69
static const int TagOutCollectingMode
Definition: bbParaTagDef.h:52