Skip to content

Commit

Permalink
Use matrix multiplication for sensitivity (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Jun 30, 2024
1 parent 8307aff commit d5993da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/FRC2024Shooter/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d5993da

Please sign in to comment.