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

Bug define LLSModel with sparse matrices #30

Closed
tmigot opened this issue Jan 27, 2022 · 0 comments
Closed

Bug define LLSModel with sparse matrices #30

tmigot opened this issue Jan 27, 2022 · 0 comments

Comments

@tmigot
Copy link
Member

tmigot commented Jan 27, 2022

I am not sure wether this is a LLSModels issue or SparseMatricesCOO issue.

using SparseArrays
using LLSModels # 0.3.2
A = sparse(Matrix(1.0I, 3, 3))
b = ones(3)
LLSModel(A, b)

returns

ERROR: MethodError: no method matching SparseMatricesCOO.SparseMatrixCOO(::Int64, ::Int64, ::Vector{Int64}, ::Vector{Int64}, ::Matrix{Float64})
Closest candidates are:
  SparseMatricesCOO.SparseMatrixCOO(::Integer, ::Integer, ::Vector, ::Vector, ::Vector) at .julia\packages\SparseMatricesCOO\z5uST\src\coo_types.jl:51
Stacktrace:
 [1] LLSModel(A::SparseMatrixCSC{Float64, Int64}, b::Vector{Float64})
   @ LLSModels .julia\packages\LLSModels\yz8jF\src\lls_model.jl:34
 [2] top-level scope
   @ REPL[31]:1
tmigot referenced this issue in SolverStoppingJulia/Stopping.jl Jan 27, 2022
geoffroyleconte added a commit to geoffroyleconte/LLSModels.jl that referenced this issue Jan 27, 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

1 participant