Modelling And Optimisation Of Mechanical Ventilation For Critically Ill Patients