Scippy

SCIP

Solving Constraint Integer Programs

paramset.c File Reference

Detailed Description

methods for handling parameter settings

Author
Tobias Achterberg
Timo Berthold
Stefan Heinz
Gerald Gamrath

Definition in file paramset.c.

#include <assert.h>
#include <string.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   15
 

Functions

static SCIP_DECL_HASHGETKEY (hashGetKeyParam)
 
static SCIP_RETCODE paramCheckFixed (SCIP_PARAM *param, SCIP_MESSAGEHDLR *messagehdlr)
 
static SCIP_RETCODE paramCheckBool (SCIP_PARAM *param, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool value)
 
static SCIP_RETCODE paramCheckInt (SCIP_PARAM *param, SCIP_MESSAGEHDLR *messagehdlr, int value)
 
static SCIP_RETCODE paramCheckLongint (SCIP_PARAM *param, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Longint value)
 
static SCIP_RETCODE paramCheckReal (SCIP_PARAM *param, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Real value)
 
static SCIP_RETCODE paramCheckChar (SCIP_PARAM *param, SCIP_MESSAGEHDLR *messagehdlr, char value)
 
static SCIP_RETCODE paramCheckString (SCIP_PARAM *param, SCIP_MESSAGEHDLR *messagehdlr, const char *value)
 
static SCIP_RETCODE paramWrite (SCIP_PARAM *param, SCIP_MESSAGEHDLR *messagehdlr, FILE *file, SCIP_Bool comments, SCIP_Bool onlychanged)
 
static SCIP_RETCODE paramSetBool (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, const char *paramname, SCIP_Bool value, SCIP_Bool quiet)
 
static SCIP_RETCODE paramSetChar (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, const char *paramname, char value, SCIP_Bool quiet)
 
static SCIP_RETCODE paramSetInt (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, const char *paramname, int value, SCIP_Bool quiet)
 
static SCIP_RETCODE paramSetLongint (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, const char *paramname, SCIP_Longint value, SCIP_Bool quiet)
 
static SCIP_RETCODE paramSetReal (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, const char *paramname, SCIP_Real value, SCIP_Bool quiet)
 
static SCIP_RETCODE paramCopyBool (SCIP_PARAM *sourceparam, SCIP_PARAM *targetparam, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr)
 
static SCIP_RETCODE paramCopyInt (SCIP_PARAM *sourceparam, SCIP_PARAM *targetparam, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr)
 
static SCIP_RETCODE paramCopyLongint (SCIP_PARAM *sourceparam, SCIP_PARAM *targetparam, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr)
 
static SCIP_RETCODE paramCopyReal (SCIP_PARAM *sourceparam, SCIP_PARAM *targetparam, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr)
 
static SCIP_RETCODE paramCopyChar (SCIP_PARAM *sourceparam, SCIP_PARAM *targetparam, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr)
 
static SCIP_RETCODE paramCopyString (SCIP_PARAM *sourceparam, SCIP_PARAM *targetparam, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr)
 
SCIP_PARAMTYPE SCIPparamGetType (SCIP_PARAM *param)
 
const char * SCIPparamGetName (SCIP_PARAM *param)
 
const char * SCIPparamGetDesc (SCIP_PARAM *param)
 
SCIP_PARAMDATASCIPparamGetData (SCIP_PARAM *param)
 
SCIP_Bool SCIPparamIsAdvanced (SCIP_PARAM *param)
 
SCIP_Bool SCIPparamIsFixed (SCIP_PARAM *param)
 
SCIP_Bool SCIPparamGetBool (SCIP_PARAM *param)
 
SCIP_Bool SCIPparamGetBoolDefault (SCIP_PARAM *param)
 
int SCIPparamGetInt (SCIP_PARAM *param)
 
int SCIPparamGetIntMin (SCIP_PARAM *param)
 
int SCIPparamGetIntMax (SCIP_PARAM *param)
 
int SCIPparamGetIntDefault (SCIP_PARAM *param)
 
SCIP_Longint SCIPparamGetLongint (SCIP_PARAM *param)
 
SCIP_Longint SCIPparamGetLongintMin (SCIP_PARAM *param)
 
SCIP_Longint SCIPparamGetLongintMax (SCIP_PARAM *param)
 
SCIP_Longint SCIPparamGetLongintDefault (SCIP_PARAM *param)
 
SCIP_Real SCIPparamGetReal (SCIP_PARAM *param)
 
SCIP_Real SCIPparamGetRealMin (SCIP_PARAM *param)
 
SCIP_Real SCIPparamGetRealMax (SCIP_PARAM *param)
 
SCIP_Real SCIPparamGetRealDefault (SCIP_PARAM *param)
 
char SCIPparamGetChar (SCIP_PARAM *param)
 
char * SCIPparamGetCharAllowedValues (SCIP_PARAM *param)
 
char SCIPparamGetCharDefault (SCIP_PARAM *param)
 
char * SCIPparamGetString (SCIP_PARAM *param)
 
char * SCIPparamGetStringDefault (SCIP_PARAM *param)
 
SCIP_Bool SCIPparamIsDefault (SCIP_PARAM *param)
 
static SCIP_RETCODE paramCreate (SCIP_PARAM **param, BMS_BLKMEM *blkmem, const char *name, const char *desc, SCIP_DECL_PARAMCHGD((*paramchgd)), SCIP_PARAMDATA *paramdata, SCIP_Bool isadvanced)
 
static SCIP_RETCODE paramCreateBool (SCIP_PARAM **param, 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)
 
static SCIP_RETCODE paramCreateInt (SCIP_PARAM **param, 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)
 
static SCIP_RETCODE paramCreateLongint (SCIP_PARAM **param, 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)
 
static SCIP_RETCODE paramCreateReal (SCIP_PARAM **param, 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)
 
static SCIP_RETCODE paramCreateChar (SCIP_PARAM **param, 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)
 
static SCIP_RETCODE paramCreateString (SCIP_PARAM **param, 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)
 
static void paramFree (SCIP_PARAM **param, BMS_BLKMEM *blkmem)
 
static SCIP_RETCODE paramParseBool (SCIP_PARAM *param, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, char *valuestr)
 
static SCIP_RETCODE paramParseInt (SCIP_PARAM *param, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, char *valuestr)
 
static SCIP_RETCODE paramParseLongint (SCIP_PARAM *param, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, char *valuestr)
 
static SCIP_RETCODE paramParseReal (SCIP_PARAM *param, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, char *valuestr)
 
static SCIP_RETCODE paramParseChar (SCIP_PARAM *param, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, char *valuestr)
 
static SCIP_RETCODE paramParseString (SCIP_PARAM *param, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, char *valuestr)
 
SCIP_RETCODE SCIPparamsetCreate (SCIP_PARAMSET **paramset, BMS_BLKMEM *blkmem)
 
void SCIPparamsetFree (SCIP_PARAMSET **paramset, BMS_BLKMEM *blkmem)
 
static SCIP_RETCODE paramsetAdd (SCIP_PARAMSET *paramset, SCIP_PARAM *param)
 
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)
 
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)
 
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)
 
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)
 
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)
 
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)
 
static const char * paramtypeGetName (SCIP_PARAMTYPE paramtype)
 
SCIP_Bool SCIPparamsetIsFixed (SCIP_PARAMSET *paramset, const char *name)
 
SCIP_PARAMSCIPparamsetGetParam (SCIP_PARAMSET *paramset, const char *name)
 
SCIP_RETCODE SCIPparamsetGetBool (SCIP_PARAMSET *paramset, const char *name, SCIP_Bool *value)
 
SCIP_RETCODE SCIPparamsetGetInt (SCIP_PARAMSET *paramset, const char *name, int *value)
 
SCIP_RETCODE SCIPparamsetGetLongint (SCIP_PARAMSET *paramset, const char *name, SCIP_Longint *value)
 
SCIP_RETCODE SCIPparamsetGetReal (SCIP_PARAMSET *paramset, const char *name, SCIP_Real *value)
 
SCIP_RETCODE SCIPparamsetGetChar (SCIP_PARAMSET *paramset, const char *name, char *value)
 
SCIP_RETCODE SCIPparamsetGetString (SCIP_PARAMSET *paramset, const char *name, char **value)
 
SCIP_RETCODE SCIPparamsetFix (SCIP_PARAMSET *paramset, const char *name, SCIP_Bool fixed)
 
SCIP_RETCODE SCIPparamsetSet (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, const char *name, void *value)
 
SCIP_RETCODE SCIPparamsetSetBool (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, const char *name, SCIP_Bool value)
 
SCIP_RETCODE SCIPparamsetSetDefaultBool (SCIP_PARAMSET *paramset, const char *name, SCIP_Bool defaultvalue)
 
SCIP_RETCODE SCIPparamsetSetInt (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, const char *name, int value)
 
SCIP_RETCODE SCIPparamsetSetDefaultInt (SCIP_PARAMSET *paramset, const char *name, int defaultvalue)
 
SCIP_RETCODE SCIPparamsetSetLongint (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, const char *name, SCIP_Longint value)
 
SCIP_RETCODE SCIPparamsetSetReal (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, const char *name, SCIP_Real value)
 
SCIP_RETCODE SCIPparamsetSetChar (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, const char *name, char value)
 
SCIP_RETCODE SCIPparamsetSetString (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, const char *name, const char *value)
 
static SCIP_RETCODE emphasisParse (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, char *line)
 
static SCIP_RETCODE paramsetParse (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, char *line, SCIP_Bool *foundnormalparam)
 
