Skip to content

Change compat #65

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nathanemac
Copy link

Version >0.7 in ADNLPModels uses tracers which usage is not compatible with fh_model().
This PR restrains ADNLPModels versions to "0.3, 0.4, 0.7" in deps.

@dpo
Copy link
Member

dpo commented Apr 12, 2025

@nathanemac Could you please show what the error is with newer versions of ADNLPModels?

@nathanemac
Copy link
Author

nathanemac commented Apr 14, 2025

@nathanemac Could you please show what the error is with newer versions of ADNLPModels?

@dpo
with newer version of ADNLPMOdels:
[54578032] ADNLPModels v0.8.12, [0c46a032] DifferentialEquations v7.16.1, [ea076b23] RegularizedProblems v0.1.1

When calling fh_model():

TypeError: in typeassert, expected Float64, got a value of type SparseConnectivityTracer.HessianTracer{SparseConnectivityTracer.DictHessianPattern{Int64, BitSet, Dict{Int64, BitSet}, SparseConnectivityTracer.NotShared}}

Calling fh_model() with ADNLPModels with version below 0.7.2 (included) works.

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.

2 participants