13 using namespace Couenne;
25 if (arg -> Linearity () <=
LINEAR) {
30 switch (arg -> code ()) {
36 index = arg -> Index ();
43 index = arg -> Argument () -> Index ();
47 arg = arg -> Argument ();
49 int argcode = arg -> code ();
67 index = (*factors) -> Index ();
70 index = factors [pos = 1] -> Index ();
73 (fabs (coeff = oppMulCoe * factors [1 - pos] -> Value ()) <
COUENNE_EPS))
85 coeff = factors [1] -> Value ();
86 index = (*factors) -> Index ();
90 else coeff = 1. / coeff;
pos
position where the operator should be printed when printing the expression
void elementBreak(expression *arg, int &index, CouNumber &coeff)
given an element of a sum, check if it is a variable (possibly with a coefficient) and return its ind...
double CouNumber
main number type in Couenne