SCIP_RETCODE SCIPparamsetRead (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, const char *filename)
 
SCIP_RETCODE SCIPparamsetWrite (SCIP_PARAMSET *paramset, SCIP_MESSAGEHDLR *messagehdlr, const char *filename, SCIP_Bool comments, SCIP_Bool onlychanged)
 
SCIP_RETCODE SCIPparamsetSetToDefaults (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr)
 
SCIP_RETCODE SCIPparamsetSetToDefault (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, const char *paramname)
 
static SCIP_RETCODE paramsetSetHeuristicsDefault (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool quiet)
 
static SCIP_RETCODE paramsetSetHeuristicsAggressive (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool quiet)
 
static SCIP_RETCODE paramsetSetHeuristicsFast (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool quiet)
 
static SCIP_RETCODE paramsetSetHeuristicsOff (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool quiet)
 
static SCIP_RETCODE paramsetSetPresolvingDefault (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool quiet)
 
static SCIP_RETCODE paramsetSetPresolvingAggressive (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool quiet)
 
static SCIP_RETCODE paramsetSetPresolvingFast (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool quiet)
 
static SCIP_RETCODE paramsetSetPresolvingOff (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool quiet)
 
static SCIP_RETCODE paramsetSetSeparatingDefault (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool quiet)
 
static SCIP_RETCODE paramsetSetSeparatingAggressive (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool quiet)
 
static SCIP_RETCODE paramsetSetSeparatingFast (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool quiet)
 
static SCIP_RETCODE paramsetSetSeparatingOff (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool quiet)
 
SCIP_RETCODE SCIPparamsetSetEmphasis (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_PARAMEMPHASIS paramemphasis, SCIP_Bool quiet)
 
SCIP_RETCODE SCIPparamsetSetToSubscipsOff (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool quiet)
 
SCIP_RETCODE SCIPparamsetSetHeuristics (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_PARAMSETTING paramsetting, SCIP_Bool quiet)
 
SCIP_RETCODE SCIPparamsetSetPresolving (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_PARAMSETTING paramsetting, SCIP_Bool quiet)
 
SCIP_RETCODE SCIPparamsetSetSeparating (SCIP_PARAMSET *paramset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_PARAMSETTING paramsetting, SCIP_Bool quiet)
 
SCIP_PARAM ** SCIPparamsetGetParams (SCIP_PARAMSET *paramset)
 
int SCIPparamsetGetNParams (SCIP_PARAMSET *paramset)
 
SCIP_RETCODE SCIPparamsetCopyParams (SCIP_PARAMSET *sourceparamset, SCIP_PARAMSET *targetparamset, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr)
 
void SCIPparamSetFixed (SCIP_PARAM *param, SCIP_Bool fixed)
 
SCIP_RETCODE SCIPparamCheckBool (SCIP_PARAM *param, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool value)
 
SCIP_RETCODE SCIPparamCheckString (SCIP_PARAM *param, SCIP_MESSAGEHDLR *messagehdlr, const char *value)
 
SCIP_RETCODE SCIPparamCheckChar (SCIP_PARAM *param, SCIP_MESSAGEHDLR *messagehdlr, const char value)
 
SCIP_RETCODE SCIPparamCheckLongint (SCIP_PARAM *param, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Longint value)
 
SCIP_RETCODE SCIPparamSetBool (SCIP_PARAM *param, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool value, SCIP_Bool quiet)
 
SCIP_RETCODE SCIPparamSetInt (SCIP_PARAM *param, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, int value, SCIP_Bool quiet)
 
SCIP_RETCODE SCIPparamSetLongint (SCIP_PARAM *param, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Longint value, SCIP_Bool quiet)
 
SCIP_RETCODE SCIPparamSetReal (SCIP_PARAM *param, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_Real value, SCIP_Bool quiet)
 
SCIP_RETCODE SCIPparamSetChar (SCIP_PARAM *param, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, char value, SCIP_Bool quiet)
 
SCIP_RETCODE SCIPparamSetString (SCIP_PARAM *param, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, const char *value, SCIP_Bool quiet)
 
void SCIPparamSetDefaultBool (SCIP_PARAM *param, SCIP_Bool defaultvalue)
 
void SCIPparamSetDefaultInt (SCIP_PARAM *param, int defaultvalue)
 
SCIP_RETCODE SCIPparamSetToDefault (SCIP_PARAM *param, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr)
 
SCIP_RETCODE SCIPparamWrite (SCIP_PARAM *param, SCIP_MESSAGEHDLR *messagehdlr, const char *filename, SCIP_Bool comments, SCIP_Bool onlychanged)
 

Macro Definition Documentation

#define NEXPENSIVEHEURFREQS   15

Function Documentation

static SCIP_DECL_HASHGETKEY ( hashGetKeyParam  )
static

hash key retrieval function for parameters

Definition at line 43 of file paramset.c.

References SCIP_Param::name, and NULL.

static SCIP_RETCODE paramCheckFixed ( SCIP_PARAM param,
SCIP_MESSAGEHDLR messagehdlr 
)
static

checks whether parameter can be changed and issues a warning message if it is fixed

Parameters
paramparameter
messagehdlrmessage handler

Definition at line 55 of file paramset.c.

References SCIP_Param::isfixed, SCIP_Param::name, NULL, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, and SCIPmessagePrintWarning().

Referenced by SCIPparamSetBool(), SCIPparamSetChar(), SCIPparamSetInt(), SCIPparamSetLongint(), SCIPparamSetReal(), and SCIPparamSetString().

static SCIP_RETCODE paramCheckBool ( SCIP_PARAM param,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Bool  value 
)
static

checks parameter value according to the given feasible domain; issues a warning message if value was invalid

Parameters
paramparameter
messagehdlrmessage handler
valuevalue to check

Definition at line 74 of file paramset.c.

References FALSE, SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIP_PARAMTYPE_BOOL, SCIPmessagePrintWarning(), and TRUE.

Referenced by SCIPparamCheckBool(), and SCIPparamSetBool().

static SCIP_RETCODE paramCheckInt ( SCIP_PARAM param,
SCIP_MESSAGEHDLR messagehdlr,
int  value 
)
static

checks parameter value according to the given feasible domain; issues a warning message if value was invalid

Parameters
paramparameter
messagehdlrmessage handler
valuevalue to check

Definition at line 95 of file paramset.c.

References 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 SCIPmessagePrintWarning().

Referenced by SCIPparamSetInt().

static SCIP_RETCODE paramCheckLongint ( SCIP_PARAM param,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Longint  value 
)
static

checks parameter value according to the given feasible domain; issues a warning message if value was invalid

Parameters
paramparameter
messagehdlrmessage handler
valuevalue to check

Definition at line 116 of file paramset.c.

References SCIP_Param::data, SCIP_Param::longintparam, SCIP_LongintParam::maxvalue, SCIP_LongintParam::minvalue, SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIP_PARAMTYPE_LONGINT, and SCIPmessagePrintWarning().

Referenced by SCIPparamCheckLongint(), and SCIPparamSetLongint().

static SCIP_RETCODE paramCheckReal ( SCIP_PARAM param,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Real  value 
)
static

checks parameter value according to the given feasible domain; issues a warning message if value was invalid

Parameters
paramparameter
messagehdlrmessage handler
valuevalue to check

Definition at line 137 of file paramset.c.

References 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, and SCIPmessagePrintWarning().

Referenced by SCIPparamSetReal().

static SCIP_RETCODE paramCheckChar ( SCIP_PARAM param,
SCIP_MESSAGEHDLR messagehdlr,
char  value 
)
static

checks parameter value according to the given feasible domain; issues a warning message if value was invalid

Parameters
paramparameter
messagehdlrmessage handler
valuevalue to check

Definition at line 158 of file paramset.c.

References SCIP_CharParam::allowedvalues, SCIP_Param::charparam, SCIP_Param::data, NULL, SCIP_Param::paramtype, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIP_PARAMTYPE_CHAR, and SCIPmessagePrintWarning().

Referenced by SCIPparamCheckChar(), and SCIPparamSetChar().

static SCIP_RETCODE paramCheckString ( SCIP_PARAM param,
SCIP_MESSAGEHDLR messagehdlr,
const char *  value 
)
static

checks parameter value according to the given feasible domain; issues a warning message if value was invalid

Parameters
paramparameter
messagehdlrmessage handler
valuevalue to check

Definition at line 194 of file paramset.c.

References NULL, SCIP_Param::paramtype, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIP_PARAMTYPE_STRING, and SCIPmessagePrintWarning().

Referenced by SCIPparamCheckString(), and SCIPparamSetString().

static SCIP_RETCODE paramWrite ( SCIP_PARAM param,
SCIP_MESSAGEHDLR messagehdlr,
FILE *  file,
SCIP_Bool  comments,
SCIP_Bool  onlychanged 
)
static
static SCIP_RETCODE paramSetBool ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
const char *  paramname,
SCIP_Bool  value,
SCIP_Bool  quiet 
)
static

if a bool parameter exits with the given parameter name it is set to the new value

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
paramnameparameter name
valuenew value of the parameter
quietshould the parameter be set quiet (no output)

Definition at line 316 of file paramset.c.

References SCIP_ParamSet::hashtable, SCIP_Param::name, NULL, paramname, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_BOOL, SCIPdebugMessage, SCIPhashtableRetrieve(), SCIPmessagePrintWarning(), SCIPparamGetType(), SCIPparamIsFixed(), and SCIPparamSetBool().

