It would be nice to have this as a decorator, so that one could do:
```
@register_minimize('my-custom-solver')
def my_solver(fun, x0, args, jac, ...):
     [...]
```