The Fractional Order Proportional Integral Derivative (FOPID) controller has two more parameters than the integer order Proportional integral derivative (PID). Such characteristic makes the controller design more flexible and leads to superior performance. This project proposes a variable coefficient FOPID (VCFOPID) with optimal single step parameters, combining discrete synthesis and variable control parameters. The new algorithm is compared with previous FOPID discrete methods via several examples. Since the energy losses of the single ended primary inductor converter (SEPIC) cannot be ignored, the standard models are insufficient and a new model is derived using quantum behaved particle swarm optimization. The VCFOPID is applied to the SEPIC and both the effectiveness of the controller and the model are verified experimentally.