Update app.py
Browse files
app.py
CHANGED
|
@@ -90,7 +90,8 @@ def run_simulation(num_agents, battery_life):
|
|
| 90 |
fig, ax = plt.subplots(figsize=(6, 6))
|
| 91 |
max_vel = 0.8
|
| 92 |
|
| 93 |
-
|
|
|
|
| 94 |
for n in range(no_of_agents):
|
| 95 |
trajectories[n].append(agents[n, [0, 4]].copy())
|
| 96 |
agent_betas[n], delta_w, pos_idx, d_sq = update_weight_local(agents[n, [0, 4]], y_ref, agent_betas[n], alpha_k)
|
|
|
|
| 90 |
fig, ax = plt.subplots(figsize=(6, 6))
|
| 91 |
max_vel = 0.8
|
| 92 |
|
| 93 |
+
max_steps = 10000
|
| 94 |
+
for t in range(1, max_steps+1):
|
| 95 |
for n in range(no_of_agents):
|
| 96 |
trajectories[n].append(agents[n, [0, 4]].copy())
|
| 97 |
agent_betas[n], delta_w, pos_idx, d_sq = update_weight_local(agents[n, [0, 4]], y_ref, agent_betas[n], alpha_k)
|