The optimal operation of a solid oxide fuel cell stack is addressed in this paper. Real-time optimization, performed at a slow time scale via constraint adaptation, is used to account for uncertainty and degradation effects, while model-predictive control is performed at a faster time scale to reject process disturbances and to safely adapt the system to the specified output constraints followi...