Crime - punishment simulator
Simulate the crime-punishment model in "When Brute Force Fails: How to Have Less Crime and Less Punishment", Mark A. R. Kleiman, pp.58-67:
"Every week some clients [probationers] violate the rule. The probation officer must then decide which one of those violators to punish, but can not punish more than...eight of them...
Let each probationer start with some initial probability of violating on any given day, varying randomly among probationers. The probability rises every time a probationer gets away with a violation and falls every time the probationer is sanctioned for a violation."
This simulation can be used to test different strategies (e.g. dynamic concentration) to combat violations.
Prepared with Matlab R2010b
Cite As
samil (2024). Crime - punishment simulator (https://www.mathworks.com/matlabcentral/fileexchange/34717-crime-punishment-simulator), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Verification, Validation, and Test > Simulink Design Verifier > Generate Tests > Test Case Extension >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |