Planning optimization stage.