Constraint 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.h.
#include "scip/scip.h"Go to the source code of this file.
Functions | |
| SCIP_RETCODE | SCIPincludeConshdlrSamediff (SCIP *scip) |
| SCIP_RETCODE | SCIPcreateConsSamediff (SCIP *scip, SCIP_CONS **cons, const char *name, int itemid1, int itemid2, CONSTYPE type, SCIP_NODE *node, SCIP_Bool local) |
| int | SCIPgetItemid1Samediff (SCIP_CONS *cons) |
| int | SCIPgetItemid2Samediff (SCIP_CONS *cons) |
| CONSTYPE | SCIPgetTypeSamediff (SCIP_CONS *cons) |
Definition at line 49 of file cons_samediff.h.
| enum ConsType |
| Enumerator | |
|---|---|
| DIFFER | constraint representing the branching decision differ(i,j) |
| SAME | constraint representing the branching decision same(i,j) |
Definition at line 44 of file cons_samediff.h.
| SCIP_RETCODE SCIPincludeConshdlrSamediff | ( | SCIP * | scip | ) |
creates the handler for element constraints and includes it in SCIP
creates the handler for samediff constraints and includes it in SCIP
Definition at line 533 of file cons_samediff.c.
References assert(), consCheckSamediff, consEnfolpSamediff, consEnfopsSamediff, CONSHDLR_CHECKPRIORITY, CONSHDLR_DELAYPROP, CONSHDLR_DESC, CONSHDLR_EAGERFREQ, CONSHDLR_ENFOPRIORITY, CONSHDLR_NAME, CONSHDLR_NEEDSCONS, CONSHDLR_PROP_TIMING, CONSHDLR_PROPFREQ, consLockSamediff, NULL, SCIP_CALL, SCIP_OKAY, SCIPincludeConshdlrBasic(), SCIPsetConshdlrActive(), SCIPsetConshdlrDeactive(), SCIPsetConshdlrDelete(), SCIPsetConshdlrPrint(), SCIPsetConshdlrProp(), and SCIPsetConshdlrTrans().
Referenced by runShell().
| SCIP_RETCODE SCIPcreateConsSamediff | ( | SCIP * | scip, |
| SCIP_CONS ** | cons, | ||
| const char * | name, | ||
| int | itemid1, | ||
| int | itemid2, | ||
| CONSTYPE | type, | ||
| SCIP_NODE * | node, | ||
| SCIP_Bool | local ) |
creates and captures a samediff constraint
| scip | SCIP data structure |
| cons | pointer to hold the created constraint |
| name | name of constraint |
| itemid1 | item id one |
| itemid2 | item id two |
| type | stores whether the items have to be in the SAME or DIFFER packing |
| node | the node in the B&B-tree at which the cons is sticking |
| local | is constraint only valid locally? |
Definition at line 559 of file cons_samediff.c.
References consdataCreate(), consdataPrint(), CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPcreateCons(), SCIPdebug, SCIPdebugMsg, SCIPerrorMessage, SCIPfindConshdlr(), and TRUE.
Referenced by SCIP_DECL_BRANCHEXECLP().
| int SCIPgetItemid1Samediff | ( | SCIP_CONS * | cons | ) |
returns item id one
| cons | samediff constraint |
Definition at line 595 of file cons_samediff.c.
References assert(), NULL, and SCIPconsGetData().
Referenced by addBranchingDecisionConss().
| int SCIPgetItemid2Samediff | ( | SCIP_CONS * | cons | ) |
returns item id two
| cons | samediff constraint |
Definition at line 610 of file cons_samediff.c.
References assert(), NULL, and SCIPconsGetData().
Referenced by addBranchingDecisionConss().
return constraint type SAME or DIFFER
| cons | samediff constraint |
Definition at line 625 of file cons_samediff.c.
References assert(), NULL, and SCIPconsGetData().
Referenced by addBranchingDecisionConss().