I present a refined management method for modular reconfigurable battery energy storage systems. The central object of the method is a BESS controller that coordinates module-level power, state-of-charge, temperature, and lifetime degradation in a single optimization framework. The BESS controller is intended for systems in which battery modules can be bypassed, reconnected, and reconfigured while the external load or grid command continues to change. In my view, the main difficulty is not only to satisfy the power balance at the point of common coupling, but also to preserve internal consistency among modules whose initial states, aging levels, and thermal conditions differ. The BESS controller therefore has to act as both a real-time power allocator and a long-horizon health manager.
Large-scale renewable integration increases the need for flexible resources that can absorb fluctuations, provide reserve, and shift energy in time. A battery energy storage system can perform these functions only when its internal modules are used coherently. Manufacturing tolerances, unequal aging, uneven cooling, and different bypass histories create deviations in state-of-charge and temperature. These deviations reduce usable capacity, trigger protection, and accelerate degradation. A well-designed BESS controller must therefore reduce state inconsistency while respecting current, state-of-charge, and temperature limits. My formulation treats the BESS controller as a multi-objective decision layer that balances state-of-charge equalization, thermal equalization, and lifetime cost minimization.

The proposed BESS controller is built on three modeling layers. The first layer represents the electrical response of each battery module with a Rint equivalent circuit. The second layer represents heat generation and heat dissipation with a lumped thermal model. The third layer represents lifetime degradation as a cost proportional to discharged and charged energy under a bounded depth-of-discharge policy. These layers are coupled because current affects losses, losses affect temperature, temperature affects open-circuit voltage and aging, and state-of-charge affects both available energy and degradation. The BESS controller uses this coupled representation to allocate power among modules rather than relying on a single state-of-charge balancing rule.
1. Multi-Dimensional Module Model Used by the BESS Controller
I consider a system with \(J\) battery modules and a scheduling horizon \(H\). The discrete time index is \(t\), and the sampling interval is \(\Delta t\). Each module \(j\) has an open-circuit voltage \(u_j\), an internal resistance \(R_j\), and an actual capacity \(S_j\). The BESS controller determines the module current \(i_{j,t}\), the internal power \(P^b_{j,t}\), and the power loss \(P^\ell_{j,t}\). The sign convention is that discharge current is positive and charge current is negative. This convention is consistent with the power balance equations used later by the BESS controller.
$$\begin{aligned}
v_{j,t} &= u_j(q_{j,t}) – R_j i_{j,t}, \\
q_{j,t+1} &= q_{j,t} – \frac{\Delta t}{S_j} i_{j,t}, \\
P^b_{j,t} &= u_j(q_{j,t}) i_{j,t}, \\
P^\ell_{j,t} &= i_{j,t}^2 R_j.
\end{aligned}$$
Here \(v_{j,t}\) is the terminal voltage, \(q_{j,t}\) is the state-of-charge, \(u_j(q_{j,t})\) is the open-circuit voltage as a function of state-of-charge, and \(P^b_{j,t}\) is the internal electrochemical power. The BESS controller does not treat the module as a fixed voltage source. Instead, it uses the state-dependent open-circuit voltage and the resistive loss to represent the fact that the same current produces different losses and different thermal effects at different state-of-charge levels. This is important when the BESS controller has to decide which module should absorb or deliver more power during a transient.
The open-circuit voltage curve is nonlinear. I use a piecewise linear approximation over the full state-of-charge range so that the BESS controller can solve the resulting optimization problem efficiently. For segment \(m\), the open-circuit voltage is
$$u_j(q_{j,t}) = a_j^{(m)} q_{j,t} + b_j^{(m)}, \quad q_{j,t}\in[\underline{q}^{(m)},\bar{q}^{(m)}].$$
The coefficients \(a_j^{(m)}\) and \(b_j^{(m)}\) are obtained from measured or manufacturer data. The BESS controller can update these coefficients when a module is replaced or when a recalibration procedure changes the state-of-charge estimate. In my implementation, the curve is divided into four segments. Dense segmentation is used where the slope changes significantly, while sparse segmentation is used in the flat region. This keeps the number of optimization variables moderate without losing the main nonlinear behavior that the BESS controller must respect.
For the thermal layer, I use a lumped-parameter model. The accumulated heat rate is the difference between heat generation and heat dissipation. Because the module is treated as a single thermal node, the model is suitable for the control time scale of the BESS controller, where the objective is to coordinate modules rather than to resolve internal cell-level temperature gradients.
$$\begin{aligned}
Q^{acc}_{j,t} &= Q^{gen}_{j,t} – Q^{dis}_{j,t}, \\
Q^{gen}_{j,t} &= P^\ell_{j,t}, \\
Q^{dis}_{j,t} &= hA\left(T_{j,t}-T_{env}\right), \\
T_{j,t+1} &= T_{j,t} + \frac{\Delta t}{C_p}\left[P^\ell_{j,t} – hA\left(T_{j,t}-T_{env}\right)\right].
\end{aligned}$$
In these equations, \(T_{j,t}\) is the module temperature, \(T_{env}\) is the ambient temperature, \(h\) is the convective heat transfer coefficient, \(A\) is the effective heat transfer area, and \(C_p\) is the module heat capacity. The BESS controller uses this model to anticipate how a power command changes the module temperature. A module with a higher temperature is not automatically bypassed. Instead, the BESS controller can reduce its loss-producing current, shift more power to a cooler module, or use a combination of both actions while maintaining the total power required by the system.
The lifetime layer converts charged and discharged energy into a degradation cost. I use a module-level unit lifetime loss cost coefficient \(\lambda_j\). This coefficient distributes the replacement cost over the lifetime throughput within the allowed state-of-charge window. The BESS controller then minimizes the accumulated cost over the optimization horizon.
$$\begin{aligned}
C^{BES}_j &= \lambda_j \sum_{t=1}^{Z}\left|P^{BES}_{j,t}\right|\Delta t, \\
P^{BES}_{j,t} &= P^b_{j,t} – P^\ell_{j,t}, \\
\lambda_j &= \frac{\lambda_{cell}}{2N\left(SOC_{max}-SOC_{min}\right)E^{bat}_j}.
\end{aligned}$$
Here \(C^{BES}_j\) is the lifetime loss cost of module \(j\), \(P^{BES}_{j,t}\) is the net output power of the module, \(Z\) is the number of scheduling steps, \(\lambda_{cell}\) is the module replacement cost, \(N\) is the maximum number of cycles within the allowed state-of-charge window, and \(E^{bat}_j\) is the actual module energy. The BESS controller uses this cost to avoid unnecessary cycling of modules whose degradation cost is high, while still using those modules when the system requires their capacity.
| Symbol | Meaning in the BESS Controller | Role in the Model |
|---|---|---|
| \(J\) | Number of battery modules | Defines the module set managed by the BESS controller |
| \(q_{j,t}\) | State-of-charge of module \(j\) | Electrical state and equalization target |
| \(T_{j,t}\) | Temperature of module \(j\) | Thermal state and safety indicator |
| \(i_{j,t}\) | Module current | Control input for power and loss |
| \(P^b_{j,t}\) | Internal power | Electrical power before loss correction |
| \(P^\ell_{j,t}\) | Power loss | Couples electrical and thermal layers |
| \(\lambda_j\) | Unit lifetime loss cost | Weights degradation in the objective |
| \(\xi^E_{j,t}\) | State-of-charge slack | Preserves feasibility during large deviations |
| \(\xi^T_{j,t}\) | Temperature slack | Preserves feasibility during thermal transients |
The electrical, thermal, and lifetime models are coupled through the loss term. The BESS controller cannot treat the loss as a constant because the loss depends on the internal power and the available energy. For this reason, I rewrite the loss as a function of internal power and shifted energy. The shifted energy is defined from the open-circuit voltage approximation, and it allows the BESS controller to represent the loss with a rational expression that can be relaxed and solved iteratively.
$$\begin{aligned}
E_{j,t} &= \frac{1}{2}C_j\left[u_j(q_{j,t})\right]^2 – E^0_j, \\
E^0_j &= \frac{1}{2}C_j\left[u_j(q^0_j)\right]^2, \\
P^\ell_{j,t} &= \frac{R_jC_j\left(P^b_{j,t}\right)^2}{2\left(E_{j,t}+E^0_j\right)}.
\end{aligned}$$
In this expression, \(C_j\) is an equivalent capacitance parameter derived from the state-of-charge and voltage relation. The BESS controller uses this representation because it makes the power-loss constraint explicit and exposes the source of nonconvexity. The electrical equality constraints remain affine in the decision variables after the piecewise linear voltage approximation. The only strongly nonconvex constraint is the loss relation. This structure is important for the successive convexification algorithm used by the BESS controller.
2. Multi-Objective Model of the BESS Controller
I formulate the BESS controller as a finite-horizon optimization problem. The objective includes lifetime degradation cost and two penalty terms for relaxing the state-of-charge and temperature equalization constraints. The penalty terms are not used to weaken the physical limits. They are used to keep the optimization problem feasible when the initial states are far outside the desired equalization band. This is a practical requirement for a BESS controller because a system may start from a maintenance condition, a partial replacement, or a fault-recovery state.
$$\min_{\{Z_{j,t}\}} \; J_{BESS} = \sum_{t=0}^{H}\sum_{j=1}^{J}\left(C^{BES}_{j,t} + \lambda_E \xi^E_{j,t} + \lambda_T \xi^T_{j,t}\right).$$
The decision vector for each module and time step is
$$Z_{j,t} = \left[P^b_{j,t},\; P^\ell_{j,t},\; E_{j,t},\; T_{j,t},\; \xi^E_{j,t},\; \xi^T_{j,t}\right].$$
The BESS controller enforces current limits, state-of-charge limits, and temperature limits. These constraints are hard limits in the sense that they represent the safe operating envelope. The equalization constraints are soft in the sense that they include slack variables. The BESS controller penalizes the slack variables so that the equalization band is respected whenever it is physically possible.
$$\begin{aligned}
i^{cha,max}_j &\leq i_{j,t} \leq i^{dis,max}_j, \\
q^{min}_j &\leq q_{j,t} \leq q^{max}_j, \\
T_{j,t} &\leq T^{max}_j.
\end{aligned}$$
The equalization constraints are written with respect to the system average state-of-charge and average temperature. The BESS controller computes these averages from the module states at each time step. The bounds \(\Delta q\) and \(\Delta T\) define the desired consistency band. When a module is bypassed or disconnected, its current is zero and its state is held constant. The BESS controller then redistributes the required power among the remaining modules.
$$\begin{aligned}
\left|q_{j,t}-\bar{q}_t\right| &\leq \Delta q + \xi^E_{j,t}, \\
\left|T_{j,t}-\bar{T}_t\right| &\leq \Delta T + \xi^T_{j,t}, \\
\bar{q}_t &= \frac{1}{J}\sum_{j=1}^{J}q_{j,t}, \\
\bar{T}_t &= \frac{1}{J}\sum_{j=1}^{J}T_{j,t}.
\end{aligned}$$
The power balance constraint is stated separately for discharge and charge because the converter efficiency enters the relation in different directions. The BESS controller must ensure that the sum of the module output powers, after converter efficiency and loss correction, equals the system command. This is the point at which the BESS controller connects the internal module states to the external grid or load requirement.
$$\begin{aligned}
\sum_{j=1}^{J}\left(P^b_{j,t}-i_{j,t}^2R_j\right)\eta &= P^{out}_t, \quad P^{out}_t\geq 0, \\
\sum_{j=1}^{J}\frac{P^b_{j,t}-i_{j,t}^2R_j}{\eta} &= P^{out}_t, \quad P^{out}_t<0.
\end{aligned}$$
The complete BESS controller problem is therefore a multi-objective optimization problem with hard safety constraints and soft consistency constraints. The lifetime cost pushes the BESS controller toward lower-throughput operation. The state-of-charge penalty pushes the BESS controller toward equalization. The temperature penalty pushes the BESS controller toward thermal uniformity. The power balance constraint ensures that these objectives are not achieved by violating the external duty. This combination is more realistic than a single-objective state-of-charge equalizer because it reflects the fact that a BESS controller must simultaneously satisfy grid-side and module-side requirements.
| Constraint Group | Expression | Purpose in the BESS Controller |
|---|---|---|
| Current limit | \(i^{cha,max}_j \leq i_{j,t} \leq i^{dis,max}_j\) | Protects modules from overcurrent |
| State-of-charge limit | \(q^{min}_j \leq q_{j,t} \leq q^{max}_j\) | Prevents overcharge and overdischarge |
| Temperature limit | \(T_{j,t}\leq T^{max}_j\) | Maintains safe thermal operation |
| State-of-charge consistency | \(\left|q_{j,t}-\bar{q}_t\right|\leq \Delta q+\xi^E_{j,t}\) | Equalizes available energy among modules |
| Temperature consistency | \(\left|T_{j,t}-\bar{T}_t\right|\leq \Delta T+\xi^T_{j,t}\) | Reduces thermal stress and aging spread |
| Power balance | Efficiency-corrected sum equals \(P^{out}_t\) | Matches grid or load command |
| Bypass state | \(i_{j,t}=0\) for a bypassed module | Allows fault isolation and reconnection |
The slack variables are also useful for the BESS controller during fault recovery. When a module is bypassed, its state-of-charge remains constant while the other modules continue to operate. The difference between the bypassed module and the system average grows. If the BESS controller used a hard equality band, the optimization problem could become infeasible at reconnection. By using slack variables, the BESS controller can keep the remaining modules inside the desired band, allow the bypassed module to deviate, and then bring the module back into the band before reconnection. The penalty weights determine how aggressively the BESS controller performs this recovery.
I set the penalty weights according to operating priority. State-of-charge equalization is closely related to available capacity and is therefore given a high weight. Temperature equalization is closely related to safety and is given a comparable weight. Lifetime cost is an economic objective and is allowed to vary more slowly. The BESS controller therefore treats safety and state consistency as primary requirements and lifetime cost as a secondary requirement. This priority is reflected in the penalty coefficients \(\lambda_E\) and \(\lambda_T\).
3. Successive Convexification for the BESS Controller
The loss relation is nonconvex because the power loss is proportional to the square of internal power divided by the available energy. A direct nonlinear solver can be sensitive to the initial point and may not provide a reliable solution within the time available to a BESS controller. I therefore use a successive convexification algorithm. The BESS controller solves a sequence of convex approximations, each defined by a trust region around the previous solution. The trust region is contracted until the relaxed loss is close to the true loss. This gives the BESS controller a fast and repeatable way to obtain a high-quality feasible solution.
The first step is to relax the loss relation from an equality to a lower bound. This lower bound is convex in the relevant variables and ensures that the relaxed loss does not underestimate the physical loss. The second step is to add a linear upper bound based on a secant line between the current lower and upper internal power limits. The intersection of the lower bound and the upper bound forms a convex hull of the original nonconvex feasible set. The BESS controller solves the resulting convex problem and then updates the trust region.
$$P^\ell_{j,t}\geq \frac{R_jC_j\left(P^b_{j,t}\right)^2}{2\left(E_{j,t}+E^0_j\right)}.$$
For the upper bound, let \(\underline{P}^b_j\) and \(\bar{P}^b_j\) be the lower and upper internal power limits used in the current iteration. The secant line is
$$P^\ell_{j,t}\leq P^\ell_j\left(\underline{P}^b_j\right)+\frac{P^\ell_j\left(\bar{P}^b_j\right)-P^\ell_j\left(\underline{P}^b_j\right)}{\bar{P}^b_j-\underline{P}^b_j}\left(P^b_{j,t}-\underline{P}^b_j\right).$$
This upper bound is affine in \(P^b_{j,t}\) for fixed energy and fixed trust region. It prevents the relaxed loss from becoming arbitrarily large and keeps the BESS controller from exploiting the relaxation. The lower bound and the upper bound together define a convex region in which the BESS controller searches for the next iterate. The width of this region is controlled by the trust-region radius.
| Step | Action of the BESS Controller | Output |
|---|---|---|
| Initialization | Set iteration index, tolerance, contraction factor, and initial power bounds | Initial convex hull |
| Convex solve | Solve the relaxed multi-objective problem with loss bounds | Power, loss, state, and slack values |
| Feasibility check | Compare relaxed loss with the physical loss relation | Accept or continue |
| Trust-region update | Contract the internal power interval around the current solution | New convex hull |
| Termination | Stop when loss error and trust radius satisfy tolerances | Final BESS controller command |
The trust-region update is the key mechanism that distinguishes the BESS controller from a one-shot convex relaxation. The BESS controller initializes the internal power interval from the current limits. After each convex solve, the interval is centered on the previous internal power and contracted by a factor. The contraction continues until the loss error is within tolerance or the trust radius falls below a small threshold. This procedure avoids the large loss error that can occur when a fixed convex hull is used without iterative refinement.
$$\begin{aligned}
L_j^{(e)} &= (1-\sigma)L_j^{(e-1)}, \\
\bar{P}^{b,(e)}_j &= P^{b,(e-1)}_j + \frac{1}{2}L_j^{(e)}, \\
\underline{P}^{b,(e)}_j &= P^{b,(e-1)}_j – \frac{1}{2}L_j^{(e)}, \\
\bar{P}^{b,(e)}_j &= \min\left(\bar{P}^{b,(0)}_j,\bar{P}^{b,(e)}_j\right), \\
\underline{P}^{b,(e)}_j &= \max\left(\underline{P}^{b,(0)}_j,\underline{P}^{b,(e)}_j\right).
\end{aligned}$$
The convergence check uses both the loss error and the trust-region radius. The BESS controller accepts the solution when the relaxed loss is close to the physical loss or when the trust region is small enough that further contraction cannot materially change the command. In my formulation, the loss error is measured as
$$r^{(e)} = \sum_{j=1}^{J}\left|P^{\ell,(e)}_{j,t}-\frac{R_jC_j\left(P^{b,(e)}_{j,t}\right)^2}{2\left(E^{(e)}_{j,t}+E^0_j\right)}\right|.$$
The BESS controller terminates when \(r^{(e)}\leq \rho\) or when the maximum trust radius is below \(\varepsilon\). The first condition means that the relaxed loss is consistent with the physical loss. The second condition means that the trust region is so small that the relaxed problem is effectively local. Using both conditions prevents premature termination when the loss error is small only because the power command is small.
The successive convexification procedure also gives the BESS controller a predictable computational profile. Each iteration solves a convex problem with a modest number of variables and constraints. The number of iterations is typically governed by the contraction factor and the tolerance. Because the BESS controller can warm-start from the previous time step, the number of iterations in normal operation is lower than during a fault or a large load change. This is important for real-time implementation.
4. Case Study and Results
I evaluate the proposed BESS controller on a modular reconfigurable battery energy storage system with seventeen modules. Each module consists of series-connected cells and a DC-DC converter. The module-level controller can set the current, bypass the module, and reconnect the module after fault clearing. The system command follows a profile that includes discharge, charge, and low-power intervals. I use the same load profile for all methods so that the comparison isolates the effect of the BESS controller.
| Parameter | Value Used in the Study | Meaning |
|---|---|---|
| \(J\) | 17 | Number of battery modules |
| \(\Delta t\) | 2 s | Sampling interval |
| \(H\) | 20 | Optimization horizon in steps |
| \(q^{min}_j\) | 0.05 | Lower state-of-charge limit |
| \(q^{max}_j\) | 0.95 | Upper state-of-charge limit |
| \(i^{dis,max}_j\) | 180 A | Maximum discharge current |
| \(i^{cha,max}_j\) | -180 A | Maximum charge current |
| \(T^{max}_j\) | 318 K | Maximum module temperature |
| \(T_{env}\) | 298 K | Ambient temperature |
| \(\Delta q\) | 0.01 | Allowed state-of-charge deviation |
| \(\Delta T\) | 1 K | Allowed temperature deviation |
| \(\eta\) | 0.98 | Converter efficiency |
| \(\rho\) | 0.001 | Loss-error tolerance |
| \(\sigma\) | 0.5 | Trust-region contraction factor |
| \(\varepsilon\) | 0.0001 | Trust-radius tolerance |
The initial state-of-charge values are distributed around a nominal level so that the maximum initial deviation is noticeable. The initial temperatures are distributed over a range that represents uneven cooling and uneven prior usage. The BESS controller starts with these nonuniform conditions and attempts to satisfy the external power command while reducing the deviations. I also introduce two fault events. Module 4 is bypassed at 1000 s, and module 7 is bypassed at 1600 s. Both modules remain bypassed until 2000 s. After repair, the BESS controller checks the state consistency before reconnection. Module 7 is reconnected at 2460 s, and module 4 is reconnected at 2640 s.
| Event | Time | BESS Controller Action |
|---|---|---|
| Initial operation | 0 s | Allocate power to reduce initial state-of-charge and temperature deviations |
| State-of-charge convergence | 360 s | Bring state-of-charge deviations within the allowed band |
| Module 4 fault | 1000 s | Bypass module 4 and redistribute power to remaining modules |
| Module 7 fault | 1600 s | Bypass module 7 and maintain power balance with fifteen active modules |
| Temperature convergence | 1760 s | Bring temperature deviations within 1 K |
| Fault clearing | 2000 s | Prepare module 4 and module 7 for reconnection |
| Module 7 reconnection | 2460 s | Reconnect after state-of-charge deviation enters the allowed band |
| Module 4 reconnection | 2640 s | Reconnect after state-of-charge deviation enters the allowed band |
The results show that the BESS controller reduces the state-of-charge deviation from a maximum initial value of 5.70 percent to the allowed band within 360 s. This is a significant improvement over rule-based equalization, which typically requires a much longer time when the initial deviation is large. The BESS controller achieves this by allocating higher charge power to modules with lower state-of-charge and lower charge power to modules with higher state-of-charge. The power allocation is not a simple proportional rule. It is the solution of the multi-objective problem, so the BESS controller also accounts for the effect of the current on losses and temperature.
During the fault interval, the bypassed module cannot exchange power, so its state-of-charge remains constant while the system average changes. The maximum deviation of module 4 reaches 9.98 percent, and the maximum deviation of module 7 reaches 5.13 percent. The remaining modules stay within the allowed band. This result is important because it shows that the BESS controller does not sacrifice the healthy modules in order to keep the faulted module inside an impossible band. Instead, the BESS controller maintains the consistency of the active set and prepares the faulted module for reconnection after repair.
| Performance Indicator | Proposed BESS Controller | Interpretation |
|---|---|---|
| Initial maximum state-of-charge deviation | 5.70% | Starting inconsistency before control |
| State-of-charge convergence time | 360 s | Time to enter the allowed deviation band |
| Maximum deviation of module 4 during bypass | 9.98% | Bypassed module drifts while active modules remain controlled |
| Maximum deviation of module 7 during bypass | 5.13% | Second fault event handled without losing active-set consistency |
| Temperature convergence time | 1760 s | Time to bring all module temperature deviations within 1 K |
| Maximum loss error of the proposed solver | Less than 0.2 W | Successive convexification satisfies the loss consistency check |
| Maximum loss error of a fixed convex hull | 3.73 kW | One-shot relaxation can be far from the physical loss |
The temperature results show a similar behavior. The initial module temperatures are uneven, and the BESS controller reduces the temperature deviation to 1 K within 1760 s. The temperature convergence is slower than the state-of-charge convergence because the thermal time constant is longer and because the heat generation depends on the square of the current. The BESS controller anticipates this by using the thermal model in the prediction horizon. It does not wait for a temperature limit violation. Instead, it shifts power away from warmer modules before the limit is reached and uses cooler modules to provide the required power.
The load profile includes a low-power interval in which the heat generation decreases. During this interval, the temperature deviation decreases faster because the heat dissipation term dominates. This behavior is captured by the BESS controller because the thermal model includes both the loss term and the convection term. The results also show that the bypass events cause a temporary change in the average temperature. The BESS controller adjusts the remaining modules so that the external power command is still met. The temperature of the bypassed module decreases because it no longer generates heat and continues to exchange heat with the environment.
The slack variables provide a clear diagnostic signal. When the state-of-charge or temperature deviation is outside the allowed band, the corresponding slack variable becomes nonzero. The BESS controller uses the penalty term to drive the slack variable back toward zero as the module states converge. In the initial phase, the state-of-charge slack is larger than the temperature slack because the initial state-of-charge spread is more severe. In the fault phase, the temperature slack shows a small transient because the bypass changes the average temperature and the active power distribution. By the end of the recovery phase, both slack variables approach zero, which means that the original equalization constraints are satisfied without relaxation.
$$s_E(t)=\sum_{j=1}^{J}\xi^E_{j,t}, \quad s_T(t)=\sum_{j=1}^{J}\xi^T_{j,t}.$$
The BESS controller also reduces the lifetime cost by avoiding unnecessary high-current operation when the state deviations are already small. During the steady phase, the power allocation among modules is close to uniform, but it is not exactly uniform because the BESS controller still accounts for small differences in temperature and degradation cost. This is a desirable behavior. A purely uniform allocation would ignore the fact that some modules are warmer or more expensive to cycle. The multi-objective BESS controller uses the available flexibility to reduce long-term degradation without violating the external power requirement.
| Operating Phase | Main Objective of the BESS Controller | Observed Behavior |
|---|---|---|
| Initial equalization | Reduce state-of-charge deviation | Large power differences among modules |
| Thermal adjustment | Reduce temperature deviation | Power shifted toward cooler modules |
| Fault interval | Maintain power balance with bypassed modules | Active modules absorb the lost power capacity |
| Reconnection preparation | Bring repaired modules within the consistency band | Bypassed module state converges before reconnection |
| Steady operation | Minimize lifetime cost while preserving consistency | Near-uniform allocation with small health-aware adjustments |
I compare the proposed BESS controller with a conventional convex-hull relaxation that does not use trust-region contraction. The conventional method can produce a feasible solution, but the power loss error can be large when the load is low. In the case study, the maximum loss error of the conventional method reaches 3.73 kW near 1200 s. In contrast, the proposed BESS controller reduces the loss error to less than 0.2 W after convergence. This difference matters because an inaccurate loss estimate leads to an inaccurate thermal prediction and an inaccurate lifetime cost. The BESS controller may then allocate power in a way that appears optimal for the relaxed model but is not optimal for the physical system.
$$e_{loss}(t)=\sum_{j=1}^{J}\left|P^\ell_{j,t}-\frac{R_jC_j\left(P^b_{j,t}\right)^2}{2\left(E_{j,t}+E^0_j\right)}\right|.$$
The comparison also shows that the proposed BESS controller handles the charging phase efficiently. When the system is charging and the state-of-charge equalization constraint is satisfied, the lifetime cost and the loss minimization objective are aligned. The convex relaxation then produces a solution that already satisfies the loss consistency condition, and the BESS controller does not need many iterations. This property is useful for real-time operation because the BESS controller can reduce its computational effort when the system is in a well-balanced state.
| Method | State-of-Charge Convergence | Temperature Convergence | Loss Consistency | Fault Handling |
|---|---|---|---|---|
| Rule-based equalization | Slow when initial deviation is large | Indirect and sensitive to thresholds | Usually ignored | Requires additional logic |
| Fixed convex hull | Fast but may be inaccurate | Model-based but loss error can be large | Not guaranteed | Can become infeasible without slack |
| Proposed BESS controller | Converges within 360 s in the study | Converges within 1760 s in the study | Less than 0.2 W after convergence | Maintains active-set consistency and supports reconnection |
5. Practical Implementation of the BESS Controller
For practical deployment, I organize the BESS controller into four functions. The measurement function collects module voltage, current, temperature, and bypass status. The estimation function updates state-of-charge and resistance parameters. The optimization function solves the successive convexification problem and produces module power references. The execution function sends current or power references to the module converters and updates the bypass switches. This structure keeps the BESS controller modular and allows the optimization horizon to be adjusted according to the available computation time.
| BESS Controller Layer | Input | Output | Design Consideration |
|---|---|---|---|
| Measurement | Voltage, current, temperature, status | Filtered measurements | Sampling synchronization and fault detection |
| State estimation | Filtered measurements and model parameters | State-of-charge, resistance, thermal state | Robustness to sensor bias and aging |
| Optimization | Estimated states, load command, constraints | Module power and current references | Convex solve time and trust-region tuning |
| Execution | Power references and bypass commands | Converter duty cycles and switch states | Current limiting and seamless reconnection |
The BESS controller can be implemented in a hierarchical control architecture. A central BESS controller solves the module-level optimization and sends references to local controllers. The local controllers enforce current limits and provide fast protection. This division of responsibility is important because the central BESS controller operates on a slower time scale, while the local controllers must respond to overcurrent and overvoltage events within milliseconds. The central BESS controller can also receive updated health indicators from the local controllers and adjust the lifetime cost coefficients.
The computational burden of the BESS controller depends on the number of modules, the horizon length, and the number of successive convexification iterations. In the case study, the problem size is moderate, and the BESS controller can solve the problem within the sampling interval. For larger systems, the BESS controller can use a rolling horizon with a reduced number of modules in the optimization or a hierarchical decomposition. The key point is that the successive convexification structure is compatible with warm starting. The BESS controller can use the previous solution as the initial point for the next time step, which reduces the number of iterations and improves numerical stability.
The BESS controller also needs a reconnection logic. A repaired module should not be reconnected when its state-of-charge deviation or temperature deviation is outside the safe band. The BESS controller therefore monitors the slack variables and the deviation of the repaired module. When the deviation enters the allowed band, the BESS controller closes the bypass switch and includes the module in the next optimization step. The power reference for the reconnected module is ramped from zero to the required value to avoid a sudden current surge. This ramp is coordinated with the other modules so that the total power remains equal to the system command.
| Implementation Issue | BESS Controller Response | Benefit |
|---|---|---|
| Large initial deviation | Use slack variables and penalty terms | Keeps the optimization feasible while driving states toward the band |
| Module fault | Set current to zero and redistribute power | Maintains external power balance |
| Repair and reconnection | Check deviation and ramp power after reconnection | Prevents current shock and protects the repaired module |
| Nonconvex loss | Apply successive convexification with trust-region contraction | Provides a high-quality feasible command |
| Changing load command | Use a rolling horizon and warm start | Reduces computation time and improves continuity |
In my implementation, the BESS controller uses a weighted objective rather than a Pareto frontier because the operator needs a single command at each time step. The weights can be adjusted by the operator according to the operating mode. In a normal mode, the BESS controller emphasizes lifetime cost and state-of-charge equalization. In a fault mode, the BESS controller emphasizes power balance and temperature safety. In a recovery mode, the BESS controller emphasizes reconnection readiness. This mode-based weighting is simple and transparent, and it preserves the optimization structure.
The BESS controller is also compatible with module-level reconfiguration. When the switch matrix changes the series or parallel connection, the BESS controller updates the feasible power range and the power balance equation. The optimization model does not need to be rebuilt from scratch. The BESS controller only updates the parameters that describe the active module set and the converter efficiency. This is a practical advantage for modular systems in which the topology can change during operation.
6. Discussion and Robustness
The main lesson from this study is that a BESS controller should not treat state-of-charge equalization, temperature equalization, and lifetime degradation as separate control loops. These quantities are coupled through the module current and the module loss. A BESS controller that ignores the coupling may achieve a short-term equalization target but increase long-term degradation or create a thermal hot spot. The proposed BESS controller addresses this issue by using a unified model and a multi-objective objective function. The successive convexification algorithm makes the model tractable without linearizing away the loss relation.
The robustness of the BESS controller comes from three design choices. First, the hard safety constraints protect the modules even when the objective weights are not perfectly tuned. Second, the slack variables preserve feasibility when the initial state or the fault state is outside the desired band. Third, the trust-region contraction prevents the convex relaxation from producing a solution that is physically inconsistent. These choices are complementary. The hard constraints ensure safety, the slack variables ensure feasibility, and the trust-region contraction ensures accuracy.
The BESS controller also has a clear failure mode. If the power command is so high that no feasible allocation exists within the current, state-of-charge, and temperature limits, the BESS controller must reduce the command or request additional modules. The optimization problem can detect this condition through infeasibility or through slack saturation. The BESS controller can then send a derating request to the system-level controller. This is preferable to operating the modules outside their limits. In my formulation, the slack variables are used only for consistency constraints, not for safety constraints. Therefore, an infeasible safety constraint cannot be hidden by a penalty term.
Temperature estimation is another practical issue. The lumped thermal model assumes a uniform module temperature, which is an approximation. In a real BESS controller, the temperature measurement may come from a small number of sensors, and the internal temperature may be higher than the measured surface temperature. The BESS controller can compensate for this by using a conservative temperature limit or by adding an observer that estimates the internal temperature from the surface temperature and the loss history. The optimization structure remains the same. Only the thermal parameters and the limit are adjusted.
State-of-charge estimation error also affects the BESS controller. If the state-of-charge estimates are biased, the equalization target may be shifted. The BESS controller can reduce this risk by using a robust margin in the equalization band and by recalibrating the state-of-charge when the module is at rest. The slack variables provide additional robustness because they allow the BESS controller to tolerate a bounded estimation error without becoming infeasible. The penalty weights can be increased when the estimation confidence is high and decreased when the estimation confidence is low.
| Uncertainty | Effect on the BESS Controller | Mitigation |
|---|---|---|
| State-of-charge estimation error | Shifts the equalization target | Use a robust margin and periodic recalibration |
| Temperature sensor error | Biases the thermal constraint | Use conservative limits and thermal observers |
| Resistance aging | Changes the loss and heat generation | Update resistance parameters from online data |
| Converter efficiency variation | Affects the power balance | Use a conservative efficiency and feedback correction |
| Load forecast error | Changes the required power allocation | Use rolling horizon optimization and warm start |
The BESS controller can be extended to include degradation-dependent resistance and capacity. In the current formulation, the resistance and capacity are treated as parameters that are updated between optimization runs. A more advanced version could include a slowly varying health state in the model and use a longer horizon for health management. However, this would increase the problem size and the computational burden. For real-time control, the current structure is a reasonable compromise because it captures the main electrical, thermal, and lifetime effects while keeping the optimization tractable.
The BESS controller can also be used for grid services such as frequency regulation and peak shaving. In frequency regulation, the power command changes rapidly, and the BESS controller must allocate the command without causing unnecessary cycling. The lifetime cost term is useful in this case because it penalizes throughput. In peak shaving, the command changes more slowly, and the BESS controller can place more emphasis on state-of-charge equalization and thermal management. The same optimization model can be used with different weights and horizons. This flexibility is one of the main advantages of the proposed BESS controller.
7. Conclusion
I have presented a refined management method for modular reconfigurable battery energy storage systems. The method uses a multi-dimensional module model, a multi-objective BESS controller, and a successive convexification solver. The BESS controller coordinates state-of-charge equalization, temperature equalization, and lifetime degradation under current, state-of-charge, and temperature constraints. The slack variables preserve feasibility during large initial deviations and fault recovery, while the penalty terms drive the system back to the desired consistency band. The successive convexification algorithm handles the nonconvex power-loss relation and provides a high-quality feasible command.
The case study shows that the BESS controller reduces the state-of-charge deviation from 5.70 percent to the allowed band within 360 s. During module faults, the bypassed module deviation reaches 9.98 percent, but the active modules remain within the allowed band. The temperature deviation converges to 1 K within 1760 s. The loss error of the proposed solver is less than 0.2 W after convergence, whereas a fixed convex hull can produce a loss error of 3.73 kW. These results indicate that the BESS controller improves dynamic response, thermal consistency, and loss accuracy in both normal and fault conditions.
From my perspective, the most important contribution is the integration of the BESS controller design with the physical coupling of electrical, thermal, and lifetime behavior. The BESS controller is not a separate balancing layer that ignores the converter and thermal dynamics. It is a model-based decision layer that uses the module states and the system command together. This integration is necessary for modular reconfigurable systems, where the active set of modules changes and the controller must maintain both external performance and internal consistency. The proposed BESS controller provides a practical foundation for further development of health-aware and fault-tolerant battery storage control.
| Design Element | Function in the BESS Controller | Demonstrated Benefit |
|---|---|---|
| Rint electrical model | Represents voltage, current, and loss | Captures state-dependent electrical behavior |
| Lumped thermal model | Predicts heat generation and dissipation | Supports thermal equalization and safety |
| Lifetime cost model | Penalizes module throughput | Reduces unnecessary degradation |
| Slack variables | Relax consistency constraints when needed | Preserves feasibility during faults and recovery |
| Successive convexification | Solves the nonconvex loss relation iteratively | Provides accurate and reliable power commands |
| Reconnection logic | Checks deviation before closing the bypass switch | Prevents current shock and protects repaired modules |
The BESS controller can be further improved by incorporating online parameter identification, cell-level temperature estimation, and stochastic load forecasts. These extensions would increase the model fidelity but would also increase the computational burden. The successive convexification structure provides a useful starting point because it separates the convex part of the problem from the nonconvex loss relation. This separation allows the BESS controller to be updated incrementally as new data become available. In summary, the proposed BESS controller offers a coherent and practical approach for refined management of modular reconfigurable battery energy storage systems.
