Scippy

UG

Ubiquity Generator framework

scipParaParamSet.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 paraParamSet.h
27 * @brief Parameter set for UG framework.
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_PARAM_SET_H__
38#define __SCIP_PARA_PARAM_SET_H__
39#include <algorithm>
40#include <string>
41#include <iostream>
42#include <map>
43#include <cmath>
44#include "ug_bb/bbParaComm.h"
46
47namespace ParaSCIP
48{
49
50#define SCIP_PRESOLVIG_MEMORY_FACTOR 1.5 /// This could be changed SCIP version used
51#define SCIP_FIXED_MEMORY_FACTOR 0.1 /// This could be changed SCIP version used
52#define SCIP_MEMORY_COPY_FACTOR 0.15 /// This could be changed SCIP version used
53
54///
55/// Bool parameters
56///
59//-------------------------------------------------------------------------
63//-------------------------------------------------------------------------
66///
67/// Int parameters
68///
70//-------------------------------------------------------------------------
72//-------------------------------------------------------------------------
75///
76/// Longint parameters
77///
79//-------------------------------------------------------------------------
80//-------------------------------------------------------------------------
81static const int ScipParaParamsLongintLast = ScipParaParamsLongintFirst - 1; // No params -1
83///
84/// Real parameters
85///
87//-------------------------------------------------------------------------
88static const int MemoryLimit = ScipParaParamsRealFirst + 0;
89//-------------------------------------------------------------------------
92///
93/// Char parameters
94///
96//-------------------------------------------------------------------------
97//-------------------------------------------------------------------------
98static const int ScipParaParamsCharLast = ScipParaParamsCharFirst - 1; // No params -1
100///
101/// String parameters
102///
104//-------------------------------------------------------------------------
105//-------------------------------------------------------------------------
106static const int ScipParaParamsStringLast = ScipParaParamsStringFirst - 1; // No params -1
110
111
112class ParaComm;
113///
114/// class BbParaParamSet
115///
117{
118
119public:
120
121 ///
122 /// constructor
123 ///
126 {
127 }
128
129 ///
130 /// constructor
131 ///
133 size_t inNParaParams
134 );
135
136 ///
137 /// destructor
138 ///
140 )
141 {
142 }
143
144 ///
145 /// get number of bool parameters
146 /// @return size of parameter table
147 ///
148 virtual size_t getNumBoolParams(
149 )
150 {
152 }
153
154 ///
155 /// get number of int parameters
156 /// @return size of parameter table
157 ///
158 virtual size_t getNumIntParams(
159 )
160 {
162 }
163
164 ///
165 /// get number of longint parameters
166 /// @return size of parameter table
167 ///
168 virtual size_t getNumLongintParams(
169 )
170 {
172 }
173
174 ///
175 /// get number of real parameters
176 /// @return size of parameter table
177 ///
178 virtual size_t getNumRealParams(
179 )
180 {
182 }
183
184 ///
185 /// get number of char parameters
186 /// @return size of parameter table
187 ///
188 virtual size_t getNumCharParams(
189 )
190 {
192 }
193
194 ///
195 /// get number of string parameters
196 /// @return size of parameter table
197 ///
198 virtual size_t getNumStringParams(
199 )
200 {
202 }
203
204 ///
205 /// initialize ParaParamSet object
206 ///
207// void init(
208// );
209
210
211};
212
213}
214
215#endif // __SCIP_PARA_PARAM_SET_H__
Base class of communicator for UG Framework.
Parameter set for UG framework.
class BbParaParamSet
virtual size_t getNumIntParams()
get number of int parameters
virtual size_t getNumRealParams()
get number of real parameters
virtual size_t getNumBoolParams()
get number of bool parameters
virtual size_t getNumLongintParams()
get number of longint parameters
virtual size_t getNumCharParams()
get number of char parameters
virtual size_t getNumStringParams()
get number of string parameters
virtual ~ScipParaParamSet()
destructor
class BbParaParamSet
static const int ScipParaParamsFirst
Bool parameters.
static const int ScipParaParamsCharFirst
Char parameters.
static const int ScipParaParamsBoolN
static const int LocalBranching
static const int CustomizedToSharedMemory
static const int ScipParaParamsBoolLast
static const int ScipParaParamsIntLast
static const int ScipParaParamsCharN
static const int ScipParaParamsIntN
static const int ScipParaParamsLast
static const int AddDualBoundCons
static const int ScipParaParamsBoolFirst
static const int ScipParaParamsIntFirst
Int parameters.
static const int ScipParaParamsRealLast
static const int ScipParaParamsStringFirst
String parameters.
static const int ScipParaParamsRealFirst
Real parameters.
static const int ScipParaParamsRealN
static const int ScipParaParamsStringN
static const int ScipParaParamsLongintN
static const int ScipParaParamsCharLast
static const int ScipParaParamsLongintFirst
Longint parameters.
static const int ScipParaParamsSize
static const int MemoryLimit
static const int ScipParaParamsStringLast
static const int ScipParaParamsLongintLast
static const int RootNodeSolvabilityCheck
static const int ParaParamsRealN
Definition: paraParamSet.h:111
static const int BbParaParamsBoolN
static const int BbParaParamsStringN
static const int BbParaParamsLast
static const int BbParaParamsRealN
static const int BbParaParamsIntN
static const int ParaParamsBoolN
Definition: paraParamSet.h:81
static const int BbParaParamsLongintN
static const int ParaParamsLongintN
Definition: paraParamSet.h:99
static const int ParaParamsCharN
Definition: paraParamSet.h:119
static const int BbParaParamsCharN
static const int ParaParamsStringN
Definition: paraParamSet.h:134
static const int ParaParamsIntN
Definition: paraParamSet.h:91