Anfonwch hwn fel neges destun: Deterministic and stochastic optimal control