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

Doc examples: assertion error on nnzj? #104

Closed
jbcaillau opened this issue Aug 4, 2024 · 4 comments
Closed

Doc examples: assertion error on nnzj? #104

jbcaillau opened this issue Aug 4, 2024 · 4 comments

Comments

@jbcaillau
Copy link

jbcaillau commented Aug 4, 2024

@frapac @sshin23 Naïve question here: not been able to run either quadrotor or column examples as a I run into the error below (same error in both case):

julia> m = quadrotor_model(100)
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] ExaModel(c::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] quadrotor_model(N::Int64; backend::Nothing)
   @ Main ./REPL[2]:79
 [7] quadrotor_model(N::Int64)
   @ Main ./REPL[2]:1
 [8] top-level scope
   @ REPL[4]:1
Some type information was truncated. Use `show(err)` to see complete types.

Note: the env used for testing only contains ExaModels and NLPModelsIpopt:

(@exa) pkg> st
Status `~/.julia/environments/exa/Project.toml`
  [1037b233] ExaModels v0.7.1
  [f4238b75] NLPModelsIpopt v0.10.2
@jbcaillau jbcaillau changed the title Doc examples: assertion error on nnzj Doc examples: assertion error on nnzj? Aug 4, 2024
@jbcaillau
Copy link
Author

jbcaillau commented Aug 4, 2024

NB. @frapac @sshin23 I am actually getting the same error even with the Getting started

@sshin23
Copy link
Collaborator

sshin23 commented Aug 5, 2024

Thanks for reporting this. We're currently working on the fix in #105

@jbcaillau
Copy link
Author

Thanks for reporting this. We're currently working on the fix in #105

@sshin23 FWIW: I am downgrading to NLPModels v0.21.1 to remove the @assert on nnzj and run the tests

@sshin23
Copy link
Collaborator

sshin23 commented Aug 6, 2024

This is now fixed with the NLPModels v0.21.3 release

@sshin23 sshin23 closed this as completed Aug 6, 2024
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

No branches or pull requests

2 participants