At the beginning of the optimization, the vehicle is a certain distance away from the intersection, and using the initial speed the vehicle will arrive the intersection before the green starts. Therefore, the vehicle in this case must first decelerate and then accelerate to the maximum speed.