Referenced by paramsetSetHeuristicsAggressive(), paramsetSetPresolvingAggressive(), paramsetSetPresolvingFast(), paramsetSetSeparatingAggressive(), and SCIPparamsetSetEmphasis().

static SCIP_RETCODE paramSetChar ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
const char *  paramname,
char  value,
SCIP_Bool  quiet 
)
static

if an char parameter exits with the given parameter name it is set to the new value

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
paramnameparameter name
valuenew value of the parameter
quietshould the parameter be set quiet (no output)

Definition at line 352 of file paramset.c.

References SCIP_ParamSet::hashtable, SCIP_Param::name, NULL, paramname, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_CHAR, SCIPdebugMessage, SCIPhashtableRetrieve(), SCIPmessagePrintWarning(), SCIPparamGetType(), SCIPparamIsFixed(), and SCIPparamSetChar().

Referenced by SCIPparamsetSetEmphasis().

static SCIP_RETCODE paramSetInt ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
const char *  paramname,
int  value,
SCIP_Bool  quiet 
)
static

if an integer parameter exits with the given parameter name it is set to the new value

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
paramnameparameter name
valuenew value of the parameter
quietshould the parameter be set quiet (no output)

Definition at line 388 of file paramset.c.

References SCIP_ParamSet::hashtable, SCIP_Param::name, NULL, paramname, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_INT, SCIPdebugMessage, SCIPhashtableRetrieve(), SCIPmessagePrintWarning(), SCIPparamGetType(), SCIPparamIsFixed(), and SCIPparamSetInt().

Referenced by paramsetSetHeuristicsAggressive(), paramsetSetHeuristicsFast(), paramsetSetHeuristicsOff(), paramsetSetPresolvingAggressive(), paramsetSetPresolvingFast(), paramsetSetPresolvingOff(), paramsetSetSeparatingAggressive(), paramsetSetSeparatingFast(), paramsetSetSeparatingOff(), SCIPparamsetSetEmphasis(), and SCIPparamsetSetToSubscipsOff().

static SCIP_RETCODE paramSetLongint ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
const char *  paramname,
SCIP_Longint  value,
SCIP_Bool  quiet 
)
static

if a long integer parameter exits with the given parameter name it is set to the new value

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
paramnameparameter name
valuenew value of the parameter
quietshould the parameter be set quiet (no output)

Definition at line 424 of file paramset.c.

References SCIP_ParamSet::hashtable, SCIP_Param::name, NULL, paramname, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_LONGINT, SCIPdebugMessage, SCIPhashtableRetrieve(), SCIPmessagePrintWarning(), SCIPparamGetType(), SCIPparamIsFixed(), and SCIPparamSetLongint().

Referenced by paramsetSetHeuristicsAggressive().

static SCIP_RETCODE paramSetReal ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
const char *  paramname,
SCIP_Real  value,
SCIP_Bool  quiet 
)
static

if a real parameter exits with the given parameter name it is set to the new value

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
paramnameparameter name
valuenew value of the parameter
quietshould the parameter be set quiet (no output)

Definition at line 460 of file paramset.c.

References SCIP_ParamSet::hashtable, SCIP_Param::name, NULL, paramname, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_REAL, SCIPdebugMessage, SCIPhashtableRetrieve(), SCIPmessagePrintWarning(), SCIPparamGetType(), SCIPparamIsFixed(), and SCIPparamSetReal().

Referenced by paramsetSetHeuristicsAggressive(), paramsetSetPresolvingAggressive(), paramsetSetSeparatingAggressive(), paramsetSetSeparatingFast(), and SCIPparamsetSetEmphasis().

static SCIP_RETCODE paramCopyBool ( SCIP_PARAM sourceparam,
SCIP_PARAM targetparam,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr 
)
static

copies value of source Bool parameter to target Bool parameter

Parameters
sourceparamsource Bool parameter
targetparamtarget Bool parameter
setglobal SCIP settings of target SCIP
messagehdlrmessage handler of target SCIP

Definition at line 496 of file paramset.c.

References NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPparamGetBool(), SCIPparamSetBool(), and TRUE.

Referenced by SCIPparamsetCopyParams().

static SCIP_RETCODE paramCopyInt ( SCIP_PARAM sourceparam,
SCIP_PARAM targetparam,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr 
)
static

copies value of source int parameter to target int parameter

Parameters
sourceparamsource int parameter
targetparamtarget int parameter
setglobal SCIP settings of target SCIP
messagehdlrmessage handler of target SCIP

Definition at line 517 of file paramset.c.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPparamGetInt(), SCIPparamSetInt(), and TRUE.

Referenced by SCIPparamsetCopyParams().

static SCIP_RETCODE paramCopyLongint ( SCIP_PARAM sourceparam,
SCIP_PARAM targetparam,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr 
)
static

copies value of source longint parameter to target longint parameter

Parameters
sourceparamsource longint parameter
targetparamtarget longint parameter
setglobal SCIP settings of target SCIP
messagehdlrmessage handler of target SCIP

Definition at line 538 of file paramset.c.

References NULL, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIPparamGetLongint(), SCIPparamSetLongint(), and TRUE.

Referenced by SCIPparamsetCopyParams().

static SCIP_RETCODE paramCopyReal ( SCIP_PARAM sourceparam,
SCIP_PARAM targetparam,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr 
)
static

copies value of source real parameter to target real parameter

Parameters
sourceparamsource real parameter
targetparamtarget real parameter
setglobal SCIP settings of target SCIP
messagehdlrmessage handler of target SCIP

Definition at line 559 of file paramset.c.

References NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPparamGetReal(), SCIPparamSetReal(), and TRUE.

Referenced by SCIPparamsetCopyParams().

static SCIP_RETCODE paramCopyChar ( SCIP_PARAM sourceparam,
SCIP_PARAM targetparam,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr 
)
static

copies value of source char parameter to target char parameter

Parameters
sourceparamsource char parameter
targetparamtarget char parameter
setglobal SCIP settings of target SCIP
messagehdlrmessage handler of target SCIP

Definition at line 580 of file paramset.c.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPparamGetChar(), SCIPparamSetChar(), and TRUE.

Referenced by SCIPparamsetCopyParams().

static SCIP_RETCODE paramCopyString ( SCIP_PARAM sourceparam,
SCIP_PARAM targetparam,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr 
)
static

copies value of source string parameter to target string parameter

Parameters
sourceparamsource string parameter
targetparamtarget string parameter
setglobal SCIP settings of target SCIP
messagehdlrmessage handler of target SCIP

Definition at line 601 of file paramset.c.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPparamGetString(), SCIPparamSetString(), and TRUE.

Referenced by SCIPparamsetCopyParams().

const char* SCIPparamGetName ( SCIP_PARAM param)

returns name of parameter

Parameters
paramparameter

Definition at line 631 of file paramset.c.

References SCIP_Param::name, and NULL.

Referenced by checkParam(), SCIP_DECL_DIALOGEXEC(), SCIPincludeDialogDefaultFix(), SCIPincludeDialogDefaultSet(), and SCIPparamsetCopyParams().

const char* SCIPparamGetDesc ( SCIP_PARAM param)

returns description of parameter

Parameters
paramparameter

Definition at line 641 of file paramset.c.

References SCIP_Param::desc, and NULL.

Referenced by addFixParamDialog(), addSetParamDialog(), and SCIP_DECL_DIALOGDESC().

SCIP_PARAMDATA* SCIPparamGetData ( SCIP_PARAM param)

returns locally defined parameter specific data

Parameters
paramparameter

Definition at line 651 of file paramset.c.

References NULL, and SCIP_Param::paramdata.

Referenced by SCIP_DECL_PARAMCHGD().

SCIP_Bool SCIPparamIsAdvanced ( SCIP_PARAM param)

returns whether parameter is advanced

Parameters
paramparameter

Definition at line 661 of file paramset.c.

References SCIP_Param::isadvanced, and NULL.

Referenced by addFixParamDialog(), and addSetParamDialog().

SCIP_Bool SCIPparamIsFixed ( SCIP_PARAM param)
SCIP_Bool SCIPparamGetBool ( SCIP_PARAM param)
SCIP_Bool SCIPparamGetBoolDefault ( SCIP_PARAM param)

returns default value of SCIP_Bool parameter

Parameters
paramparameter

Definition at line 695 of file paramset.c.

References SCIP_Param::boolparam, SCIP_Param::data, SCIP_BoolParam::defaultvalue, NULL, SCIP_Param::paramtype, and SCIP_PARAMTYPE_BOOL.

Referenced by SCIPparamIsDefault(), and SCIPparamSetToDefault().

int SCIPparamGetIntMin ( SCIP_PARAM param)

returns minimal value of int parameter

Parameters
paramparameter

Definition at line 720 of file paramset.c.

References 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

Parameters
paramparameter

Definition at line 731 of file paramset.c.

References 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)
SCIP_Longint SCIPparamGetLongintMin ( SCIP_PARAM param)

returns minimal value of longint parameter

Parameters
paramparameter

Definition at line 767 of file paramset.c.

References SCIP_Param::data, SCIP_Param::longintparam, SCIP_LongintParam::minvalue, NULL, SCIP_Param::paramtype, and SCIP_PARAMTYPE_LONGINT.

Referenced by SCIP_DECL_DIALOGEXEC().

SCIP_Longint SCIPparamGetLongintMax ( SCIP_PARAM param)

returns maximal value of longint parameter

Parameters
paramparameter

