From e1a3f14e499cc695fa85a0345df4113a27406ecb Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sun, 2 Nov 2025 20:24:45 +0100 Subject: [PATCH] chore: add jsons with plot definitions --- codes/tsp_hw01/.gitignore | 1 + .../tsp_plotter/algorithms_fitness_eil76.json | 26 ++++++++++++ .../algorithms_probability_all.json | 35 ++++++++++++++++ .../crossovers_probability_all.json | 35 ++++++++++++++++ .../heuristics_probability_all.json | 41 +++++++++++++++++++ .../perturbations_fitness_eil76.json | 28 +++++++++++++ .../perturbations_probability_all.json | 37 +++++++++++++++++ .../representations_probability_all.json | 37 +++++++++++++++++ 8 files changed, 240 insertions(+) create mode 100644 codes/tsp_hw01/.gitignore create mode 100644 codes/tsp_plotter/algorithms_fitness_eil76.json create mode 100644 codes/tsp_plotter/algorithms_probability_all.json create mode 100644 codes/tsp_plotter/crossovers_probability_all.json create mode 100644 codes/tsp_plotter/heuristics_probability_all.json create mode 100644 codes/tsp_plotter/perturbations_fitness_eil76.json create mode 100644 codes/tsp_plotter/perturbations_probability_all.json create mode 100644 codes/tsp_plotter/representations_probability_all.json diff --git a/codes/tsp_hw01/.gitignore b/codes/tsp_hw01/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..01367798865f10caa9924ec86ffc558edbd3aea6 --- /dev/null +++ b/codes/tsp_hw01/.gitignore @@ -0,0 +1 @@ +solutions \ No newline at end of file diff --git a/codes/tsp_plotter/algorithms_fitness_eil76.json b/codes/tsp_plotter/algorithms_fitness_eil76.json new file mode 100644 index 0000000000000000000000000000000000000000..f3aaa111ee04a565b18a1cca578543b32879bf71 --- /dev/null +++ b/codes/tsp_plotter/algorithms_fitness_eil76.json @@ -0,0 +1,26 @@ +{ + "instances": [ + "eil76" + ], + "algorithms": [ + "ea", + "ls_reverse", + "rs" + ], + "group_by_algorithm": true, + "base_path": "../tsp_hw01/solutions", + "output_path": "algorithms_fitness_eil76.svg", + "targets": [ + 1.0, + 5.0, + 10.0, + 20.0 + ], + "plot_type": "fitness_evolution", + "average_targets": false, + "algorithm_labels": { + "ea": "EA", + "ls_reverse": "LS", + "rs": "RS" + } +} \ No newline at end of file diff --git a/codes/tsp_plotter/algorithms_probability_all.json b/codes/tsp_plotter/algorithms_probability_all.json new file mode 100644 index 0000000000000000000000000000000000000000..1dade976b8c5647fcef8f846d5979acedc5a1b28 --- /dev/null +++ b/codes/tsp_plotter/algorithms_probability_all.json @@ -0,0 +1,35 @@ +{ + "instances": [ + "eil51", + "eil76", + "eil101", + "kroA100", + "ch150", + "kroA150", + "kroA200", + "a280", + "u574", + "u724" + ], + "algorithms": [ + "ea", + "ls_reverse", + "rs" + ], + "group_by_algorithm": true, + "base_path": "../tsp_hw01/solutions", + "output_path": "algorithms_probability_all.svg", + "targets": [ + 1.0, + 5.0, + 10.0, + 20.0 + ], + "plot_type": "success_probability", + "average_targets": true, + "algorithm_labels": { + "ea": "EA", + "ls_reverse": "LS", + "rs": "RS" + } +} \ No newline at end of file diff --git a/codes/tsp_plotter/crossovers_probability_all.json b/codes/tsp_plotter/crossovers_probability_all.json new file mode 100644 index 0000000000000000000000000000000000000000..c273251fd94e1921589713591614951a8da92e66 --- /dev/null +++ b/codes/tsp_plotter/crossovers_probability_all.json @@ -0,0 +1,35 @@ +{ + "instances": [ + "eil51", + "eil76", + "eil101", + "kroA100", + "ch150", + "kroA150", + "kroA200", + "a280", + "u574", + "u724" + ], + "algorithms": [ + "ea_pmx", + "ea_erx", + "ea_cx" + ], + "group_by_algorithm": true, + "base_path": "../tsp_hw01/solutions", + "output_path": "crossovers_probability_all.svg", + "targets": [ + 1.0, + 5.0, + 10.0, + 20.0 + ], + "plot_type": "success_probability", + "average_targets": true, + "algorithm_labels": { + "ea_pmx": "EA (pmx)", + "ea_erx": "EA (erx)", + "ea_cx": "EA (cx)" + } +} \ No newline at end of file diff --git a/codes/tsp_plotter/heuristics_probability_all.json b/codes/tsp_plotter/heuristics_probability_all.json new file mode 100644 index 0000000000000000000000000000000000000000..4daa04a4c28106cd33eea155a8d0a8d49c45a2b7 --- /dev/null +++ b/codes/tsp_plotter/heuristics_probability_all.json @@ -0,0 +1,41 @@ +{ + "instances": [ + "eil51", + "eil76", + "eil101", + "kroA100", + "ch150", + "kroA150", + "kroA200", + "a280", + "u574", + "u724" + ], + "algorithms": [ + "ea", + "ea_nn", + "ea_mst", + "ls_reverse", + "ls_nn", + "ls_mst" + ], + "group_by_algorithm": true, + "base_path": "../tsp_hw01/solutions", + "output_path": "heuristics_probability_all.svg", + "targets": [ + 1.0, + 5.0, + 10.0, + 20.0 + ], + "plot_type": "success_probability", + "average_targets": true, + "algorithm_labels": { + "ea": "EA (normal)", + "ea_nn": "EA (nn)", + "ea_mst": "EA (mst)", + "ls_reverse": "LS (normal)", + "ls_nn": "LS (nn)", + "ls_mst": "LS (mst)" + } +} \ No newline at end of file diff --git a/codes/tsp_plotter/perturbations_fitness_eil76.json b/codes/tsp_plotter/perturbations_fitness_eil76.json new file mode 100644 index 0000000000000000000000000000000000000000..a29f7880b513fe178a6d99f02437619f19cbe049 --- /dev/null +++ b/codes/tsp_plotter/perturbations_fitness_eil76.json @@ -0,0 +1,28 @@ +{ + "instances": [ + "eil76" + ], + "algorithms": [ + "ls_move", + "ls_swap", + "ls_reverse", + "ls_mix" + ], + "group_by_algorithm": true, + "base_path": "../tsp_hw01/solutions", + "output_path": "perturbations_fitness_eil76.svg", + "targets": [ + 1.0, + 5.0, + 10.0, + 20.0 + ], + "plot_type": "fitness_evolution", + "average_targets": false, + "algorithm_labels": { + "ls_move": "LS (move)", + "ls_swap": "LS (swap)", + "ls_reverse": "LS (reverse)", + "ls_mix": "LS (mix)" + } +} \ No newline at end of file diff --git a/codes/tsp_plotter/perturbations_probability_all.json b/codes/tsp_plotter/perturbations_probability_all.json new file mode 100644 index 0000000000000000000000000000000000000000..1fc9a14fc9b2ed50cc8204d67cd7bd7ac173c399 --- /dev/null +++ b/codes/tsp_plotter/perturbations_probability_all.json @@ -0,0 +1,37 @@ +{ + "instances": [ + "eil51", + "eil76", + "eil101", + "kroA100", + "ch150", + "kroA150", + "kroA200", + "a280", + "u574", + "u724" + ], + "algorithms": [ + "ls_move", + "ls_swap", + "ls_reverse", + "ls_mix" + ], + "group_by_algorithm": true, + "base_path": "../tsp_hw01/solutions", + "output_path": "perturbations_probability_all.svg", + "targets": [ + 1.0, + 5.0, + 10.0, + 20.0 + ], + "plot_type": "success_probability", + "average_targets": true, + "algorithm_labels": { + "ls_move": "LS (move)", + "ls_swap": "LS (swap)", + "ls_reverse": "LS (reverse)", + "ls_mix": "LS (mix)" + } +} \ No newline at end of file diff --git a/codes/tsp_plotter/representations_probability_all.json b/codes/tsp_plotter/representations_probability_all.json new file mode 100644 index 0000000000000000000000000000000000000000..13507c4e4f0610825ad5fc1ec15ed5102c40ed4c --- /dev/null +++ b/codes/tsp_plotter/representations_probability_all.json @@ -0,0 +1,37 @@ +{ + "instances": [ + "eil51", + "eil76", + "eil101", + "kroA100", + "ch150", + "kroA150", + "kroA200", + "a280", + "u574", + "u724" + ], + "algorithms": [ + "ea_binary", + "ea", + "ls_binary", + "ls_reverse" + ], + "group_by_algorithm": true, + "base_path": "../tsp_hw01/solutions", + "output_path": "representations_probability_all.svg", + "targets": [ + 1.0, + 5.0, + 10.0, + 20.0 + ], + "plot_type": "success_probability", + "average_targets": true, + "algorithm_labels": { + "ea_binary": "EA (binary)", + "ea": "EA (normal)", + "ls_binary": "LS (binary)", + "ls_reverse": "LS (normal)" + } +} \ No newline at end of file