# What Is the Pooling Problem?

**The pooling problem is well-studied in the chemical process and petroleum industries. It is a generalization of a minimum cost network flow problem where products possess different specifications. The goal of solving a pooling problem is to find the lowest cost flow-rates in the network that satisfy the demands. In this essay, a mathematical model of a pooling problem, called the P-formulation [6], is studied and the different approaches to solve these types of problems are mentioned.**

**Introduction**

The pooling problem, which is a subproblem of wastewater networks, crude oil refinery planning, etc, is important because of the huge amount of money that can be saved by solving it to optimality. In a pooling problem, flow streams from different sources are mixed in intermediate tanks (pools) and blended again in the terminal points. At the pools and terminals, the quality of a mixture is given as the volume (weight) average of the qualities of the flow streams that go into them.

In the pooling problem, there are three types of tanks: **inputs** or sources, which are the tanks to store the raw materials, **pools**, which are the places to blend incoming flow streams and make new compositions, and **outputs** or terminals, which are the tanks to store the final products. According to the links among different tanks, pooling problems can be classified into three classes:

- Standard pooling problem: In this class there is no flow stream among the pools. It means that the flow streams are in the form of input-output, input-pool and pool-output; see Figure 1.
- Generalized pooling problem: In this class, the complexity of the pooling problem is increased by allowing flow streams between the pools.
- Extended pooling problem: In this class, the problem is to maximize the profit (minimize the cost) on a standard pooling problem network while complying with constraints on nonlinearly blending fuel qualities such as those in the Environmental Protection Agency (EPA) \textit{Title 40 Code of Federal Regulations Part 80.45}.

There are many equivalent mathematical formulations for a pooling problem, such as P-, Q-, PQ- and HYB- formulations, and all of them are formulated as a nonconvex (bilinear) problem, and consequently the problem can possibly have many local optima. These formulations vary in the way of representing specifications in the pools. For instance, in the Q-formulation the fraction of incoming flow to a pool that is contributed by an input is considered.

**P-Formulation**

For each arc , let be the cost of sending a unit flow on this arc. For each node, there is possibly a capacity restriction, which is a limit for sum of the incoming (outgoing) flows to a node. The capacity restriction is denoted by for each . Also, there are some specifications for the inputs, e.g. the sulfur concentrations in them, which are indexed by in a set of specifications with members. By letting be the flow from node to node , the restriction on that can be carried from to , and the concentration value of th specification in the pool , the P-formulation of a pooling problem can be written as the following optimization problem:

where and are the upper and lower bound of the th specification in output , and is the concentration of th specification in the input . Here is a short interpretation of the constraints:

(2): The pools are just for mixing the incoming flow streams, and nothing is stored in them. So, the total flow-rates going into any pool goes out from the pool.

(3), (4), (5): The inputs, outputs and pools are specific tanks. Hence, they have some capacity restriction in order to store a raw material or product, or to mix some flow streams.

(6): The links in the networks represent devices that carry flows from one unit to the others (for instances, pipes). So, this constraint is due to the capacity limits on these devices.

(7): The concentration of any specification in each pool is the average of the concentrations of the specification of the incoming flow streams. In other words, for the $k$th specification in the pool ,

(8), (9): As was mentioned, in addition to the pools, the flow streams are mixed in the outputs as well. Therefore, for each output and specification , the concentration is

But for the outputs, there are usually some restrictions on the concentration of each specification. These restrictions appear as lower and upper bounds. So,

More information about different formulations can be found in [5].

**Solution methods and softwares**

Despite the strong -hardness, which is proved in [2], much progress in solving small to moderate size instances to global optimality has been made from 1978 onward, when Harvely described the P-formulation and solved small standard pooling problems by a graphical view of them.

Regarding the solution of a pooling problem, there are many methods in the literature. In all methods, a lower and upper bound are proposed and a way of reducing the gap between them is studied. One way of getting a lower bound for a pooling problem is using convex relaxation, as done by Foulds et al. [4]. Moreover, Adhya et al. [1] introduce a Lagrangian approach to get a tighter lower bound for pooling problems. Recent work done by R. Misener et al. [8] uses a novel piecewise linear relaxation for the bilinear terms with a logarithmic number of binary terms; this is implemented to the software APOGEE in order to solve a pooling problem. The idea of relaxing bilinear terms is described here.

**McCormick envelope**

Assume that and are variables with given lower and upper bounds

Then, the following four inequalities are implied (Figure 2):

(1)

By substituting with a new variable , we replace a 3-dimensional surface

by the convex set

It is clear that , called the McCormick envelope [5], is a polytope and the surface lies in it.

In the pooling problem (1), it is clear by the structure that:

So, one can replace each that appears in (1) by its McCormick envelope to get a piecewise linear relaxation.

To make the McCormick envelope tighter, one can split the intervals and into many intervals and construct the McCormick envelope for each pair of intervals on and .

Furthermore, there is another software package, called GloMIQO [7], in which a pooling problem can be solved by generating tight convex relaxations, partitioning the search space, bounding the variables, and finding good feasible solutions.

**References**

[1] N. Adhya, M. Tawarmalani, and N. V. Sahinidis. A Lagrangian approach to the pooling problem. *Industrial & Engineering Chemistry Research*, 38(5):1956–1972, 1999.

[2] M. Alfaki. Models and solution methods for the pooling problem. *Ph.D. thesis, University of Bergen*, 2012.

[3] S. S. Dey and A. Gupte. Analysis of MILP techniques for the pooling problem. *Operations Research*, 63(2):412–427, 2015.

[4] L. R. Foulds, D. Haugland, and K. Jörnsten. A bilinear approach to the pooling problem. *Optimization*, 24(1-2):165–180, 1992.

[5] A. Gupte, Sh. Ahmed, S. S. Dey, and M. S. Cheon. Pooling problems: relaxations and discretizations. *Optimization Online*, 2013.

[6] C. A. Haverly. Studies of the behavior of recursion for the pooling problem. *ACM SIGMAP Bulletin*, (25):19–28, 1978.

[7] R. Misener and Ch. A. Floudas. Glo{MIQO}: Global mixed-integer quadratic optimizer. *J. of Global Optimization*, 57(1):3–50, 2013.

[8] R. Misener, J. P. Thompson, and Ch. A. Floudas. APOGEE: Global optimization of standard, generalized, and extended pooling problems via linear and logarithmic partitioning schemes. *Computers & Chemical Engineering*, 35(5):876–892, 2011.

*Text by: Amadreza Marandi*