Definition at line 778 of file paramset.c.

References SCIP_Param::data, SCIP_Param::longintparam, SCIP_LongintParam::maxvalue, NULL, SCIP_Param::paramtype, and SCIP_PARAMTYPE_LONGINT.

Referenced by SCIP_DECL_DIALOGEXEC().

SCIP_Longint SCIPparamGetLongintDefault ( SCIP_PARAM param)

returns default value of SCIP_Longint parameter

Parameters
paramparameter

Definition at line 789 of file paramset.c.

References SCIP_Param::data, SCIP_LongintParam::defaultvalue, SCIP_Param::longintparam, NULL, SCIP_Param::paramtype, and SCIP_PARAMTYPE_LONGINT.

Referenced by SCIPparamIsDefault(), and SCIPparamSetToDefault().

SCIP_Real SCIPparamGetRealMin ( SCIP_PARAM param)

returns minimal value of real parameter

Parameters
paramparameter

Definition at line 814 of file paramset.c.

References SCIP_Param::data, SCIP_RealParam::minvalue, NULL, SCIP_Param::paramtype, SCIP_Param::realparam, and SCIP_PARAMTYPE_REAL.

Referenced by SCIP_DECL_DIALOGEXEC().

SCIP_Real SCIPparamGetRealMax ( SCIP_PARAM param)

returns maximal value of real parameter

Parameters
paramparameter

Definition at line 825 of file paramset.c.

References SCIP_Param::data, SCIP_RealParam::maxvalue, NULL, SCIP_Param::paramtype, SCIP_Param::realparam, and SCIP_PARAMTYPE_REAL.

Referenced by SCIP_DECL_DIALOGEXEC().

SCIP_Real SCIPparamGetRealDefault ( SCIP_PARAM param)

returns default value of SCIP_Real parameter

Parameters
paramparameter

Definition at line 836 of file paramset.c.

References SCIP_Param::data, SCIP_RealParam::defaultvalue, NULL, SCIP_Param::paramtype, SCIP_Param::realparam, and SCIP_PARAMTYPE_REAL.

Referenced by paramsetSetHeuristicsAggressive(), SCIPparamIsDefault(), and SCIPparamSetToDefault().

char SCIPparamGetChar ( SCIP_PARAM param)
char* SCIPparamGetCharAllowedValues ( SCIP_PARAM param)

returns allowed values of char parameter, or NULL if everything is allowed

Parameters
paramparameter

Definition at line 861 of file paramset.c.

References SCIP_CharParam::allowedvalues, SCIP_Param::charparam, SCIP_Param::data, NULL, SCIP_Param::paramtype, and SCIP_PARAMTYPE_CHAR.

char SCIPparamGetCharDefault ( SCIP_PARAM param)

returns default value of char parameter

Parameters
paramparameter

Definition at line 872 of file paramset.c.

References 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)
char* SCIPparamGetStringDefault ( SCIP_PARAM param)

returns default value of String parameter

Parameters
paramparameter

Definition at line 897 of file paramset.c.

References SCIP_Param::data, SCIP_StringParam::defaultvalue, NULL, SCIP_Param::paramtype, SCIP_PARAMTYPE_STRING, and SCIP_Param::stringparam.

Referenced by SCIPparamIsDefault(), and SCIPparamSetToDefault().

static SCIP_RETCODE paramCreate ( SCIP_PARAM **  param,
BMS_BLKMEM blkmem,
const char *  name,
const char *  desc,
SCIP_DECL_PARAMCHGD((*paramchgd))  ,
SCIP_PARAMDATA paramdata,
SCIP_Bool  isadvanced 
)
static

creates a parameter with name and description, does not set the type specific parameter values themselves

Parameters
parampointer to the parameter
blkmemblock memory
namename of the parameter
descdescription of the parameter
paramdatalocally defined parameter specific data
isadvancedis the parameter advanced?

Definition at line 943 of file paramset.c.

References BMSallocBlockMemory, BMSduplicateMemoryArray, FALSE, NULL, SCIP_ALLOC, and SCIP_OKAY.

Referenced by paramCreateBool(), paramCreateChar(), paramCreateInt(), paramCreateLongint(), paramCreateReal(), and paramCreateString().

static SCIP_RETCODE paramCreateBool ( SCIP_PARAM **  param,
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 
)
static

creates a SCIP_Bool parameter, and sets its value to default

Parameters
parampointer to the parameter
messagehdlrmessage handler
blkmemblock memory
namename of the parameter
descdescription of the parameter
valueptrpointer to store the current parameter value, or NULL
isadvancedis this parameter an advanced parameter?
defaultvaluedefault value of the parameter
paramdatalocally defined parameter specific data

Definition at line 972 of file paramset.c.

