Skip to content

docs: improve Boltzmann Wealth Model README structure and clarity#3229

Merged
quaquel merged 4 commits intomesa:mainfrom
souro26:improve-boltzmann-readme
Feb 4, 2026
Merged

docs: improve Boltzmann Wealth Model README structure and clarity#3229
quaquel merged 4 commits intomesa:mainfrom
souro26:improve-boltzmann-readme

Conversation

@souro26
Copy link
Copy Markdown
Contributor

@souro26 souro26 commented Jan 30, 2026

Summary

Improves the Boltzmann Wealth Model README by adding structural clarification and explaining the Gini coefficient output.

Motive

The existing README did not explain:

  • How the model files are organized (agents vs model vs visualization)
  • What the Gini coefficient means or where it comes from
  • The separation of concerns in Mesa's architecture

This made it harder for newcomers to understand the example's structure when following the tutorial.

Implementation

Added two new sections to the README:

  1. "How the Model Is Structured" - Explains Mesa's separation of concerns (agents.py, model.py, app.py) and how they interact

  2. "Understanding the Output" - Brief explanation of the Gini coefficient (0 = equality, 1 = inequality) and notes that it's computed by DataCollector in model.py

Usage Examples

N/A - This is a documentation-only change.

Additional Notes

This change only affects the README and does not modify any code or functionality. The additions are intentionally minimal to avoid duplicating Mesa's existing tutorial documentation.

@quaquel quaquel added the docs Release notes label label Jan 30, 2026

This example follows Mesa’s standard separation of concerns:

- Individual agent behavior is defined independently from system-level rules.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you tie this to the files list above, such as:

model.py: Manages the model by, instating, agents, space, and data collection.
agents.py: ...

@souro26
Copy link
Copy Markdown
Contributor Author

souro26 commented Feb 2, 2026

I've updated the section to tie each explanation directly to its corresponding file. I'm happy to make any other changes as per your preferences.

@quaquel quaquel merged commit a26a303 into mesa:main Feb 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Release notes label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants