Optimal control of affine nonlinear continuous-time systems | Synapse