Skip to content

Commit 03df47f

Browse files
Update mpcExample.m
1 parent 3067366 commit 03df47f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/mpcExample.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
I = 0.2; % Integral action constant
1919
Umax = [0.4]; % Maximum input signal vector
20-
S = [2]; % Slack variable say that the output can be +2 over the reference R, in this case: 6+2 = 8
20+
S = [2]; % Slack variable says that the output can be +2 over the reference R, in this case: 6+2 = 8
2121
lambda = 0.2; % Regularization for smoother inputs u
2222
figure(2); % New figure
2323
x0 = [-8; 20];

0 commit comments

Comments
 (0)