Scippy

SCIP

Solving Constraint Integer Programs

Detailed Description

methods for cut selectors

Functions

const char * SCIPcutselGetName (SCIP_CUTSEL *cutsel)
 
SCIP_CUTSELDATASCIPcutselGetData (SCIP_CUTSEL *cutsel)
 
const char * SCIPcutselGetDesc (SCIP_CUTSEL *cutsel)
 
int SCIPcutselGetPriority (SCIP_CUTSEL *cutsel)
 
void SCIPcutselSetData (SCIP_CUTSEL *cutsel, SCIP_CUTSELDATA *cutseldata)
 
SCIP_Bool SCIPcutselIsInitialized (SCIP_CUTSEL *cutsel)
 
SCIP_Real SCIPcutselGetSetupTime (SCIP_CUTSEL *cutsel)
 
SCIP_Real SCIPcutselGetTime (SCIP_CUTSEL *cutsel)
 
SCIP_Longint SCIPcutselGetNCalls (SCIP_CUTSEL *cutsel)
 
SCIP_Longint SCIPcutselGetNRootCalls (SCIP_CUTSEL *cutsel)
 
SCIP_Longint SCIPcutselGetNRootCuts (SCIP_CUTSEL *cutsel)
 
SCIP_Longint SCIPcutselGetNRootForcedCuts (SCIP_CUTSEL *cutsel)
 
SCIP_Longint SCIPcutselGetNRootCutsFiltered (SCIP_CUTSEL *cutsel)
 
SCIP_Longint SCIPcutselGetNLocalCuts (SCIP_CUTSEL *cutsel)
 
SCIP_Longint SCIPcutselGetNLocalForcedCuts (SCIP_CUTSEL *cutsel)
 
SCIP_Longint SCIPcutselGetNLocalCutsFiltered (SCIP_CUTSEL *cutsel)
 
 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)
 
SCIP_RETCODE SCIPincludeCutselBasic (SCIP *scip, SCIP_CUTSEL **cutsel, const char *name, const char *desc, int priority, SCIP_DECL_CUTSELSELECT((*cutselselect)), SCIP_CUTSELDATA *cutseldata)
 
SCIP_RETCODE SCIPsetCutselCopy (SCIP *scip, SCIP_CUTSEL *cutsel, SCIP_DECL_CUTSELCOPY((*cutselcopy)))
 
SCIP_RETCODE SCIPsetCutselFree (SCIP *scip, SCIP_CUTSEL *cutsel, SCIP_DECL_CUTSELFREE((*cutselfree)))
 
SCIP_RETCODE SCIPsetCutselInit (SCIP *scip, SCIP_CUTSEL *cutsel, SCIP_DECL_CUTSELINIT((*cutselinit)))
 
SCIP_RETCODE SCIPsetCutselExit (SCIP *scip, SCIP_CUTSEL *cutsel, SCIP_DECL_CUTSELEXIT((*cutselexit)))
 
SCIP_RETCODE SCIPsetCutselInitsol (SCIP *scip, SCIP_CUTSEL *cutsel, SCIP_DECL_CUTSELINITSOL((*cutselinitsol)))
 
SCIP_RETCODE SCIPsetCutselExitsol (SCIP *scip, SCIP_CUTSEL *cutsel, SCIP_DECL_CUTSELEXITSOL((*cutselexitsol)))
 
SCIP_CUTSELSCIPfindCutsel (SCIP *scip, const char *name)
 
SCIP_CUTSEL ** SCIPgetCutsels (SCIP *scip)
 
int SCIPgetNCutsels (SCIP *scip)
 
SCIP_RETCODE SCIPsetCutselPriority (SCIP *scip, SCIP_CUTSEL *cutsel, int priority)
 

Function Documentation

◆ SCIPcutselGetName()

const char* SCIPcutselGetName ( SCIP_CUTSEL cutsel)

gets name of cut selector

Parameters
cutselcut selector

Definition at line 159 of file cutsel.c.

References SCIP_Cutsel::name, and NULL.

