Changeset 835 for stable/0.4
 Timestamp:
 Feb 11, 2012 2:27:53 PM (8 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

stable/0.4/Couenne/src/bound_tightening/operators/impliedBoundsexprPow.cpp
r834 r835 53 53 54 54 CouNumber 55 wl = ((sign == expression::AUX_ LEQ) ? COIN_DBL_MAX : l [wind]), // lower w56 wu = ((sign == expression::AUX_ GEQ) ? COIN_DBL_MAX : u [wind]); // upper w55 wl = ((sign == expression::AUX_GEQ) ? COIN_DBL_MAX : l [wind]), // lower w 56 wu = ((sign == expression::AUX_LEQ) ? COIN_DBL_MAX : u [wind]); // upper w 57 57 58 58 if ((isint  isinvint) && (intk % 2)) { … … 92 92 bound = (k>0) ? wl : wu; 93 93 94 CouNumber xl = l [index], 95 xu = u [index], 96 xb = safe_pow (bound, 1./k); 94 if (bound > 0.) { 97 95 98 if (xl >  xb + COUENNE_EPS) resL = updateBound (1, l + index, xb)  resL; 99 else if (xu < xb  COUENNE_EPS) resU = updateBound ( 1, u + index,  xb)  resU; 96 CouNumber 97 xl = l [index], 98 xu = u [index], 99 xb = safe_pow (bound, 1./k); 100 101 if (xl >  xb + COUENNE_EPS) resL = updateBound (1, l + index, xb)  resL; 102 else if (xu < xb  COUENNE_EPS) resU = updateBound ( 1, u + index,  xb)  resU; 103 } 100 104 101 105 } else {
Note: See TracChangeset
for help on using the changeset viewer.