A system and method for calculating a flip angle schedule is provided. The technique includes selecting an initial condition, providing a function for calculating flip angles, calculating flip angles, assessing the flip angles, and repeating the calculation of the flip angles by adjusting the function until a desired flip angle schedule is obtained.