Optimal Control of Complex Systems through Variational Inference with a Discrete Event Decision Process