|
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
paramset.h File Reference Detailed Descriptioninternal methods for handling parameter settings Definition in file paramset.h. #include "scip/def.h"#include "blockmemshell/memory.h"#include "scip/type_retcode.h"#include "scip/type_paramset.h"#include "scip/pub_paramset.h"#include "scip/pub_misc.h"Go to the source code of this file. Function Documentation
creates parameter set
Definition at line 1394 of file paramset.c. References BMSallocMemory, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_HASHSIZE_PARAMS, SCIP_OKAY, and SCIPhashtableCreate().
frees parameter set
Definition at line 1414 of file paramset.c. References BMSfreeMemory, BMSfreeMemoryArrayNull, NULL, paramFree(), and SCIPhashtableFree().
creates a bool parameter, sets it to its default value, and adds it to the parameter set creates a SCIP_Bool parameter, sets it to its default value, and adds it to the parameter set
Definition at line 1467 of file paramset.c. References NULL, paramCreateBool(), paramsetAdd(), SCIP_CALL, and SCIP_OKAY.
creates a int parameter, sets it to its default value, and adds it to the parameter set
Definition at line 1494 of file paramset.c. References NULL, paramCreateInt(), paramsetAdd(), SCIP_CALL, and SCIP_OKAY.
creates a SCIP_Longint parameter, sets it to its default value, and adds it to the parameter set
Definition at line 1524 of file paramset.c. References NULL, paramCreateLongint(), paramsetAdd(), SCIP_CALL, and SCIP_OKAY. Referenced by SCIPsetAddBoolParam().
creates a SCIP_Real parameter, sets it to its default value, and adds it to the parameter set
Definition at line 1554 of file paramset.c. References NULL, paramCreateReal(), paramsetAdd(), SCIP_CALL, and SCIP_OKAY. Referenced by SCIPsetAddIntParam().
creates a char parameter, sets it to its default value, and adds it to the parameter set
Definition at line 1584 of file paramset.c. References NULL, paramCreateChar(), paramsetAdd(), SCIP_CALL, and SCIP_OKAY. Referenced by SCIPsetAddLongintParam().
creates a string parameter, sets it to its default value, and adds it to the parameter set
Definition at line 1613 of file paramset.c. References NULL, paramCreateString(), paramsetAdd(), SCIP_CALL, and SCIP_OKAY. Referenced by SCIPsetAddRealParam().
returns whether an existing parameter is fixed
Definition at line 1658 of file paramset.c. References FALSE, SCIP_ParamSet::hashtable, NULL, SCIPABORT, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamIsFixed(). Referenced by SCIPparamsetSetToSubscipsOff().
returns the pointer to an existing SCIP parameter
Definition at line 1680 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, and SCIPhashtableRetrieve().
gets the value of an existing SCIP_Bool parameter
Definition at line 1692 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_BOOL, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetBool().
gets the value of an existing int parameter
Definition at line 1724 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_INT, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetInt(). Referenced by SCIPparamsetSetToSubscipsOff().
gets the value of an existing SCIP_Longint parameter
Definition at line 1756 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_LONGINT, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetLongint(). Referenced by SCIPsetIsParamFixed().
gets the value of an existing SCIP_Real parameter
Definition at line 1788 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_REAL, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetReal(). Referenced by SCIPsetGetParam().
gets the value of an existing char parameter
Definition at line 1820 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_CHAR, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetChar().
gets the value of an existing string parameter
Definition at line 1852 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_STRING, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetString().
changes the fixing status of an existing parameter
Definition at line 1884 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamSetFixed(). Referenced by SCIPparamsetSetToSubscipsOff().
changes the value of an existing parameter
Definition at line 1908 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, SCIP_Bool, SCIP_CALL, SCIP_INVALIDDATA, SCIP_Longint, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMTYPE_BOOL, SCIP_PARAMTYPE_CHAR, SCIP_PARAMTYPE_INT, SCIP_PARAMTYPE_LONGINT, SCIP_PARAMTYPE_REAL, SCIP_PARAMTYPE_STRING, SCIP_Real, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetBool(), SCIPparamSetChar(), SCIPparamSetInt(), SCIPparamSetLongint(), SCIPparamSetReal(), SCIPparamSetString(), and TRUE.
changes the value of an existing SCIP_Bool parameter
Definition at line 1970 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_BOOL, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetBool(), and TRUE. Referenced by SCIPparamsetCopyParams(), and SCIPsetChgParamFixed().
changes the default value of an existing SCIP_Bool parameter
Definition at line 2004 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_BOOL, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamSetDefaultBool(). Referenced by SCIPsetSetParam().
changes the value of an existing int parameter
Definition at line 2035 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_INT, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetInt(), and TRUE. Referenced by SCIPsetSetBoolParam().
changes the default value of an existing int parameter
Definition at line 2069 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_INT, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamSetDefaultInt(). Referenced by SCIPsetSetDefaultBoolParam().
changes the value of an existing SCIP_Longint parameter
Definition at line 2100 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_LONGINT, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetLongint(), and TRUE. Referenced by SCIPsetSetIntParam().
changes the value of an existing SCIP_Real parameter
Definition at line 2134 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_REAL, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetReal(), and TRUE.
changes the value of an existing char parameter
Definition at line 2168 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_CHAR, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetChar(), and TRUE.
changes the value of an existing string parameter
Definition at line 2202 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_STRING, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetString(), and TRUE.
reads parameters from a file
Definition at line 2535 of file paramset.c. References FALSE, NULL, paramsetParse(), SCIP_Bool, SCIP_CALL, SCIP_NOFILE, SCIP_OKAY, SCIP_READERROR, SCIPerrorMessage, and SCIPprintSysError(). Referenced by SCIPsetSetCharParam().
writes all parameters in the parameter set to a file
Definition at line 2585 of file paramset.c. References SCIP_ParamSet::nparams, NULL, SCIP_ParamSet::params, paramWrite(), SCIP_CALL, SCIP_FILECREATEERROR, SCIP_OKAY, SCIP_SUBVERSION, SCIP_VERSION, SCIPerrorMessage, SCIPmessageFPrintInfo(), and SCIPprintSysError(). Referenced by SCIPsetChgStringParam().
installs default values for all parameters
Definition at line 2653 of file paramset.c. References SCIP_ParamSet::nparams, SCIP_ParamSet::params, SCIP_CALL, SCIP_OKAY, and SCIPparamSetToDefault(). Referenced by SCIPparamsetSetEmphasis().
installs default value for a single parameter
Definition at line 2671 of file paramset.c. References SCIP_ParamSet::hashtable, NULL, paramname, SCIP_CALL, SCIP_OKAY, SCIPhashtableRetrieve(), and SCIPparamSetToDefault(). Referenced by paramsetSetHeuristicsDefault(), paramsetSetPresolvingDefault(), and paramsetSetSeparatingDefault().
sets parameters to
Definition at line 3642 of file paramset.c. References FALSE, paramSetBool(), paramSetChar(), paramSetInt(), paramSetReal(), paramsetSetHeuristicsAggressive(), paramsetSetHeuristicsFast(), paramsetSetHeuristicsOff(), paramsetSetPresolvingFast(), paramsetSetSeparatingAggressive(), paramsetSetSeparatingFast(), paramsetSetSeparatingOff(), SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_PARAMEMPHASIS_COUNTER, SCIP_PARAMEMPHASIS_CPSOLVER, SCIP_PARAMEMPHASIS_DEFAULT, SCIP_PARAMEMPHASIS_EASYCIP, SCIP_PARAMEMPHASIS_FEASIBILITY, SCIP_PARAMEMPHASIS_HARDLP, SCIP_PARAMEMPHASIS_OPTIMALITY, SCIPerrorMessage, SCIPparamsetSetToDefaults(), and TRUE. Referenced by emphasisParse(), and SCIPsetWriteParams().
sets parameters to deactivate separators and heuristics that use auxiliary SCIP instances; should be called for auxiliary SCIP instances to avoid recursion
Definition at line 3809 of file paramset.c. References FALSE, SCIP_Set::heurs, SCIP_Set::nheurs, SCIP_Set::nsepas, NULL, paramname, paramSetInt(), SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPheurGetName(), SCIPheurUsesSubscip(), SCIPmessageFPrintInfo(), SCIPparamsetFix(), SCIPparamsetGetInt(), SCIPparamsetIsFixed(), SCIPsepaGetName(), SCIPsepaUsesSubscip(), SCIPsnprintf(), and SCIP_Set::sepas.
sets heuristic parameters values to
Definition at line 3902 of file paramset.c. References paramsetSetHeuristicsAggressive(), paramsetSetHeuristicsDefault(), paramsetSetHeuristicsFast(), paramsetSetHeuristicsOff(), SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_PARAMSETTING_AGGRESSIVE, SCIP_PARAMSETTING_DEFAULT, SCIP_PARAMSETTING_FAST, SCIP_PARAMSETTING_OFF, and SCIPerrorMessage. Referenced by SCIPsetResetParams().
sets presolving parameters to
Definition at line 3938 of file paramset.c. References paramsetSetPresolvingAggressive(), paramsetSetPresolvingDefault(), paramsetSetPresolvingFast(), paramsetSetPresolvingOff(), SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_PARAMSETTING_AGGRESSIVE, SCIP_PARAMSETTING_DEFAULT, SCIP_PARAMSETTING_FAST, SCIP_PARAMSETTING_OFF, and SCIPerrorMessage. Referenced by SCIPsetSetEmphasis().
sets separating parameters to
Definition at line 3974 of file paramset.c. References paramsetSetSeparatingAggressive(), paramsetSetSeparatingDefault(), paramsetSetSeparatingFast(), paramsetSetSeparatingOff(), SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_PARAMSETTING_AGGRESSIVE, SCIP_PARAMSETTING_DEFAULT, SCIP_PARAMSETTING_FAST, SCIP_PARAMSETTING_OFF, and SCIPerrorMessage. Referenced by SCIPsetSetSubscipsOff().
returns the array of parameters
Definition at line 4005 of file paramset.c. References NULL, and SCIP_ParamSet::params.
returns the number of parameters in the parameter set
Definition at line 4015 of file paramset.c. References SCIP_ParamSet::nparams, and NULL.
copies all parameter values of the source parameter set to the corresponding parameters in the target set copies all parameter values of the source parameter set to the corresponding parameters in the target set by default reoptimization is disabled after copying the parameters. if you want to use reoptimization, you have to enable it explicitly.
Definition at line 4029 of file paramset.c. References FALSE, SCIP_ParamSet::hashtable, SCIP_Param::name, SCIP_ParamSet::nparams, NULL, paramCopyBool(), paramCopyChar(), paramCopyInt(), paramCopyLongint(), paramCopyReal(), paramCopyString(), paramname, SCIP_ParamSet::params, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_PARAMTYPE_BOOL, SCIP_PARAMTYPE_CHAR, SCIP_PARAMTYPE_INT, SCIP_PARAMTYPE_LONGINT, SCIP_PARAMTYPE_REAL, SCIP_PARAMTYPE_STRING, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamGetName(), SCIPparamGetType(), SCIPparamIsFixed(), SCIPparamSetFixed(), and SCIPparamsetSetBool().
checks value of SCIP_Bool parameter; issues a warning message if value is invalid
Definition at line 4126 of file paramset.c. References NULL, paramCheckBool(), SCIP_CALL_QUIET, and SCIP_OKAY. Referenced by SCIPcheckBoolParam().
checks value of string parameter; issues a warning message if value is invalid
Definition at line 4140 of file paramset.c. References paramCheckString(). Referenced by SCIPcheckStringParam().
checks value of character parameter; issues a warning message if value is invalid
Definition at line 4150 of file paramset.c. References paramCheckChar(). Referenced by SCIPcheckCharParam().
checks value of SCIP_Longint parameter; issues a warning message if value is invalid
Definition at line 4160 of file paramset.c. References paramCheckLongint(). Referenced by SCIPcheckLongintParam().
sets value of SCIP_Bool parameter
Definition at line 4170 of file paramset.c. References SCIP_Param::boolparam, SCIP_BoolParam::curvalue, SCIP_Param::data, FALSE, NULL, paramCheckBool(), paramCheckFixed(), paramWrite(), SCIP_Set::scip, SCIP_CALL, SCIP_CALL_QUIET, SCIP_OKAY, TRUE, and SCIP_BoolParam::valueptr. Referenced by paramCopyBool(), paramCreateBool(), paramParseBool(), paramSetBool(), SCIPparamsetSet(), SCIPparamsetSetBool(), and SCIPparamSetToDefault().
sets value of int parameter
Definition at line 4205 of file paramset.c. References SCIP_IntParam::curvalue, SCIP_Param::data, FALSE, SCIP_Param::intparam, NULL, paramCheckFixed(), paramCheckInt(), paramWrite(), SCIP_Set::scip, SCIP_CALL, SCIP_CALL_QUIET, SCIP_OKAY, TRUE, and SCIP_IntParam::valueptr. Referenced by paramCopyInt(), paramCreateInt(), paramParseInt(), paramSetInt(), SCIPparamsetSet(), SCIPparamsetSetInt(), SCIPparamSetToDefault(), and SCIPsetChgBoolParam().
sets value of SCIP_Longint parameter
Definition at line 4240 of file paramset.c. References SCIP_LongintParam::curvalue, SCIP_Param::data, FALSE, SCIP_Param::longintparam, NULL, paramCheckFixed(), paramCheckLongint(), paramWrite(), SCIP_Set::scip, SCIP_CALL, SCIP_CALL_QUIET, SCIP_OKAY, TRUE, and SCIP_LongintParam::valueptr. Referenced by paramCopyLongint(), paramCreateLongint(), paramParseLongint(), paramSetLongint(), SCIPparamsetSet(), SCIPparamsetSetLongint(), SCIPparamSetToDefault(), and SCIPsetChgIntParam().
sets value of SCIP_Real parameter
Definition at line 4275 of file paramset.c. References SCIP_RealParam::curvalue, SCIP_Param::data, FALSE, MAX, MIN, NULL, paramCheckFixed(), paramCheckReal(), paramWrite(), SCIP_Param::realparam, SCIP_Set::scip, SCIP_CALL, SCIP_CALL_QUIET, SCIP_OKAY, SCIP_REAL_MAX, SCIP_REAL_MIN, TRUE, and SCIP_RealParam::valueptr. Referenced by paramCopyReal(), paramCreateReal(), paramParseReal(), paramSetReal(), SCIPparamsetSet(), SCIPparamsetSetReal(), SCIPparamSetToDefault(), and SCIPsetSetDefaultIntParam().
sets value of char parameter
Definition at line 4312 of file paramset.c. References SCIP_Param::charparam, SCIP_CharParam::curvalue, SCIP_Param::data, FALSE, NULL, paramCheckChar(), paramCheckFixed(), paramWrite(), SCIP_Set::scip, SCIP_CALL, SCIP_CALL_QUIET, SCIP_OKAY, TRUE, and SCIP_CharParam::valueptr. Referenced by paramCopyChar(), paramCreateChar(), paramParseChar(), paramSetChar(), SCIPparamsetSet(), SCIPparamsetSetChar(), SCIPparamSetToDefault(), and SCIPsetSetLongintParam().
sets value of string parameter
Definition at line 4347 of file paramset.c. References BMSduplicateMemoryArray, BMSfreeMemoryArrayNull, SCIP_StringParam::curvalue, SCIP_Param::data, FALSE, NULL, paramCheckFixed(), paramCheckString(), paramWrite(), SCIP_Set::scip, SCIP_ALLOC, SCIP_CALL, SCIP_CALL_QUIET, SCIP_OKAY, SCIP_Param::stringparam, TRUE, and SCIP_StringParam::valueptr. Referenced by paramCopyString(), paramCreateString(), paramParseString(), SCIPparamsetSet(), SCIPparamsetSetString(), SCIPparamSetToDefault(), and SCIPsetSetRealParam().
sets default value of SCIP_Bool parameter changes default value of SCIP_Bool parameter
Definition at line 4389 of file paramset.c. References SCIP_Param::boolparam, SCIP_Param::data, SCIP_BoolParam::defaultvalue, NULL, SCIP_Param::paramtype, and SCIP_PARAMTYPE_BOOL. Referenced by SCIPparamsetSetDefaultBool().
sets default value of int parameter changes default value of int parameter
Definition at line 4401 of file paramset.c. References SCIP_Param::data, SCIP_IntParam::defaultvalue, SCIP_Param::intparam, SCIP_IntParam::maxvalue, SCIP_IntParam::minvalue, NULL, SCIP_Param::paramtype, and SCIP_PARAMTYPE_INT. Referenced by SCIPparamsetSetDefaultInt().
sets the parameter to its default setting
Definition at line 4415 of file paramset.c. References SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_PARAMTYPE_BOOL, SCIP_PARAMTYPE_CHAR, SCIP_PARAMTYPE_INT, SCIP_PARAMTYPE_LONGINT, SCIP_PARAMTYPE_REAL, SCIP_PARAMTYPE_STRING, SCIPdebugMessage, SCIPerrorMessage, SCIPparamGetBoolDefault(), SCIPparamGetCharDefault(), SCIPparamGetIntDefault(), SCIPparamGetLongintDefault(), SCIPparamGetRealDefault(), SCIPparamGetStringDefault(), SCIPparamIsFixed(), SCIPparamSetBool(), SCIPparamSetChar(), SCIPparamSetInt(), SCIPparamSetLongint(), SCIPparamSetReal(), SCIPparamSetString(), and TRUE. Referenced by SCIPparamsetSetToDefault(), and SCIPparamsetSetToDefaults().
writes a single parameter to a file
Definition at line 4466 of file paramset.c. References NULL, paramWrite(), SCIP_CALL, SCIP_FILECREATEERROR, SCIP_OKAY, SCIPerrorMessage, and SCIPprintSysError(). Referenced by SCIPwriteParam(). |