|
@ -54,12 +54,10 @@ pub fn create_new_best_combination(city: &City, left_layouts: &Vec<SavedLayout>, |
|
|
for right_layout in right_layouts { |
|
|
for right_layout in right_layouts { |
|
|
if let Some(bound) = db.get_merge_lower_bound(left_layout, right_layout, transposed) { |
|
|
if let Some(bound) = db.get_merge_lower_bound(left_layout, right_layout, transposed) { |
|
|
if bound < best_price.expect("No best price set while lower bounds exist") { |
|
|
if bound < best_price.expect("No best price set while lower bounds exist") { |
|
|
eprintln!("Low bound; left needed ({} - {})", left_layout.id(), right_layout.id()); |
|
|
|
|
|
needed = true; |
|
|
needed = true; |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
eprintln!("No bound; left needed ({} - {})", left_layout.id(), right_layout.id()); |
|
|
|
|
|
needed = true; |
|
|
needed = true; |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|