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

getconstrmatrix produces ERROR: UndefVarError: SparseMatrixCSC not defined #45

Closed
EdvinAblad opened this issue Oct 29, 2018 · 2 comments

Comments

@EdvinAblad
Copy link
Contributor

Hi,
I'm using Clp through JuMP, calling the code:

using SparseArrays
using MathProgBase
using JuMP
using Clp
m = Model(solver = ClpSolver())
JuMP.build(m)
MathProgBase.getconstrmatrix(internalmodel(m))

(It also breaks if the model is non-empty, the above is simply a small example)

produces the error:

ERROR: UndefVarError: SparseMatrixCSC not defined
Stacktrace:
 [1] getconstrmatrix(::Clp.ClpMathProgSolverInterface.ClpMathProgModel) at C:\Users\MärtaEdvin\.juli
a\packages\Clp\qWiux\src\ClpSolverInterface.jl:116
 [2] top-level scope at none:0

including using SparseArray inClpSolverInterface.jl, resolves the problem.
Is this an real issue or am I misusing the MathProgBase.getconstrmatrix?

@blegat
Copy link
Member

blegat commented Oct 29, 2018

Looks like a real issue. PR welcome :)

@mlubin
Copy link
Member

mlubin commented Oct 30, 2018

Closed by #46

@mlubin mlubin closed this as completed Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants