MATLAB Simulation Using Latin Hypercube Sampling Method To Compute A Trajectory Distribution
- Follow the template
input/template_fields_input.csv
to create a file calledinput/fields_input.csv
and fill in theValue
column withe the appropriate values. The units are listed in the columnUnits
. Tip: Easy way to create the new file is runningcp input/template.csv input/fields_input.csv
in the root directory of this project. - Load
WB-Dynamics.prj
to configure the MATLAB path. - Running
src/run_nominal_trajectory.m
will run the simulation once with no variation of input variables.
- Follow the templates
input/template_fields_input.csv
andinput/template_errors_input.csv
to create two filesinput/fields_input.csv
andinput/errors_input.csv
respectively. - Load
WB-Dynamics.prj
to configure the MATLAB path. - Running
src/run_monte_carlo.m
will sample the parameters and run the simulation multiple times. - Output results will be stored in
output/output.csv
.
Test suite can be run using the tests/run_tests.m
file. Make sure that after making any changes, run the tests to see if they still pass. Sometimes if the function is significantly updated, the respective test suite may need to be updated too.
Link is here but will be later moved as a seperate project with a seperate repository