Optimal Control of Switching Diffusions with Application to Flexible Manufacturing Systems | Synapse