Model predictive valve control to assist in tracking a lung pressure profile