A system for determining an insulin infusion profile for controlling postprandial blood glucose for a patient/meal combination, said system comprising: a) an input device configured to receive information about a pre-meal measurement of blood glucose concentration, and size and composition of a meal to be consumed; b) a memory which contains additional information about a pre-meal insulin infusion history, a chosen insulin pattern for the postprandial blood glucose control, and a dynamical minimal model having model parameters which are predetermined for the patient/meal combination, the model parameters being computed using data collected in the past for the same patient/meal couple by way of parameter identification with inverse of time constant for meals absorption, bioavailability for meals, insulin sensitivity, glucose effectiveness at zero insulin, inverse of time constant of the insulin absorption/action, and insulin independent endogenous production as parameters; c) a processor programmed to use the received information and the additional information to compute automatically the optimal insulin infusion profile by minimizing an objective function, wherein said minimizing of the objective function results in the optimal insulin infusion profile; wherein the objective function is defined to quantify a distance between the postprandial glucose excursion as predicted by the dynamic minimal model and a chosen postprandial glucose excursion target, wherein the pre-meal insulin infusion history, the measured pre-meal blood glucose concentration, the size and composition of the meal to be consumed, the chosen insulin pattern and the model parameters are input data for computing the optimal insulin infusion profile, with the measured pre-meal blood glucose concentration and the pre-meal infusion history defining initial conditions and d) a display configured to display the optimal insulin infusion profile. a) an input device configured to receive information about a pre-meal measurement of blood glucose concentration, and size and composition of a meal to be consumed; b) a memory which contains additional information about a pre-meal insulin infusion history, a chosen insulin pattern for the postprandial blood glucose control, and a dynamical minimal model having model parameters which are predetermined for the patient/meal combination, the model parameters being computed using data collected in the past for the same patient/meal couple by way of parameter identification with inverse of time constant for meals absorption, bioavailability for meals, insulin sensitivity, glucose effectiveness at zero insulin, inverse of time constant of the insulin absorption/action, and insulin independent endogenous production as parameters; c) a processor programmed to use the received information and the additional information to compute automatically the optimal insulin infusion profile by minimizing an objective function, wherein said minimizing of the objective function results in the optimal insulin infusion profile; wherein the objective function is defined to quantify a distance between the postprandial glucose excursion as predicted by the dynamic minimal model and a chosen postprandial glucose excursion target, wherein the pre-meal insulin infusion history, the measured pre-meal blood glucose concentration, the size and composition of the meal to be consumed, the chosen insulin pattern and the model parameters are input data for computing the optimal insulin infusion profile, with the measured pre-meal blood glucose concentration and the pre-meal infusion history defining initial conditions and d) a display configured to display the optimal insulin infusion profile.