Irreversibility-Aware Ventilation Control