Computer-simulated modelling in the management of diabetes