fix Grace's name

This commit is contained in:
Alexander Bocken 2023-05-17 15:57:23 +02:00
parent ecb9cc26e9
commit 9cce168536
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8
5 changed files with 7 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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