methods for handling parameter settings
Definition in file paramset.c.
#include <assert.h>#include <string.h>#include <strings.h>#include "scip/scip.h"#include "scip/set.h"#include "scip/paramset.h"#include "scip/struct_paramset.h"Go to the source code of this file.
Macros | |
| #define | NEXPENSIVEHEURFREQS 12 |
| #define NEXPENSIVEHEURFREQS 12 |
Referenced by paramsetSetHeuristicsFast().
|
static |
hash key retrieval function for parameters
Definition at line 57 of file paramset.c.
References assert(), SCIP_Param::name, and NULL.
|
static |
tests whether parameter can be changed and issues an error message if it is fixed
| param | parameter |
| messagehdlr | message handler |
Definition at line 69 of file paramset.c.
References assert(), SCIP_Param::isfixed, SCIP_Param::name, NULL, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, and SCIPerrorMessage.
Referenced by SCIPparamSetBool(), SCIPparamSetChar(), SCIPparamSetInt(), SCIPparamSetLongint(), SCIPparamSetReal(), and SCIPparamSetString().
|
static |
tests parameter value according to the given feasible domain; issues an error message if value was invalid
| param | parameter |
| messagehdlr | message handler |
| value | value to test |
Definition at line 88 of file paramset.c.
References assert(), FALSE, SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_Bool, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIP_PARAMTYPE_BOOL, SCIPerrorMessage, and TRUE.
Referenced by SCIPparamSetBool().
|
static |
tests parameter value according to the given feasible domain; issues an error message if value was invalid
| param | parameter |
| messagehdlr | message handler |
| value | value to test |
Definition at line 109 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_Param::intparam, SCIP_IntParam::maxvalue, SCIP_IntParam::minvalue, SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIP_PARAMTYPE_INT, and SCIPerrorMessage.
Referenced by SCIPparamSetInt().
|
static |
tests parameter value according to the given feasible domain; issues an error message if value was invalid
| param | parameter |
| messagehdlr | message handler |
| value | value to test |
Definition at line 131 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_Param::longintparam, SCIP_LongintParam::maxvalue, SCIP_LongintParam::minvalue, SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_Longint, SCIP_LONGINT_FORMAT, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIP_PARAMTYPE_LONGINT, and SCIPerrorMessage.
Referenced by SCIPparamSetLongint().
|
static |
tests parameter value according to the given feasible domain; issues an error message if value was invalid
| param | parameter |
| messagehdlr | message handler |
| value | value to test |
Definition at line 153 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_RealParam::maxvalue, SCIP_RealParam::minvalue, SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_Param::realparam, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIP_PARAMTYPE_REAL, SCIP_Real, and SCIPerrorMessage.
Referenced by SCIPparamSetReal().
|
static |
tests parameter value according to the given feasible domain; issues an error message if value was invalid
| param | parameter |
| messagehdlr | message handler |
| value | value to test |
Definition at line 175 of file paramset.c.
References SCIP_CharParam::allowedvalues, assert(), c, SCIP_Param::charparam, SCIP_Param::data, SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIP_PARAMTYPE_CHAR, and SCIPerrorMessage.
Referenced by SCIPparamSetChar().
|
static |
tests parameter value according to the given feasible domain; issues an error message if value was invalid
| param | parameter |
| messagehdlr | message handler |
| value | value to test |
Definition at line 212 of file paramset.c.
References assert(), i, SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIP_PARAMTYPE_STRING, and SCIPerrorMessage.
Referenced by SCIPparamSetString().
|
static |
writes the parameter to a file
| param | parameter |
| messagehdlr | message handler |
| file | file stream to write parameter to, or NULL for stdout |
| comments | should parameter descriptions be written as comments? |
| onlychanged | should only the parameters been written, that are changed from default? |
Definition at line 244 of file paramset.c.
References SCIP_CharParam::allowedvalues, assert(), SCIP_Param::boolparam, SCIP_Param::charparam, SCIP_Param::data, SCIP_BoolParam::defaultvalue, SCIP_CharParam::defaultvalue, SCIP_IntParam::defaultvalue, SCIP_LongintParam::defaultvalue, SCIP_RealParam::defaultvalue, SCIP_StringParam::defaultvalue, SCIP_Param::desc, SCIP_Param::intparam, SCIP_Param::longintparam, SCIP_IntParam::maxvalue, SCIP_LongintParam::maxvalue, SCIP_RealParam::maxvalue, SCIP_IntParam::minvalue, SCIP_LongintParam::minvalue, SCIP_RealParam::minvalue, SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_Param::realparam, SCIP_Bool, SCIP_INVALIDDATA, SCIP_LONGINT_FORMAT, SCIP_OKAY, SCIP_PARAMTYPE_BOOL, SCIP_PARAMTYPE_CHAR, SCIP_PARAMTYPE_INT, SCIP_PARAMTYPE_LONGINT, SCIP_PARAMTYPE_REAL, SCIP_PARAMTYPE_STRING, SCIPerrorMessage, SCIPmessageFPrintInfo(), SCIPparamGetBool(), SCIPparamGetChar(), SCIPparamGetInt(), SCIPparamGetLongint(), SCIPparamGetReal(), SCIPparamGetString(), SCIPparamIsAdvanced(), SCIPparamIsDefault(), SCIPparamIsFixed(), and SCIP_Param::stringparam.
Referenced by SCIPparamSetBool(), SCIPparamSetChar(), SCIPparamSetInt(), SCIPparamSetLongint(), SCIPparamSetReal(), SCIPparamSetString(), SCIPparamsetWrite(), and SCIPparamWrite().
|
static |
if a bool parameter exits with the given parameter name it is set to the new value
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| paramname | parameter name |
| value | new value of the parameter |
| quiet | should the parameter be set quietly (no output)? |
Definition at line 343 of file paramset.c.
References assert(), FALSE, SCIP_ParamSet::hashtable, SCIP_Param::name, NULL, paramname, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_BOOL, SCIPhashtableRetrieve(), SCIPmessagePrintWarning(), SCIPparamGetType(), SCIPparamIsFixed(), SCIPparamSetBool(), and SCIPsetDebugMsg.
Referenced by paramsetSetHeuristicsAggressive(), paramsetSetPresolvingAggressive(), paramsetSetPresolvingFast(), paramsetSetSeparatingAggressive(), and SCIPparamsetSetEmphasis().
|
static |
if an char parameter exits with the given parameter name it is set to the new value
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| paramname | parameter name |
| value | new value of the parameter |
| quiet | should the parameter be set quietly (no output)? |
Definition at line 379 of file paramset.c.
References assert(), FALSE, SCIP_ParamSet::hashtable, SCIP_Param::name, NULL, paramname, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_CHAR, SCIPhashtableRetrieve(), SCIPmessagePrintWarning(), SCIPparamGetType(), SCIPparamIsFixed(), SCIPparamSetChar(), and SCIPsetDebugMsg.
Referenced by SCIPparamsetSetEmphasis().
|
static |
if an integer parameter exits with the given parameter name it is set to the new value
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| paramname | parameter name |
| value | new value of the parameter |
| quiet | should the parameter be set quietly (no output)? |
Definition at line 415 of file paramset.c.
References assert(), FALSE, SCIP_ParamSet::hashtable, SCIP_Param::name, NULL, paramname, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_INT, SCIPhashtableRetrieve(), SCIPmessagePrintWarning(), SCIPparamGetType(), SCIPparamIsFixed(), SCIPparamSetInt(), and SCIPsetDebugMsg.
Referenced by paramsetSetHeuristicsAggressive(), paramsetSetHeuristicsFast(), paramsetSetHeuristicsOff(), paramsetSetPresolvingAggressive(), paramsetSetPresolvingFast(), paramsetSetPresolvingOff(), paramsetSetSeparatingAggressive(), paramsetSetSeparatingFast(), paramsetSetSeparatingOff(), SCIPparamsetSetEmphasis(), and SCIPparamsetSetToSubscipsOff().
|
static |
if a long integer parameter exits with the given parameter name it is set to the new value
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| paramname | parameter name |
| value | new value of the parameter |
| quiet | should the parameter be set quietly (no output)? |
Definition at line 451 of file paramset.c.
References assert(), FALSE, SCIP_ParamSet::hashtable, SCIP_Param::name, NULL, paramname, SCIP_Bool, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIP_PARAMTYPE_LONGINT, SCIPhashtableRetrieve(), SCIPmessagePrintWarning(), SCIPparamGetType(), SCIPparamIsFixed(), SCIPparamSetLongint(), and SCIPsetDebugMsg.
Referenced by paramsetSetHeuristicsAggressive().
|
static |
if a real parameter exits with the given parameter name it is set to the new value
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| paramname | parameter name |
| value | new value of the parameter |
| quiet | should the parameter be set quietly (no output)? |
Definition at line 487 of file paramset.c.
References assert(), FALSE, SCIP_ParamSet::hashtable, SCIP_Param::name, NULL, paramname, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_REAL, SCIP_Real, SCIPhashtableRetrieve(), SCIPmessagePrintWarning(), SCIPparamGetType(), SCIPparamIsFixed(), SCIPparamSetReal(), and SCIPsetDebugMsg.
Referenced by paramsetSetHeuristicsAggressive(), paramsetSetPresolvingAggressive(), paramsetSetSeparatingAggressive(), paramsetSetSeparatingFast(), and SCIPparamsetSetEmphasis().
|
static |
copies value of source Bool parameter to target Bool parameter
| sourceparam | source Bool parameter |
| targetparam | target Bool parameter |
| set | global SCIP settings of target SCIP |
| messagehdlr | message handler of target SCIP |
Definition at line 523 of file paramset.c.
References assert(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPparamGetBool(), SCIPparamSetBool(), and TRUE.
Referenced by SCIPparamsetCopyParams().
|
static |
copies value of source int parameter to target int parameter
| sourceparam | source int parameter |
| targetparam | target int parameter |
| set | global SCIP settings of target SCIP |
| messagehdlr | message handler of target SCIP |
Definition at line 544 of file paramset.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPparamGetInt(), SCIPparamSetInt(), and TRUE.
Referenced by SCIPparamsetCopyParams().
|
static |
copies value of source longint parameter to target longint parameter
| sourceparam | source longint parameter |
| targetparam | target longint parameter |
| set | global SCIP settings of target SCIP |
| messagehdlr | message handler of target SCIP |
Definition at line 565 of file paramset.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIPparamGetLongint(), SCIPparamSetLongint(), and TRUE.
Referenced by SCIPparamsetCopyParams().
|
static |
copies value of source real parameter to target real parameter
| sourceparam | source real parameter |
| targetparam | target real parameter |
| set | global SCIP settings of target SCIP |
| messagehdlr | message handler of target SCIP |
Definition at line 586 of file paramset.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPparamGetReal(), SCIPparamSetReal(), and TRUE.
Referenced by SCIPparamsetCopyParams().
|
static |
copies value of source char parameter to target char parameter
| sourceparam | source char parameter |
| targetparam | target char parameter |
| set | global SCIP settings of target SCIP |
| messagehdlr | message handler of target SCIP |
Definition at line 607 of file paramset.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPparamGetChar(), SCIPparamSetChar(), and TRUE.
Referenced by SCIPparamsetCopyParams().
|
static |
copies value of source string parameter to target string parameter
| sourceparam | source string parameter |
| targetparam | target string parameter |
| set | global SCIP settings of target SCIP |
| messagehdlr | message handler of target SCIP |
Definition at line 628 of file paramset.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPparamGetString(), SCIPparamSetString(), and TRUE.
Referenced by SCIPparamsetCopyParams().
| SCIP_PARAMTYPE SCIPparamGetType | ( | SCIP_PARAM * | param | ) |
returns type of parameter
| param | parameter |
Definition at line 648 of file paramset.c.
References assert(), NULL, and SCIP_Param::paramtype.
Referenced by checkTransferBoolParam(), paramSetBool(), paramSetChar(), paramSetInt(), paramSetLongint(), paramSetReal(), paramsetSetHeuristicsAggressive(), paramsetSetPresolvingAggressive(), paramsetSetPresolvingFast(), paramsetSetSeparatingAggressive(), SCIP_DECL_DIALOGDESC(), SCIP_DECL_DIALOGEXEC(), and SCIPparamsetCopyParams().
| const char * SCIPparamGetName | ( | SCIP_PARAM * | param | ) |
returns name of parameter
| param | parameter |
Definition at line 658 of file paramset.c.
References assert(), SCIP_Param::name, and NULL.
Referenced by checkTransferBoolParam(), fixOrUnfixRelevantParameters(), SCIP_DECL_CONCSOLVERCREATEINST(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_DIALOGEXEC(), SCIPincludeDialogDefaultFix(), SCIPincludeDialogDefaultSet(), and SCIPparamsetCopyParams().
| const char * SCIPparamGetDesc | ( | SCIP_PARAM * | param | ) |
returns description of parameter
| param | parameter |
Definition at line 668 of file paramset.c.
References assert(), SCIP_Param::desc, and NULL.
Referenced by addFixParamDialog(), addSetParamDialog(), SCIP_DECL_DIALOGDESC(), and SCIP_DECL_DIALOGDESC().
| SCIP_PARAMDATA * SCIPparamGetData | ( | SCIP_PARAM * | param | ) |
returns locally defined parameter specific data
| param | parameter |
Definition at line 678 of file paramset.c.
References assert(), NULL, and SCIP_Param::paramdata.
Referenced by SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), and SCIP_DECL_PARAMCHGD().
| SCIP_Bool SCIPparamIsAdvanced | ( | SCIP_PARAM * | param | ) |
returns whether parameter is advanced
| param | parameter |
Definition at line 688 of file paramset.c.
References assert(), SCIP_Param::isadvanced, NULL, and SCIP_Bool.
Referenced by addFixParamDialog(), addSetParamDialog(), and paramWrite().
| SCIP_Bool SCIPparamIsFixed | ( | SCIP_PARAM * | param | ) |
returns whether parameter is fixed
| param | parameter |
Definition at line 698 of file paramset.c.
References assert(), SCIP_Param::isfixed, NULL, and SCIP_Bool.
Referenced by fixOrUnfixRelevantParameters(), paramSetBool(), paramSetChar(), paramSetInt(), paramSetLongint(), paramSetReal(), paramWrite(), SCIP_DECL_DIALOGDESC(), SCIP_DECL_DIALOGEXEC(), SCIPparamsetCopyParams(), SCIPparamsetIsFixed(), and SCIPparamSetToDefault().
| SCIP_Bool SCIPparamGetBool | ( | SCIP_PARAM * | param | ) |
returns value of SCIP_Bool parameter
| param | parameter |
Definition at line 708 of file paramset.c.
References assert(), SCIP_Param::boolparam, SCIP_BoolParam::curvalue, SCIP_Param::data, NULL, SCIP_Param::paramtype, SCIP_Bool, SCIP_PARAMTYPE_BOOL, and SCIP_BoolParam::valueptr.
Referenced by paramCopyBool(), paramWrite(), SCIP_DECL_DIALOGDESC(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_PARAMCHGD(), SCIPparamIsDefault(), SCIPparamSetBool(), SCIPparamsetGetBool(), and tryAddOrbitalRedLexRed().
| SCIP_Bool SCIPparamGetBoolDefault | ( | SCIP_PARAM * | param | ) |
returns default value of SCIP_Bool parameter
| param | parameter |
Definition at line 722 of file paramset.c.
References assert(), SCIP_Param::boolparam, SCIP_Param::data, SCIP_BoolParam::defaultvalue, NULL, SCIP_Param::paramtype, SCIP_Bool, and SCIP_PARAMTYPE_BOOL.
Referenced by SCIPparamIsDefault(), and SCIPparamSetToDefault().
| int SCIPparamGetInt | ( | SCIP_PARAM * | param | ) |
returns value of int parameter
| param | parameter |
Definition at line 733 of file paramset.c.
References assert(), SCIP_IntParam::curvalue, SCIP_Param::data, SCIP_Param::intparam, NULL, SCIP_Param::paramtype, SCIP_PARAMTYPE_INT, and SCIP_IntParam::valueptr.
Referenced by paramCopyInt(), paramWrite(), SCIP_DECL_DIALOGDESC(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_NLPICREATEPROBLEM(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIPparamIsDefault(), SCIPparamsetGetInt(), and SCIPparamSetInt().
| int SCIPparamGetIntMin | ( | SCIP_PARAM * | param | ) |
returns minimal value of int parameter
| param | parameter |
Definition at line 747 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_Param::intparam, SCIP_IntParam::minvalue, NULL, SCIP_Param::paramtype, and SCIP_PARAMTYPE_INT.
Referenced by SCIP_DECL_DIALOGEXEC().
| int SCIPparamGetIntMax | ( | SCIP_PARAM * | param | ) |
returns maximal value of int parameter
| param | parameter |
Definition at line 758 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_Param::intparam, SCIP_IntParam::maxvalue, NULL, SCIP_Param::paramtype, and SCIP_PARAMTYPE_INT.
Referenced by SCIP_DECL_DIALOGEXEC().
| int SCIPparamGetIntDefault | ( | SCIP_PARAM * | param | ) |
returns default value of int parameter
| param | parameter |
Definition at line 769 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_IntParam::defaultvalue, SCIP_Param::intparam, NULL, SCIP_Param::paramtype, and SCIP_PARAMTYPE_INT.
Referenced by paramsetSetHeuristicsAggressive(), paramsetSetPresolvingAggressive(), paramsetSetSeparatingAggressive(), SCIP_DECL_NLPICREATEPROBLEM(), SCIPparamIsDefault(), and SCIPparamSetToDefault().
| SCIP_Longint SCIPparamGetLongint | ( | SCIP_PARAM * | param | ) |
returns value of SCIP_Longint parameter
| param | parameter |
Definition at line 780 of file paramset.c.
References assert(), SCIP_LongintParam::curvalue, SCIP_Param::data, SCIP_Param::longintparam, NULL, SCIP_Param::paramtype, SCIP_Longint, SCIP_PARAMTYPE_LONGINT, and SCIP_LongintParam::valueptr.
Referenced by paramCopyLongint(), paramWrite(), SCIP_DECL_DIALOGDESC(), SCIP_DECL_DIALOGEXEC(), SCIPparamIsDefault(), SCIPparamsetGetLongint(), and SCIPparamSetLongint().
| SCIP_Longint SCIPparamGetLongintMin | ( | SCIP_PARAM * | param | ) |
returns minimal value of longint parameter
| param | parameter |
Definition at line 794 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_Param::longintparam, SCIP_LongintParam::minvalue, NULL, SCIP_Param::paramtype, SCIP_Longint, and SCIP_PARAMTYPE_LONGINT.
Referenced by SCIP_DECL_DIALOGEXEC().
| SCIP_Longint SCIPparamGetLongintMax | ( | SCIP_PARAM * | param | ) |
returns maximal value of longint parameter
| param | parameter |
Definition at line 805 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_Param::longintparam, SCIP_LongintParam::maxvalue, NULL, SCIP_Param::paramtype, SCIP_Longint, and SCIP_PARAMTYPE_LONGINT.
Referenced by SCIP_DECL_DIALOGEXEC().
| SCIP_Longint SCIPparamGetLongintDefault | ( | SCIP_PARAM * | param | ) |
returns default value of SCIP_Longint parameter
| param | parameter |
Definition at line 816 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_LongintParam::defaultvalue, SCIP_Param::longintparam, NULL, SCIP_Param::paramtype, SCIP_Longint, and SCIP_PARAMTYPE_LONGINT.
Referenced by SCIPparamIsDefault(), and SCIPparamSetToDefault().
| SCIP_Real SCIPparamGetReal | ( | SCIP_PARAM * | param | ) |
returns value of SCIP_Real parameter
| param | parameter |
Definition at line 827 of file paramset.c.
References assert(), SCIP_RealParam::curvalue, SCIP_Param::data, NULL, SCIP_Param::paramtype, SCIP_Param::realparam, SCIP_PARAMTYPE_REAL, SCIP_Real, and SCIP_RealParam::valueptr.
Referenced by paramCopyReal(), paramWrite(), SCIP_DECL_DIALOGDESC(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PARAMCHGD(), SCIPparamIsDefault(), SCIPparamsetGetReal(), and SCIPparamSetReal().
| SCIP_Real SCIPparamGetRealMin | ( | SCIP_PARAM * | param | ) |
returns minimal value of real parameter
| param | parameter |
Definition at line 841 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_RealParam::minvalue, NULL, SCIP_Param::paramtype, SCIP_Param::realparam, SCIP_PARAMTYPE_REAL, and SCIP_Real.
Referenced by SCIP_DECL_DIALOGEXEC().
| SCIP_Real SCIPparamGetRealMax | ( | SCIP_PARAM * | param | ) |
returns maximal value of real parameter
| param | parameter |
Definition at line 852 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_RealParam::maxvalue, NULL, SCIP_Param::paramtype, SCIP_Param::realparam, SCIP_PARAMTYPE_REAL, and SCIP_Real.
Referenced by copyMemoryAndTimeLimits(), and SCIP_DECL_DIALOGEXEC().
| SCIP_Real SCIPparamGetRealDefault | ( | SCIP_PARAM * | param | ) |
returns default value of SCIP_Real parameter
| param | parameter |
Definition at line 863 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_RealParam::defaultvalue, NULL, SCIP_Param::paramtype, SCIP_Param::realparam, SCIP_PARAMTYPE_REAL, and SCIP_Real.
Referenced by paramsetSetHeuristicsAggressive(), SCIPparamIsDefault(), and SCIPparamSetToDefault().
| char SCIPparamGetChar | ( | SCIP_PARAM * | param | ) |
returns value of char parameter
| param | parameter |
Definition at line 874 of file paramset.c.
References assert(), SCIP_Param::charparam, SCIP_CharParam::curvalue, SCIP_Param::data, NULL, SCIP_Param::paramtype, SCIP_PARAMTYPE_CHAR, and SCIP_CharParam::valueptr.
Referenced by paramCopyChar(), paramWrite(), SCIP_DECL_DIALOGDESC(), SCIP_DECL_DIALOGEXEC(), SCIPparamIsDefault(), SCIPparamSetChar(), and SCIPparamsetGetChar().
| char * SCIPparamGetCharAllowedValues | ( | SCIP_PARAM * | param | ) |
returns allowed values of char parameter, or NULL if everything is allowed
| param | parameter |
Definition at line 888 of file paramset.c.
References SCIP_CharParam::allowedvalues, assert(), SCIP_Param::charparam, SCIP_Param::data, NULL, SCIP_Param::paramtype, and SCIP_PARAMTYPE_CHAR.
Referenced by SCIP_DECL_DIALOGEXEC().
| char SCIPparamGetCharDefault | ( | SCIP_PARAM * | param | ) |
returns default value of char parameter
| param | parameter |
Definition at line 899 of file paramset.c.
References assert(), SCIP_Param::charparam, SCIP_Param::data, SCIP_CharParam::defaultvalue, NULL, SCIP_Param::paramtype, and SCIP_PARAMTYPE_CHAR.
Referenced by SCIPparamIsDefault(), and SCIPparamSetToDefault().
| char * SCIPparamGetString | ( | SCIP_PARAM * | param | ) |
returns value of string parameter
| param | parameter |
Definition at line 910 of file paramset.c.
References assert(), SCIP_StringParam::curvalue, SCIP_Param::data, NULL, SCIP_Param::paramtype, SCIP_PARAMTYPE_STRING, SCIP_Param::stringparam, and SCIP_StringParam::valueptr.
Referenced by paramCopyString(), paramWrite(), SCIP_DECL_DIALOGDESC(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_NLPICREATEPROBLEM(), SCIPparamIsDefault(), and SCIPparamsetGetString().
| char * SCIPparamGetStringDefault | ( | SCIP_PARAM * | param | ) |
returns default value of String parameter
| param | parameter |
Definition at line 924 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_StringParam::defaultvalue, NULL, SCIP_Param::paramtype, SCIP_PARAMTYPE_STRING, and SCIP_Param::stringparam.
Referenced by SCIPparamIsDefault(), and SCIPparamSetToDefault().
| SCIP_Bool SCIPparamIsDefault | ( | SCIP_PARAM * | param | ) |
returns whether the parameter is on its default setting
| param | parameter |
Definition at line 935 of file paramset.c.
References assert(), EPSZ, FALSE, NULL, SCIP_Param::paramtype, SCIP_Bool, SCIP_PARAMTYPE_BOOL, SCIP_PARAMTYPE_CHAR, SCIP_PARAMTYPE_INT, SCIP_PARAMTYPE_LONGINT, SCIP_PARAMTYPE_REAL, SCIP_PARAMTYPE_STRING, SCIPABORT, SCIPerrorMessage, SCIPparamGetBool(), SCIPparamGetBoolDefault(), SCIPparamGetChar(), SCIPparamGetCharDefault(), SCIPparamGetInt(), SCIPparamGetIntDefault(), SCIPparamGetLongint(), SCIPparamGetLongintDefault(), SCIPparamGetReal(), SCIPparamGetRealDefault(), SCIPparamGetString(), and SCIPparamGetStringDefault().
Referenced by collectNondefaultParams(), and paramWrite().
|
static |
creates a parameter with name and description, does not set the type specific parameter values themselves
| param | pointer to the parameter |
| blkmem | block memory |
| name | name of the parameter |
| desc | description of the parameter |
| paramdata | locally defined parameter specific data |
| isadvanced | is the parameter advanced? |
Definition at line 970 of file paramset.c.
References assert(), BMSallocBlockMemory, BMSduplicateMemoryArray, FALSE, NULL, SCIP_ALLOC, SCIP_Bool, SCIP_DECL_PARAMCHGD, and SCIP_OKAY.
Referenced by paramCreateBool(), paramCreateChar(), paramCreateInt(), paramCreateLongint(), paramCreateReal(), and paramCreateString().
|
static |
creates a SCIP_Bool parameter, and sets its value to default
| param | pointer to the parameter |
| messagehdlr | message handler |
| blkmem | block memory |
| name | name of the parameter |
| desc | description of the parameter |
| valueptr | pointer to store the current parameter value, or NULL |
| isadvanced | is this parameter an advanced parameter? |
| defaultvalue | default value of the parameter |
| paramdata | locally defined parameter specific data |
Definition at line 999 of file paramset.c.
References assert(), NULL, paramCreate(), SCIP_Bool, SCIP_CALL, SCIP_DECL_PARAMCHGD, SCIP_OKAY, SCIP_PARAMTYPE_BOOL, SCIPparamSetBool(), and TRUE.
Referenced by SCIPparamsetAddBool().
|
static |
creates a int parameter, and sets its value to default
| param | pointer to the parameter |
| messagehdlr | message handler |
| blkmem | block memory |
| name | name of the parameter |
| desc | description of the parameter |
| valueptr | pointer to store the current parameter value, or NULL |
| isadvanced | is this parameter an advanced parameter? |
| defaultvalue | default value of the parameter |
| minvalue | minimum value for parameter |
| maxvalue | maximum value for parameter |
| paramdata | locally defined parameter specific data |
Definition at line 1028 of file paramset.c.
References assert(), NULL, paramCreate(), SCIP_Bool, SCIP_CALL, SCIP_DECL_PARAMCHGD, SCIP_OKAY, SCIP_PARAMTYPE_INT, SCIPparamSetInt(), and TRUE.
Referenced by SCIPparamsetAddInt().
|
static |
creates a SCIP_Longint parameter, and sets its value to default
| param | pointer to the parameter |
| messagehdlr | message handler |
| blkmem | block memory |
| name | name of the parameter |
| desc | description of the parameter |
| valueptr | pointer to store the current parameter value, or NULL |
| isadvanced | is this parameter an advanced parameter? |
| defaultvalue | default value of the parameter |
| minvalue | minimum value for parameter |
| maxvalue | maximum value for parameter |
| paramdata | locally defined parameter specific data |
Definition at line 1061 of file paramset.c.
References assert(), NULL, paramCreate(), SCIP_Bool, SCIP_CALL, SCIP_DECL_PARAMCHGD, SCIP_Longint, SCIP_OKAY, SCIP_PARAMTYPE_LONGINT, SCIPparamSetLongint(), and TRUE.
Referenced by SCIPparamsetAddLongint().
|
static |
creates a SCIP_Real parameter, and sets its value to default
| param | pointer to the parameter |
| messagehdlr | message handler |
| blkmem | block memory |
| name | name of the parameter |
| desc | description of the parameter |
| valueptr | pointer to store the current parameter value, or NULL |
| isadvanced | is this parameter an advanced parameter? |
| defaultvalue | default value of the parameter |
| minvalue | minimum value for parameter |
| maxvalue | maximum value for parameter |
| paramdata | locally defined parameter specific data |
Definition at line 1094 of file paramset.c.
References assert(), NULL, paramCreate(), SCIP_Bool, SCIP_CALL, SCIP_DECL_PARAMCHGD, SCIP_OKAY, SCIP_PARAMTYPE_REAL, SCIP_Real, SCIPparamSetReal(), and TRUE.
Referenced by SCIPparamsetAddReal().
|
static |
creates a char parameter, and sets its value to default
| param | pointer to the parameter |
| messagehdlr | message handler |
| blkmem | block memory |
| name | name of the parameter |
| desc | description of the parameter |
| valueptr | pointer to store the current parameter value, or NULL |
| isadvanced | is this parameter an advanced parameter? |
| defaultvalue | default value of the parameter |
| allowedvalues | array with possible parameter values, or NULL if not restricted |
| paramdata | locally defined parameter specific data |
Definition at line 1127 of file paramset.c.
References assert(), BMSduplicateMemoryArray, NULL, paramCreate(), SCIP_ALLOC, SCIP_Bool, SCIP_CALL, SCIP_DECL_PARAMCHGD, SCIP_OKAY, SCIP_PARAMTYPE_CHAR, SCIPparamSetChar(), and TRUE.
Referenced by SCIPparamsetAddChar().
|
static |
creates a string parameter, and sets its value to default
| param | pointer to the parameter |
| messagehdlr | message handler |
| blkmem | block memory |
| name | name of the parameter |
| desc | description of the parameter |
| valueptr | pointer to store the current parameter value, or NULL |
| isadvanced | is this parameter an advanced parameter? |
| defaultvalue | default value of the parameter |
| paramdata | locally defined parameter specific data |
Definition at line 1163 of file paramset.c.
References assert(), BMSduplicateMemoryArray, NULL, paramCreate(), SCIP_ALLOC, SCIP_Bool, SCIP_CALL, SCIP_DECL_PARAMCHGD, SCIP_OKAY, SCIP_PARAMTYPE_STRING, SCIPparamSetString(), and TRUE.
Referenced by SCIPparamsetAddString().
|
static |
frees a single parameter
| param | pointer to the parameter |
| blkmem | block memory |
Definition at line 1195 of file paramset.c.
References assert(), BMSfreeBlockMemory, BMSfreeMemoryArray, BMSfreeMemoryArrayNull, NULL, SCIP_PARAMTYPE_BOOL, SCIP_PARAMTYPE_CHAR, SCIP_PARAMTYPE_INT, SCIP_PARAMTYPE_LONGINT, SCIP_PARAMTYPE_REAL, SCIP_PARAMTYPE_STRING, SCIPABORT, and SCIPerrorMessage.
Referenced by SCIPparamsetFree().
|
static |
sets SCIP_Bool parameter according to the value of the given string
| param | parameter |
| set | global SCIP settings |
| messagehdlr | message handler |
| valuestr | value in string format (may be modified during parse) |
Definition at line 1237 of file paramset.c.
References assert(), FALSE, SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_BOOL, SCIP_READERROR, SCIPerrorMessage, SCIPparamSetBool(), SCIPstrcasecmp(), and TRUE.
Referenced by SCIPparamsetSet().
|
static |
sets int parameter according to the value of the given string
| param | parameter |
| set | global SCIP settings |
| messagehdlr | message handler |
| valuestr | value in string format (may be modified during parse) |
Definition at line 1268 of file paramset.c.
References assert(), FALSE, SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_INT, SCIP_READERROR, SCIPerrorMessage, SCIPparamSetInt(), and TRUE.
Referenced by SCIPparamsetSet().
|
static |
sets SCIP_Longint parameter according to the value of the given string
| param | parameter |
| set | global SCIP settings |
| messagehdlr | message handler |
| valuestr | value in string format (may be modified during parse) |
Definition at line 1298 of file paramset.c.
References assert(), FALSE, SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_CALL, SCIP_Longint, SCIP_LONGINT_FORMAT, SCIP_OKAY, SCIP_PARAMTYPE_LONGINT, SCIP_READERROR, SCIPerrorMessage, SCIPparamSetLongint(), and TRUE.
Referenced by SCIPparamsetSet().
|
static |
sets SCIP_Real parameter according to the value of the given string
| param | parameter |
| set | global SCIP settings |
| messagehdlr | message handler |
| valuestr | value in string format (may be modified during parse) |
Definition at line 1328 of file paramset.c.
References assert(), FALSE, SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_REAL, SCIP_READERROR, SCIP_Real, SCIP_REAL_FORMAT, SCIPerrorMessage, SCIPparamSetReal(), and TRUE.
Referenced by SCIPparamsetSet().
|
static |
sets Char parameter according to the value of the given string
| param | parameter |
| set | global SCIP settings |
| messagehdlr | message handler |
| valuestr | value in string format (may be modified during parse) |
Definition at line 1358 of file paramset.c.
References assert(), FALSE, SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_CHAR, SCIP_READERROR, SCIPerrorMessage, SCIPparamSetChar(), and TRUE.
Referenced by SCIPparamsetSet().
|
static |
sets string parameter according to the value of the given string
| param | parameter |
| set | global SCIP settings |
| messagehdlr | message handler |
| valuestr | value in string format (may be modified during parse) |
Definition at line 1388 of file paramset.c.
References assert(), FALSE, SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_STRING, SCIP_READERROR, SCIPerrorMessage, SCIPparamSetString(), and TRUE.
Referenced by SCIPparamsetSet().
| SCIP_RETCODE SCIPparamsetCreate | ( | SCIP_PARAMSET ** | paramset, |
| BMS_BLKMEM * | blkmem ) |
creates parameter set
| paramset | pointer to store the parameter set |
| blkmem | block memory |
Definition at line 1425 of file paramset.c.
References assert(), BMSallocMemory, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_HASHSIZE_PARAMS, SCIP_OKAY, and SCIPhashtableCreate().
| void SCIPparamsetFree | ( | SCIP_PARAMSET ** | paramset, |
| BMS_BLKMEM * | blkmem ) |
frees parameter set
| paramset | pointer to the parameter set |
| blkmem | block memory |
Definition at line 1445 of file paramset.c.
References assert(), BMSfreeMemory, BMSfreeMemoryArrayNull, i, NULL, paramFree(), and SCIPhashtableFree().
|
static |
adds parameter to the parameter set
| paramset | parameter set |
| param | parameter to add |
Definition at line 1470 of file paramset.c.
References assert(), BMSreallocMemoryArray, SCIP_ParamSet::hashtable, MAX, SCIP_ParamSet::nparams, NULL, SCIP_ParamSet::params, SCIP_ParamSet::paramssize, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, and SCIPhashtableSafeInsert().
Referenced by SCIPparamsetAddBool(), SCIPparamsetAddChar(), SCIPparamsetAddInt(), SCIPparamsetAddLongint(), SCIPparamsetAddReal(), and SCIPparamsetAddString().
| SCIP_RETCODE SCIPparamsetAddBool | ( | SCIP_PARAMSET * | paramset, |
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| BMS_BLKMEM * | blkmem, | ||
| const char * | name, | ||
| const char * | desc, | ||
| SCIP_Bool * | valueptr, | ||
| SCIP_Bool | isadvanced, | ||
| SCIP_Bool | defaultvalue, | ||
| SCIP_DECL_PARAMCHGD((*paramchgd)) | , | ||
| SCIP_PARAMDATA * | paramdata ) |
creates a SCIP_Bool parameter, sets it to its default value, and adds it to the parameter set
| paramset | parameter set |
| messagehdlr | message handler |
| blkmem | block memory |
| name | name of the parameter |
| desc | description of the parameter |
| valueptr | pointer to store the current parameter value, or NULL |
| isadvanced | is this parameter an advanced parameter? |
| defaultvalue | default value of the parameter |
| paramdata | locally defined parameter specific data |
Definition at line 1498 of file paramset.c.
References assert(), NULL, paramCreateBool(), paramsetAdd(), SCIP_Bool, SCIP_CALL, SCIP_DECL_PARAMCHGD, and SCIP_OKAY.
| SCIP_RETCODE SCIPparamsetAddInt | ( | SCIP_PARAMSET * | paramset, |
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| BMS_BLKMEM * | blkmem, | ||
| const char * | name, | ||
| const char * | desc, | ||
| int * | valueptr, | ||
| SCIP_Bool | isadvanced, | ||
| int | defaultvalue, | ||
| int | minvalue, | ||
| int | maxvalue, | ||
| SCIP_DECL_PARAMCHGD((*paramchgd)) | , | ||
| SCIP_PARAMDATA * | paramdata ) |
creates a int parameter, sets it to its default value, and adds it to the parameter set
| paramset | parameter set |
| messagehdlr | message handler |
| blkmem | block memory |
| name | name of the parameter |
| desc | description of the parameter |
| valueptr | pointer to store the current parameter value, or NULL |
| isadvanced | is this parameter an advanced parameter? |
| defaultvalue | default value of the parameter |
| minvalue | minimum value for parameter |
| maxvalue | maximum value for parameter |
| paramdata | locally defined parameter specific data |
Definition at line 1525 of file paramset.c.
References assert(), NULL, paramCreateInt(), paramsetAdd(), SCIP_Bool, SCIP_CALL, SCIP_DECL_PARAMCHGD, and SCIP_OKAY.
| SCIP_RETCODE SCIPparamsetAddLongint | ( | SCIP_PARAMSET * | paramset, |
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| BMS_BLKMEM * | blkmem, | ||
| const char * | name, | ||
| const char * | desc, | ||
| SCIP_Longint * | valueptr, | ||
| SCIP_Bool | isadvanced, | ||
| SCIP_Longint | defaultvalue, | ||
| SCIP_Longint | minvalue, | ||
| SCIP_Longint | maxvalue, | ||
| SCIP_DECL_PARAMCHGD((*paramchgd)) | , | ||
| SCIP_PARAMDATA * | paramdata ) |
creates a SCIP_Longint parameter, sets it to its default value, and adds it to the parameter set
| paramset | parameter set |
| messagehdlr | message handler |
| blkmem | block memory |
| name | name of the parameter |
| desc | description of the parameter |
| valueptr | pointer to store the current parameter value, or NULL |
| isadvanced | is this parameter an advanced parameter? |
| defaultvalue | default value of the parameter |
| minvalue | minimum value for parameter |
| maxvalue | maximum value for parameter |
| paramdata | locally defined parameter specific data |
Definition at line 1555 of file paramset.c.
References assert(), NULL, paramCreateLongint(), paramsetAdd(), SCIP_Bool, SCIP_CALL, SCIP_DECL_PARAMCHGD, SCIP_Longint, and SCIP_OKAY.
| SCIP_RETCODE SCIPparamsetAddReal | ( | SCIP_PARAMSET * | paramset, |
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| BMS_BLKMEM * | blkmem, | ||
| const char * | name, | ||
| const char * | desc, | ||
| SCIP_Real * | valueptr, | ||
| SCIP_Bool | isadvanced, | ||
| SCIP_Real | defaultvalue, | ||
| SCIP_Real | minvalue, | ||
| SCIP_Real | maxvalue, | ||
| SCIP_DECL_PARAMCHGD((*paramchgd)) | , | ||
| SCIP_PARAMDATA * | paramdata ) |
creates a SCIP_Real parameter, sets it to its default value, and adds it to the parameter set
| paramset | parameter set |
| messagehdlr | message handler |
| blkmem | block memory |
| name | name of the parameter |
| desc | description of the parameter |
| valueptr | pointer to store the current parameter value, or NULL |
| isadvanced | is this parameter an advanced parameter? |
| defaultvalue | default value of the parameter |
| minvalue | minimum value for parameter |
| maxvalue | maximum value for parameter |
| paramdata | locally defined parameter specific data |
Definition at line 1585 of file paramset.c.
References assert(), NULL, paramCreateReal(), paramsetAdd(), SCIP_Bool, SCIP_CALL, SCIP_DECL_PARAMCHGD, SCIP_OKAY, and SCIP_Real.
| SCIP_RETCODE SCIPparamsetAddChar | ( | SCIP_PARAMSET * | paramset, |
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| BMS_BLKMEM * | blkmem, | ||
| const char * | name, | ||
| const char * | desc, | ||
| char * | valueptr, | ||
| SCIP_Bool | isadvanced, | ||
| char | defaultvalue, | ||
| const char * | allowedvalues, | ||
| SCIP_DECL_PARAMCHGD((*paramchgd)) | , | ||
| SCIP_PARAMDATA * | paramdata ) |
creates a char parameter, sets it to its default value, and adds it to the parameter set
| paramset | parameter set |
| messagehdlr | message handler |
| blkmem | block memory |
| name | name of the parameter |
| desc | description of the parameter |
| valueptr | pointer to store the current parameter value, or NULL |
| isadvanced | is this parameter an advanced parameter? |
| defaultvalue | default value of the parameter |
| allowedvalues | array with possible parameter values, or NULL if not restricted |
| paramdata | locally defined parameter specific data |
Definition at line 1615 of file paramset.c.
References assert(), NULL, paramCreateChar(), paramsetAdd(), SCIP_Bool, SCIP_CALL, SCIP_DECL_PARAMCHGD, and SCIP_OKAY.
| SCIP_RETCODE SCIPparamsetAddString | ( | SCIP_PARAMSET * | paramset, |
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| BMS_BLKMEM * | blkmem, | ||
| const char * | name, | ||
| const char * | desc, | ||
| char ** | valueptr, | ||
| SCIP_Bool | isadvanced, | ||
| const char * | defaultvalue, | ||
| SCIP_DECL_PARAMCHGD((*paramchgd)) | , | ||
| SCIP_PARAMDATA * | paramdata ) |
creates a string parameter, sets it to its default value, and adds it to the parameter set
| paramset | parameter set |
| messagehdlr | message handler |
| blkmem | block memory |
| name | name of the parameter |
| desc | description of the parameter |
| valueptr | pointer to store the current parameter value, or NULL |
| isadvanced | is this parameter an advanced parameter? |
| defaultvalue | default value of the parameter |
| paramdata | locally defined parameter specific data |
Definition at line 1644 of file paramset.c.
References assert(), NULL, paramCreateString(), paramsetAdd(), SCIP_Bool, SCIP_CALL, SCIP_DECL_PARAMCHGD, and SCIP_OKAY.
|
static |
returns the name of the given parameter type
| paramtype | type of parameter |
Definition at line 1672 of file paramset.c.
Referenced by SCIPparamsetGetBool(), SCIPparamsetGetChar(), SCIPparamsetGetInt(), SCIPparamsetGetLongint(), SCIPparamsetGetReal(), SCIPparamsetGetString(), SCIPparamsetSetBool(), SCIPparamsetSetChar(), SCIPparamsetSetDefaultBool(), SCIPparamsetSetDefaultChar(), SCIPparamsetSetDefaultInt(), SCIPparamsetSetDefaultLongint(), SCIPparamsetSetDefaultReal(), SCIPparamsetSetDefaultString(), SCIPparamsetSetInt(), SCIPparamsetSetLongint(), SCIPparamsetSetReal(), and SCIPparamsetSetString().
| SCIP_Bool SCIPparamsetIsFixed | ( | SCIP_PARAMSET * | paramset, |
| const char * | name ) |
returns whether an existing parameter is fixed
| paramset | parameter set |
| name | name of the parameter |
Definition at line 1689 of file paramset.c.
References assert(), FALSE, SCIP_ParamSet::hashtable, NULL, SCIP_Bool, SCIPABORT, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamIsFixed().
Referenced by SCIPparamsetSetToSubscipsOff().
| SCIP_PARAM * SCIPparamsetGetParam | ( | SCIP_PARAMSET * | paramset, |
| const char * | name ) |
returns the pointer to an existing SCIP parameter
| paramset | parameter set |
| name | name of the parameter |
Definition at line 1711 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, NULL, and SCIPhashtableRetrieve().
| SCIP_RETCODE SCIPparamsetGetBool | ( | SCIP_PARAMSET * | paramset, |
| const char * | name, | ||
| SCIP_Bool * | value ) |
gets the value of an existing SCIP_Bool parameter
| paramset | parameter set |
| name | name of the parameter |
| value | pointer to store the parameter |
Definition at line 1723 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_Bool, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_BOOL, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetBool().
| SCIP_RETCODE SCIPparamsetGetInt | ( | SCIP_PARAMSET * | paramset, |
| const char * | name, | ||
| int * | value ) |
gets the value of an existing int parameter
| paramset | parameter set |
| name | name of the parameter |
| value | pointer to store the parameter |
Definition at line 1755 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_INT, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetInt().
Referenced by SCIPparamsetSetToSubscipsOff().
| SCIP_RETCODE SCIPparamsetGetLongint | ( | SCIP_PARAMSET * | paramset, |
| const char * | name, | ||
| SCIP_Longint * | value ) |
gets the value of an existing SCIP_Longint parameter
| paramset | parameter set |
| name | name of the parameter |
| value | pointer to store the parameter |
Definition at line 1787 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_Longint, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_LONGINT, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetLongint().
| SCIP_RETCODE SCIPparamsetGetReal | ( | SCIP_PARAMSET * | paramset, |
| const char * | name, | ||
| SCIP_Real * | value ) |
gets the value of an existing SCIP_Real parameter
| paramset | parameter set |
| name | name of the parameter |
| value | pointer to store the parameter |
Definition at line 1819 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_REAL, SCIP_Real, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetReal().
| SCIP_RETCODE SCIPparamsetGetChar | ( | SCIP_PARAMSET * | paramset, |
| const char * | name, | ||
| char * | value ) |
gets the value of an existing char parameter
| paramset | parameter set |
| name | name of the parameter |
| value | pointer to store the parameter |
Definition at line 1851 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_CHAR, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetChar().
| SCIP_RETCODE SCIPparamsetGetString | ( | SCIP_PARAMSET * | paramset, |
| const char * | name, | ||
| char ** | value ) |
gets the value of an existing string parameter
| paramset | parameter set |
| name | name of the parameter |
| value | pointer to store the parameter |
Definition at line 1883 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_STRING, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetString().
| SCIP_RETCODE SCIPparamsetFix | ( | SCIP_PARAMSET * | paramset, |
| const char * | name, | ||
| SCIP_Bool | fixed ) |
changes the fixing status of an existing parameter
| paramset | parameter set |
| name | name of the parameter |
| fixed | new fixing status of the parameter |
Definition at line 1915 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, NULL, SCIP_Bool, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamSetFixed().
Referenced by SCIPparamsetSetToSubscipsOff().
| SCIP_RETCODE SCIPparamsetSetBool | ( | SCIP_PARAMSET * | paramset, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| const char * | name, | ||
| SCIP_Bool | value ) |
changes the value of an existing SCIP_Bool parameter
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| name | name of the parameter |
| value | new value of the parameter |
Definition at line 1939 of file paramset.c.
References assert(), FALSE, SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_BOOL, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetBool(), and TRUE.
Referenced by SCIPparamsetCopyParams().
| SCIP_RETCODE SCIPparamsetSetInt | ( | SCIP_PARAMSET * | paramset, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| const char * | name, | ||
| int | value ) |
changes the value of an existing int parameter
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| name | name of the parameter |
| value | new value of the parameter |
Definition at line 1973 of file paramset.c.
References assert(), FALSE, SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_INT, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetInt(), and TRUE.
| SCIP_RETCODE SCIPparamsetSetLongint | ( | SCIP_PARAMSET * | paramset, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| const char * | name, | ||
| SCIP_Longint | value ) |
changes the value of an existing SCIP_Longint parameter
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| name | name of the parameter |
| value | new value of the parameter |
Definition at line 2007 of file paramset.c.
References assert(), FALSE, SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_LONGINT, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetLongint(), and TRUE.
| SCIP_RETCODE SCIPparamsetSetReal | ( | SCIP_PARAMSET * | paramset, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| const char * | name, | ||
| SCIP_Real | value ) |
changes the value of an existing SCIP_Real parameter
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| name | name of the parameter |
| value | new value of the parameter |
Definition at line 2041 of file paramset.c.
References assert(), FALSE, SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_REAL, SCIP_Real, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetReal(), and TRUE.
| SCIP_RETCODE SCIPparamsetSetChar | ( | SCIP_PARAMSET * | paramset, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| const char * | name, | ||
| char | value ) |
changes the value of an existing char parameter
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| name | name of the parameter |
| value | new value of the parameter |
Definition at line 2075 of file paramset.c.
References assert(), FALSE, SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_CHAR, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetChar(), and TRUE.
| SCIP_RETCODE SCIPparamsetSetString | ( | SCIP_PARAMSET * | paramset, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| const char * | name, | ||
| const char * | value ) |
changes the value of an existing string parameter
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| name | name of the parameter |
| value | new value of the parameter |
Definition at line 2109 of file paramset.c.
References assert(), FALSE, SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_STRING, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetString(), and TRUE.
| SCIP_RETCODE SCIPparamsetSet | ( | SCIP_PARAMSET * | paramset, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| const char * | name, | ||
| const char * | value, | ||
| SCIP_Bool | fix ) |
changes the value of an existing parameter
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| name | name of the parameter |
| value | new value of the parameter as string |
| fix | whether to fix parameter |
Definition at line 2143 of file paramset.c.
References assert(), FALSE, SCIP_ParamSet::hashtable, NULL, paramParseBool(), paramParseChar(), paramParseInt(), paramParseLongint(), paramParseReal(), paramParseString(), SCIP_Param::paramtype, SCIP_Bool, 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(), SCIPmessagePrintWarning(), SCIPparamSetFixed(), and TRUE.
Referenced by paramsetParse().
| SCIP_RETCODE SCIPparamsetSetDefaultBool | ( | SCIP_PARAMSET * | paramset, |
| const char * | name, | ||
| SCIP_Bool | defaultvalue ) |
changes the default value of an existing SCIP_Bool parameter
| paramset | parameter set |
| name | name of the parameter |
| defaultvalue | new default value of the parameter |
Definition at line 2202 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_Bool, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_BOOL, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamSetDefaultBool().
| SCIP_RETCODE SCIPparamsetSetDefaultInt | ( | SCIP_PARAMSET * | paramset, |
| const char * | name, | ||
| int | defaultvalue ) |
changes the default value of an existing int parameter
| paramset | parameter set |
| name | name of the parameter |
| defaultvalue | new default value of the parameter |
Definition at line 2233 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_INT, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamSetDefaultInt().
| SCIP_RETCODE SCIPparamsetSetDefaultLongint | ( | SCIP_PARAMSET * | paramset, |
| const char * | name, | ||
| SCIP_Longint | defaultvalue ) |
changes the default value of an existing SCIP_Longint parameter
| paramset | parameter set |
| name | name of the parameter |
| defaultvalue | new default value of the parameter |
Definition at line 2264 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_Longint, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_LONGINT, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamSetDefaultLongint().
| SCIP_RETCODE SCIPparamsetSetDefaultReal | ( | SCIP_PARAMSET * | paramset, |
| const char * | name, | ||
| SCIP_Real | defaultvalue ) |
changes the default value of an existing SCIP_Real parameter
| paramset | parameter set |
| name | name of the parameter |
| defaultvalue | new default value of the parameter |
Definition at line 2295 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_REAL, SCIP_Real, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamSetDefaultReal().
| SCIP_RETCODE SCIPparamsetSetDefaultChar | ( | SCIP_PARAMSET * | paramset, |
| const char * | name, | ||
| char | defaultvalue ) |
changes the default value of an existing char parameter
| paramset | parameter set |
| name | name of the parameter |
| defaultvalue | new default value of the parameter |
Definition at line 2326 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_CHAR, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamSetDefaultChar().
| SCIP_RETCODE SCIPparamsetSetDefaultString | ( | SCIP_PARAMSET * | paramset, |
| const char * | name, | ||
| const char * | defaultvalue ) |
changes the default value of an existing string parameter
| paramset | parameter set |
| name | name of the parameter |
| defaultvalue | new default value of the parameter |
Definition at line 2357 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_STRING, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamSetDefaultString().
|
static |
parses emphasis settings
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| line | line to parse (is modified during parse, but not freed) |
Definition at line 2389 of file paramset.c.
References assert(), FALSE, NULL, paramname, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_PARAMEMPHASIS_BENCHMARK, SCIP_PARAMEMPHASIS_COUNTER, SCIP_PARAMEMPHASIS_CPSOLVER, SCIP_PARAMEMPHASIS_DEFAULT, SCIP_PARAMEMPHASIS_EASYCIP, SCIP_PARAMEMPHASIS_FEASIBILITY, SCIP_PARAMEMPHASIS_HARDLP, SCIP_PARAMEMPHASIS_NUMERICS, SCIP_PARAMEMPHASIS_OPTIMALITY, SCIP_PARAMSETTING_AGGRESSIVE, SCIP_PARAMSETTING_DEFAULT, SCIP_PARAMSETTING_FAST, SCIP_PARAMSETTING_OFF, SCIP_READERROR, SCIPerrorMessage, SCIPparamsetSetEmphasis(), SCIPsetSetHeuristics(), SCIPsetSetPresolving(), SCIPsetSetSeparating(), and TRUE.
Referenced by paramsetParse().
|
static |
parses a parameter file line "paramname = paramvalue" and sets parameter accordingly
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| line | line to parse (is modified during parse, but not freed) |
| foundnormalparam | pointer to store whether a normal parameter (not emphasis setting) has been found |
Definition at line 2551 of file paramset.c.
References assert(), emphasisParse(), FALSE, NULL, paramname, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_READERROR, SCIPerrorMessage, SCIPparamsetSet(), and TRUE.
Referenced by SCIPparamsetRead().
| SCIP_RETCODE SCIPparamsetRead | ( | SCIP_PARAMSET * | paramset, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| const char * | filename ) |
reads parameters from a file
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| filename | file name |
Definition at line 2668 of file paramset.c.
References assert(), FALSE, NULL, paramsetParse(), SCIP_Bool, SCIP_CALL, SCIP_NOFILE, SCIP_OKAY, SCIP_READERROR, SCIPerrorMessage, and SCIPprintSysError().
| SCIP_RETCODE SCIPparamsetWrite | ( | SCIP_PARAMSET * | paramset, |
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| const char * | filename, | ||
| SCIP_Bool | comments, | ||
| SCIP_Bool | onlychanged ) |
writes all parameters in the parameter set to a file
| paramset | parameter set |
| messagehdlr | message handler |
| filename | file name, or NULL for stdout |
| comments | should parameter descriptions be written as comments? |
| onlychanged | should only the parameters been written, that are changed from default? |
Definition at line 2718 of file paramset.c.
References assert(), FALSE, i, SCIP_ParamSet::nparams, NULL, SCIP_ParamSet::params, paramWrite(), SCIP_Bool, SCIP_CALL, SCIP_FILECREATEERROR, SCIP_OKAY, SCIPerrorMessage, SCIPmessageFPrintInfo(), SCIPmessagehdlrIsQuiet(), SCIPmessagehdlrSetQuiet(), and SCIPprintSysError().
| SCIP_RETCODE SCIPparamsetSetToDefaults | ( | SCIP_PARAMSET * | paramset, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr ) |
installs default values for all parameters
Definition at line 2796 of file paramset.c.
References i, SCIP_ParamSet::nparams, SCIP_ParamSet::params, SCIP_CALL, SCIP_OKAY, and SCIPparamSetToDefault().
Referenced by SCIPparamsetSetEmphasis().
| SCIP_RETCODE SCIPparamsetSetToDefault | ( | SCIP_PARAMSET * | paramset, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| const char * | paramname ) |
installs default value for a single parameter
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| paramname | name of the parameter |
Definition at line 2814 of file paramset.c.
References SCIP_ParamSet::hashtable, NULL, paramname, SCIP_CALL, SCIP_OKAY, SCIPhashtableRetrieve(), and SCIPparamSetToDefault().
Referenced by paramsetSetHeuristicsDefault(), paramsetSetPresolvingDefault(), and paramsetSetSeparatingDefault().
|
static |
resets parameters changed by SCIPparamsetSetHeuristicsXyz functions to their default values
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| quiet | should the parameters be set quietly (no output)? |
Definition at line 2838 of file paramset.c.
References i, paramname, SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPheurGetName(), SCIPparamsetSetToDefault(), and SCIPsnprintf().
Referenced by paramsetSetHeuristicsAggressive(), paramsetSetHeuristicsFast(), paramsetSetHeuristicsOff(), and SCIPparamsetSetHeuristics().
|
static |
sets heuristics to aggressive
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| quiet | should the parameters be set quietly (no output)? |
Definition at line 2886 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, i, MAX, NULL, paramname, paramSetBool(), paramSetInt(), paramSetLongint(), paramSetReal(), paramsetSetHeuristicsDefault(), SCIP_Bool, SCIP_CALL, SCIP_Longint, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_PARAMTYPE_INT, SCIP_PARAMTYPE_REAL, SCIPhashtableRetrieve(), SCIPheurGetName(), SCIPparamGetIntDefault(), SCIPparamGetRealDefault(), SCIPparamGetType(), SCIPsetCeil(), SCIPsetFindHeur(), SCIPsnprintf(), and TRUE.
Referenced by SCIPparamsetSetEmphasis(), and SCIPparamsetSetHeuristics().
|
static |
sets heuristics to fast
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| quiet | should the parameters be set quietly (no output)? |
Definition at line 3020 of file paramset.c.
References SCIP_ParamSet::hashtable, i, NEXPENSIVEHEURFREQS, NULL, paramname, paramSetInt(), paramsetSetHeuristicsDefault(), SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPgetHeurs(), SCIPgetNHeurs(), SCIPhashtableRetrieve(), SCIPheurGetName(), SCIPheurUsesSubscip(), and SCIPsnprintf().
Referenced by SCIPparamsetSetEmphasis(), and SCIPparamsetSetHeuristics().
|
static |
turns all heuristics off
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| quiet | should the parameters be set quietly (no output)? |
Definition at line 3075 of file paramset.c.
References i, paramname, paramSetInt(), paramsetSetHeuristicsDefault(), SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPheurGetName(), and SCIPsnprintf().
Referenced by SCIPparamsetSetEmphasis(), and SCIPparamsetSetHeuristics().
|
static |
resets all parameters that start with "presolving" in their name to their default value; additionally set the parameters which might have previously been changed by the methods SCIPparamsetSetToPresolving{Off,Fast,Aggressive} to their default value
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| quiet | should the parameters be set quietly (no output)? |
Definition at line 3113 of file paramset.c.
References i, paramname, SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPconshdlrGetName(), SCIPparamsetSetToDefault(), SCIPpresolGetName(), SCIPpropGetName(), and SCIPsnprintf().
Referenced by paramsetSetPresolvingAggressive(), paramsetSetPresolvingFast(), paramsetSetPresolvingOff(), and SCIPparamsetSetPresolving().
|
static |
sets presolving to aggressive
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| quiet | should the parameters be set quietly (no output)? |
Definition at line 3198 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, NULL, paramname, paramSetBool(), paramSetInt(), paramSetReal(), paramsetSetPresolvingDefault(), SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_PARAMTYPE_INT, SCIPhashtableRetrieve(), SCIPparamGetIntDefault(), SCIPparamGetType(), SCIPpresolGetName(), SCIPsetFindConshdlr(), SCIPsnprintf(), and TRUE.
Referenced by SCIPparamsetSetPresolving().
|
static |
sets presolving to fast
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| quiet | should the parameters be set quietly (no output)? |
Definition at line 3274 of file paramset.c.
References FALSE, SCIP_ParamSet::hashtable, i, NULL, paramname, paramSetBool(), paramSetInt(), paramsetSetPresolvingDefault(), SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_PARAMTYPE_BOOL, SCIPconshdlrGetName(), SCIPhashtableRetrieve(), SCIPparamGetType(), SCIPsetFindConshdlr(), SCIPsetFindPresol(), SCIPsetFindProp(), and SCIPsnprintf().
Referenced by SCIPparamsetSetEmphasis(), and SCIPparamsetSetPresolving().
|
static |
turns all presolving off
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| quiet | should the parameters be set quietly (no output)? |
Definition at line 3389 of file paramset.c.
References i, paramname, paramSetInt(), paramsetSetPresolvingDefault(), SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPconshdlrGetName(), SCIPpresolGetName(), SCIPpropGetName(), and SCIPsnprintf().
Referenced by SCIPparamsetSetPresolving().
|
static |
reset parameters that may have been changed by other SCIPparamsetSetSeparatingXyz to their default values
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| quiet | should the parameters be set quietly (no output)? |
Definition at line 3467 of file paramset.c.
References SCIP_ParamSet::hashtable, i, NULL, paramname, SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPconshdlrGetName(), SCIPhashtableRetrieve(), SCIPparamsetSetToDefault(), SCIPsepaGetName(), and SCIPsnprintf().
Referenced by paramsetSetSeparatingAggressive(), paramsetSetSeparatingFast(), paramsetSetSeparatingOff(), and SCIPparamsetSetSeparating().
|
static |
sets separating to aggressive
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| quiet | should the parameters be set quietly (no output)? |
Definition at line 3547 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, i, MAX, MIN, NULL, paramname, paramSetBool(), paramSetInt(), paramSetReal(), paramsetSetSeparatingDefault(), SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_PARAMTYPE_INT, SCIPconshdlrGetName(), SCIPhashtableRetrieve(), SCIPparamGetIntDefault(), SCIPparamGetType(), SCIPsepaGetName(), SCIPsetFindConshdlr(), SCIPsetFindSepa(), SCIPsnprintf(), and TRUE.
Referenced by SCIPparamsetSetEmphasis(), and SCIPparamsetSetSeparating().
|
static |
sets separating to fast
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| quiet | should the parameters be set quietly (no output)? |
Definition at line 3721 of file paramset.c.
References NULL, paramSetInt(), paramSetReal(), paramsetSetSeparatingDefault(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPsetFindConshdlr(), and SCIPsetFindSepa().
Referenced by SCIPparamsetSetEmphasis(), and SCIPparamsetSetSeparating().
|
static |
turns all cuts off
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| quiet | should the parameters be set quietly (no output)? |
Definition at line 3778 of file paramset.c.
References i, paramname, paramSetInt(), paramsetSetSeparatingDefault(), SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPconshdlrGetName(), SCIPsepaGetName(), and SCIPsnprintf().
Referenced by SCIPparamsetSetEmphasis(), and SCIPparamsetSetSeparating().
| SCIP_RETCODE SCIPparamsetSetEmphasis | ( | SCIP_PARAMSET * | paramset, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| SCIP_PARAMEMPHASIS | paramemphasis, | ||
| SCIP_Bool | quiet ) |
sets parameters to
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| paramemphasis | parameter emphasis |
| quiet | should the parameters be set quietly (no output)? |
Definition at line 3841 of file paramset.c.
References FALSE, h, SCIP_ParamSet::hashtable, NULL, paramname, paramSetBool(), paramSetChar(), paramSetInt(), paramSetReal(), paramsetSetHeuristicsAggressive(), paramsetSetHeuristicsFast(), paramsetSetHeuristicsOff(), paramsetSetPresolvingFast(), paramsetSetSeparatingAggressive(), paramsetSetSeparatingFast(), paramsetSetSeparatingOff(), SCIP_Bool, SCIP_CALL, SCIP_INVALIDCALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_PARAMEMPHASIS_BENCHMARK, SCIP_PARAMEMPHASIS_COUNTER, SCIP_PARAMEMPHASIS_CPSOLVER, SCIP_PARAMEMPHASIS_DEFAULT, SCIP_PARAMEMPHASIS_EASYCIP, SCIP_PARAMEMPHASIS_FEASIBILITY, SCIP_PARAMEMPHASIS_HARDLP, SCIP_PARAMEMPHASIS_NUMERICS, SCIP_PARAMEMPHASIS_OPTIMALITY, SCIP_PARAMEMPHASIS_PHASEFEAS, SCIP_PARAMEMPHASIS_PHASEIMPROVE, SCIP_PARAMEMPHASIS_PHASEPROOF, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPheurGetName(), SCIPheurUsesSubscip(), SCIPparamsetSetToDefaults(), SCIPsetFindConshdlr(), SCIPsnprintf(), and TRUE.
Referenced by emphasisParse(), and SCIPsetSetEmphasis().
| SCIP_RETCODE SCIPparamsetSetToSubscipsOff | ( | SCIP_PARAMSET * | paramset, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| SCIP_Bool | quiet ) |
sets parameters to deactivate separators and heuristics that use auxiliary SCIP instances; should be called for auxiliary SCIP instances to avoid recursion
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| quiet | should the parameters be set quietly (no output)? |
Definition at line 4112 of file paramset.c.
References FALSE, i, NULL, paramname, paramSetInt(), SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPheurGetName(), SCIPheurUsesSubscip(), SCIPmessageFPrintInfo(), SCIPparamsetFix(), SCIPparamsetGetInt(), SCIPparamsetIsFixed(), SCIPsepaGetName(), SCIPsepaUsesSubscip(), SCIPsetFindConshdlr(), SCIPsnprintf(), and TRUE.
Referenced by SCIPsetSetSubscipsOff().
| SCIP_RETCODE SCIPparamsetSetHeuristics | ( | SCIP_PARAMSET * | paramset, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| SCIP_PARAMSETTING | paramsetting, | ||
| SCIP_Bool | quiet ) |
sets heuristic parameters values to
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| paramsetting | parameter settings |
| quiet | should the parameters be set quietly (no output)? |
Definition at line 4217 of file paramset.c.
References paramsetSetHeuristicsAggressive(), paramsetSetHeuristicsDefault(), paramsetSetHeuristicsFast(), paramsetSetHeuristicsOff(), SCIP_Bool, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_PARAMSETTING_AGGRESSIVE, SCIP_PARAMSETTING_DEFAULT, SCIP_PARAMSETTING_FAST, SCIP_PARAMSETTING_OFF, and SCIPerrorMessage.
Referenced by SCIPsetSetHeuristics().
| SCIP_RETCODE SCIPparamsetSetPresolving | ( | SCIP_PARAMSET * | paramset, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| SCIP_PARAMSETTING | paramsetting, | ||
| SCIP_Bool | quiet ) |
sets presolving parameters to
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| paramsetting | parameter settings |
| quiet | should the parameters be set quietly (no output)? |
Definition at line 4253 of file paramset.c.
References paramsetSetPresolvingAggressive(), paramsetSetPresolvingDefault(), paramsetSetPresolvingFast(), paramsetSetPresolvingOff(), SCIP_Bool, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_PARAMSETTING_AGGRESSIVE, SCIP_PARAMSETTING_DEFAULT, SCIP_PARAMSETTING_FAST, SCIP_PARAMSETTING_OFF, and SCIPerrorMessage.
Referenced by SCIPsetSetPresolving().
| SCIP_RETCODE SCIPparamsetSetSeparating | ( | SCIP_PARAMSET * | paramset, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| SCIP_PARAMSETTING | paramsetting, | ||
| SCIP_Bool | quiet ) |
sets separating parameters to
| paramset | parameter set |
| set | global SCIP settings |
| messagehdlr | message handler |
| paramsetting | parameter settings |
| quiet | should the parameters be set quietly (no output)? |
Definition at line 4289 of file paramset.c.
References paramsetSetSeparatingAggressive(), paramsetSetSeparatingDefault(), paramsetSetSeparatingFast(), paramsetSetSeparatingOff(), SCIP_Bool, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_PARAMSETTING_AGGRESSIVE, SCIP_PARAMSETTING_DEFAULT, SCIP_PARAMSETTING_FAST, SCIP_PARAMSETTING_OFF, and SCIPerrorMessage.
Referenced by SCIPsetSetSeparating().
| SCIP_PARAM ** SCIPparamsetGetParams | ( | SCIP_PARAMSET * | paramset | ) |
returns the array of parameters
| paramset | parameter set |
Definition at line 4320 of file paramset.c.
References assert(), NULL, and SCIP_ParamSet::params.
| int SCIPparamsetGetNParams | ( | SCIP_PARAMSET * | paramset | ) |
returns the number of parameters in the parameter set
| paramset | parameter set |
Definition at line 4330 of file paramset.c.
References assert(), SCIP_ParamSet::nparams, and NULL.
| SCIP_RETCODE SCIPparamsetCopyParams | ( | SCIP_PARAMSET * | sourceparamset, |
| SCIP_PARAMSET * | targetparamset, | ||
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr ) |
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.
| sourceparamset | source parameter set |
| targetparamset | target parameter set |
| set | global SCIP settings of target SCIP |
| messagehdlr | message handler of target SCIP |
Definition at line 4344 of file paramset.c.
References assert(), FALSE, SCIP_ParamSet::hashtable, i, 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(), SCIPparamsetSetBool(), SCIPsetChgParamFixed(), SCIPsetIsParamFixed(), and SCIPsetSetReoptimizationParams().
Referenced by SCIPsetCopyParams().
|
static |
default comparer for integers
Definition at line 4439 of file paramset.c.
| SCIP_RETCODE SCIPparamsetCheckValuePtrUnique | ( | SCIP_PARAMSET * | paramset, |
| SCIP_SET * | set ) |
checks whether the value pointers attached to each parameter are unique
When creating a parameter a value pointer can be attached. This function checks whether these pointers are unique. Duplicate pointers indicate an error.
Definition at line 4455 of file paramset.c.
References assert(), SCIP_Param::boolparam, SCIP_Param::charparam, SCIP_Param::data, i, SCIP_Param::intparam, SCIP_Param::longintparam, SCIP_Param::name, SCIP_ParamSet::nparams, NULL, SCIP_ParamSet::params, SCIP_Param::paramtype, SCIP_Param::realparam, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_BOOL, SCIP_PARAMTYPE_CHAR, SCIP_PARAMTYPE_INT, SCIP_PARAMTYPE_LONGINT, SCIP_PARAMTYPE_REAL, SCIP_PARAMTYPE_STRING, SCIPABORT, SCIPerrorMessage, SCIPsetAllocBufferArray, SCIPsetFreeBufferArray, SCIPsortPtrInt(), SCIP_Param::stringparam, SCIP_BoolParam::valueptr, SCIP_CharParam::valueptr, SCIP_IntParam::valueptr, SCIP_LongintParam::valueptr, SCIP_RealParam::valueptr, and SCIP_StringParam::valueptr.
Referenced by SCIPsetCheckParamValuePtrUnique().
| void SCIPparamSetFixed | ( | SCIP_PARAM * | param, |
| SCIP_Bool | fixed ) |
sets fixing status of given parameter
| param | parameter |
| fixed | new fixing status of the parameter |
Definition at line 4531 of file paramset.c.
References assert(), SCIP_Param::isfixed, NULL, and SCIP_Bool.
Referenced by SCIP_DECL_DIALOGEXEC(), SCIPparamsetCopyParams(), SCIPparamsetFix(), and SCIPparamsetSet().
| SCIP_Bool SCIPparamIsValidBool | ( | SCIP_PARAM * | param, |
| SCIP_Bool | value ) |
checks whether value of bool parameter is valid
| param | parameter |
| value | value to check |
Definition at line 4542 of file paramset.c.
References assert(), FALSE, NULL, SCIP_Bool, and TRUE.
Referenced by SCIPisBoolParamValid().
| SCIP_Bool SCIPparamIsValidInt | ( | SCIP_PARAM * | param, |
| int | value ) |
checks whether value of integer parameter is valid
| param | parameter |
| value | value to check |
Definition at line 4552 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_Param::intparam, SCIP_IntParam::minvalue, NULL, and SCIP_Bool.
Referenced by SCIPisIntParamValid().
| SCIP_Bool SCIPparamIsValidLongint | ( | SCIP_PARAM * | param, |
| SCIP_Longint | value ) |
checks whether value of SCIP_Longint parameter is valid
| param | parameter |
| value | value to check |
Definition at line 4563 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_Param::longintparam, SCIP_LongintParam::minvalue, NULL, SCIP_Bool, and SCIP_Longint.
Referenced by SCIPisLongintParamValid().
| SCIP_Bool SCIPparamIsValidReal | ( | SCIP_PARAM * | param, |
| SCIP_Real | value ) |
checks whether value of SCIP_Real parameter is valid
| param | parameter |
| value | value to check |
Definition at line 4574 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_RealParam::minvalue, NULL, SCIP_Param::realparam, SCIP_Bool, and SCIP_Real.
Referenced by SCIPisRealParamValid().
| SCIP_Bool SCIPparamIsValidChar | ( | SCIP_PARAM * | param, |
| const char | value ) |
checks whether value of char parameter is valid
| param | parameter |
| value | value to check |
Definition at line 4585 of file paramset.c.
References SCIP_CharParam::allowedvalues, assert(), c, SCIP_Param::charparam, SCIP_Param::data, FALSE, NULL, SCIP_Bool, and TRUE.
Referenced by SCIPisCharParamValid().
| SCIP_Bool SCIPparamIsValidString | ( | SCIP_PARAM * | param, |
| const char * | value ) |
checks whether value of string parameter is valid
| param | parameter |
| value | value to check |
Definition at line 4611 of file paramset.c.
References assert(), FALSE, i, NULL, SCIP_Bool, and TRUE.
Referenced by SCIPisStringParamValid().
| SCIP_RETCODE SCIPparamSetBool | ( | SCIP_PARAM * | param, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| SCIP_Bool | value, | ||
| SCIP_Bool | initialize, | ||
| SCIP_Bool | quiet ) |
sets value of SCIP_Bool parameter
| param | parameter |
| set | global SCIP settings, or NULL if param change method should not be called |
| messagehdlr | message handler |
| value | new value of the parameter |
| initialize | is this the initialization of the parameter? |
| quiet | should the parameter be set quietly (no output)? |
Definition at line 4629 of file paramset.c.
References assert(), SCIP_Param::boolparam, SCIP_BoolParam::curvalue, SCIP_Param::data, FALSE, NULL, paramTestBool(), paramTestFixed(), paramWrite(), SCIP_Bool, SCIP_CALL, SCIP_CALL_QUIET, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIPparamGetBool(), TRUE, and SCIP_BoolParam::valueptr.
Referenced by paramCopyBool(), paramCreateBool(), paramParseBool(), paramSetBool(), SCIPparamsetSetBool(), and SCIPparamSetToDefault().
| SCIP_RETCODE SCIPparamSetInt | ( | SCIP_PARAM * | param, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| int | value, | ||
| SCIP_Bool | initialize, | ||
| SCIP_Bool | quiet ) |
sets value of int parameter
| param | parameter |
| set | global SCIP settings, or NULL if param change method should not be called |
| messagehdlr | message handler |
| value | new value of the parameter |
| initialize | is this the initialization of the parameter? |
| quiet | should the parameter be set quietly (no output)? |
Definition at line 4691 of file paramset.c.
References assert(), SCIP_IntParam::curvalue, SCIP_Param::data, FALSE, SCIP_Param::intparam, NULL, paramTestFixed(), paramTestInt(), paramWrite(), SCIP_Bool, SCIP_CALL, SCIP_CALL_QUIET, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIPparamGetInt(), TRUE, and SCIP_IntParam::valueptr.
Referenced by paramCopyInt(), paramCreateInt(), paramParseInt(), paramSetInt(), SCIPparamsetSetInt(), SCIPparamSetToDefault(), and SCIPsetChgIntParam().
| SCIP_RETCODE SCIPparamSetLongint | ( | SCIP_PARAM * | param, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| SCIP_Longint | value, | ||
| SCIP_Bool | initialize, | ||
| SCIP_Bool | quiet ) |
sets value of SCIP_Longint parameter
| param | parameter |
| set | global SCIP settings, or NULL if param change method should not be called |
| messagehdlr | message handler |
| value | new value of the parameter |
| initialize | is this the initialization of the parameter? |
| quiet | should the parameter be set quietly (no output)? |
Definition at line 4753 of file paramset.c.
References assert(), SCIP_LongintParam::curvalue, SCIP_Param::data, FALSE, SCIP_Param::longintparam, NULL, paramTestFixed(), paramTestLongint(), paramWrite(), SCIP_Bool, SCIP_CALL, SCIP_CALL_QUIET, SCIP_Longint, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIPparamGetLongint(), TRUE, and SCIP_LongintParam::valueptr.
Referenced by paramCopyLongint(), paramCreateLongint(), paramParseLongint(), paramSetLongint(), SCIPparamsetSetLongint(), and SCIPparamSetToDefault().
| SCIP_RETCODE SCIPparamSetReal | ( | SCIP_PARAM * | param, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| SCIP_Real | value, | ||
| SCIP_Bool | initialize, | ||
| SCIP_Bool | quiet ) |
sets value of SCIP_Real parameter
| param | parameter |
| set | global SCIP settings, or NULL if param change method should not be called |
| messagehdlr | message handler |
| value | new value of the parameter |
| initialize | is this the initialization of the parameter? |
| quiet | should the parameter be set quietly (no output)? |
Definition at line 4815 of file paramset.c.
References assert(), SCIP_RealParam::curvalue, SCIP_Param::data, FALSE, MAX, MIN, NULL, paramTestFixed(), paramTestReal(), paramWrite(), SCIP_Param::realparam, SCIP_Bool, SCIP_CALL, SCIP_CALL_QUIET, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIP_Real, SCIP_REAL_MAX, SCIP_REAL_MIN, SCIPparamGetReal(), TRUE, and SCIP_RealParam::valueptr.
Referenced by paramCopyReal(), paramCreateReal(), paramParseReal(), paramSetReal(), SCIPparamsetSetReal(), and SCIPparamSetToDefault().
| SCIP_RETCODE SCIPparamSetChar | ( | SCIP_PARAM * | param, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| char | value, | ||
| SCIP_Bool | initialize, | ||
| SCIP_Bool | quiet ) |
sets value of char parameter
| param | parameter |
| set | global SCIP settings, or NULL if param change method should not be called |
| messagehdlr | message handler |
| value | new value of the parameter |
| initialize | is this the initialization of the parameter? |
| quiet | should the parameter be set quietly (no output)? |
Definition at line 4879 of file paramset.c.
References assert(), SCIP_Param::charparam, SCIP_CharParam::curvalue, SCIP_Param::data, FALSE, NULL, paramTestChar(), paramTestFixed(), paramWrite(), SCIP_Bool, SCIP_CALL, SCIP_CALL_QUIET, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIPparamGetChar(), TRUE, and SCIP_CharParam::valueptr.
Referenced by paramCopyChar(), paramCreateChar(), paramParseChar(), paramSetChar(), SCIPparamsetSetChar(), and SCIPparamSetToDefault().
| SCIP_RETCODE SCIPparamSetString | ( | SCIP_PARAM * | param, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| const char * | value, | ||
| SCIP_Bool | initialize, | ||
| SCIP_Bool | quiet ) |
sets value of string parameter
| param | parameter |
| set | global SCIP settings, or NULL if param change method should not be called |
| messagehdlr | message handler |
| value | new value of the parameter |
| initialize | is this the initialization of the parameter? |
| quiet | should the parameter be set quietly (no output)? |
Definition at line 4940 of file paramset.c.
References assert(), BMSduplicateMemoryArray, BMSfreeMemoryArrayNull, SCIP_StringParam::curvalue, SCIP_Param::data, FALSE, NULL, paramTestFixed(), paramTestString(), paramWrite(), SCIP_ALLOC, SCIP_Bool, SCIP_CALL, SCIP_CALL_QUIET, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIP_Param::stringparam, TRUE, and SCIP_StringParam::valueptr.
Referenced by paramCopyString(), paramCreateString(), paramParseString(), SCIPparamsetSetString(), and SCIPparamSetToDefault().
| void SCIPparamSetDefaultBool | ( | SCIP_PARAM * | param, |
| SCIP_Bool | defaultvalue ) |
changes default value of SCIP_Bool parameter
| param | parameter |
| defaultvalue | new default value |
Definition at line 5011 of file paramset.c.
References assert(), SCIP_Param::boolparam, SCIP_Param::data, SCIP_BoolParam::defaultvalue, NULL, SCIP_Param::paramtype, SCIP_Bool, and SCIP_PARAMTYPE_BOOL.
Referenced by SCIPparamsetSetDefaultBool().
| void SCIPparamSetDefaultInt | ( | SCIP_PARAM * | param, |
| int | defaultvalue ) |
changes default value of int parameter
| param | parameter |
| defaultvalue | new default value |
Definition at line 5023 of file paramset.c.
References assert(), 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().
| void SCIPparamSetDefaultLongint | ( | SCIP_PARAM * | param, |
| SCIP_Longint | defaultvalue ) |
sets default value of SCIP_Longint parameter
| param | parameter |
| defaultvalue | new default value |
Definition at line 5037 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_LongintParam::defaultvalue, SCIP_Param::longintparam, SCIP_LongintParam::maxvalue, SCIP_LongintParam::minvalue, NULL, SCIP_Param::paramtype, SCIP_Longint, and SCIP_PARAMTYPE_LONGINT.
Referenced by SCIPparamsetSetDefaultLongint().
| void SCIPparamSetDefaultReal | ( | SCIP_PARAM * | param, |
| SCIP_Real | defaultvalue ) |
sets default value of SCIP_Real parameter
| param | parameter |
| defaultvalue | new default value |
Definition at line 5051 of file paramset.c.
References assert(), SCIP_Param::data, SCIP_RealParam::defaultvalue, SCIP_RealParam::maxvalue, SCIP_RealParam::minvalue, NULL, SCIP_Param::paramtype, SCIP_Param::realparam, SCIP_PARAMTYPE_REAL, and SCIP_Real.
Referenced by SCIPparamsetSetDefaultReal().
| void SCIPparamSetDefaultChar | ( | SCIP_PARAM * | param, |
| char | defaultvalue ) |
sets default value of char parameter
| param | parameter |
| defaultvalue | new default value |
Definition at line 5065 of file paramset.c.
References assert(), SCIP_Param::charparam, SCIP_Param::data, SCIP_CharParam::defaultvalue, NULL, SCIP_Param::paramtype, and SCIP_PARAMTYPE_CHAR.
Referenced by SCIPparamsetSetDefaultChar().
| void SCIPparamSetDefaultString | ( | SCIP_PARAM * | param, |
| const char * | defaultvalue ) |
sets default value of string parameter
| param | parameter |
| defaultvalue | new default value |
Definition at line 5077 of file paramset.c.
References assert(), BMSduplicateMemoryArray, BMSfreeMemoryArray, SCIP_Param::data, SCIP_StringParam::defaultvalue, NULL, SCIP_Param::paramtype, SCIP_ALLOC_ABORT, SCIP_PARAMTYPE_STRING, and SCIP_Param::stringparam.
Referenced by SCIPparamsetSetDefaultString().
| SCIP_RETCODE SCIPparamSetToDefault | ( | SCIP_PARAM * | param, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr ) |
sets the parameter to its default setting
Definition at line 5090 of file paramset.c.
References assert(), FALSE, 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, SCIPerrorMessage, SCIPparamGetBoolDefault(), SCIPparamGetCharDefault(), SCIPparamGetIntDefault(), SCIPparamGetLongintDefault(), SCIPparamGetRealDefault(), SCIPparamGetStringDefault(), SCIPparamIsFixed(), SCIPparamSetBool(), SCIPparamSetChar(), SCIPparamSetInt(), SCIPparamSetLongint(), SCIPparamSetReal(), SCIPparamSetString(), SCIPsetDebugMsg, and TRUE.
Referenced by SCIPparamsetSetToDefault(), and SCIPparamsetSetToDefaults().
| SCIP_RETCODE SCIPparamWrite | ( | SCIP_PARAM * | param, |
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| const char * | filename, | ||
| SCIP_Bool | comments, | ||
| SCIP_Bool | onlychanged ) |
writes a single parameter to a file
| param | parameter |
| messagehdlr | message handler |
| filename | file name, or NULL for stdout |
| comments | should parameter descriptions be written as comments? |
| onlychanged | should only the parameters been written, that are changed from default? |
Definition at line 5141 of file paramset.c.
References assert(), NULL, paramWrite(), SCIP_Bool, SCIP_CALL, SCIP_FILECREATEERROR, SCIP_OKAY, SCIPerrorMessage, and SCIPprintSysError().
Referenced by SCIPwriteParam().