# TOpti: a flexible framework for optimising energy management for various ship machinery topologies

- 255 Downloads

## Abstract

In the early stages of the ship design process, the system designer must choose which type of machinery system will be used to power the ship. Hybrid power systems, which are familiar in the automotive industry, have started making a breakthrough in the marine industry. However, defining the length of the financial payback period is not trivial for ship designers, which makes it harder to adopt these more expensive technologies. The shortage of on-board machinery integration software for maritime engineers has motivated the authors of this article to develop a tool that can assist ship designers in making the right choices early in the design process. Discovering the optimal power system design for a specified vessel’s operation requires optimal machinery control. This article presents a novel method to optimise the machinery control of a system specified by the tool user. A case study is presented using a fishing boat with both diesel-mechanical and hybrid electric power systems.

## Keywords

Optimal energy management Ship power system Hybrid propulsion Numerical optimisation Fishing boat## Abbreviations

- AC
Alternate current

- BSFC
Brake-specific fuel consumption (g/kWh)

- \({\text {BSFC}}_{{\text {eq}}}\)
Equivalent BSFC of ESS (g/kWh)

- COBYLA
Constrained optimisation by linear approximations

- CPP
Controllable pitch propeller

- DE
Diesel-electric topology

- DM
Diesel-mechanical topology

- DC
Direct current

- DP
Dynamic programming

- E-GRID
On-board electric grid

- ECMS
Equivalent consumption minimisation strategy

- EMS
Energy management strategy

- ESS
Energy storage system

- GB
Gearbox

- GEN
Genset

- ICE
Internal combustion engine

- HEB
Hybrid electric boat

- HEV
Hybrid electric vehicle

- LT
Local time optimisation method

- MCR
Maximum continuous rate (W)

- PTI
Power take-in

- PTO
Power take-off

- SG
Shaft generator

- SOC
State of charge in battery (%)

- \(\varDelta {\text {SOC}}_{N}\)
Final SOC error (%)

- \(\varDelta t\)
Instantaneous time step length (s)

- \(\dot{m}_{{\text {eq}}}\)
Virtual fuel consumption for the ESS (g/h)

- \(\eta _{{\text {conv}}_{{\text {GEN}}}}\)
Internal power conversion efficiency of generator unit in the GEN (–)

- \(\eta _{{\text {conv}}_{{\text {SG}}}}\)
Internal power conversion efficiency of the SG (–)

- \(\eta _{{\text {ESS}}}\)
Battery operating efficiency (–)

- \(\eta _{{\text {GB}}_{{\text {ICE}}}}\)
Gearbox losses for the ICE (–)

- \(\eta _{{\text {GB}}_{{\text {SG}}}}\)
Gearbox losses for the SG (–)

- \(\eta _{{\text {o}}}\)
Open water efficiency of the propeller (–)

- \(C_{{\text {R}}}\)
Ship hull resistance coefficient (N s/m)

*D*Diamater of the propeller (m)

- \(E_{{\text {nom}}}\)
Nominal capacity of the battery (kWh)

*J*Advance number (–)

*k*Integer exponent for ship velocity (–)

- \(K_{{\text {Q}}}\)
Torque coefficient of the propeller (–)

- \(K_{{\text {T}}}\)
Thrust coefficient of the propeller (–)

*n*Rotational speed of the propeller (1/s)

- \(P_{{\text {ESS}}}\)
Instantaneous operating power of the ESS (W)

- \(P_{{\text {GEN}}}\)
Instantaneous operating power of the GEN (W)

- \(P_{{\text {ICE}}}\)
Instantaneous operating power of the ICE (W)

- \(P_{{\text {hotel}},t}\)
Instantaneous hotel load (W)

- \(P_{{\text {prop}},t}\)
Instantaneous propeller load (W)

- \(P_{{\text {SG}}}\)
Instantaneous operating power of the SG (W)

*Q*Propeller torque (Nm)

*R*Ship hull resistance (N)

- \({\text {SOC}}_{0}\)
Initial state of charge in the battery (%)

- \({\text {SOC}}_{N}\)
Final state of charge in the battery (%)

*T*Propeller thrust (N)

*t*Instantaneous time (s)

*u*control decision array for the DP algorithm (–)

*V*Ship speed (m/s)

*x*state variable for the DP algorithm (–)

## 1 Introduction

