You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
solver for the pre-computation step. Academic licenses can be obtained
28
38
from <https://www.mosek.com/products/academic-licenses/>. Follow the
29
39
installation instructions from MOSEK.
@@ -36,16 +46,23 @@ aforementioned parts is provided.
36
46
The solvers are included in CasADi so no additional installation
37
47
required.
38
48
49
+
After installing all the above needed software:
50
+
51
+
1. Open Matlab and add navigate to the main folder. You should see three folder, one with the initialized submodule
52
+
2. Add the CaΣoS folder to the MATLAB path.
53
+
3. You can either re-run everything (see below) or if you just want to reproduce the data, you might need to copy paste some large .mat filder from the DARUS repository https://doi.org/10.18419/DARUS-5297 (see the ReadME.txt in DARUS)
54
+
55
+
39
56
## Running Examples and Reproducing Results
40
57
41
58
In the following, it is assumed everything is installed and setup as
42
59
explained before.
43
60
44
-
## Part I: Comparison
61
+
## Part I: Comparative Study
45
62
46
63
### Overview Files
47
64
48
-
For the CBF-CLF-QP, infinetesimal MPC scheme the user finds a synthesis
65
+
For the CBF-CLF-QP and infinetesimal MPC scheme the user finds a synthesis
49
66
to compute the terminal conditions. These use an initial guess, which is
50
67
loaded from a `.mat` file. Once the synthesis is done, the terminal
51
68
conditions are also stored in a `.mat` file. This `.mat` files are the
@@ -54,10 +71,10 @@ loaded into the workspace in the simulation scripts.
54
71
`.mex` functions for the simulation are generated to improve simulation
55
72
time. To compile the `.mex` functions a C/C++ compiler is required.
56
73
57
-
For the full-horizon NMPC formulations (IPOPT, RTI), the terminal set is
74
+
For the full-horizon NMPC formulations (Ipopt, RTI), the terminal set is
58
75
also pre-computed, i.e., the maximum stable level set, which can be
59
76
found in `full_MPC_IPOPT/termIngredient_full.m`. After the simulations
60
-
run, plots from all runs are generated and `.mat ` files with the
77
+
run, plots from all runs are generated and `.mat ` files. Due to the larger size, the `.mat` files are post-processed. You can find the full workspace `.mat` in the DARUS repo. The post-processed `.mat`
61
78
results are stored in the main folder.
62
79
63
80
### Folder Structure
@@ -76,30 +93,30 @@ Comparison_singleAxis/
76
93
77
94
### Reproduction
78
95
79
-
We provide `.mat` files for each individual approach in the main folder. This includes the pre-computation results or the
96
+
We provide `.mat` files for each individual approach in the main folder, of the
80
97
actual simulation results. Run `comparison_MultipleRuns.m`, to reproduce
81
98
the table from the paper and to get the plot for the single axis
82
99
rotation. Due to the large amount of data, the full-horizon NMPC
83
100
formulations (RTI and IPOPT) have post-processing scripts in their
84
-
folders. Once the actual simulation ran, the post-processing script
101
+
folders (see above). Once the actual simulation ran, the post-processing script
85
102
reduces the data to the comparison minimum. The data of the complete
86
-
workspace for the full-horizon formulations is not provided.
103
+
workspace for the full-horizon formulations is provided in the DARUS data repository. This pre-computation results can be found in the corresponding folder of each method.
87
104
88
105
### Re-running
89
106
90
-
The user is welcome to run the scripts and functions. It should be noted
107
+
The user is welcome to run the scripts and functions to reproduce the results. It should be noted
91
108
that, for example, the full-horizon NMPC formulation might take a
92
109
significant amount of time for the simulation in MATLAB.
93
110
94
-
## Part II: Three-Axis Constrained Problem
111
+
## Part II: Performance Test
95
112
96
113
### Overview Files
97
114
98
115
The second part only considers the infinetesimal MPC scheme. The user
99
116
finds a synthesis script to compute the terminal conditions. These use an
100
117
initial guess, which is loaded from a `.mat` file. Once the synthesis is
101
-
done, the terminal conditions are also stored in a `.mat` file. This
102
-
`.mat` files are the loaded into the workspace in the simulation
118
+
done, the terminal conditions are also stored in a `.mat` file.
119
+
This`.mat` files are the loaded into the workspace in the simulation
103
120
scripts.
104
121
105
122
`.mex` functions for the simulation are generated to improve simulation
Run `evaluation.m` to get all plots from the paper and additional once.
140
+
Run `evaluation.m` to get all plots from the paper and additional once. Due to the large size of the `.mat` file, you have to copy and paste it from the DARUS data repository. Or, you re-run the simulation. However, you might receive different results because a new uniform distribution is calculated for the initial conditions.
124
141
125
142
### Re-running
126
143
@@ -132,6 +149,12 @@ script `inf_MPC_simulation.m` computes a new uniform distribution if
132
149
re-run. Thus, different results to the paper are expected!
133
150
134
151
152
+
### Final remarks
153
+
In case of problems, questions or remarks, please contact the corresponding authors (see below).
0 commit comments