internal methods for handling parameter settings
Definition in file paramset.h.
#include "scip/def.h"
#include "blockmemshell/memory.h"
#include "scip/type_set.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.
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 1426 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 1446 of file paramset.c.
References assert(), BMSfreeMemory, BMSfreeMemoryArrayNull, i, NULL, paramFree(), SCIPhashtableFree(), and SCIPparamsetGetParam().
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 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
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 1504 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 1531 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 1561 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 1591 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 1621 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 1650 of file paramset.c.
References assert(), NULL, paramCreateString(), paramsetAdd(), SCIP_Bool, SCIP_CALL, SCIP_DECL_PARAMCHGD, and SCIP_OKAY.
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 1695 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 1717 of file paramset.c.
References assert(), SCIP_ParamSet::hashtable, NULL, and SCIPhashtableRetrieve().
Referenced by SCIPparamsetFree().
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 1729 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 1761 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 1793 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 1825 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 1857 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 1889 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 1921 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 1945 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 1979 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 2013 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 2047 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 2081 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 2115 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 2149 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 2208 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 2239 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 2270 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 2301 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 2332 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 2363 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().
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 2665 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 2715 of file paramset.c.
References assert(), FALSE, i, SCIP_ParamSet::nparams, NULL, SCIP_ParamSet::params, paramWrite(), SCIP_Bool, SCIP_CALL, SCIP_FILECREATEERROR, SCIP_OKAY, SCIP_SUBVERSION, SCIPerrorMessage, SCIPmessageFPrintInfo(), SCIPmessagehdlrIsQuiet(), SCIPmessagehdlrSetQuiet(), and SCIPprintSysError().
SCIP_RETCODE SCIPparamsetSetToDefaults | ( | SCIP_PARAMSET * | paramset, |
SCIP_SET * | set, | ||
SCIP_MESSAGEHDLR * | messagehdlr ) |
installs default values for all parameters
paramset | parameter set |
set | global SCIP settings |
messagehdlr | message handler |
Definition at line 2798 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 2816 of file paramset.c.
References SCIP_ParamSet::hashtable, NULL, paramname, SCIP_CALL, SCIP_OKAY, SCIPhashtableRetrieve(), and SCIPparamSetToDefault().
Referenced by paramsetSetHeuristicsDefault(), paramsetSetPresolvingDefault(), and paramsetSetSeparatingDefault().
SCIP_RETCODE SCIPparamsetSetEmphasis | ( | SCIP_PARAMSET * | paramset, |
SCIP_SET * | set, | ||
SCIP_MESSAGEHDLR * | messagehdlr, | ||
SCIP_PARAMEMPHASIS | paramemphasis, | ||
SCIP_Bool | quiet ) |
sets parameters to
sets parameters to
paramset | parameter set |
set | global SCIP settings |
messagehdlr | message handler |
paramemphasis | parameter emphasis |
quiet | should the parameter be set quiet (no output) |
Definition at line 3843 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 parameter be set quiet (no output) |
Definition at line 4114 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
sets heuristic parameters values to
paramset | parameter set |
set | global SCIP settings |
messagehdlr | message handler |
paramsetting | parameter settings |
quiet | should the parameter be set quiet (no output) |
Definition at line 4219 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
sets presolving parameters to
paramset | parameter set |
set | global SCIP settings |
messagehdlr | message handler |
paramsetting | parameter settings |
quiet | should the parameter be set quiet (no output) |
Definition at line 4255 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
sets separating parameters to
paramset | parameter set |
set | global SCIP settings |
messagehdlr | message handler |
paramsetting | parameter settings |
quiet | should the parameter be set quiet (no output) |
Definition at line 4291 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 4322 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 4332 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
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 4346 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().
SCIP_Bool SCIPparamIsValidBool | ( | SCIP_PARAM * | param, |
SCIP_Bool | value ) |
checks whether value of SCIP_Bool parameter is valid
checks whether value of bool parameter is valid
param | parameter |
value | value to check |
Definition at line 4451 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 4461 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 4472 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 4483 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 4494 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 4520 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 quiet (no output) |
Definition at line 4538 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 quiet (no output) |
Definition at line 4600 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 quiet (no output) |
Definition at line 4662 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 quiet (no output) |
Definition at line 4724 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 quiet (no output) |
Definition at line 4788 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 quiet (no output) |
Definition at line 4849 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 ) |
sets default value of SCIP_Bool parameter
changes default value of SCIP_Bool parameter
param | parameter |
defaultvalue | new default value |
Definition at line 4920 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 ) |
sets default value of int parameter
changes default value of int parameter
param | parameter |
defaultvalue | new default value |
Definition at line 4932 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 4946 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 4960 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 4974 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 4986 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
param | parameter |
set | global SCIP settings |
messagehdlr | message handler |
Definition at line 4999 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 5050 of file paramset.c.
References assert(), NULL, paramWrite(), SCIP_Bool, SCIP_CALL, SCIP_FILECREATEERROR, SCIP_OKAY, SCIPerrorMessage, and SCIPprintSysError().
Referenced by SCIPwriteParam().