Optimum power search algorithm