Referenced by SCIP_DECL_CUTSELCOPY(), SCIP_DECL_DIALOGEXEC(), SCIPcutselCopyInclude(), SCIPincludeDialogDefaultFix(), SCIPincludeDialogDefaultSet(), and SCIPprintCutselectorStatistics().

◆ SCIPcutselGetData()

SCIP_CUTSELDATA* SCIPcutselGetData ( SCIP_CUTSEL cutsel)

◆ SCIPcutselGetDesc()

const char* SCIPcutselGetDesc ( SCIP_CUTSEL cutsel)

gets description of cut selector

Parameters
cutselcut selector

Definition at line 244 of file cutsel.c.

References SCIP_Cutsel::desc, and NULL.

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

◆ SCIPcutselGetPriority()

int SCIPcutselGetPriority ( SCIP_CUTSEL cutsel)

gets priority of cut selector

Parameters
cutselcut selector

Definition at line 439 of file cutsel.c.

References NULL, and SCIP_Cutsel::priority.

Referenced by SCIP_DECL_DIALOGEXEC().

◆ SCIPcutselSetData()

void SCIPcutselSetData ( SCIP_CUTSEL cutsel,
SCIP_CUTSELDATA cutseldata 
)

sets user data of cut selector; user has to free old data in advance!

Parameters
cutselcut selector
cutseldatanew cut selector user data

Definition at line 428 of file cutsel.c.

References SCIP_Cutsel::cutseldata, and NULL.

Referenced by SCIP_DECL_CUTSELFREE().

◆ SCIPcutselIsInitialized()

SCIP_Bool SCIPcutselIsInitialized ( SCIP_CUTSEL cutsel)

is cut selector initialized?

Parameters
cutselcut selector

Definition at line 544 of file cutsel.c.

References SCIP_Cutsel::initialized, and NULL.

◆ SCIPcutselGetSetupTime()

SCIP_Real SCIPcutselGetSetupTime ( SCIP_CUTSEL cutsel)

gets time in seconds used in this cut selector for setting up for next stages

Parameters
cutselcut selector

Definition at line 554 of file cutsel.c.

References NULL, SCIPclockGetTime(), and SCIP_Cutsel::setuptime.

Referenced by SCIPprintCutselectorStatistics().

◆ SCIPcutselGetTime()

SCIP_Real SCIPcutselGetTime ( SCIP_CUTSEL cutsel)

gets time in seconds used in this cut selector

Parameters
cutselcut selector

Definition at line 564 of file cutsel.c.

References SCIP_Cutsel::cutseltime, NULL, and SCIPclockGetTime().

Referenced by SCIPprintCutselectorStatistics().

◆ SCIPcutselGetNCalls()

SCIP_Longint SCIPcutselGetNCalls ( SCIP_CUTSEL cutsel)

get number of times the cutselector was called

Parameters
cutselcut selector

Definition at line 574 of file cutsel.c.

References SCIP_Cutsel::ncalls, and NULL.

Referenced by SCIPprintCutselectorStatistics().

◆ SCIPcutselGetNRootCalls()

SCIP_Longint SCIPcutselGetNRootCalls ( SCIP_CUTSEL cutsel)

get number of times the cutselector was called at the root

Parameters
cutselcut selector

Definition at line 584 of file cutsel.c.

References SCIP_Cutsel::nrootcalls, and NULL.

Referenced by SCIPprintCutselectorStatistics().

◆ SCIPcutselGetNRootCuts()

SCIP_Longint SCIPcutselGetNRootCuts ( SCIP_CUTSEL cutsel)

get total number of cuts that were selected at the root

Parameters
cutselcut selector

Definition at line 594 of file cutsel.c.

References SCIP_Cutsel::nrootcutsselected, and NULL.

Referenced by SCIPprintCutselectorStatistics().

◆ SCIPcutselGetNRootForcedCuts()

SCIP_Longint SCIPcutselGetNRootForcedCuts ( SCIP_CUTSEL cutsel)

get total number of forced cuts that were selected at the root

Parameters
cutselcut selector

