Skip to content

Change compat#65

Closed
nathanemac wants to merge 3 commits into
JuliaSmoothOptimizers:mainfrom
nathanemac:change-compat
Closed

Change compat#65
nathanemac wants to merge 3 commits into
JuliaSmoothOptimizers:mainfrom
nathanemac:change-compat

Conversation

@nathanemac

Copy link
Copy Markdown
Contributor

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.

Comment thread Project.toml Outdated
@dpo

dpo commented Apr 12, 2025

Copy link
Copy Markdown
Member

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

@nathanemac

nathanemac commented Apr 14, 2025

Copy link
Copy Markdown
Contributor Author

@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.

Comment thread Project.toml
@nathanemac

Copy link
Copy Markdown
Contributor Author

Solved with #75.

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