-
Notifications
You must be signed in to change notification settings - Fork 3
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
Test unconstrained problems #27
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## main #27 +/- ##
=======================================
Coverage 99.45% 99.45%
=======================================
Files 24 24
Lines 2367 2406 +39
=======================================
+ Hits 2354 2393 +39
Misses 13 13
Continue to review full report at Codecov.
|
Apparently, some packages are breaking because
which sort of makes sense as it is a product of a @dpo @abelsiqueira any opinion? The political way would accept both and just check that |
Correction: If I were using
x = rand(nvar)
y = ones(ncon)
Jty = Vector{Float64}(undef, nvar)
jtprod!(nlp, x, v, Jty)
@. dual = gx + Jty and expect it to work. Possibly even using the 5-arg
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. I made some smalls comments.
src/nlp/consistency.jl
Outdated
if nlp.meta.ncon == 0 | ||
x0, x1 = nlp.meta.x0, ones(nlp.meta.nvar) | ||
@test nlp.meta.nnzj == 0 | ||
@test cons ∉ exclude ? cons(nlp, x0) == [] : true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@test cons ∉ exclude ? cons(nlp, x0) == [] : true | |
@test cons in exclude || cons(nlp, x0) == [] |
Maybe this is clearer?
src/nlp/problems/brownden.jl
Outdated
@@ -129,3 +129,35 @@ function NLPModels.hprod!( | |||
end | |||
return Hv | |||
end | |||
|
|||
function NLPModels.cons!(nlp, x::AbstractVector{T}, c) where {T} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function NLPModels.cons!(nlp, x::AbstractVector{T}, c) where {T} | |
function NLPModels.cons!(nlp::BROWNDEN, x::AbstractVector{T}, c) where {T} |
No description provided.