All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cons_linear.h
Go to the documentation of this file.
18 * @brief Constraint handler for linear constraints in their most general form, \f$lhs <= a^T x <= rhs\f$.
28 * with \f$a_i \in Q, i = 1,\dots,n\f$, \f$lhs\in Q \cup \{-\infty\}\f$, \f$rhs\in Q \cup \{\infty\}\f$,
31 * Furthermore, this header offers the upgrade functionality of a general linear constraint into a more specific
32 * constraint, such as a knapsack constraint, via SCIP_DECL_LINCONSUPGD() and SCIPincludeLinconsUpgrade()
35 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
64 * - nposimpl : number of implicit integer variables with positive coefficient (including implicit binary variables)
65 * - nnegimpl : number of implicit integer variables with negative coefficient (including implicit binary variables)
81 #define SCIP_DECL_LINCONSUPGD(x) SCIP_RETCODE x (SCIP* scip, SCIP_CONS* cons, int nvars, SCIP_VAR** vars, SCIP_Real* vals, SCIP_Real lhs, SCIP_Real rhs, \
82 int nposbin, int nnegbin, int nposint, int nnegint, int nposimpl, int nnegimpl, int nposimplbin, int nnegimplbin, int nposcont, int nnegcont, \
83 int ncoeffspone, int ncoeffsnone, int ncoeffspint, int ncoeffsnint, int ncoeffspfrac, int ncoeffsnfrac, \
108 * @note the constraint gets captured, hence at one point you have to release it using the method SCIPreleaseCons()
140 SCIP_Bool stickingatnode /**< should the constraint always be kept at the node where it was added, even
146 * in its most basic version, i. e., all constraint flags are set to their basic value as explained for the
151 * @note the constraint gets captured, hence at one point you have to release it using the method SCIPreleaseCons()
174 SCIP_Real* sourcecoefs, /**< coefficient array of the linear constraint, or NULL if all coefficients are one */
179 SCIP_HASHMAP* consmap, /**< a hashmap to store the mapping of source constraints to the corresponding
189 SCIP_Bool removable, /**< should the relaxation be removed from the LP due to aging or cleanup? */
190 SCIP_Bool stickingatnode, /**< should the constraint always be kept at the node where it was added, even
242 /** gets the array of variables in the linear constraint; the user must not modify this array! */
249 /** gets the array of coefficient values in the linear constraint; the user must not modify this array! */
286 /** returns the linear relaxation of the given linear constraint; may return NULL if no LP row was yet created;
|