Fuel Blending Properties in ProductMixer: Stream and Final Product Characteristics
where:
Similarly, the total residual flow is
If multiple residual destinations are available, ProductMixer automatically creates independent balance equations for each residual group. To evaluate volumetric product specifications, the algorithm also converts mass flows into volumetric contributions using component densities:
where is the density of component iii.
The total product volume is then computed as
These equations form the structural foundation of the blending model. Every feasible solution produced by the LP solver automatically satisfies the conservation of mass before product blending constraints are evaluated.
where:
where and are the minimum and maximum allowable specification limits.
Since the blending model is formulated as a linear programming problem, ProductMixer transforms these equations into an equivalent system of linear inequalities before passing them to the LP solver.
For product properties that may temporarily violate their target values, the model automatically introduces non-negative penalty variables: .
These variables quantify the deviation from the required specification and allow the optimization to continue even when a fully feasible solution does not exist.
To evaluate the overall solution quality, the individual penalties are combined into a global penalty measure:
where represents the priority assigned to the corresponding quality property.
By generating all blending constraints automatically from the current product specification and the available component properties, ProductMixer can adapt the blending model to changing feedstock composition and product requirements without modifying the mathematical formulation.
where
This objective is typically used when sufficient blending components are available and the primary goal is to maximize product yield while satisfying all quality specifications.
Minimum Residual Production
When minimizing valuable residual streams is the primary objective, the optimization minimizes the total residual flow:
where
If multiple residual destinations exist, ProductMixer can assign different priorities to each residual group.
Minimum Quality Deviation
When product specifications cannot all be satisfied simultaneously, the optimization minimizes the total quality deviation represented by the penalty variables:
or, more generally, .
This objective finds the solution with the smallest overall specification violation while preserving material balance and all technological constraints.
Lexicographic Optimization
In many refinery applications, multiple objectives must be optimized simultaneously. ProductMixer implements this using a weighted objective function that establishes a priority hierarchy between competing goals.A typical objective function is:
where
By selecting sufficiently different weight coefficients, the optimization behaves as a lexicographic solver, satisfying higher-priority objectives before considering lower-priority ones. This approach enables ProductMixer to solve a wide range of blend optimization problems using a single mathematical formulation while changing only the objective function according to the operational strategy.
As a result, the blending model is regenerated every time the process conditions change. No manual reformulation of the mathematical model is required. The overall workflow can be represented as
The generated LP model contains only linear equations and inequalities, allowing standard linear programming solvers to obtain an optimal solution efficiently even for large blending problems. Because the mathematical formulation is generated directly from the current simulation state, the optimization automatically adapts to:
- changing feedstock availability;- changing process topology.
This automatic model generation enables ProductMixer to operate as an optimization engine within a refinery digital twin, continuously recalculating optimal blending decisions as process conditions evolve.