summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/traj_constraints.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/traj_constraints.m b/templates/traj_constraints.m
index ec197f3..69d19d3 100644
--- a/templates/traj_constraints.m
+++ b/templates/traj_constraints.m
@@ -11,7 +11,7 @@ function [s_max, y_max, u_max, J_u, df_max, vf_max, traj_feas] = traj_constraint
s_max = max(max(abs(x([1,3],:))));
y_max = max(abs(x(2,:)));
- u_max = max(abs(u));
+ u_max = max(max(abs(u)));
J_u = 0;
for k=1:size(u,2)