Skip to content

Commit

Permalink
Update mpcExample.m
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMartensson authored Jul 30, 2024
1 parent 3067366 commit 03df47f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mpcExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

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

0 comments on commit 03df47f

Please sign in to comment.