Skip to content
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

Fix interface with NLPModels #112

Merged
merged 8 commits into from
Nov 6, 2024
Merged

Fix interface with NLPModels #112

merged 8 commits into from
Nov 6, 2024

Conversation

frapac
Copy link
Member

@frapac frapac commented Oct 11, 2024

  • add explicit return for the callbacks to fix hess_structure and jac_structure
  • fix type ambiguity in KernelAbstractions wrapper

xref #111

- add explicit return for the callbacks
- fix type ambiguity in KernelAbstractions wrapper
@frapac frapac requested a review from sshin23 October 11, 2024 09:10
end
function ExaModels.jtprod_nln!(
m::ExaModels.ExaModel{T,VT,E},
x::AbstractVector,
v::AbstractVector,
Jtv::AbstractVector,
) where {T,VT,E<:KAExtension}
) where {T,VT,E<:KAExtension{T,VT,NamedTuple}}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we want to specify the type parameters here?

src/nlp.jl Outdated
@@ -68,7 +68,7 @@ Base.show(io::IO, v::ConstraintAug) = print(
io,
"""

Constrant Augmentation
Constant Augmentation

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Constraint

@sshin23 sshin23 linked an issue Nov 6, 2024 that may be closed by this pull request
@sshin23 sshin23 merged commit 1357ec6 into main Nov 6, 2024
4 of 5 checks passed
@amontoison amontoison deleted the fp/nlpmodels_types branch November 9, 2024 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ambiguous method for jtprod!
2 participants