public methods for conflict analysis
SCIP_DECL_SORTPTRCOMP | ( | SCIPconflicthdlrComp | ) |
compares two conflict handlers w. r. to their priority
Definition at line 362 of file conflict.c.
References i.
SCIP_DECL_SORTPTRCOMP | ( | SCIPconflicthdlrCompName | ) |
comparison method for sorting conflict handler w.r.t. to their name
Definition at line 368 of file conflict.c.
References i, and SCIPconflicthdlrGetName().
SCIP_CONFLICTHDLRDATA * SCIPconflicthdlrGetData | ( | SCIP_CONFLICTHDLR * | conflicthdlr | ) |
gets user data of conflict handler
conflicthdlr | conflict handler |
Definition at line 685 of file conflict.c.
References assert(), i, and NULL.
Referenced by SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONFLICTFREE(), and SCIP_DECL_CONFLICTFREE().
void SCIPconflicthdlrSetData | ( | SCIP_CONFLICTHDLR * | conflicthdlr, |
SCIP_CONFLICTHDLRDATA * | conflicthdlrdata ) |
sets user data of conflict handler; user has to free old data in advance!
conflicthdlr | conflict handler |
conflicthdlrdata | new conflict handler user data |
Definition at line 695 of file conflict.c.
const char * SCIPconflicthdlrGetName | ( | SCIP_CONFLICTHDLR * | conflicthdlr | ) |
gets name of conflict handler
conflicthdlr | conflict handler |
Definition at line 772 of file conflict.c.
References assert(), i, and NULL.
Referenced by conflictAddConflictCons(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONFLICTFREE(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_SORTPTRCOMP(), SCIPconflicthdlrCopyInclude(), SCIPincludeDialogDefaultFix(), and SCIPincludeDialogDefaultSet().
const char * SCIPconflicthdlrGetDesc | ( | SCIP_CONFLICTHDLR * | conflicthdlr | ) |
gets description of conflict handler
conflicthdlr | conflict handler |
Definition at line 782 of file conflict.c.
References assert(), i, and NULL.
Referenced by SCIP_DECL_DIALOGEXEC(), SCIPincludeDialogDefaultFix(), and SCIPincludeDialogDefaultSet().
int SCIPconflicthdlrGetPriority | ( | SCIP_CONFLICTHDLR * | conflicthdlr | ) |
gets priority of conflict handler
conflicthdlr | conflict handler |
Definition at line 792 of file conflict.c.
References assert(), i, and NULL.
Referenced by conflictAddConflictCons(), and SCIP_DECL_DIALOGEXEC().
SCIP_Bool SCIPconflicthdlrIsInitialized | ( | SCIP_CONFLICTHDLR * | conflicthdlr | ) |
is conflict handler initialized?
conflicthdlr | conflict handler |
Definition at line 816 of file conflict.c.
SCIP_Real SCIPconflicthdlrGetSetupTime | ( | SCIP_CONFLICTHDLR * | conflicthdlr | ) |
gets time in seconds used in this conflict handler for setting up for next stages
conflicthdlr | conflict handler |
Definition at line 838 of file conflict.c.
References assert(), i, NULL, and SCIPclockGetTime().
SCIP_Real SCIPconflicthdlrGetTime | ( | SCIP_CONFLICTHDLR * | conflicthdlr | ) |
gets time in seconds used in this conflict handler
conflicthdlr | conflict handler |
Definition at line 848 of file conflict.c.
References assert(), i, NULL, and SCIPclockGetTime().
return TRUE if conflict analysis is applicable; In case the function return FALSE there is no need to initialize the conflict analysis since it will not be applied
scip | SCIP data structure |
Definition at line 301 of file scip_conflict.c.
References FALSE, SCIP_CALL_ABORT, SCIPcheckStage(), SCIPconflictApplicable(), SCIPgetDepth(), and TRUE.
Referenced by analyseInfeasibelCoreInsertion(), analyzeConflict(), analyzeConflict(), analyzeConflict(), analyzeConflict(), analyzeConflict(), analyzeConflict(), analyzeConflictLowerbound(), analyzeConflictOne(), analyzeConflictOne(), analyzeConflictOne(), analyzeConflictOverload(), analyzeConflictRangedRow(), analyzeConflictUpperbound(), analyzeConflictZero(), analyzeConflictZero(), analyzeConflictZero(), analyzeGenVBoundConflict(), inferboundsEdgeFinding(), processBinvarFixings(), propagateCons(), propagateCutoffbound(), propagateCutoffboundBinvar(), propagateLbTTEF(), propagatePackingPartitioningCons(), propagateTTEF(), propagateUbTTEF(), propIndicator(), propVariables(), propVariables(), SCIPaddRow(), tightenedLinkvar(), tightenLbTTEF(), and tightenUbTTEF().
SCIP_RETCODE SCIPinitConflictAnalysis | ( | SCIP * | scip, |
SCIP_CONFTYPE | conftype, | ||
SCIP_Bool | iscutoffinvolved ) |
initializes the conflict analysis by clearing the conflict candidate queue; this method must be called before you enter the conflict variables by calling SCIPaddConflictLb(), SCIPaddConflictUb(), SCIPaddConflictBd(), SCIPaddConflictRelaxedLb(), SCIPaddConflictRelaxedUb(), SCIPaddConflictRelaxedBd(), or SCIPaddConflictBinvar();
scip | SCIP data structure |
conftype | type of conflict |
iscutoffinvolved | is the current cutoff bound involved? |
Definition at line 323 of file scip_conflict.c.
References FALSE, i, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPconflictInit(), and TRUE.
Referenced by analyseInfeasibelCoreInsertion(), analyzeConflict(), analyzeConflict(), analyzeConflict(), analyzeConflict(), analyzeConflict(), analyzeConflict(), analyzeConflictLowerbound(), analyzeConflictOne(), analyzeConflictOne(), analyzeConflictOne(), analyzeConflictOverload(), analyzeConflictRangedRow(), analyzeConflictUpperbound(), analyzeConflictZero(), analyzeConflictZero(), analyzeConflictZero(), analyzeGenVBoundConflict(), applyOptcumulative(), inferboundsEdgeFinding(), processBinvarFixings(), propagateCons(), propagateCutoffbound(), propagateCutoffboundBinvar(), propagateLbTTEF(), propagatePackingPartitioningCons(), propagateTTEF(), propagateUbTTEF(), propIndicator(), propVariables(), propVariables(), SCIP_DECL_CONSPROP(), SCIPaddRow(), solveSubproblem(), tightenedLinkvar(), tightenLbTTEF(), and tightenUbTTEF().
SCIP_RETCODE SCIPaddConflictLb | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_BDCHGIDX * | bdchgidx ) |
adds lower bound of variable at the time of the given bound change index to the conflict analysis' candidate storage; this method should be called in one of the following two cases:
scip | SCIP data structure |
var | variable whose lower bound should be added to conflict candidate queue |
bdchgidx | bound change index representing time on path to current node, when the conflicting bound was valid, NULL for current local bound |
Definition at line 352 of file scip_conflict.c.
References assert(), FALSE, SCIP_Var::scip, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPconflictAddBound(), TRUE, and var.
Referenced by addConflictBinvar(), addConflictBounds(), addConflictBounds(), addConflictBounds(), addConflictFixedVars(), addConflictReasonVars(), analyseInfeasibelCoreInsertion(), analyzeConflict(), analyzeConflict(), analyzeConflictOverload(), analyzeConflictUpperbound(), analyzeEnergyRequirement(), applyOptcumulative(), inferboundsEdgeFinding(), propagateTTEF(), propIndicator(), resolvePropagation(), resolvePropagation(), resolvePropagation(), resolvePropagationCoretimes(), respropCumulativeCondition(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIPaddRow(), solveSubproblem(), tightenedLinkvar(), and tightenUbTTEF().
SCIP_RETCODE SCIPaddConflictRelaxedLb | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_BDCHGIDX * | bdchgidx, | ||
SCIP_Real | relaxedlb ) |
adds lower bound of variable at the time of the given bound change index to the conflict analysis' candidate storage with the additional information of a relaxed lower bound; this relaxed lower bound is the one which would be enough to explain a certain bound change; this method should be called in one of the following two cases:
scip | SCIP data structure |
var | variable whose lower bound should be added to conflict candidate queue |
bdchgidx | bound change index representing time on path to current node, when the conflicting bound was valid, NULL for current local bound |
relaxedlb | the relaxed lower bound |
Definition at line 386 of file scip_conflict.c.
References assert(), FALSE, i, SCIP_Var::scip, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPconflictAddRelaxedBound(), TRUE, and var.
Referenced by analyseInfeasibelCoreInsertion(), analyzeConflict(), analyzeConflictOverload(), analyzeConflictUpperbound(), analyzeEnergyRequirement(), analyzeGenVBoundConflict(), relaxVbdvar(), resolveGenVBoundPropagation(), resolvePropagation(), resolvePropagationCoretimes(), and respropCumulativeCondition().
SCIP_RETCODE SCIPaddConflictUb | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_BDCHGIDX * | bdchgidx ) |
adds upper bound of variable at the time of the given bound change index to the conflict analysis' candidate storage; this method should be called in one of the following two cases:
scip | SCIP data structure |
var | variable whose upper bound should be added to conflict candidate queue |
bdchgidx | bound change index representing time on path to current node, when the conflicting bound was valid, NULL for current local bound |
Definition at line 419 of file scip_conflict.c.
References assert(), FALSE, SCIP_Var::scip, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPconflictAddBound(), TRUE, and var.
Referenced by addConflictBinvar(), addConflictBounds(), addConflictBounds(), addConflictBounds(), addConflictFixedVars(), addConflictReasonVars(), analyseInfeasibelCoreInsertion(), analyzeConflict(), analyzeConflict(), analyzeConflictLowerbound(), analyzeConflictOverload(), analyzeEnergyRequirement(), applyOptcumulative(), inferboundsEdgeFinding(), propagateLbTTEF(), propagateUbTTEF(), resolvePropagation(), resolvePropagation(), resolvePropagation(), resolvePropagationCoretimes(), respropCumulativeCondition(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIPaddRow(), solveSubproblem(), tightenedLinkvar(), and tightenLbTTEF().
SCIP_RETCODE SCIPaddConflictRelaxedUb | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_BDCHGIDX * | bdchgidx, | ||
SCIP_Real | relaxedub ) |
adds upper bound of variable at the time of the given bound change index to the conflict analysis' candidate storage with the additional information of a relaxed upper bound; this relaxed upper bound is the one which would be enough to explain a certain bound change; this method should be called in one of the following two cases:
scip | SCIP data structure |
var | variable whose upper bound should be added to conflict candidate queue |
bdchgidx | bound change index representing time on path to current node, when the conflicting bound was valid, NULL for current local bound |
relaxedub | the relaxed upper bound |
Definition at line 454 of file scip_conflict.c.
References assert(), FALSE, i, SCIP_Var::scip, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPconflictAddRelaxedBound(), TRUE, and var.
Referenced by analyseInfeasibelCoreInsertion(), analyzeConflict(), analyzeConflictLowerbound(), analyzeConflictOverload(), analyzeEnergyRequirement(), analyzeGenVBoundConflict(), relaxVbdvar(), resolveGenVBoundPropagation(), resolvePropagation(), resolvePropagationCoretimes(), and respropCumulativeCondition().
SCIP_RETCODE SCIPaddConflictBd | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_BOUNDTYPE | boundtype, | ||
SCIP_BDCHGIDX * | bdchgidx ) |
adds lower or upper bound of variable at the time of the given bound change index to the conflict analysis' candidate storage; this method should be called in one of the following two cases:
scip | SCIP data structure |
var | variable whose upper bound should be added to conflict candidate queue |
boundtype | the type of the conflicting bound (lower or upper bound) |
bdchgidx | bound change index representing time on path to current node, when the conflicting bound was valid, NULL for current local bound |
Definition at line 487 of file scip_conflict.c.
References assert(), FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPconflictAddBound(), TRUE, and var.
Referenced by analyzeConflict(), and SCIP_DECL_CONSRESPROP().
SCIP_RETCODE SCIPaddConflictRelaxedBd | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_BOUNDTYPE | boundtype, | ||
SCIP_BDCHGIDX * | bdchgidx, | ||
SCIP_Real | relaxedbd ) |
adds lower or upper bound of variable at the time of the given bound change index to the conflict analysis' candidate storage; with the additional information of a relaxed upper bound; this relaxed upper bound is the one which would be enough to explain a certain bound change; this method should be called in one of the following two cases:
scip | SCIP data structure |
var | variable whose upper bound should be added to conflict candidate queue |
boundtype | the type of the conflicting bound (lower or upper bound) |
bdchgidx | bound change index representing time on path to current node, when the conflicting bound was valid, NULL for current local bound |
relaxedbd | the relaxed bound |
Definition at line 522 of file scip_conflict.c.
References assert(), FALSE, i, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPconflictAddRelaxedBound(), TRUE, and var.
SCIP_RETCODE SCIPaddConflictBinvar | ( | SCIP * | scip, |
SCIP_VAR * | var ) |
adds changed bound of fixed binary variable to the conflict analysis' candidate storage; this method should be called in one of the following two cases:
scip | SCIP data structure |
var | binary variable whose changed bound should be added to conflict queue |
Definition at line 556 of file scip_conflict.c.
References assert(), FALSE, NULL, SCIP_Var::scip, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPconflictAddBound(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), TRUE, and var.
Referenced by addConflictBounds(), analyzeConflict(), analyzeConflict(), analyzeConflictOne(), analyzeConflictOne(), analyzeConflictOne(), analyzeConflictZero(), analyzeConflictZero(), analyzeConflictZero(), applyOptcumulative(), processBinvarFixings(), propagateCons(), propagateCons(), propagatePackingPartitioningCons(), propIndicator(), propVariables(), propVariables(), resolvePropagation(), resolvePropagation(), resolvePropagationFullOrbitope(), SCIP_DECL_CONSPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSRESPROP(), solveSubproblem(), and tightenedLinkvar().
SCIP_RETCODE SCIPisConflictVarUsed | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_BOUNDTYPE | boundtype, | ||
SCIP_BDCHGIDX * | bdchgidx, | ||
SCIP_Bool * | used ) |
checks if the given variable is already part of the current conflict set or queued for resolving with the same or even stronger bound
scip | SCIP data structure |
var | variable whose upper bound should be added to conflict candidate queue |
boundtype | the type of the conflicting bound (lower or upper bound) |
bdchgidx | bound change index representing time on path to current node, when the conflicting bound was valid, NULL for current local bound |
used | pointer to store if the variable is already used |
Definition at line 590 of file scip_conflict.c.
References assert(), FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPcheckStage(), SCIPconflictIsVarUsed(), TRUE, and var.
returns the conflict lower bound if the variable is present in the current conflict set; otherwise the global lower bound
scip | SCIP data structure |
var | problem variable |
Definition at line 618 of file scip_conflict.c.
References assert(), FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPcheckStage(), SCIPconflictGetVarLb(), TRUE, and var.
Referenced by analyzeConflict(), analyzeConflictUpperbound(), analyzeEnergyRequirement(), analyzeGenVBoundConflict(), getGenVBoundsMinActivityConflict(), resolveGenVBoundPropagation(), and resolvePropagationCoretimes().
returns the conflict upper bound if the variable is present in the current conflict set; otherwise minus global upper bound
scip | SCIP data structure |
var | problem variable |
Definition at line 642 of file scip_conflict.c.
References assert(), FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPcheckStage(), SCIPconflictGetVarUb(), TRUE, and var.
Referenced by analyzeConflict(), analyzeConflictLowerbound(), analyzeEnergyRequirement(), analyzeGenVBoundConflict(), getGenVBoundsMinActivityConflict(), resolveGenVBoundPropagation(), and resolvePropagationCoretimes().
SCIP_RETCODE SCIPanalyzeConflict | ( | SCIP * | scip, |
int | validdepth, | ||
SCIP_Bool * | success ) |
analyzes conflict bounds that were added after a call to SCIPinitConflictAnalysis() with calls to SCIPaddConflictLb(), SCIPaddConflictUb(), SCIPaddConflictBd(), SCIPaddConflictRelaxedLb(), SCIPaddConflictRelaxedUb(), SCIPaddConflictRelaxedBd(), or SCIPaddConflictBinvar(); on success, calls the conflict handlers to create a conflict constraint out of the resulting conflict set; the given valid depth must be a depth level, at which the conflict set defined by calls to SCIPaddConflictLb(), SCIPaddConflictUb(), SCIPaddConflictBd(), SCIPaddConflictRelaxedLb(), SCIPaddConflictRelaxedUb(), SCIPaddConflictRelaxedBd(), and SCIPaddConflictBinvar() is valid for the whole subtree; if the conflict was found by a violated constraint, use SCIPanalyzeConflictCons() instead of SCIPanalyzeConflict() to make sure, that the correct valid depth is used
scip | SCIP data structure |
validdepth | minimal depth level at which the initial conflict set is valid |
success | pointer to store whether a conflict constraint was created, or NULL |
Definition at line 672 of file scip_conflict.c.
References FALSE, i, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPconflictAnalyze(), and TRUE.
Referenced by analyzeConflictLowerbound(), analyzeConflictUpperbound(), analyzeGenVBoundConflict(), applyOptcumulative(), propagateCutoffbound(), propagateCutoffboundBinvar(), and SCIPaddRow().
SCIP_RETCODE SCIPanalyzeConflictCons | ( | SCIP * | scip, |
SCIP_CONS * | cons, | ||
SCIP_Bool * | success ) |
analyzes conflict bounds that were added with calls to SCIPaddConflictLb(), SCIPaddConflictUb(), SCIPaddConflictBd(), SCIPaddConflictRelaxedLb(), SCIPaddConflictRelaxedUb(), SCIPaddConflictRelaxedBd(), or SCIPaddConflictBinvar(); on success, calls the conflict handlers to create a conflict constraint out of the resulting conflict set; the given constraint must be the constraint that detected the conflict, i.e. the constraint that is infeasible in the local bounds of the initial conflict set (defined by calls to SCIPaddConflictLb(), SCIPaddConflictUb(), SCIPaddConflictBd(), SCIPaddConflictRelaxedLb(), SCIPaddConflictRelaxedUb(), SCIPaddConflictRelaxedBd(), and SCIPaddConflictBinvar())
scip | SCIP data structure |
cons | constraint that detected the conflict |
success | pointer to store whether a conflict constraint was created, or NULL |
Definition at line 703 of file scip_conflict.c.
References FALSE, i, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPconflictAnalyze(), SCIPconsGetValidDepth(), SCIPconsIsActive(), SCIPconsIsGlobal(), and TRUE.
Referenced by analyzeConflict(), analyzeConflict(), analyzeConflict(), analyzeConflict(), analyzeConflict(), analyzeConflict(), analyzeConflictOne(), analyzeConflictOne(), analyzeConflictOne(), analyzeConflictRangedRow(), analyzeConflictZero(), analyzeConflictZero(), analyzeConflictZero(), processBinvarFixings(), propagateCons(), propagateCons(), propagateCons(), propagatePackingPartitioningCons(), propIndicator(), propVariables(), propVariables(), SCIP_DECL_CONSPROP(), solveSubproblem(), and tightenedLinkvar().