How It Works
The optimization loop:- Parameters define the design variables being optimized (e.g., electrode thickness, porosity)
- Model runs a simulation with those parameters under specified operating conditions
- Variables are time-series outputs from the simulation (voltage, temperature, capacity)
- Metrics extract scalar values from variables (final voltage, maximum temperature, mean current)
- Actions define what to do with metrics (maximize, minimize, constrain)
- Cost combines action results into a single objective for the optimizer
Design Parameters
Design parameters are the degrees of freedom the optimizer is allowed to vary. Each parameter has a feasible range (bounds) set by manufacturing constraints or material properties — for example, electrode thickness might be bounded between and , and active material volume fraction between and . Choosing parameters well is more important than choosing many: two or three influential parameters with realistic bounds usually yields more insight than a dozen loosely-bounded ones. Where parameters are physically coupled — porosity and active material fraction must sum to one, for instance — the coupling should be encoded in the problem definition rather than left to the optimizer to discover.Metrics
Metrics transform simulation time-series into scalar values that can be optimized. They answer questions like “What is the voltage at the end of discharge?” or “What is the maximum temperature?”Point metrics
Extract a value at a specific condition in the simulation:| Metric | Extracts value at… | Example |
|---|---|---|
| Time | Specific time point | Voltage at s |
| SOC | Specific state of charge | Voltage at 50% SOC |
| Voltage | Specific voltage | Capacity when V |
Aggregation metrics
Compute statistics over the entire solution:| Metric | Computes | Example |
|---|---|---|
| Mean | Average value | Mean current during pulse |
| Maximum | Peak value | Maximum temperature |
| Minimum | Lowest value | Minimum voltage |
| Sum | Accumulated total | Total energy |
Composed metrics
Derived quantities are built by combining primitive metrics with arithmetic. For example, pulse resistance is the voltage change divided by the current:Step and cycle metrics
Experiments with multiple steps or cycles need metrics that unroll along that axis — e.g. capacity measured at the end of the discharge step of every cycle, yielding a capacity-fade curve rather than a single number.Actions
Actions define how the optimizer should treat each metric:| Action | Behavior |
|---|---|
| Maximize | Maximize the metric value |
| Minimize | Minimize the metric value |
| GreaterThan | Constraint: metric must exceed a threshold |
| LessThan | Constraint: metric must stay below a threshold |
Multi-objective optimization
Most design problems trade off competing goals — energy vs. power, capacity vs. charge time, performance vs. temperature. There are two ways to combine them:- Weighted sum: pick weights and optimize . Simple, but the weights implicitly encode a preference and can hide Pareto tradeoffs.
- Constraint-based: maximize the primary objective subject to the others being bounded (e.g. maximize energy density subject to T_{\max} \leq 50\,^{\circ}\text{C}). Often more interpretable because the constraint thresholds map directly to design requirements.
Example: Maximizing Energy Density
This example illustrates the full workflow on a classic battery design problem.Problem description
Electrode thickness presents a fundamental design tradeoff:- Thicker electrodes increase capacity (more active material per unit area) but worsen rate capability because lithium must diffuse further
- Thinner electrodes improve power delivery but reduce total energy storage
Mathematical formulation
The optimization problem is: subject to: where is the positive electrode thickness, is the gravimetric energy density at end of discharge, is the maximum cell temperature during discharge, and is the temperature safety limit (e.g. ). The energy density is computed from the simulation as: where is voltage, is current, is the discharge end time, and is the cell mass.What the optimizer does
For each candidate thickness, a simulation is run and the metrics are evaluated:- The model solves the electrochemical equations to get , , etc.
- A point metric at extracts the final energy density
- An aggregation metric extracts the peak temperature
- The actions convert these into a cost: negative (for maximization) plus a penalty if
- The optimizer uses this cost to propose the next candidate