Passenger vehicles with hybrid powertrains have gained a strong foothold in the automotive industry and can now be seen in the traffic. Scientific research on the potential and benefits of the hybrid vehicles has been very active since the latter half of the 1990s. On the system level, the research typically starts by specifying the system first and then studying the optimal energy management of the hybrid powertrain [1, 2, 3]. In research that has a wider scope, the focus has moved to the optimal design of hybrid powertrains either by retro-fitting components or by completely re-designing the system. In Ref. [4], the optimal design of a power system in a hybrid electric vehicle (HEV) includes (a) the system topology optimisation, (b) component technology and sizing optimisation, and (c) system control optimisation, all of which should be solved as a nested problem.

The fundamental design principles for hybrid power systems are the same for the marine and automotive industries, but the marine industry typically has less stringent requirements for the control of vessel dynamics and, in many cases, involves a less confined work environment. Hence, rather than using a time-dependent and variant duty cycles, as in the automotive industry, the starting point in a fuel-efficient vessel propulsion system design is typically testing the static operating points in specific sea trials. Such approach is equivalent to designing an efficient hybrid vehicle for only highway speeds, for example. Following the steps taken in the automotive industry, academic studies of hybrid power systems have emerged in the more conservative marine industry. Literature reviews regarding the optimal control and design of hybrid electric boats (HEBs) have been conducted in Refs. [5, 6].

The authors of the current article are developing a design tool called TOpti for the machinery integration designers in the marine industry. To help the engineers compare different system configurations and make the first baseline designs, a fairly low level of detail is used for system modelling. The ultimate goal is to be able to globally optimise the system design as a nested problem, as described in Refs. [4, 7]. Although the current market has commercial simulation softwares with individual component parameter optimisation and control optimisation features, to the authors’ best knowledge, these tools are missing the ability to numerically optimise the topology of the system. To optimise the topology, the energy management optimisation routine, which works at a lower level, must flexibly adapt to the design parameters regarding individual components and the system topology. This means that decisions, that are made automatically by the higher level optimisation routines or manually by the user, affect in the formulation of the energy management optimisation problem.

The current article creates a pathway for authors’ future articles on the design and control optimisation of propulsion systems by describing the energy management optimisation methodology to be used in TOpti. As a case study, energy management was optimised for two machinery designs of a fishing boat. The fuel consumption of a HEB with parallel configuration was compared with a baseline system that had a conventional diesel-mechanical (DM) power system. Improvement in fuel economy with the proposed optimisation method was benchmarked against the results achieved using a widely used dynamic programming (DP) algorithm, hence providing a global optimum. The goal in this article is not to fine-tune the parameters related to the system models, the used energy management strategies or the search algorithms, but rather the goal is to show that the proposed methodology is capable of flexibly optimising the energy management for different system topologies.

The system models for the baseline and hybrid systems are described in Sect. 2, after which the compared optimisation routines are explained in Sect. 3. The results and discussion are presented in Sect. 4.

## 2 Modelling a fishing boat power system with TOpti

The target in the development of the proposed optimisation tool is to give the system integration engineers the first estimates of which machinery system suits the intended duty cycle the best. In addition, marine vessels typically operate in conditions that have higher time scales compared with, for example, cars. Therefore, a high level of detail in the component modelling is not appraised here. Instead, static component models and averaged duty cycles of quasi-static operating conditions are considered sufficient.

The current article focuses on the energy management optimisation for predefined machinery systems. With TOpti, the user defines the essential components in the power system, such as propellers, diesel engines, gensets, electric propulsion motors, shaft generators, and batteries. The static characteristics of these components, such as nominal size, specific fuel consumption, efficiency, and operating limits, are often available in manufacturer data sheets and the literature. The user also specifies the component topology by defining the links between the components which modes each component can operate in. TOpti then optimises the machinery system usage for a specified duty cycle of the vessel.

Machinery specifications

Machine | MCR | Rated speed | Other |
---|---|---|---|

ICE | 3480 kW | 750 rpm | Four-stroke, variable speed |

GEN | 1665 kW | 1200 rpm | Four-stroke, fixed speed |

SG | 1500 kW | 750 rpm | – |

ESS | 1400 kW | – | 700 kWh capacity |

The performance of the reference system is compared with a more complex parallel hybrid system. The main components in the HEB, as shown in Fig. 1b, were kept the same as in the baseline system. An energy storage system (ESS) is connected to the electric grid, and the SG is bi-directional, meaning that it can also draw power from the electric grid to power the propeller alone or together with the ICE. Table 1 shows the main specifications for the machinery.

Although only two example topologies are studied, the user can also create topologies for diesel-electric (DE), combined diesel-electric, and diesel-mechanical (CODED) configurations or only study the propulsion system or electric grid alone.

*J*(\(K_T\) and \(K_Q\), respectively, in Eqs. 1a and 1b). The equations for the thrust generated by propeller

*T*and for the torque affecting propeller shaft

