April 2016
Beginner to intermediate
384 pages
8h 36m
English
Electric cars are getting more and more popular these days. However, even though they are cheaper to run, the range of the car somewhat limits its use to travel long distance, at least until a sufficient infrastructure is in place to recharge the car along the way.
In this recipe, we will simulate out-of-power situations for an electric car. We start by randomly placing the recharge stations along the way of the car and then simulating the recharge situations. In this recipe, we will allow the driver of the car to drive the car without fully recharging.
To execute this recipe, you will need SimPy and NumPy. No other prerequisites are required.
As in the previous recipe, ...
Read now
Unlock full access