Definition at line 604 of file cutsel.c.

References SCIP_Cutsel::nrootcutsforced, and NULL.

Referenced by SCIPprintCutselectorStatistics().

◆ SCIPcutselGetNRootCutsFiltered()

SCIP_Longint SCIPcutselGetNRootCutsFiltered ( SCIP_CUTSEL cutsel)

get total number of root cuts that were filtered

Parameters
cutselcut selector

Definition at line 614 of file cutsel.c.

References SCIP_Cutsel::nrootcutsfiltered, and NULL.

Referenced by SCIPprintCutselectorStatistics().

◆ SCIPcutselGetNLocalCuts()

SCIP_Longint SCIPcutselGetNLocalCuts ( SCIP_CUTSEL cutsel)

get total number of local cuts that were selected

Parameters
cutselcut selector

Definition at line 624 of file cutsel.c.

References SCIP_Cutsel::nlocalcutsselected, and NULL.

Referenced by SCIPprintCutselectorStatistics().

◆ SCIPcutselGetNLocalForcedCuts()

SCIP_Longint SCIPcutselGetNLocalForcedCuts ( SCIP_CUTSEL cutsel)

get total number of forced local cuts that were selected

Parameters
cutselcut selector

Definition at line 634 of file cutsel.c.

References SCIP_Cutsel::nlocalcutsforced, and NULL.

Referenced by SCIPprintCutselectorStatistics().

◆ SCIPcutselGetNLocalCutsFiltered()

SCIP_Longint SCIPcutselGetNLocalCutsFiltered ( SCIP_CUTSEL cutsel)

get total number of local cuts that were filtered

Parameters
cutselcut selector

Definition at line 644 of file cutsel.c.

References SCIP_Cutsel::nlocalcutsfiltered, and NULL.

Referenced by SCIPprintCutselectorStatistics().

◆ SCIP_DECL_SORTPTRCOMP()

SCIP_DECL_SORTPTRCOMP ( SCIPcutselComp  )

compares two cut selectors w. r. to their priority

Definition at line 654 of file cutsel.c.

◆ SCIPincludeCutsel()

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

Note
this method has all cut selector callbacks as arguments and is thus changed every time a new callback is added in future releases; consider using SCIPincludeCutselBasic() and setter functions if you seek for a method which is less likely to change in future releases
Parameters
scipSCIP data structure
namename of cut selector
descdescription of cut selector
prioritypriority of the cut selector
cutseldatacut selector data

Definition at line 50 of file scip_cutsel.c.

References FALSE, Scip::mem, Scip::messagehdlr, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPcheckStage(), SCIPcutselCreate(), SCIPerrorMessage, SCIPfindCutsel(), SCIPsetIncludeCutsel(), Scip::set, SCIP_Mem::setmem, and TRUE.

Referenced by SCIPincludeObjCutsel().

◆ SCIPincludeCutselBasic()

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()

Note
if you want to set all callbacks with a single method call, consider using SCIPincludeCutsel() instead
Parameters
scipSCIP data structure
cutselreference to a cut selector, or NULL
namename of cut selector
descdescription of cut selector
prioritypriority of the cut selector in standard mode
cutseldatacut selector data

Definition at line 92 of file scip_cutsel.c.

References FALSE, Scip::mem, Scip::messagehdlr, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPcheckStage(), SCIPcutselCreate(), SCIPerrorMessage, SCIPfindCutsel(), SCIPsetIncludeCutsel(), Scip::set, SCIP_Mem::setmem, and TRUE.

Referenced by SCIPincludeCutselHybrid().

◆ SCIPsetCutselCopy()

SCIP_RETCODE SCIPsetCutselCopy ( SCIP scip,
SCIP_CUTSEL cutsel,
SCIP_DECL_CUTSELCOPY((*cutselcopy))   
)

sets copy method of cut selector

Parameters
scipSCIP data structure
cutselcut selector

Definition at line 125 of file scip_cutsel.c.

References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcutselSetCopy(), and TRUE.

Referenced by SCIPincludeCutselHybrid().

◆ SCIPsetCutselFree()

SCIP_RETCODE SCIPsetCutselFree ( SCIP scip,
SCIP_CUTSEL cutsel,
SCIP_DECL_CUTSELFREE((*cutselfree))   
)

sets destructor method of cut selector

Parameters
scipSCIP data structure
cutselcut selector

Definition at line 141 of file scip_cutsel.c.

References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcutselSetFree(), and TRUE.

Referenced by SCIPincludeCutselHybrid().

◆ SCIPsetCutselInit()

SCIP_RETCODE SCIPsetCutselInit ( SCIP scip,
SCIP_CUTSEL cutsel,
SCIP_DECL_CUTSELINIT((*cutselinit))   
)

sets initialization method of cut selector

Parameters
scipSCIP data structure
cutselcut selector

Definition at line 157 of file scip_cutsel.c.

References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcutselSetInit(), and TRUE.

Referenced by SCIPincludeCutselHybrid().

◆ SCIPsetCutselExit()

SCIP_RETCODE SCIPsetCutselExit ( SCIP scip,
SCIP_CUTSEL cutsel,
SCIP_DECL_CUTSELEXIT((*cutselexit))   
)

sets deinitialization method of cut selector

Parameters
scipSCIP data structure
cutselcut selector

Definition at line 173 of file scip_cutsel.c.

References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcutselSetExit(), and TRUE.

Referenced by SCIPincludeCutselHybrid().

◆ SCIPsetCutselInitsol()

SCIP_RETCODE SCIPsetCutselInitsol ( SCIP scip,
SCIP_CUTSEL cutsel,
SCIP_DECL_CUTSELINITSOL((*cutselinitsol))   
)

sets solving process initialization method of cut selector

Parameters
scipSCIP data structure
cutselcut selector

Definition at line 189 of file scip_cutsel.c.

References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcutselSetInitsol(), and TRUE.

◆ SCIPsetCutselExitsol()

SCIP_RETCODE SCIPsetCutselExitsol ( SCIP scip,
SCIP_CUTSEL cutsel,
SCIP_DECL_CUTSELEXITSOL((*cutselexitsol))   
)

sets solving process deinitialization method of cut selector

Parameters
scipSCIP data structure
cutselcut selector

Definition at line 205 of file scip_cutsel.c.

References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcutselSetExitsol(), and TRUE.

◆ SCIPfindCutsel()

SCIP_CUTSEL* SCIPfindCutsel ( SCIP scip,
const char *  name 
)

returns the cut selector of the given name, or NULL if not existing

Parameters
scipSCIP data structure
namename of cut selector

Definition at line 221 of file scip_cutsel.c.

References NULL, SCIPsetFindCutsel(), and Scip::set.

Referenced by SCIPfindObjCutsel(), SCIPincludeCutsel(), and SCIPincludeCutselBasic().

◆ SCIPgetCutsels()

SCIP_CUTSEL** SCIPgetCutsels ( SCIP scip)

returns the array of currently available cut selectors

Parameters
scipSCIP data structure

Definition at line 234 of file scip_cutsel.c.

References SCIP_Set::cutsels, NULL, SCIPsetSortCutsels(), and Scip::set.

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

◆ SCIPgetNCutsels()

int SCIPgetNCutsels ( SCIP scip)

returns the number of currently available cut selectors

Parameters
scipSCIP data structure

Definition at line 247 of file scip_cutsel.c.

References SCIP_Set::ncutsels, NULL, and Scip::set.

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

◆ SCIPsetCutselPriority()

SCIP_RETCODE SCIPsetCutselPriority ( SCIP scip,
SCIP_CUTSEL cutsel,
int  priority 
)

sets the priority of a cut selector

Parameters
scipSCIP data structure
cutselcut selector
prioritynew priority of the separator

Definition at line 258 of file scip_cutsel.c.

References NULL, SCIP_OKAY, SCIPcutselSetPriority(), and Scip::set.

Referenced by SCIP_DECL_PARAMCHGD().