mpcrl.core.errors#

Error and warning classes for signaling failure in the MPC solver and in the updates, as well as convenience functions for raising these errors and warnings.

Functions

raise_or_warn_on_mpc_failure(msg, raises)

Raises an error or warning with the given message due to an MPC solver's failure.

raise_or_warn_on_update_failure(msg, raises)

Raises an error or warning with the given message due to an update failure.

Exceptions

MpcSolverError

Exception class for raising errors when an MPC solver fails.

MpcSolverWarning

Warning class for raising errors when an MPC solver fails.

UpdateError

Exception class for raising errors when a learning agent's updates fails.

UpdateWarning

Warning class for raising errors when a learning agent's updates fails.