References NULL, paramCreate(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_BOOL, SCIPparamSetBool(), and TRUE.

Referenced by SCIPparamsetAddBool().

static SCIP_RETCODE paramCreateInt ( SCIP_PARAM **  param,
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 
)
static

creates a int parameter, and sets its value to default

Parameters
parampointer to the parameter
messagehdlrmessage handler
blkmemblock memory
namename of the parameter
descdescription of the parameter
valueptrpointer to store the current parameter value, or NULL
isadvancedis this parameter an advanced parameter?
defaultvaluedefault value of the parameter
minvalueminimum value for parameter
maxvaluemaximum value for parameter
paramdatalocally defined parameter specific data

Definition at line 1001 of file paramset.c.

References NULL, paramCreate(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_INT, SCIPparamSetInt(), and TRUE.

Referenced by SCIPparamsetAddInt().

static SCIP_RETCODE paramCreateLongint ( SCIP_PARAM **  param,
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 
)
static

creates a SCIP_Longint parameter, and sets its value to default

Parameters
parampointer to the parameter
messagehdlrmessage handler
blkmemblock memory
namename of the parameter
descdescription of the parameter
valueptrpointer to store the current parameter value, or NULL
isadvancedis this parameter an advanced parameter?
defaultvaluedefault value of the parameter
minvalueminimum value for parameter
maxvaluemaximum value for parameter
paramdatalocally defined parameter specific data

Definition at line 1034 of file paramset.c.

References NULL, paramCreate(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_LONGINT, SCIPparamSetLongint(), and TRUE.

Referenced by SCIPparamsetAddLongint().

static SCIP_RETCODE paramCreateReal ( SCIP_PARAM **  param,
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 
)
static

creates a SCIP_Real parameter, and sets its value to default

Parameters
parampointer to the parameter
messagehdlrmessage handler
blkmemblock memory
namename of the parameter
descdescription of the parameter
valueptrpointer to store the current parameter value, or NULL
isadvancedis this parameter an advanced parameter?
defaultvaluedefault value of the parameter
minvalueminimum value for parameter
maxvaluemaximum value for parameter
paramdatalocally defined parameter specific data

Definition at line 1067 of file paramset.c.

References NULL, paramCreate(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_REAL, SCIPparamSetReal(), and TRUE.

Referenced by SCIPparamsetAddReal().

static SCIP_RETCODE paramCreateChar ( SCIP_PARAM **  param,
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 
)
static

creates a char parameter, and sets its value to default

Parameters
parampointer to the parameter
messagehdlrmessage handler
blkmemblock memory
namename of the parameter
descdescription of the parameter
valueptrpointer to store the current parameter value, or NULL
isadvancedis this parameter an advanced parameter?
defaultvaluedefault value of the parameter
allowedvaluesarray with possible parameter values, or NULL if not restricted
paramdatalocally defined parameter specific data

Definition at line 1100 of file paramset.c.

References BMSduplicateMemoryArray, NULL, paramCreate(), SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_CHAR, SCIPparamSetChar(), and TRUE.

Referenced by SCIPparamsetAddChar().

static SCIP_RETCODE paramCreateString ( SCIP_PARAM **  param,
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 
)
static

creates a string parameter, and sets its value to default

Parameters
parampointer to the parameter
messagehdlrmessage handler
blkmemblock memory
namename of the parameter
descdescription of the parameter
valueptrpointer to store the current parameter value, or NULL
isadvancedis this parameter an advanced parameter?
defaultvaluedefault value of the parameter
paramdatalocally defined parameter specific data

Definition at line 1136 of file paramset.c.

References BMSduplicateMemoryArray, NULL, paramCreate(), SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_STRING, SCIPparamSetString(), and TRUE.

Referenced by SCIPparamsetAddString().

static void paramFree ( SCIP_PARAM **  param,
BMS_BLKMEM blkmem 
)
static

frees a single parameter

Parameters
parampointer to the parameter
blkmemblock memory

Definition at line 1168 of file paramset.c.

References 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 SCIP_RETCODE paramParseBool ( SCIP_PARAM param,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
char *  valuestr 
)
static

sets SCIP_Bool parameter according to the value of the given string

Parameters
paramparameter
setglobal SCIP settings
messagehdlrmessage handler
valuestrvalue in string format (may be modified during parse)

Definition at line 1210 of file paramset.c.

References FALSE, SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_BOOL, SCIP_READERROR, SCIPerrorMessage, SCIPparamSetBool(), and TRUE.

Referenced by paramsetParse().

static SCIP_RETCODE paramParseInt ( SCIP_PARAM param,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
char *  valuestr 
)
static

sets int parameter according to the value of the given string

Parameters
paramparameter
setglobal SCIP settings
messagehdlrmessage handler
valuestrvalue in string format (may be modified during parse)

Definition at line 1241 of file paramset.c.

References SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_INT, SCIP_READERROR, SCIPerrorMessage, SCIPparamSetInt(), and TRUE.

Referenced by paramsetParse().

static SCIP_RETCODE paramParseLongint ( SCIP_PARAM param,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
char *  valuestr 
)
static

sets SCIP_Longint parameter according to the value of the given string

Parameters
paramparameter
setglobal SCIP settings
messagehdlrmessage handler
valuestrvalue in string format (may be modified during parse)

Definition at line 1270 of file paramset.c.

References SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIP_PARAMTYPE_LONGINT, SCIP_READERROR, SCIPerrorMessage, SCIPparamSetLongint(), and TRUE.

Referenced by paramsetParse().

static SCIP_RETCODE paramParseReal ( SCIP_PARAM param,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
char *  valuestr 
)
static

sets SCIP_Real parameter according to the value of the given string

Parameters
paramparameter
setglobal SCIP settings
messagehdlrmessage handler
valuestrvalue in string format (may be modified during parse)

Definition at line 1299 of file paramset.c.

References 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 paramsetParse().

static SCIP_RETCODE paramParseChar ( SCIP_PARAM param,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
char *  valuestr 
)
static

sets Char parameter according to the value of the given string

Parameters
paramparameter
setglobal SCIP settings
messagehdlrmessage handler
valuestrvalue in string format (may be modified during parse)

Definition at line 1328 of file paramset.c.

References SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_CHAR, SCIP_READERROR, SCIPerrorMessage, SCIPparamSetChar(), and TRUE.

Referenced by paramsetParse().

static SCIP_RETCODE paramParseString ( SCIP_PARAM param,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
char *  valuestr 
)
static

sets String parameter according to the value of the given string

Parameters
paramparameter
setglobal SCIP settings
messagehdlrmessage handler
valuestrvalue in string format (may be modified during parse)

Definition at line 1357 of file paramset.c.

References SCIP_Param::name, NULL, SCIP_Param::paramtype, SCIP_CALL, SCIP_OKAY, SCIP_PARAMTYPE_STRING, SCIP_READERROR, SCIPerrorMessage, SCIPparamSetString(), and TRUE.

Referenced by paramsetParse().

SCIP_RETCODE SCIPparamsetCreate ( SCIP_PARAMSET **  paramset,
BMS_BLKMEM blkmem 
)

creates parameter set

Parameters
paramsetpointer to store the parameter set
blkmemblock memory

Definition at line 1394 of file paramset.c.

References BMSallocMemory, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_HASHSIZE_PARAMS, SCIP_OKAY, and SCIPhashtableCreate().

Referenced by SCIPsetCopyPlugins().

void SCIPparamsetFree ( SCIP_PARAMSET **  paramset,
BMS_BLKMEM blkmem 
)

frees parameter set

Parameters
paramsetpointer to the parameter set
blkmemblock memory

Definition at line 1414 of file paramset.c.

References BMSfreeMemory, BMSfreeMemoryArrayNull, NULL, paramFree(), and SCIPhashtableFree().

static SCIP_RETCODE paramsetAdd ( SCIP_PARAMSET paramset,
SCIP_PARAM param 
)
static
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

Parameters
paramsetparameter set
messagehdlrmessage handler
blkmemblock memory
namename of the parameter
descdescription of the parameter
valueptrpointer to store the current parameter value, or NULL
isadvancedis this parameter an advanced parameter?
defaultvaluedefault value of the parameter
paramdatalocally defined parameter specific data

Definition at line 1467 of file paramset.c.

References NULL, paramCreateBool(), paramsetAdd(), SCIP_CALL, 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

Parameters
paramsetparameter set
messagehdlrmessage handler
blkmemblock memory
namename of the parameter
descdescription of the parameter
valueptrpointer to store the current parameter value, or NULL
isadvancedis this parameter an advanced parameter?
defaultvaluedefault value of the parameter
minvalueminimum value for parameter
maxvaluemaximum value for parameter
paramdatalocally defined parameter specific data

Definition at line 1494 of file paramset.c.

References NULL, paramCreateInt(), paramsetAdd(), SCIP_CALL, 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

Parameters
paramsetparameter set
messagehdlrmessage handler
blkmemblock memory
namename of the parameter
descdescription of the parameter
valueptrpointer to store the current parameter value, or NULL
isadvancedis this parameter an advanced parameter?
defaultvaluedefault value of the parameter
minvalueminimum value for parameter
maxvaluemaximum value for parameter
paramdatalocally defined parameter specific data

Definition at line 1524 of file paramset.c.

References NULL, paramCreateLongint(), paramsetAdd(), SCIP_CALL, and SCIP_OKAY.

Referenced by SCIPsetAddBoolParam().

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

Parameters
paramsetparameter set
messagehdlrmessage handler
blkmemblock memory
namename of the parameter
descdescription of the parameter
valueptrpointer to store the current parameter value, or NULL
isadvancedis this parameter an advanced parameter?
defaultvaluedefault value of the parameter
minvalueminimum value for parameter
maxvaluemaximum value for parameter
paramdatalocally defined parameter specific data

Definition at line 1554 of file paramset.c.

References NULL, paramCreateReal(), paramsetAdd(), SCIP_CALL, and SCIP_OKAY.

Referenced by SCIPsetAddIntParam().

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

Parameters
paramsetparameter set
messagehdlrmessage handler
blkmemblock memory
namename of the parameter
descdescription of the parameter
valueptrpointer to store the current parameter value, or NULL
isadvancedis this parameter an advanced parameter?
defaultvaluedefault value of the parameter
allowedvaluesarray with possible parameter values, or NULL if not restricted
paramdatalocally defined parameter specific data

Definition at line 1584 of file paramset.c.

References NULL, paramCreateChar(), paramsetAdd(), SCIP_CALL, and SCIP_OKAY.

Referenced by SCIPsetAddLongintParam().

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

Parameters
paramsetparameter set
messagehdlrmessage handler
blkmemblock memory
namename of the parameter
descdescription of the parameter
valueptrpointer to store the current parameter value, or NULL
isadvancedis this parameter an advanced parameter?
defaultvaluedefault value of the parameter
paramdatalocally defined parameter specific data

Definition at line 1613 of file paramset.c.

References NULL, paramCreateString(), paramsetAdd(), SCIP_CALL, and SCIP_OKAY.

Referenced by SCIPsetAddRealParam().

SCIP_Bool SCIPparamsetIsFixed ( SCIP_PARAMSET paramset,
const char *  name 
)

returns whether an existing parameter is fixed

Parameters
paramsetparameter set
namename of the parameter

Definition at line 1658 of file paramset.c.

References FALSE, SCIP_ParamSet::hashtable, NULL, SCIPABORT, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamIsFixed().

Referenced by SCIPparamsetSetToSubscipsOff(), and SCIPsetAddRealParam().

SCIP_PARAM* SCIPparamsetGetParam ( SCIP_PARAMSET paramset,
const char *  name 
)

returns the pointer to an existing SCIP parameter

Parameters
paramsetparameter set
namename of the parameter

Definition at line 1680 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, and SCIPhashtableRetrieve().

Referenced by SCIPsetAddCharParam().

SCIP_RETCODE SCIPparamsetGetBool ( SCIP_PARAMSET paramset,
const char *  name,
SCIP_Bool value 
)

gets the value of an existing SCIP_Bool parameter

Parameters
paramsetparameter set
namename of the parameter
valuepointer to store the parameter

Definition at line 1692 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_BOOL, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetBool().

Referenced by SCIPsetAddCharParam().

SCIP_RETCODE SCIPparamsetGetInt ( SCIP_PARAMSET paramset,
const char *  name,
int *  value 
)

gets the value of an existing int parameter

Parameters
paramsetparameter set
namename of the parameter
valuepointer to store the parameter

Definition at line 1724 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_INT, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetInt().

Referenced by SCIPparamsetSetToSubscipsOff(), and SCIPsetAddStringParam().

SCIP_RETCODE SCIPparamsetGetLongint ( SCIP_PARAMSET paramset,
const char *  name,
SCIP_Longint value 
)

gets the value of an existing SCIP_Longint parameter

Parameters
paramsetparameter set
namename of the parameter
valuepointer to store the parameter

Definition at line 1756 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_LONGINT, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetLongint().

Referenced by SCIPsetIsParamFixed().

SCIP_RETCODE SCIPparamsetGetReal ( SCIP_PARAMSET paramset,
const char *  name,
SCIP_Real value 
)

gets the value of an existing SCIP_Real parameter

Parameters
paramsetparameter set
namename of the parameter
valuepointer to store the parameter

Definition at line 1788 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_REAL, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetReal().

Referenced by SCIPsetGetParam().

SCIP_RETCODE SCIPparamsetGetChar ( SCIP_PARAMSET paramset,
const char *  name,
char *  value 
)

gets the value of an existing char parameter

Parameters
paramsetparameter set
namename of the parameter
valuepointer to store the parameter

Definition at line 1820 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_CHAR, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetChar().

Referenced by SCIPsetGetBoolParam().

SCIP_RETCODE SCIPparamsetGetString ( SCIP_PARAMSET paramset,
const char *  name,
char **  value 
)

gets the value of an existing string parameter

Parameters
paramsetparameter set
namename of the parameter
valuepointer to store the parameter

Definition at line 1852 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_STRING, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamGetString().

Referenced by SCIPsetGetIntParam().

SCIP_RETCODE SCIPparamsetFix ( SCIP_PARAMSET paramset,
const char *  name,
SCIP_Bool  fixed 
)

changes the fixing status of an existing parameter

Parameters
paramsetparameter set
namename of the parameter
fixednew fixing status of the parameter

Definition at line 1884 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamSetFixed().

Referenced by SCIPparamsetSetToSubscipsOff(), and SCIPsetGetLongintParam().

SCIP_RETCODE SCIPparamsetSet ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
const char *  name,
void *  value 
)

changes the value of an existing parameter

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
namename of the parameter
valuenew value of the parameter

Definition at line 1908 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, SCIP_Bool, SCIP_CALL, SCIP_INVALIDDATA, SCIP_Longint, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMTYPE_BOOL, SCIP_PARAMTYPE_CHAR, SCIP_PARAMTYPE_INT, SCIP_PARAMTYPE_LONGINT, SCIP_PARAMTYPE_REAL, SCIP_PARAMTYPE_STRING, SCIP_Real, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetBool(), SCIPparamSetChar(), SCIPparamSetInt(), SCIPparamSetLongint(), SCIPparamSetReal(), SCIPparamSetString(), and TRUE.

Referenced by SCIPsetGetRealParam().

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

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
namename of the parameter
valuenew value of the parameter

Definition at line 1970 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_BOOL, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetBool(), and TRUE.

Referenced by SCIPparamsetCopyParams(), and SCIPsetChgParamFixed().

SCIP_RETCODE SCIPparamsetSetDefaultBool ( SCIP_PARAMSET paramset,
const char *  name,
SCIP_Bool  defaultvalue 
)

changes the default value of an existing SCIP_Bool parameter

Parameters
paramsetparameter set
namename of the parameter
defaultvaluenew default value of the parameter

Definition at line 2004 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_BOOL, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamSetDefaultBool().

Referenced by SCIPsetSetParam().

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

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
namename of the parameter
valuenew value of the parameter

Definition at line 2035 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_INT, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetInt(), and TRUE.

Referenced by SCIPsetSetBoolParam().

SCIP_RETCODE SCIPparamsetSetDefaultInt ( SCIP_PARAMSET paramset,
const char *  name,
int  defaultvalue 
)

changes the default value of an existing int parameter

Parameters
paramsetparameter set
namename of the parameter
defaultvaluenew default value of the parameter

Definition at line 2069 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_INT, SCIPerrorMessage, SCIPhashtableRetrieve(), and SCIPparamSetDefaultInt().

Referenced by SCIPsetSetDefaultBoolParam().

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

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
namename of the parameter
valuenew value of the parameter

Definition at line 2100 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_LONGINT, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetLongint(), and TRUE.

Referenced by SCIPsetSetIntParam().

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

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
namename of the parameter
valuenew value of the parameter

Definition at line 2134 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_REAL, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetReal(), and TRUE.

Referenced by SCIPsetChgLongintParam().

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

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
namename of the parameter
valuenew value of the parameter

Definition at line 2168 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_CHAR, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetChar(), and TRUE.

Referenced by SCIPsetChgRealParam().

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

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
namename of the parameter
valuenew value of the parameter

Definition at line 2202 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, SCIP_Param::paramtype, paramtypeGetName(), SCIP_CALL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMTYPE_STRING, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamSetString(), and TRUE.

Referenced by SCIPsetChgCharParam().

static SCIP_RETCODE emphasisParse ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
char *  line 
)
static
static SCIP_RETCODE paramsetParse ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
char *  line,
SCIP_Bool foundnormalparam 
)
static

parses a parameter file line "paramname = paramvalue" and sets parameter accordingly

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
lineline to parse (is modified during parse, but not freed)
foundnormalparampointer to store whether a normal parameter (not emphasis setting) has been found

Definition at line 2380 of file paramset.c.

References emphasisParse(), FALSE, SCIP_ParamSet::hashtable, NULL, paramname, 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, SCIP_READERROR, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPmessagePrintWarning(), SCIPparamSetFixed(), 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

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
filenamefile name

Definition at line 2535 of file paramset.c.

References FALSE, NULL, paramsetParse(), SCIP_Bool, SCIP_CALL, SCIP_NOFILE, SCIP_OKAY, SCIP_READERROR, SCIPerrorMessage, and SCIPprintSysError().

Referenced by SCIPsetSetCharParam().

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

Parameters
paramsetparameter set
messagehdlrmessage handler
filenamefile name, or NULL for stdout
commentsshould parameter descriptions be written as comments?
onlychangedshould only the parameters been written, that are changed from default?

Definition at line 2585 of file paramset.c.

References SCIP_ParamSet::nparams, NULL, SCIP_ParamSet::params, paramWrite(), SCIP_CALL, SCIP_FILECREATEERROR, SCIP_OKAY, SCIP_SUBVERSION, SCIP_VERSION, SCIPerrorMessage, SCIPmessageFPrintInfo(), and SCIPprintSysError().

Referenced by SCIPsetChgStringParam().

SCIP_RETCODE SCIPparamsetSetToDefaults ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr 
)

