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

MadNLP fails to solve QP on julia-nightly #166

Closed
mipals opened this issue May 17, 2022 · 1 comment
Closed

MadNLP fails to solve QP on julia-nightly #166

mipals opened this issue May 17, 2022 · 1 comment

Comments

@mipals
Copy link

mipals commented May 17, 2022

Hello there,

Solving a QP using MadNLP seems to fail on my test for julia-nightly on ubuntu-latest. Here is the error

/home/runner/work/GeneralizedSmoothingSplines.jl/GeneralizedSmoothingSplines.jl/test/runtests.jl:7
  Got exception outside of a @test
  LoadError: ArgumentError: strides is invalid for SubArrays with indices of type Vector{Int64}
  Stacktrace:
    [1] substrides(strds::Tuple{Int64}, I::Tuple{Vector{Int64}})
      @ Base ./subarray.jl:366
    [2] strides(V::SubArray{Float64, 1, Vector{Float64}, Tuple{Vector{Int64}}, false})
      @ Base ./subarray.jl:360
    [3] stride(V::SubArray{Float64, 1, Vector{Float64}, Tuple{Vector{Int64}}, false}, d::Int64)
      @ Base ./subarray.jl:368
    [4] vec_pointer_stride
      @ /opt/hostedtoolcache/julia/nightly/x64/share/julia/stdlib/v1.9/LinearAlgebra/src/blas.jl:153 [inlined]
    [5] axpy!(alpha::Float64, x::Vector{Float64}, y::SubArray{Float64, 1, Vector{Float64}, Tuple{Vector{Int64}}, false})
      @ LinearAlgebra.BLAS /opt/hostedtoolcache/julia/nightly/x64/share/julia/stdlib/v1.9/LinearAlgebra/src/blas.jl:494
    [6] regular!(ips::MadNLP.InteriorPointSolver{MadNLP.SparseKKTSystem{Float64, SparseArrays.SparseMatrixCSC{Float64, Int32}}})
      @ MadNLP ~/.julia/packages/MadNLP/4CmQz/src/interiorpointsolver.jl:780
    [7] optimize!(ips::MadNLP.InteriorPointSolver{MadNLP.SparseKKTSystem{Float64, SparseArrays.SparseMatrixCSC{Float64, Int32}}})
      @ MadNLP ~/.julia/packages/MadNLP/4CmQz/src/interiorpointsolver.jl:612
    [8] optimize!(model::MadNLP.Optimizer)
      @ MadNLP ~/.julia/packages/MadNLP/4CmQz/src/Interfaces/MOI_interface.jl:1168
    [9] optimize!
      @ ~/.julia/packages/MathOptInterface/ajp5T/src/Bridges/bridge_optimizer.jl:354 [inlined]
   [10] optimize!
      @ ~/.julia/packages/MathOptInterface/ajp5T/src/MathOptInterface.jl:87 [inlined]
   [11] optimize!(m::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.Bridges.LazyBridgeOptimizer{MadNLP.Optimizer}, MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}})

Looking at the error, it seems to refer to a interpointsolver.jl, which does not exist anymore en this repo, so it is kind of hard to debug this.

Cheers,
Mikkel

@sshin23
Copy link
Member

sshin23 commented May 18, 2022

Thanks for reporting this @mipals. Based on the stack trace, this looks like a LinearAlgebra stdlib issue. I'll close the issue for now, but we can take a closer look if this issue persists even with the beta release of julia.

@sshin23 sshin23 closed this as completed May 18, 2022
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