Log file agent_hist_log.txt needs a "]" to be manually added at the end of the file after the program has been terminated.
The specialism cannot yet be switched on and off with a config param.
Agents with id < num_agents/2 are grey in colour, and are specialised to collect water at a higher rate, determined by SPECIAL_WATER_ACQUIRE_RATE. The other half of the agents are white in colour, and are specialised to collect food at the SPECIAL_FOOD_ACQUIRE_RATE.
A non-default implementation of find_nearest_trader() overwrites the default when the Routing trait is implemented for the Trader. This custom implementation routes traders to the nearest trader of the other specialism when they select the ToAgent action. This might not be the most appropriate way to do this.
When resources are collected by each agent in the .step() method on Forager, the id of the agent is matched on to determine whether SPECIAL_FOOD_ACQUIRE_RATE or FOOD_ACQUIRE_RATE is added to the inventory (in the case the resource is food).
Current state of the branch:
agent_hist_log.txt
needs a "]" to be manually added at the end of the file after the program has been terminated.id < num_agents/2
are grey in colour, and are specialised to collect water at a higher rate, determined bySPECIAL_WATER_ACQUIRE_RATE
. The other half of the agents are white in colour, and are specialised to collect food at theSPECIAL_FOOD_ACQUIRE_RATE
.find_nearest_trader()
overwrites the default when theRouting
trait is implemented for theTrader
. This custom implementation routes traders to the nearest trader of the other specialism when they select theToAgent
action. This might not be the most appropriate way to do this..step()
method onForager
, the id of the agent is matched on to determine whetherSPECIAL_FOOD_ACQUIRE_RATE
orFOOD_ACQUIRE_RATE
is added to the inventory (in the case the resource is food).