From dbcb7759db3d4392d03e914c51b3f1efb7cf1b24 Mon Sep 17 00:00:00 2001 From: araujoms Date: Tue, 22 Oct 2024 14:50:25 +0200 Subject: [PATCH] use inner product directly --- src/incompatibility.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/incompatibility.jl b/src/incompatibility.jl index 389200e..35f0da9 100644 --- a/src/incompatibility.jl +++ b/src/incompatibility.jl @@ -25,7 +25,7 @@ function incompatibility_robustness_depolarizing( JuMP.add_to_expression!(obj, 1) for x in 1:m for a in 1:o[x] - JuMP.add_to_expression!(obj, LA.tr(X[x][a] * A[x][a])) + JuMP.add_to_expression!(obj, LA.dot(X[x][a], A[x][a])) JuMP.add_to_expression!(low, (LA.tr(A[x][a]) / d) * LA.tr(X[x][a])) end end