JuliaSmoothOptimizers / JuliaSmoothOptimizers/JSOSolverSkeleton.jl

Add a `valid_nlp` in the required methods

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
0
Forks
3
PR merge metrics
No merged PRs in 30d

Description

All the `solve!` function starts with a preamble such as
```
if !(nlp.meta.minimize)
error("This solver only works for minimization")
end
if !unconstrained(nlp)
error("Problem is not unconstrained")
end
```

maybe this should be stored in a function that is part of the JSO-compliant rules ?
For instance, `check_valid_nlp` of `check_valid_problem`.

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.