installs default values for all parameters

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler

Definition at line 2653 of file paramset.c.

References SCIP_ParamSet::nparams, SCIP_ParamSet::params, SCIP_CALL, SCIP_OKAY, and SCIPparamSetToDefault().

Referenced by SCIPparamsetSetEmphasis(), and SCIPsetSetStringParam().

SCIP_RETCODE SCIPparamsetSetToDefault ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
const char *  paramname 
)

installs default value for a single parameter

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
paramnamename of the parameter

Definition at line 2671 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, paramname, SCIP_CALL, SCIP_OKAY, SCIPhashtableRetrieve(), and SCIPparamSetToDefault().

Referenced by paramsetSetHeuristicsDefault(), paramsetSetPresolvingDefault(), paramsetSetSeparatingDefault(), and SCIPsetChgStringParam().

static SCIP_RETCODE paramsetSetHeuristicsDefault ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Bool  quiet 
)
static

resets parameters changed by SCIPparamsetSetHeuristicsXyz functions to their default values

Note
fixed parameters stay as they are; you need to unfix them first if they should be changed, too
Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
quietshould the parameter be set quiet (no output)

Definition at line 2695 of file paramset.c.

References paramname, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPheurGetName(), SCIPparamsetSetToDefault(), and SCIPsnprintf().

Referenced by paramsetSetHeuristicsAggressive(), paramsetSetHeuristicsFast(), paramsetSetHeuristicsOff(), and SCIPparamsetSetHeuristics().

static SCIP_RETCODE paramsetSetHeuristicsAggressive ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Bool  quiet 
)
static
static SCIP_RETCODE paramsetSetHeuristicsFast ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Bool  quiet 
)
static

sets heuristics to fast

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
quietshould the parameter be set quiet (no output)

Definition at line 2846 of file paramset.c.

References SCIP_ParamSet::hashtable, NEXPENSIVEHEURFREQS, NULL, paramSetInt(), paramsetSetHeuristicsDefault(), SCIP_CALL, SCIP_OKAY, and SCIPhashtableRetrieve().

Referenced by SCIPparamsetSetEmphasis(), and SCIPparamsetSetHeuristics().

static SCIP_RETCODE paramsetSetHeuristicsOff ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Bool  quiet 
)
static

turns all heuristics off

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
quietshould the parameter be set quiet (no output)

Definition at line 2888 of file paramset.c.

References paramname, paramSetInt(), paramsetSetHeuristicsDefault(), SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPheurGetName(), and SCIPsnprintf().

Referenced by SCIPparamsetSetEmphasis(), and SCIPparamsetSetHeuristics().

static SCIP_RETCODE paramsetSetPresolvingDefault ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Bool  quiet 
)
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

Note
fixed parameters stay as they are; you need to unfix them first if they should be changed, too
Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
quietshould the parameter be set quiet (no output)

Definition at line 2926 of file paramset.c.

References paramname, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPconshdlrGetName(), SCIPparamsetSetToDefault(), SCIPpresolGetName(), SCIPpropGetName(), and SCIPsnprintf().

Referenced by paramsetSetPresolvingAggressive(), paramsetSetPresolvingFast(), paramsetSetPresolvingOff(), and SCIPparamsetSetPresolving().

static SCIP_RETCODE paramsetSetPresolvingAggressive ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Bool  quiet 
)
static

sets presolving to aggressive

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
quietshould the parameter be set quiet (no output)

Definition at line 3011 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, paramname, paramSetBool(), paramSetInt(), paramSetReal(), paramsetSetPresolvingDefault(), SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_PARAMTYPE_INT, SCIPhashtableRetrieve(), SCIPparamGetIntDefault(), SCIPparamGetType(), SCIPsetFindConshdlr(), SCIPsetFindPresol(), SCIPsnprintf(), and TRUE.

Referenced by SCIPparamsetSetPresolving().

static SCIP_RETCODE paramsetSetPresolvingFast ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Bool  quiet 
)
static

sets presolving to fast

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
quietshould the parameter be set quiet (no output)

Definition at line 3113 of file paramset.c.

References FALSE, SCIP_ParamSet::hashtable, NULL, paramname, paramSetBool(), paramSetInt(), paramsetSetPresolvingDefault(), SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_PARAMTYPE_BOOL, SCIPconshdlrGetName(), SCIPhashtableRetrieve(), SCIPparamGetType(), SCIPsetFindPresol(), SCIPsetFindProp(), and SCIPsnprintf().

Referenced by SCIPparamsetSetEmphasis(), and SCIPparamsetSetPresolving().

static SCIP_RETCODE paramsetSetPresolvingOff ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Bool  quiet 
)
static

turns all presolving off

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
quietshould the parameter be set quiet (no output)

Definition at line 3196 of file paramset.c.

References paramname, paramSetInt(), paramsetSetPresolvingDefault(), SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPconshdlrGetName(), SCIPpresolGetName(), SCIPpropGetName(), and SCIPsnprintf().

Referenced by SCIPparamsetSetPresolving().

static SCIP_RETCODE paramsetSetSeparatingDefault ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Bool  quiet 
)
static

reset parameters that may have been changed by other SCIPparamsetSetSeparatingXyz to their default values

Note
fixed parameters stay as they are; you need to unfix them first if they should be changed, too
Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
quietshould the parameter be set quiet (no output)

Definition at line 3274 of file paramset.c.

References SCIP_ParamSet::hashtable, NULL, paramname, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPconshdlrGetName(), SCIPhashtableRetrieve(), SCIPparamsetSetToDefault(), SCIPsepaGetName(), and SCIPsnprintf().

Referenced by paramsetSetSeparatingAggressive(), paramsetSetSeparatingFast(), paramsetSetSeparatingOff(), and SCIPparamsetSetSeparating().

static SCIP_RETCODE paramsetSetSeparatingAggressive ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Bool  quiet 
)
static

sets separating to aggressive

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
quietshould the parameter be set quiet (no output)

Definition at line 3350 of file paramset.c.

References SCIP_ParamSet::hashtable, MAX, MIN, NULL, paramname, paramSetBool(), paramSetInt(), paramSetReal(), paramsetSetSeparatingDefault(), 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 SCIP_RETCODE paramsetSetSeparatingFast ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Bool  quiet 
)
static

sets separating to fast

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
quietshould the parameter be set quiet (no output)

Definition at line 3524 of file paramset.c.

References NULL, paramSetInt(), paramSetReal(), paramsetSetSeparatingDefault(), SCIP_CALL, SCIP_OKAY, SCIPsetFindConshdlr(), and SCIPsetFindSepa().

Referenced by SCIPparamsetSetEmphasis(), and SCIPparamsetSetSeparating().

static SCIP_RETCODE paramsetSetSeparatingOff ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Bool  quiet 
)
static

turns all cuts off

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
quietshould the parameter be set quiet (no output)

Definition at line 3585 of file paramset.c.

References paramname, paramSetInt(), paramsetSetSeparatingDefault(), 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

  • SCIP_PARAMSETTING_DEFAULT to use default values (see also SCIPparamsetSetToDefault())
  • SCIP_PARAMSETTING_COUNTER to get feasible and "fast" counting process
  • SCIP_PARAMSETTING_CPSOLVER to get CP like search (e.g. no LP relaxation)
  • SCIP_PARAMSETTING_EASYCIP to solve easy problems fast
  • SCIP_PARAMSETTING_FEASIBILITY to detect feasibility fast
  • SCIP_PARAMSETTING_HARDLP to be capable to handle hard LPs
  • SCIP_PARAMSETTING_OPTIMALITY to prove optimality fast
Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
paramemphasisparameter emphasis
quietshould the parameter be set quiet (no output)

Definition at line 3642 of file paramset.c.

References FALSE, paramSetBool(), paramSetChar(), paramSetInt(), paramSetReal(), paramsetSetHeuristicsAggressive(), paramsetSetHeuristicsFast(), paramsetSetHeuristicsOff(), paramsetSetPresolvingFast(), paramsetSetSeparatingAggressive(), paramsetSetSeparatingFast(), paramsetSetSeparatingOff(), SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_PARAMEMPHASIS_COUNTER, SCIP_PARAMEMPHASIS_CPSOLVER, SCIP_PARAMEMPHASIS_DEFAULT, SCIP_PARAMEMPHASIS_EASYCIP, SCIP_PARAMEMPHASIS_FEASIBILITY, SCIP_PARAMEMPHASIS_HARDLP, SCIP_PARAMEMPHASIS_OPTIMALITY, SCIPerrorMessage, SCIPparamsetSetToDefaults(), and TRUE.

Referenced by emphasisParse(), and SCIPsetWriteParams().

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

Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
quietshould the parameter be set quiet (no output)

Definition at line 3809 of file paramset.c.

References FALSE, NULL, paramname, paramSetInt(), SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPheurGetName(), SCIPheurUsesSubscip(), SCIPmessageFPrintInfo(), SCIPparamsetFix(), SCIPparamsetGetInt(), SCIPparamsetIsFixed(), SCIPsepaGetName(), SCIPsepaUsesSubscip(), and SCIPsnprintf().

Referenced by SCIPsetWriteParams().

SCIP_RETCODE SCIPparamsetSetHeuristics ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_PARAMSETTING  paramsetting,
SCIP_Bool  quiet 
)

sets heuristic parameters values to

  • SCIP_PARAMSETTING_DEFAULT which are the default values of all heuristic parameters
  • SCIP_PARAMSETTING_FAST such that the time spend for heuristic is decreased
  • SCIP_PARAMSETTING_AGGRESSIVE such that the heuristic are called more aggregative
  • SCIP_PARAMSETTING_OFF which turn off all heuristics
Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
paramsettingparameter settings
quietshould the parameter be set quiet (no output)

Definition at line 3902 of file paramset.c.

References paramsetSetHeuristicsAggressive(), paramsetSetHeuristicsDefault(), paramsetSetHeuristicsFast(), paramsetSetHeuristicsOff(), SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_PARAMSETTING_AGGRESSIVE, SCIP_PARAMSETTING_DEFAULT, SCIP_PARAMSETTING_FAST, SCIP_PARAMSETTING_OFF, and SCIPerrorMessage.

Referenced by SCIPsetResetParams().

SCIP_RETCODE SCIPparamsetSetPresolving ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_PARAMSETTING  paramsetting,
SCIP_Bool  quiet 
)

sets presolving parameters to

  • SCIP_PARAMSETTING_DEFAULT which are the default values of all presolving parameters
  • SCIP_PARAMSETTING_FAST such that the time spend for presolving is decreased
  • SCIP_PARAMSETTING_AGGRESSIVE such that the presolving is more aggregative
  • SCIP_PARAMSETTING_OFF which turn off all presolving
Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
paramsettingparameter settings
quietshould the parameter be set quiet (no output)

Definition at line 3938 of file paramset.c.

References paramsetSetPresolvingAggressive(), paramsetSetPresolvingDefault(), paramsetSetPresolvingFast(), paramsetSetPresolvingOff(), SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_PARAMSETTING_AGGRESSIVE, SCIP_PARAMSETTING_DEFAULT, SCIP_PARAMSETTING_FAST, SCIP_PARAMSETTING_OFF, and SCIPerrorMessage.

Referenced by SCIPsetSetEmphasis().

SCIP_RETCODE SCIPparamsetSetSeparating ( SCIP_PARAMSET paramset,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_PARAMSETTING  paramsetting,
SCIP_Bool  quiet 
)

sets separating parameters to

  • SCIP_PARAMSETTING_DEFAULT which are the default values of all separating parameters
  • SCIP_PARAMSETTING_FAST such that the time spend for separating is decreased
  • SCIP_PARAMSETTING_AGGRESSIVE such that the separating is done more aggregative
  • SCIP_PARAMSETTING_OFF which turn off all separating
Parameters
paramsetparameter set
setglobal SCIP settings
messagehdlrmessage handler
paramsettingparameter settings
quietshould the parameter be set quiet (no output)

Definition at line 3974 of file paramset.c.

References paramsetSetSeparatingAggressive(), paramsetSetSeparatingDefault(), paramsetSetSeparatingFast(), paramsetSetSeparatingOff(), SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_PARAMSETTING_AGGRESSIVE, SCIP_PARAMSETTING_DEFAULT, SCIP_PARAMSETTING_FAST, SCIP_PARAMSETTING_OFF, and SCIPerrorMessage.

Referenced by SCIPsetSetSubscipsOff().

SCIP_PARAM** SCIPparamsetGetParams ( SCIP_PARAMSET paramset)

returns the array of parameters

Parameters
paramsetparameter set

Definition at line 4005 of file paramset.c.

References NULL, and SCIP_ParamSet::params.

int SCIPparamsetGetNParams ( SCIP_PARAMSET paramset)

returns the number of parameters in the parameter set

Parameters
paramsetparameter set

Definition at line 4015 of file paramset.c.

References 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.

Parameters
sourceparamsetsource parameter set
targetparamsettarget parameter set
setglobal SCIP settings of target SCIP
messagehdlrmessage handler of target SCIP

Definition at line 4029 of file paramset.c.

References FALSE, SCIP_ParamSet::hashtable, SCIP_Param::name, SCIP_ParamSet::nparams, NULL, paramCopyBool(), paramCopyChar(), paramCopyInt(), paramCopyLongint(), paramCopyReal(), paramCopyString(), paramname, SCIP_ParamSet::params, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_PARAMTYPE_BOOL, SCIP_PARAMTYPE_CHAR, SCIP_PARAMTYPE_INT, SCIP_PARAMTYPE_LONGINT, SCIP_PARAMTYPE_REAL, SCIP_PARAMTYPE_STRING, SCIPerrorMessage, SCIPhashtableRetrieve(), SCIPparamGetName(), SCIPparamGetType(), SCIPparamIsFixed(), SCIPparamSetFixed(), SCIPparamsetSetBool(), SCIPsetChgParamFixed(), SCIPsetIsParamFixed(), and SCIPsetSetReoptimizationParams().

Referenced by SCIPsetCopyPlugins().

void SCIPparamSetFixed ( SCIP_PARAM param,
SCIP_Bool  fixed 
)

sets fixing status of given parameter

Parameters
paramparameter
fixednew fixing status of the parameter

Definition at line 4123 of file paramset.c.

References SCIP_Param::isfixed, and NULL.

Referenced by paramsetParse(), SCIP_DECL_DIALOGEXEC(), SCIPparamsetCopyParams(), and SCIPparamsetFix().

SCIP_RETCODE SCIPparamCheckBool ( SCIP_PARAM param,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Bool  value 
)

checks value of SCIP_Bool parameter; issues a warning message if value is invalid

Parameters
paramparameter
messagehdlrmessage handler
valuevalue to check

Definition at line 4134 of file paramset.c.

References NULL, paramCheckBool(), SCIP_CALL_QUIET, and SCIP_OKAY.

Referenced by SCIPcheckBoolParam().

SCIP_RETCODE SCIPparamCheckString ( SCIP_PARAM param,
SCIP_MESSAGEHDLR messagehdlr,
const char *  value 
)

checks value of string parameter; issues a warning message if value is invalid

Parameters
paramparameter
messagehdlrmessage handler
valuevalue to check

Definition at line 4148 of file paramset.c.

References paramCheckString().

Referenced by SCIPcheckStringParam().

SCIP_RETCODE SCIPparamCheckChar ( SCIP_PARAM param,
SCIP_MESSAGEHDLR messagehdlr,
const char  value 
)

checks value of character parameter; issues a warning message if value is invalid

Parameters
paramparameter
messagehdlrmessage handler
valuevalue to check

Definition at line 4158 of file paramset.c.

References paramCheckChar().

Referenced by SCIPcheckCharParam().

SCIP_RETCODE SCIPparamCheckLongint ( SCIP_PARAM param,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Longint  value 
)

checks value of SCIP_Longint parameter; issues a warning message if value is invalid

Parameters
paramparameter
messagehdlrmessage handler
valuevalue to check

Definition at line 4168 of file paramset.c.

References paramCheckLongint().

Referenced by SCIPcheckLongintParam().

SCIP_RETCODE SCIPparamSetBool ( SCIP_PARAM param,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Bool  value,
SCIP_Bool  quiet 
)

sets value of SCIP_Bool parameter

Parameters
paramparameter
setglobal SCIP settings, or NULL if param change method should not be called
messagehdlrmessage handler
valuenew value of the parameter
quietshould the parameter be set quiet (no output)

Definition at line 4178 of file paramset.c.

References SCIP_Param::boolparam, SCIP_BoolParam::curvalue, SCIP_Param::data, FALSE, NULL, paramCheckBool(), paramCheckFixed(), paramWrite(), SCIP_CALL, SCIP_CALL_QUIET, SCIP_OKAY, TRUE, and SCIP_BoolParam::valueptr.

Referenced by paramCopyBool(), paramCreateBool(), paramParseBool(), paramSetBool(), SCIPparamsetSet(), SCIPparamsetSetBool(), and SCIPparamSetToDefault().

SCIP_RETCODE SCIPparamSetInt ( SCIP_PARAM param,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
int  value,
SCIP_Bool  quiet 
)

sets value of int parameter

Parameters
paramparameter
setglobal SCIP settings, or NULL if param change method should not be called
messagehdlrmessage handler
valuenew value of the parameter
quietshould the parameter be set quiet (no output)

Definition at line 4213 of file paramset.c.

References SCIP_IntParam::curvalue, SCIP_Param::data, FALSE, SCIP_Param::intparam, NULL, paramCheckFixed(), paramCheckInt(), paramWrite(), SCIP_CALL, SCIP_CALL_QUIET, SCIP_OKAY, TRUE, and SCIP_IntParam::valueptr.

Referenced by paramCopyInt(), paramCreateInt(), paramParseInt(), paramSetInt(), SCIPparamsetSet(), SCIPparamsetSetInt(), SCIPparamSetToDefault(), and SCIPsetChgBoolParam().

SCIP_RETCODE SCIPparamSetLongint ( SCIP_PARAM param,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Longint  value,
SCIP_Bool  quiet 
)

sets value of SCIP_Longint parameter

Parameters
paramparameter
setglobal SCIP settings, or NULL if param change method should not be called
messagehdlrmessage handler
valuenew value of the parameter
quietshould the parameter be set quiet (no output)

Definition at line 4248 of file paramset.c.

References SCIP_LongintParam::curvalue, SCIP_Param::data, FALSE, SCIP_Param::longintparam, NULL, paramCheckFixed(), paramCheckLongint(), paramWrite(), SCIP_CALL, SCIP_CALL_QUIET, SCIP_OKAY, TRUE, and SCIP_LongintParam::valueptr.

Referenced by paramCopyLongint(), paramCreateLongint(), paramParseLongint(), paramSetLongint(), SCIPparamsetSet(), SCIPparamsetSetLongint(), SCIPparamSetToDefault(), and SCIPsetChgIntParam().

SCIP_RETCODE SCIPparamSetReal ( SCIP_PARAM param,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
SCIP_Real  value,
SCIP_Bool  quiet 
)

sets value of SCIP_Real parameter

Parameters
paramparameter
setglobal SCIP settings, or NULL if param change method should not be called
messagehdlrmessage handler
valuenew value of the parameter
quietshould the parameter be set quiet (no output)

Definition at line 4283 of file paramset.c.

References SCIP_RealParam::curvalue, SCIP_Param::data, FALSE, MAX, MIN, NULL, paramCheckFixed(), paramCheckReal(), paramWrite(), SCIP_Param::realparam, SCIP_CALL, SCIP_CALL_QUIET, SCIP_OKAY, SCIP_REAL_MAX, SCIP_REAL_MIN, TRUE, and SCIP_RealParam::valueptr.

Referenced by paramCopyReal(), paramCreateReal(), paramParseReal(), paramSetReal(), SCIPparamsetSet(), SCIPparamsetSetReal(), SCIPparamSetToDefault(), and SCIPsetSetDefaultIntParam().

SCIP_RETCODE SCIPparamSetChar ( SCIP_PARAM param,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
char  value,
SCIP_Bool  quiet 
)

sets value of char parameter

Parameters
paramparameter
setglobal SCIP settings, or NULL if param change method should not be called
messagehdlrmessage handler
valuenew value of the parameter
quietshould the parameter be set quiet (no output)

Definition at line 4320 of file paramset.c.

References SCIP_Param::charparam, SCIP_CharParam::curvalue, SCIP_Param::data, FALSE, NULL, paramCheckChar(), paramCheckFixed(), paramWrite(), SCIP_CALL, SCIP_CALL_QUIET, SCIP_OKAY, TRUE, and SCIP_CharParam::valueptr.

Referenced by paramCopyChar(), paramCreateChar(), paramParseChar(), paramSetChar(), SCIPparamsetSet(), SCIPparamsetSetChar(), SCIPparamSetToDefault(), and SCIPsetSetLongintParam().

SCIP_RETCODE SCIPparamSetString ( SCIP_PARAM param,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr,
const char *  value,
SCIP_Bool  quiet 
)

sets value of string parameter

Parameters
paramparameter
setglobal SCIP settings, or NULL if param change method should not be called
messagehdlrmessage handler
valuenew value of the parameter
quietshould the parameter be set quiet (no output)

Definition at line 4355 of file paramset.c.

References BMSduplicateMemoryArray, BMSfreeMemoryArrayNull, SCIP_StringParam::curvalue, SCIP_Param::data, FALSE, NULL, paramCheckFixed(), paramCheckString(), paramWrite(), SCIP_ALLOC, SCIP_CALL, SCIP_CALL_QUIET, SCIP_OKAY, SCIP_Param::stringparam, TRUE, and SCIP_StringParam::valueptr.

Referenced by paramCopyString(), paramCreateString(), paramParseString(), SCIPparamsetSet(), SCIPparamsetSetString(), SCIPparamSetToDefault(), and SCIPsetSetRealParam().

void SCIPparamSetDefaultBool ( SCIP_PARAM param,
SCIP_Bool  defaultvalue 
)

changes default value of SCIP_Bool parameter

Parameters
paramparameter
defaultvaluenew default value

Definition at line 4397 of file paramset.c.

References SCIP_Param::boolparam, SCIP_Param::data, SCIP_BoolParam::defaultvalue, NULL, SCIP_Param::paramtype, and SCIP_PARAMTYPE_BOOL.

Referenced by SCIPparamsetSetDefaultBool().

void SCIPparamSetDefaultInt ( SCIP_PARAM param,
int  defaultvalue 
)

changes default value of int parameter

Parameters
paramparameter
defaultvaluenew default value

Definition at line 4409 of file paramset.c.

References SCIP_Param::data, SCIP_IntParam::defaultvalue, SCIP_Param::intparam, SCIP_IntParam::maxvalue, SCIP_IntParam::minvalue, NULL, SCIP_Param::paramtype, and SCIP_PARAMTYPE_INT.

Referenced by SCIPparamsetSetDefaultInt().

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

Parameters
paramparameter
messagehdlrmessage handler
filenamefile name, or NULL for stdout
commentsshould parameter descriptions be written as comments?
onlychangedshould only the parameters been written, that are changed from default?

Definition at line 4474 of file paramset.c.

References NULL, paramWrite(), SCIP_CALL, SCIP_FILECREATEERROR, SCIP_OKAY, SCIPerrorMessage, and SCIPprintSysError().

Referenced by SCIPwriteParam().