Logic-based switching algorithms in control | Synapse