cons_samediff.c File Reference Detailed DescriptionConstraint handler stores the local branching decision data. This constraint handler is used to store the branching decision of the Ryan/Foster branching rule which is implemented in branch_ryanfoster.c. Definition in file cons_samediff.c. #include <assert.h> #include <string.h> #include "cons_samediff.h" #include "probdata_binpacking.h" #include "vardata_binpacking.h" Go to the source code of this file.
Macro Definition Documentation
feasibility check method of constraint handler for integral solutions Definition at line 364 of file cons_samediff.c. Referenced by SCIPincludeConshdlrSamediff().
constraint enforcing method of constraint handler for LP solutions Definition at line 358 of file cons_samediff.c. Referenced by SCIPincludeConshdlrSamediff().
constraint enforcing method of constraint handler for pseudo solutions Definition at line 361 of file cons_samediff.c. Referenced by SCIPincludeConshdlrSamediff().
priority of the constraint handler for checking feasibility Definition at line 43 of file cons_samediff.c. Referenced by SCIPincludeConshdlrSamediff().
should propagation method be delayed, if other propagators found reductions? Definition at line 48 of file cons_samediff.c. Referenced by SCIPincludeConshdlrSamediff().
Definition at line 41 of file cons_samediff.c. Referenced by SCIPincludeConshdlrSamediff().
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 45 of file cons_samediff.c. Referenced by SCIPincludeConshdlrSamediff().
priority of the constraint handler for constraint enforcing Definition at line 42 of file cons_samediff.c. Referenced by SCIPincludeConshdlrSamediff().
Definition at line 40 of file cons_samediff.c. Referenced by SCIP_DECL_CONSACTIVE(), SCIP_DECL_CONSDEACTIVE(), SCIP_DECL_CONSDELETE(), SCIP_DECL_CONSPROP(), SCIP_DECL_CONSTRANS(), SCIPcreateConsSamediff(), and SCIPincludeConshdlrSamediff().
should the constraint handler be skipped, if no constraints are available? Definition at line 49 of file cons_samediff.c. Referenced by SCIPincludeConshdlrSamediff().
Definition at line 51 of file cons_samediff.c. Referenced by SCIPincludeConshdlrSamediff().
frequency for propagating domains; zero means only preprocessing propagation Definition at line 44 of file cons_samediff.c. Referenced by SCIPincludeConshdlrSamediff().
variable rounding lock method of constraint handler Definition at line 439 of file cons_samediff.c. Referenced by SCIPincludeConshdlrSamediff(). Function Documentation
fixes a variable to zero if the corresponding packings are not valid for this constraint/node (due to branching)
Definition at line 132 of file cons_samediff.c. References consdataFixVariables(), DIFFER, SAME, SCIPvardataGetConsids(), SCIPvardataGetNConsids(), and SCIP_ConsData::type. Referenced by consdataFixVariables(), and consdataPrint().
check if all variables are valid for the given consdata
Definition at line 231 of file cons_samediff.c. References consdataFree(), consdataPrint(), DIFFER, SAME, SCIPprobdataGetNVars(), SCIPprobdataGetVars(), SCIPvardataGetConsids(), SCIPvardataGetNConsids(), SCIPvardataPrint(), and SCIP_ConsData::type. Referenced by consdataFixVariables(), SCIP_DECL_CONSACTIVE(), and SCIP_DECL_CONSPROP().
create constraint data
Definition at line 80 of file cons_samediff.c. References consdataPrint(), DIFFER, SCIP_ConsData::itemid1, SCIP_ConsData::itemid2, SCIP_ConsData::node, SAME, and SCIP_ConsData::type. Referenced by SCIP_DECL_CONSTRANS(), and SCIPcreateConsSamediff().
fixes variables to zero if the corresponding packings are not valid for this sonstraint/node (due to branching)
Definition at line 195 of file cons_samediff.c. References checkVariable(), and consdataCheck(). Referenced by checkVariable(), and SCIP_DECL_CONSPROP().
frees samediff constraint data
Definition at line 291 of file cons_samediff.c. References SCIP_DECL_CONSDELETE(). Referenced by consdataCheck(), and SCIP_DECL_CONSDELETE().
display constraints
Definition at line 110 of file cons_samediff.c. References checkVariable(), SAME, and SCIPprobdataGetIds(). Referenced by consdataCheck(), consdataCreate(), SCIP_DECL_CONSACTIVE(), SCIP_DECL_CONSDEACTIVE(), SCIP_DECL_CONSPRINT(), SCIP_DECL_CONSPROP(), and SCIPcreateConsSamediff().
constraint activation notification method of constraint handler Definition at line 443 of file cons_samediff.c. References consdataCheck(), consdataPrint(), CONSHDLR_NAME, SCIP_DECL_CONSDEACTIVE(), and SCIPprobdataGetNVars().
constraint deactivation notification method of constraint handler Definition at line 478 of file cons_samediff.c. References consdataPrint(), CONSHDLR_NAME, SCIP_DECL_CONSPRINT(), and SCIPprobdataGetNVars(). Referenced by SCIP_DECL_CONSACTIVE().
frees specific constraint data Definition at line 314 of file cons_samediff.c. References consdataFree(), CONSHDLR_NAME, and SCIP_DECL_CONSTRANS(). Referenced by consdataFree().
constraint display method of constraint handler Definition at line 506 of file cons_samediff.c. References consdataPrint(), and SCIPincludeConshdlrSamediff(). Referenced by SCIP_DECL_CONSDEACTIVE().
domain propagation method of constraint handler Definition at line 368 of file cons_samediff.c. References consdataCheck(), consdataFixVariables(), consdataPrint(), CONSHDLR_NAME, SCIPprobdataGetNVars(), and SCIPprobdataGetVars().
transforms constraint data into data belonging to the transformed problem Definition at line 329 of file cons_samediff.c. References consdataCreate(), and CONSHDLR_NAME. Referenced by SCIP_DECL_CONSDELETE().
creates and captures a samediff constraint
Definition at line 552 of file cons_samediff.c. References consdataCreate(), consdataPrint(), CONSHDLR_NAME, SCIP_ConsData::itemid1, SCIP_ConsData::itemid2, SCIP_ConsData::node, SCIPgetItemid1Samediff(), and SCIP_ConsData::type. Referenced by SCIP_DECL_BRANCHEXECLP(), and SCIPincludeConshdlrSamediff().
returns item id one
Definition at line 588 of file cons_samediff.c. References SCIPgetItemid2Samediff(). Referenced by addBranchingDecisionConss(), and SCIPcreateConsSamediff().
returns item id two
Definition at line 604 of file cons_samediff.c. References SCIPgetTypeSamediff(). Referenced by addBranchingDecisionConss(), and SCIPgetItemid1Samediff().
return constraint type SAME or DIFFER
Definition at line 620 of file cons_samediff.c. Referenced by addBranchingDecisionConss(), and SCIPgetItemid2Samediff().
creates the handler for samediff constraints and includes it in SCIP
Definition at line 526 of file cons_samediff.c. References consCheckSamediff, consEnfolpSamediff, consEnfopsSamediff, CONSHDLR_CHECKPRIORITY, CONSHDLR_DELAYPROP, CONSHDLR_DESC, CONSHDLR_EAGERFREQ, CONSHDLR_ENFOPRIORITY, CONSHDLR_NAME, CONSHDLR_NEEDSCONS, CONSHDLR_PROP_TIMING, CONSHDLR_PROPFREQ, consLockSamediff, and SCIPcreateConsSamediff(). Referenced by runShell(), and SCIP_DECL_CONSPRINT(). |