#include "CouennePrecisions.hpp"
#include "CouenneTypes.hpp"
#include "CouenneObject.hpp"
#include "CouenneExprTrilinear.hpp"
#include "CouenneFunTriplets.hpp"
#include "CouenneProjections.hpp"
Include dependency graph for branchExprTrilinear.cpp:
Go to the source code of this file.
Defines | |
#define | SETBNDS(l, u, ind) |
#define SETBNDS | ( | l, | |||
u, | |||||
ind | ) |
Value:
{ \ \ if (l < -COUENNE_INFINITY) {\ if (u > 1.) {*brpts = 0.; brDist [0] = brDist [1] = 1.; var = arglist_ [ind]; return 1.;}\ else {*brpts = 2*-fabs (u) - 1.; brDist [0] = brDist [1] = 1.; var = arglist_ [ind]; return 1.;}\ }\ \ if (u > COUENNE_INFINITY) {\ if (l < -1.) {*brpts = 0.; brDist [0] = brDist [1] = 1.; var = arglist_ [ind]; return 1.;}\ else {*brpts = 2*fabs (u) + 1.; brDist [0] = brDist [1] = 1.; var = arglist_ [ind]; return 1.;}\ }\ }
Referenced by Couenne::exprTrilinear::selectBranch().