*Q*are shown in Eqs. 1c and 1d, respectively. The resistance,

*R*, which is affecting the vessel body as it moves in the water, is modelled as \(R=C_R \cdot V^k\), where \(C_R\) is the resistance coefficient,

*V*is the vessel velocity, and

*k*is the integer exponent for velocity. By setting \(T=R\) in the equilibrium point and excluding the wake deduction at the propeller inlet flow, the open water efficiency of the propeller, \(\eta _{o}\), can be defined as a ratio of the towing power and the input power of the propeller (Eq. 1e). The operating point of the propeller is solved using Eqs. 1a–1e by interpolating between the fitted propeller curves. Water density is \(\rho =1020\,{\text {kg}}/{\text {m}}^{3}\), the rotational speed of the propeller is \(n=153\,{\text {rpm}}\) and the propeller diameter is \(D=4.5 {\text {m}}\):

*V*, vessel resistance coefficient, \(C_R\), and the power demand of HOTEL/AUX during the voyage. The duty cycle is applied for all the studied cases, regardless of machinery topology or optimisation algorithm. To simulate the optimal energy management of the system, a time step of 0.05 hours was used. To showcase the capabilities of the optimisation methodology, two different machinery shut-off strategies are simulated. In the first one, the ICE was only allowed to turn off at a zero propulsion period at the 2.5–3 h mark and in a low-speed transit period at the 4.5–5 h mark. GEN, however, was required to idle as a spinning reserve throughout the duty cycle for safety reasons. The second shut-off strategy allowed both the ICE and the GEN to shut off at any time if they were not loaded. The propeller speed was kept at a constant value of 153 rpm.

Rather than focusing on the accurate modelling of individual components, the focus of the current article is on describing the energy management optimisation methodology. Therefore, the parameters for the individual component models were not validated using measurements. Instead, reasonably chosen static model parameters were considered sufficient. Although dynamic load conditions are not modelled and studied, we acknowledge their effects and importance. The future development plans for TOpti include scaling factor maps for the static efficiency maps of combustion units and electric machines. This enables the possibility of studying the relative effects emerging from dynamic loads, such as wave or wind loads.

## 3 Optimisation problem

In the DM reference case, the propeller has a single power source feeding it. The electric grid, however, has two power sources: a GEN and an ICE, which is connected to the grid through the SG. The following question arises with parallel power sources: how can we most efficiently combine power production from the different sources? With the hybrid power system, this question is even more complex, because the propeller can now also be powered with the SG, and the addition of an ESS offers another power source to the electric grid. With a finite energy capacity, the ESS also introduces a time-dependent element to the question: When is it best to charge or discharge the battery? Next, the optimisation methods are described, and the optimisation problems are formulated.

### 3.1 Using the best of both worlds from local and global optimisation

Gradient-based algorithms are efficient as the search progresses towards the direction of the fastest change in the objective function. However, numeric problems emerge when the algorithm tries to define a gradient for discontinuities in the search space. In addition, gradient-based methods can only find a local optimum. If the search space is non-convex or too flat, the algorithm may converge to a local optimum, failing to find the global optimum.

In Ref. [8], the fuel consumption of a hybrid electric tugboat was studied. Two objective functions were formulated for the discrete operating modes: one for the mode, where the ESS was charged with the electric motor in generator mode and one objective function for the discharging mode, where the electric motor worked in motoring mode and delivered power from the ESS to the gearbox. The lower of the two objective function’s minima was chosen to represent the minimum. We recognised the benefits of the approach in Ref. [8] and wanted to create a solution that automatically adjusts the problem formulation according to a generic system topology. Combining the approach of Ref. [8] with the combinatory control principle used in digital hydraulics in Ref. [9], a mode space for all possible mode combinations in a studied topology is created.

For the code to automatically create these combinations, the user must define an array of possible discrete operating modes for each component in the system. For example, for a diesel engine, the modes are inactive or active, and the discrete values for these would be 0 and 1, respectively. For electric motors or SGs, the possible modes would be motor or generate at − 1 and 1, respectively. Electric components also have an inactive mode, which marked with 0, to prevent numeric problems around discontinuities in the optimisation surface, something that may occur close to the zero usage region. For the DM, the mode space is smaller compared with the HEB, because it does not have the battery, and the SG can only operate in generating and inactive modes, whereas in the HEB, the SG can also work in motoring mode.

Before the search moves to process these independent system modes with a local optimisation algorithm, any infeasible modes are filtered out. This means that for each instantaneous time step in the duty cycle, a pre-processor checks which modes can guarantee that power can be supplied to the power consumers. An example of an infeasible mode is when a power consumer, such as a propeller, requests power, but all the possible sources are in inactive mode. This is done by first checking that there are active power sources available to feed the consumers. If a given mode passes this availability check, a coarse check is made to ensure that the active power sources have enough capacity to meet the power request within this mode.

