Optimal Driver Warning Generation in Dynamic Driving Environment