All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
presol.c File Reference Detailed Descriptionmethods for presolvers Definition in file presol.c. #include <assert.h> #include <string.h> #include "scip/def.h" #include "blockmemshell/memory.h" #include "scip/set.h" #include "scip/clock.h" #include "scip/paramset.h" #include "scip/scip.h" #include "scip/pub_misc.h" #include "scip/presol.h" #include "scip/struct_presol.h" Go to the source code of this file. Function Documentation
comparison method for sorting presolvers w.r.t. to their name Definition at line 51 of file presol.c. References SCIPpresolGetName().
method to call, when the priority of a presolver was changed Definition at line 58 of file presol.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPparamGetData(), SCIPparamGetInt(), and SCIPsetPresolPriority().
copies the given presolver to a new scip
Definition at line 72 of file presol.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, and SCIPpresolGetName(). Referenced by SCIPsetCopyPlugins().
creates a presolver
Definition at line 90 of file presol.c. References BMSallocMemory, BMSduplicateMemoryArray, FALSE, NULL, paramname, SCIP_ALLOC, SCIP_CALL, SCIP_CLOCKTYPE_DEFAULT, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPclockCreate(), SCIPsetAddBoolParam(), SCIPsetAddIntParam(), SCIPsnprintf(), and TRUE. Referenced by SCIPincludePresol(), and SCIPincludePresolBasic().
frees memory of presolver
Definition at line 154 of file presol.c. References BMSfreeMemory, BMSfreeMemoryArray, NULL, SCIP_CALL, SCIP_OKAY, and SCIPclockFree(). Referenced by SCIPsetFree().
initializes presolver
Definition at line 180 of file presol.c. References FALSE, SCIP_Presol::initialized, SCIP_Presol::lastnaddconss, SCIP_Presol::lastnaddholes, SCIP_Presol::lastnaggrvars, SCIP_Presol::lastnchgbds, SCIP_Presol::lastnchgcoefs, SCIP_Presol::lastnchgsides, SCIP_Presol::lastnchgvartypes, SCIP_Presol::lastndelconss, SCIP_Presol::lastnfixedvars, SCIP_Presol::lastnupgdconss, SCIP_Presol::naddconss, SCIP_Presol::naddholes, SCIP_Presol::naggrvars, SCIP_Presol::name, SCIP_Presol::ncalls, SCIP_Presol::nchgbds, SCIP_Presol::nchgcoefs, SCIP_Presol::nchgsides, SCIP_Presol::nchgvartypes, SCIP_Presol::ndelconss, SCIP_Presol::nfixedvars, NULL, SCIP_Presol::nupgdconss, SCIP_Presol::presolclock, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPclockReset(), SCIPclockStart(), SCIPclockStop(), SCIPerrorMessage, SCIP_Presol::setuptime, TRUE, and SCIP_Presol::wasdelayed. Referenced by SCIPsetInitPlugins().
deinitializes presolver
Definition at line 240 of file presol.c. References FALSE, SCIP_Presol::initialized, SCIP_Presol::name, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPclockStart(), SCIPclockStop(), SCIPerrorMessage, and SCIP_Presol::setuptime. Referenced by SCIPsetExitPlugins().
informs presolver that the presolving process is being started
Definition at line 271 of file presol.c. References FALSE, SCIP_Presol::lastnaddconss, SCIP_Presol::lastnaddholes, SCIP_Presol::lastnaggrvars, SCIP_Presol::lastnchgbds, SCIP_Presol::lastnchgcoefs, SCIP_Presol::lastnchgsides, SCIP_Presol::lastnchgvartypes, SCIP_Presol::lastndelconss, SCIP_Presol::lastnfixedvars, SCIP_Presol::lastnupgdconss, NULL, SCIP_CALL, SCIP_OKAY, SCIPclockStart(), SCIPclockStop(), SCIP_Presol::setuptime, and SCIP_Presol::wasdelayed. Referenced by SCIPsetInitprePlugins().
informs presolver that the presolving process is finished
Definition at line 307 of file presol.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPclockStart(), SCIPclockStop(), and SCIP_Presol::setuptime. Referenced by SCIPsetExitprePlugins().
executes presolver
Definition at line 331 of file presol.c. References SCIP_Presol::delay, SCIP_Presol::lastnaddconss, SCIP_Presol::lastnaddholes, SCIP_Presol::lastnaggrvars, SCIP_Presol::lastnchgbds, SCIP_Presol::lastnchgcoefs, SCIP_Presol::lastnchgsides, SCIP_Presol::lastnchgvartypes, SCIP_Presol::lastndelconss, SCIP_Presol::lastnfixedvars, SCIP_Presol::lastnupgdconss, SCIP_Presol::maxrounds, SCIP_Presol::naddconss, SCIP_Presol::naddholes, SCIP_Presol::naggrvars, SCIP_Presol::name, SCIP_Presol::ncalls, SCIP_Presol::nchgbds, SCIP_Presol::nchgcoefs, SCIP_Presol::nchgsides, SCIP_Presol::nchgvartypes, SCIP_Presol::ndelconss, SCIP_Presol::nfixedvars, NULL, SCIP_Presol::nupgdconss, SCIP_Presol::presolclock, SCIP_CALL, SCIP_CUTOFF, SCIP_DELAYED, SCIP_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_INVALIDRESULT, SCIP_OKAY, SCIP_SUCCESS, SCIP_UNBOUNDED, SCIPclockStart(), SCIPclockStop(), SCIPdebugMessage, SCIPerrorMessage, and SCIP_Presol::wasdelayed. Referenced by presolveRound().
gets user data of presolver
Definition at line 464 of file presol.c. References NULL, and SCIP_Presol::presoldata. Referenced by presolComponents(), SCIP_DECL_PRESOLCOPY(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PRESOLEXIT(), SCIP_DECL_PRESOLEXITPRE(), SCIP_DECL_PRESOLFREE(), SCIP_DECL_PRESOLINIT(), SCIP_DECL_PRESOLINITPRE(), SCIPfindObjPresol(), and SCIPgetObjPresol().
sets user data of presolver; user has to free old data in advance!
Definition at line 474 of file presol.c. References NULL, and SCIP_Presol::presoldata. Referenced by SCIP_DECL_PRESOLFREE().
sets copy method of presolver
Definition at line 485 of file presol.c. References NULL. Referenced by SCIPsetPresolCopy().
sets destructor method of presolver
Definition at line 496 of file presol.c. References NULL. Referenced by SCIPsetPresolFree().
sets initialization method of presolver
Definition at line 507 of file presol.c. References NULL. Referenced by SCIPsetPresolInit().
sets deinitialization method of presolver
Definition at line 518 of file presol.c. References NULL. Referenced by SCIPsetPresolExit().
sets solving process initialization method of presolver
Definition at line 529 of file presol.c. References NULL. Referenced by SCIPsetPresolInitpre().
sets solving process deinitialization method of presolver
Definition at line 540 of file presol.c. References NULL. Referenced by SCIPsetPresolExitpre().
gets name of presolver
Definition at line 551 of file presol.c. References SCIP_Presol::name, and NULL. Referenced by paramsetSetPresolvingDefault(), paramsetSetPresolvingOff(), presolveRound(), printPresolverStatistics(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_PRESOLCOPY(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_SORTPTRCOMP(), SCIPincludeDialogDefaultFix(), SCIPincludeDialogDefaultSet(), SCIPpresolCopyInclude(), and SCIPsetFindPresol().
gets description of presolver
Definition at line 561 of file presol.c. References SCIP_Presol::desc, and NULL. Referenced by SCIP_DECL_DIALOGEXEC(), SCIPincludeDialogDefaultFix(), and SCIPincludeDialogDefaultSet().
gets priority of presolver
Definition at line 571 of file presol.c. References NULL, and SCIP_Presol::priority. Referenced by presolveRound(), and SCIP_DECL_DIALOGEXEC().
sets priority of presolver
Definition at line 581 of file presol.c. References FALSE, NULL, and SCIP_Presol::priority. Referenced by SCIPsetPresolPriority().
should presolver be delayed, if other presolvers found reductions?
Definition at line 595 of file presol.c. References SCIP_Presol::delay, and NULL. Referenced by SCIP_DECL_DIALOGEXEC().
was presolver delayed at the last call?
Definition at line 605 of file presol.c. References NULL, and SCIP_Presol::wasdelayed. Referenced by presolveRound().
is presolver initialized?
Definition at line 615 of file presol.c. References SCIP_Presol::initialized, and NULL.
gets time in seconds used in this presolver for setting up for next stages
Definition at line 625 of file presol.c. References NULL, SCIPclockGetTime(), and SCIP_Presol::setuptime. Referenced by printPresolverStatistics().
gets time in seconds used in this presolver
Definition at line 635 of file presol.c. References NULL, SCIP_Presol::presolclock, and SCIPclockGetTime(). Referenced by printPresolverStatistics().
gets number of variables fixed in presolver
Definition at line 645 of file presol.c. References SCIP_Presol::nfixedvars, and NULL. Referenced by printPresolverStatistics().
gets number of variables aggregated in presolver
Definition at line 655 of file presol.c. References SCIP_Presol::naggrvars, and NULL. Referenced by printPresolverStatistics().
gets number of variable types changed in presolver
Definition at line 665 of file presol.c. References SCIP_Presol::nchgvartypes, and NULL. Referenced by printPresolverStatistics().
gets number of bounds changed in presolver
Definition at line 675 of file presol.c. References SCIP_Presol::nchgbds, and NULL. Referenced by printPresolverStatistics().
gets number of holes added to domains of variables in presolver
Definition at line 685 of file presol.c. References SCIP_Presol::naddholes, and NULL. Referenced by printPresolverStatistics().
gets number of constraints deleted in presolver
Definition at line 695 of file presol.c. References SCIP_Presol::ndelconss, and NULL. Referenced by printPresolverStatistics().
gets number of constraints added in presolver
Definition at line 705 of file presol.c. References SCIP_Presol::naddconss, and NULL. Referenced by printPresolverStatistics().
gets number of constraints upgraded in presolver
Definition at line 715 of file presol.c. References NULL, and SCIP_Presol::nupgdconss.
gets number of coefficients changed in presolver
Definition at line 725 of file presol.c. References SCIP_Presol::nchgcoefs, and NULL. Referenced by printPresolverStatistics().
gets number of constraint sides changed in presolver
Definition at line 735 of file presol.c. References SCIP_Presol::nchgsides, and NULL. Referenced by printPresolverStatistics().
gets number of times the presolver was called and tried to find reductions
Definition at line 745 of file presol.c. References SCIP_Presol::ncalls, and NULL. Referenced by printPresolverStatistics(). |