where Vref is the reference output voltage, Vin(n) is the input DC voltage in the first switching period, L is an inductance of the inductor, Ts is a switching period, iref(n+1) is the predetermined reference input current for the second switching period, and iL(n) is the actual inductor current sampled in the first switching period.