The problem of controlling xenon-power spatial transients in a large thermal power reactor is formulated in terms of the dynamic programming formalism. This formulation results in a computing algorithm that can be used to select the control action that optimizes some performance index from among a predetermined set of allowable control sequences. An application of this formalism to a relatively detailed three-dimensional reactor model is presented.