Mesa: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

28 February 2025

  • curprev 00:3600:36, 28 February 2025EdmondLascaris talk contribs 2,745 bytes +2,745 Created page with "=Introduction= =Code 1= <syntaxhighlight lang="python"> from mesa import Agent, Model from mesa.time import RandomActivation from mesa.datacollection import DataCollector import matplotlib.pyplot as plt class VillageResident(Agent): """An agent representing a resident choosing between personal cars and public transport.""" def __init__(self, unique_id, model): super().__init__(unique_id, model) self.transport_mode = "car" if self.random.ra..."