1. What is the purpose of linear programming in refinery flow allocation?
Linear programming is used to determine how an incoming feed flow should be optimally allocated between parallel process lines while satisfying their operating constraints and minimizing unaccepted flow.
2. Why is mixed-integer linear programming required?
Binary variables are needed to represent the operating state of each process line. A line can either remain idle or operate within its defined minimum and maximum throughput.
3. What constraints can be included in the optimization model?
The model can account for minimum and maximum line throughput, additional capacity limits, bypass flow constraints, line priorities, and operating states. It can also be extended to minimize the number of active lines.
4. What is unaccepted or residual flow?
Unaccepted flow is the portion of the incoming feed that cannot be processed by the available process lines under the current operating constraints and must therefore be diverted elsewhere.
5. When is the optimization problem solved in PRL?
The optimization can be triggered by a change in incoming flow, a change in the operating parameters of the process unit, or an explicit request from the user.
6. How is the optimization problem solved in Petroleum Refining Library?
PRL formulates the optimization problem and solves it using a built-in wrapper around the ojAlgo optimization solver.
7. What does the optimization return to the simulation model?
The solver returns the optimal flow assigned to each process line and the resulting unaccepted flow. These values are then applied directly to the simulation.
8. Can the optimization handle an arbitrary number of process lines?
Yes. The mathematical formulation can be generalized to (N) parallel process lines, with each line having its own operating limits, state variables, and priority parameters.
9. How does the optimization differ from a simple flow distribution rule?
Unlike a predefined distribution rule, the optimization evaluates the complete set of constraints and selects the best feasible combination of active lines and flow rates for the current operating conditions.
10. Can this approach be used in a refinery digital twin?
Yes. The combination of dynamic simulation and optimization is well suited to refinery digital twins, where the optimal operating decision may need to be recalculated as process conditions change.