Dynamic Optimization for Switched Time-Delay Systems with State-Dependent Switching Conditions | Synapse