Email Record: Computing (g,w)-optimal policies in discrete and continuous Markov programs /