Described and illustrated is a system for management of diabetes that includes an infusion pump, glucose sensor and controller with a method programmed into the controller. The infusion pump is configured to deliver insulin to a subject. The glucose sensor is configured to sense glucose levels in the subject and provide output signals representative of the glucose levels in the subject. The controller is programmed receives signals from at least one of the glucose sensor and the pump and configured to issue signals to the pump to deliver an amount of insulin determined by a feedback controller that utilizes a model predictive control of the subject based on desired glucose levels, insulin amount delivered and measured glucose levels of the subject. The controller is also configured to deliver insulin using a tuning factor based on either one of an omission index module or a calibration index module.