Lithium-Ion Battery Discharge Modeling: Approach and Implementation for a Mathematical Modeling Contest Problem

    This article walks through a complete modeling framework for a math modeling contest problem on mobile device energy management. It covers the electrochemical discharge model based on Butler-Volmer kinetics and the Tafel approximation, temperature and aging corrections using the Arrhenius law and square-root capacity fade model, an OLED screen power consumption model, and the full solution pipeline from parameter identification and numerical simulation to optimization and sensitivity analysis. Readers will gain both the theoretical foundations and practical code-level guidance needed to build a coupled battery-load simulation and optimization workflow.

    1. Problem Background and Overall Modeling Strategy

    This problem is set against the background of energy management for mobile electronic devices. Contestants are asked to build a lithium-ion battery discharge model, a capacity fade model, and a load power consumption model, then perform optimization decisions on top of them. Problems of this type follow a three-stage structure: “mechanistic modeling + data fitting + optimization and control.” The key assessment points are:

    1. Whether you can correctly write down the electrochemical reaction equations and kinetic relationships;
    2. Whether you can introduce real-world factors such as temperature and aging to correct the idealized model;
    3. Whether you can couple the battery’s output capability with load power consumption to form a closed-loop analysis.

    A clear overall framework should be: electrochemical model (voltage-current relationship) → temperature correction → aging fade → load power model → joint simulation and optimization. Let’s unpack each layer.

    2. Fundamental Electrochemical Model of the Battery

    2.1 Discharge Reaction Mechanism

    During discharge of a lithium-ion battery, lithium ions deintercalate from the anode, travel through the electrolyte, and intercalate into the cathode, while electrons flow through the external circuit to form the current. Taking a lithium cobalt oxide system as an example, the reactions at three levels are:

    • Cathode reaction: LiCoO₂ ⇌ Li₍₁₋ₓ₎CoO₂ + xLi⁺ + xe⁻
    • Anode reaction: C₆ + xLi⁺ + xe⁻ ⇌ LiₓC₆
    • Overall reaction: LiCoO₂ + C₆ ⇌ Li₍₁₋ₓ₎CoO₂ + LiₓC₆

    For modeling purposes, contestants generally do not need to solve the concentration distributions inside the electrodes—that is the territory of the pseudo-two-dimensional (P2D) model, which is computationally expensive. Instead, focus on the macroscopically measurable relationship: how terminal voltage varies with current and state of charge, and build a simplified model around it.

    2.2 Butler-Volmer Kinetics

    The electrochemical reaction rate at the electrode surface is driven by overpotential, described by the Butler-Volmer equation:

    1. i = i₀ · [ exp(αₐFη/RT) − exp(−α_cFη/RT) ]

    The key parameters and their typical values:

    • i₀: exchange current density, reflecting the reversibility of the reaction;
    • η = V_cell − V_OC: overpotential, i.e., the deviation of the actual voltage from the open-circuit voltage;
    • αₐ, α_c: anodic/cathodic charge transfer coefficients, typically 0.5 each under symmetric conditions;
    • F = 96485 C/mol: Faraday constant;
    • R = 8.314 J/(mol·K): gas constant.

    2.3 Tafel Simplification and Terminal Voltage Expression

    When the overpotential is large during discharge, the reverse term in the Butler-Volmer equation can be neglected, yielding a single-exponential form:

    1. i ≈ i₀ · exp(αFη/RT)

    Solving for the overpotential and adding the internal resistance voltage drop gives the most widely used terminal voltage model in engineering:

    1. V_cell = V_OC − (RT/αF)·ln(i/i₀) − i·R_int

    The physical meaning is clear: terminal voltage = open-circuit voltage − activation polarization loss − ohmic loss. This is the core equation for all subsequent simulations and should be encapsulated as a core function in your code.

    1. def cell_voltage(i, V_oc, i0, T=298.15, alpha=0.5, R_int=0.05):
    2. R, F = 8.314, 96485
    3. activation = (R * T / (alpha * F)) * np.log(i / i0)
    4. return V_oc - activation - i * R_int

    3. Temperature and Aging Corrections

    3.1 Arrhenius Temperature Effect

    Temperature affects the battery’s available capacity and power capability by changing reaction rate constants, following the Arrhenius law. Define the capacity temperature correction factor:

    1. f_T(T) = exp[ (Eₐ/R)·(1/T_ref − 1/T) ]

    where Eₐ is the activation energy. At low temperatures, f_T is significantly below 1, which matches real-world experience: phones drain faster and instantaneous power is limited in cold weather. In the model, this factor can be used to scale both the effective capacity and i₀.

    3.2 Square-Root Capacity Fade Model

    Battery aging (mainly the loss of active lithium due to SEI film growth) is commonly described by a square-root law:

    1. Q_loss = Q₀·√(k_aging·t)
    2. Q_eff(t) = Q₀·(1 − √(k_aging·t))

    The fade amount is proportional to the square root of time, which originates from the mechanism that SEI film growth is limited by lithium-ion diffusion. When modeling, treat k_aging as a parameter to be fitted, calibrated against the cycle-life data provided in the problem.

    4. Load Power Model: The Screen as an Example

    For an OLED screen, power consumption is linearly related to each pixel’s brightness:

    1. P_pixel = P_R·R_lum + P_G·G_lum + P_B·B_lum

    If pixel-level detail is not required, this can be simplified to a first-order model in terms of the average screen brightness B:

    1. P_screen = A_screen·[ ε_black·(1−B) + ε_white·B ]

    The key insight here: an OLED displaying pure black consumes almost zero power, so a dark theme can significantly reduce power consumption. This is exactly the theoretical basis for the optimization question of whether switching to dark mode can extend battery life. Total power consumption is the sum of the power drawn by the screen, processor, communication modules, and other components; integrating over time gives the energy consumption curve.

    5. Solution Roadmap and Paper-Writing Advice

    1. Parameter identification: Fit V_OC(SOC), R_int, i₀, Eₐ, and k_aging using the data given in the problem, via least squares or a genetic algorithm;
    2. Numerical simulation: Iterate SOC and terminal voltage with a fixed step size, plot the discharge curves, and validate against measured curves;
    3. Optimization layer: Perform decision optimization on top of the power model, such as brightness adjustment strategies or charge/discharge scheduling, using dynamic programming or convex optimization;
    4. Sensitivity analysis: Perturb the temperature and aging parameters to demonstrate model robustness—an important bonus point in contest papers.

    6. Summary

    The complete technical chain of this problem is: the electrochemical mechanism provides the voltage equation; the Arrhenius law and the square-root law introduce temperature and aging as two correction dimensions; and the load-side power model connects “how much the battery can supply” with “how much the device consumes.” The key strategy for a high score is to follow the main thread of “mechanism simplification — parameter fitting — coupled optimization” while avoiding getting lost in overly deep electrochemical details.