functions for irreducible infeasible subsystems (IIS) finders
| const char * SCIPiisfinderGetName | ( | SCIP_IISFINDER * | iisfinder | ) |
gets name of IIS finder
| iisfinder | IIS finder |
Definition at line 314 of file iisfinder.c.
References assert(), SCIP_IISfinder::name, and NULL.
Referenced by SCIP_DECL_IISFINDERCOPY(), and SCIPiisfinderCopyInclude().
| SCIP_IISFINDERDATA * SCIPiisfinderGetData | ( | SCIP_IISFINDER * | iisfinder | ) |
gets user data of IIS finder
| iisfinder | IIS finder |
Definition at line 652 of file iisfinder.c.
References assert(), SCIP_IISfinder::iisfinderdata, and NULL.
Referenced by SCIP_DECL_IISFINDERCOPY(), SCIP_DECL_IISFINDEREXEC(), SCIP_DECL_IISFINDEREXEC(), SCIP_DECL_IISFINDERFREE(), SCIP_DECL_IISFINDERFREE(), SCIPfindObjIISfinder(), and SCIPgetObjIISfinder().
| const char * SCIPiisfinderGetDesc | ( | SCIP_IISFINDER * | iisfinder | ) |
gets description of IIS finder
gets description of the IIS finder
| iisfinder | IIS finder |
Definition at line 594 of file iisfinder.c.
References assert(), SCIP_IISfinder::desc, and NULL.
| int SCIPiisfinderGetPriority | ( | SCIP_IISFINDER * | iisfinder | ) |
gets priority of IIS finder
| iisfinder | IIS finder |
Definition at line 673 of file iisfinder.c.
References assert(), NULL, and SCIP_IISfinder::priority.
| void SCIPiisfinderSetData | ( | SCIP_IISFINDER * | iisfinder, |
| SCIP_IISFINDERDATA * | iisfinderdata ) |
sets user data of IIS finder; user has to free old data in advance!
| iisfinder | IIS finder |
| iisfinderdata | new IIS finder user data |
Definition at line 662 of file iisfinder.c.
References assert(), SCIP_IISfinder::iisfinderdata, and NULL.
Referenced by SCIP_DECL_IISFINDERFREE(), and SCIP_DECL_IISFINDERFREE().
| SCIP_Real SCIPiisfinderGetTime | ( | SCIP_IISFINDER * | iisfinder | ) |
gets time in seconds used in this IIS finder
| iisfinder | IIS finder |
Definition at line 730 of file iisfinder.c.
References assert(), SCIP_IISfinder::iisfindertime, NULL, SCIP_Real, and SCIPclockGetTime().
prints output line during IIS calculations
| iis | pointer to the IIS |
| printheaders | whether the headers should be printed instead of the info |
Definition at line 740 of file iisfinder.c.
References assert(), i, SCIP_IIS::infeasible, SCIP_IIS::niismessagecalls, NULL, nvars, SCIP_Bool, SCIPgetNOrigConss(), SCIPgetNOrigVars(), SCIPgetOrigVars(), SCIPiisGetNNodes(), SCIPiisGetSubscip(), SCIPiisGetTime(), SCIPinfoMessage(), SCIPisInfinity(), SCIPvarGetLbOriginal(), SCIPvarGetUbOriginal(), and vars.
Referenced by additionFilterBatch(), deletionFilterBatch(), and SCIPiisGenerate().
gets time in seconds used in the IIS calculations
gets time in seconds used in the IIS
| iis | IIS |
Definition at line 879 of file iisfinder.c.
References assert(), SCIP_IIS::iistime, NULL, SCIP_Real, and SCIPclockGetTime().
Referenced by additionFilterBatch(), deletionFilterBatch(), execIISfinderGreedy(), SCIPiisfinderInfoMessage(), SCIPiisGenerate(), SCIPiisGreedyMakeIrreducible(), and setLimits().
Gets whether the IIS subscip is currently infeasible.
| iis | IIS data structure |
Definition at line 889 of file iisfinder.c.
References assert(), SCIP_IIS::infeasible, NULL, and SCIP_Bool.
Referenced by additionFilterBatch(), deletionFilterBatch(), and SCIPiisGreedyMakeIrreducible().
Gets whether the IIS subscip is irreducible.
| iis | IIS data structure |
Definition at line 899 of file iisfinder.c.
References assert(), SCIP_IIS::irreducible, NULL, and SCIP_Bool.
| SCIP_Longint SCIPiisGetNNodes | ( | SCIP_IIS * | iis | ) |
Gets the number of nodes in the IIS solve.
| iis | IIS data structure |
Definition at line 909 of file iisfinder.c.
References assert(), SCIP_IIS::nnodes, NULL, and SCIP_Longint.
Referenced by additionFilterBatch(), deletionFilterBatch(), execIISfinderGreedy(), SCIPiisfinderInfoMessage(), SCIPiisGenerate(), SCIPiisGreedyMakeIrreducible(), and setLimits().
Sets the flag that states whether the IIS subscip is currently infeasible.
| iis | IIS data structure |
| infeasible | The new infeasibility status of the IIS subscip |
Definition at line 919 of file iisfinder.c.
References assert(), SCIP_IIS::infeasible, NULL, and SCIP_Bool.
Referenced by additionFilterBatch(), and deletionSubproblem().
Sets the flag that states whether the IIS subscip is irreducible.
| iis | IIS data structure |
| irreducible | The new irreducible status of the IIS |
Definition at line 929 of file iisfinder.c.
References assert(), SCIP_IIS::irreducible, NULL, and SCIP_Bool.
Referenced by execIISfinderGreedy(), SCIPiisGenerate(), and SCIPiisGreedyMakeIrreducible().
| void SCIPiisAddNNodes | ( | SCIP_IIS * | iis, |
| SCIP_Longint | nnodes ) |
Increments the number of nodes in the IIS solve.
| iis | IIS data structure |
| nnodes | The number of nodes to add to the IIS |
Definition at line 939 of file iisfinder.c.
References assert(), nnodes, SCIP_IIS::nnodes, NULL, and SCIP_Longint.
Referenced by additionSubproblem(), and deletionSubproblem().
| SCIP_RANDNUMGEN * SCIPiisGetRandnumgen | ( | SCIP_IIS * | iis | ) |
get the randnumgen of the IIS
| iis | pointer to the IIS |
Definition at line 949 of file iisfinder.c.
References assert(), NULL, and SCIP_IIS::randnumgen.
Referenced by additionFilterBatch(), and deletionFilterBatch().
get the subscip of an IIS
| iis | pointer to the IIS |
Definition at line 958 of file iisfinder.c.
References assert(), NULL, and SCIP_IIS::subscip.
Referenced by additionFilterBatch(), additionSubproblem(), deletionFilterBatch(), deletionSubproblem(), execIISfinderGreedy(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_DIALOGEXEC(), SCIPiisfinderInfoMessage(), and SCIPiisGreedyMakeIrreducible().
| SCIP_DECL_SORTPTRCOMP | ( | SCIPiisfinderComp | ) |
compares two IIS finders w. r. to their priority
Definition at line 967 of file iisfinder.c.
| SCIP_RETCODE SCIPincludeIISfinder | ( | SCIP * | scip, |
| const char * | name, | ||
| const char * | desc, | ||
| int | priority, | ||
| SCIP_DECL_IISFINDERCOPY((*iisfindercopy)) | , | ||
| SCIP_DECL_IISFINDERFREE((*iisfinderfree)) | , | ||
| SCIP_DECL_IISFINDEREXEC((*iisfinderexec)) | , | ||
| SCIP_IISFINDERDATA * | iisfinderdata ) |
creates an IIS finder and includes it in SCIP
| scip | SCIP data structure |
| name | name of IIS finder |
| desc | description of IIS finder |
| priority | priority of the IIS finder |
| iisfinderdata | IIS finder data |
Definition at line 48 of file scip_iisfinder.c.
References FALSE, NULL, SCIP_CALL, SCIP_DECL_IISFINDERCOPY, SCIP_DECL_IISFINDEREXEC, SCIP_DECL_IISFINDERFREE, SCIP_INVALIDDATA, SCIP_OKAY, SCIPcheckStage, SCIPerrorMessage, SCIPfindIISfinder(), SCIPiisfinderCreate(), SCIPsetIncludeIISfinder(), and TRUE.
Referenced by SCIPincludeObjIISfinder().
| SCIP_RETCODE SCIPincludeIISfinderBasic | ( | SCIP * | scip, |
| SCIP_IISFINDER ** | iisfinder, | ||
| const char * | name, | ||
| const char * | desc, | ||
| int | priority, | ||
| SCIP_DECL_IISFINDEREXEC((*iisfinderexec)) | , | ||
| SCIP_IISFINDERDATA * | iisfinderdata ) |
Creates an IIS finder and includes it in SCIP with its most fundamental callbacks.
All non-fundamental (or optional) callbacks as, e.g., copy and free callbacks, will be set to NULL. Optional callbacks can be set via specific setter functions, see SCIPsetIISfinderCopy() and SCIPsetIISfinderFree(),
Creates an IIS finder and includes it in SCIP with its most fundamental callbacks.
All non-fundamental (or optional) callbacks as, e.g., copy and free callbacks, will be set to NULL. Optional callbacks can be set via specific setter functions, see SCIPsetIISfinderCopy(), and SCIPsetIISfinderFree()
| scip | SCIP data structure |
| iisfinder | reference to an IIS finder, or NULL |
| name | name of IIS finder |
| desc | description of IIS finder |
| priority | priority of the IIS finder in standard mode |
| iisfinderdata | IIS finder data |
Definition at line 84 of file scip_iisfinder.c.
References FALSE, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPcheckStage, SCIPerrorMessage, SCIPfindIISfinder(), SCIPiisfinderCreate(), SCIPsetIncludeIISfinder(), and TRUE.
Referenced by SCIPincludeIISfinderGreedy().
| SCIP_RETCODE SCIPsetIISfinderCopy | ( | SCIP * | scip, |
| SCIP_IISFINDER * | iisfinder ) |
sets copy method of IIS finder
| scip | SCIP data structure |
| iisfinder | IIS finder copy method of IIS finder or NULL if you don't want to copy your plugin into sub-SCIPs |
Definition at line 116 of file scip_iisfinder.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_DECL_IISFINDERCOPY, SCIP_OKAY, SCIPcheckStage, SCIPiisfinderSetCopy(), and TRUE.
Referenced by SCIPincludeIISfinderGreedy().
| SCIP_RETCODE SCIPsetIISfinderFree | ( | SCIP * | scip, |
| SCIP_IISFINDER * | iisfinder ) |
sets destructor method of IIS finder
Definition at line 132 of file scip_iisfinder.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_DECL_IISFINDERFREE, SCIP_OKAY, SCIPcheckStage, SCIPiisfinderSetFree(), and TRUE.
Referenced by SCIPincludeIISfinderGreedy().
| SCIP_RETCODE SCIPgenerateIIS | ( | SCIP * | scip | ) |
the execution method that iterates over the IIS finder plugins
Definition at line 148 of file scip_iisfinder.c.
References assert(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPiisGenerate().
Referenced by SCIP_DECL_DIALOGEXEC().
| SCIP_IISFINDER * SCIPfindIISfinder | ( | SCIP * | scip, |
| const char * | name ) |
returns the IIS finder of the given name, or NULL if not existing
Definition at line 159 of file scip_iisfinder.c.
References assert(), NULL, and SCIPsetFindIISfinder().
Referenced by SCIPfindObjIISfinder(), SCIPincludeIISfinder(), and SCIPincludeIISfinderBasic().
| SCIP_IISFINDER ** SCIPgetIISfinders | ( | SCIP * | scip | ) |
returns the array of currently available IIS finders
Definition at line 172 of file scip_iisfinder.c.
References assert(), NULL, and SCIPsetSortIISfinders().
| int SCIPgetNIISfinders | ( | SCIP * | scip | ) |
| SCIP_RETCODE SCIPsetIISfinderPriority | ( | SCIP * | scip, |
| SCIP_IISFINDER * | iisfinder, | ||
| int | priority ) |
sets the priority of an IIS finder
Definition at line 196 of file scip_iisfinder.c.
References assert(), NULL, SCIP_OKAY, and SCIPiisfinderSetPriority().
Referenced by SCIP_DECL_PARAMCHGD().
Gets the IIS storage.
scip is in one of the following stages:
See SCIP_STAGE for a complete list of all possible solving stages.
Definition at line 232 of file scip_iisfinder.c.
References FALSE, SCIP_CALL_ABORT, SCIPcheckStage, and TRUE.
Referenced by SCIP_DECL_DIALOGEXEC(), SCIP_DECL_DIALOGEXEC(), and SCIPiisGenerate().