How refinery engineering becomes a framework for understanding markets, policy, and investment
A policy question that required understanding the industry
In 2015, the United States faced a question that seemed to invite a simple answer: would allowing more crude oil exports make fuel more expensive at home? EIAβs analysis found that removing restrictions could raise prices received by domestic crude producers while leaving gasoline prices unchanged or slightly lower. Understanding that result required looking inside the industry that turns crude into consumer fuels.
Our earlier discussion of NEMS and the crude export debate considered the analysisβs policy significance. Here, the focus is the modeling capability behind it: the Liquid Fuels Market Module, or LFMM, within the National Energy Modeling System (NEMS).
LFMM builds on the refineryβs operating problem and extends it to regional markets, trade, and investment. Its value becomes especially clear when a major change in resources, technology, or policy requires the industry to reconsider its assets. Historical trends alone cannot explain which adjustments are physically possible and economically worthwhile.
Putting joint production into equations

Figure 1. A simplified refinery connects multiple inputs, processing choices, and jointly produced fuels. Selected processes and products are shown; arrow widths do not represent quantities.
A refinery does not make gasoline, diesel, and jet fuel independently. Distillation separates crude into streams that can follow different processing routes. A hydrocracker, for example, consumes heavier oils and hydrogen and produces lighter streams for several fuels. Increasing that activity changes several input requirements and outputs together.
The model represents these connections as activities. Its economic objective is to minimize net costs of supplying specified demands, including purchases, processing, transport, and investment charges, with export revenues credited. Two simplified relationships capture the essential logic:
Here, x represents nonnegative quantities of supply, processing, blending, transport, and trade activities. The matrix A describes the materials each activity consumes and produces, while d specifies required net deliveries. For intermediate streams, the model requires production and use to balance. These relationships keep interconnected processing choices from being treated as independent decisions.
In the second relationship, U measures equipment use, K is existing capacity, and z represents nonnegative additions available in the period. More hydrocracking requires sufficient hydrocracker capacity. Other constraints govern product quality and policy requirements. Changing a flow means satisfying all the relationships it touches.
These are teaching equations, not the full LFMM formulation. In implementation, the coefficients and constraints carry the industry knowledge: yields, input requirements, operating limits, and feasible substitutions. Capacity decisions also require expected future returns and construction timing; an attractive operating margin cannot make new equipment immediately available.
Suppose diesel demand strengthens while gasoline demand weakens. The model cannot simply increase one output and erase the other. It must find a feasible combination of crude inputs, processing routes, blending, and trade. A hydrocracker may help, but it also needs hydrogen and produces other streams. The cost of meeting additional diesel demand depends on these connected adjustments.
From refinery operations to national investment decisions
Scaling this logic to the industry requires more than multiplying one refinery by national throughput. Regions have different crude supplies, equipment, transport connections, and markets. LFMM represents regional industry configurations, preserving processing relationships that determine which combinations can work. It does not reproduce every companyβs refinery or operating schedule.
The boundary also extends beyond crude oil. Refineries both produce and consume hydrocarbon gas liquids. They produce propane and propylene alongside major fuels, while using butanes to make gasoline and gasoline blendstocks. Natural gas processing supplies additional propane and butanes. Accounting for these flows connects industries that are often discussed separately. A stream leaving one process can become an input to another, competing with alternative uses.
NEMS adds market feedback. LFMM receives demands and supply conditions from other parts of the system and returns product prices. Consumers respond to those prices, and upstream production responds to its own economics. The integrated solution reconciles these responses.
Within LFMM, the optimization identifies marginal costs: the cost of supplying another unit given the systemβs constraints. Those values help explain price formation, but a retail fuel price also reflects distribution costs and taxes.
This makes the distinction between operations and investment consequential. Existing equipment limits todayβs choices. Expectations about future margins influence capacity additions. A change in crude quality or product demand can favor a different configuration of assets even when aggregate fuel consumption changes little.
What changes when an export constraint binds
Return to the crude export question. In the teaching formulation, restricting a trade activity limits where material can go while leaving the balance equations in force. Growing domestic crude supply must find another outlet: displace imports, enter additional processing, or face a price adjustment that discourages production.
Additional domestic processing can turn crude into products with different market outlets. But that route requires suitable equipment and adequate returns. The 2015 investment assumptions connect capacity expansion to expected economics. A deeper domestic crude discount can support additional processing investment. In the equations, the industry adjusts activities in x and, over time, available capacity through z.
EIAβs High Oil and Gas Resource case illustrates the resulting realignment. Removing restrictions raised projected crude production and crude exports, reduced product exports, and required less distillation capacity expansion. The gasoline price change was small.
Table 1. Illustrative 2025 projections from EIAβs 2015 High Oil and Gas Resource case, Table ES-1.
| Measure | Restrictions retained | Restrictions removed |
| U.S. crude production, million barrels per day | 13.63 | 14.10 |
| Total distillation capacity, million BPCD | 20.15 | 19.25 |
| Crude oil exports, million barrels per day | 1.20 | 3.64 |
| Petroleum product exports, million barrels per day | 7.64 | 5.88 |
| WTI price, 2013 dollars per barrel | $66.39 | $72.26 |
| Retail gasoline, 2013 dollars per gallon | $2.66 | $2.65 |
These are historical projections, not observed 2025 outcomes. BPCD means barrels per calendar day; capacity includes splitters and atmospheric distillation. Gasoline prices cover all grades and include taxes. Lower capacity here represents less expansion.
Why could the domestic crude price rise while gasoline edged lower? As EIA explained, U.S. product prices were connected to international markets. A higher domestic crude price could stimulate U.S. production. Unless offset elsewhere, additional supply would put downward pressure on world crude prices and, through them, product prices. That mechanism depends on NEMSβs broader market responses as well as refinery calculations.
The reportβs Reference and Low Oil Price cases showed no comparable production response. The lesson is conditional: consequences depend on whether a constraint binds and what adjustments it induces. The model makes those adjustments explicit, connecting a policy rule to operating choices, capital requirements, trade, and consumer prices.
The investment result is particularly revealing. A country can produce more crude while requiring less additional domestic refining capacity, because trade provides another route to market. That is the kind of structural adjustment a trend extrapolation can miss. Its explanation lies in the opportunities and constraints facing the connected industry.
Extending the same framework to biofuels
Biofuels extend this problem by introducing new feedstocks, conversion processes, coproducts, and investments. Ethanol enters gasoline blending. Biodiesel and renewable diesel have distinct production pathways and product characteristics. Representing them requires more than adding projected volumes to a petroleum supply balance.
Each pathway needs an account of its inputs, outputs, costs, and capacity. Some activities take place outside petroleum refineries but compete in the same fuel markets or draw on shared resources. New capacity must have access to feedstocks and outlets for its products. The same material balances that connect refinery units can connect these additional activities.
Policy adds economic and compliance relationships. A renewable fuel requirement can restrict acceptable production and blending combinations; an incentive can change their relative cost. Physical fuel volumes and compliance obligations need separate accounting. A policy credit does not create additional feedstock or conversion capacity.
The modeling task is therefore to connect a policyβs terms to feasible operating and investment choices. The resulting outlook can reveal which facilities and inputs become valuable, where constraints emerge, and how adjustments spread into markets serving consumers.
The next capital realignments: hydrogen and SAF
Hydrogen and sustainable aviation fuel (SAF) bring these questions into new investment decisions. Which assets are needed? Which inputs have competing uses? What prices and policies make expansion worthwhile?
The AEO2026 LFMM assumptions include a hydroprocessing pathway that jointly produces SAF and renewable diesel from oils and greases also used by other biofuel pathways. Its specified product mix is a modeling assumption. Expanding aviation fuel production therefore raises questions about companion outputs, feedstock competition, and the relative returns to alternative facilities.
Hydrogen adds another connection. In current NEMS, LFMM determines refinery hydrogen requirements, while the Hydrogen Market Module represents supply, including production investment and delivery infrastructure. Alternative production technologies, energy prices, and delivery costs can consequently affect the economics of liquid fuel production.
These are questions the framework can investigate, rather than results of a new scenario presented here. They return to the same organizing principle as the crude export analysis: when an industry faces structural change, its future depends on how physical assets and market incentives fit together. LFMM makes that relationship explicit. It connects what equipment can do with what markets reward, providing a disciplined basis for examining changes that may redirect capital and reshape established trends.
The LFMM provides a flexible framework for modeling refinery operations at the regional level. These examples show its utility in analyzing current policy issues and its adaptability for analyzing new questions as they arise.
What the Framework Makes Possible
The crude export case demonstrates the value of representing the industry as a connected system. A change in trade restrictions altered the economic choices facing producers and refiners, with consequences for production, investment, and fuel markets. Questions about biofuels, hydrogen, and sustainable aviation fuel show how the same analytical framework applies to emerging technologies and changing market conditions.
The enduring value of LFMM lies in connecting the physical capabilities of the liquid fuels industry with the economic incentives that shape its decisions. By representing production, processing, trade, and investment within a consistent framework, LFMM provides a disciplined way to examine how the industry might adapt to changes in technology, resources, demand, and policy. Rather than simply extending historical trends, it helps reveal the choices and constraints that shape possible futures.