Skip to content

Commit

Permalink
centered and moving
Browse files Browse the repository at this point in the history
  • Loading branch information
kngwyu committed Sep 21, 2024
1 parent e2042c3 commit fda26e3
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
32 changes: 32 additions & 0 deletions config/env/20240922-centered.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
n_initial_agents = 100
n_max_agents = 240
n_max_foods = 120
food_num_fn = ["linear", 40, 0.2, 120]
food_loc_fn = ["gaussian", [240.0, 240.0], [48.0, 48.0]]
food_loc_fn = "uniform"
agent_loc_fn = "uniform"
xlim = [0.0, 480.0]
ylim = [0.0, 480.0]
env_shape = "square"
neighbor_stddev = 100.0
n_agent_sensors = 24
sensor_length = 200.0
sensor_range = "wide"
agent_radius = 10.0
food_radius = 4.0
foodloc_interval = 1000
dt = 0.1
linear_damping = 0.8
angular_damping = 0.6
max_force = 80.0
min_force = -20.0
init_energy = 80.0
energy_capacity = 400.0
force_energy_consumption = 1e-5
basic_energy_consumption = 5e-4
energy_share_ratio = 0.4
n_velocity_iter = 6
n_position_iter = 2
n_physics_iter = 5
max_place_attempts = 10
n_max_food_regen = 10
38 changes: 38 additions & 0 deletions config/env/20240922-moving.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
n_initial_agents = 100
n_max_agents = 240
n_max_foods = 120
food_num_fn = ["linear", 20, 0.2, 120]
food_loc_fn = ["switching",
1000,
# Rotate clockwise
["gaussian", [360.0, 360.0], [48.0, 48.0]],
["gaussian", [360.0, 120.0], [48.0, 48.0]],
["gaussian", [120.0, 130.0], [48.0, 48.0]],
["gaussian", [120.0, 360.0], [48.0, 48.0]],
]
agent_loc_fn = "uniform"
xlim = [0.0, 480.0]
ylim = [0.0, 480.0]
env_shape = "square"
neighbor_stddev = 100.0
n_agent_sensors = 24
sensor_length = 200.0
sensor_range = "wide"
agent_radius = 10.0
food_radius = 4.0
foodloc_interval = 1000
dt = 0.1
linear_damping = 0.8
angular_damping = 0.6
max_force = 80.0
min_force = -20.0
init_energy = 80.0
energy_capacity = 400.0
force_energy_consumption = 1e-5
basic_energy_consumption = 5e-4
energy_share_ratio = 0.4
n_velocity_iter = 6
n_position_iter = 2
n_physics_iter = 5
max_place_attempts = 10
n_max_food_regen = 10

0 comments on commit fda26e3

Please sign in to comment.