-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
48 lines (40 loc) · 1.24 KB
/
config.yaml
File metadata and controls
48 lines (40 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Genetic Algorithm Configuration for TSP
# Problem Configuration
problem:
num_cities: 40
max_coordinate: 100
random_seed: 42 # Set to null for random seed
# Algorithm Parameters
algorithm:
population_size: 250
elite_size: 20
generations: 500
# Adaptive Mutation Rate
mutation_rate_initial: 0.02 # Starting mutation rate
mutation_rate_final: 0.005 # Ending mutation rate
mutation_decay: "linear" # Options: linear, exponential
# Early Stopping
early_stopping_enabled: true
patience: 50 # Stop if no improvement for this many generations
min_improvement: 0.01 # Minimum improvement threshold (%)
# Performance Settings
performance:
use_parallel: true
num_processes: null # null = use all available CPU cores
# Logging Settings
logging:
verbose: true
log_interval: 50 # Print stats every N generations
detailed_stats: true # Include best/worst/avg/std dev
# Visualization Settings
visualization:
save_plots: true
plot_format: "png" # Options: png, pdf, svg
output_dir: "results"
show_plots: false # Set to true to display plots interactively
# Output Settings
output:
save_results: true
results_file: "results/ga_results.json"
save_best_route: true
route_file: "results/best_route.json"