Optimal control of gas exchange | Synapse