Ensuring safe robust control design through optimal control with switching strategy | Synapse