After filtration, the optimisation routine moves from the discrete mode layer to the local optimisation layer. Here, a constrained optimisation problem is formulated for each feasible mode combination. A free and open-source optimisation package called NLopt in Ref. [10] was used for this purpose. A gradient-free algorithm for constrained problems, constrained optimisation by linear approximations (COBYLA), was used. In short, the algorithm creates successive linear approximations of the objective function and constraints via a simplex of *N* + 1 points (in *N* dimensions). Then, for each step, it optimises the approximations in a trust region. A more detailed description of the algorithm can be found in Ref. [11]. The numerical implementation allows for using inequality constraint equations, and because COBYLA is a gradient-free algorithm, it estimates the gradient when the user does not provide it. The algorithm also supports boundaries for the optimisation variables.

This two-layer power management optimisation methodology processes the duty cycle from beginning to end in discrete time steps and makes decisions pertaining to optimal power management only based on the current state of the system. Hence, it is here referred to as a local time (LT) method. Because the decision is made instantaneously without knowing the duty cycle a priori, the LT strategy is easier to implement for online control compared with a DP algorithm.

The novelty of the proposed two-layer method is its capability to automatically formulate the energy management optimisation problem according to the specified power system topology. Because the discrete mode layer splits the overall search space into smaller sub-spaces with fewer discontinuities, the ability to find the global optimum using a gradient-based algorithm is increased. Depending on component specifications, which are made by the user, these sub-spaces may still be non-convex and, therefore, not ideal for gradient-based algorithms. To prevent possible problems from using a gradient-based algorithm with non-convex sub-spaces, the LT method scatters a number of starting points for the search algorithm in each sub-space.

Open-source optimisation libraries also offer global algorithms. For instance, the selection of global algorithms in NLopt includes the dividing rectangles algorithm and the improved stochastic ranking evolutionary strategy algorithm. However, the minimal tuning effort required in the gradient-based algorithm and the fast convergence to a local optimum favoured the use of COBYLA in the proposed LT method. Although the use of the above-mentioned global algorithms are not studied in the present article, they are available for use in TOpti.

After all the feasible modes are processed in the local layer, the mode with the lowest objective function output is chosen to represent the optimum control of the system for this time step. This way, the code goes through all the time steps in the duty cycle.

#### 3.1.1 Setting objectives for the gradient-based optimisation

In the current article, the main objective was to minimise the fuel consumption of the machinery. A secondary target, although not controlled by the feedback systems, was to start and end the simulation cycle for the HEB with a full battery. Because the use of shore power was also excluded from the study, the energy management optimisation focused only on improving the operating points of the on-board power sources.

In TOpti, the optimisation variables are set according to the machinery components. To ensure the genericity of the methodology, each component adds one variable to the problem, and this variable is the instantaneous output power of the component. This way, the problem formulation is directly scaled up or down directly according to defined topology. For the cases studied in the current article, the reference DM system has three variables: \(P_{{\text {ICE}}}\), \(P_{{\text {SG}}}\) and \(P_{{\text {GEN}}}\). For the HEB, the variables are \(P_{{\text {ICE}}}\), \(P_{{\text {SG}}}\), \(P_{{\text {GEN}}}\) and \(P_{{\text {ESS}}}\). In the literature, the problem dimension is often reduced using a power split ratio in the gearbox instead of, for example, setting the ICE load and the SG load as individual variables. We recognise the drawback of the increased computational load, which comes from having redundant variables in the optimisation problem. Because the aim was to create a methodology for optimising energy management in generic machinery topologies, improved flexibility for user-defined system topologies can be gained with the proposed way.

*s*considers losses in the charging and discharging of the ESS, including the internal battery losses, the DC–AC conversion losses in the battery driver, and conversion losses from mechanical energy to electric energy in a generator. \({\text {BSFC}}_{{\text {eq}}}\) sets a reference value for the virtual fuel consumption. These parameters could be mapped according to different operating modes and conditions, where the ESS is utilised in the system, but the approaches in Refs. [13, 14] with only one or two parameter pairs for

*s*and \({\text {BSFC}}_{{\text {eq}}}\) have also shown improvement in fuel efficiency. In Ref. [13], the author explains that equivalent fuel consumption could be mapped for multiple operating points in the system and both energy directions in the ESS:

