Text this: On some optimization problems in Markov and nonnegative matrix models /