Skip to content

Commit 18d6c2b

Browse files
geoffroylecontedpo
authored andcommitted
commit suggestions
1 parent 2e70916 commit 18d6c2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/qpmodel.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ abstract type AbstractQuadraticModel{T, S} <: AbstractNLPModel{T, S} end
2727
qp = QuadraticModel(c, Hrows, Hcols, Hvals; Arows = Arows, Acols = Acols, Avals = Avals,
2828
lcon = lcon, ucon = ucon, lvar = lvar, uvar = uvar, sortcols = false)
2929
30-
qp = QuadraticModel(c, H; A = A, lcon = lcon, ucon = ucon, lvar = lvar, uvar = uvar, coo_matrices = true)
30+
qp = QuadraticModel(c, H; A = A, lcon = lcon, ucon = ucon, lvar = lvar, uvar = uvar)
3131
3232
Create a Quadratic model ``min ~\\tfrac{1}{2} x^T H x + c^T x + c_0`` with optional bounds
3333
`lvar ≦ x ≦ uvar` and optional linear constraints `lcon ≦ Ax ≦ ucon`.
@@ -370,7 +370,7 @@ function NLPModels.jac_structure!(
370370
qp::QuadraticModel{T, S, M1, M2},
371371
rows::AbstractVector{<:Integer},
372372
cols::AbstractVector{<:Integer},
373-
) where {T, S, M1, M2 <: DenseMatrix}
373+
) where {T, S, M1, M2 <: Matrix}
374374
count = 1
375375
for j=1:qp.meta.nvar
376376
for i=1:qp.meta.ncon
@@ -406,7 +406,7 @@ function NLPModels.jac_coord!(
406406
qp::QuadraticModel{T, S, M1, M2},
407407
x::AbstractVector,
408408
vals::AbstractVector
409-
) where {T, S, M1, M2 <: DenseMatrix}
409+
) where {T, S, M1, M2 <: Matrix}
410410
NLPModels.increment!(qp, :neval_jac)
411411
count = 1
412412
for j=1:qp.meta.nvar

0 commit comments

Comments
 (0)