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-2024 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
42namespace UG
43{
44static const int TAG_BB_FIRST = TAG_UG_LAST + 1;
45//------------------------------------------------------------------------------------------------
46static const int TagRetryRampUp = TAG_BB_FIRST + 0;
48static const int TagAnotherNodeRequest = TAG_BB_FIRST + 2;
49static const int TagNoNodes = TAG_BB_FIRST + 3;
50static const int TagInCollectingMode = TAG_BB_FIRST + 4;
51static const int TagCollectAllNodes = TAG_BB_FIRST + 5;
52static const int TagOutCollectingMode = TAG_BB_FIRST + 6;
53static const int TagLCBestBoundValue = TAG_BB_FIRST + 7;
55static const int TagBreaking = TAG_BB_FIRST + 9;
56static const int TagGivenGapIsReached = TAG_BB_FIRST + 10;
58static const int TagTestDualBoundGain = TAG_BB_FIRST + 12;
59static const int TagNoTestDualBoundGain = TAG_BB_FIRST + 13;
60static const int TagNoWaitModeSend = TAG_BB_FIRST + 14;
61static const int TagRestart = TAG_BB_FIRST + 15;
62static const int TagLbBoundTightenedIndex = TAG_BB_FIRST + 16;
63static const int TagLbBoundTightenedBound = TAG_BB_FIRST + 17;
64static const int TagUbBoundTightenedIndex = TAG_BB_FIRST + 18;
65static const int TagUbBoundTightenedBound = TAG_BB_FIRST + 19;
66static const int TagCutOffValue = TAG_BB_FIRST + 20;
67static const int TagChangeSearchStrategy = TAG_BB_FIRST + 21;
68static const int TagSolverDiffParamSet = TAG_BB_FIRST + 22;
69static const int TagKeepRacing = TAG_BB_FIRST + 23;
71static const int TagSelfSplitFinished = TAG_BB_FIRST + 25;
72static const int TagNewSubtreeRootNode = TAG_BB_FIRST + 26;
79//-----------------------------------------------------------------------------------------------
80static const int TAG_BB_BASE_LAST = TAG_BB_FIRST + 32;
82
83#ifdef _COMM_MPI_WORLD
84
85static const int TAG_BB_MPI_FIRST = TAG_BB_BASE_LAST + 1;
86//-----------------------------------------------------------------------------------------------
87//-----------------------------------------------------------------------------------------------
88static const int TAG_BB_MPI_LAST = TAG_BB_MPI_FIRST - 1; // no tag
90//-----------------------------------------------------------------------------------------------
91static const int TAG_BB_LAST = TAG_BB_MPI_LAST;
92static 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
98static const int TAG_BB_TH_FIRST = TAG_BB_BASE_LAST + 1;
99//-----------------------------------------------------------------------------------------------
100//-----------------------------------------------------------------------------------------------
101static const int TAG_BB_TH_LAST = TAG_BB_TH_FIRST - 1; // no tag
102static const int N_BB_TH_TAGS = TAG_BB_TH_LAST - TAG_UG_FIRST + 1;
103//-----------------------------------------------------------------------------------------------
104static const int TAG_BB_LAST = TAG_BB_TH_LAST;
105static 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 TagLCBestBoundValue
Definition: bbParaTagDef.h:53
static const int N_BB_TAGS
Definition: bbParaTagDef.h:92
static const int TagAnotherNodeRequest
Definition: bbParaTagDef.h:48
static const int TagCutOffValue
Definition: bbParaTagDef.h:66
static const int TagLbBoundTightenedBound
Definition: bbParaTagDef.h:63
static const int TagLightWeightRootNodeProcess
Definition: bbParaTagDef.h:54
static const int TagAllowToBeInCollectingMode
Definition: bbParaTagDef.h:57
static const int TagTerminateSolvingToRestart
Definition: bbParaTagDef.h:70
static const int TAG_BB_LAST
Definition: bbParaTagDef.h:91
static const int TAG_BB_FIRST
Definition: bbParaTagDef.h:44
static const int TagSelfSplitFinished
Definition: bbParaTagDef.h:71
static const int TagLbBoundTightenedIndex
Definition: bbParaTagDef.h:62
static const int TagCollectAllNodes
Definition: bbParaTagDef.h:51
static const int TagRestart
Definition: bbParaTagDef.h:61
static const int TagGivenGapIsReached
Definition: bbParaTagDef.h:56
static const int TAG_UG_LAST
Definition: paraTagDef.h:75
static const int TagGlobalBestDualBoundValueAtWarmStart
Definition: bbParaTagDef.h:47
static const int TagUbBoundTightenedIndex
Definition: bbParaTagDef.h:64
static const int TagSubtreeRootNodeToBeRemoved
Definition: bbParaTagDef.h:74
static const int TagNoWaitModeSend
Definition: bbParaTagDef.h:60
static const int TAG_UG_FIRST
Definition: paraTagDef.h:45
static const int N_BB_MPI_TAGS
Definition: bbParaTagDef.h:89
static const int N_BB_BASE_TAGS
Definition: bbParaTagDef.h:81
static const int TagTermStateForInterruption
Definition: bbParaTagDef.h:77
static const int TagReassignSelfSplitSubtreeRootNode
Definition: bbParaTagDef.h:75
static const int TagChangeSearchStrategy
Definition: bbParaTagDef.h:67
static const int TagNoTestDualBoundGain
Definition: bbParaTagDef.h:59
static const int TAG_BB_MPI_FIRST
Definition: bbParaTagDef.h:85
static const int TagUbBoundTightenedBound
Definition: bbParaTagDef.h:65
static const int TagBreaking
Definition: bbParaTagDef.h:55
static const int TAG_BB_MPI_LAST
Definition: bbParaTagDef.h:88
static const int N_BB_TH_TAGS
Definition: bbParaTagDef.h:102
static const int TagSelfSplitTermStateForInterruption
Definition: bbParaTagDef.h:78
static const int TAG_BB_BASE_LAST
Definition: bbParaTagDef.h:80
static const int TagRetryRampUp
Definition: bbParaTagDef.h:46
static const int TagKeepRacing
Definition: bbParaTagDef.h:69
static const int TagOutCollectingMode
Definition: bbParaTagDef.h:52
static const int TagSubtreeRootNodeStartComputation
Definition: bbParaTagDef.h:73
static const int TagInCollectingMode
Definition: bbParaTagDef.h:50
static const int TAG_BB_TH_LAST
Definition: bbParaTagDef.h:101
static const int TAG_BB_TH_FIRST
Definition: bbParaTagDef.h:98
static const int TagSelfSlpitNodeCalcuationState
Definition: bbParaTagDef.h:76
static const int TagTestDualBoundGain
Definition: bbParaTagDef.h:58
static const int TagNoNodes
Definition: bbParaTagDef.h:49
static const int TagSolverDiffParamSet
Definition: bbParaTagDef.h:68
static const int TagNewSubtreeRootNode
Definition: bbParaTagDef.h:72
Fundamental Tag definitions.