From 1f5e7ebdbe0d6ea144561bba62240a673788b16b Mon Sep 17 00:00:00 2001 From: kalmarek Date: Thu, 21 Feb 2019 14:53:11 +0100 Subject: [PATCH] fix performance regression in generating constraints --- src/sos_sdps.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sos_sdps.jl b/src/sos_sdps.jl index e1e5c8a..60cf368 100644 --- a/src/sos_sdps.jl +++ b/src/sos_sdps.jl @@ -100,7 +100,7 @@ end function constraintLHS!(M, cnstr, Us, Ust, dims, eps=1000*eps(eltype(first(M)))) for π in 1:lastindex(Us) - M[π] = dims[π].*PropertyT.clamp_small!(Ust[π]*cnstr*Us[π], eps) + M[π] = dims[π].*PropertyT.clamp_small!(Ust[π]*(cnstr*Us[π]), eps) end end