MATLAB Simulation Using Latin Hypercube Sampling Method To Compute A Trajectory Distribution
The project itself should be first loaded by double clicking the WB-Dynamics.prj
which will load paths to find all required files.
- 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. - 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. - Running
src/run_monte_carlo.m
will sample the parameters and run the simulation multiple times. For testing purposes it is recommended to decrease the sample size to around 100 for a quicker run time. - 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.