diff options
Diffstat (limited to '')
-rw-r--r-- | Submission files/generate_disturbances.m | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Submission files/generate_disturbances.m b/Submission files/generate_disturbances.m new file mode 100644 index 0000000..f08cdb5 --- /dev/null +++ b/Submission files/generate_disturbances.m @@ -0,0 +1,17 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Copyright (c) 2023, Amon Lahr, Simon Muntwiler, Antoine Leeman & Fabian Flürenbrock Institute for Dynamic Systems and Control, ETH Zurich. +% +% All rights reserved. +% +% Please see the LICENSE file that has been included as part of this package. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +function Wt = generate_disturbances(params) + % YOUR CODE HERE + % params_z = generate_params_z(params); + Hw = params.constraints.DisturbanceMatrix; + hw = params.constraints.DisturbanceRHS; + % Pw = Polyhedron('A', Hw, 'b', hw); + N = params.model.HorizonLength; + Wt = cprnd(N,Hw,hw)'; +end
\ No newline at end of file |