diff options
author | Arne Sund <arnels@samfundet.no> | 2015-02-21 11:16:32 +0100 |
---|---|---|
committer | Arne Sund <arnels@samfundet.no> | 2015-02-21 11:16:32 +0100 |
commit | 09bf1fafd7c333da8a9630322adc9e2c21a27149 (patch) | |
tree | 78d7033519ce1f5e1971b9637f021c01ce71fd67 /planning | |
parent | 2d5ea19789211b7391ba19b2db775dba1fc611a0 (diff) |
We don't want horisontal crossings
Diffstat (limited to 'planning')
-rw-r--r-- | planning/planning.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/planning/planning.cpp b/planning/planning.cpp index 52a6f73..a20c3c1 100644 --- a/planning/planning.cpp +++ b/planning/planning.cpp @@ -32,7 +32,7 @@ #define TRUNCATE_METRIC 1 #define EXTENSION_COST 70 -#define HORIZ_GAP_COST 100 +#define HORIZ_GAP_COST 10000000 #define FIRST_SUBNET_ADDRESS "151.216.129.0" #define SUBNET_SIZE 26 @@ -181,6 +181,7 @@ unsigned Planner::find_distance(Switch from_where, int distro) // Cross it (5.0m horizontal gap)... base_cost += 50; + base_cost += 1000000; //We don't like horisontal gaps // ...and away from the bridge again. base_cost += 36 * abs(int(dp) - bridge_row); |