18 using namespace Couenne;
26 if (!(cg -> isFirst ()))
34 int wi = w ->
Index ();
35 int xi = x ->
Index ();
36 int yi = y ->
Index ();
52 if ((wind >= 0) || uselessAux) {
70 enum auxSign sign = cg -> Problem () -> Var (w ->
Index ()) -> sign ();
75 cg -> createCut (cs, lb, ub, wi, -1., xi, 1., yi, -1.,
true);
Cut Generator for linear convexifications.
status of lower/upper bound of a variable, to be checked/modified in bound tightening ...
virtual void generateCuts(expression *, OsiCuts &, const CouenneCutGenerator *, t_chg_bounds *=NULL, int=-1, CouNumber=-COUENNE_INFINITY, CouNumber=COUENNE_INFINITY)
Special version for linear constraints.
virtual int Index() const
Return index of variable (only valid for exprVar and exprAux)
auxSign
"sign" of the constraint defining an auxiliary.
expression ** arglist_
argument list is an array of pointers to other expressions
void getBounds(expression *&, expression *&)
Get lower and upper bound of an expression (if any)
double CouNumber
main number type in Couenne
void fint fint fint real fint real real real real real real real real * w
virtual CouNumber Value() const
value (empty)
void fint fint fint real fint real * x