Scippy

UG

Ubiquity Generator framework

scipParaRacingRampUpParamSetTh.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 scipParaRacingRampUpParamSetTh.h
27  * @brief ScipParaRacingRampUpParamSet extension for threads communication.
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 __SCIP_PARA_RACING_RAMP_UP_PARAM_SET_TH_H__
38 #define __SCIP_PARA_RACING_RAMP_UP_PARAM_SET_TH_H__
39 
40 #include "ug/paraTagDef.h"
41 #include "ug_bb/bbParaComm.h"
43 
44 namespace ParaSCIP
45 {
46 
47 /** The difference between instance and subproblem: this is base class */
49 {
50 
51  /** create ScipParaRacingRampUpParamSet datatype */
53 
54 public:
55  /** default constructor */
57  )
58  {
59  }
60 
61  /** Constructor */
63  int inTerminationCriteria,
64  int inNNodesLeft,
65  double inTimeLimit,
66  int inScipRacingParamSeed,
67  int inPermuteProbSeed,
68  int inGenerateBranchOrderSeed,
69  ScipDiffParamSet *inScipDiffParamSet
70  ) : ScipParaRacingRampUpParamSet(inTerminationCriteria, inNNodesLeft, inTimeLimit,
71  inScipRacingParamSeed,inPermuteProbSeed, inGenerateBranchOrderSeed, inScipDiffParamSet )
72  {
73  }
74 
75  /** destructor */
77  )
78  {
79  }
80 
81  int send(UG::ParaComm *comm, int dest);
82  int receive(UG::ParaComm *comm, int source);
83 };
84 
85 }
86 
87 #endif // __SCIP_PARA_RACING_RAMP_UP_PARAM_SET_TH_H__
88 
ScipParaRacingRampUpParamSetTh(int inTerminationCriteria, int inNNodesLeft, double inTimeLimit, int inScipRacingParamSeed, int inPermuteProbSeed, int inGenerateBranchOrderSeed, ScipDiffParamSet *inScipDiffParamSet)
static ScipParaCommTh * comm
Definition: fscip.cpp:73
ParaRacingRampUpParamSet extension for SCIP solver.
Fundamental Tag definitions.
Base class of communicator object.
Definition: paraComm.h:101