jolars / slopecd

4 stars 2 forks source link

feat: add max_time argument #30

Closed jolars closed 2 years ago

jolars commented 2 years ago

This is a small pull request that adds the ability to stop the solver after a maximum time has passed. It's useful for debugging but also for experiments where you don't want to wait for slow-running solvers to finish (and anyway will have to crop the resulting plot).

Capped at 3 seconds here:

image