In general, if the equivalent fuel cost of the ESS is tuned too low, the strategy depletes the ESS, because the energy in the ESS is considered cheaper than energy in combustion units. A value that is too high will discourage battery use because of high recharge costs. Therefore, the potential benefits of the ESS will be missed during the duty cycle. An ECMS was used for the energy management in the HEB when an LT methodology was used.

ECMS tuning was made based on the component efficiencies in the power conversion line from the ICE to ESS: the overall peak efficiency is better mainly because of the better fuel economy of the ICE compared with the GEN, even though additional transfer and conversion losses occur at the gearbox and SG. Thus, the reference factor for equivalent consumption was chosen as the peak efficiency of the ICE, \({\text {BSFC}}_{{\text {eq}}} = 182\,{\text {g}}/{\text {kWh}}\), and the conversion factor was tuned according to the peak efficiencies in the power conversion line from the ICE to ESS, \(s = 1.15\). With this tuning, the initial SOC level was sustained at the end of the duty cycle, and fuel efficiency was improved compared with the reference DM case, as later shown in Sect. 4. It must be noted that using an ECMS does not have a feedback controller to maintain a specified SOC level in the ESS. The SOC depends on \(P_{{\text {ESS}}}\) according to Eq. 2, where \(P_{{\text {ESS}}}\) is an optimisation variable that is controlled by the optimisation algorithm.

The code reduces the dimension of the local sub-spaces according to the processed mode combination. Only the active components are attended the optimisation problem as variables, whereas the inactive components are presented as static elements. For example, when a mode combination assigns the ICE to run in inactive mode, \(P_{{\text {ICE}}}\) is not added as a variable for the local COBYLA algorithm; instead, an idle consumption rate or zero consumption from engine shut-off, according to the user’s specification, replaces the fuel consumption rate in the objective function.

#### 3.1.2 Constraining the problem

Constraint functions are defined to ensure that the required duty cycle is completed and to make sure that the allowed battery SOC limits are not exceeded. The propeller equations convert the requested duty cycle in to propeller power demand, \(P_{{\text {prop}},t}\), at a time instant *t*. This must be supplied with the power of the machines attached to the propeller gearbox input shafts, as described in Eq. 6. Because the optimisation variables represent the output power of the component, the gear contact efficiency, \(\eta _{{\text {GB}}}\), depends on the component’s operating mode. For the ICE, the gear efficiency is a constant 0.98. For the SG, it is 0.98 if it is motoring and \(0.98^{-1}\) if it is generating. The conversion efficiency, \(\eta _{{\text {conv}}}\), describes the lumped electrical-to-mechanical conversion losses and the distribution losses, as explained in Sect. 2. For the SG, it is interpolated from the efficiency map, as shown in Fig. 3. For the constraint equations, this conversion efficiency is piecewise defined based on the operating mode, because the variable \(P_{{\text {SG}}}\) describes the output power of the SG. This does not mean that the SG operates without losses in motoring mode, but rather that the internal conversion losses are pulled out of the electric grid, which is shown in Eq. 7. Here, the negative sign simply ensures that the summation on the right-hand side of gearbox power equilibrium is correctly formulated according to the operating mode of the SG.

Similarly, Eq. 7 is set to make sure that the requested load \(P_{{\text {hotel}},t}\) is supplied with the machinery in the electric grid. The electric output power from the GEN after conversion losses equals \(P_{{\text {GEN}}} \cdot \eta _{{\text {conv}}_{{\text {GEN}}}}\). The conversion losses in the SG, \(\eta _{{\text {conv}}_{{\text {SG}}}}\), in electric grid, are opposite from those of the gearbox.

The constraint functions for the DM topology and the HEB have two differences. The first is that in the DM, the SG does not work in motoring mode. The second difference is that in the HEB, the battery pack power \(P_{{\text {ESS}}}\) is appended to the energy balance calculation in Eq. 7.

### 3.2 Benchmarking with the DP

DP algorithms are based on Bellman’s principle of optimality [15] and are a widely used method for numerical optimisation. These types of algorithms find the global optimum in the solution space and are suitable for non-linear systems with discontinuities, such as the marine vessel power system used in current study. Examples of using DP power management optimisation in HEVs can be found in Refs. [7, 16]. The downsides of DP algorithms is that the problem needs to be discretised. Furthermore, because of similarities with brute-force algorithms, the computational load suffers from the curse of dimensionality, which means that the computational load increases exponentially as the number of optimisation variables increases. Because the DP is suitable and a well utilised for control optimisation problems, it is adopted for the algorithm selection of TOpti.

