Iterative output replanning for flat systems affected by additive noise