Optimal control and coordination for physical systems
Differentiable simulators and learned policies for physical systems where linear proxies leave value on the table.
Real physics isn't a smooth convex bowl.
Finds the exact solution to an imperfect representation - linearizing physics and imposing strict rules on dynamics, distributions, and coupled systems.
Finds an imperfect solution to a near-exact representation - complementary to classical solvers, improvable through iterative training, with a testable optimum.
Local control over time, coordinated by signals in space.
Each policy optimizes control in its local domain over time and within hard limits.
Shadow price signals pass up and down the hierarchy so local decisions align with the global optimum.
Modular physics simulation with differentiability at its core.
Modular physics components run forward while exact gradients pass backward through time, replacing trial-and-error sampling.
Maps live system states and external drivers to control setpoints. Once trained, inference is immediate.
Updates control policies and constraint shadow prices (λ*) together so the system converges within hard physical limits.
For live advice, performance benchmarks, and system design.
Read live state tags and return recommended setpoints and sensitivities as operating conditions shift.
Where the operator outperforms the policy, refine the simulator; where the policy outperforms, improve operating procedures.
Treat physical design parameters as trainable variables alongside the control policy to size and configure systems before committing capital.
From simulator to sandboxed advisor.
Example: Removr / Honeywell direct air capture pilot.
Assembled a transient thermodynamic simulator with adsorption hysteresis and kinetics transients.
Trained the policy for 400M simulated hours (10,000 × 40,000h batches) across weather, power price, and CO₂ price regimes.
Demonstrated meaningful economic uplift against the default operating policy, then deployed on a sandboxed server advising the Honeywell control system.
Tested on physical systems that can be differentiated.
🌊 Hydropower dispatch
Convex proxy solvers (SDDP) must make simplifying assumptions on inflow distributions, price dynamics, and head dynamics.
Explores the non-convex surface across multiple end markets, arbitrary inflow volatility, and dynamic head. Extensible to load-based tariffs and coupled assets.
Discharge recommendations, sensitivities, and water values (∂V/∂W). Immediate inference.
💨 Direct air capture
Default fan-speed rules optimize only for stability, ignoring how capture economics vary with temperature, humidity, and power prices.
Optimizes fan speed for profit across weather and market regimes while maintaining stability bounds on changeover frequency and heat exchanger icing.
0-100% fan speed from four live tags: intake temperature (°C), relative humidity (%), power price (NOK/kWh), and CO₂ price (NOK/kg).
⚡ AC power grids
Zonal markets and DC approximations fail to price the four AC bottlenecks: voltage, reactive power, active power, and line load.
AC power flow and equilibrium solver computing nodal shadow prices and sensitivities - built with general autograd rather than hardcoded derivatives, so it integrates directly with other optimizations.
Nodal shadow prices, congestion sensitivities (∂loss / ∂control), and AC-feasible dispatch.
🏭 District heating
Coordinating waste incinerators, oil/electric boilers, and storage buffers against volatile power prices and peak-capacity tariffs.
Minimizes fuel and peak-tariff costs while meeting heat demand, using storage buffers optimally across daily and seasonal cycles.
Boiler and storage dispatch strategies.
The Hjarl thesis at a glance.
- 1 • WHY
- Real physics isn't a smooth convex bowl.Classical solvers find the exact solution to an imperfect representation.Hjarl finds an imperfect, improvable solution to a near-exact representation.
- 2 • WHAT
- Local control over time, coordinated by signals in space.Policies optimize each asset over time within hard operating limits,while shadow prices coordinate actions across bottlenecks.
- 3 • HOW
- Modular physics simulation with differentiability at its core.The simulator runs physics forward and passes exact gradients backward,while an equilibrium solver updates policies and shadow prices together.
- 4 • FOR WHOM
- For live advice, performance benchmarks, and system design.Advise or automate live operations and benchmark historical decisions.Train physical design parameters alongside control policies ahead of investments.
- 5 • WHEN
- From simulator to sandboxed advisor.Assemble a system simulator, calibrate external drivers, and train a policy,then benchmark against historical operations before deploying in a sandbox.
- 6 • WHERE
- Tested on physical systems that can be differentiated.Hydropower dispatch (Skagerak Energi) and direct air capture (Removr / Honeywell) pilots,plus AC power grid and district heating showcases.
Systems that can be simulated, have dynamics, distributions, or couplings that break convex proxies, and use continuous inputs and outputs.
A system walkthrough, historical data on external drivers, and a domain contact for Q&A.
Simulator assembly, scenario calibration, policy training, and offline benchmarking.
- 2000-05
- NTNU · M.Sc. Industrial Economics & Physics.Specialization in statistics and physics; master's thesis at the Norwegian Computing Center on copula theory (paper).
- 2005-08
- The Boston Consulting Group.Consultant.
- 2008-14
- SEB Enskilda Corporate Finance.Shipping & infra, director.
- 2014-19
- Nordic Capital.Private equity, director.
- 1988
- Gaming and tinkering.Got an Amiga in 1988.
- 2005
- Thesis on dependency structures.Realized that causality was vital to learning.
- 2007
- First differentiable simulator.Built to optimize gas flow in pipeline networks.
- 2015-19
- Nighttime AI researcher.Built CNN in 2015 (ResNet), LM in 2018 (BERT), custom CUDA kernels in 2019.
- 2020
- Founded Hjarl.A window to be part of solving learning.
* Optimal control is in pilot testing (hydropower, direct air capture); optimal signals is in R&D (AC grid showcase).