Clipping-off gradient algorithms to compute optimal controls with constrained magnitude | Synapse