All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cons_pseudoboolean.h File Reference Detailed Descriptionconstraint handler for pseudoboolean constraints The constraint handler deals with pseudo boolean constraints. These are constraints of the form
where all are binary and all are integer. Definition in file cons_pseudoboolean.h. #include "scip/scip.h" Go to the source code of this file.
Macro Definition Documentation
Definition at line 42 of file cons_pseudoboolean.h. Referenced by createAndAddAndCons(), SCIPcreateConsAnd(), setObjective(), and updateConsanddataUses(). Typedef Documentation
Definition at line 58 of file cons_pseudoboolean.h. Enumeration Type Documentation
solution status after solving LP
Definition at line 45 of file cons_pseudoboolean.h. Function Documentation
creates the handler for pseudoboolean constraints and includes it in SCIP
Definition at line 8508 of file cons_pseudoboolean.c. References CONSHDLR_CHECKPRIORITY, CONSHDLR_DELAYPRESOL, CONSHDLR_DESC, CONSHDLR_EAGERFREQ, CONSHDLR_ENFOPRIORITY, CONSHDLR_MAXPREROUNDS, CONSHDLR_NAME, CONSHDLR_NEEDSCONS, conshdlrdataCreate(), DEFAULT_DECOMPOSEINDICATORPBCONS, DEFAULT_DECOMPOSENORMALPBCONS, DEFAULT_PROPAGATENONLINEAR, DEFAULT_REMOVABLENONLINEAR, DEFAULT_SEPARATENONLINEAR, NULL, SCIP_CALL, SCIP_OKAY, SCIPaddBoolParam(), SCIPincludeConshdlrBasic(), SCIPsetConshdlrCopy(), SCIPsetConshdlrDelete(), SCIPsetConshdlrFree(), SCIPsetConshdlrGetNVars(), SCIPsetConshdlrGetVars(), SCIPsetConshdlrInit(), SCIPsetConshdlrInitpre(), SCIPsetConshdlrPresol(), SCIPsetConshdlrPrint(), SCIPsetConshdlrTrans(), and TRUE. Referenced by SCIP_DECL_CONSHDLRCOPY(), and SCIPincludeDefaultPlugins().
creates and captures a pseudoboolean constraint, with given linear and and-constraints
Definition at line 8562 of file cons_pseudoboolean.c. References BMScopyMemoryArray, ConsAndData::cons, consdataCreate(), CONSHDLR_NAME, FALSE, inithashmapandtable(), ConsAndData::isoriginal, ConsAndData::istransformed, ConsAndData::newvars, ConsAndData::nnewvars, ConsAndData::noriguses, NULL, ConsAndData::nuses, ConsAndData::nvars, ConsAndData::origcons, SCIP_Bool, SCIP_CALL, SCIP_LINEARCONSTYPE_INVALIDCONS, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPallocBlockMemory, SCIPcalcMemGrowSize(), SCIPcaptureCons(), SCIPcaptureVar(), SCIPconsAddUpgradeLocks(), SCIPconshdlrGetData(), SCIPconsIsTransformed(), SCIPcreateCons(), SCIPduplicateBlockMemoryArray, SCIPensureBlockMemoryArray, SCIPerrorMessage, SCIPfindConshdlr(), SCIPfreeBlockMemory, SCIPfreeBlockMemoryArray, SCIPgetNVarsAnd(), SCIPgetResultantAnd(), SCIPgetVarsAnd(), SCIPhashmapExists(), SCIPhashmapInsert(), SCIPhashtableInsert(), SCIPhashtableRetrieve(), SCIPinfinity(), SCIPisInfinity(), SCIPsortPtr(), SCIPwarningMessage(), ConsAndData::snewvars, ConsAndData::svars, TRUE, and ConsAndData::vars. Referenced by copyConsPseudoboolean().
creates and captures a pseudoboolean constraint
Definition at line 8827 of file cons_pseudoboolean.c. References consdataCreate(), CONSHDLR_NAME, createAndAddAnds(), createAndAddLinearCons(), FALSE, inithashmapandtable(), NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_LINEARCONSTYPE_INVALIDCONS, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIPallocBufferArray, SCIPconshdlrGetData(), SCIPcreateCons(), SCIPerrorMessage, SCIPfindConshdlr(), SCIPfreeBufferArray, SCIPgetResultantAnd(), SCIPinfinity(), and SCIPisInfinity(). Referenced by readConstraints(), SCIPcreateConsBasicPseudoboolean(), and setObjective().
creates and captures a pseudoboolean constraint in its most basic variant, i. e., with all constraint flags set to their default values, which can be set afterwards using SCIPsetConsFLAGNAME() in scip.h
creates and captures a pseudoboolean constraint in its most basic variant, i. e., with all constraint flags set to their default values
Definition at line 8971 of file cons_pseudoboolean.c. References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcreateConsPseudoboolean(), and TRUE.
adds linear term pseudo boolean constraint (if it is not zero)
adds a variable to the pseudo boolean constraint (if it is not zero)
Definition at line 9006 of file cons_pseudoboolean.c. References CONSHDLR_NAME, FALSE, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_LINEARCONSTYPE_INVALIDCONS, SCIP_LINEARCONSTYPE_KNAPSACK, SCIP_LINEARCONSTYPE_LINEAR, SCIP_LINEARCONSTYPE_LOGICOR, SCIP_LINEARCONSTYPE_SETPPC, SCIP_Longint, SCIP_OKAY, SCIPABORT, SCIPaddCoefKnapsack(), SCIPaddCoefLinear(), SCIPaddCoefLogicor(), SCIPaddCoefSetppc(), SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPerrorMessage, SCIPisEQ(), SCIPisIntegral(), SCIPisPositive(), and SCIPisZero().
adds nonlinear term to pseudo boolean constraint (if it is not zero)
adds nonlinear term to pseudo boolean constraint (if it is not zero)
Definition at line 9083 of file cons_pseudoboolean.c. References addCoefTerm(), CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPABORT, SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. gets indicator variable of pseudoboolean constraint, or NULL if there is no
Definition at line 9108 of file cons_pseudoboolean.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by writeOpbConstraints(). gets linear constraint of pseudoboolean constraint
Definition at line 9132 of file cons_pseudoboolean.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by writeOpbConstraints().
gets type of linear constraint of pseudoboolean constraint
Definition at line 9156 of file cons_pseudoboolean.c. References CONSHDLR_NAME, NULL, SCIP_LINEARCONSTYPE_INVALIDCONS, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. gets number of linear variables without artificial terms variables of pseudoboolean constraint
Definition at line 9180 of file cons_pseudoboolean.c. References CONSHDLR_NAME, NULL, SCIP_OKAY, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by writeOpbConstraints().
gets linear constraint of pseudoboolean constraint
Definition at line 9213 of file cons_pseudoboolean.c. References CONSHDLR_NAME, getLinearConsNVars(), getLinearConsVarsData(), getLinVarsAndAndRess(), NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIPABORT, SCIPallocBufferArray, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPerrorMessage, and SCIPfreeBufferArray. Referenced by writeOpbConstraints().
gets and-constraints of pseudoboolean constraint
Definition at line 9275 of file cons_pseudoboolean.c. References CONSHDLR_NAME, NULL, SCIP_Bool, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPconsIsOriginal(), SCIPerrorMessage, and TRUE. Referenced by writeOpbConstraints(). gets number of and constraints of pseudoboolean constraint
Definition at line 9337 of file cons_pseudoboolean.c. References CONSHDLR_NAME, NULL, SCIP_OKAY, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by writeOpbConstraints().
changes left hand side of pseudoboolean constraint
changes left hand side of pseudoboolean constraint
Definition at line 9376 of file cons_pseudoboolean.c. References chgLhs(), CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_LINEARCONSTYPE_INVALIDCONS, SCIP_LINEARCONSTYPE_KNAPSACK, SCIP_LINEARCONSTYPE_LINEAR, SCIP_LINEARCONSTYPE_LOGICOR, SCIP_LINEARCONSTYPE_SETPPC, SCIP_OKAY, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage.
changes right hand side of pseudoboolean constraint
changes right hand side of pseudoboolean constraint
Definition at line 9429 of file cons_pseudoboolean.c. References chgRhs(), CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_LINEARCONSTYPE_INVALIDCONS, SCIP_LINEARCONSTYPE_KNAPSACK, SCIP_LINEARCONSTYPE_LINEAR, SCIP_LINEARCONSTYPE_LOGICOR, SCIP_LINEARCONSTYPE_SETPPC, SCIP_OKAY, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. get left hand side of pseudoboolean constraint
Definition at line 9473 of file cons_pseudoboolean.c. References CONSHDLR_NAME, NULL, SCIP_INVALID, SCIP_OKAY, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by writeOpbConstraints(). get right hand side of pseudoboolean constraint
Definition at line 9503 of file cons_pseudoboolean.c. References CONSHDLR_NAME, NULL, SCIP_INVALID, SCIP_OKAY, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by writeOpbConstraints(). |