pull down to refresh

I started off thinking the math would be fairly simple, then realized that the right way to do it would have to be continuous time dynamic programming

It is neat that this turned out to be a less trivial problem than it seemed at first, even with the simplifying assumptions.

reply