fix performance regression in generating constraints

This commit is contained in:
kalmarek 2019-02-21 14:53:11 +01:00
parent fb8ec1578a
commit 1f5e7ebdbe
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15
1 changed files with 1 additions and 1 deletions

View File

@ -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