In the present study, we present a proof of concept of how an optimization process based on an evolutionary algorithm (EA) allows to determine the optimal pattern of dietary intake and the optimal insulin doses for patients with T2DM administering insulin therapy treatment. The gene discussed is INS; the disease is type 2 diabetes mellitus.