google / google/jaxopt

OSQP solvers with fun set and no init_params have misleading error message

Open
#545 8 comments 0 reactions 1 assignee Claimed by @Algue-Rythme View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.