INS and type 2 diabetes mellitus: Solving the optimization problem of diabetes requires replacement of insulin action through insulin injections or oral medications (applicable primarily to type 2 diabetes) which, until fully automated closed-loop control becomes available, would remain a process largely controlled by patient behavior.