Optimal protocols for continual learning via statistical physics and control theory* | Synapse