Describir: Deterministic and stochastic optimal control