# Pain Machines state-space model

Run locally:

```bash
python model.py --json
python model.py --profile conservative
python model.py --profile liberal --json
```

The browser widget on the [Pain Machines](/posts/pain_machines/) post executes the same logic in JavaScript.
