methods for cut selectors
const char * SCIPcutselGetName | ( | SCIP_CUTSEL * | cutsel | ) |
gets name of cut selector
cutsel | cut selector |
Definition at line 159 of file cutsel.c.
References assert(), SCIP_Cutsel::name, and NULL.
Referenced by SCIP_DECL_CUTSELCOPY(), SCIP_DECL_CUTSELCOPY(), SCIP_DECL_CUTSELCOPY(), SCIP_DECL_DIALOGEXEC(), SCIPcutselCopyInclude(), SCIPincludeDialogDefaultFix(), SCIPincludeDialogDefaultSet(), and SCIPprintCutselectorStatistics().
SCIP_CUTSELDATA * SCIPcutselGetData | ( | SCIP_CUTSEL * | cutsel | ) |
gets user data of cut selector
cutsel | cut selector |
Definition at line 419 of file cutsel.c.
References assert(), SCIP_Cutsel::cutseldata, and NULL.
Referenced by SCIP_DECL_CUTSELCOPY(), SCIP_DECL_CUTSELEXIT(), SCIP_DECL_CUTSELEXIT(), SCIP_DECL_CUTSELEXIT(), SCIP_DECL_CUTSELEXIT(), SCIP_DECL_CUTSELEXITSOL(), SCIP_DECL_CUTSELFREE(), SCIP_DECL_CUTSELFREE(), SCIP_DECL_CUTSELFREE(), SCIP_DECL_CUTSELFREE(), SCIP_DECL_CUTSELINIT(), SCIP_DECL_CUTSELINIT(), SCIP_DECL_CUTSELINIT(), SCIP_DECL_CUTSELINIT(), SCIP_DECL_CUTSELINITSOL(), SCIP_DECL_CUTSELSELECT(), SCIP_DECL_CUTSELSELECT(), SCIP_DECL_CUTSELSELECT(), SCIP_DECL_CUTSELSELECT(), SCIPfindObjCutsel(), and SCIPgetObjCutsel().
const char * SCIPcutselGetDesc | ( | SCIP_CUTSEL * | cutsel | ) |
gets description of cut selector
cutsel | cut selector |
Definition at line 245 of file cutsel.c.
References assert(), SCIP_Cutsel::desc, and NULL.
Referenced by SCIP_DECL_DIALOGEXEC(), SCIPincludeDialogDefaultFix(), and SCIPincludeDialogDefaultSet().
int SCIPcutselGetPriority | ( | SCIP_CUTSEL * | cutsel | ) |
gets priority of cut selector
cutsel | cut selector |
Definition at line 440 of file cutsel.c.
References assert(), NULL, and SCIP_Cutsel::priority.
Referenced by SCIP_DECL_DIALOGEXEC().
void SCIPcutselSetData | ( | SCIP_CUTSEL * | cutsel, |
SCIP_CUTSELDATA * | cutseldata ) |
sets user data of cut selector; user has to free old data in advance!
cutsel | cut selector |
cutseldata | new cut selector user data |
Definition at line 429 of file cutsel.c.
References assert(), SCIP_Cutsel::cutseldata, and NULL.
Referenced by SCIP_DECL_CUTSELFREE(), SCIP_DECL_CUTSELFREE(), SCIP_DECL_CUTSELFREE(), and SCIP_DECL_CUTSELFREE().
SCIP_Bool SCIPcutselIsInitialized | ( | SCIP_CUTSEL * | cutsel | ) |
is cut selector initialized?
cutsel | cut selector |
Definition at line 545 of file cutsel.c.
References assert(), SCIP_Cutsel::initialized, and NULL.
SCIP_Real SCIPcutselGetSetupTime | ( | SCIP_CUTSEL * | cutsel | ) |
gets time in seconds used in this cut selector for setting up for next stages
cutsel | cut selector |
Definition at line 555 of file cutsel.c.
References assert(), NULL, SCIPclockGetTime(), and SCIP_Cutsel::setuptime.
Referenced by SCIPprintCutselectorStatistics().
SCIP_Real SCIPcutselGetTime | ( | SCIP_CUTSEL * | cutsel | ) |
gets time in seconds used in this cut selector
cutsel | cut selector |
Definition at line 565 of file cutsel.c.
References assert(), SCIP_Cutsel::cutseltime, NULL, and SCIPclockGetTime().
Referenced by SCIPprintCutselectorStatistics().
SCIP_Longint SCIPcutselGetNCalls | ( | SCIP_CUTSEL * | cutsel | ) |
get number of times the cutselector was called
cutsel | cut selector |
Definition at line 575 of file cutsel.c.
References assert(), SCIP_Cutsel::ncalls, and NULL.
Referenced by SCIPprintCutselectorStatistics().
SCIP_Longint SCIPcutselGetNRootCalls | ( | SCIP_CUTSEL * | cutsel | ) |
get number of times the cutselector was called at the root
cutsel | cut selector |
Definition at line 585 of file cutsel.c.
References assert(), SCIP_Cutsel::nrootcalls, and NULL.
Referenced by SCIPprintCutselectorStatistics().
SCIP_Longint SCIPcutselGetNRootCuts | ( | SCIP_CUTSEL * | cutsel | ) |
get total number of cuts that were selected at the root
cutsel | cut selector |
Definition at line 595 of file cutsel.c.
References assert(), SCIP_Cutsel::nrootcutsselected, and NULL.
Referenced by SCIPprintCutselectorStatistics().
SCIP_Longint SCIPcutselGetNRootForcedCuts | ( | SCIP_CUTSEL * | cutsel | ) |
get total number of forced cuts that were selected at the root
cutsel | cut selector |
Definition at line 605 of file cutsel.c.
References assert(), SCIP_Cutsel::nrootcutsforced, and NULL.
Referenced by SCIPprintCutselectorStatistics().
SCIP_Longint SCIPcutselGetNRootCutsFiltered | ( | SCIP_CUTSEL * | cutsel | ) |
get total number of root cuts that were filtered
cutsel | cut selector |
Definition at line 615 of file cutsel.c.
References assert(), SCIP_Cutsel::nrootcutsfiltered, and NULL.
Referenced by SCIPprintCutselectorStatistics().
SCIP_Longint SCIPcutselGetNLocalCuts | ( | SCIP_CUTSEL * | cutsel | ) |
get total number of local cuts that were selected
cutsel | cut selector |
Definition at line 625 of file cutsel.c.
References assert(), SCIP_Cutsel::nlocalcutsselected, and NULL.
Referenced by SCIPprintCutselectorStatistics().
SCIP_Longint SCIPcutselGetNLocalForcedCuts | ( | SCIP_CUTSEL * | cutsel | ) |
get total number of forced local cuts that were selected
cutsel | cut selector |
Definition at line 635 of file cutsel.c.
References assert(), SCIP_Cutsel::nlocalcutsforced, and NULL.
Referenced by SCIPprintCutselectorStatistics().
SCIP_Longint SCIPcutselGetNLocalCutsFiltered | ( | SCIP_CUTSEL * | cutsel | ) |
get total number of local cuts that were filtered
cutsel | cut selector |
Definition at line 645 of file cutsel.c.
References assert(), SCIP_Cutsel::nlocalcutsfiltered, and NULL.
Referenced by SCIPprintCutselectorStatistics().
SCIP_DECL_SORTPTRCOMP | ( | SCIPcutselComp | ) |
SCIP_RETCODE SCIPincludeCutsel | ( | SCIP * | scip, |
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 and includes it in SCIP
scip | SCIP data structure |
name | name of cut selector |
desc | description of cut selector |
priority | priority of the cut selector |
cutseldata | cut selector data |
Definition at line 50 of file scip_cutsel.c.
References FALSE, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPcheckStage(), SCIPcutselCreate(), SCIPerrorMessage, SCIPfindCutsel(), SCIPsetIncludeCutsel(), and TRUE.
Referenced by SCIPincludeObjCutsel().
SCIP_RETCODE SCIPincludeCutselBasic | ( | SCIP * | scip, |
SCIP_CUTSEL ** | cutsel, | ||
const char * | name, | ||
const char * | desc, | ||
int | priority, | ||
SCIP_DECL_CUTSELSELECT((*cutselselect)) | , | ||
SCIP_CUTSELDATA * | cutseldata ) |
Creates a cut selector and includes it in SCIP with its most fundamental callbacks.
All non-fundamental (or optional) callbacks as, e.g., init and exit callbacks, will be set to NULL. Optional callbacks can be set via specific setter functions, see SCIPsetCutselCopy(), SCIPsetCutselFree(), SCIPsetCutselInit(), SCIPsetCutselExit(), SCIPsetCutselInitsol(), and SCIPsetCutselExitsol()
scip | SCIP data structure |
cutsel | reference to a cut selector, or NULL |
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 92 of file scip_cutsel.c.
References FALSE, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPcheckStage(), SCIPcutselCreate(), SCIPerrorMessage, SCIPfindCutsel(), SCIPsetIncludeCutsel(), and TRUE.
Referenced by SCIPincludeCutselDynamic(), SCIPincludeCutselEnsemble(), and SCIPincludeCutselHybrid().
SCIP_RETCODE SCIPsetCutselCopy | ( | SCIP * | scip, |
SCIP_CUTSEL * | cutsel ) |
sets copy method of cut selector
scip | SCIP data structure |
cutsel | cut selector copy method of cut selector or NULL if you don't want to copy your plugin into sub-SCIPs |
Definition at line 125 of file scip_cutsel.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcutselSetCopy(), and TRUE.
Referenced by SCIPincludeCutselDynamic(), SCIPincludeCutselEnsemble(), and SCIPincludeCutselHybrid().
SCIP_RETCODE SCIPsetCutselFree | ( | SCIP * | scip, |
SCIP_CUTSEL * | cutsel ) |
sets destructor method of cut selector
scip | SCIP data structure |
cutsel | cut selector destructor of cut selector |
Definition at line 141 of file scip_cutsel.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcutselSetFree(), and TRUE.
Referenced by SCIPincludeCutselDynamic(), SCIPincludeCutselEnsemble(), and SCIPincludeCutselHybrid().
SCIP_RETCODE SCIPsetCutselInit | ( | SCIP * | scip, |
SCIP_CUTSEL * | cutsel ) |
sets initialization method of cut selector
scip | SCIP data structure |
cutsel | cut selector initialize cut selector |
Definition at line 157 of file scip_cutsel.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcutselSetInit(), and TRUE.
Referenced by SCIPincludeCutselDynamic(), SCIPincludeCutselEnsemble(), and SCIPincludeCutselHybrid().
SCIP_RETCODE SCIPsetCutselExit | ( | SCIP * | scip, |
SCIP_CUTSEL * | cutsel ) |
sets deinitialization method of cut selector
scip | SCIP data structure |
cutsel | cut selector deinitialize cut selector |
Definition at line 173 of file scip_cutsel.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcutselSetExit(), and TRUE.
Referenced by SCIPincludeCutselDynamic(), SCIPincludeCutselEnsemble(), and SCIPincludeCutselHybrid().
SCIP_RETCODE SCIPsetCutselInitsol | ( | SCIP * | scip, |
SCIP_CUTSEL * | cutsel ) |
sets solving process initialization method of cut selector
scip | SCIP data structure |
cutsel | cut selector solving process initialization method of cut selector |
Definition at line 189 of file scip_cutsel.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcutselSetInitsol(), and TRUE.
SCIP_RETCODE SCIPsetCutselExitsol | ( | SCIP * | scip, |
SCIP_CUTSEL * | cutsel ) |
sets solving process deinitialization method of cut selector
scip | SCIP data structure |
cutsel | cut selector solving process deinitialization method of cut selector |
Definition at line 205 of file scip_cutsel.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcutselSetExitsol(), and TRUE.
SCIP_CUTSEL * SCIPfindCutsel | ( | SCIP * | scip, |
const char * | name ) |
returns the cut selector of the given name, or NULL if not existing
scip | SCIP data structure |
name | name of cut selector |
Definition at line 221 of file scip_cutsel.c.
References assert(), NULL, and SCIPsetFindCutsel().
Referenced by SCIPfindObjCutsel(), SCIPincludeCutsel(), and SCIPincludeCutselBasic().
SCIP_CUTSEL ** SCIPgetCutsels | ( | SCIP * | scip | ) |
returns the array of currently available cut selectors
scip | SCIP data structure |
Definition at line 234 of file scip_cutsel.c.
References assert(), NULL, and SCIPsetSortCutsels().
Referenced by SCIP_DECL_DIALOGEXEC(), SCIPincludeDialogDefaultFix(), and SCIPincludeDialogDefaultSet().
int SCIPgetNCutsels | ( | SCIP * | scip | ) |
returns the number of currently available cut selectors
scip | SCIP data structure |
Definition at line 247 of file scip_cutsel.c.
References assert(), and NULL.
Referenced by SCIP_DECL_DIALOGEXEC(), SCIPincludeDialogDefaultFix(), and SCIPincludeDialogDefaultSet().
SCIP_RETCODE SCIPsetCutselPriority | ( | SCIP * | scip, |
SCIP_CUTSEL * | cutsel, | ||
int | priority ) |
sets the priority of a cut selector
scip | SCIP data structure |
cutsel | cut selector |
priority | new priority of the separator |
Definition at line 258 of file scip_cutsel.c.
References assert(), NULL, SCIP_OKAY, and SCIPcutselSetPriority().
Referenced by SCIP_DECL_PARAMCHGD().