mesa-examples icon indicating copy to clipboard operation
mesa-examples copied to clipboard

Updates and Fixes to Epstein Civil Violence Model

Open JoeHelbing opened this issue 2 years ago • 3 comments

This is my first public repository issue/pull request. I had mentioned I made these changes a few months ago, but haven't had time until now after the school year is over to clean it up and organize it for a pull request.

These changes fix the lack of cyclical explosions in Citizen agent behavior in the mesa Epstein Civil Violence model with a few tweaks.

Bug Fixes

  • Fix agent state logic
  • Fix Moore vs Von Neuman neighborhood selection to use Epstein paper behavior
  • Fix agent vision bug (was 1 and not parameter vision when calculating neighborhood, which also fixes agent movement issue)
  • Fix arrestee state issue (arrestee was not being reset to "Quiescent", and so was counting as "Active" for all nearby agents)

Additions and Changes

  • add model attributes to count agents and display a graph of agent states
  • Change display of agents where jailed agents are represented by grey square box
  • Added sliders for model attributes

JoeHelbing avatar Jun 24 '23 03:06 JoeHelbing

I would like to eork on this issue. Can you Please assign this to me.

VinayakPaka avatar Aug 15 '24 09:08 VinayakPaka

@JoeHelbing thanks for opening the issue! Would you like to work on it yourself, or can I assign it to Vinayak?

EwoutH avatar Aug 15 '24 10:08 EwoutH

@EwoutH This was integrated into the mesa examples with a pull request already. Sorry, was my first pull request to a public repo (and first issue too) so I think I forgot to update the issue when that pull was merged.

edit not seeing how to close or update this on my side either. If I'm wrong and this wasn't properly merged, I still have the code stored that fixes this above and can redo the pull.

JoeHelbing avatar Aug 15 '24 14:08 JoeHelbing