public methods for relaxation handlers
SCIP_DECL_SORTPTRCOMP | ( | SCIPrelaxComp | ) |
SCIP_DECL_SORTPTRCOMP | ( | SCIPrelaxCompName | ) |
comparison method for sorting relaxators w.r.t. to their name
Definition at line 50 of file relax.c.
References SCIPrelaxGetName().
SCIP_RELAXDATA* SCIPrelaxGetData | ( | SCIP_RELAX * | relax | ) |
gets user data of relaxation handler
relax | relaxation handler |
Definition at line 359 of file relax.c.
References NULL, and SCIP_Relax::relaxdata.
Referenced by SCIP_DECL_RELAXCOPY(), SCIP_DECL_RELAXEXEC(), SCIP_DECL_RELAXEXIT(), SCIP_DECL_RELAXEXITSOL(), SCIP_DECL_RELAXFREE(), SCIP_DECL_RELAXINIT(), SCIP_DECL_RELAXINITSOL(), SCIPfindObjRelax(), and SCIPgetObjRelax().
void SCIPrelaxSetData | ( | SCIP_RELAX * | relax, |
SCIP_RELAXDATA * | relaxdata | ||
) |
sets user data of relaxation handler; user has to free old data in advance!
relax | relaxation handler |
relaxdata | new relaxation handler user data |
Definition at line 369 of file relax.c.
References NULL, and SCIP_Relax::relaxdata.
Referenced by SCIP_DECL_RELAXFREE().
const char* SCIPrelaxGetName | ( | SCIP_RELAX * | relax | ) |
gets name of relaxation handler
relax | relaxation handler |
Definition at line 446 of file relax.c.
References SCIP_Relax::name, and NULL.
Referenced by printRelaxatorStatistics(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_SORTPTRCOMP(), SCIPrelaxCopyInclude(), SCIPsetFindPresol(), SCIPsolveProbingRelax(), and solveNodeRelax().
const char* SCIPrelaxGetDesc | ( | SCIP_RELAX * | relax | ) |
gets description of relaxation handler
relax | relaxation handler |
Definition at line 456 of file relax.c.
References SCIP_Relax::desc, and NULL.
Referenced by SCIP_DECL_DIALOGEXEC().
int SCIPrelaxGetPriority | ( | SCIP_RELAX * | relax | ) |
gets priority of relaxation handler
relax | relaxation handler |
Definition at line 466 of file relax.c.
References NULL, and SCIP_Relax::priority.
Referenced by SCIP_DECL_DIALOGEXEC(), and solveNodeRelax().
int SCIPrelaxGetFreq | ( | SCIP_RELAX * | relax | ) |
gets frequency of relaxation handler
relax | relaxation handler |
Definition at line 490 of file relax.c.
References SCIP_Relax::freq, and NULL.
Referenced by SCIP_DECL_DIALOGEXEC().
SCIP_Bool SCIPrelaxIncludesLp | ( | SCIP_RELAX * | relax | ) |
returns whether the relaxation handler contains all LP rows
relax | relaxation handler |
Definition at line 522 of file relax.c.
References SCIP_Relax::includeslp, and NULL.
Referenced by solveNodeRelax().
void SCIPrelaxSetIncludesLp | ( | SCIP_RELAX * | relax, |
SCIP_Bool | includeslp | ||
) |
defines whether the relaxation handler contains all LP rows
relax | relaxator |
includeslp | does the relaxator contain all cuts in the LP? |
Definition at line 532 of file relax.c.
References SCIP_Relax::includeslp, and NULL.
SCIP_Real SCIPrelaxGetSetupTime | ( | SCIP_RELAX * | relax | ) |
gets time in seconds used in this relaxator for setting up for next stages
relax | relaxator |
Definition at line 500 of file relax.c.
References NULL, SCIPclockGetTime(), and SCIP_Relax::setuptime.
SCIP_Real SCIPrelaxGetTime | ( | SCIP_RELAX * | relax | ) |
gets time in seconds used in this relaxation handler
relax | relaxation handler |
Definition at line 543 of file relax.c.
References NULL, SCIP_Relax::relaxclock, and SCIPclockGetTime().
Referenced by printRelaxatorStatistics().
SCIP_Longint SCIPrelaxGetNCalls | ( | SCIP_RELAX * | relax | ) |
gets the total number of times, the relaxation handler was called
relax | relaxation handler |
Definition at line 553 of file relax.c.
References SCIP_Relax::ncalls, and NULL.
Referenced by printRelaxatorStatistics().
SCIP_Bool SCIPrelaxIsInitialized | ( | SCIP_RELAX * | relax | ) |
is relaxation handler initialized?
relax | relaxation handler |
Definition at line 563 of file relax.c.
References SCIP_Relax::initialized, and NULL.
Referenced by SCIPsetIncludePresol().
void SCIPrelaxMarkUnsolved | ( | SCIP_RELAX * | relax | ) |
marks the current relaxation unsolved, s.t. the relaxation handler is called again in the next solving round
relax | relaxation handler |
Definition at line 585 of file relax.c.
References SCIP_Relax::lastsolvednode, and NULL.
Referenced by markRelaxsUnsolved(), and SCIPrelaxExec().
SCIP_RETCODE SCIPincludeRelax | ( | SCIP * | scip, |
const char * | name, | ||
const char * | desc, | ||
int | priority, | ||
int | freq, | ||
SCIP_Bool | includeslp, | ||
SCIP_DECL_RELAXCOPY((*relaxcopy)) | , | ||
SCIP_DECL_RELAXFREE((*relaxfree)) | , | ||
SCIP_DECL_RELAXINIT((*relaxinit)) | , | ||
SCIP_DECL_RELAXEXIT((*relaxexit)) | , | ||
SCIP_DECL_RELAXINITSOL((*relaxinitsol)) | , | ||
SCIP_DECL_RELAXEXITSOL((*relaxexitsol)) | , | ||
SCIP_DECL_RELAXEXEC((*relaxexec)) | , | ||
SCIP_RELAXDATA * | relaxdata | ||
) |
creates a relaxation handler and includes it in SCIP
scip | SCIP data structure |
name | name of relaxation handler |
desc | description of relaxation handler |
priority | priority of the relaxation handler (negative: after LP, non-negative: before LP) |
freq | frequency for calling relaxation handler |
includeslp | does the relaxator contain all cuts in the LP? |
relaxdata | relaxation handler data |
Definition at line 7043 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::messagehdlr, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPerrorMessage, SCIPfindRelax(), SCIPrelaxCreate(), SCIPsetIncludeRelax(), Scip::set, SCIP_Mem::setmem, and TRUE.
Referenced by SCIPincludeObjRelax().
SCIP_RETCODE SCIPincludeRelaxBasic | ( | SCIP * | scip, |
SCIP_RELAX ** | relaxptr, | ||
const char * | name, | ||
const char * | desc, | ||
int | priority, | ||
int | freq, | ||
SCIP_Bool | includeslp, | ||
SCIP_DECL_RELAXEXEC((*relaxexec)) | , | ||
SCIP_RELAXDATA * | relaxdata | ||
) |
creates a relaxation handler and includes it in SCIP. 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 SCIPsetRelaxInit(), SCIPsetRelaxExit(), SCIPsetRelaxCopy(), SCIPsetRelaxFree(), SCIPsetRelaxInitsol(), and SCIPsetRelaxExitsol()
scip | SCIP data structure |
relaxptr | reference to relaxation pointer, or NULL |
name | name of relaxation handler |
desc | description of relaxation handler |
priority | priority of the relaxation handler (negative: after LP, non-negative: before LP) |
freq | frequency for calling relaxation handler |
includeslp | does the relaxator contain all cuts in the LP? |
relaxdata | relaxation handler data |
Definition at line 7087 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::messagehdlr, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPerrorMessage, SCIPfindRelax(), SCIPrelaxCreate(), SCIPsetIncludeRelax(), Scip::set, SCIP_Mem::setmem, and TRUE.
Referenced by SCIPincludeRelaxLp(), and SCIPincludeRelaxNlp().
SCIP_RETCODE SCIPsetRelaxCopy | ( | SCIP * | scip, |
SCIP_RELAX * | relax, | ||
SCIP_DECL_RELAXCOPY((*relaxcopy)) | |||
) |
sets copy method of relaxation handler
scip | SCIP data structure |
relax | relaxation handler |
Definition at line 7122 of file scip.c.
References checkStage(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPrelaxSetCopy(), and TRUE.
SCIP_RETCODE SCIPsetRelaxFree | ( | SCIP * | scip, |
SCIP_RELAX * | relax, | ||
SCIP_DECL_RELAXFREE((*relaxfree)) | |||
) |
sets destructor method of relaxation handler
scip | SCIP data structure |
relax | relaxation handler |
Definition at line 7138 of file scip.c.
References checkStage(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPrelaxSetFree(), and TRUE.
SCIP_RETCODE SCIPsetRelaxInit | ( | SCIP * | scip, |
SCIP_RELAX * | relax, | ||
SCIP_DECL_RELAXINIT((*relaxinit)) | |||
) |
sets initialization method of relaxation handler
scip | SCIP data structure |
relax | relaxation handler |
Definition at line 7154 of file scip.c.
References checkStage(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPrelaxSetInit(), and TRUE.
SCIP_RETCODE SCIPsetRelaxExit | ( | SCIP * | scip, |
SCIP_RELAX * | relax, | ||
SCIP_DECL_RELAXEXIT((*relaxexit)) | |||
) |
sets deinitialization method of relaxation handler
scip | SCIP data structure |
relax | relaxation handler |
Definition at line 7170 of file scip.c.
References checkStage(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPrelaxSetExit(), and TRUE.
SCIP_RETCODE SCIPsetRelaxInitsol | ( | SCIP * | scip, |
SCIP_RELAX * | relax, | ||
SCIP_DECL_RELAXINITSOL((*relaxinitsol)) | |||
) |
sets solving process initialization method of relaxation handler
scip | SCIP data structure |
relax | relaxation handler |
Definition at line 7186 of file scip.c.
References checkStage(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPrelaxSetInitsol(), and TRUE.
Referenced by SCIPincludeRelaxNlp().
SCIP_RETCODE SCIPsetRelaxExitsol | ( | SCIP * | scip, |
SCIP_RELAX * | relax, | ||
SCIP_DECL_RELAXEXITSOL((*relaxexitsol)) | |||
) |
sets solving process deinitialization method of relaxation handler
scip | SCIP data structure |
relax | relaxation handler |
Definition at line 7202 of file scip.c.
References checkStage(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPrelaxSetExitsol(), and TRUE.
Referenced by SCIPincludeRelaxNlp().
SCIP_RELAX* SCIPfindRelax | ( | SCIP * | scip, |
const char * | name | ||
) |
returns the relaxation handler of the given name, or NULL if not existing
scip | SCIP data structure |
name | name of relaxation handler |
Definition at line 7219 of file scip.c.
References NULL, SCIPsetFindRelax(), and Scip::set.
Referenced by SCIPfindObjRelax(), SCIPincludeRelax(), and SCIPincludeRelaxBasic().
SCIP_RELAX** SCIPgetRelaxs | ( | SCIP * | scip | ) |
returns the array of currently available relaxation handlers
scip | SCIP data structure |
Definition at line 7232 of file scip.c.
References NULL, SCIP_Set::relaxs, SCIPsetSortRelaxs(), and Scip::set.
Referenced by SCIP_DECL_DIALOGEXEC().
int SCIPgetNRelaxs | ( | SCIP * | scip | ) |
returns the number of currently available relaxation handlers
scip | SCIP data structure |
Definition at line 7245 of file scip.c.
References SCIP_Set::nrelaxs, NULL, and Scip::set.
Referenced by SCIP_DECL_DIALOGEXEC().
SCIP_RETCODE SCIPsetRelaxPriority | ( | SCIP * | scip, |
SCIP_RELAX * | relax, | ||
int | priority | ||
) |
sets the priority of a relaxation handler
scip | SCIP data structure |
relax | relaxation handler |
priority | new priority of the relaxation handler |
Definition at line 7256 of file scip.c.
References NULL, SCIP_OKAY, SCIPrelaxSetPriority(), and Scip::set.
Referenced by SCIP_DECL_PARAMCHGD().