Add a star for shortest path

This commit is contained in:
hal8174 2025-02-11 20:16:19 +01:00
parent b96ef6f2c1
commit b53d1e87bc
4 changed files with 65 additions and 19 deletions

View file

@ -29,20 +29,20 @@ fn main() {
let l = ValidLayout {
max_tries: 4,
retries: 4,
start_size: Position::new(128, 128),
start_size: Position::new(256, 256),
growth: Position::new(16, 16),
};
let l = GeneticAlgorithm {
mutation_retries: 20,
population_size: 40,
population_size: 5,
population_keep: 8,
population_new: 2,
generations: 40,
generations: 5,
valid_layout: l,
};
let p = ConflictAvoidance {
timeout: Some(std::time::Duration::from_millis(20)),
timeout: Some(std::time::Duration::from_millis(100)),
};
let mut rng = SmallRng::seed_from_u64(args.seed);