OSQP solvers with fun set and no init_params have misleading error message
Open
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 76
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 1
Description
The error message for setting `fun` to a function and not providing `init_params` to a class such as `jaxopt.BoxOSQP` is incorrect:
```
ValueError: init_x must be provided when fun is not None.
```
There is no `init_x` parameter to the `run()` method. Also, there are no examples in the documentation of those functions for what should be in a `KKTSolution` object, and that object appears to be undocumented.
Contributor guide
Assessment
This issue has not been assessed yet.