Commit ab1ce7e
authored
Fix typos in docstrings, error messages, and verbose output (#33)
* Fix wrong step printed in closed-loop simulations
The previous step variable printed as a verbose output was the
n-mpc step, which remained constant for n-mpc steps when n-mpc was
greater than 1. Now, the step variable printed is the actual control
step.
* Fix docstring typo and remove comment in LTI controller
- Rename `y_r_param` to `y_s_param` in the docstring of the
`set_input_output_setpoints` method, as it was a typo.
- Remove leftover comment.
* Fix wrong error message in nonlinear controller
Replace `self.y_s.shape` with `self.y_r.shape` in the `ValueError`
message of the `set_output_setpoint` method, as it was a typo.1 parent e28e76b commit ab1ce7e
File tree
3 files changed
+5
-5
lines changed- direct_data_driven_mpc
- utilities/controller
3 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1097 | 1097 | | |
1098 | 1098 | | |
1099 | 1099 | | |
1100 | | - | |
| 1100 | + | |
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
1104 | 1104 | | |
1105 | 1105 | | |
1106 | 1106 | | |
1107 | 1107 | | |
1108 | | - | |
| 1108 | + | |
1109 | 1109 | | |
1110 | 1110 | | |
1111 | 1111 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1385 | 1385 | | |
1386 | 1386 | | |
1387 | 1387 | | |
1388 | | - | |
| 1388 | + | |
1389 | 1389 | | |
1390 | 1390 | | |
1391 | 1391 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| |||
0 commit comments