Go to the source code of this file.
|
| #define | F eval1 /* default separator evaluation function */ |
| #define | TOL1 0.50 /* tolerated imbalance induced by bisector */ |
| #define | PEN1 100 /* penalty in case of higher imbalance */ |
| #define | eval1(S, B, W) |
| #define | alpha 0.1 |
| #define | TOL2 0.70 |
| #define | PEN2 100 |
| #define | eval2(S, B, W) |
| #define | alpha2 0.33 |
| #define | eval3(S, B, W) |
◆ alpha
◆ alpha2
◆ eval1
| #define eval1 |
( |
| S, |
|
|
| B, |
|
|
| W ) |
Value:
Definition at line 26 of file eval.h.
26#define eval1(S, B, W) \
27 S + PEN1 * max(0, max(W,B) * (1-TOL1) - min(W,B)) \
28 + (FLOAT)(max(W,B)-min(W,B)) / (FLOAT)max(W,B)
◆ eval2
| #define eval2 |
( |
| S, |
|
|
| B, |
|
|
| W ) |
Value:
Definition at line 39 of file eval.h.
39#define eval2(S, B, W) \
40 S * (1 + alpha * ((FLOAT)max(W,B)/(FLOAT)max(1,min(W,B)))) \
41 + PEN2 * max(0, max(W,B) * (1-TOL2) - min(W,B))
◆ eval3
| #define eval3 |
( |
| S, |
|
|
| B, |
|
|
| W ) |
Value:
Definition at line 50 of file eval.h.
50#define eval3(S, B, W) \
51 S * S + alpha2 * (max(W,B)-min(W,B)) * (max(W,B)-min(W,B))
◆ PEN1
| #define PEN1 100 /* penalty in case of higher imbalance */ |
◆ PEN2
◆ TOL1
| #define TOL1 0.50 /* tolerated imbalance induced by bisector */ |
◆ TOL2