Skip to content

Conversation

pavelacamposp
Copy link
Owner

This PR fixes typos in controller docstrings and error messages. Additionally, it updates the verbose output in data-driven MPC closed-loop simulation functions to print the current time step.

Key changes:

  • Fixed typo in the docstring of the set_input_output_setpoints method of LTIDataDrivenMPCController.
  • Fixed wrong error message in the set_output_setpoint method of NonlinearDataDrivenMPCController.
  • Corrected the printed step variable in closed-loop simulations (data_driven_mpc_sim.py) to reflect the actual control step instead of the n-mpc step.

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.
- 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.
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.
@pavelacamposp pavelacamposp self-assigned this Jun 29, 2025
@pavelacamposp
Copy link
Owner Author

All checks have passed, and the fixes look good. Merging now.

@pavelacamposp pavelacamposp merged commit ab1ce7e into main Jun 29, 2025
5 checks passed
@pavelacamposp pavelacamposp deleted the bugfix/typos-docstrings branch June 29, 2025 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant