-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Constraint evaluation behavior for unconstrained problems #464
Comments
If a solver tries to solve an unconstrained problem and, in doing so, evaluates the constraints, there is a serious issue with that solver. We should not encourage that kind of behavior. I think For |
I agree with the first point, let's add a new error for unconstrained problem when we call the constraints, and error for linear and nonlinear constraints too. I have a more mixed opinion on the If we keep the version ignoring cons, then we need to update the docstring that right now says:
|
Yes I think |
This is a corner case, where we should probably on the behavior.
We have several ways to access the constraints function:
cons!/cons
,cons_nln
andcons_lin
, andobjcons
. How should these behave when applied on an unconstrained problems? I see 3 options:A related question is: How should objcons react to this situation?
Connected to JuliaSmoothOptimizers/NLPModelsTest.jl#26 and JuliaSmoothOptimizers/CUTEst.jl#327
The text was updated successfully, but these errors were encountered: