Aman Bihari
Aman Bihari
I propose implementing a **read-only interface with a private backing field**. This effectively mimics standard Python encapsulation (where a public read-only property exposes a private writable attribute), adapted dynamically for...
Hi @Nithin9585, I believe there are some architectural flaws in your proposal: >Direct Data Access for Internals: For internal updates (like Grid managing empty), we don't need a set_value method....
Great work on Actions @EwoutH I’ve been tackling this exact problem, separating an action's physical effect from the agent's decision of "what to do next", while prototyping a Behavioral Framework...
> Would have to see a more worked out conceptual diagram or so to provide more feedback. I have discussed a preliminary design here https://github.com/mesa/mesa/discussions/3428 However I need to update...
Some architectural challenges that I faced worth noting while reaching to this implementation are **Priority Queue Tombstone Bloat** Discrete event scheduling uses a priority queue (`heapq`) to predict future threshold...
Please see https://github.com/mesa/mesa/discussions/3721#discussioncomment-17361534 also
**Columnar Memory Layout** The `StateTensor` centralizes all continuous values, rates, limits, and projections into 1D NumPy arrays. ```python # L26-30 self.values = np.zeros(capacity, dtype=np.float64) self.rates = np.zeros(capacity, dtype=np.float64) self.last_update_times =...
I went on and implemented the approach I mentioned [here](https://github.com/mesa/mesa/discussions/3347#discussioncomment-15879731) To specifically test the edge case raised by @quaquel, pausing the model, manually scheduling a new event at the paused...
I strongly lean toward changing the return type to a dict of lists. >what is more common: accessing individual agents, or accessing an attribute for all agents. In my experience,...
However I have one major concern, each agent is a discrete object holding its own bundle of attributes. Currently, AgentDataSet takes a snapshot by simply zipping the agent's attributes into...