13 #include "CoinHelperFunctions.hpp"
21 using namespace Couenne;
50 printf (
"using VT and trilinear terms: not implemented yet\n");
93 if (ind2 < 0)
return 0.;
94 else return fabs (x0*x1);
96 if (ind2 < 0)
return fabs (x0*x2);
97 else return fabs (x0*sqrt(x1*x1 + x2*x2));
100 if (ind2 < 0)
return fabs (x1*x2);
101 else return fabs (x1*sqrt(x0*x0 + x2*x2));
103 if (ind2 < 0)
return fabs (x2*sqrt(x0*x0 + x1*x1));
104 else return sqrt (x0*x0 + x1*x1 + x2*x2);
int compareExpr(const void *e0, const void *e1)
independent comparison
CouNumber gradientNorm(const double *x)
return l-2 norm of gradient at given point
virtual int Index() const
Return index of variable (only valid for exprVar and exprAux)
exprTrilinear(expression **, int)
Constructor.
expression ** arglist_
argument list is an array of pointers to other expressions
double CouNumber
main number type in Couenne
int nargs_
number of arguments (cardinality of arglist)
virtual void closestFeasible(expression *varind, expression *vardep, CouNumber &left, CouNumber &right) const
compute and for Violation Transfer algorithm
virtual CouNumber Value() const
value (empty)
void fint fint fint real fint real * x
class for multiplications,