checking first whether initval values satisfy static model for Ramsey policy

(cherry picked from commit 821389fcc6364af22a69e25699fbc3606c2de122)