Parameters
Activity A
Peak pain (Pmax)
7
010
Duration (d)
2m
0m10m
Pain ramp constant (δ)
0.6m
0.1m5m
Pain decay (τp)
9m
1m60m
Reward peak (R)
3
010
Reward decay (τr)
120m
1m600m
Activity B
Delay to Activity B start (T)
6m
0m60m
Peak pain (Pmax)
0
010
Duration (d)
15m
0m60m
Pain ramp constant (δ)
0.6m
0.1m5m
Pain decay (τp)
9m
1m60m
Reward peak (R)
6
010
Reward decay (τr)
180m
1m600m
Contrast bonus
Contrast scale (α)
0.3
02
Nonlinearity (γ)
1.3
0.53
Contrast decay (τc)
30m
1m120m
Time preference & simulation
Discount rate (k)
0.2/h
0/h2/h
Horizon
360m
60m1440m
Affect curve
Affect is relative to baseline. Positive = pleasurable, negative = painful. Time in hours.
A: P(d)
6.75
B: P(d)
0.00
Contrast (A→B)
2.94
Peak
8.33 @0.10h
Trough
-3.75 @0.00h
Net Present Value (NPV)
Numerical integral of affect discounted by k over the horizon.
14.12
Tip: Try toggling sauna off, then on. Then increase delay T to see how the “contrast” benefit decays.