Skip to content

Commit 36ba453

Browse files
committed
Fix islp
1 parent 4db6d66 commit 36ba453

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lpmodel.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function LinearModel(
114114
nln_nnzj = 0,
115115
nnzh = nnzh,
116116
lin = 1:ncon,
117-
islp = (ncon == 0);
117+
islp = true;
118118
kwargs...,
119119
),
120120
Counters(),

src/qpmodel.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)