From dc86ef4bd7edb6b8d19fc16bb5a9a675630d8010 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 9 Nov 2025 19:03:43 -0600 Subject: [PATCH] Add configuration files for TPS sweep and default simulation settings --- configs/experiment_tps_sweep.json | 68 +++++++++++++++++++++++++++++++ configs/headless_default.json | 50 +++++++++++++++++++++++ configs/interactive_default.json | 45 ++++++++++++++++++++ 3 files changed, 163 insertions(+) create mode 100644 configs/experiment_tps_sweep.json create mode 100644 configs/headless_default.json create mode 100644 configs/interactive_default.json diff --git a/configs/experiment_tps_sweep.json b/configs/experiment_tps_sweep.json new file mode 100644 index 0000000..081bed3 --- /dev/null +++ b/configs/experiment_tps_sweep.json @@ -0,0 +1,68 @@ +{ + "name": "tps_sweep", + "description": "Test different TPS values", + "runs": 5, + "run_duration": 60.0, + "run_ticks": null, + "variables": { + "simulation.default_tps": [ + 10, + 20, + 40, + 80, + 160 + ] + }, + "base_config": { + "max_ticks": null, + "max_duration": null, + "output": { + "enabled": true, + "directory": "simulation_output", + "formats": [ + "json" + ], + "collect_metrics": false, + "collect_entities": false, + "collect_evolution": false, + "metrics_interval": 100, + "entities_interval": 1000, + "evolution_interval": 1000, + "real_time": false + }, + "simulation": { + "grid_width": 50, + "grid_height": 50, + "cell_size": 20, + "initial_cells": 50, + "initial_food": 500, + "food_spawning": true, + "random_seed": 0, + "default_tps": 40.0, + "entities": { + "max_acceleration": 0.125, + "max_angular_acceleration": 0.25, + "max_velocity": 1.0, + "max_rotational_velocity": 3.0, + "entity_types": { + "default_cell": { + "reproduction_energy": 1700, + "starting_energy": 1000, + "interaction_radius": 50, + "drag_coefficient": 0.02, + "energy_cost_base": 1.5, + "neural_network_complexity_cost": 0.08, + "movement_cost": 0.25, + "food_energy_value": 140, + "max_visual_width": 10, + "reproduction_count": 2, + "mutation_rate": 0.05, + "offspring_offset_range": 10 + } + } + } + } + }, + "aggregate_results": true, + "aggregate_format": "csv" +} \ No newline at end of file diff --git a/configs/headless_default.json b/configs/headless_default.json new file mode 100644 index 0000000..24a007c --- /dev/null +++ b/configs/headless_default.json @@ -0,0 +1,50 @@ +{ + "max_ticks": null, + "max_duration": null, + "output": { + "enabled": true, + "directory": "simulation_output", + "formats": [ + "json" + ], + "collect_metrics": false, + "collect_entities": false, + "collect_evolution": false, + "metrics_interval": 100, + "entities_interval": 1000, + "evolution_interval": 1000, + "real_time": false + }, + "simulation": { + "grid_width": 50, + "grid_height": 50, + "cell_size": 20, + "initial_cells": 50, + "initial_food": 500, + "food_spawning": true, + "random_seed": 0, + "default_tps": 40.0, + "entities": { + "max_acceleration": 0.125, + "max_angular_acceleration": 0.25, + "max_velocity": 1.0, + "max_rotational_velocity": 3.0, + "entity_types": { + "default_cell": { + "reproduction_energy": 1700, + "starting_energy": 1000, + "interaction_radius": 50, + "drag_coefficient": 0.02, + "energy_cost_base": 1.5, + "neural_network_complexity_cost": 0.08, + "movement_cost": 0.25, + "food_energy_value": 140, + "max_visual_width": 10, + "reproduction_count": 2, + "mutation_rate": 0.05, + "offspring_offset_range": 10 + } + } + } + } +} \ No newline at end of file diff --git a/configs/interactive_default.json b/configs/interactive_default.json new file mode 100644 index 0000000..534e73b --- /dev/null +++ b/configs/interactive_default.json @@ -0,0 +1,45 @@ +{ + "window_width": 0, + "window_height": 0, + "vsync": true, + "resizable": true, + "show_grid": true, + "show_interaction_radius": false, + "show_legend": true, + "control_bar_height": 48, + "inspector_width": 260, + "properties_width": 320, + "console_height": 120, + "simulation": { + "grid_width": 50, + "grid_height": 50, + "cell_size": 20, + "initial_cells": 500, + "initial_food": 500, + "food_spawning": true, + "random_seed": 0, + "default_tps": 40.0, + "entities": { + "max_acceleration": 0.125, + "max_angular_acceleration": 0.25, + "max_velocity": 1.0, + "max_rotational_velocity": 3.0, + "entity_types": { + "default_cell": { + "reproduction_energy": 1400, + "starting_energy": 500, + "interaction_radius": 50, + "drag_coefficient": 0.02, + "energy_cost_base": 1.5, + "neural_network_complexity_cost": 0.05, + "movement_cost": 0.25, + "food_energy_value": 140, + "max_visual_width": 10, + "reproduction_count": 2, + "mutation_rate": 0.05, + "offspring_offset_range": 10 + } + } + } + } +} \ No newline at end of file