All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Detailed Descriptionconstraint handler for counting feasible solutions If this constraint handler is activated than it counts or collects all feasible solutions. We refer to How to use SCIP to count/enumerate feasible solutions for more details about using SCIP for counting feasible solutions. Definition in file cons_countsols.c. #include <string.h> #include "scip/cons_and.h" #include "scip/cons_knapsack.h" #include "scip/cons_bounddisjunction.h" #include "scip/cons_logicor.h" #include "scip/cons_setppc.h" #include "scip/cons_varbound.h" #include "scip/cons_countsols.h" #include "scip/dialog_default.h" Go to the source code of this file.
Macro Definition Documentation
Definition at line 52 of file cons_countsols.c. Referenced by checkFeasSubtree(), includeConshdlrCountsols(), SCIP_DECL_CONSEXIT(), SCIP_DECL_CONSEXITSOL(), SCIP_DECL_CONSFREE(), SCIP_DECL_CONSHDLRCOPY(), SCIP_DECL_CONSINIT(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_DISPOUTPUT(), SCIPcount(), SCIPgetCountedSparseSols(), SCIPgetNCountedFeasSubtrees(), SCIPgetNCountedSols(), and SCIPgetNCountedSolsstr().
Definition at line 53 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
priority of the constraint handler for constraint enforcing Definition at line 54 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
priority of the constraint handler for checking feasibility Definition at line 55 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
frequency for using all instead of only the useful constraints in separation, propagation and enforcement, -1 for no eager evaluations, 0 for first only Definition at line 56 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
should the constraint handler be skipped, if no constraints are available? Definition at line 58 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
sparse test on or off Definition at line 61 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
is it allowed to discard solutions Definition at line 62 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
is the constraint handler active Definition at line 63 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
should the solutions be collected Definition at line 64 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
counting stops, if the given number of solutions were found (-1: no limit) Definition at line 65 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
Definition at line 68 of file cons_countsols.c. Referenced by includeConshdlrCountsols(), and SCIP_DECL_DISPOUTPUT().
Definition at line 69 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
Definition at line 70 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
Definition at line 71 of file cons_countsols.c. Referenced by includeConshdlrCountsols(), and SCIP_DECL_DISPOUTPUT().
Definition at line 72 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
Definition at line 73 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
Definition at line 74 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
Definition at line 76 of file cons_countsols.c. Referenced by includeConshdlrCountsols(), and SCIP_DECL_DISPOUTPUT().
Definition at line 77 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
Definition at line 78 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
Definition at line 79 of file cons_countsols.c. Referenced by includeConshdlrCountsols(), and SCIP_DECL_DISPOUTPUT().
Definition at line 80 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
Definition at line 81 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
Definition at line 82 of file cons_countsols.c. Referenced by includeConshdlrCountsols().
creates and adds a constraint which cuts off the solution from the feasibility region input:
Definition at line 92 of file cons_countsols.c.
Definition at line 1366 of file cons_countsols.c. Referenced by includeConshdlrCountsols(). Typedef Documentation
Definition at line 48 of file cons_countsols.c. Function Documentation
allocates memory for the value pointer
Definition at line 133 of file cons_countsols.c. Referenced by conshdlrdataCreate(), and countSparseSol().
sets the value pointer to the new value
Definition at line 145 of file cons_countsols.c. Referenced by countSparseSol(), and SCIP_DECL_CONSINIT().
sets a power of 2 to the given value
Definition at line 162 of file cons_countsols.c. Referenced by countSparseSol().
free memory
Definition at line 180 of file cons_countsols.c. Referenced by countSparseSol(), and SCIP_DECL_CONSFREE().
adds one to the given value
Definition at line 192 of file cons_countsols.c. Referenced by checkSolution(), and countSparseSol(). adds the summand to the given value
Definition at line 206 of file cons_countsols.c. Referenced by countSparseSol().
multiplies the factor by the given value
Definition at line 221 of file cons_countsols.c. Referenced by countSparseSol().
method for creating a string out of an Int which is a mpz_t or SCIP_Longint
Definition at line 238 of file cons_countsols.c. References SCIPsnprintf(). Referenced by SCIPgetNCountedSolsstr().
method for creating a SCIP_Longing out of an Int
Definition at line 254 of file cons_countsols.c. Referenced by checkSolution(), and SCIPgetNCountedSols(). returns whether a given integer variable is unfixed in the local domain
Definition at line 279 of file cons_countsols.c. References NULL, SCIP_VARTYPE_CONTINUOUS, SCIPvarGetLbLocal(), SCIPvarGetType(), and SCIPvarGetUbLocal(). Referenced by checkKnapsack(), and checkLogicor().
creates the constraint handler data
Definition at line 293 of file cons_countsols.c. References allocInt(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, and SCIPallocMemory. Referenced by includeConshdlrCountsols().
check solution in original space
Definition at line 325 of file cons_countsols.c. References FALSE, SCIP_Bool, SCIP_OKAY, SCIPABORT, SCIPcheckSolOrig(), SCIPdebugMessage, SCIPprintError(), and TRUE. Referenced by checkSolution().
check if the current parameter setting is correct for a save counting process
Definition at line 361 of file cons_countsols.c. References FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_VERBLEVEL_FULL, SCIPgetHeurs(), SCIPgetIntParam(), SCIPgetNHeurs(), SCIPheurGetFreq(), SCIPisParamFixed(), SCIPsetIntParam(), SCIPunfixParam(), SCIPverbMessage(), SCIPwarningMessage(), and TRUE. Referenced by SCIPcount().
creates and adds a constraints which cuts off the current solution from the feasibility region in the case there are only binary variables Definition at line 416 of file cons_countsols.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPaddCons(), SCIPallocBufferArray, SCIPcreateConsSetcover(), SCIPfreeBufferArray, SCIPgetNegatedVar(), SCIPgetSolVal(), SCIPisFeasIntegral(), SCIPreleaseCons(), SCIPvarIsBinary(), and TRUE.
creates and adds a bound disjunction constraints which cuts off the current solution from the feasibility region; if only binary variables are involved, then a set covering constraint is created which is a special case of a bound disjunction constraint Definition at line 476 of file cons_countsols.c. References FALSE, NULL, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_CONTINUOUS, SCIPaddCons(), SCIPallocBufferArray, SCIPcreateConsBounddisjunction(), SCIPcreateConsSetcover(), SCIPfreeBufferArray, SCIPgetNegatedVar(), SCIPgetSolVal(), SCIPisFeasEQ(), SCIPisFeasIntegral(), SCIPreleaseCons(), SCIPvarGetLbLocal(), SCIPvarGetType(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), and TRUE.
collect given solution or local domains as sparse solution
Definition at line 609 of file cons_countsols.c. References FALSE, NULL, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIPallocMemoryArray, SCIPdebugMessage, SCIPgetSolVal(), SCIPreallocMemoryArray, SCIPsparseSolCreate(), SCIPsparseSolGetLbs(), SCIPsparseSolGetUbs(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbLocal(), and SCIP_SparseSol::vars. Referenced by checkSolution(), and countSparseSol().
counts the number of solutions represented by sol
Definition at line 683 of file cons_countsols.c. References addInt(), addOne(), allocInt(), collectSolution(), freeInt(), multInt(), NULL, SCIP_CALL, SCIP_CUTOFF, SCIP_INFEASIBLE, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_CONTINUOUS, SCIPdebugMessage, SCIPgetNBinVars(), SCIPgetNPseudoBranchCands(), SCIPgetNVars(), SCIPgetPseudoBranchCands(), SCIPisFeasIntegral(), SCIPisFeasLT(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetOrigvarSum(), SCIPvarGetType(), SCIPvarGetUbLocal(), setInt(), and setPowerOfTwo(). Referenced by checkSolution().
checks if the new solution is feasible for the logicor constraints
Definition at line 802 of file cons_countsols.c. References FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPconsGetName(), SCIPconshdlrGetConss(), SCIPconshdlrGetNActiveConss(), SCIPconshdlrGetName(), SCIPconshdlrGetNEnabledConss(), SCIPconsIsEnabled(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPdelConsLocal(), SCIPgetNVarsLogicor(), SCIPgetVarsLogicor(), SCIPvarGetLbLocal(), SCIPvarIsBinary(), TRUE, and varIsUnfixedLocal(). Referenced by checkFeasSubtree().
checks if the new solution is feasible for the knapsack constraints
Definition at line 875 of file cons_countsols.c. References FALSE, NULL, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIPconsGetName(), SCIPconshdlrGetConss(), SCIPconshdlrGetNActiveConss(), SCIPconshdlrGetName(), SCIPconshdlrGetNEnabledConss(), SCIPconsIsEnabled(), SCIPdebug, SCIPdebugMessage, SCIPdebugPrintCons, SCIPdelConsLocal(), SCIPgetCapacityKnapsack(), SCIPgetNVarsKnapsack(), SCIPgetVarsKnapsack(), SCIPgetWeightsKnapsack(), SCIPisFeasLT(), SCIPprintVar(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), SCIPvarIsIntegral(), TRUE, and varIsUnfixedLocal(). Referenced by checkFeasSubtree().
checks if the new solution is feasible for the bounddisjunction constraints
Definition at line 970 of file cons_countsols.c. References FALSE, NULL, SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPconsGetName(), SCIPconshdlrGetConss(), SCIPconshdlrGetNActiveConss(), SCIPconshdlrGetName(), SCIPconshdlrGetNEnabledConss(), SCIPconsIsEnabled(), SCIPdebug, SCIPdebugMessage, SCIPdebugPrintCons, SCIPdelConsLocal(), SCIPgetBoundsBounddisjunction(), SCIPgetBoundtypesBounddisjunction(), SCIPgetNVarsBounddisjunction(), SCIPgetVarsBounddisjunction(), SCIPisFeasGE(), SCIPisFeasLE(), SCIPprintVar(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), and TRUE. Referenced by checkFeasSubtree().
checks if the new solution is feasible for the varbound constraints
Definition at line 1048 of file cons_countsols.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_CONTINUOUS, SCIPconsGetName(), SCIPconshdlrGetConss(), SCIPconshdlrGetNActiveConss(), SCIPconshdlrGetName(), SCIPconshdlrGetNEnabledConss(), SCIPconsIsEnabled(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPdelConsLocal(), SCIPgetLhsVarbound(), SCIPgetRhsVarbound(), SCIPgetVarVarbound(), SCIPgetVbdcoefVarbound(), SCIPgetVbdvarVarbound(), SCIPisGE(), SCIPisGT(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetType(), SCIPvarGetUbLocal(), and TRUE. Referenced by checkFeasSubtree().
check if the current node initializes a non trivial unrestricted subtree
Definition at line 1124 of file cons_countsols.c. References checkBounddisjunction(), checkKnapsack(), checkLogicor(), checkVarbound(), CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPconshdlrGetConss(), SCIPconshdlrGetName(), SCIPconshdlrGetNEnabledConss(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPgetConshdlrs(), SCIPgetNConshdlrs(), SCIPgetNPseudoBranchCands(), and TRUE. Referenced by checkSolution().
check the given solution
Definition at line 1225 of file cons_countsols.c. References addOne(), checkFeasSubtree(), checkSolutionOrig(), collectSolution(), countSparseSol(), getNCountedSols(), NULL, SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_INFEASIBLE, SCIP_Longint, SCIP_OKAY, SCIPdebugMessage, SCIPgetNOrigVars(), SCIPgetNPseudoBranchCands(), SCIPgetNVars(), SCIPgetVars(), SCIPinterruptSolve(), SCIPsolGetHeur(), SCIPvarGetLbGlobal(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbGlobal(), and SCIPvarGetUbLocal(). Referenced by SCIP_DECL_CONSENFOLP(), and SCIP_DECL_CONSENFOPS().
creates the handler for countsols constraints and includes it in SCIP
Definition at line 2475 of file cons_countsols.c. References consCopyCountsols, CONSHDLR_CHECKPRIORITY, CONSHDLR_DESC, CONSHDLR_EAGERFREQ, CONSHDLR_ENFOPRIORITY, CONSHDLR_NAME, CONSHDLR_NEEDSCONS, conshdlrdataCreate(), createCountDialog(), DEFAULT_ACTIVE, DEFAULT_COLLECT, DEFAULT_DISCARDSOLS, DEFAULT_SOLLIMIT, DEFAULT_SPARSETEST, DISP_CUTS_DESC, DISP_CUTS_HEADER, DISP_CUTS_NAME, DISP_CUTS_POSITION, DISP_CUTS_PRIORITY, DISP_CUTS_STRIPLINE, DISP_CUTS_WIDTH, DISP_SOLS_DESC, DISP_SOLS_HEADER, DISP_SOLS_NAME, DISP_SOLS_POSITION, DISP_SOLS_PRIORITY, DISP_SOLS_STRIPLINE, DISP_SOLS_WIDTH, FALSE, NULL, SCIP_CALL, SCIP_DISPSTATUS_OFF, SCIP_LONGINT_MAX, SCIP_OKAY, SCIPaddBoolParam(), SCIPaddLongintParam(), SCIPincludeConshdlrBasic(), SCIPincludeDisp(), SCIPincludeExternalCodeInformation(), SCIPsetConshdlrCopy(), SCIPsetConshdlrExit(), SCIPsetConshdlrExitsol(), SCIPsetConshdlrFree(), SCIPsetConshdlrInit(), SCIPsetConshdlrInitsol(), and SCIPsnprintf(). Referenced by SCIP_DECL_CONSHDLRCOPY(), and SCIPincludeConshdlrCountsols().
copy method for constraint handler plugins (called when SCIP copies plugins) Definition at line 1341 of file cons_countsols.c. References CONSHDLR_NAME, FALSE, includeConshdlrCountsols(), NULL, SCIP_CALL, SCIP_OKAY, SCIPconshdlrGetData(), SCIPconshdlrGetName(), and TRUE.
destructor of constraint handler to free constraint handler data (called when SCIP is exiting) Definition at line 1370 of file cons_countsols.c. References CONSHDLR_NAME, freeInt(), NULL, SCIP_OKAY, SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPconshdlrSetData(), and SCIPfreeMemory.
initialization method of constraint handler (called after problem was transformed) Definition at line 1396 of file cons_countsols.c. References CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIP_VARTYPE_CONTINUOUS, SCIPaddVarLocks(), SCIPallocMemoryArray, SCIPcaptureVar(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPgetNContVars(), SCIPgetNOrigVars(), SCIPgetNVars(), SCIPgetOrigVars(), SCIPgetTransformedVar(), SCIPvarGetName(), SCIPvarGetType(), and setInt().
deinitialization method of constraint handler (called before transformed problem is freed) Definition at line 1466 of file cons_countsols.c. References CONSHDLR_NAME, FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPaddVarLocks(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPfreeMemoryArrayNull, SCIPhashmapFree(), SCIPreleaseVar(), SCIPsparseSolFree(), and SCIPvarGetName().
solving process initialization method of constraint handler (called when branch and bound process is about to begin) This method is called when the presolving was finished and the branch and bound process is about to begin. The constraint handler may use this call to initialize its branch and bound specific data. Definition at line 1541 of file cons_countsols.c. References CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_CONTINUOUS, SCIPblkmem(), SCIPcaptureVar(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPduplicateMemoryArray, SCIPgetNBinVars(), SCIPgetNContVars(), SCIPgetNVars(), SCIPgetVars(), SCIPhashmapCreate(), SCIPhashmapInsert(), SCIPvarGetOrigvarSum(), SCIPvarGetProbindex(), and SCIPvarGetType().
solving process deinitialization method of constraint handler (called before branch and bound process data is freed) Definition at line 1626 of file cons_countsols.c. References CONSHDLR_NAME, NULL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPABORT, SCIPconshdlrGetData(), SCIPconshdlrGetName(), and SCIPerrorMessage.
constraint enforcing method of constraint handler for LP solutions Definition at line 1650 of file cons_countsols.c. References checkSolution(), NULL, SCIP_CALL, SCIP_CUTOFF, SCIP_FEASIBLE, SCIP_INFEASIBLE, SCIP_OKAY, SCIPconshdlrGetData(), SCIPcreateLPSol(), SCIPdebugMessage, and SCIPfreeSol().
constraint enforcing method of constraint handler for pseudo solutions Definition at line 1688 of file cons_countsols.c. References checkSolution(), NULL, SCIP_CALL, SCIP_CUTOFF, SCIP_FEASIBLE, SCIP_INFEASIBLE, SCIP_OKAY, SCIPconshdlrGetData(), SCIPcreatePseudoSol(), SCIPdebugMessage, and SCIPfreeSol().
feasibility check method of constraint handler for integral solutions Definition at line 1727 of file cons_countsols.c. References NULL, SCIP_FEASIBLE, SCIP_INFEASIBLE, SCIP_OKAY, SCIPconshdlrGetData(), SCIPdebugMessage, SCIPwarningMessage(), and TRUE.
variable rounding lock method of constraint handler Definition at line 1757 of file cons_countsols.c. References SCIP_OKAY.
dialog execution method for the count command Definition at line 1768 of file cons_countsols.c. References CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_EXITSOLVE, SCIP_STAGE_FREE, SCIP_STAGE_FREETRANS, SCIP_STAGE_INIT, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_INITSOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVED, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIPdialoghdlrAddHistory(), SCIPdialoghdlrGetRoot(), SCIPdialogMessage(), SCIPerrorMessage, SCIPgetBoolParam(), SCIPgetStage(), SCIPpresolve(), SCIPsetBoolParam(), and TRUE.
dialog execution method for the count command Definition at line 1829 of file cons_countsols.c. References CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_INVALIDCALL, SCIP_Longint, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_EXITSOLVE, SCIP_STAGE_FREE, SCIP_STAGE_FREETRANS, SCIP_STAGE_INIT, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_INITSOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVED, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIP_VERBLEVEL_FULL, SCIPallocBufferArray, SCIPcount(), SCIPdialoghdlrAddHistory(), SCIPdialoghdlrGetRoot(), SCIPdialogMessage(), SCIPerrorMessage, SCIPfindConshdlr(), SCIPfreeBufferArray, SCIPgetBoolParam(), SCIPgetIntParam(), SCIPgetNContVars(), SCIPgetNCountedFeasSubtrees(), SCIPgetNCountedSols(), SCIPgetNCountedSolsstr(), SCIPgetStage(), SCIPisParamFixed(), SCIPpresolve(), SCIPreallocBufferArray, SCIPsetBoolParam(), SCIPsetIntParam(), SCIPunfixParam(), SCIPverbMessage(), SCIPwarningMessage(), and TRUE.
comparison method for sorting variables by non-decreasing w.r.t. problem index Definition at line 2006 of file cons_countsols.c. References NULL, and SCIPvarGetProbindex().
expands the sparse solutions and writes them to the file
Definition at line 2030 of file cons_countsols.c. References NULL, scalars, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPfreeBufferArray, SCIPgetProbvarLinearSum(), SCIPhashmapExists(), SCIPhashmapGetImage(), SCIPinfoMessage(), SCIPisIntegral(), SCIPretransformObj(), SCIPsparseSolGetFirstSol(), SCIPsparseSolGetNextSol(), SCIPsparseSolGetNVars(), SCIPvarGetObj(), and TRUE. Referenced by SCIP_DECL_DIALOGEXEC().
execution method of dialog for writing all solutions Definition at line 2141 of file cons_countsols.c. References CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_ERROR, SCIP_Longint, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_EXITSOLVE, SCIP_STAGE_FREE, SCIP_STAGE_FREETRANS, SCIP_STAGE_INIT, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_INITSOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVED, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIP_VARTYPE_CONTINUOUS, SCIPallocBufferArray, SCIPconshdlrGetData(), SCIPdialoghdlrAddHistory(), SCIPdialoghdlrClearBuffer(), SCIPdialoghdlrGetRoot(), SCIPdialoghdlrGetWord(), SCIPdialogMessage(), SCIPduplicateBufferArray, SCIPerrorMessage, SCIPfindConshdlr(), SCIPfreeBufferArray, SCIPgetNCountedSols(), SCIPgetNCountedSolsstr(), SCIPgetNOrigVars(), SCIPgetOrigVars(), SCIPgetStage(), SCIPgetTransformedVar(), SCIPinfoMessage(), SCIPreallocBufferArray, SCIPsortDownPtrPtr(), SCIPvarGetName(), SCIPvarGetType(), TRUE, and writeExpandedSolutions().
create the interactive shell dialogs for the counting process
Definition at line 2345 of file cons_countsols.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPaddDialogEntry(), SCIPdialogFindEntry(), SCIPdialogHasEntry(), SCIPerrorMessage, SCIPgetRootDialog(), SCIPincludeDialog(), SCIPincludeDialogDefault(), and SCIPreleaseDialog(). Referenced by includeConshdlrCountsols().
output method of display column to output file stream 'file' Definition at line 2412 of file cons_countsols.c. References CONSHDLR_NAME, DISP_SOLS_NAME, DISP_SOLS_WIDTH, NULL, SCIP_Bool, SCIP_Longint, SCIP_OKAY, SCIPconshdlrGetNConss(), SCIPdispGetName(), SCIPdispLongint(), SCIPfindConshdlr(), SCIPgetMessagehdlr(), SCIPgetNCountedSols(), and SCIPinfoMessage().
output method of display column to output file stream 'file' Definition at line 2447 of file cons_countsols.c. References CONSHDLR_NAME, DISP_CUTS_NAME, DISP_CUTS_WIDTH, NULL, SCIP_OKAY, SCIPconshdlrGetNConss(), SCIPdispGetName(), SCIPdispLongint(), SCIPfindConshdlr(), SCIPgetMessagehdlr(), and SCIPgetNCountedFeasSubtrees().
creates the handler for countsols constraints and includes it in SCIP
Definition at line 2559 of file cons_countsols.c. References includeConshdlrCountsols(), SCIP_CALL, SCIP_OKAY, and TRUE. Referenced by SCIPincludeDefaultPlugins().
execute counting
Definition at line 2571 of file cons_countsols.c. References checkParameters(), CONSHDLR_NAME, FALSE, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPgetBoolParam(), SCIPsetBoolParam(), SCIPsolve(), and TRUE. Referenced by SCIP_DECL_DIALOGEXEC().
returns number of feasible solutions found as SCIP_Longint; if the number does not fit into a SCIP_Longint the valid flag is set to FALSE
Definition at line 2603 of file cons_countsols.c. References CONSHDLR_NAME, getNCountedSols(), NULL, SCIPconshdlrGetData(), and SCIPfindConshdlr(). Referenced by SCIP_DECL_DIALOGEXEC(), and SCIP_DECL_DISPOUTPUT().
puts the number of counted solutions in the given char* buffer
Definition at line 2623 of file cons_countsols.c. References CONSHDLR_NAME, NULL, pow(), SCIPconshdlrGetData(), SCIPfindConshdlr(), and toString(). Referenced by SCIP_DECL_DIALOGEXEC().
returns number of counted non trivial feasible subtrees
Definition at line 2661 of file cons_countsols.c. References CONSHDLR_NAME, NULL, SCIPconshdlrGetData(), and SCIPfindConshdlr(). Referenced by SCIP_DECL_DIALOGEXEC(), and SCIP_DECL_DISPOUTPUT().
Method to get the sparse solution.
Definition at line 2689 of file cons_countsols.c. References CONSHDLR_NAME, NULL, SCIPconshdlrGetData(), and SCIPfindConshdlr().
setting SCIP parameters for such that a valid counting process is possible
Definition at line 2716 of file cons_countsols.c. References SCIP_CALL, SCIP_OKAY, SCIP_PARAMEMPHASIS_COUNTER, SCIPsetEmphasis(), and TRUE. |