mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2025-01-11 14:22:34 +01:00
fix performance regression in generating constraints
This commit is contained in:
parent
fb8ec1578a
commit
1f5e7ebdbe
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user