In the present article, a backwards DP algorithm was used as a benchmark algorithm against the authors’ own implementation. An adaptation of an open-source DP algorithm called prodyn was used. This algorithm is written in Python and is available in GitHub [17]. The changes made to this algorithm involved the internal structure and data types. Part of the internal for-loops in the original code were replaced with array structures to allow for more efficient number-crunching. The original DataFrame-type array structures in the main loop were replaced with numpy-type arrays for their smaller memory usage.

In the current study, the non-causal backwards-stepping DP algorithm is only used for the HEB, because the reference DM system does not have time-dependent states, such as the SOC level of the battery. The DP algorithm knows the duty cycle a priori; therefore, the objective function in Eq. (3) can be used together with the HEB constraints set in Eqs. 6, 7 and 8. The discretisation of the system control is done for the fuel-consuming components ICE and GEN, as shown in Eq. 9. A Cartesian product of all possible discrete control combinations is generated from the member arrays, \(u_{{\text {member}}}\), in Eq. 9, and each control combination is studied for every time step and state of the discrete search space. The use of other components, the SG and ESS, are solved from the instantaneous loads \(P_{{\text {prop}},t}\), \(P_{{\text {hotel}},t}\) and the discretised controls of the ICE and GEN, as shown in Eqs. 10 and 11.

## 4 Results and discussion

In the refDM system, the propulsion load can only be supplied with the ICE, but the HOTEL/AUX load can be supplied from multiple sources. Therefore, the optimisation question is whether to feed the HOTEL/AUX request from the GEN, the SG or a combination of both. The results highlight three findings for refDM. First, because the SG can only work in generating mode, the ICE is always active when the propeller requires power. Second, because of its better BSFC characteristics, the ICE also supplies the E-GRID in PTO mode during transit phases at the beginning and end of the cycle. In Fig. 7, the pure PTO mode can be seen as a positive value in the SG load in Fig. 7c and that the GEN load is zero in Fig. 7d. Because of a higher load, the operating point of the ICE is improved, and the decreased fuel consumption now overcomes the expenses of an idling GEN and the additional transfer losses in the gearbox. During the transit phase between 4.5 and 5.0 h, however, both the propulsion and HOTEL/AUX loads are so low, that the PTO mode becomes more expensive compared with the shown optimum, where the ICE supplies the propeller load and the GEN supplies the HOTEL/AUX load, while the SG is inactive. In addition to the low transit period, the GEN supplies the grid during zero and heavy propulsion, either alone or as a sidekick when the PTO mode alone is insufficient. During a zero propulsion interval at the 2.5–3 h mark, the small hotel load and the permission to shut off the ICE favour the use of the GEN. As the third remark, the fairly low level of usage over the whole cycle shows that the chosen SG is too big for the DM topology for this duty cycle.

For the HEB, the results using the LT methodology are discussed first. The ESS starts with 70% capacity, and with the chosen ECMS parameters, the duty cycle ends with the initial 70% capacity. The first remark on the results is that the ESS is discharged (positive value in Fig. 7e) during heavy loads and recharged (negative value in Fig. 7e) when loads decrease and diesel-powered machinery have power reserves. The discharge power of the ESS is fairly low in Fig. 7e, which is a result of the machinery running close to their peak efficiency under high loads. This load levelling behaviour mainly affects the GEN usage. For instance, the ESS discharge between 1.0 and 2.5 h mark and the following recharge keeps the GEN operating at its peak efficiency. Excluding the time period between 4.0 and 5.0 h, the ESS does not have much influence on the usage of the ICE. This is a result of fairly high propulsion load, better fuel consumption characteristics compared with the GEN and, finally, due to energy conversion losses in the SG. Electric propulsion is only used during the low propulsion request at the 4.5–5.0 h mark. Even then, the battery is not utilised, but rather, the propulsion is powered from the GEN. The fairly low level of SG usage shows that it could be downsized in the HEB, as well to operate it at a higher efficiency.

HEB_DP in Fig. 7 shows the global optimum, which is found using the DP algorithm. The discretisation of the DP search grid appears to be feasible, because the forward simulation with the optimal trajectory does not violate the defined SOC limits, and the final SOC value is only 1.5% below the target value of 70%. As with the LT, the battery is drained under a heavy load and charged when fuel consumers have power reserves under low loads. The global optimum over the known future is found at the trajectory, which spreads the ESS usage over wider spans with lower recharging power and longer discharging segments. The DP algorithm shows that the ESS is best used for load levelling the GEN under heavy loads, while the ICE load is not influenced much. The SG is now only used in generating mode throughout the duty cycle. The most important outcome of this benchmarking is that, at a larger scale, the machinery usage is in line with the LT and DP methods.

