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 53 of file presol.c. References SCIPpresolGetName().
method to call, when the priority of a presolver was changed Definition at line 60 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 74 of file presol.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, and SCIPpresolGetName(). Referenced by SCIPsetCopyPlugins().
creates a presolver
Definition at line 92 of file presol.c. References BMSallocMemory, BMSduplicateMemoryArray, FALSE, NULL, paramname, SCIP_ALLOC, SCIP_CALL, SCIP_CLOCKTYPE_DEFAULT, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIP_PRESOLTIMING_ALWAYS, SCIP_PRESOLTIMING_EXHAUSTIVE, SCIP_PRESOLTIMING_FAST, SCIP_PRESOLTIMING_MEDIUM, SCIPclockCreate(), SCIPmessagePrintError(), SCIPsetAddIntParam(), SCIPsnprintf(), and TRUE. Referenced by SCIPincludePresol(), and SCIPincludePresolBasic().
frees memory of presolver
Definition at line 167 of file presol.c. References BMSfreeMemory, BMSfreeMemoryArray, NULL, SCIP_CALL, SCIP_OKAY, and SCIPclockFree().
initializes presolver
Definition at line 193 of file presol.c. References 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, and TRUE. Referenced by SCIPsetIncludeExternalCode().
deinitializes presolver
Definition at line 252 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 SCIPsetInitPlugins().
informs presolver that the presolving process is being started
Definition at line 283 of file presol.c. References 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(), and SCIP_Presol::setuptime. Referenced by SCIPsetExitPlugins().
informs presolver that the presolving process is finished
Definition at line 318 of file presol.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPclockStart(), SCIPclockStop(), and SCIP_Presol::setuptime. Referenced by SCIPsetExitPlugins().
executes presolver
Definition at line 342 of file presol.c. References 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_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_INVALIDRESULT, SCIP_OKAY, SCIP_SUCCESS, SCIP_UNBOUNDED, SCIPclockStart(), SCIPclockStop(), SCIPdebugMessage, SCIPerrorMessage, and SCIP_Presol::timing. Referenced by presolveRound().
gets user data of presolver
Definition at line 466 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 476 of file presol.c. References NULL, and SCIP_Presol::presoldata. Referenced by SCIP_DECL_PRESOLFREE().
sets copy method of presolver
Definition at line 487 of file presol.c. References NULL. Referenced by SCIPsetPresolCopy().
sets destructor method of presolver
Definition at line 498 of file presol.c. References NULL. Referenced by SCIPsetPresolFree().
sets initialization method of presolver
Definition at line 509 of file presol.c. References NULL. Referenced by SCIPsetPresolInit().
sets deinitialization method of presolver
Definition at line 520 of file presol.c. References NULL. Referenced by SCIPsetPresolExit().
sets solving process initialization method of presolver
Definition at line 531 of file presol.c. References NULL. Referenced by SCIPsetPresolInitpre().
sets solving process deinitialization method of presolver
Definition at line 542 of file presol.c. References NULL. Referenced by SCIPsetPresolExitpre().
gets name of presolver
Definition at line 553 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 SCIPsetSortConflicthdlrs().
gets description of presolver
Definition at line 563 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 573 of file presol.c. References NULL, and SCIP_Presol::priority. Referenced by presolveRound(), and SCIP_DECL_DIALOGEXEC().
gets round limit of presolver
Definition at line 583 of file presol.c. References SCIP_Presol::maxrounds, and NULL. Referenced by SCIP_DECL_DIALOGEXEC().
sets priority of presolver
Definition at line 593 of file presol.c. References FALSE, NULL, and SCIP_Presol::priority. Referenced by SCIPsetPresolPriority().
gets the timing mask of the presolver
Definition at line 607 of file presol.c. References NULL, and SCIP_Presol::timing. Referenced by SCIP_DECL_DIALOGEXEC().
sets the timing mask of the presolver
Definition at line 617 of file presol.c. References NULL, and SCIP_Presol::timing.
is presolver initialized?
Definition at line 629 of file presol.c. References SCIP_Presol::initialized, and NULL.
enables or disables all clocks of
Definition at line 639 of file presol.c. References NULL, SCIP_Presol::presolclock, SCIPclockEnableOrDisable(), and SCIP_Presol::setuptime. Referenced by SCIPsetSetReoptimizationParams().
gets time in seconds used in this presolver for setting up for next stages
Definition at line 651 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 661 of file presol.c. References NULL, SCIP_Presol::presolclock, and SCIPclockGetTime(). Referenced by printPresolverStatistics().
gets number of variables fixed in presolver
Definition at line 671 of file presol.c. References SCIP_Presol::nfixedvars, and NULL. Referenced by printPresolverStatistics().
gets number of variables aggregated in presolver
Definition at line 681 of file presol.c. References SCIP_Presol::naggrvars, and NULL. Referenced by printPresolverStatistics().
gets number of variable types changed in presolver
Definition at line 691 of file presol.c. References SCIP_Presol::nchgvartypes, and NULL. Referenced by printPresolverStatistics().
gets number of bounds changed in presolver
Definition at line 701 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 711 of file presol.c. References SCIP_Presol::naddholes, and NULL. Referenced by printPresolverStatistics().
gets number of constraints deleted in presolver
Definition at line 721 of file presol.c. References SCIP_Presol::ndelconss, and NULL. Referenced by printPresolverStatistics().
gets number of constraints added in presolver
Definition at line 731 of file presol.c. References SCIP_Presol::naddconss, and NULL. Referenced by printPresolverStatistics().
gets number of constraints upgraded in presolver
Definition at line 741 of file presol.c. References NULL, and SCIP_Presol::nupgdconss.
gets number of coefficients changed in presolver
Definition at line 751 of file presol.c. References SCIP_Presol::nchgcoefs, and NULL. Referenced by printPresolverStatistics().
gets number of constraint sides changed in presolver
Definition at line 761 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 771 of file presol.c. References SCIP_Presol::ncalls, and NULL. Referenced by fillDigraph(), and printPresolverStatistics(). |