Browse Source

Print house count at start

master
Jirka Sejkora 4 years ago
parent
commit
71aaabdec4
  1. 2
      src/main.rs

2
src/main.rs

@ -35,7 +35,7 @@ fn main() {
eprintln!("Starting random population, using DB ({}-{} {})...", eprintln!("Starting random population, using DB ({}-{} {})...",
MIN_WEIGHT_SCORE, MAX_WEIGHT_SCORE, DB_CHOICE_PROBABILITY); MIN_WEIGHT_SCORE, MAX_WEIGHT_SCORE, DB_CHOICE_PROBABILITY);
population::populate_using_db(&mut layout, &mut rng, &db, MIN_WEIGHT_SCORE, MAX_WEIGHT_SCORE, DB_CHOICE_PROBABILITY); population::populate_using_db(&mut layout, &mut rng, &db, MIN_WEIGHT_SCORE, MAX_WEIGHT_SCORE, DB_CHOICE_PROBABILITY);
eprintln!("Finished random init, price: {}", layout.price()); eprintln!("Finished random init, price: {}, houses: {}", layout.price(), layout.houses().len());
loop { loop {
let mut improved = false; let mut improved = false;
eprintln!("Starting moving individual houses..."); eprintln!("Starting moving individual houses...");

Loading…
Cancel
Save