diff options
Diffstat (limited to 'native/src/blocking/linprog/lp_fmlp.cpp')
| -rw-r--r-- | native/src/blocking/linprog/lp_fmlp.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/native/src/blocking/linprog/lp_fmlp.cpp b/native/src/blocking/linprog/lp_fmlp.cpp index 75e2186..3f2ff94 100644 --- a/native/src/blocking/linprog/lp_fmlp.cpp +++ b/native/src/blocking/linprog/lp_fmlp.cpp | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | #include <iostream> | 1 | #include <iostream> |
| 2 | #include <set> | 2 | #include <set> |
| 3 | #include <algorithm> | 3 | #include <algorithm> |
| 4 | #include <cmath> | ||
| 4 | 5 | ||
| 5 | #include "lp_common.h" | 6 | #include "lp_common.h" |
| 6 | #include "blocking.h" | 7 | #include "blocking.h" |
| @@ -244,8 +245,8 @@ static void apply_fmlp_bounds_for_task( | |||
| 244 | 245 | ||
| 245 | Interference total, remote, local; | 246 | Interference total, remote, local; |
| 246 | 247 | ||
| 247 | total.total_length = sol->evaluate(*lp.get_objective()); | 248 | total.total_length = lrint(sol->evaluate(*lp.get_objective())); |
| 248 | local.total_length = sol->evaluate(*local_obj); | 249 | local.total_length = lrint(sol->evaluate(*local_obj)); |
| 249 | remote.total_length = total.total_length - local.total_length; | 250 | remote.total_length = total.total_length - local.total_length; |
| 250 | 251 | ||
| 251 | bounds[i] = total; | 252 | bounds[i] = total; |
