Necessary conditions for optimal pulse control | Synapse