Having spinning reserves on-board might not be a practical requirement when operating a fishing boat. Next, the same three simulation cases were studied, but this time, the ICE and GEN were allowed to shut off at any time in the studied duty cycle (the cases use notations ‘refDM_shut-off’, ‘HEB_LT_shut-off’‘, and ‘HEB_DP_shut-off’). Figure 9 shows the results for the three cases with the new shut-off strategy.

With HEB_LT_shut-off, the first noticeable difference compared with the original shut-off strategy is that after the ESS is fully charged between 2.5 and 2.7 h, cycling occurs in ESS and GEN usage until the zero speed phase ends at the 3 h mark. This cycling, which is shown in Fig. 9d, e, starts, because the ECMS tuning has not changed from the original shut-off strategy cases. Now, the absence of the idle fuel consumption of the GEN leads to a smaller objective function value with the shown machinery usage if it is compared with a usage, where the ESS was inactive and the E-GRID was fed with the GEN. The charging phase in the cyclic usage starts when the ESS can be charged with high enough power but without exceeding the maximum SOC limit. In other words, the ESS charging starts when the GEN can operate at higher efficiency for a span of one time step without overcharging the ESS. Cyclic usage occurs again between 4.3 and 4.5 h. Although the components are not shut-off here, three things lead to switching between the instantaneous and optimal operating modes: the used ECMS parameter tuning, the component efficiencies and the operation near the maximum SOC limit. From a practical point of view, this kind of cycling may not be ideal for a component’s life cycle or even system usability. Therefore, additional penalties should be added to the optimisation problem to avoid excessively frequent mode changing. The second difference compared with the original shut-off strategy is that the SG is only used in generating mode, even in the low-speed transit phase between 4.5 and 5.0 h.

Figure 10 shows the cumulative fuel savings for the different cases when the ICE and the GEN are allowed to shut off any time. The cumulative difference in fuel consumption is calculated against the original refDM results from the top graph in Fig. 8. Compared with the original refDM, refDM_shut-off creates fuel savings by getting rid of the GEN’s idle consumption. HEB_LT_shut-off now shows very little fuel saving compared with refDM_shut-off. These savings cumulate from the beginning to the 3 h mark, after which the discharge–recharge cycles do not add fuel savings. Although shutting down redundant machinery saves fuel, the addition of the ESS and PTI mode is not highly beneficial for this type of duty cycle. The DP algorithm predicts more fuel savings for the HEB, as a global optimisation algorithm should.

Summary of the results

System | Fuel consumption (kg) | Fuel saving (%) | Computation time (s) |
---|---|---|---|

refDM | 3784.5 | 0.00 | 85 |

HEB_LT | 3780.9 | 0.10 | 1156 |

HEB_DP | 3777.9 | 0.17 | 23672 |

refDM_shut-off | 3737.0 | 1.26 | 86 |

HEB_LT_shut-off | 3735.4 | 1.30 | 1139 |

HEB_DP_shut-off | 3727.1 | 1.51 | 23957 |

As mentioned, assigning the operating power of each component as an optimisation variable makes the computation load heavy. Although the number of optimisation variables with the DP was reduced to half from the LT optimisation, the runtime for HEB with a DP algorithm is still twenty times longer compared with LT method. If the same principle of variable reduction was implemented to the refDM and HEB_LT, their computation times in Table 2 would likely decrease. This is subject to future studies for the authors of the current article. The central processing unit used for the simulations was an Intel Core i7-7700HQ run at 2.80 GHz.

## 5 Conclusions and future work

This study presented an optimisation method for energy management. It is an integral part of TOpti, a design optimisation tool that the authors are developing. The described method automatically formulates an optimisation problem to minimise the fuel consumption of the designed on-board machinery. Using a case study of a fishing boat and comparing conventional diesel-mechanical propulsion with the parallel hybrid system, the proposed method was shown to find fuel consumption savings with the local optimisation methodology proposed in this article. The fuel savings from the hybrid system were benchmarked with a widely used dynamic programming algorithm, which is also available in the proposed design tool. The fuel savings from a more complex hybrid machinery, however, were found to be minimal compared with the reference system.

The computational efficiency of the proposed method could be improved by detecting and removing duplicate mirror modes in symmetrical machinery layouts, such as those used for twin-propeller tugboats. The computation time could also be reduced by automatically detecting locations in a system topology, where two parallel optimisation variables could be replaced with a single split ratio between the two variables. Parallelising the optimisation tasks to different central processing unit cores would greatly improve the overall computation times. Obtaining more sophisticated initial guess generators and transforming badly scaled functions would improve the performance of the used gradient-based algorithm.

A future work will study the optimal energy management of different ship machinery topologies when propulsion is controlled with propeller pitch angle, speed, or both.

