37#ifndef __PARA_PARAM_SET_H__
38#define __PARA_PARAM_SET_H__
46#define OUTPUT_PARAM_VALUE_ERROR( msg1, msg2, msg3, msg4 ) \
47 std::cout << "[PARAM VALUE ERROR] Param type = " << msg1 << ", Param name = " << msg2 \
48 << ", Param value = " << msg3 << ": Param comment is as follows: " << std::endl \
49 << msg4 << std::endl; \
152 const char *inParamName,
153 const char *inComment
212 const char *inComment,
307 const char *inComment,
426 const char *inComment,
544 const char *inComment,
661 const char *inComment,
663 const char *inAllowedValues
766 const char *inComment,
919 std::map<std::string, int> &mapStringToId
1218 const char* filename
Base class of communicator object.
const bool defaultValue
default bool parameter value
void setDefaultValue()
set default parameter value
~ParaParamBool()
destructor
bool isDefaultValue() const
check if current value is default value or not
bool getValue() const
get current parameter value
bool getDefaultValue() const
get default parameter value
bool currentValue
current bool parameter value
int getType() const
get parameter type value
ParaParamBool(const char *name, const char *inComment, bool value)
constructor
void setValue(bool value)
set parameter value
char getValue() const
get current value of this char parameter
char currentValue
current char parameter value
~ParaParamChar()
destructor
void setDefaultValue()
set default value of this char parameter
ParaParamChar(const char *name, const char *inComment, char value, const char *inAllowedValues)
constructor
bool isDefaultValue() const
check if current value is default value or not
const char defaultValue
default char parameter value
char getDefaultValue() const
get default value of this char parameter
const char * getAllowedValues() const
get all allowed char parameter values
const char * allowedValues
allowed char parameter values
int getType() const
get parameter type
void setValue(char value)
set current value of this char parameter
void setValue(int value)
set current value
void setDefaultValue()
set default value
const int maxValue
maximum int parameter value
const int minValue
minimum int parameter value
int getMinValue() const
get minimum value of this int parameter
bool isDefaultValue() const
check if current value is default value or not
const int defaultValue
default int parameter value
int currentValue
current int parameter value
int getDefaultValue() const
get default value of this int parameter
~ParaParamInt()
destructor
int getValue() const
get current value of this int parameter
int getMaxValue() const
get maximum value of this int parameter
int getType() const
get parameter type
ParaParamInt(const char *name, const char *inComment, int value, const int min, const int max)
contractor
const long long maxValue
maximum long int parameter value
void setDefaultValue()
set default value of this long int parameter
bool isDefaultValue() const
check if current value is default value or not
void setValue(long long value)
set current value of this long int parameter
long long currentValue
current long int parameter value
long long getMinValue() const
get minimum value of this long int parameter
const long long minValue
minimum long int parameter value
long long getDefaultValue() const
get default value of this long int parameter
~ParaParamLongint()
destructor
long long getValue() const
get current value of this long int parameter
const long long defaultValue
default long int parameter value
int getType() const
get parameter type
long long getMaxValue() const
get maximum value of this long
ParaParamLongint(const char *name, const char *inComment, long long value, const long long min, const long long max)
constructor
void setValue(double value)
set current value of this real parameter
const double maxValue
maximum real parameter value
void setDefaultValue()
set default value of this real parameter
const double minValue
minimum real parameter value
bool isDefaultValue() const
check if current value is default value or not
ParaParamReal(const char *name, const char *inComment, double value, const double min, const double max)
constructor
double currentValue
current real parameter value
double getDefaultValue() const
get default value of this real parameter
double getValue() const
get current value of this real parameter
int getType() const
get parameter type
double getMinValue() const
get minimum value of this long int parameter
~ParaParamReal()
destructor
double getMaxValue() const
get maximum value of this long
const double defaultValue
default real parameter value
bool getBoolParamValue(int param)
get bool parameter value
size_t nParaParams
number of ParaParams
virtual int bcast(ParaComm *comm, int root)=0
broadcast ParaParams
int parameterParse(char *line, std::map< std::string, int > &mapStringToId)
parse parameter (this routine is almost copy from paramset.c of SCIP code)
virtual size_t getNumCharParams()=0
get number of char parameters
ParaParam ** paraParams
array of ParaParams
virtual ~ParaParamSet()
destructor
int paramParaseLongint(ParaParam *paraParam, char *valuestr)
parse long int parameter
char getCharParamValue(int param)
get char parameter value
void setStringParamValue(int param, const char *value)
set string parameter value
int paramParaseChar(ParaParam *paraParam, char *valuestr)
parse real parameter
virtual size_t getNumIntParams()=0
get number of int parameters
double getRealParamDefaultValue(int param)
get default value of real parameter
int getIntParamDefaultValue(int param)
get default value of int parameter
void write(std::ostream *os)
write ParaParams to output stream
virtual size_t getNumRealParams()=0
get number of real parameters
int paramParaseInt(ParaParam *paraParam, char *valuestr)
parse int parameter
void setCharParamDefaultValue(int param)
set char parameter default value
bool isCharParamDefaultValue(int param)
check if char parameter is default value or not
void setLongintParamDefaultValue(int param)
set long int parameter default value
virtual void read(ParaComm *comm, const char *filename)
read ParaParams from file
virtual size_t getNumStringParams()=0
get number of string parameters
void setBoolParamValue(int param, bool value)
set bool parameter value
const char * getStringParamDefaultValue(int param)
get default value of string parameter
void setIntParamValue(int param, int value)
set int parameter value
virtual size_t getNumBoolParams()=0
get number of bool parameters
bool isStringParamDefaultValue(int param)
check if string parameter is default value or not
char getCharParamDefaultValue(int param)
get default value of char parameter
int paramParaseReal(ParaParam *paraParam, char *valuestr)
parse real parameter
bool getBoolParamDefaultValue(int param)
get default value of bool parameter
double getRealParamValue(int param)
get real parameter value
int paramParaseBool(ParaParam *paraParam, char *valuestr)
parse bool parameter
void setIntParamDefaultValue(int param)
set int parameter default value
bool isLongintParamDefaultValue(int param)
check if long int parameter is default value or not
long long getLongintParamDefaultValue(int param)
get default value of long int parameter
void setRealParamDefaultValue(int param)
set real parameter default value
void setCharParamValue(int param, char value)
set char parameter value
bool isBoolParamDefaultValue(int param)
check if bool parameter is default value or not
long long getLongintParamValue(int param)
get long int parameter value
void setLongintParamValue(int param, long long value)
set long int parameter value
void setBoolParamDefaultValue(int param)
set bool parameter default value
int getIntParamValue(int param)
get int parameter value
bool isIntParamDefaultValue(int param)
check if int parameter is default value or not
size_t getParaParamsSize()
get parameter table size
const char * getStringParamValue(int param)
get string parameter value
void setRealParamValue(int param, double value)
set real parameter value
bool isRealParamDefaultValue(int param)
check if real parameter is default value or not
void setStringParamDefaultValue(int param)
set string parameter default value
virtual size_t getNumLongintParams()=0
get number of longint parameters
ParaParamSet()
constructor
int paramParaseString(ParaParam *paraParam, char *valuestr)
parse real parameter
void setDefaultValue()
set default value of this string parameter
void setValue(const char *value)
set current value of this sting parameter
const char * getDefaultValue() const
get default value of this string parameter
bool isDefaultValue() const
check if current value is default value or not
const char * defaultValue
default string parameter value
~ParaParamString()
destructor
ParaParamString(const char *name, const char *inComment, const char *value)
constructor
int getType() const
get parameter type
const char * getValue() const
get current value of this string parameter
const char * currentValue
current string parameter value
const char * getParamName() const
getter of parameter name
ParaParam(const char *inParamName, const char *inComment)
constructor
virtual ~ParaParam()
destructor
const char * getComment() const
getter of comments string
virtual int getType() const =0
get parameter type
const char * comment
comments for this parameter
const char * paramName
parameter name
static ScipParaCommTh * comm
static const int RacingParamsDirPath
static const int ParaParamsIntFirst
Int parameters.
static const int ParaParamsLongintLast
static const int ParaParamTypeInt
integer values
static const int ParaParamsRealN
static const int CheckpointInterval
static const int TempFilePath
static const int FinalCheckpointGeneratingTime
static const int ParaParamTypeReal
real values
static const int LogTasksTransferFilePath
static const int SolutionFilePath
static const int NotificationInterval
static const int NotificationSynchronization
static const int ParaParamsBoolLast
static const int ParaParamsLongintFirst
Longint parameters.
static const int ParaParamsBoolFirst
static const int ParaParamsRealLast
static const int OutputParaParams
static const int ParaParamsBoolN
static const int ParaParamsCharLast
static const int LogSolvingStatus
static const int CheckpointFilePath
static const int LogSolvingStatusFilePath
static const int ParaParamsStringLast
static const int ParaParamTypeLongint
long integer values
static const int ParaParamsCharFirst
Char parameters.
static const int TimeLimit
static const int ParaParamTypeChar
characters
static const int Checkpoint
static const int Deterministic
static const int ParaParamsLongintN
static const int ParaParamsCharN
static const int ParaParamsRealFirst
Real parameters.
static const int ParaParamTypeBool
Types of parameters.
static const int ParaParamsStringN
static const int TagTraceFileName
static const int ParaParamTypeString
arrays of characters
static const int ParaParamsLast
static const int LogTasksTransfer
static const int ParaParamsIntN
static const int ParaParamsFirst
Bool parameters.
static const int ParaParamsStringFirst
String parameters.
static const int DynamicAdjustNotificationInterval
static const int ParaParamsIntLast
static const int TagTrace
static const int ParaParamsSize
static const int StatisticsToStdout
Base class of communicator for UG Framework.