Problem Complex flow-allocation problems are often easier to solve by decomposing them into several sequential optimization problems. Consider a flowing tank farm supplying four condensate stabilization units (CSUs), with two parallel lines at each unit. Downstream, high-pressure vent gas, stabilized condensate and NGL are processed by separate units whose capacities are lower than the combined capacity of all eight CSU lines.
Each CSU line can operate in three modes (the product slate remains the same, while product yields, flow destinations, and routing change):
1.
Normal mode — produces high-pressure vent gas, on-spec stabilized condensate, and NGL, which are routed to their respective downstream processing units.
2.
Stabilized-condensate-only mode — produces high-pressure vent gas and on-spec stabilized condensate, with the stabilized condensate routed through a pipeline to its downstream processing unit, while NGL is sent through a separate pipeline for processing at another refinery.
3.
Transition mode — produces high-pressure vent gas, stabilized condensate, and off-spec NGL. Neither the stabilized condensate nor NGL is sent to the downstream processing units; both are sent through a pipeline for processing at another refinery.
The optimization must determine how to allocate the incoming flow between CSU lines and which operating mode to assign to each line, while respecting downstream capacities and the available capacity of the upstream tank farm.
Solution Instead of solving all these decisions in a single optimization problem, decompose the task into three sequential steps:
- Normal operation. Determine the maximum number of CSU lines that can operate in normal mode and optimize their loading within the downstream capacity limits.
- Transition mode. If feed remains after Step 1, select an available CSU line and switch it to transition mode.
- Tank farm unloading. If flow still remains, distribute the remaining flow among available CSU lines to maximize the unloading rate of the tank farm.
This decomposition reduces the complexity of the optimization model by separating product-quality constraints, downstream capacity limits, operating modes, and tank farm unloading into manageable subproblems. In this formulation, Steps 1 and 3 are optimization problems, while Step 2 is a discrete mode-selection decision.