## Notes

### Acknowledgements

This work was conducted as a part of first author’s PhD studies at the Doctoral School of Industry Innovations and was funded by Wärtsilä and Tampere University of Technology.

## References

- 1.Wirasingha SG, Emadi A (2011) Classification and review of control strategies for plug-in hybrid electric vehicles. IEEE Trans Veh Technol 60(1):111CrossRefGoogle Scholar
- 2.Karbaschian MA, Söffker D (2014) Review and comparison of power management approaches for hybrid vehicles with focus on hydraulic drives. Energies 7(6):3512. https://doi.org/10.3390/en7063512 CrossRefGoogle Scholar
- 3.Enang W, Bannister C (2017) Modelling and control of hybrid electric vehicles (a comprehensive review). Renew Sustain Energy Rev 74(Supplement C):1210CrossRefGoogle Scholar
- 4.Silvas E, Hofman T, Murgovski N, Etman LP, Steinbuch M (2017) Review of optimization strategies for system-level design in hybrid electric vehicles. IEEE Trans Veh Technol 66(1):57Google Scholar
- 5.Geertsma R, Negenborn R, Visser K, Hopman J (2017) Design and control of hybrid power and propulsion systems for smart ships: a review of developments. Appl Energy 194:30CrossRefGoogle Scholar
- 6.Jaurola M, Hedin A, Tikkanen S, Huhtala K (2018) Optimising design and power management in energy-efficient marine vessel power systems: a literature review. J Mar Eng Technol. https://doi.org/10.1080/20464177.2018.1505584 CrossRefGoogle Scholar
- 7.Silvas E (2015) Integrated optimal design for hybrid electric vehicles. Ph.D. Thesis, Technische Universiteit EindhovenGoogle Scholar
- 8.Grimmelius H, de Vos P, Krijgsman M, van Deursen E (2011) Control of hybrid ship drive systems. In: 10th international conference on computer and IT applications in the maritime industries, pp 1–15Google Scholar
- 9.Linjama M, Vilenius M (2005) Digital hydraulic tracking control of mobile machine joint actuator mockup. In: Proceedings of the ninth scandinavian international conference on fluid power, SICFP’05, June 1–3, 2005, Linköping, SwedenGoogle Scholar
- 10.Johnson S (2014) The NLopt nonlinear-optimization package. http://ab-initio.mit.edu/nlopt. Accessed 20 Oct 2017
- 11.Powell M (1994) A direct search optimization method that models the objective and constraint functions by linear interpolation. In: Gomez S, Hennart JP (eds) Advances in optimization and numerical analysis. Mathematics and Its applications, vol 275. Springer, Dordrecht, pp 51–67CrossRefGoogle Scholar
- 12.Onori S, Serrao L, Rizzoni G (2016) Hybrid electric vehicles: energy management strategies. Springer, New YorkCrossRefGoogle Scholar
- 13.Serrao L, Onori S, Rizzoni G (2011) A comparative analysis of energy management strategies for hybrid electric vehicles. J Dyn Syst Meas Control 133(3):031012CrossRefGoogle Scholar
- 14.Yuan LCW, Tjahjowidodo T, Lee GSG, Chan R, Ådnanes AK (2016) Equivalent consumption minimization strategy for hybrid all-electric tugboats to optimize fuel savings. In: American control conference (ACC), IEEE, 2016, pp 6803–6808Google Scholar
- 15.Bellman R (1957) Dynamic programming, 1st edn. Princeton University Press, PrincetonzbMATHGoogle Scholar
- 16.Sundström O, Ambühl D, Guzzella L (2010) On implementation of dynamic programming for optimal control problems with final state constraints. Oil Gas Sci Technol Revue de l’Institut Français du Pétrole 65(1):91CrossRefGoogle Scholar
- 17.Atabay D (2016) prodyn: Generic implementation of the dynamic programming algorithm for optimal system control. https://github.com/yabata/prodyn/blob/master/doc/overview.rst. Accessed 11 Mar 2017
- 18.Musardo C, Rizzoni G, Guezennec Y, Staccia B (2005) A-ECMS: an adaptive algorithm for hybrid electric vehicle energy management. Eur J Control 11(4–5):509MathSciNetCrossRefGoogle Scholar
- 19.Rezaei A, Burl JB, Zhou B (2017) Estimation of the ECMS equivalent factor bounds for hybrid electric vehicles. IEEE Trans Control Syst Technol 26(6):2198–2205. https://doi.org/10.1109/TCST.2017.2740836 CrossRefGoogle Scholar

## Copyright information

**Open Access**This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.