From d5993dabc3b72c5d919bcdef285415d36dc9cb8c Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Sat, 29 Jun 2024 23:20:46 -0700 Subject: [PATCH] Use matrix multiplication for sensitivity (#585) --- examples/FRC2024Shooter/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/FRC2024Shooter/main.py b/examples/FRC2024Shooter/main.py index 11f44a5c..a70fdd34 100755 --- a/examples/FRC2024Shooter/main.py +++ b/examples/FRC2024Shooter/main.py @@ -151,7 +151,7 @@ def main(): # Minimize sensitivity of vertical position to velocity sensitivity = Gradient(x_k[3, 0], x[3:, 0]).get() - problem.minimize(sensitivity.T * sensitivity) + problem.minimize(sensitivity.T @ sensitivity) problem.solve(diagnostics=True)