Skip to content

Commit 340677e

Browse files
authored
islp (#161)
1 parent 90fdaaa commit 340677e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qpmodel.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function QuadraticModel(
137137
nln_nnzj = 0,
138138
nnzh = nnzh,
139139
lin = 1:ncon,
140-
islp = (ncon == 0);
140+
islp = (nnzh == 0);
141141
kwargs...,
142142
),
143143
Counters(),
@@ -192,7 +192,7 @@ function QuadraticModel(
192192
nln_nnzj = 0,
193193
nnzh = nnzh,
194194
lin = 1:ncon,
195-
islp = (ncon == 0);
195+
islp = (nnzh == 0);
196196
kwargs...,
197197
),
198198
Counters(),

0 commit comments

Comments
 (0)