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

ExaModels Fix #69

Closed
wants to merge 1 commit into from
Closed

ExaModels Fix #69

wants to merge 1 commit into from

Conversation

ccoffrin
Copy link
Member

@ccoffrin ccoffrin commented Aug 3, 2024

@sshin23, there seems to be an issue where ExaModels broke due to some recent package version updates, could you have a look?

Running,

julia --project=.
include("examodels.jl")
solve_opf("data/opf_warmup.m")

I get a trace like,

ERROR: AssertionError: nnzj == lin_nnzj + nln_nnzj
Stacktrace:
 [1] NLPModels.NLPModelMeta{…}(nvar::Int64; x0::Vector{…}, lvar::Vector{…}, uvar::Vector{…}, nlvb::Int64, nlvo::Int64, nlvc::Int64, ncon::Int64, y0::Vector{…}, lcon::Vector{…}, ucon::Vector{…}, nnzo::Int64, nnzj::Int64, lin_nnzj::Int64, nln_nnzj::Int64, nnzh::Int64, lin::Vector{…}, minimize::Bool, islp::Bool, name::String)
   @ NLPModels ~/.julia/packages/NLPModels/e5o8i/src/nlp/meta.jl:148
 [2] NLPModelMeta
   @ ~/.julia/packages/NLPModels/e5o8i/src/nlp/meta.jl:119 [inlined]
 [3] NLPModelMeta
   @ ~/.julia/packages/NLPModels/e5o8i/src/nlp/meta.jl:219 [inlined]
 [4] ExaModels.ExaModel(c::ExaModels.ExaCore{Float64, Vector{Float64}, Nothing}; prod::Nothing)
   @ ExaModels ~/.julia/packages/ExaModels/tBDe7/src/nlp.jl:228
 [5] ExaModel
   @ ~/.julia/packages/ExaModels/tBDe7/src/nlp.jl:227 [inlined]
 [6] solve_opf(file_name::String)
   @ Main ~/Documents/dev/rosetta-opf/examodels.jl:193
 [7] top-level scope
   @ REPL[4]:1

@sshin23
Copy link
Contributor

sshin23 commented Aug 5, 2024

Thanks for reporting this @ccoffrin. Working on a fix; see:
JuliaSmoothOptimizers/NLPModels.jl#475
exanauts/ExaModels.jl#105
MadNLP/MadNLP.jl#363

@amontoison
Copy link
Contributor

@ccoffrin We fixed the issue in NLPModels.jl.
Sorry @sshin23 for temporary breaking ExaModels.jl and MadNLP.jl.

@ccoffrin ccoffrin closed this Sep 7, 2024
@ccoffrin ccoffrin deleted the examodels-fix branch September 7, 2024 17:11
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.

3 participants