I'm trying to write a program that will simulate driving a car along a given route. I would like to ask if there is a fairly simple way to calculate the optimal speed/velocity for each section of the route, assuming that we know parameters such as the weight of the car, acceleration, the angle at which the car moves, the maximum speed of the vehicle, power. Let's assume that it can travel at a maximum speed of 300km/h (83m/s), weighs is 750kg, acceleration is 0–100 km/h in 2 sec and power 1000 KM.
Can you tell what calculations should be made to calculate the maximum speed for such a vehicle when passing a 25-degree turn, when should he start braking, when start to accelerate? Is any more data needed?
Thanks for your help!