All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cons_knapsack.h
Go to the documentation of this file.
18 * @brief Constraint handler for knapsack constraints of the form \f$a^T x \le b\f$, x binary and \f$a \ge 0\f$.
23 * This constraint handler handles a special type of linear constraints, namely knapsack constraints.
28 * with non-negative integer coefficients \f$a_i\f$, integer right-hand side \f$b\f$, and binary variables \f$x_i\f$.
31 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
50 * @note the constraint gets captured, hence at one point you have to release it using the method SCIPreleaseCons()
81 SCIP_Bool stickingatnode /**< should the constraint always be kept at the node where it was added, even
87 * in its most basic version, i. e., all constraint flags are set to their basic value as explained for the
88 * method SCIPcreateConsKnapsack(); all flags can be set via SCIPsetConsFLAGNAME-methods in scip.h
92 * @note the constraint gets captured, hence at one point you have to release it using the method SCIPreleaseCons()
139 /** gets the array of variables in the knapsack constraint; the user must not modify this array! */
146 /** gets the array of weights in the knapsack constraint; the user must not modify this array! */
167 /** returns the linear relaxation of the given knapsack constraint; may return NULL if no LP row was yet created;
192 SCIP_Bool* success /**< pointer to store if an error occured during solving (normally a memory problem) */
195 /** solves knapsack problem in maximization form approximately by solving the LP-relaxation of the problem using Dantzig's
196 * method and rounding down the solution; if needed, one can provide arrays to store all selected items and all not
230 /* relaxes given general linear constraint into a knapsack constraint and separates lifted knapsack cover inequalities */
238 SCIP_Real* knapvals, /**< coefficients of the variables in the continuous knapsack constraint */
239 SCIP_Real valscale, /**< -1.0 if lhs of row is used as rhs of c. k. constraint, +1.0 otherwise */
|