mpcrl.core.errors.raise_or_warn_on_mpc_failure#

mpcrl.core.errors.raise_or_warn_on_mpc_failure(msg, raises)[source]#

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

Parameters:
msgstr

The exception or warning message.

raisesbool

If True, raises an exception; otherwise, throws a warning.

Raises:
UpdateError

Raises MpcSolverError if raises=True; otherwise raises MpcSolverWarning.

Return type:

None