Detailed Description
internal methods for cut selectors
Definition in file cutsel.h.
#include "scip/def.h"
#include "blockmemshell/memory.h"
#include "scip/type_retcode.h"
#include "scip/type_set.h"
#include "scip/pub_cutsel.h"
#include "scip/lp.h"
Go to the source code of this file.
Function Documentation
◆ SCIPcutselCreate()
SCIP_RETCODE SCIPcutselCreate | ( | SCIP_CUTSEL ** | cutsel, |
SCIP_SET * | set, | ||
SCIP_MESSAGEHDLR * | messagehdlr, | ||
BMS_BLKMEM * | blkmem, | ||
const char * | name, | ||
const char * | desc, | ||
int | priority, | ||
SCIP_DECL_CUTSELCOPY((*cutselcopy)) | , | ||
SCIP_DECL_CUTSELFREE((*cutselfree)) | , | ||
SCIP_DECL_CUTSELINIT((*cutselinit)) | , | ||
SCIP_DECL_CUTSELEXIT((*cutselexit)) | , | ||
SCIP_DECL_CUTSELINITSOL((*cutselinitsol)) | , | ||
SCIP_DECL_CUTSELEXITSOL((*cutselexitsol)) | , | ||
SCIP_DECL_CUTSELSELECT((*cutselselect)) | , | ||
SCIP_CUTSELDATA * | cutseldata | ||
) |
creates a cut selector
- Parameters
-
cutsel pointer to store cut selector set global SCIP settings messagehdlr message handler blkmem block memory for parameter settings name name of cut selector desc description of cut selector priority priority of the cut selector in standard mode cutseldata cut selector data
Definition at line 111 of file cutsel.c.
References doCutselCreate(), NULL, SCIP_CALL_FINALLY, SCIP_OKAY, and SCIPcutselFree().
Referenced by SCIPincludeCutsel(), and SCIPincludeCutselBasic().
◆ SCIPcutselEnableOrDisableClocks()
void SCIPcutselEnableOrDisableClocks | ( | SCIP_CUTSEL * | cutsel, |
SCIP_Bool | enable | ||
) |
enables or disables all clocks of cutsel
, depending on the value of the flag
- Parameters
-
cutsel the cut selector for which all clocks should be enabled or disabled enable should the clocks of the cut selector be enabled?
Definition at line 402 of file cutsel.c.
References SCIP_Cutsel::cutseltime, NULL, SCIPclockEnableOrDisable(), and SCIP_Cutsel::setuptime.
◆ SCIPcutselsSelect()
SCIP_RETCODE SCIPcutselsSelect | ( | SCIP_SET * | set, |
SCIP_ROW ** | cuts, | ||
int | ncuts, | ||
int | nforcedcuts, | ||
SCIP_Bool | root, | ||
int | maxnselectedcuts, | ||
int * | nselectedcuts | ||
) |
calls cut selectors to select cuts
- Parameters
-
set global SCIP settings cuts array with cuts to select from ncuts length of cuts nforcedcuts number of forced cuts at start of given array root are we at the root node? maxnselectedcuts maximum number of cuts to be selected nselectedcuts pointer to return number of selected cuts
Definition at line 152 of file cutsel.c.
References NULL, SCIP_CALL, SCIP_DIDNOTFIND, SCIP_OKAY, SCIP_SUCCESS, and SCIPsetSortCutsels().
Referenced by SCIPsepastoreApplyCuts().
◆ SCIPcutselCopyInclude()
SCIP_RETCODE SCIPcutselCopyInclude | ( | SCIP_CUTSEL * | cutsel, |
SCIP_SET * | set | ||
) |
copies the given cut selector to a new scip
- Parameters
-
cutsel cut selector set SCIP_SET of SCIP to copy to
Definition at line 207 of file cutsel.c.
References NULL, SCIP_CALL, SCIP_OKAY, SCIPcutselGetName(), and SCIPsetDebugMsg.
Referenced by SCIPsetCopyPlugins().
◆ SCIPcutselSetCopy()
void SCIPcutselSetCopy | ( | SCIP_CUTSEL * | cutsel, |
SCIP_DECL_CUTSELCOPY((*cutselcopy)) | |||
) |
sets copy method of cut selector
- Parameters
-
cutsel cut selector
Definition at line 417 of file cutsel.c.
References NULL.
Referenced by SCIPsetCutselCopy().
◆ SCIPcutselInit()
SCIP_RETCODE SCIPcutselInit | ( | SCIP_CUTSEL * | cutsel, |
SCIP_SET * | set | ||
) |
initializes cut selector
- Parameters
-
cutsel cut selector set global SCIP settings
Definition at line 256 of file cutsel.c.
References SCIP_Cutsel::cutseltime, SCIP_Cutsel::initialized, SCIP_Cutsel::name, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPclockReset(), SCIPclockStart(), SCIPclockStop(), SCIPerrorMessage, SCIP_Cutsel::setuptime, and TRUE.
Referenced by SCIPsetIncludeExternalCode().
◆ SCIPcutselExit()
SCIP_RETCODE SCIPcutselExit | ( | SCIP_CUTSEL * | cutsel, |
SCIP_SET * | set | ||
) |
deinitializes cut selector
- Parameters
-
cutsel cut selector set global SCIP settings
Definition at line 293 of file cutsel.c.
References FALSE, SCIP_Cutsel::initialized, SCIP_Cutsel::name, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPclockStart(), SCIPclockStop(), SCIPerrorMessage, and SCIP_Cutsel::setuptime.
Referenced by SCIPsetInitPlugins().
◆ SCIPcutselFree()
SCIP_RETCODE SCIPcutselFree | ( | SCIP_CUTSEL ** | cutsel, |
SCIP_SET * | set | ||
) |
frees memory of cut selector
- Parameters
-
cutsel pointer to cut selector data structure set global SCIP settings
Definition at line 225 of file cutsel.c.
References BMSfreeMemory, BMSfreeMemoryArrayNull, NULL, SCIP_CALL, SCIP_OKAY, and SCIPclockFree().
Referenced by SCIPcutselCreate().
◆ SCIPcutselInitsol()
SCIP_RETCODE SCIPcutselInitsol | ( | SCIP_CUTSEL * | cutsel, |
SCIP_SET * | set | ||
) |
informs cut selector that the branch and bound process is being started
- Parameters
-
cutsel cut selector set global SCIP settings
Definition at line 323 of file cutsel.c.
References NULL, SCIP_CALL, SCIP_OKAY, SCIPclockStart(), SCIPclockStop(), and SCIP_Cutsel::setuptime.
Referenced by SCIPsetExitprePlugins().
◆ SCIPcutselExitsol()
SCIP_RETCODE SCIPcutselExitsol | ( | SCIP_CUTSEL * | cutsel, |
SCIP_SET * | set | ||
) |
informs cut selector that the branch and bound process is being started
- Parameters
-
cutsel cut selector set global SCIP settings
Definition at line 347 of file cutsel.c.
References NULL, SCIP_CALL, SCIP_OKAY, SCIPclockStart(), SCIPclockStop(), and SCIP_Cutsel::setuptime.
Referenced by SCIPsetInitsolPlugins().
◆ SCIPcutselSetFree()
void SCIPcutselSetFree | ( | SCIP_CUTSEL * | cutsel, |
SCIP_DECL_CUTSELFREE((*cutselfree)) | |||
) |
sets destructor method of cut selector
- Parameters
-
cutsel cut selector
Definition at line 428 of file cutsel.c.
References NULL.
Referenced by SCIPsetCutselFree().
◆ SCIPcutselSetInit()
void SCIPcutselSetInit | ( | SCIP_CUTSEL * | cutsel, |
SCIP_DECL_CUTSELINIT((*cutselinit)) | |||
) |
sets initialization method of cut selector
- Parameters
-
cutsel cut selector
Definition at line 439 of file cutsel.c.
References NULL.
Referenced by SCIPsetCutselInit().
◆ SCIPcutselSetExit()
void SCIPcutselSetExit | ( | SCIP_CUTSEL * | cutsel, |
SCIP_DECL_CUTSELEXIT((*cutselexit)) | |||
) |
sets deinitialization method of cut selector
- Parameters
-
cutsel cut selector
Definition at line 450 of file cutsel.c.
References NULL.
Referenced by SCIPsetCutselExit().
◆ SCIPcutselSetInitsol()
void SCIPcutselSetInitsol | ( | SCIP_CUTSEL * | cutsel, |
SCIP_DECL_CUTSELINITSOL((*cutselinitsol)) | |||
) |
sets solving process initialization method of cut selector
- Parameters
-
cutsel cut selector
Definition at line 461 of file cutsel.c.
References NULL.
Referenced by SCIPsetCutselInitsol().
◆ SCIPcutselSetExitsol()
void SCIPcutselSetExitsol | ( | SCIP_CUTSEL * | cutsel, |
SCIP_DECL_CUTSELEXITSOL((*cutselexitsol)) | |||
) |
sets solving process deinitialization method of cut selector
- Parameters
-
cutsel cut selector
Definition at line 472 of file cutsel.c.
References NULL.
Referenced by SCIPsetCutselExitsol().
◆ SCIPcutselSetPriority()
void SCIPcutselSetPriority | ( | SCIP_CUTSEL * | cutsel, |
SCIP_SET * | set, | ||
int | priority | ||
) |
sets priority of cut selector
- Parameters
-
cutsel cut selector set global SCIP settings priority new priority of the cut selector
Definition at line 483 of file cutsel.c.
References FALSE, NULL, and SCIP_Cutsel::priority.
Referenced by SCIPsetCutselPriority().