Optimality and Computation Issues in Repetitive Control