diff --git a/agent.py b/agent.py index 8cfada3..4a04919 100644 --- a/agent.py +++ b/agent.py @@ -4,7 +4,7 @@ agent.py - Part of ants project This model implements the actual agents on the grid (a.k.a. the ants) License: AGPL 3 (see end of file) -(C) Alexander Bocken, Viviane Fahrni, Grace Kragho +(C) Alexander Bocken, Viviane Fahrni, Grace Kagho """ import numpy as np import numpy.typing as npt @@ -16,7 +16,7 @@ class RandomWalkerAnt(Agent): energy_0=1, chemical_drop_rate_0 : dict[str, float]={"A": 80, "B": 80}, sensitivity_0=0.99, - alpha=0.5, drop_chemical=None, + alpha=0.6, drop_chemical=None, betas : dict[str, float]={"A": 0.0512, "B": 0.0512}, sensitivity_decay_rate=0.01, sensitivity_max = 1 diff --git a/main.py b/main.py index 10162db..1216451 100755 --- a/main.py +++ b/main.py @@ -4,7 +4,7 @@ main.py - Part of ants project execute via `python main.py` in terminal or only UNIX: `./main.py` License: AGPL 3 (see end of file) -(C) Alexander Bocken, Viviane Fahrni, Grace Kragho +(C) Alexander Bocken, Viviane Fahrni, Grace Kagho """ from model import ActiveWalkerModel from agent import RandomWalkerAnt diff --git a/model.py b/model.py index 18700ec..c88a204 100644 --- a/model.py +++ b/model.py @@ -5,7 +5,7 @@ This file implements the mesa model on which our ActiveRandomWalkerAnts will act License: AGPL 3 (see end of file) -(C) Alexander Bocken, Viviane Fahrni, Grace Kragho +(C) Alexander Bocken, Viviane Fahrni, Grace Kagho """ import numpy as np @@ -17,8 +17,6 @@ from mesa.datacollection import DataCollector from agent import RandomWalkerAnt class ActiveWalkerModel(Model): - # TODO: separate food and source into new agents? - # TODO: pheromone concentrations as well as agents? def __init__(self, width : int, height : int , num_max_agents : int, num_initial_roamers : int, nest_position : Coordinate, @@ -67,6 +65,7 @@ class ActiveWalkerModel(Model): for key in ("A", "B"): field = self.grid.fields[key] self.grid.fields[key] = field - self.decay_rates[key]*field + # TODO: plot to check whether exponential self.datacollector.collect(self) diff --git a/multihex.py b/multihex.py index c6a0ebc..e1ebae2 100644 --- a/multihex.py +++ b/multihex.py @@ -6,7 +6,7 @@ at the same location. The base for this code comes from the MultiGrid class in mesa/space.py License: AGPL 3 (see end of file) -(C) Alexander Bocken, Viviane Fahrni, Grace Kragho +(C) Alexander Bocken, Viviane Fahrni, Grace Kagho """ from sys import dont_write_bytecode diff --git a/server.py b/server.py index 1a4e8d8..a81d5aa 100755 --- a/server.py +++ b/server.py @@ -8,7 +8,7 @@ For now it displays ant locations as well as pheromone A concentrations on two seperate grids License: AGPL 3 (see end of file) -(C) Alexander Bocken, Viviane Fahrni, Grace Kragho +(C) Alexander Bocken, Viviane Fahrni, Grace Kagho """ import numpy as np