Skip to content

Commit 5a2d259

Browse files
committed
revert workaround for scalar constraint
1 parent a82658d commit 5a2d259

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/plans/debug.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -467,11 +467,9 @@ function (d::DebugFeasibility)(
467467
)
468468
s = ""
469469
p = get_iterate(st)
470-
eqc_ = get_equality_constraint(mp, p, :)
471-
eqc = eqc_ isa AbstractArray ? eqc_ : [eqc_]
470+
eqc = get_equality_constraint(mp, p, :)
472471
eqc_nz = eqc[abs.(eqc) .> d.atol]
473-
ineqc_ = get_inequality_constraint(mp, p, :)
474-
ineqc = ineqc_ isa AbstractArray ? ineqc_ : [ineqc_]
472+
ineqc = get_inequality_constraint(mp, p, :)
475473
ineqc_pos = ineqc[ineqc .> d.atol]
476474
feasible = (length(eqc_nz) == 0) && (length(ineqc_pos) == 0)
477475
n_eq = length(eqc_nz)

0 commit comments

Comments
 (0)