A ventilator 10 is connected to the ventilated patient 12 to provide ventilation according to the ventilator's ventilator settings. Physiological values (variables) are obtained for the patient being ventilated using the physiological sensor 32. A fitted ventilated patient CP model 50 is generated by adapting the ventilated patient cardiopulmonary (CP) model 40 to the acquired physiological variable values and fine-tuning the parameters. An updated ventilator setting is determined by adjusting the model ventilator settings of the fitted ventilated patient CP model to minimize the cost function 60. The updated ventilator setting is displayed on the display component 22 as the recommended ventilator setting for the patient being ventilated, or the ventilator ventilator setting is automatically changed to the updated ventilator setting. And thereby automatically controlling the ventilator.人工呼吸器10が、換気される患者12に接続されて、人工呼吸器の呼吸器設定に従って換気を提供する。生理値(変数)が、生理センサ32を使用して換気される患者に対して取得される。取得した生理的変数値に合わせて換気される患者心肺(CP)モデル40を適合して、パラメータを微調節することにより、適合された換気される患者CPモデル50を生成する。コスト関数60を最小化するように、適合された換気される患者CPモデルのモデル呼吸器設定を調整することにより、更新された呼吸器設定を決定する。更新された呼吸器設定は、換気される患者への推奨呼吸器設定として表示コンポーネント22に表示されるか、又は、人工呼吸器の呼吸器設定が、更新された呼吸器設定に自動的に変更されて、それにより人工呼吸器を自動的に制御する。