Dynamic programming is known to provide the optimal solution to the energy management problem. However, it is not implementable online because it requires complete a-priori knowledge of the driving cycle and high computational requirements. This article presents a methodology to extract an implementable rule-based strategy from the dynamic programming results and thus build a near-optimal controller. The case study discussed in this paper focused on mode switching in a series/parallel hybrid vehicle, in which a clutch may be used to change the powertrain topology. Because of the complexity of the system, the controller is divided in two layers: the supervisory controller, which decides the powertrain configuration, and the energy management, which decides the power split. The process of deriving the rules from the optimal solution is described in detail. Then, the performance of the resulting rule-based strategy is studied and compared with the solution given by dynamic programming, which functions as a benchmark. Then another comparison is performed with respect to the equivalent consumption minimisation strategy (ECMS) which, if optimally tuned, can achieve optimal performance as close to DP as possible with the advantage of being implementable.