https://optimization.cbe.cornell.edu/api.php?action=feedcontributions&user=Kha32&feedformat=atomCornell University Computational Optimization Open Textbook - Optimization Wiki - User contributions [en]2024-03-29T07:03:10ZUser contributionsMediaWiki 1.40.1https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=2524Set covering problem2020-12-13T20:35:17Z<p>Kha32: /* Introduction */</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. Given a collection of elements, the set covering problem aims to find the minimum number of sets that incorporate (cover) all of these elements. <ref name="one"> T. Grossman and A. Wool, [https://www.sciencedirect.com/science/article/abs/pii/S0377221796001610 "Computational experience with approximation algorithms for the set covering problem]," ''European Journal of Operational Research'', vol. 101, pp. 81-92, 1997. </ref><br />
<br />
The set covering problem importance has two main aspects: one is pedagogical, and the other is practical. <br />
<br />
First, because many greedy approximation methods have been proposed for this combinatorial problem, studying it gives insight into the use of approximation algorithms in solving NP-hard problems. Thus, it is a primal example in teaching computational algorithms. We present a preview of these methods in a later section, and we refer the interested reader to these references for a deeper discussion. <ref name="one" /> <ref name="seven"> P. Slavı́k, [https://www.sciencedirect.com/science/article/abs/pii/S0196677497908877 "A Tight Analysis of the Greedy Algorithm for Set Cover]," ''Journal of Algorithms,'', vol. 25, pp. 237-245, 1997. </ref> <ref name="nine"> T. Grossman and A. Wool, [https://www.sciencedirect.com/science/article/abs/pii/S0377221796001610 "What Is the Best Greedy-like Heuristic for the Weighted Set Covering Problem?]," ''Operations Research Letters'', vol. 44, pp. 366-369, 2016. </ref><br />
<br />
Second, many problems in different industries can be formulated as set covering problems. For example, scheduling machines to perform certain jobs can be thought of as covering the jobs. Picking the optimal location for a cell tower so that it covers the maximum number of customers is another set covering application. Moreover, this problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s. <ref name="two"> J. Rubin, [https://www.jstor.org/stable/25767684?seq=1 "A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling]," ''Transportation Science'', vol. 7, pp. 34-48, 1973. </ref><br />
<br />
== Problem formulation ==<br />
In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<br />
<br />
The mathematical formulation of the set covering problem is define as follows. We define U = {<math> u_i</math>, ….. <math> u_m</math>} as the universe of elements and S = {<math> s_1</math>, ….,<math> s_n</math>} as a collection of subsets such that <math> s_i</math> <math>\in</math>U and the union of <math> s_i</math> covers all elements in U (i.e. <math>\cup</math><math> s_i</math> = U ). Addionally, each set <math> s_i</math> must cover at least one element of U and has associated cost <math> c_i</math> such that <math> c_i > 0</math>. The objective is to find the minimum cost sub-collection of sets X <math>\in</math> S that covers all the elements in the universe U.<br />
<br />
== Integer linear program formulation ==<br />
An integer linear program (ILP) model can be formulated for the minimum set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math> y_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
'''Objective function'''<br />
<br />
minimize <math>\sum_{i=1}^n c_i y_i</math> <br />
<br />
'''Constraints '''<br />
<br />
<math> \sum_{i=1}^n a_{ij} y_i >= 1, \forall j= 1,....,m</math> <br />
<br />
<math> y_i \in \{0, 1\}, \forall i = 1,....,n</math> <br />
<br />
The objective function <math>\sum_{i=1}^n c_i y_i</math> is defined to minimize the number of subset <math> s_i</math> that cover all elements in the universe by minimizing their total cost. The first constraint implies that every element j in the universe U must be be covered where <math> a_{ij}</math>=1 if j <math>\in</math> <math> s_i</math> and 0 otherwise. The second constraint <math> y_i \in \{0, 1\} </math> indicates that the decision variables are binary.<br />
<br />
Set covering problems are significant NP-hard optimization problems, which implies that as the size of the problem increases, the computational time to solve the problem increases exponentially. Therefore, there exist approximation algorithms that can solve large scale problems in polynomial time with optimal or near-optimal solutions. One of the widely used approximation algorithms for set covering is the classical greedy algorithms. <ref name="seven" /><br />
<br />
== Approximation via LP relaxation and rounding ==<br />
<br />
== Greedy approximation algorithm ==<br />
Greedy algorithms can be used to approximate for optimal or near-optimal solutions for large scale set covering instances in polynomial solvable time. <ref name="seven" /> <ref name="nine" /> The greedy heuristics applies iterative process that, at each stage, select the largest number of uncovered elements in the universe <math> U </math>, and delete the uncovered elements, until all elements are covered. <ref name="ten"> V. Chvatal, [https://pubsonline.informs.org/doi/abs/10.1287/moor.4.3.233 "Greedy Heuristic for the Set-Covering Problem]," ''Mathematics of Operations Research'', vol. 4, pp. 233-235, 1979. </ref> Let <math> T </math> be the set that contain the covered elements, and <math> U </math> be the set that contain the elements of <math> Y </math> that still uncovered. At the beginning of the iteration, <math> T </math> is empty and all elements <math> Y \in U </math>. We iteratively select the set of <math> S </math> that covers the largest number of elements in <math> U </math> and add it to the covered elements in <math> T </math>. An example of this algorithm is presented below. <br />
<br />
'''Greedy algorithm for minimum set cover example: '''<br />
<br />
Step 0: <math> \quad </math> <math> T \in \Phi </math> <math> \quad \quad \quad \quad \quad </math> { <math> T </math> stores the covered elements }<br />
<br />
Step 1: <math> \quad </math> '''While''' <math> U \neq \Phi </math> '''do:''' <math> \quad </math> { <math> U </math> stores the uncovered elements <math> Y </math>}<br />
<br />
Step 2: <math> \quad \quad \quad </math> select <math> s_i \in S </math> that covers the highest number of elements in <math> U </math><br />
<br />
Step 3: <math> \quad \quad \quad </math> add <math> s_i </math> to <math> T </math><br />
<br />
Step 4: <math> \quad \quad \quad </math> remove <math> s_i </math> from <math> U </math><br />
<br />
Step 5: <math> \quad </math> '''End while''' <br />
<br />
Step 6: <math> \quad </math> '''Return''' <math> S </math><br />
<br />
==Numerical Example==<br />
Let’s consider a simple example where we assign cameras at different locations. Each location covers some areas of stadiums, and our goal is to put the least amount of cameras such that all areas of stadiums are covered. We have stadium areas from 1 to 15, and possible camera locations from 1 to 8.<br />
<br />
We are given that camera location 1 covers stadium areas {1,3,4,6,7}, camera location 2 covers stadium areas {4,7,8,12}, while the remaining camera locations and the stadium areas that the cameras can cover are given in table 1 below:<br />
{| class="wikitable"<br />
|+Table 1<br />
!Camera Location<br />
!Stadium Areas<br />
|-<br />
|1<br />
|1,3,4,6,7<br />
|-<br />
|2<br />
|4,7,8,12<br />
|-<br />
|3<br />
|2,5,9,11,13<br />
|-<br />
|4<br />
|1,2,14,15<br />
|-<br />
|5<br />
|3,6,10,12,14<br />
|-<br />
|6<br />
|8,14,15<br />
|-<br />
|7<br />
|1,2,6,11<br />
|-<br />
|8<br />
|1,2,4,6,8,12<br />
|}<br />
To reformulate the problem, we can list the stadium areas and the camera locations that cover each stadium area. For instance, stadium area 1 can be covered with camera location {1,4,7,8}, stadium area 2 can be covered with camera location {3,4,7,8}, while the rest are given in table 2 below:<br />
{| class="wikitable"<br />
|+Table 2<br />
!Stadium Area<br />
!Camera Location<br />
|-<br />
|1<br />
|1,4,7,8<br />
|-<br />
|2<br />
|3,4,7,8<br />
|-<br />
|3<br />
|1,5<br />
|-<br />
|4<br />
|1,2,8<br />
|-<br />
|5<br />
|3<br />
|-<br />
|6<br />
|1,5,7,8<br />
|-<br />
|7<br />
|1,2<br />
|-<br />
|8<br />
|2,6,8<br />
|-<br />
|9<br />
|3<br />
|-<br />
|10<br />
|5<br />
|-<br />
|11<br />
|3,7<br />
|-<br />
|12<br />
|2,5,8<br />
|-<br />
|13<br />
|3<br />
|-<br />
|14<br />
|4,5,6<br />
|-<br />
|15<br />
|4,6<br />
|}<br />
We can then represent the above information using binary values. If the stadium area <math>i</math> can be covered with camera location <math>j</math>, then we have <math>y_{ij} = 1</math>. If not,<math>y_{ij} = 0</math>. For instance, stadium area 1 is covered by camera location 1, so <math>y_{11} = 1</math>, while stadium area 1 is not covered by camera location 2, so <math>y_{12} = 0</math>. The binary variables <math>y_{ij}</math> values are given in the table below: <br />
{| class="wikitable"<br />
|+Table 3<br />
!<br />
!1<br />
!2<br />
!3<br />
!4<br />
!5<br />
!6<br />
!7<br />
!8<br />
|-<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|2<br />
|<br />
|<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|3<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|4<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|-<br />
|5<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|6<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|1<br />
|-<br />
|7<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|8<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|-<br />
|9<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|10<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|11<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|-<br />
|12<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|-<br />
|13<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|14<br />
|<br />
|<br />
|<br />
|1<br />
|1<br />
|1<br />
|<br />
|<br />
|-<br />
|15<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|<br />
|<br />
|}<br />
<br />
<br />
<br />
We introduce another binary variable <math>z_j</math> to indicate if a camera is installed at location <math>j</math>. <math>z_j = 1</math> if camera is installed at location <math>j</math>, while <math>z_j = 0</math> if not. <br />
<br />
Our objective is to minimize <math>\sum_{j=1}^8 z_j</math>. For each stadium, there’s a constraint that the stadium area <math>i</math> has to be covered by at least one camera location. For instance, for stadium area 1, we have <math>z_1 + z_4 + z_7 + z_8 \geqslant 1</math>, while for stadium 2, we have <math>z_3 + z_4 + z_7 + z_8 \geqslant 1</math>. All the 15 constraints that corresponds to 15 stadium areas are listed below:<br />
<br />
<br />
''Constraints 1 to 15:''<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>2. z_3 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>5. z_3 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>9. z_3 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>11. z_3 + z_7 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>13. z_3 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
From constraint {5,9,13}, we can obtain <math>z_3 = 1</math>. Thus we no longer need constraint 2 and 11 as they are satisfied when <math>z_3 = 1</math>. With <math>z_3 = 1</math> determined, the constraints left are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
Now if we take a look at constraint <math>10. z_5 \geqslant 1</math> so <math>z_5</math> shall equal to 1. As <math>z_5 = 1</math>, constraint {3,6,12,14} are satisfied no matter what other <math>z</math> values are taken. If we also take a look at constraint 7 and 4, if constraint 4 will be satisfied as long as constraint 7 is satisfied since <math>z</math> values are nonnegative, so constraint 4 is no longer needed. The remaining constraints are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
The next step is to focus on constraint 7 and 15. We can have at least 4 combinations of <math>z_1, z_2, z_4, z_6</math>values.<br />
<br />
<br />
<math>A: z_1 = 1, z_2 = 0, z_4 = 1, z_6 = 0</math><br />
<br />
<math>B: z_1 = 1, z_2 = 0, z_4 = 0, z_6 = 1</math><br />
<br />
<math>C: z_1 = 0, z_2 = 1, z_4 = 1, z_6 = 0</math><br />
<br />
<math>D: z_1 = 0, z_2 = 1, z_4 = 0, z_6 = 1</math><br />
<br />
<br />
We can then discuss each combination and determine <math>z_7, z_8</math>values for constraint 1 and 8 to be satisfied.<br />
<br />
<br />
Combination <math>A</math>: constraint 1 already satisfied, we need <math>z_8 = 1</math> to satisfy constraint 8.<br />
<br />
Combination <math>B</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>C</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>D</math>: we need <math>z_7 = 1</math> or <math>z_8 = 1</math> to satisfy constraint 1, while constraint 8 already satisfied.<br />
<br />
Our final step is to compare the four combinations. Since our objective is to minimize <math>\sum_{j=1}^8 z_j</math> and combinations <math>B</math> and <math>C</math> require the least amount of <math>z_j</math> to be 1, they are the optimal solutions.<br />
<br />
To conclude, our two solutions are:<br />
<br />
<math>Solution 1: z_1 = 1, z_3 = 1, z_5 = 1, z_6 = 1</math><br />
<br />
<math>Solution 2: z_2 = 1, z_3 = 1, z_4 = 1, z_5 = 1</math><br />
<br />
The minimum number of cameras that we need to install is 4.<br />
<br />
== Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
<br />
This set covering problems is concerned with maximizing the coverage of some public facilities placed at different locations. <ref name="three"> R. Church and C. ReVelle, [https://link.springer.com/article/10.1007/BF01942293 "The maximal covering location problem]," ''Papers of the Regional Science Association'', vol. 32, pp. 101-118, 1974. </ref> Consider the problem of placing fire stations to serve the towns of some city. <ref name="four"> E. Aktaş, Ö. Özaydın, B. Bozkaya, F. Ülengin, and Ş. Önsel, [https://pubsonline.informs.org/doi/10.1287/inte.1120.0671 "Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality]," ''Interfaces'', vol. 43, pp. 240-255, 2013. </ref> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city. <br />
<br />
Let <math> y_i </math> be the decision variable corresponding to choosing to build a fire station at town <math> i </math>. Let <math> S_i </math> be a subset of towns including town <math> i </math> and all its neighbors. The problem is then formulated as follows.<br />
<br />
minimize <math>\sum_{i=1}^n y_i</math> <br />
<br />
such that <math> \sum_{i\in S_i} y_i \geq 1, \forall i</math> <br />
<br />
A real-world case study involving optimizing fire station locations in Istanbul is analyzed in this reference. <ref name="four" /> The Istanbul municipality serves 790 subdistricts, which should all be covered by a fire station. Each subdistrict is considered covered if it has a neighboring district (a district at most 5 minutes away) that has a fire station. For detailed computational analysis, we refer the reader to the mentioned academic paper.<br />
; The optimal route selection problem<br />
<br />
Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to the scarcity of the physical sensors, the problem does not allow for placing a detector on every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem. <ref name="five"> J. Ali and V. Dyo, [https://www.scitepress.org/Link.aspx?doi=10.5220/0006469800830088 "Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach]," ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications'', pp. 83-88, 2017. </ref> <ref name="eleven"> P.H. Cruz Caminha , R. De Souza Couto , L.H. Maciel Kosmalski Costa , A. Fladenmuller , and M. Dias de Amorim, [https://www.mdpi.com/1424-8220/18/6/1976 "On the Coverage of Bus-Based Mobile Sensing]," ''Sensors'', 2018. </ref> Specifically, giving a collection of bus routes '''''R''''', where each route itself is divided into segments. Route <math> i </math> is denoted by <math> R_i </math>, and segment <math> j </math> is denoted by <math> S_j </math>. The segments of two different routes can overlap, and each segment is associated with a length <math> a_j </math>. The goal is then to select the routes that maximize the total covered distance.<br />
<br />
This is quite different from other applications because it results in a maximization formulation, rather than a minimization formulation. Suppose we want to use at most <math> k </math> different routes. We want to find <math> k </math> routes that maximize the length of of covered segments. Let <math> x_i </math> be the binary decision variable corresponding to selecting route <math> R_i </math>, and let <math> y_j </math> be the decision variable associated with covering segment <math> S_j </math>. Let us also denote the set of routes that cover segment <math> j </math> by <math> C_j </math>. The problem is then formulated as follows.<br />
<br />
<math><br />
\begin{align}<br />
\text{max} & ~~ \sum_{j} a_jy_j\\<br />
\text{s.t} & ~~ \sum_{i\in C_j} x_i \geq y_j \quad \forall j \\<br />
& ~~ \sum_{i} x_i = k \\ <br />
& ~~ x_i,y_{j} \in \{0,1\} \\<br />
\end{align}<br />
</math><br />
<br />
The work by Ali and Dyo explores a greedy approximation algorithm to solve an optimal selection problem including 713 bus routes in Greater London. <ref name="five" /> Using 14% of the routes only (100 routes), the greedy algorithm returns a solution that covers 25% of the segments in Greater London. For a details of the approximation algorithm and the world case study, we refer the reader to this reference. <ref name="five" /> For a significantly larger case study involving 5747 buses covering 5060km, we refer the reader to this academic article. <ref name="eleven" /><br />
;The airline crew scheduling problem<br />
<br />
An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts. <ref name="two" /> <ref name="six"> E. Marchiori and A. Steenbeek, [https://link.springer.com/chapter/10.1007/3-540-45561-2_36 "An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling]," ''Real-World Applications of Evolutionary Computing. EvoWorkshops 2000. Lecture Notes in Computer Science'', 2000. </ref> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights. Due to the complexity of airline schedules, this problem is usually divided into two subproblems: crew pairing and crew assignment. We refer the interested reader to this survey, which contains several problem instances with the number of flights ranging from 1013 to 7765 flights, for a detailed analysis of the formulation and algorithms that pertain to this significant application. <ref name="two" /> <ref name="eight"> A. Kasirzadeh, M. Saddoune, and F. Soumis [https://www.sciencedirect.com/science/article/pii/S2192437620300820?via%3Dihub "Airline crew scheduling: models, algorithms, and data sets]," ''EURO Journal on Transportation and Logistics'', vol. 6, pp. 111-137, 2017. </ref><br />
<br />
==Conclusion ==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
== References ==<br />
<references /></div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=2523Set covering problem2020-12-13T20:29:37Z<p>Kha32: restructured and standardized the references</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. Given a collection of elements, the set covering problem aims to find the minimum number of sets that incorporate (cover) all of these elements. <ref name="one"> T. Grossman and A. Wool, [https://www.sciencedirect.com/science/article/abs/pii/S0377221796001610 "Computational experience with approximation algorithms for the set covering problem]," ''European Journal of Operational Research'', vol. 101, pp. 81-92, 1997. </ref><br />
<br />
The set covering problem importance has two main aspects: one is pedagogical, and the other is practical. <br />
<br />
First, because many greedy approximation methods have been proposed for this combinatorial problem, studying it gives insight into the use of approximation algorithms in solving NP-hard problems. Thus, it is a primal example in teaching computational algorithms. We present a preview of these methods in a later section, and we refer the interested reader to these references for a deeper discussion. <ref name="one" /> <ref name="seven"> P. Slavı́k, [www.sciencedirect.com/science/article/pii/S016763771600047X "A Tight Analysis of the Greedy Algorithm for Set Cover]," ''Journal of Algorithms,'', vol. 25, pp. 237-245, 1997. </ref> <ref name="nine"> T. Grossman and A. Wool, [https://www.sciencedirect.com/science/article/abs/pii/S0377221796001610 "What Is the Best Greedy-like Heuristic for the Weighted Set Covering Problem?]," ''Operations Research Letters'', vol. 44, pp. 366-369, 2016. </ref><br />
<br />
Second, many problems in different industries can be formulated as set covering problems. For example, scheduling machines to perform certain jobs can be thought of as covering the jobs. Picking the optimal location for a cell tower so that it covers the maximum number of customers is another set covering application. Moreover, this problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s. <ref name="two"> J. Rubin, [https://www.jstor.org/stable/25767684?seq=1 "A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling]," ''Transportation Science'', vol. 7, pp. 34-48, 1973. </ref><br />
<br />
== Problem formulation ==<br />
In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<br />
<br />
The mathematical formulation of the set covering problem is define as follows. We define U = {<math> u_i</math>, ….. <math> u_m</math>} as the universe of elements and S = {<math> s_1</math>, ….,<math> s_n</math>} as a collection of subsets such that <math> s_i</math> <math>\in</math>U and the union of <math> s_i</math> covers all elements in U (i.e. <math>\cup</math><math> s_i</math> = U ). Addionally, each set <math> s_i</math> must cover at least one element of U and has associated cost <math> c_i</math> such that <math> c_i > 0</math>. The objective is to find the minimum cost sub-collection of sets X <math>\in</math> S that covers all the elements in the universe U.<br />
<br />
== Integer linear program formulation ==<br />
An integer linear program (ILP) model can be formulated for the minimum set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math> y_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
'''Objective function'''<br />
<br />
minimize <math>\sum_{i=1}^n c_i y_i</math> <br />
<br />
'''Constraints '''<br />
<br />
<math> \sum_{i=1}^n a_{ij} y_i >= 1, \forall j= 1,....,m</math> <br />
<br />
<math> y_i \in \{0, 1\}, \forall i = 1,....,n</math> <br />
<br />
The objective function <math>\sum_{i=1}^n c_i y_i</math> is defined to minimize the number of subset <math> s_i</math> that cover all elements in the universe by minimizing their total cost. The first constraint implies that every element j in the universe U must be be covered where <math> a_{ij}</math>=1 if j <math>\in</math> <math> s_i</math> and 0 otherwise. The second constraint <math> y_i \in \{0, 1\} </math> indicates that the decision variables are binary.<br />
<br />
Set covering problems are significant NP-hard optimization problems, which implies that as the size of the problem increases, the computational time to solve the problem increases exponentially. Therefore, there exist approximation algorithms that can solve large scale problems in polynomial time with optimal or near-optimal solutions. One of the widely used approximation algorithms for set covering is the classical greedy algorithms. <ref name="seven" /><br />
<br />
== Approximation via LP relaxation and rounding ==<br />
<br />
== Greedy approximation algorithm ==<br />
Greedy algorithms can be used to approximate for optimal or near-optimal solutions for large scale set covering instances in polynomial solvable time. <ref name="seven" /> <ref name="nine" /> The greedy heuristics applies iterative process that, at each stage, select the largest number of uncovered elements in the universe <math> U </math>, and delete the uncovered elements, until all elements are covered. <ref name="ten"> V. Chvatal, [https://pubsonline.informs.org/doi/abs/10.1287/moor.4.3.233 "Greedy Heuristic for the Set-Covering Problem]," ''Mathematics of Operations Research'', vol. 4, pp. 233-235, 1979. </ref> Let <math> T </math> be the set that contain the covered elements, and <math> U </math> be the set that contain the elements of <math> Y </math> that still uncovered. At the beginning of the iteration, <math> T </math> is empty and all elements <math> Y \in U </math>. We iteratively select the set of <math> S </math> that covers the largest number of elements in <math> U </math> and add it to the covered elements in <math> T </math>. An example of this algorithm is presented below. <br />
<br />
'''Greedy algorithm for minimum set cover example: '''<br />
<br />
Step 0: <math> \quad </math> <math> T \in \Phi </math> <math> \quad \quad \quad \quad \quad </math> { <math> T </math> stores the covered elements }<br />
<br />
Step 1: <math> \quad </math> '''While''' <math> U \neq \Phi </math> '''do:''' <math> \quad </math> { <math> U </math> stores the uncovered elements <math> Y </math>}<br />
<br />
Step 2: <math> \quad \quad \quad </math> select <math> s_i \in S </math> that covers the highest number of elements in <math> U </math><br />
<br />
Step 3: <math> \quad \quad \quad </math> add <math> s_i </math> to <math> T </math><br />
<br />
Step 4: <math> \quad \quad \quad </math> remove <math> s_i </math> from <math> U </math><br />
<br />
Step 5: <math> \quad </math> '''End while''' <br />
<br />
Step 6: <math> \quad </math> '''Return''' <math> S </math><br />
<br />
==Numerical Example==<br />
Let’s consider a simple example where we assign cameras at different locations. Each location covers some areas of stadiums, and our goal is to put the least amount of cameras such that all areas of stadiums are covered. We have stadium areas from 1 to 15, and possible camera locations from 1 to 8.<br />
<br />
We are given that camera location 1 covers stadium areas {1,3,4,6,7}, camera location 2 covers stadium areas {4,7,8,12}, while the remaining camera locations and the stadium areas that the cameras can cover are given in table 1 below:<br />
{| class="wikitable"<br />
|+Table 1<br />
!Camera Location<br />
!Stadium Areas<br />
|-<br />
|1<br />
|1,3,4,6,7<br />
|-<br />
|2<br />
|4,7,8,12<br />
|-<br />
|3<br />
|2,5,9,11,13<br />
|-<br />
|4<br />
|1,2,14,15<br />
|-<br />
|5<br />
|3,6,10,12,14<br />
|-<br />
|6<br />
|8,14,15<br />
|-<br />
|7<br />
|1,2,6,11<br />
|-<br />
|8<br />
|1,2,4,6,8,12<br />
|}<br />
To reformulate the problem, we can list the stadium areas and the camera locations that cover each stadium area. For instance, stadium area 1 can be covered with camera location {1,4,7,8}, stadium area 2 can be covered with camera location {3,4,7,8}, while the rest are given in table 2 below:<br />
{| class="wikitable"<br />
|+Table 2<br />
!Stadium Area<br />
!Camera Location<br />
|-<br />
|1<br />
|1,4,7,8<br />
|-<br />
|2<br />
|3,4,7,8<br />
|-<br />
|3<br />
|1,5<br />
|-<br />
|4<br />
|1,2,8<br />
|-<br />
|5<br />
|3<br />
|-<br />
|6<br />
|1,5,7,8<br />
|-<br />
|7<br />
|1,2<br />
|-<br />
|8<br />
|2,6,8<br />
|-<br />
|9<br />
|3<br />
|-<br />
|10<br />
|5<br />
|-<br />
|11<br />
|3,7<br />
|-<br />
|12<br />
|2,5,8<br />
|-<br />
|13<br />
|3<br />
|-<br />
|14<br />
|4,5,6<br />
|-<br />
|15<br />
|4,6<br />
|}<br />
We can then represent the above information using binary values. If the stadium area <math>i</math> can be covered with camera location <math>j</math>, then we have <math>y_{ij} = 1</math>. If not,<math>y_{ij} = 0</math>. For instance, stadium area 1 is covered by camera location 1, so <math>y_{11} = 1</math>, while stadium area 1 is not covered by camera location 2, so <math>y_{12} = 0</math>. The binary variables <math>y_{ij}</math> values are given in the table below: <br />
{| class="wikitable"<br />
|+Table 3<br />
!<br />
!1<br />
!2<br />
!3<br />
!4<br />
!5<br />
!6<br />
!7<br />
!8<br />
|-<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|2<br />
|<br />
|<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|3<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|4<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|-<br />
|5<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|6<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|1<br />
|-<br />
|7<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|8<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|-<br />
|9<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|10<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|11<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|-<br />
|12<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|-<br />
|13<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|14<br />
|<br />
|<br />
|<br />
|1<br />
|1<br />
|1<br />
|<br />
|<br />
|-<br />
|15<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|<br />
|<br />
|}<br />
<br />
<br />
<br />
We introduce another binary variable <math>z_j</math> to indicate if a camera is installed at location <math>j</math>. <math>z_j = 1</math> if camera is installed at location <math>j</math>, while <math>z_j = 0</math> if not. <br />
<br />
Our objective is to minimize <math>\sum_{j=1}^8 z_j</math>. For each stadium, there’s a constraint that the stadium area <math>i</math> has to be covered by at least one camera location. For instance, for stadium area 1, we have <math>z_1 + z_4 + z_7 + z_8 \geqslant 1</math>, while for stadium 2, we have <math>z_3 + z_4 + z_7 + z_8 \geqslant 1</math>. All the 15 constraints that corresponds to 15 stadium areas are listed below:<br />
<br />
<br />
''Constraints 1 to 15:''<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>2. z_3 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>5. z_3 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>9. z_3 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>11. z_3 + z_7 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>13. z_3 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
From constraint {5,9,13}, we can obtain <math>z_3 = 1</math>. Thus we no longer need constraint 2 and 11 as they are satisfied when <math>z_3 = 1</math>. With <math>z_3 = 1</math> determined, the constraints left are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
Now if we take a look at constraint <math>10. z_5 \geqslant 1</math> so <math>z_5</math> shall equal to 1. As <math>z_5 = 1</math>, constraint {3,6,12,14} are satisfied no matter what other <math>z</math> values are taken. If we also take a look at constraint 7 and 4, if constraint 4 will be satisfied as long as constraint 7 is satisfied since <math>z</math> values are nonnegative, so constraint 4 is no longer needed. The remaining constraints are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
The next step is to focus on constraint 7 and 15. We can have at least 4 combinations of <math>z_1, z_2, z_4, z_6</math>values.<br />
<br />
<br />
<math>A: z_1 = 1, z_2 = 0, z_4 = 1, z_6 = 0</math><br />
<br />
<math>B: z_1 = 1, z_2 = 0, z_4 = 0, z_6 = 1</math><br />
<br />
<math>C: z_1 = 0, z_2 = 1, z_4 = 1, z_6 = 0</math><br />
<br />
<math>D: z_1 = 0, z_2 = 1, z_4 = 0, z_6 = 1</math><br />
<br />
<br />
We can then discuss each combination and determine <math>z_7, z_8</math>values for constraint 1 and 8 to be satisfied.<br />
<br />
<br />
Combination <math>A</math>: constraint 1 already satisfied, we need <math>z_8 = 1</math> to satisfy constraint 8.<br />
<br />
Combination <math>B</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>C</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>D</math>: we need <math>z_7 = 1</math> or <math>z_8 = 1</math> to satisfy constraint 1, while constraint 8 already satisfied.<br />
<br />
Our final step is to compare the four combinations. Since our objective is to minimize <math>\sum_{j=1}^8 z_j</math> and combinations <math>B</math> and <math>C</math> require the least amount of <math>z_j</math> to be 1, they are the optimal solutions.<br />
<br />
To conclude, our two solutions are:<br />
<br />
<math>Solution 1: z_1 = 1, z_3 = 1, z_5 = 1, z_6 = 1</math><br />
<br />
<math>Solution 2: z_2 = 1, z_3 = 1, z_4 = 1, z_5 = 1</math><br />
<br />
The minimum number of cameras that we need to install is 4.<br />
<br />
== Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
<br />
This set covering problems is concerned with maximizing the coverage of some public facilities placed at different locations. <ref name="three"> R. Church and C. ReVelle, [https://link.springer.com/article/10.1007/BF01942293 "The maximal covering location problem]," ''Papers of the Regional Science Association'', vol. 32, pp. 101-118, 1974. </ref> Consider the problem of placing fire stations to serve the towns of some city. <ref name="four"> E. Aktaş, Ö. Özaydın, B. Bozkaya, F. Ülengin, and Ş. Önsel, [https://pubsonline.informs.org/doi/10.1287/inte.1120.0671 "Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality]," ''Interfaces'', vol. 43, pp. 240-255, 2013. </ref> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city. <br />
<br />
Let <math> y_i </math> be the decision variable corresponding to choosing to build a fire station at town <math> i </math>. Let <math> S_i </math> be a subset of towns including town <math> i </math> and all its neighbors. The problem is then formulated as follows.<br />
<br />
minimize <math>\sum_{i=1}^n y_i</math> <br />
<br />
such that <math> \sum_{i\in S_i} y_i \geq 1, \forall i</math> <br />
<br />
A real-world case study involving optimizing fire station locations in Istanbul is analyzed in this reference. <ref name="four" /> The Istanbul municipality serves 790 subdistricts, which should all be covered by a fire station. Each subdistrict is considered covered if it has a neighboring district (a district at most 5 minutes away) that has a fire station. For detailed computational analysis, we refer the reader to the mentioned academic paper.<br />
; The optimal route selection problem<br />
<br />
Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to the scarcity of the physical sensors, the problem does not allow for placing a detector on every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem. <ref name="five"> J. Ali and V. Dyo, [https://www.scitepress.org/Link.aspx?doi=10.5220/0006469800830088 "Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach]," ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications'', pp. 83-88, 2017. </ref> <ref name="eleven"> P.H. Cruz Caminha , R. De Souza Couto , L.H. Maciel Kosmalski Costa , A. Fladenmuller , and M. Dias de Amorim, [https://www.mdpi.com/1424-8220/18/6/1976 "On the Coverage of Bus-Based Mobile Sensing]," ''Sensors'', 2018. </ref> Specifically, giving a collection of bus routes '''''R''''', where each route itself is divided into segments. Route <math> i </math> is denoted by <math> R_i </math>, and segment <math> j </math> is denoted by <math> S_j </math>. The segments of two different routes can overlap, and each segment is associated with a length <math> a_j </math>. The goal is then to select the routes that maximize the total covered distance.<br />
<br />
This is quite different from other applications because it results in a maximization formulation, rather than a minimization formulation. Suppose we want to use at most <math> k </math> different routes. We want to find <math> k </math> routes that maximize the length of of covered segments. Let <math> x_i </math> be the binary decision variable corresponding to selecting route <math> R_i </math>, and let <math> y_j </math> be the decision variable associated with covering segment <math> S_j </math>. Let us also denote the set of routes that cover segment <math> j </math> by <math> C_j </math>. The problem is then formulated as follows.<br />
<br />
<math><br />
\begin{align}<br />
\text{max} & ~~ \sum_{j} a_jy_j\\<br />
\text{s.t} & ~~ \sum_{i\in C_j} x_i \geq y_j \quad \forall j \\<br />
& ~~ \sum_{i} x_i = k \\ <br />
& ~~ x_i,y_{j} \in \{0,1\} \\<br />
\end{align}<br />
</math><br />
<br />
The work by Ali and Dyo explores a greedy approximation algorithm to solve an optimal selection problem including 713 bus routes in Greater London. <ref name="five" /> Using 14% of the routes only (100 routes), the greedy algorithm returns a solution that covers 25% of the segments in Greater London. For a details of the approximation algorithm and the world case study, we refer the reader to this reference. <ref name="five" /> For a significantly larger case study involving 5747 buses covering 5060km, we refer the reader to this academic article. <ref name="eleven" /><br />
;The airline crew scheduling problem<br />
<br />
An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts. <ref name="two" /> <ref name="six"> E. Marchiori and A. Steenbeek, [https://link.springer.com/chapter/10.1007/3-540-45561-2_36 "An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling]," ''Real-World Applications of Evolutionary Computing. EvoWorkshops 2000. Lecture Notes in Computer Science'', 2000. </ref> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights. Due to the complexity of airline schedules, this problem is usually divided into two subproblems: crew pairing and crew assignment. We refer the interested reader to this survey, which contains several problem instances with the number of flights ranging from 1013 to 7765 flights, for a detailed analysis of the formulation and algorithms that pertain to this significant application. <ref name="two" /> <ref name="eight"> A. Kasirzadeh, M. Saddoune, and F. Soumis [https://www.sciencedirect.com/science/article/pii/S2192437620300820?via%3Dihub "Airline crew scheduling: models, algorithms, and data sets]," ''EURO Journal on Transportation and Logistics'', vol. 6, pp. 111-137, 2017. </ref><br />
<br />
==Conclusion ==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
== References ==<br />
<references /></div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=2506Set covering problem2020-12-13T18:29:21Z<p>Kha32: /* Applications */</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. Given a collection of elements, the set covering problem aims to find the minimum number of sets that incorporate (cover) all of these elements.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span> <br />
<br />
The set covering problem importance has two main aspects: one is pedagogical, and the other is practical. <br />
<br />
First, because many greedy approximation methods have been proposed for this combinatorial problem, studying it gives insight into the use of approximation algorithms in solving NP-hard problems. Thus, it is a primal example in teaching computational algorithms. We present a preview of these methods in a later section, and we refer the interested reader to these references for a deeper discussion.<sup>1,7,9</sup> <br />
<br />
Second, many problems in different industries can be formulated as set covering problems. For example, scheduling machines to perform certain jobs can be thought of as covering the jobs. Picking the optimal location for a cell tower so that it covers the maximum number of customers is another set covering application. Moreover, this problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span><br />
<br />
== Problem formulation ==<br />
In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<br />
<br />
The mathematical formulation of the set covering problem is define as follows. We define U = {<math> u_i</math>, ….. <math> u_m</math>} as the universe of elements and S = {<math> s_1</math>, ….,<math> s_n</math>} as a collection of subsets such that <math> s_i</math> <math>\in</math>U and the union of <math> s_i</math> covers all elements in U (i.e. <math>\cup</math><math> s_i</math> = U ). Addionally, each set <math> s_i</math> must cover at least one element of U and has associated cost <math> c_i</math> such that <math> c_i > 0</math>. The objective is to find the minimum cost sub-collection of sets X <math>\in</math> S that covers all the elements in the universe U.<br />
<br />
== Integer linear program formulation ==<br />
An integer linear program (ILP) model can be formulated for the minimum set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math> y_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
'''Objective function'''<br />
<br />
minimize <math>\sum_{i=1}^n c_i y_i</math> <br />
<br />
'''Constraints '''<br />
<br />
<math> \sum_{i=1}^n a_{ij} y_i >= 1, \forall j= 1,....,m</math> <br />
<br />
<math> y_i \in \{0, 1\}, \forall i = 1,....,n</math> <br />
<br />
The objective function <math>\sum_{i=1}^n c_i y_i</math> is defined to minimize the number of subset <math> s_i</math> that cover all elements in the universe by minimizing their total cost. The first constraint implies that every element j in the universe U must be be covered where <math> a_{ij}</math>=1 if j <math>\in</math> <math> s_i</math> and 0 otherwise. The second constraint <math> y_i \in \{0, 1\} </math> indicates that the decision variables are binary.<br />
<br />
Set covering problems are significant NP-hard optimization problems, which implies that as the size of the problem increases, the computational time to solve the problem increases exponentially. Therefore, there exist approximation algorithms that can solve large scale problems in polynomial time with optimal or near-optimal solutions. One of the widely used approximation algorithms for set covering is the classical greedy algorithms.<sup>7</sup><br />
<br />
== Approximation via LP relaxation and rounding ==<br />
<br />
== Greedy approximation algorithm ==<br />
Greedy algorithms can be used to approximate for optimal or near-optimal solutions for large scale set covering instances in polynomial solvable time.<sup>7,9</sup> The greedy heuristics applies iterative process that, at each stage, select the largest number of uncovered elements in the universe <math> U </math>, and delete the uncovered elements, until all elements are covered.<sup>10</sup> Let <math> T </math> be the set that contain the covered elements, and <math> U </math> be the set that contain the elements of <math> Y </math> that still uncovered. At the beginning of the iteration, <math> T </math> is empty and all elements <math> Y \in U </math>. We iteratively select the set of <math> S </math> that covers the largest number of elements in <math> U </math> and add it to the covered elements in <math> T </math>. An example of this algorithm is presented below. <br />
<br />
'''Greedy algorithm for minimum set cover example: '''<br />
<br />
Step 0: <math> \quad </math> <math> T \in \Phi </math> <math> \quad \quad \quad \quad \quad </math> { <math> T </math> stores the covered elements }<br />
<br />
Step 1: <math> \quad </math> '''While''' <math> U \neq \Phi </math> '''do:''' <math> \quad </math> { <math> U </math> stores the uncovered elements <math> Y </math>}<br />
<br />
Step 2: <math> \quad \quad \quad </math> select <math> s_i \in S </math> that covers the highest number of elements in <math> U </math><br />
<br />
Step 3: <math> \quad \quad \quad </math> add <math> s_i </math> to <math> T </math><br />
<br />
Step 4: <math> \quad \quad \quad </math> remove <math> s_i </math> from <math> U </math><br />
<br />
Step 5: <math> \quad </math> '''End while''' <br />
<br />
Step 6: <math> \quad </math> '''Return''' <math> S </math><br />
<br />
==Numerical Example==<br />
Let’s consider a simple example where we assign cameras at different locations. Each location covers some areas of stadiums, and our goal is to put the least amount of cameras such that all areas of stadiums are covered. We have stadium areas from 1 to 15, and possible camera locations from 1 to 8.<br />
<br />
We are given that camera location 1 covers stadium areas {1,3,4,6,7}, camera location 2 covers stadium areas {4,7,8,12}, while the remaining camera locations and the stadium areas that the cameras can cover are given in table 1 below:<br />
{| class="wikitable"<br />
|+Table 1<br />
!Camera Location<br />
!Stadium Areas<br />
|-<br />
|1<br />
|1,3,4,6,7<br />
|-<br />
|2<br />
|4,7,8,12<br />
|-<br />
|3<br />
|2,5,9,11,13<br />
|-<br />
|4<br />
|1,2,14,15<br />
|-<br />
|5<br />
|3,6,10,12,14<br />
|-<br />
|6<br />
|8,14,15<br />
|-<br />
|7<br />
|1,2,6,11<br />
|-<br />
|8<br />
|1,2,4,6,8,12<br />
|}<br />
To reformulate the problem, we can list the stadium areas and the camera locations that cover each stadium area. For instance, stadium area 1 can be covered with camera location {1,4,7,8}, stadium area 2 can be covered with camera location {3,4,7,8}, while the rest are given in table 2 below:<br />
{| class="wikitable"<br />
|+Table 2<br />
!Stadium Area<br />
!Camera Location<br />
|-<br />
|1<br />
|1,4,7,8<br />
|-<br />
|2<br />
|3,4,7,8<br />
|-<br />
|3<br />
|1,5<br />
|-<br />
|4<br />
|1,2,8<br />
|-<br />
|5<br />
|3<br />
|-<br />
|6<br />
|1,5,7,8<br />
|-<br />
|7<br />
|1,2<br />
|-<br />
|8<br />
|2,6,8<br />
|-<br />
|9<br />
|3<br />
|-<br />
|10<br />
|5<br />
|-<br />
|11<br />
|3,7<br />
|-<br />
|12<br />
|2,5,8<br />
|-<br />
|13<br />
|3<br />
|-<br />
|14<br />
|4,5,6<br />
|-<br />
|15<br />
|4,6<br />
|}<br />
We can then represent the above information using binary values. If the stadium area <math>i</math> can be covered with camera location <math>j</math>, then we have <math>y_{ij} = 1</math>. If not,<math>y_{ij} = 0</math>. For instance, stadium area 1 is covered by camera location 1, so <math>y_{11} = 1</math>, while stadium area 1 is not covered by camera location 2, so <math>y_{12} = 0</math>. The binary variables <math>y_{ij}</math> values are given in the table below: <br />
{| class="wikitable"<br />
|+Table 3<br />
!<br />
!1<br />
!2<br />
!3<br />
!4<br />
!5<br />
!6<br />
!7<br />
!8<br />
|-<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|2<br />
|<br />
|<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|3<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|4<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|-<br />
|5<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|6<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|1<br />
|-<br />
|7<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|8<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|-<br />
|9<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|10<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|11<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|-<br />
|12<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|-<br />
|13<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|14<br />
|<br />
|<br />
|<br />
|1<br />
|1<br />
|1<br />
|<br />
|<br />
|-<br />
|15<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|<br />
|<br />
|}<br />
<br />
<br />
<br />
We introduce another binary variable <math>z_j</math> to indicate if a camera is installed at location <math>j</math>. <math>z_j = 1</math> if camera is installed at location <math>j</math>, while <math>z_j = 0</math> if not. <br />
<br />
Our objective is to minimize <math>\sum_{j=1}^8 z_j</math>. For each stadium, there’s a constraint that the stadium area <math>i</math> has to be covered by at least one camera location. For instance, for stadium area 1, we have <math>z_1 + z_4 + z_7 + z_8 \geqslant 1</math>, while for stadium 2, we have <math>z_3 + z_4 + z_7 + z_8 \geqslant 1</math>. All the 15 constraints that corresponds to 15 stadium areas are listed below:<br />
<br />
<br />
''Constraints 1 to 15:''<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>2. z_3 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>5. z_3 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>9. z_3 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>11. z_3 + z_7 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>13. z_3 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
From constraint {5,9,13}, we can obtain <math>z_3 = 1</math>. Thus we no longer need constraint 2 and 11 as they are satisfied when <math>z_3 = 1</math>. With <math>z_3 = 1</math> determined, the constraints left are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
Now if we take a look at constraint <math>10. z_5 \geqslant 1</math> so <math>z_5</math> shall equal to 1. As <math>z_5 = 1</math>, constraint {3,6,12,14} are satisfied no matter what other <math>z</math> values are taken. If we also take a look at constraint 7 and 4, if constraint 4 will be satisfied as long as constraint 7 is satisfied since <math>z</math> values are nonnegative, so constraint 4 is no longer needed. The remaining constraints are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
The next step is to focus on constraint 7 and 15. We can have at least 4 combinations of <math>z_1, z_2, z_4, z_6</math>values.<br />
<br />
<br />
<math>A: z_1 = 1, z_2 = 0, z_4 = 1, z_6 = 0</math><br />
<br />
<math>B: z_1 = 1, z_2 = 0, z_4 = 0, z_6 = 1</math><br />
<br />
<math>C: z_1 = 0, z_2 = 1, z_4 = 1, z_6 = 0</math><br />
<br />
<math>D: z_1 = 0, z_2 = 1, z_4 = 0, z_6 = 1</math><br />
<br />
<br />
We can then discuss each combination and determine <math>z_7, z_8</math>values for constraint 1 and 8 to be satisfied.<br />
<br />
<br />
Combination <math>A</math>: constraint 1 already satisfied, we need <math>z_8 = 1</math> to satisfy constraint 8.<br />
<br />
Combination <math>B</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>C</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>D</math>: we need <math>z_7 = 1</math> or <math>z_8 = 1</math> to satisfy constraint 1, while constraint 8 already satisfied.<br />
<br />
Our final step is to compare the four combinations. Since our objective is to minimize <math>\sum_{j=1}^8 z_j</math> and combinations <math>B</math> and <math>C</math> require the least amount of <math>z_j</math> to be 1, they are the optimal solutions.<br />
<br />
To conclude, our two solutions are:<br />
<br />
<math>Solution 1: z_1 = 1, z_3 = 1, z_5 = 1, z_6 = 1</math><br />
<br />
<math>Solution 2: z_2 = 1, z_3 = 1, z_4 = 1, z_5 = 1</math><br />
<br />
The minimum number of cameras that we need to install is 4.<br />
<br />
== Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
<br />
This set covering problems is concerned with maximizing the coverage of some public facilities placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city. <br />
<br />
Let <math> y_i </math> be the decision variable corresponding to choosing to build a fire station at town <math> i </math>. Let <math> S_i </math> be a subset of towns including town <math> i </math> and all its neighbors. The problem is then formulated as follows.<br />
<br />
minimize <math>\sum_{i=1}^n y_i</math> <br />
<br />
such that <math> \sum_{i\in S_i} y_i \geq 1, \forall i</math> <br />
<br />
A real-world case study involving optimizing fire station locations in Istanbul is analyzed in this reference.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> The Istanbul municipality serves 790 subdistricts, which should all be covered by a fire station. Each subdistrict is considered covered if it has a neighboring district (a district at most 5 minutes away) that has a fire station. For detailed computational analysis, we refer the reader to the mentioned academic paper.<br />
; The optimal route selection problem<br />
<br />
Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to the scarcity of the physical sensors, the problem does not allow for placing a detector on every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Specifically, giving a collection of bus routes '''''R''''', where each route itself is divided into segments. Route <math> i </math> is denoted by <math> R_i </math>, and segment <math> j </math> is denoted by <math> S_j </math>. The segments of two different routes can overlap, and each segment is associated with a length <math> a_j </math>. The goal is then to select the routes that maximize the total covered distance.<br />
<br />
This is quite different from other applications because it results in a maximization formulation, rather than a minimization formulation. Suppose we want to use at most <math> k </math> different routes. We want to find <math> k </math> routes that maximize the length of of covered segments. Let <math> x_i </math> be the binary decision variable corresponding to selecting route <math> R_i </math>, and let <math> y_j </math> be the decision variable associated with covering segment <math> S_j </math>. Let us also denote the set of routes that cover segment <math> j </math> by <math> C_j </math>. The problem is then formulated as follows.<br />
<br />
<math><br />
\begin{align}<br />
\text{max} & ~~ \sum_{j} a_jy_j\\<br />
\text{s.t} & ~~ \sum_{i\in C_j} x_i \geq y_j \quad \forall j \\<br />
& ~~ \sum_{i} x_i = k \\ <br />
& ~~ x_i,y_{j} \in \{0,1\} \\<br />
\end{align}<br />
</math><br />
<br />
The work by Ali and Dyo explores a greedy approximation algorithm to solve an optimal selection problem including 713 bus routes in Greater London.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Using 14% of the routes only (100 routes), the greedy algorithm returns a solution that covers 25% of the segments in Greater London. For a details of the approximation algorithm and the world case study, we refer the reader to this reference.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> For a significantly larger case study involving 5747 buses covering 5060km, we refer the reader to this academic article.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">11</span><br />
;The airline crew scheduling problem<br />
<br />
An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts.<sup>2,6</sup> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights. Due to the complexity of airline schedules, this problem is usually divided into two subproblems: crew pairing and crew assignment. We refer the interested reader to this survey, which contains several problem instances with the number of flights ranging from 1013 to 7765 flights, for a detailed analysis of the formulation and algorithms that pertain to this significant application.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">8</span><br />
<br />
==Conclusion ==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#RUBIN, J. (1973). A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling. ''Transportation Science,'' ''7''(1), 34-48. Retrieved November 23, 2020, from http://www.jstor.org/stable/25767684<br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). https://doi.org/10.1007/BF01942293<br />
# Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088<br />
#Marchiori, E., & Steenbeek, A. (2000). An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling. ''EvoWorkshops''.<br />
# Petr Slavı́k. (1997). A Tight Analysis of the Greedy Algorithm for Set Cover. ''Journal of Algorithms,'', Volume 25, Issue 2, Pages 237-254 https://doi.org/10.1006/jagm.1997.0887.<br />
# Kasirzadeh, A., Saddoune, M. & Soumis, F. Airline crew scheduling: models, algorithms, and data sets. ''EURO J Transp Logist'' 6, 111–137 (2017). https://doi.org/10.1007/s13676-015-0080-x<br />
#Vasko, Francis J., et al. What Is the Best Greedy-like Heuristic for the Weighted Set Covering Problem? "Operations Research Letters", North-Holland, 22 Mar. 2016, www.sciencedirect.com/science/article/pii/S016763771600047X.<br />
#Chvatal, V. A Greedy Heuristic for the Set-Covering Problem. "Mathematics of Operations Research" Vol. 4, No. 3 (Aug., 1979), pp. 233-235</div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=2503Set covering problem2020-12-13T18:23:15Z<p>Kha32: /* Applications */</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. Given a collection of elements, the set covering problem aims to find the minimum number of sets that incorporate (cover) all of these elements.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span> <br />
<br />
The set covering problem importance has two main aspects: one is pedagogical, and the other is practical. <br />
<br />
First, because many greedy approximation methods have been proposed for this combinatorial problem, studying it gives insight into the use of approximation algorithms in solving NP-hard problems. Thus, it is a primal example in teaching computational algorithms. We present a preview of these methods in a later section, and we refer the interested reader to these references for a deeper discussion.<sup>1,7,9</sup> <br />
<br />
Second, many problems in different industries can be formulated as set covering problems. For example, scheduling machines to perform certain jobs can be thought of as covering the jobs. Picking the optimal location for a cell tower so that it covers the maximum number of customers is another set covering application. Moreover, this problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span><br />
<br />
== Problem formulation ==<br />
In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<br />
<br />
The mathematical formulation of the set covering problem is define as follows. We define U = {<math> u_i</math>, ….. <math> u_m</math>} as the universe of elements and S = {<math> s_1</math>, ….,<math> s_n</math>} as a collection of subsets such that <math> s_i</math> <math>\in</math>U and the union of <math> s_i</math> covers all elements in U (i.e. <math>\cup</math><math> s_i</math> = U ). Addionally, each set <math> s_i</math> must cover at least one element of U and has associated cost <math> c_i</math> such that <math> c_i > 0</math>. The objective is to find the minimum cost sub-collection of sets X <math>\in</math> S that covers all the elements in the universe U.<br />
<br />
== Integer linear program formulation ==<br />
An integer linear program (ILP) model can be formulated for the minimum set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math> y_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
'''Objective function'''<br />
<br />
minimize <math>\sum_{i=1}^n c_i y_i</math> <br />
<br />
'''Constraints '''<br />
<br />
<math> \sum_{i=1}^n a_{ij} y_i >= 1, \forall j= 1,....,m</math> <br />
<br />
<math> y_i \in \{0, 1\}, \forall i = 1,....,n</math> <br />
<br />
The objective function <math>\sum_{i=1}^n c_i y_i</math> is defined to minimize the number of subset <math> s_i</math> that cover all elements in the universe by minimizing their total cost. The first constraint implies that every element j in the universe U must be be covered where <math> a_{ij}</math>=1 if j <math>\in</math> <math> s_i</math> and 0 otherwise. The second constraint <math> y_i \in \{0, 1\} </math> indicates that the decision variables are binary.<br />
<br />
Set covering problems are significant NP-hard optimization problems, which implies that as the size of the problem increases, the computational time to solve the problem increases exponentially. Therefore, there exist approximation algorithms that can solve large scale problems in polynomial time with optimal or near-optimal solutions. One of the widely used approximation algorithms for set covering is the classical greedy algorithms.<sup>7</sup><br />
<br />
== Approximation via LP relaxation and rounding ==<br />
<br />
== Greedy approximation algorithm ==<br />
Greedy algorithms can be used to approximate for optimal or near-optimal solutions for large scale set covering instances in polynomial solvable time.<sup>7,9</sup> The greedy heuristics applies iterative process that, at each stage, select the largest number of uncovered elements in the universe <math> U </math>, and delete the uncovered elements, until all elements are covered.<sup>10</sup> Let <math> T </math> be the set that contain the covered elements, and <math> U </math> be the set that contain the elements of <math> Y </math> that still uncovered. At the beginning of the iteration, <math> T </math> is empty and all elements <math> Y \in U </math>. We iteratively select the set of <math> S </math> that covers the largest number of elements in <math> U </math> and add it to the covered elements in <math> T </math>. An example of this algorithm is presented below. <br />
<br />
'''Greedy algorithm for minimum set cover example: '''<br />
<br />
Step 0: <math> \quad </math> <math> T \in \Phi </math> <math> \quad \quad \quad \quad \quad </math> { <math> T </math> stores the covered elements }<br />
<br />
Step 1: <math> \quad </math> '''While''' <math> U \neq \Phi </math> '''do:''' <math> \quad </math> { <math> U </math> stores the uncovered elements <math> Y </math>}<br />
<br />
Step 2: <math> \quad \quad \quad </math> select <math> s_i \in S </math> that covers the highest number of elements in <math> U </math><br />
<br />
Step 3: <math> \quad \quad \quad </math> add <math> s_i </math> to <math> T </math><br />
<br />
Step 4: <math> \quad \quad \quad </math> remove <math> s_i </math> from <math> U </math><br />
<br />
Step 5: <math> \quad </math> '''End while''' <br />
<br />
Step 6: <math> \quad </math> '''Return''' <math> S </math><br />
<br />
==Numerical Example==<br />
Let’s consider a simple example where we assign cameras at different locations. Each location covers some areas of stadiums, and our goal is to put the least amount of cameras such that all areas of stadiums are covered. We have stadium areas from 1 to 15, and possible camera locations from 1 to 8.<br />
<br />
We are given that camera location 1 covers stadium areas {1,3,4,6,7}, camera location 2 covers stadium areas {4,7,8,12}, while the remaining camera locations and the stadium areas that the cameras can cover are given in table 1 below:<br />
{| class="wikitable"<br />
|+Table 1<br />
!Camera Location<br />
!Stadium Areas<br />
|-<br />
|1<br />
|1,3,4,6,7<br />
|-<br />
|2<br />
|4,7,8,12<br />
|-<br />
|3<br />
|2,5,9,11,13<br />
|-<br />
|4<br />
|1,2,14,15<br />
|-<br />
|5<br />
|3,6,10,12,14<br />
|-<br />
|6<br />
|8,14,15<br />
|-<br />
|7<br />
|1,2,6,11<br />
|-<br />
|8<br />
|1,2,4,6,8,12<br />
|}<br />
To reformulate the problem, we can list the stadium areas and the camera locations that cover each stadium area. For instance, stadium area 1 can be covered with camera location {1,4,7,8}, stadium area 2 can be covered with camera location {3,4,7,8}, while the rest are given in table 2 below:<br />
{| class="wikitable"<br />
|+Table 2<br />
!Stadium Area<br />
!Camera Location<br />
|-<br />
|1<br />
|1,4,7,8<br />
|-<br />
|2<br />
|3,4,7,8<br />
|-<br />
|3<br />
|1,5<br />
|-<br />
|4<br />
|1,2,8<br />
|-<br />
|5<br />
|3<br />
|-<br />
|6<br />
|1,5,7,8<br />
|-<br />
|7<br />
|1,2<br />
|-<br />
|8<br />
|2,6,8<br />
|-<br />
|9<br />
|3<br />
|-<br />
|10<br />
|5<br />
|-<br />
|11<br />
|3,7<br />
|-<br />
|12<br />
|2,5,8<br />
|-<br />
|13<br />
|3<br />
|-<br />
|14<br />
|4,5,6<br />
|-<br />
|15<br />
|4,6<br />
|}<br />
We can then represent the above information using binary values. If the stadium area <math>i</math> can be covered with camera location <math>j</math>, then we have <math>y_{ij} = 1</math>. If not,<math>y_{ij} = 0</math>. For instance, stadium area 1 is covered by camera location 1, so <math>y_{11} = 1</math>, while stadium area 1 is not covered by camera location 2, so <math>y_{12} = 0</math>. The binary variables <math>y_{ij}</math> values are given in the table below: <br />
{| class="wikitable"<br />
|+Table 3<br />
!<br />
!1<br />
!2<br />
!3<br />
!4<br />
!5<br />
!6<br />
!7<br />
!8<br />
|-<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|2<br />
|<br />
|<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|3<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|4<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|-<br />
|5<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|6<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|1<br />
|-<br />
|7<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|8<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|-<br />
|9<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|10<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|11<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|-<br />
|12<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|-<br />
|13<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|14<br />
|<br />
|<br />
|<br />
|1<br />
|1<br />
|1<br />
|<br />
|<br />
|-<br />
|15<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|<br />
|<br />
|}<br />
<br />
<br />
<br />
We introduce another binary variable <math>z_j</math> to indicate if a camera is installed at location <math>j</math>. <math>z_j = 1</math> if camera is installed at location <math>j</math>, while <math>z_j = 0</math> if not. <br />
<br />
Our objective is to minimize <math>\sum_{j=1}^8 z_j</math>. For each stadium, there’s a constraint that the stadium area <math>i</math> has to be covered by at least one camera location. For instance, for stadium area 1, we have <math>z_1 + z_4 + z_7 + z_8 \geqslant 1</math>, while for stadium 2, we have <math>z_3 + z_4 + z_7 + z_8 \geqslant 1</math>. All the 15 constraints that corresponds to 15 stadium areas are listed below:<br />
<br />
<br />
''Constraints 1 to 15:''<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>2. z_3 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>5. z_3 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>9. z_3 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>11. z_3 + z_7 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>13. z_3 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
From constraint {5,9,13}, we can obtain <math>z_3 = 1</math>. Thus we no longer need constraint 2 and 11 as they are satisfied when <math>z_3 = 1</math>. With <math>z_3 = 1</math> determined, the constraints left are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
Now if we take a look at constraint <math>10. z_5 \geqslant 1</math> so <math>z_5</math> shall equal to 1. As <math>z_5 = 1</math>, constraint {3,6,12,14} are satisfied no matter what other <math>z</math> values are taken. If we also take a look at constraint 7 and 4, if constraint 4 will be satisfied as long as constraint 7 is satisfied since <math>z</math> values are nonnegative, so constraint 4 is no longer needed. The remaining constraints are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
The next step is to focus on constraint 7 and 15. We can have at least 4 combinations of <math>z_1, z_2, z_4, z_6</math>values.<br />
<br />
<br />
<math>A: z_1 = 1, z_2 = 0, z_4 = 1, z_6 = 0</math><br />
<br />
<math>B: z_1 = 1, z_2 = 0, z_4 = 0, z_6 = 1</math><br />
<br />
<math>C: z_1 = 0, z_2 = 1, z_4 = 1, z_6 = 0</math><br />
<br />
<math>D: z_1 = 0, z_2 = 1, z_4 = 0, z_6 = 1</math><br />
<br />
<br />
We can then discuss each combination and determine <math>z_7, z_8</math>values for constraint 1 and 8 to be satisfied.<br />
<br />
<br />
Combination <math>A</math>: constraint 1 already satisfied, we need <math>z_8 = 1</math> to satisfy constraint 8.<br />
<br />
Combination <math>B</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>C</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>D</math>: we need <math>z_7 = 1</math> or <math>z_8 = 1</math> to satisfy constraint 1, while constraint 8 already satisfied.<br />
<br />
Our final step is to compare the four combinations. Since our objective is to minimize <math>\sum_{j=1}^8 z_j</math> and combinations <math>B</math> and <math>C</math> require the least amount of <math>z_j</math> to be 1, they are the optimal solutions.<br />
<br />
To conclude, our two solutions are:<br />
<br />
<math>Solution 1: z_1 = 1, z_3 = 1, z_5 = 1, z_6 = 1</math><br />
<br />
<math>Solution 2: z_2 = 1, z_3 = 1, z_4 = 1, z_5 = 1</math><br />
<br />
The minimum number of cameras that we need to install is 4.<br />
<br />
== Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
<br />
This set covering problems is concerned with maximizing the coverage of some public facilities placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city. <br />
<br />
Let <math> y_i </math> be the decision variable corresponding to choosing to build a fire station at town <math> i </math>. Let <math> S_i </math> be a subset of towns including town <math> i </math> and all its neighbors. The problem is then formulated as follows.<br />
<br />
minimize <math>\sum_{i=1}^n y_i</math> <br />
<br />
such that <math> \sum_{i\in S_i} y_i \geq 1, \forall i</math> <br />
<br />
A real-world case study involving optimizing fire station locations in Istanbul is analyzed in this reference.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> The Istanbul municipality serves 790 subdistricts, which should all be covered by a fire station. Each subdistrict is considered covered if it has a neighboring district (a district at most 5 minutes away) that has a fire station. For detailed computational analysis, we refer the reader to the mentioned academic paper.<br />
; The optimal route selection problem<br />
<br />
Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to the scarcity of the physical sensors, the problem does not allow for placing a detector on every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Specifically, giving a collection of bus routes '''''R''''', where each route itself is divided into segments. Route <math> i </math> is denoted by <math> R_i </math>, and segment <math> j </math> is denoted by <math> S_j </math>. The segments of two different routes can overlap, and each segment is associated with a length <math> a_j </math>. The goal is then to select the routes that maximize the total covered distance.<br />
<br />
This is quite different from other applications because it results in a maximization formulation, rather than a minimization formulation. Suppose we want to use at most <math> k </math> different routes. We want to find <math> k </math> routes that maximize the length of of covered segments. Let <math> x_i </math> be the binary decision variable corresponding to selecting route <math> R_i </math>, and let <math> y_j </math> be the decision variable associated with covering segment <math> S_j </math>. Let us also denote the set of routes that cover segment <math> j </math> by <math> C_j </math>. The problem is then formulated as follows.<br />
<br />
<math><br />
\begin{align}<br />
\text{max} & ~~ \sum_{j} a_jy_j\\<br />
\text{s.t} & ~~ \sum_{i\in C_j} x_i \geq y_j \quad \forall j \\<br />
& ~~ \sum_{i} x_i = k \\ <br />
& ~~ x_i,y_{j} \in \{0,1\} \\<br />
\end{align}<br />
</math><br />
<br />
The work by Ali and Dyo explores a greedy approximation algorithm to solve an optimal selection problem including 713 bus routes in Greater London.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Using 14% of the routes only (100 routes), the greedy algorithm returns a solution that covers 25% of the segments in Greater London. For a details of the approximation algorithm and the world case study, we refer the reader to this reference.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> For a significantly larger case study involving 5747 buses covering 5060km, we refer the reader to this academic article.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">11</span><br />
;The airline crew scheduling problem<br />
<br />
An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts.<sup>2,6</sup> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights. Due to the complexity of airline schedules, this problem is usually divided into two subproblems: crew pairing and crew assignment. We refer the interested reader to this survey for a detailed analysis of the formulation and algorithms that pertain to this significant application.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">8</span><br />
<br />
==Conclusion ==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#RUBIN, J. (1973). A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling. ''Transportation Science,'' ''7''(1), 34-48. Retrieved November 23, 2020, from http://www.jstor.org/stable/25767684<br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). https://doi.org/10.1007/BF01942293<br />
# Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088<br />
#Marchiori, E., & Steenbeek, A. (2000). An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling. ''EvoWorkshops''.<br />
# Petr Slavı́k. (1997). A Tight Analysis of the Greedy Algorithm for Set Cover. ''Journal of Algorithms,'', Volume 25, Issue 2, Pages 237-254 https://doi.org/10.1006/jagm.1997.0887.<br />
# Kasirzadeh, A., Saddoune, M. & Soumis, F. Airline crew scheduling: models, algorithms, and data sets. ''EURO J Transp Logist'' 6, 111–137 (2017). https://doi.org/10.1007/s13676-015-0080-x<br />
#Vasko, Francis J., et al. What Is the Best Greedy-like Heuristic for the Weighted Set Covering Problem? "Operations Research Letters", North-Holland, 22 Mar. 2016, www.sciencedirect.com/science/article/pii/S016763771600047X.<br />
#Chvatal, V. A Greedy Heuristic for the Set-Covering Problem. "Mathematics of Operations Research" Vol. 4, No. 3 (Aug., 1979), pp. 233-235</div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=2494Set covering problem2020-12-13T17:35:15Z<p>Kha32: /* Applications */</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. Given a collection of elements, the set covering problem aims to find the minimum number of sets that incorporate (cover) all of these elements.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span> <br />
<br />
The set covering problem importance has two main aspects: one is pedagogical, and the other is practical. <br />
<br />
First, because many greedy approximation methods have been proposed for this combinatorial problem, studying it gives insight into the use of approximation algorithms in solving NP-hard problems. Thus, it is a primal example in teaching computational algorithms. We present a preview of these methods in a later section, and we refer the interested reader to these references for a deeper discussion.<sup>1,7,9</sup> <br />
<br />
Second, many problems in different industries can be formulated as set covering problems. For example, scheduling machines to perform certain jobs can be thought of as covering the jobs. Picking the optimal location for a cell tower so that it covers the maximum number of customers is another set covering application. Moreover, this problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span><br />
<br />
== Problem formulation ==<br />
In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<br />
<br />
The mathematical formulation of the set covering problem is define as follows. We define U = {<math> u_i</math>, ….. <math> u_m</math>} as the universe of elements and S = {<math> s_1</math>, ….,<math> s_n</math>} as a collection of subsets such that <math> s_i</math> <math>\in</math>U and the union of <math> s_i</math> covers all elements in U (i.e. <math>\cup</math><math> s_i</math> = U ). Addionally, each set <math> s_i</math> must cover at least one element of U and has associated cost <math> c_i</math> such that <math> c_i > 0</math>. The objective is to find the minimum cost sub-collection of sets X <math>\in</math> S that covers all the elements in the universe U.<br />
<br />
== Integer linear program formulation ==<br />
An integer linear program (ILP) model can be formulated for the minimum set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math> y_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
'''Objective function'''<br />
<br />
minimize <math>\sum_{i=1}^n c_i y_i</math> <br />
<br />
'''Constraints '''<br />
<br />
<math> \sum_{i=1}^n a_{ij} y_i >= 1, \forall j= 1,....,m</math> <br />
<br />
<math> y_i \in \{0, 1\}, \forall i = 1,....,n</math> <br />
<br />
The objective function <math>\sum_{i=1}^n c_i y_i</math> is defined to minimize the number of subset <math> s_i</math> that cover all elements in the universe by minimizing their total cost. The first constraint implies that every element j in the universe U must be be covered where <math> a_{ij}</math>=1 if j <math>\in</math> <math> s_i</math> and 0 otherwise. The second constraint <math> y_i \in \{0, 1\} </math> indicates that the decision variables are binary.<br />
<br />
Set covering problems are significant NP-hard optimization problems, which implies that as the size of the problem increases, the computational time to solve the problem increases exponentially. Therefore, there exist approximation algorithms that can solve large scale problems in polynomial time with optimal or near-optimal solutions. One of the widely used approximation algorithms for set covering is the classical greedy algorithms.<sup>7</sup><br />
<br />
== Approximation via LP relaxation and rounding ==<br />
<br />
== Greedy approximation algorithm ==<br />
Greedy algorithms can be used to approximate for optimal or near-optimal solutions for large scale set covering instances in polynomial solvable time.<sup>7,9</sup> The greedy heuristics applies iterative process that, at each stage, select the largest number of uncovered elements in the universe <math> U </math>, and delete the uncovered elements, until all elements are covered.<sup>10</sup> Let <math> T </math> be the set that contain the covered elements, and <math> U </math> be the set that contain the elements of <math> Y </math> that still uncovered. At the beginning of the iteration, <math> T </math> is empty and all elements <math> Y \in U </math>. We iteratively select the set of <math> S </math> that covers the largest number of elements in <math> U </math> and add it to the covered elements in <math> T </math>. An example of this algorithm is presented below. <br />
<br />
'''Greedy algorithm for minimum set cover example: '''<br />
<br />
Step 0: <math> \quad </math> <math> T \in \Phi </math> <math> \quad \quad \quad \quad \quad </math> { <math> T </math> stores the covered elements }<br />
<br />
Step 1: <math> \quad </math> '''While''' <math> U \neq \Phi </math> '''do:''' <math> \quad </math> { <math> U </math> stores the uncovered elements <math> Y </math>}<br />
<br />
Step 2: <math> \quad \quad \quad </math> select <math> s_i \in S </math> that covers the highest number of elements in <math> U </math><br />
<br />
Step 3: <math> \quad \quad \quad </math> add <math> s_i </math> to <math> T </math><br />
<br />
Step 4: <math> \quad \quad \quad </math> remove <math> s_i </math> from <math> U </math><br />
<br />
Step 5: <math> \quad </math> '''End while''' <br />
<br />
Step 6: <math> \quad </math> '''Return''' <math> S </math><br />
<br />
==Numerical Example==<br />
Let’s consider a simple example where we assign cameras at different locations. Each location covers some areas of stadiums, and our goal is to put the least amount of cameras such that all areas of stadiums are covered. We have stadium areas from 1 to 15, and possible camera locations from 1 to 8.<br />
<br />
We are given that camera location 1 covers stadium areas {1,3,4,6,7}, camera location 2 covers stadium areas {4,7,8,12}, while the remaining camera locations and the stadium areas that the cameras can cover are given in table 1 below:<br />
{| class="wikitable"<br />
|+Table 1<br />
!Camera Location<br />
!Stadium Areas<br />
|-<br />
|1<br />
|1,3,4,6,7<br />
|-<br />
|2<br />
|4,7,8,12<br />
|-<br />
|3<br />
|2,5,9,11,13<br />
|-<br />
|4<br />
|1,2,14,15<br />
|-<br />
|5<br />
|3,6,10,12,14<br />
|-<br />
|6<br />
|8,14,15<br />
|-<br />
|7<br />
|1,2,6,11<br />
|-<br />
|8<br />
|1,2,4,6,8,12<br />
|}<br />
To reformulate the problem, we can list the stadium areas and the camera locations that cover each stadium area. For instance, stadium area 1 can be covered with camera location {1,4,7,8}, stadium area 2 can be covered with camera location {3,4,7,8}, while the rest are given in table 2 below:<br />
{| class="wikitable"<br />
|+Table 2<br />
!Stadium Area<br />
!Camera Location<br />
|-<br />
|1<br />
|1,4,7,8<br />
|-<br />
|2<br />
|3,4,7,8<br />
|-<br />
|3<br />
|1,5<br />
|-<br />
|4<br />
|1,2,8<br />
|-<br />
|5<br />
|3<br />
|-<br />
|6<br />
|1,5,7,8<br />
|-<br />
|7<br />
|1,2<br />
|-<br />
|8<br />
|2,6,8<br />
|-<br />
|9<br />
|3<br />
|-<br />
|10<br />
|5<br />
|-<br />
|11<br />
|3,7<br />
|-<br />
|12<br />
|2,5,8<br />
|-<br />
|13<br />
|3<br />
|-<br />
|14<br />
|4,5,6<br />
|-<br />
|15<br />
|4,6<br />
|}<br />
We can then represent the above information using binary values. If the stadium area <math>i</math> can be covered with camera location <math>j</math>, then we have <math>y_{ij} = 1</math>. If not,<math>y_{ij} = 0</math>. For instance, stadium area 1 is covered by camera location 1, so <math>y_{11} = 1</math>, while stadium area 1 is not covered by camera location 2, so <math>y_{12} = 0</math>. The binary variables <math>y_{ij}</math> values are given in the table below: <br />
{| class="wikitable"<br />
|+Table 3<br />
!<br />
!1<br />
!2<br />
!3<br />
!4<br />
!5<br />
!6<br />
!7<br />
!8<br />
|-<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|2<br />
|<br />
|<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|3<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|4<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|-<br />
|5<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|6<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|1<br />
|-<br />
|7<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|8<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|-<br />
|9<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|10<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|11<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|-<br />
|12<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|-<br />
|13<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|14<br />
|<br />
|<br />
|<br />
|1<br />
|1<br />
|1<br />
|<br />
|<br />
|-<br />
|15<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|<br />
|<br />
|}<br />
<br />
<br />
<br />
We introduce another binary variable <math>z_j</math> to indicate if a camera is installed at location <math>j</math>. <math>z_j = 1</math> if camera is installed at location <math>j</math>, while <math>z_j = 0</math> if not. <br />
<br />
Our objective is to minimize <math>\sum_{j=1}^8 z_j</math>. For each stadium, there’s a constraint that the stadium area <math>i</math> has to be covered by at least one camera location. For instance, for stadium area 1, we have <math>z_1 + z_4 + z_7 + z_8 \geqslant 1</math>, while for stadium 2, we have <math>z_3 + z_4 + z_7 + z_8 \geqslant 1</math>. All the 15 constraints that corresponds to 15 stadium areas are listed below:<br />
<br />
<br />
''Constraints 1 to 15:''<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>2. z_3 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>5. z_3 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>9. z_3 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>11. z_3 + z_7 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>13. z_3 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
From constraint {5,9,13}, we can obtain <math>z_3 = 1</math>. Thus we no longer need constraint 2 and 11 as they are satisfied when <math>z_3 = 1</math>. With <math>z_3 = 1</math> determined, the constraints left are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
Now if we take a look at constraint <math>10. z_5 \geqslant 1</math> so <math>z_5</math> shall equal to 1. As <math>z_5 = 1</math>, constraint {3,6,12,14} are satisfied no matter what other <math>z</math> values are taken. If we also take a look at constraint 7 and 4, if constraint 4 will be satisfied as long as constraint 7 is satisfied since <math>z</math> values are nonnegative, so constraint 4 is no longer needed. The remaining constraints are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
The next step is to focus on constraint 7 and 15. We can have at least 4 combinations of <math>z_1, z_2, z_4, z_6</math>values.<br />
<br />
<br />
<math>A: z_1 = 1, z_2 = 0, z_4 = 1, z_6 = 0</math><br />
<br />
<math>B: z_1 = 1, z_2 = 0, z_4 = 0, z_6 = 1</math><br />
<br />
<math>C: z_1 = 0, z_2 = 1, z_4 = 1, z_6 = 0</math><br />
<br />
<math>D: z_1 = 0, z_2 = 1, z_4 = 0, z_6 = 1</math><br />
<br />
<br />
We can then discuss each combination and determine <math>z_7, z_8</math>values for constraint 1 and 8 to be satisfied.<br />
<br />
<br />
Combination <math>A</math>: constraint 1 already satisfied, we need <math>z_8 = 1</math> to satisfy constraint 8.<br />
<br />
Combination <math>B</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>C</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>D</math>: we need <math>z_7 = 1</math> or <math>z_8 = 1</math> to satisfy constraint 1, while constraint 8 already satisfied.<br />
<br />
Our final step is to compare the four combinations. Since our objective is to minimize <math>\sum_{j=1}^8 z_j</math> and combinations <math>B</math> and <math>C</math> require the least amount of <math>z_j</math> to be 1, they are the optimal solutions.<br />
<br />
To conclude, our two solutions are:<br />
<br />
<math>Solution 1: z_1 = 1, z_3 = 1, z_5 = 1, z_6 = 1</math><br />
<br />
<math>Solution 2: z_2 = 1, z_3 = 1, z_4 = 1, z_5 = 1</math><br />
<br />
The minimum number of cameras that we need to install is 4.<br />
<br />
== Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
<br />
This set covering problems is concerned with maximizing the coverage of some public facilities placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city. <br />
<br />
Let <math> y_i </math> be the decision variable corresponding to choosing to build a fire station at town <math> i </math>. Let <math> S_i </math> be a subset of towns including town <math> i </math> and all its neighbors. The problem is then formulated as follows.<br />
<br />
minimize <math>\sum_{i=1}^n y_i</math> <br />
<br />
such that <math> \sum_{i\in S_i} y_i \geq 1, \forall i</math> <br />
; The optimal route selection problem<br />
<br />
Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to the scarcity of the physical sensors, the problem does not allow for placing a detector on every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Specifically, giving a collection of bus routes '''''R''''', where each route itself is divided into segments. Route <math> i </math> is denoted by <math> R_i </math>, and segment <math> j </math> is denoted by <math> S_j </math>. The segments of two different routes can overlap, and each segment is associated with a length <math> a_j </math>. The goal is then to select the routes that maximize the total covered distance.<br />
<br />
This is quite different from other applications because it results in a maximization formulation, rather than a minimization formulation. Suppose we want to use at most <math> k </math> different routes. We want to find <math> k </math> routes that maximize the length of of covered segments. Let <math> x_i </math> be the binary decision variable corresponding to selecting route <math> R_i </math>, and let <math> y_j </math> be the decision variable associated with covering segment <math> S_j </math>. Let us also denote the set of routes that cover segment <math> j </math> by <math> C_j </math>. The problem is then formulated as follows.<br />
<br />
<math><br />
\begin{align}<br />
\text{max} & ~~ \sum_{j} a_jy_j\\<br />
\text{s.t} & ~~ \sum_{i\in C_j} x_i \geq y_j \quad \forall j \\<br />
& ~~ \sum_{i} x_i = k \\ <br />
& ~~ x_i,y_{j} \in \{0,1\} \\<br />
\end{align}<br />
</math><br />
<br />
For a greedy approximation solution, please check the work by Ali and Dyo.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span><br />
.<br />
;The airline crew scheduling problem<br />
<br />
An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts.<sup>2,6</sup> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights. Due to the complexity of airline schedules, this problem is usually divided into two subproblems: crew pairing and crew assignment. We refer the interested reader to this survey for a detailed analysis of the formulation and algorithms that pertain to this significant application.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">8</span><br />
<br />
==Conclusion ==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#RUBIN, J. (1973). A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling. ''Transportation Science,'' ''7''(1), 34-48. Retrieved November 23, 2020, from http://www.jstor.org/stable/25767684<br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). https://doi.org/10.1007/BF01942293<br />
# Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088<br />
#Marchiori, E., & Steenbeek, A. (2000). An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling. ''EvoWorkshops''.<br />
# Petr Slavı́k. (1997). A Tight Analysis of the Greedy Algorithm for Set Cover. ''Journal of Algorithms,'', Volume 25, Issue 2, Pages 237-254 https://doi.org/10.1006/jagm.1997.0887.<br />
# Kasirzadeh, A., Saddoune, M. & Soumis, F. Airline crew scheduling: models, algorithms, and data sets. ''EURO J Transp Logist'' 6, 111–137 (2017). https://doi.org/10.1007/s13676-015-0080-x<br />
#Vasko, Francis J., et al. What Is the Best Greedy-like Heuristic for the Weighted Set Covering Problem? "Operations Research Letters", North-Holland, 22 Mar. 2016, www.sciencedirect.com/science/article/pii/S016763771600047X.<br />
#Chvatal, V. A Greedy Heuristic for the Set-Covering Problem. "Mathematics of Operations Research" Vol. 4, No. 3 (Aug., 1979), pp. 233-235</div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=2492Set covering problem2020-12-13T17:33:55Z<p>Kha32: /* Applications */</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. Given a collection of elements, the set covering problem aims to find the minimum number of sets that incorporate (cover) all of these elements.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span> <br />
<br />
The set covering problem importance has two main aspects: one is pedagogical, and the other is practical. <br />
<br />
First, because many greedy approximation methods have been proposed for this combinatorial problem, studying it gives insight into the use of approximation algorithms in solving NP-hard problems. Thus, it is a primal example in teaching computational algorithms. We present a preview of these methods in a later section, and we refer the interested reader to these references for a deeper discussion.<sup>1,7,9</sup> <br />
<br />
Second, many problems in different industries can be formulated as set covering problems. For example, scheduling machines to perform certain jobs can be thought of as covering the jobs. Picking the optimal location for a cell tower so that it covers the maximum number of customers is another set covering application. Moreover, this problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span><br />
<br />
== Problem formulation ==<br />
In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<br />
<br />
The mathematical formulation of the set covering problem is define as follows. We define U = {<math> u_i</math>, ….. <math> u_m</math>} as the universe of elements and S = {<math> s_1</math>, ….,<math> s_n</math>} as a collection of subsets such that <math> s_i</math> <math>\in</math>U and the union of <math> s_i</math> covers all elements in U (i.e. <math>\cup</math><math> s_i</math> = U ). Addionally, each set <math> s_i</math> must cover at least one element of U and has associated cost <math> c_i</math> such that <math> c_i > 0</math>. The objective is to find the minimum cost sub-collection of sets X <math>\in</math> S that covers all the elements in the universe U.<br />
<br />
== Integer linear program formulation ==<br />
An integer linear program (ILP) model can be formulated for the minimum set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math> y_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
'''Objective function'''<br />
<br />
minimize <math>\sum_{i=1}^n c_i y_i</math> <br />
<br />
'''Constraints '''<br />
<br />
<math> \sum_{i=1}^n a_{ij} y_i >= 1, \forall j= 1,....,m</math> <br />
<br />
<math> y_i \in \{0, 1\}, \forall i = 1,....,n</math> <br />
<br />
The objective function <math>\sum_{i=1}^n c_i y_i</math> is defined to minimize the number of subset <math> s_i</math> that cover all elements in the universe by minimizing their total cost. The first constraint implies that every element j in the universe U must be be covered where <math> a_{ij}</math>=1 if j <math>\in</math> <math> s_i</math> and 0 otherwise. The second constraint <math> y_i \in \{0, 1\} </math> indicates that the decision variables are binary.<br />
<br />
Set covering problems are significant NP-hard optimization problems, which implies that as the size of the problem increases, the computational time to solve the problem increases exponentially. Therefore, there exist approximation algorithms that can solve large scale problems in polynomial time with optimal or near-optimal solutions. One of the widely used approximation algorithms for set covering is the classical greedy algorithms.<sup>7</sup><br />
<br />
== Approximation via LP relaxation and rounding ==<br />
<br />
== Greedy approximation algorithm ==<br />
Greedy algorithms can be used to approximate for optimal or near-optimal solutions for large scale set covering instances in polynomial solvable time.<sup>7,9</sup> The greedy heuristics applies iterative process that, at each stage, select the largest number of uncovered elements in the universe <math> U </math>, and delete the uncovered elements, until all elements are covered.<sup>10</sup> Let <math> T </math> be the set that contain the covered elements, and <math> U </math> be the set that contain the elements of <math> Y </math> that still uncovered. At the beginning of the iteration, <math> T </math> is empty and all elements <math> Y \in U </math>. We iteratively select the set of <math> S </math> that covers the largest number of elements in <math> U </math> and add it to the covered elements in <math> T </math>. An example of this algorithm is presented below. <br />
<br />
'''Greedy algorithm for minimum set cover example: '''<br />
<br />
Step 0: <math> \quad </math> <math> T \in \Phi </math> <math> \quad \quad \quad \quad \quad </math> { <math> T </math> stores the covered elements }<br />
<br />
Step 1: <math> \quad </math> '''While''' <math> U \neq \Phi </math> '''do:''' <math> \quad </math> { <math> U </math> stores the uncovered elements <math> Y </math>}<br />
<br />
Step 2: <math> \quad \quad \quad </math> select <math> s_i \in S </math> that covers the highest number of elements in <math> U </math><br />
<br />
Step 3: <math> \quad \quad \quad </math> add <math> s_i </math> to <math> T </math><br />
<br />
Step 4: <math> \quad \quad \quad </math> remove <math> s_i </math> from <math> U </math><br />
<br />
Step 5: <math> \quad </math> '''End while''' <br />
<br />
Step 6: <math> \quad </math> '''Return''' <math> S </math><br />
<br />
==Numerical Example==<br />
Let’s consider a simple example where we assign cameras at different locations. Each location covers some areas of stadiums, and our goal is to put the least amount of cameras such that all areas of stadiums are covered. We have stadium areas from 1 to 15, and possible camera locations from 1 to 8.<br />
<br />
We are given that camera location 1 covers stadium areas {1,3,4,6,7}, camera location 2 covers stadium areas {4,7,8,12}, while the remaining camera locations and the stadium areas that the cameras can cover are given in table 1 below:<br />
{| class="wikitable"<br />
|+Table 1<br />
!Camera Location<br />
!Stadium Areas<br />
|-<br />
|1<br />
|1,3,4,6,7<br />
|-<br />
|2<br />
|4,7,8,12<br />
|-<br />
|3<br />
|2,5,9,11,13<br />
|-<br />
|4<br />
|1,2,14,15<br />
|-<br />
|5<br />
|3,6,10,12,14<br />
|-<br />
|6<br />
|8,14,15<br />
|-<br />
|7<br />
|1,2,6,11<br />
|-<br />
|8<br />
|1,2,4,6,8,12<br />
|}<br />
To reformulate the problem, we can list the stadium areas and the camera locations that cover each stadium area. For instance, stadium area 1 can be covered with camera location {1,4,7,8}, stadium area 2 can be covered with camera location {3,4,7,8}, while the rest are given in table 2 below:<br />
{| class="wikitable"<br />
|+Table 2<br />
!Stadium Area<br />
!Camera Location<br />
|-<br />
|1<br />
|1,4,7,8<br />
|-<br />
|2<br />
|3,4,7,8<br />
|-<br />
|3<br />
|1,5<br />
|-<br />
|4<br />
|1,2,8<br />
|-<br />
|5<br />
|3<br />
|-<br />
|6<br />
|1,5,7,8<br />
|-<br />
|7<br />
|1,2<br />
|-<br />
|8<br />
|2,6,8<br />
|-<br />
|9<br />
|3<br />
|-<br />
|10<br />
|5<br />
|-<br />
|11<br />
|3,7<br />
|-<br />
|12<br />
|2,5,8<br />
|-<br />
|13<br />
|3<br />
|-<br />
|14<br />
|4,5,6<br />
|-<br />
|15<br />
|4,6<br />
|}<br />
We can then represent the above information using binary values. If the stadium area <math>i</math> can be covered with camera location <math>j</math>, then we have <math>y_{ij} = 1</math>. If not,<math>y_{ij} = 0</math>. For instance, stadium area 1 is covered by camera location 1, so <math>y_{11} = 1</math>, while stadium area 1 is not covered by camera location 2, so <math>y_{12} = 0</math>. The binary variables <math>y_{ij}</math> values are given in the table below: <br />
{| class="wikitable"<br />
|+Table 3<br />
!<br />
!1<br />
!2<br />
!3<br />
!4<br />
!5<br />
!6<br />
!7<br />
!8<br />
|-<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|2<br />
|<br />
|<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|3<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|4<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|-<br />
|5<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|6<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|1<br />
|-<br />
|7<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|8<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|-<br />
|9<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|10<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|11<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|-<br />
|12<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|-<br />
|13<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|14<br />
|<br />
|<br />
|<br />
|1<br />
|1<br />
|1<br />
|<br />
|<br />
|-<br />
|15<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|<br />
|<br />
|}<br />
<br />
<br />
<br />
We introduce another binary variable <math>z_j</math> to indicate if a camera is installed at location <math>j</math>. <math>z_j = 1</math> if camera is installed at location <math>j</math>, while <math>z_j = 0</math> if not. <br />
<br />
Our objective is to minimize <math>\sum_{j=1}^8 z_j</math>. For each stadium, there’s a constraint that the stadium area <math>i</math> has to be covered by at least one camera location. For instance, for stadium area 1, we have <math>z_1 + z_4 + z_7 + z_8 \geqslant 1</math>, while for stadium 2, we have <math>z_3 + z_4 + z_7 + z_8 \geqslant 1</math>. All the 15 constraints that corresponds to 15 stadium areas are listed below:<br />
<br />
<br />
''Constraints 1 to 15:''<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>2. z_3 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>5. z_3 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>9. z_3 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>11. z_3 + z_7 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>13. z_3 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
From constraint {5,9,13}, we can obtain <math>z_3 = 1</math>. Thus we no longer need constraint 2 and 11 as they are satisfied when <math>z_3 = 1</math>. With <math>z_3 = 1</math> determined, the constraints left are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
Now if we take a look at constraint <math>10. z_5 \geqslant 1</math> so <math>z_5</math> shall equal to 1. As <math>z_5 = 1</math>, constraint {3,6,12,14} are satisfied no matter what other <math>z</math> values are taken. If we also take a look at constraint 7 and 4, if constraint 4 will be satisfied as long as constraint 7 is satisfied since <math>z</math> values are nonnegative, so constraint 4 is no longer needed. The remaining constraints are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
The next step is to focus on constraint 7 and 15. We can have at least 4 combinations of <math>z_1, z_2, z_4, z_6</math>values.<br />
<br />
<br />
<math>A: z_1 = 1, z_2 = 0, z_4 = 1, z_6 = 0</math><br />
<br />
<math>B: z_1 = 1, z_2 = 0, z_4 = 0, z_6 = 1</math><br />
<br />
<math>C: z_1 = 0, z_2 = 1, z_4 = 1, z_6 = 0</math><br />
<br />
<math>D: z_1 = 0, z_2 = 1, z_4 = 0, z_6 = 1</math><br />
<br />
<br />
We can then discuss each combination and determine <math>z_7, z_8</math>values for constraint 1 and 8 to be satisfied.<br />
<br />
<br />
Combination <math>A</math>: constraint 1 already satisfied, we need <math>z_8 = 1</math> to satisfy constraint 8.<br />
<br />
Combination <math>B</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>C</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>D</math>: we need <math>z_7 = 1</math> or <math>z_8 = 1</math> to satisfy constraint 1, while constraint 8 already satisfied.<br />
<br />
Our final step is to compare the four combinations. Since our objective is to minimize <math>\sum_{j=1}^8 z_j</math> and combinations <math>B</math> and <math>C</math> require the least amount of <math>z_j</math> to be 1, they are the optimal solutions.<br />
<br />
To conclude, our two solutions are:<br />
<br />
<math>Solution 1: z_1 = 1, z_3 = 1, z_5 = 1, z_6 = 1</math><br />
<br />
<math>Solution 2: z_2 = 1, z_3 = 1, z_4 = 1, z_5 = 1</math><br />
<br />
The minimum number of cameras that we need to install is 4.<br />
<br />
== Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
<br />
This set covering problems is concerned with maximizing the coverage of some public facilities placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city. <br />
<br />
Let <math> y_i </math> be the decision variable corresponding to choosing to build a fire station at town <math> i </math>. Let <math> S_i </math> be a subset of towns including town <math> i </math> and all its neighbors. The problem is then formulated as follows.<br />
<br />
minimize <math>\sum_{i=1}^n y_i</math> <br />
<br />
such that <math> \sum_{i\in S_i} y_i >= 1, \forall i</math> <br />
; The optimal route selection problem<br />
<br />
Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to the scarcity of the physical sensors, the problem does not allow for placing a detector on every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Specifically, giving a collection of bus routes '''''R''''', where each route itself is divided into segments. Route <math> i </math> is denoted by <math> R_i </math>, and segment <math> j </math> is denoted by <math> S_j </math>. The segments of two different routes can overlap, and each segment is associated with a length <math> a_j </math>. The goal is then to select the routes that maximize the total covered distance.<br />
<br />
This is quite different from other applications because it results in a maximization formulation, rather than a minimization formulation. Suppose we want to use at most <math> k </math> different routes. We want to find <math> k </math> routes that maximize the length of of covered segments. Let <math> x_i </math> be the binary decision variable corresponding to selecting route <math> R_i </math>, and let <math> y_j </math> be the decision variable associated with covering segment <math> S_j </math>. Let us also denote the set of routes that cover segment <math> j </math> by <math> C_j </math>. The problem is then formulated as follows.<br />
<br />
<math><br />
\begin{align}<br />
\text{max} & ~~ \sum_{j} a_jy_j\\<br />
\text{s.t} & ~~ \sum_{i\in C_j} x_i \geq y_j \quad \forall j \\<br />
& ~~ \sum_{i} x_i = k \\ <br />
& ~~ x_i,y_{j} \in \{0,1\} \\<br />
\end{align}<br />
</math><br />
<br />
For a greedy approximation solution, please check the work by Ali and Dyo.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span><br />
.<br />
;The airline crew scheduling problem<br />
<br />
An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts.<sup>2,6</sup> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights. Due to the complexity of airline schedules, this problem is usually divided into two subproblems: crew pairing and crew assignment. We refer the interested reader to this survey for a detailed analysis of the formulation and algorithms that pertain to this significant application.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">8</span><br />
<br />
==Conclusion ==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#RUBIN, J. (1973). A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling. ''Transportation Science,'' ''7''(1), 34-48. Retrieved November 23, 2020, from http://www.jstor.org/stable/25767684<br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). https://doi.org/10.1007/BF01942293<br />
# Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088<br />
#Marchiori, E., & Steenbeek, A. (2000). An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling. ''EvoWorkshops''.<br />
# Petr Slavı́k. (1997). A Tight Analysis of the Greedy Algorithm for Set Cover. ''Journal of Algorithms,'', Volume 25, Issue 2, Pages 237-254 https://doi.org/10.1006/jagm.1997.0887.<br />
# Kasirzadeh, A., Saddoune, M. & Soumis, F. Airline crew scheduling: models, algorithms, and data sets. ''EURO J Transp Logist'' 6, 111–137 (2017). https://doi.org/10.1007/s13676-015-0080-x<br />
#Vasko, Francis J., et al. What Is the Best Greedy-like Heuristic for the Weighted Set Covering Problem? "Operations Research Letters", North-Holland, 22 Mar. 2016, www.sciencedirect.com/science/article/pii/S016763771600047X.<br />
#Chvatal, V. A Greedy Heuristic for the Set-Covering Problem. "Mathematics of Operations Research" Vol. 4, No. 3 (Aug., 1979), pp. 233-235</div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=2487Set covering problem2020-12-13T17:00:58Z<p>Kha32: /* Introduction */</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. Given a collection of elements, the set covering problem aims to find the minimum number of sets that incorporate (cover) all of these elements.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span> <br />
<br />
The set covering problem importance has two main aspects: one is pedagogical, and the other is practical. <br />
<br />
First, because many greedy approximation methods have been proposed for this combinatorial problem, studying it gives insight into the use of approximation algorithms in solving NP-hard problems. Thus, it is a primal example in teaching computational algorithms. We present a preview of these methods in a later section, and we refer the interested reader to these references for a deeper discussion.<sup>1,7,9</sup> <br />
<br />
Second, many problems in different industries can be formulated as set covering problems. For example, scheduling machines to perform certain jobs can be thought of as covering the jobs. Picking the optimal location for a cell tower so that it covers the maximum number of customers is another set covering application. Moreover, this problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span><br />
<br />
== Problem formulation ==<br />
In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<br />
<br />
The mathematical formulation of the set covering problem is define as follows. We define U = {<math> u_i</math>, ….. <math> u_m</math>} as the universe of elements and S = {<math> s_1</math>, ….,<math> s_n</math>} as a collection of subsets such that <math> s_i</math> <math>\in</math>U and the union of <math> s_i</math> covers all elements in U (i.e. <math>\cup</math><math> s_i</math> = U ). Addionally, each set <math> s_i</math> must cover at least one element of U and has associated cost <math> c_i</math> such that <math> c_i > 0</math>. The objective is to find the minimum cost sub-collection of sets X <math>\in</math> S that covers all the elements in the universe U.<br />
<br />
== Integer linear program formulation ==<br />
An integer linear program (ILP) model can be formulated for the minimum set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math> y_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
'''Objective function'''<br />
<br />
minimize <math>\sum_{i=1}^n c_i y_i</math> <br />
<br />
'''Constraints '''<br />
<br />
<math> \sum_{i=1}^n a_{ij} y_i >= 1, \forall j= 1,....,m</math> <br />
<br />
<math> y_i \in \{0, 1\}, \forall i = 1,....,n</math> <br />
<br />
The objective function <math>\sum_{i=1}^n c_i y_i</math> is defined to minimize the number of subset <math> s_i</math> that cover all elements in the universe by minimizing their total cost. The first constraint implies that every element j in the universe U must be be covered where <math> a_{ij}</math>=1 if j <math>\in</math> <math> s_i</math> and 0 otherwise. The second constraint <math> y_i \in \{0, 1\} </math> indicates that the decision variables are binary.<br />
<br />
Set covering problems are significant NP-hard optimization problems, which implies that as the size of the problem increases, the computational time to solve the problem increases exponentially. Therefore, there exist approximation algorithms that can solve large scale problems in polynomial time with optimal or near-optimal solutions. One of the widely used approximation algorithms for set covering is the classical greedy algorithms.<sup>7</sup><br />
<br />
== Approximation via LP relaxation and rounding ==<br />
<br />
== Greedy approximation algorithm ==<br />
Greedy algorithms can be used to approximate for optimal or near-optimal solutions for large scale set covering instances in polynomial solvable time.<sup>7,9</sup> The greedy heuristics applies iterative process that, at each stage, select the largest number of uncovered elements in the universe <math> U </math>, and delete the uncovered elements, until all elements are covered.<sup>10</sup> Let <math> T </math> be the set that contain the covered elements, and <math> U </math> be the set that contain the elements of <math> Y </math> that still uncovered. At the beginning of the iteration, <math> T </math> is empty and all elements <math> Y \in U </math>. We iteratively select the set of <math> S </math> that covers the largest number of elements in <math> U </math> and add it to the covered elements in <math> T </math>. An example of this algorithm is presented below. <br />
<br />
'''Greedy algorithm for minimum set cover example: '''<br />
<br />
Step 0: <math> \quad </math> <math> T \in \Phi </math> <math> \quad \quad \quad \quad \quad </math> { <math> T </math> stores the covered elements }<br />
<br />
Step 1: <math> \quad </math> '''While''' <math> U \neq \Phi </math> '''do:''' <math> \quad </math> { <math> U </math> stores the uncovered elements <math> Y </math>}<br />
<br />
Step 2: <math> \quad \quad \quad </math> select <math> s_i \in S </math> that covers the highest number of elements in <math> U </math><br />
<br />
Step 3: <math> \quad \quad \quad </math> add <math> s_i </math> to <math> T </math><br />
<br />
Step 4: <math> \quad \quad \quad </math> remove <math> s_i </math> from <math> U </math><br />
<br />
Step 5: <math> \quad </math> '''End while''' <br />
<br />
Step 6: <math> \quad </math> '''Return''' <math> S </math><br />
<br />
==Numerical Example==<br />
Let’s consider a simple example where we assign cameras at different locations. Each location covers some areas of stadiums, and our goal is to put the least amount of cameras such that all areas of stadiums are covered. We have stadium areas from 1 to 15, and possible camera locations from 1 to 8.<br />
<br />
We are given that camera location 1 covers stadium areas {1,3,4,6,7}, camera location 2 covers stadium areas {4,7,8,12}, while the remaining camera locations and the stadium areas that the cameras can cover are given in table 1 below:<br />
{| class="wikitable"<br />
|+Table 1<br />
!Camera Location<br />
!Stadium Areas<br />
|-<br />
|1<br />
|1,3,4,6,7<br />
|-<br />
|2<br />
|4,7,8,12<br />
|-<br />
|3<br />
|2,5,9,11,13<br />
|-<br />
|4<br />
|1,2,14,15<br />
|-<br />
|5<br />
|3,6,10,12,14<br />
|-<br />
|6<br />
|8,14,15<br />
|-<br />
|7<br />
|1,2,6,11<br />
|-<br />
|8<br />
|1,2,4,6,8,12<br />
|}<br />
To reformulate the problem, we can list the stadium areas and the camera locations that cover each stadium area. For instance, stadium area 1 can be covered with camera location {1,4,7,8}, stadium area 2 can be covered with camera location {3,4,7,8}, while the rest are given in table 2 below:<br />
{| class="wikitable"<br />
|+Table 2<br />
!Stadium Area<br />
!Camera Location<br />
|-<br />
|1<br />
|1,4,7,8<br />
|-<br />
|2<br />
|3,4,7,8<br />
|-<br />
|3<br />
|1,5<br />
|-<br />
|4<br />
|1,2,8<br />
|-<br />
|5<br />
|3<br />
|-<br />
|6<br />
|1,5,7,8<br />
|-<br />
|7<br />
|1,2<br />
|-<br />
|8<br />
|2,6,8<br />
|-<br />
|9<br />
|3<br />
|-<br />
|10<br />
|5<br />
|-<br />
|11<br />
|3,7<br />
|-<br />
|12<br />
|2,5,8<br />
|-<br />
|13<br />
|3<br />
|-<br />
|14<br />
|4,5,6<br />
|-<br />
|15<br />
|4,6<br />
|}<br />
We can then represent the above information using binary values. If the stadium area <math>i</math> can be covered with camera location <math>j</math>, then we have <math>y_{ij} = 1</math>. If not,<math>y_{ij} = 0</math>. For instance, stadium area 1 is covered by camera location 1, so <math>y_{11} = 1</math>, while stadium area 1 is not covered by camera location 2, so <math>y_{12} = 0</math>. The binary variables <math>y_{ij}</math> values are given in the table below: <br />
{| class="wikitable"<br />
|+Table 3<br />
!<br />
!1<br />
!2<br />
!3<br />
!4<br />
!5<br />
!6<br />
!7<br />
!8<br />
|-<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|2<br />
|<br />
|<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|3<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|4<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|-<br />
|5<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|6<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|1<br />
|-<br />
|7<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|8<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|-<br />
|9<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|10<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|11<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|-<br />
|12<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|-<br />
|13<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|14<br />
|<br />
|<br />
|<br />
|1<br />
|1<br />
|1<br />
|<br />
|<br />
|-<br />
|15<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|<br />
|<br />
|}<br />
<br />
<br />
<br />
We introduce another binary variable <math>z_j</math> to indicate if a camera is installed at location <math>j</math>. <math>z_j = 1</math> if camera is installed at location <math>j</math>, while <math>z_j = 0</math> if not. <br />
<br />
Our objective is to minimize <math>\sum_{j=1}^8 z_j</math>. For each stadium, there’s a constraint that the stadium area <math>i</math> has to be covered by at least one camera location. For instance, for stadium area 1, we have <math>z_1 + z_4 + z_7 + z_8 \geqslant 1</math>, while for stadium 2, we have <math>z_3 + z_4 + z_7 + z_8 \geqslant 1</math>. All the 15 constraints that corresponds to 15 stadium areas are listed below:<br />
<br />
<br />
''Constraints 1 to 15:''<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>2. z_3 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>5. z_3 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>9. z_3 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>11. z_3 + z_7 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>13. z_3 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
From constraint {5,9,13}, we can obtain <math>z_3 = 1</math>. Thus we no longer need constraint 2 and 11 as they are satisfied when <math>z_3 = 1</math>. With <math>z_3 = 1</math> determined, the constraints left are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
Now if we take a look at constraint <math>10. z_5 \geqslant 1</math> so <math>z_5</math> shall equal to 1. As <math>z_5 = 1</math>, constraint {3,6,12,14} are satisfied no matter what other <math>z</math> values are taken. If we also take a look at constraint 7 and 4, if constraint 4 will be satisfied as long as constraint 7 is satisfied since <math>z</math> values are nonnegative, so constraint 4 is no longer needed. The remaining constraints are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
The next step is to focus on constraint 7 and 15. We can have at least 4 combinations of <math>z_1, z_2, z_4, z_6</math>values.<br />
<br />
<br />
<math>A: z_1 = 1, z_2 = 0, z_4 = 1, z_6 = 0</math><br />
<br />
<math>B: z_1 = 1, z_2 = 0, z_4 = 0, z_6 = 1</math><br />
<br />
<math>C: z_1 = 0, z_2 = 1, z_4 = 1, z_6 = 0</math><br />
<br />
<math>D: z_1 = 0, z_2 = 1, z_4 = 0, z_6 = 1</math><br />
<br />
<br />
We can then discuss each combination and determine <math>z_7, z_8</math>values for constraint 1 and 8 to be satisfied.<br />
<br />
<br />
Combination <math>A</math>: constraint 1 already satisfied, we need <math>z_8 = 1</math> to satisfy constraint 8.<br />
<br />
Combination <math>B</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>C</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>D</math>: we need <math>z_7 = 1</math> or <math>z_8 = 1</math> to satisfy constraint 1, while constraint 8 already satisfied.<br />
<br />
Our final step is to compare the four combinations. Since our objective is to minimize <math>\sum_{j=1}^8 z_j</math> and combinations <math>B</math> and <math>C</math> require the least amount of <math>z_j</math> to be 1, they are the optimal solutions.<br />
<br />
To conclude, our two solutions are:<br />
<br />
<math>Solution 1: z_1 = 1, z_3 = 1, z_5 = 1, z_6 = 1</math><br />
<br />
<math>Solution 2: z_2 = 1, z_3 = 1, z_4 = 1, z_5 = 1</math><br />
<br />
The minimum number of cameras that we need to install is 4.<br />
<br />
== Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
<br />
This set covering problems is concerned with maximizing the coverage of some public facilities placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city. <br />
<br />
Let <math> y_i </math> be the decision variable corresponding to choosing to build a fire station at town <math> i </math>. Let <math> S_i </math> be a subset of towns including town <math> i </math> and all its neighbors. The problem is then formulated as follows.<br />
<br />
minimize <math>\sum_{i=1}^n y_i</math> <br />
<br />
such that <math> \sum_{i\in S_i} y_i >= 1, \forall i</math> <br />
; The optimal route selection problem<br />
<br />
Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to the scarcity of the physical sensors, the problem does not allow for placing a detector on every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Specifically, giving a collection of routes '''''R''','' where each route itself is divided into segments. The segments of two routes can overlap. The goal is then to select the routes that maximize the number of covered segments.<br />
<br />
This is quite different from other applications because it results in a maximization formulation, rather than a minimization formulation. Say we want to use at most <math> k </math> routes. We want to find <math> k </math> routes that maximize the number of covered segments. Let <math> y_i </math> be the decision variable corresponding to choosing route <math> R_i </math>. The problem is then formulated as follows.<br />
<br />
maximize <math>\sum_{i=1}^N R_i</math> <br />
<br />
such that <math> \sum_{i} y_i = k </math> <br />
<br />
For a greedy approximation solution, please check the work by Ali and Dyo.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span><br />
.<br />
;The airline crew scheduling problem<br />
<br />
An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts.<sup>2,6</sup> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights. Due to the complexity of airline schedules, this problem is usually divided into two subproblems: crew pairing and crew assignment. We refer the interested reader to this survey for a detailed analysis of the formulation and algorithms that pertain to this significant application.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">8</span><br />
<br />
==Conclusion ==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#RUBIN, J. (1973). A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling. ''Transportation Science,'' ''7''(1), 34-48. Retrieved November 23, 2020, from http://www.jstor.org/stable/25767684<br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). https://doi.org/10.1007/BF01942293<br />
# Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088<br />
#Marchiori, E., & Steenbeek, A. (2000). An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling. ''EvoWorkshops''.<br />
# Petr Slavı́k. (1997). A Tight Analysis of the Greedy Algorithm for Set Cover. ''Journal of Algorithms,'', Volume 25, Issue 2, Pages 237-254 https://doi.org/10.1006/jagm.1997.0887.<br />
# Kasirzadeh, A., Saddoune, M. & Soumis, F. Airline crew scheduling: models, algorithms, and data sets. ''EURO J Transp Logist'' 6, 111–137 (2017). https://doi.org/10.1007/s13676-015-0080-x<br />
#Vasko, Francis J., et al. What Is the Best Greedy-like Heuristic for the Weighted Set Covering Problem? "Operations Research Letters", North-Holland, 22 Mar. 2016, www.sciencedirect.com/science/article/pii/S016763771600047X.<br />
#Chvatal, V. A Greedy Heuristic for the Set-Covering Problem. "Mathematics of Operations Research" Vol. 4, No. 3 (Aug., 1979), pp. 233-235</div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=2486Set covering problem2020-12-13T16:54:58Z<p>Kha32: </p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. Given a collection of elements, the set covering problem aims to find the minimum number of sets that incorporate all of these elements.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span> <br />
<br />
The set covering problem importance has two main aspects: one is pedagogical, and the other is practical. <br />
<br />
First, because many greedy approximation methods have been proposed for this combinatorial problem, studying it gives insight into the use of approximation algorithms in solving NP-hard problems. Thus, it is a primal example in teaching computational algorithms. We present a preview of these methods in a later section, and we refer the interested reader to these references for a deeper discussion.<sup>1,7,9</sup> <br />
<br />
Second, many problems in different industries can be formulated as set covering problems. For example, scheduling machines to perform certain jobs can be thought of as covering the jobs. Picking the optimal location for a cell tower so that it covers the maximum number of customers is another set covering application. Moreover, this problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span><br />
<br />
== Problem formulation ==<br />
In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<br />
<br />
The mathematical formulation of the set covering problem is define as follows. We define U = {<math> u_i</math>, ….. <math> u_m</math>} as the universe of elements and S = {<math> s_1</math>, ….,<math> s_n</math>} as a collection of subsets such that <math> s_i</math> <math>\in</math>U and the union of <math> s_i</math> covers all elements in U (i.e. <math>\cup</math><math> s_i</math> = U ). Addionally, each set <math> s_i</math> must cover at least one element of U and has associated cost <math> c_i</math> such that <math> c_i > 0</math>. The objective is to find the minimum cost sub-collection of sets X <math>\in</math> S that covers all the elements in the universe U.<br />
<br />
== Integer linear program formulation ==<br />
An integer linear program (ILP) model can be formulated for the minimum set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math> y_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
'''Objective function'''<br />
<br />
minimize <math>\sum_{i=1}^n c_i y_i</math> <br />
<br />
'''Constraints '''<br />
<br />
<math> \sum_{i=1}^n a_{ij} y_i >= 1, \forall j= 1,....,m</math> <br />
<br />
<math> y_i \in \{0, 1\}, \forall i = 1,....,n</math> <br />
<br />
The objective function <math>\sum_{i=1}^n c_i y_i</math> is defined to minimize the number of subset <math> s_i</math> that cover all elements in the universe by minimizing their total cost. The first constraint implies that every element j in the universe U must be be covered where <math> a_{ij}</math>=1 if j <math>\in</math> <math> s_i</math> and 0 otherwise. The second constraint <math> y_i \in \{0, 1\} </math> indicates that the decision variables are binary.<br />
<br />
Set covering problems are significant NP-hard optimization problems, which implies that as the size of the problem increases, the computational time to solve the problem increases exponentially. Therefore, there exist approximation algorithms that can solve large scale problems in polynomial time with optimal or near-optimal solutions. One of the widely used approximation algorithms for set covering is the classical greedy algorithms.<sup>7</sup><br />
<br />
== Approximation via LP relaxation and rounding ==<br />
<br />
== Greedy approximation algorithm ==<br />
Greedy algorithms can be used to approximate for optimal or near-optimal solutions for large scale set covering instances in polynomial solvable time.<sup>7,9</sup> The greedy heuristics applies iterative process that, at each stage, select the largest number of uncovered elements in the universe <math> U </math>, and delete the uncovered elements, until all elements are covered.<sup>10</sup> Let <math> T </math> be the set that contain the covered elements, and <math> U </math> be the set that contain the elements of <math> Y </math> that still uncovered. At the beginning of the iteration, <math> T </math> is empty and all elements <math> Y \in U </math>. We iteratively select the set of <math> S </math> that covers the largest number of elements in <math> U </math> and add it to the covered elements in <math> T </math>. An example of this algorithm is presented below. <br />
<br />
'''Greedy algorithm for minimum set cover example: '''<br />
<br />
Step 0: <math> \quad </math> <math> T \in \Phi </math> <math> \quad \quad \quad \quad \quad </math> { <math> T </math> stores the covered elements }<br />
<br />
Step 1: <math> \quad </math> '''While''' <math> U \neq \Phi </math> '''do:''' <math> \quad </math> { <math> U </math> stores the uncovered elements <math> Y </math>}<br />
<br />
Step 2: <math> \quad \quad \quad </math> select <math> s_i \in S </math> that covers the highest number of elements in <math> U </math><br />
<br />
Step 3: <math> \quad \quad \quad </math> add <math> s_i </math> to <math> T </math><br />
<br />
Step 4: <math> \quad \quad \quad </math> remove <math> s_i </math> from <math> U </math><br />
<br />
Step 5: <math> \quad </math> '''End while''' <br />
<br />
Step 6: <math> \quad </math> '''Return''' <math> S </math><br />
<br />
==Numerical Example==<br />
Let’s consider a simple example where we assign cameras at different locations. Each location covers some areas of stadiums, and our goal is to put the least amount of cameras such that all areas of stadiums are covered. We have stadium areas from 1 to 15, and possible camera locations from 1 to 8.<br />
<br />
We are given that camera location 1 covers stadium areas {1,3,4,6,7}, camera location 2 covers stadium areas {4,7,8,12}, while the remaining camera locations and the stadium areas that the cameras can cover are given in table 1 below:<br />
{| class="wikitable"<br />
|+Table 1<br />
!Camera Location<br />
!Stadium Areas<br />
|-<br />
|1<br />
|1,3,4,6,7<br />
|-<br />
|2<br />
|4,7,8,12<br />
|-<br />
|3<br />
|2,5,9,11,13<br />
|-<br />
|4<br />
|1,2,14,15<br />
|-<br />
|5<br />
|3,6,10,12,14<br />
|-<br />
|6<br />
|8,14,15<br />
|-<br />
|7<br />
|1,2,6,11<br />
|-<br />
|8<br />
|1,2,4,6,8,12<br />
|}<br />
To reformulate the problem, we can list the stadium areas and the camera locations that cover each stadium area. For instance, stadium area 1 can be covered with camera location {1,4,7,8}, stadium area 2 can be covered with camera location {3,4,7,8}, while the rest are given in table 2 below:<br />
{| class="wikitable"<br />
|+Table 2<br />
!Stadium Area<br />
!Camera Location<br />
|-<br />
|1<br />
|1,4,7,8<br />
|-<br />
|2<br />
|3,4,7,8<br />
|-<br />
|3<br />
|1,5<br />
|-<br />
|4<br />
|1,2,8<br />
|-<br />
|5<br />
|3<br />
|-<br />
|6<br />
|1,5,7,8<br />
|-<br />
|7<br />
|1,2<br />
|-<br />
|8<br />
|2,6,8<br />
|-<br />
|9<br />
|3<br />
|-<br />
|10<br />
|5<br />
|-<br />
|11<br />
|3,7<br />
|-<br />
|12<br />
|2,5,8<br />
|-<br />
|13<br />
|3<br />
|-<br />
|14<br />
|4,5,6<br />
|-<br />
|15<br />
|4,6<br />
|}<br />
We can then represent the above information using binary values. If the stadium area <math>i</math> can be covered with camera location <math>j</math>, then we have <math>y_{ij} = 1</math>. If not,<math>y_{ij} = 0</math>. For instance, stadium area 1 is covered by camera location 1, so <math>y_{11} = 1</math>, while stadium area 1 is not covered by camera location 2, so <math>y_{12} = 0</math>. The binary variables <math>y_{ij}</math> values are given in the table below: <br />
{| class="wikitable"<br />
|+Table 3<br />
!<br />
!1<br />
!2<br />
!3<br />
!4<br />
!5<br />
!6<br />
!7<br />
!8<br />
|-<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|2<br />
|<br />
|<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|3<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|4<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|-<br />
|5<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|6<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|1<br />
|-<br />
|7<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|8<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|-<br />
|9<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|10<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|11<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|-<br />
|12<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|-<br />
|13<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|14<br />
|<br />
|<br />
|<br />
|1<br />
|1<br />
|1<br />
|<br />
|<br />
|-<br />
|15<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|<br />
|<br />
|}<br />
<br />
<br />
<br />
We introduce another binary variable <math>z_j</math> to indicate if a camera is installed at location <math>j</math>. <math>z_j = 1</math> if camera is installed at location <math>j</math>, while <math>z_j = 0</math> if not. <br />
<br />
Our objective is to minimize <math>\sum_{j=1}^8 z_j</math>. For each stadium, there’s a constraint that the stadium area <math>i</math> has to be covered by at least one camera location. For instance, for stadium area 1, we have <math>z_1 + z_4 + z_7 + z_8 \geqslant 1</math>, while for stadium 2, we have <math>z_3 + z_4 + z_7 + z_8 \geqslant 1</math>. All the 15 constraints that corresponds to 15 stadium areas are listed below:<br />
<br />
<br />
''Constraints 1 to 15:''<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>2. z_3 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>5. z_3 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>9. z_3 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>11. z_3 + z_7 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>13. z_3 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
From constraint {5,9,13}, we can obtain <math>z_3 = 1</math>. Thus we no longer need constraint 2 and 11 as they are satisfied when <math>z_3 = 1</math>. With <math>z_3 = 1</math> determined, the constraints left are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
Now if we take a look at constraint <math>10. z_5 \geqslant 1</math> so <math>z_5</math> shall equal to 1. As <math>z_5 = 1</math>, constraint {3,6,12,14} are satisfied no matter what other <math>z</math> values are taken. If we also take a look at constraint 7 and 4, if constraint 4 will be satisfied as long as constraint 7 is satisfied since <math>z</math> values are nonnegative, so constraint 4 is no longer needed. The remaining constraints are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
The next step is to focus on constraint 7 and 15. We can have at least 4 combinations of <math>z_1, z_2, z_4, z_6</math>values.<br />
<br />
<br />
<math>A: z_1 = 1, z_2 = 0, z_4 = 1, z_6 = 0</math><br />
<br />
<math>B: z_1 = 1, z_2 = 0, z_4 = 0, z_6 = 1</math><br />
<br />
<math>C: z_1 = 0, z_2 = 1, z_4 = 1, z_6 = 0</math><br />
<br />
<math>D: z_1 = 0, z_2 = 1, z_4 = 0, z_6 = 1</math><br />
<br />
<br />
We can then discuss each combination and determine <math>z_7, z_8</math>values for constraint 1 and 8 to be satisfied.<br />
<br />
<br />
Combination <math>A</math>: constraint 1 already satisfied, we need <math>z_8 = 1</math> to satisfy constraint 8.<br />
<br />
Combination <math>B</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>C</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>D</math>: we need <math>z_7 = 1</math> or <math>z_8 = 1</math> to satisfy constraint 1, while constraint 8 already satisfied.<br />
<br />
Our final step is to compare the four combinations. Since our objective is to minimize <math>\sum_{j=1}^8 z_j</math> and combinations <math>B</math> and <math>C</math> require the least amount of <math>z_j</math> to be 1, they are the optimal solutions.<br />
<br />
To conclude, our two solutions are:<br />
<br />
<math>Solution 1: z_1 = 1, z_3 = 1, z_5 = 1, z_6 = 1</math><br />
<br />
<math>Solution 2: z_2 = 1, z_3 = 1, z_4 = 1, z_5 = 1</math><br />
<br />
The minimum number of cameras that we need to install is 4.<br />
<br />
== Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
<br />
This set covering problems is concerned with maximizing the coverage of some public facilities placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city. <br />
<br />
Let <math> y_i </math> be the decision variable corresponding to choosing to build a fire station at town <math> i </math>. Let <math> S_i </math> be a subset of towns including town <math> i </math> and all its neighbors. The problem is then formulated as follows.<br />
<br />
minimize <math>\sum_{i=1}^n y_i</math> <br />
<br />
such that <math> \sum_{i\in S_i} y_i >= 1, \forall i</math> <br />
; The optimal route selection problem<br />
<br />
Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to the scarcity of the physical sensors, the problem does not allow for placing a detector on every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Specifically, giving a collection of routes '''''R''','' where each route itself is divided into segments. The segments of two routes can overlap. The goal is then to select the routes that maximize the number of covered segments.<br />
<br />
This is quite different from other applications because it results in a maximization formulation, rather than a minimization formulation. Say we want to use at most <math> k </math> routes. We want to find <math> k </math> routes that maximize the number of covered segments. Let <math> y_i </math> be the decision variable corresponding to choosing route <math> R_i </math>. The problem is then formulated as follows.<br />
<br />
maximize <math>\sum_{i=1}^N R_i</math> <br />
<br />
such that <math> \sum_{i} y_i = k </math> <br />
<br />
For a greedy approximation solution, please check the work by Ali and Dyo.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span><br />
.<br />
;The airline crew scheduling problem<br />
<br />
An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts.<sup>2,6</sup> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights. Due to the complexity of airline schedules, this problem is usually divided into two subproblems: crew pairing and crew assignment. We refer the interested reader to this survey for a detailed analysis of the formulation and algorithms that pertain to this significant application.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">8</span><br />
<br />
==Conclusion ==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#RUBIN, J. (1973). A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling. ''Transportation Science,'' ''7''(1), 34-48. Retrieved November 23, 2020, from http://www.jstor.org/stable/25767684<br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). https://doi.org/10.1007/BF01942293<br />
# Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088<br />
#Marchiori, E., & Steenbeek, A. (2000). An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling. ''EvoWorkshops''.<br />
# Petr Slavı́k. (1997). A Tight Analysis of the Greedy Algorithm for Set Cover. ''Journal of Algorithms,'', Volume 25, Issue 2, Pages 237-254 https://doi.org/10.1006/jagm.1997.0887.<br />
# Kasirzadeh, A., Saddoune, M. & Soumis, F. Airline crew scheduling: models, algorithms, and data sets. ''EURO J Transp Logist'' 6, 111–137 (2017). https://doi.org/10.1007/s13676-015-0080-x<br />
#Vasko, Francis J., et al. What Is the Best Greedy-like Heuristic for the Weighted Set Covering Problem? "Operations Research Letters", North-Holland, 22 Mar. 2016, www.sciencedirect.com/science/article/pii/S016763771600047X.<br />
#Chvatal, V. A Greedy Heuristic for the Set-Covering Problem. "Mathematics of Operations Research" Vol. 4, No. 3 (Aug., 1979), pp. 233-235</div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=1880Set covering problem2020-11-25T23:04:33Z<p>Kha32: /* Introduction */</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span> <br />
<br />
The set covering problem importance has two main aspects: one is pedagogical, and the other is practical. <br />
<br />
First, because many greedy approximation methods have been proposed for this combinatorial problem, studying it gives insight into the use of approximation algorithms in solving NP-hard problems. Thus, it is a primal example in teaching computational algorithms. We present a preview of these methods in a later section, and we refer the interested reader to these references for a deeper discussion. <br />
<br />
Second, many problems in different industries can be formulated as set covering problems. For example, scheduling machines to perform certain jobs can be thought of as covering the jobs. Picking the optimal location for a cell tower so that it covers the maximum number of customers is another set covering application. Moreover, this problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span><br />
<br />
== Problem formulation ==<br />
The mathematical formulation of the set covering problem is define as follows. We define U = {<math> u_i</math>, ….. <math> u_m</math>} as the universe of elements and S = {<math> s_1</math>, ….,<math> s_n</math>} as a collection of subsets such that <math> s_i</math> <math>\in</math>U and the union of <math> s_i</math> covers all elements in U (i.e. <math>\cup</math><math> s_i</math> = U ). Addionally, each set <math> s_i</math> must cover at least one element of U and has associated cost <math> c</math> that is larger than zero (i.e. <math> c_i</math> > 0). The objective is to find the minimum cost sub-collection of sets X <math>\in</math> S that covers all the elements in the universe U.<br />
<br />
== Integer linear program formulation ==<br />
An integer linear program (ILP) model can be formulated for the minimum set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math> y_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
'''Objective function'''<br />
<br />
minimize <math>\sum_{i=1}^n c_i y_i</math> <br />
<br />
'''Constraints '''<br />
<br />
<math> \sum_{i=1}^n a_{ij} y_i >= 1, \forall j= 1,....,m</math> <br />
<br />
<math> y_i \in \{0, 1\}, \forall i = 1,....,n</math> <br />
<br />
The objective function <math>\sum_{i=1}^n c_i y_i</math> is defined to minimize the number of subset <math> s_i</math> that cover all elements in the universe by minimizing their total cost. The first constraint implies that every element j in the universe U must be be covered where <math> a_{ij}</math>=1 if j <math>\in</math> <math> s_i</math> and 0 otherwise. The second constraint <math> y_i \in \{0, 1\} </math> indicates that the decision variables are binary.<br />
<br />
Set covering problems are significant NP-hard optimization problems, which means that for large size instances, integer linear program algorithms can be difficult to solve in polynomial time. Therefore, there exist approximation algorithms that can solve large scale problems in polynomial time with optimal or near-optimal solutions. One of the widely used approximation algorithms for set covering is the classical greedy algorithms.<sup>7</sup><br />
<br />
== Greedy approximation algorithm ==<br />
Greedy algorithms can be used to approximate for optimal or near-optimal solutions for large scale set covering instances in polynomial solvable time.<sup>7,9</sup> The greedy heuristics applies iterative process that, at each stage, select the largest number of uncovered elements in the universe '''U''', and delete the uncovered elements, until all elements are covered. Let '''T''' be the set that contain the covered elements, and '''U''' be the set that contain the elements of '''Y''' that still uncovered. At the beginning of the iteration, '''T''' is empty and all elements '''Y''' belong to '''U'''. We iteratively select the set of '''S''' that covers the largest number of elements in '''U''' and add it to the covered elements in '''T'''. An example of this algorithm is presented below. <br />
<br />
'''Greedy algorithm for minimum set cover example: '''<br />
<br />
Step 0: <math> T \in \Phi </math> { '''T''' stores the covered elements }<br />
<br />
Step 1: '''While''' <math> U \neq \Phi </math> '''do''' \hfill { '''U''' stores the uncovered elements '''Y'''}<br />
<br />
Step 2: select <math> s_i \in S </math> that covers the highest number of elements in '''U'''<br />
<br />
Step 3: add <math> s_i </math> to <math> T </math><br />
<br />
Step 4: remove <math> s_i </math> from <math> U </math><br />
<br />
Step 5: '''End while''' <br />
<br />
Step 6: '''Return''' <math> S </math><br />
<br />
==Numerical Example==<br />
Let’s consider a simple example where we assign cameras at different locations. Each location covers some areas of stadiums, and our goal is to put the least amount of cameras such that all areas of stadiums are covered. We have stadium areas from 1 to 15, and possible camera locations from 1 to 8.<br />
<br />
We are given that camera location 1 covers stadium areas {1,3,4,6,7}, camera location 2 covers stadium areas {4,7,8,12}, while the remaining camera locations and the stadium areas that the cameras can cover are given in table 1 below:<br />
{| class="wikitable"<br />
|+Table 1<br />
!Camera Location<br />
!Stadium Areas<br />
|-<br />
|1<br />
|1,3,4,6,7<br />
|-<br />
|2<br />
|4,7,8,12<br />
|-<br />
|3<br />
|2,5,9,11,13<br />
|-<br />
|4<br />
|1,2,14,15<br />
|-<br />
|5<br />
|3,6,10,12,14<br />
|-<br />
|6<br />
|8,14,15<br />
|-<br />
|7<br />
|1,2,6,11<br />
|-<br />
|8<br />
|1,2,4,6,8,12<br />
|}<br />
To reformulate the problem, we can list the stadium areas and the camera locations that cover each stadium area. For instance, stadium area 1 can be covered with camera location {1,4,7,8}, stadium area 2 can be covered with camera location {3,4,7,8}, while the rest are given in table 2 below:<br />
{| class="wikitable"<br />
|+Table 2<br />
!Stadium Area<br />
!Camera Location<br />
|-<br />
|1<br />
|1,4,7,8<br />
|-<br />
|2<br />
|3,4,7,8<br />
|-<br />
|3<br />
|1,5<br />
|-<br />
|4<br />
|1,2,8<br />
|-<br />
|5<br />
|3<br />
|-<br />
|6<br />
|1,5,7,8<br />
|-<br />
|7<br />
|1,2<br />
|-<br />
|8<br />
|2,6,8<br />
|-<br />
|9<br />
|3<br />
|-<br />
|10<br />
|5<br />
|-<br />
|11<br />
|3,7<br />
|-<br />
|12<br />
|2,5,8<br />
|-<br />
|13<br />
|3<br />
|-<br />
|14<br />
|4,5,6<br />
|-<br />
|15<br />
|4,6<br />
|}<br />
We can then represent the above information using binary values. If the stadium area <math>i</math> can be covered with camera location <math>j</math>, then we have <math>y_{ij} = 1</math>. If not,<math>y_{ij} = 0</math>. For instance, stadium area 1 is covered by camera location 1, so <math>y_{11} = 1</math>, while stadium area 1 is not covered by camera location 2, so <math>y_{12} = 0</math>. The binary variables <math>y_{ij}</math> values are given in the table below: <br />
{| class="wikitable"<br />
|+Table 3<br />
!<br />
!1<br />
!2<br />
!3<br />
!4<br />
!5<br />
!6<br />
!7<br />
!8<br />
|-<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|2<br />
|<br />
|<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|3<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|4<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|-<br />
|5<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|6<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|1<br />
|-<br />
|7<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|8<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|-<br />
|9<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|10<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|11<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|-<br />
|12<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|-<br />
|13<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|14<br />
|<br />
|<br />
|<br />
|1<br />
|1<br />
|1<br />
|<br />
|<br />
|-<br />
|15<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|<br />
|<br />
|}<br />
<br />
<br />
<br />
We introduce another binary variable <math>z_j</math> to indicate if a camera is installed at location <math>j</math>. <math>z_j = 1</math> if camera is installed at location <math>j</math>, while <math>z_j = 0</math> if not. <br />
<br />
Our objective is to minimize <math>\sum_{j=1}^8 z_j</math>. For each stadium, there’s a constraint that the stadium area <math>i</math> has to be covered by at least one camera location. For instance, for stadium area 1, we have <math>z_1 + z_4 + z_7 + z_8 \geqslant 1</math>, while for stadium 2, we have <math>z_3 + z_4 + z_7 + z_8 \geqslant 1</math>. All the 15 constraints that corresponds to 15 stadium areas are listed below:<br />
<br />
<br />
''Constraints 1 to 15:''<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>2. z_3 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>5. z_3 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>9. z_3 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>11. z_3 + z_7 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>13. z_3 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
From constraint {5,9,13}, we can obtain <math>z_3 = 1</math>. Thus we no longer need constraint 2 and 11 as they are satisfied when <math>z_3 = 1</math>. With <math>z_3 = 1</math> determined, the constraints left are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
Now if we take a look at constraint <math>10. z_5 \geqslant 1</math> so <math>z_5</math> shall equal to 1. As <math>z_5 = 1</math>, constraint {3,6,12,14} are satisfied no matter what other <math>z</math> values are taken. If we also take a look at constraint 7 and 4, if constraint 4 will be satisfied as long as constraint 7 is satisfied since <math>z</math> values are nonnegative, so constraint 4 is no longer needed. The remaining constraints are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
The next step is to focus on constraint 7 and 15. We can have at least 4 combinations of <math>z_1, z_2, z_4, z_6</math>values.<br />
<br />
<br />
<math>A: z_1 = 1, z_2 = 0, z_4 = 1, z_6 = 0</math><br />
<br />
<math>B: z_1 = 1, z_2 = 0, z_4 = 0, z_6 = 1</math><br />
<br />
<math>C: z_1 = 0, z_2 = 1, z_4 = 1, z_6 = 0</math><br />
<br />
<math>D: z_1 = 0, z_2 = 1, z_4 = 0, z_6 = 1</math><br />
<br />
<br />
We can then discuss each combination and determine <math>z_7, z_8</math>values for constraint 1 and 8 to be satisfied.<br />
<br />
<br />
Combination <math>A</math>: constraint 1 already satisfied, we need <math>z_8 = 1</math> to satisfy constraint 8.<br />
<br />
Combination <math>B</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>C</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>D</math>: we need <math>z_7 = 1</math> or <math>z_8 = 1</math> to satisfy constraint 1, while constraint 8 already satisfied.<br />
<br />
Our final step is to compare the four combinations. Since our objective is to minimize <math>\sum_{j=1}^8 z_j</math> and combinations <math>B</math> and <math>C</math> require the least amount of <math>z_j</math> to be 1, they are the optimal solutions.<br />
<br />
To conclude, our two solutions are:<br />
<br />
<math>Solution 1: z_1 = 1, z_3 = 1, z_5 = 1, z_6 = 1</math><br />
<br />
<math>Solution 2: z_2 = 1, z_3 = 1, z_4 = 1, z_5 = 1</math><br />
<br />
The minimum number of cameras that we need to install is 4.<br />
<br />
== Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
<br />
This set covering problems is concerned with maximizing the coverage of some public facilities placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city. <br />
<br />
Let <math> y_i </math> be the decision variable corresponding to choosing to build a fire station at town <math> i </math>. Let <math> S_i </math> be a subset of towns including town <math> i </math> and all its neighbors. The problem is then formulated as follows.<br />
<br />
minimize <math>\sum_{i=1}^n y_i</math> <br />
<br />
such that <math> \sum_{i\in S_i} y_i >= 1, \forall i</math> <br />
; The optimal route selection problem<br />
<br />
Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to the scarcity of the physical sensors, the problem does not allow for placing a detector on every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Specifically, giving a collection of routes '''''R''','' where each route itself is divided into segments. The segments of two routes can overlap. The goal is then to select the routes that maximize the number of covered segments.<br />
<br />
This is quite different from other applications because it results in a maximization formulation, rather than a minimization formulation. Say we want to use at most <math> k </math> routes. We want to find <math> k </math> routes that maximize the number of covered segments. Let <math> y_i </math> be the decision variable corresponding to choosing route <math> R_i </math>. The problem is then formulated as follows.<br />
<br />
maximize <math>\sum_{i=1}^N R_i</math> <br />
<br />
such that <math> \sum_{i} y_i = k </math> <br />
<br />
For a greedy approximation solution, please check the work by Ali and Dyo.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span><br />
.<br />
;The airline crew scheduling problem<br />
<br />
An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts.<sup>2,6</sup> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights. Due to the complexity of airline schedules, this problem is usually divided into two subproblems: crew pairing and crew assignment. We refer the interested reader to this survey for a detailed analysis of the formulation and algorithms that pertain to this significant application.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">8</span><br />
<br />
==Conclusion ==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#RUBIN, J. (1973). A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling. ''Transportation Science,'' ''7''(1), 34-48. Retrieved November 23, 2020, from http://www.jstor.org/stable/25767684<br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). https://doi.org/10.1007/BF01942293<br />
# Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088<br />
#Marchiori, E., & Steenbeek, A. (2000). An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling. ''EvoWorkshops''.<br />
# Petr Slavı́k. (1997). A Tight Analysis of the Greedy Algorithm for Set Cover. ''Journal of Algorithms,'', Volume 25, Issue 2, Pages 237-254 https://doi.org/10.1006/jagm.1997.0887.<br />
# Kasirzadeh, A., Saddoune, M. & Soumis, F. Airline crew scheduling: models, algorithms, and data sets. ''EURO J Transp Logist'' 6, 111–137 (2017). https://doi.org/10.1007/s13676-015-0080-x<br />
#Vasko, Francis J., et al. “What Is the Best Greedy-like Heuristic for the Weighted Set Covering Problem?” Operations Research Letters, North-Holland, 22 Mar. 2016, www.sciencedirect.com/science/article/pii/S016763771600047X.</div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=1862Set covering problem2020-11-25T19:13:07Z<p>Kha32: /* Applications */</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span> The problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span><br />
<br />
== Problem formulation ==<br />
The mathematical formulation of the set covering problem is define as follows. We define U = {<math> u_i</math>, ….. <math> u_m</math>} as the universe of elements and S = {<math> s_1</math>, ….,<math> s_n</math>} as a collection of subsets such that <math> s_i</math> <math>\in</math>U and the union of <math> s_i</math> covers all elements in U (i.e. <math>\cup</math><math> s_i</math> = U ). Addionally, each set <math> s_i</math> must cover at least one element of U and has associated cost <math> c</math> that is larger than zero (i.e. <math> c_i</math> > 0). The objective is to find the minimum cost sub-collection of sets X <math>\in</math> S that covers all the elements in the universe U.<br />
<br />
== Integer linear program formulation ==<br />
An integer linear program (ILP) model can be formulated for the minimum set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math> y_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
'''Objective function'''<br />
<br />
minimize <math>\sum_{i=1}^n c_i y_i</math> <br />
<br />
'''Constraints '''<br />
<br />
<math> \sum_{i=1}^n a_{ij} y_i >= 1, \forall j= 1,....,m</math> <br />
<br />
<math> y_i \in \{0, 1\}, \forall i = 1,....,n</math> <br />
<br />
The objective function <math>\sum_{i=1}^n c_i y_i</math> is defined to minimize the number of subset <math> s_i</math> that cover all elements in the universe by minimizing their total cost. The first constraint implies that every element j in the universe U must be be covered where <math> a_{ij}</math>=1 if j <math>\in</math> <math> s_i</math> and 0 otherwise. The second constraint <math> y_i \in \{0, 1\} </math> indicates that the decision variables are binary.<br />
<br />
Set covering problems are significant NP-hard optimization problems, which means that for large size instances, integer linear program algorithms can be difficult to solve in polynomial time. Therefore, there exist approximation algorithms that can solve large scale problems in polynomial time with optimal or near-optimal solutions. One of the widely used approximation algorithms for set covering is the classical greedy algorithms.<sup>7</sup><br />
<br />
== Greedy approximation algorithm ==<br />
Greedy algorithms can be used to approximate for optimal or near-optimal solutions for large scale set covering instances in polynomial solvable time. The greedy heuristics applies iterative process that, at each stage, select the largest number of uncovered elements in the universe '''U''', and delete the uncovered elements, until all elements are covered. Let '''T''' be the set that contain the covered elements, and '''U''' be the set that contain the elements of '''Y''' that still uncovered. At the beginning of the iteration, '''T''' is empty and all elements '''Y''' belong to '''U'''. We iteratively select the set of '''S''' that covers the largest number of elements in '''U''' and add it to the covered elements in '''T'''. An example of this algorithm is presented below. <br />
<br />
'''Greedy algorithm for minimum set cover example: '''<br />
<br />
<br />
==Numerical Example==<br />
Let’s consider a simple example where we assign cameras at different locations. Each location covers some areas of stadiums, and our goal is to put the least amount of cameras such that all areas of stadiums are covered. We have stadium areas from 1 to 15, and possible camera locations from 1 to 8.<br />
<br />
We are given that camera location 1 covers stadium areas {1,3,4,6,7}, camera location 2 covers stadium areas {4,7,8,12}, while the remaining camera locations and the stadium areas that the cameras can cover are given in table 1 below:<br />
{| class="wikitable"<br />
|+Table 1<br />
!Camera Location<br />
!Stadium Areas<br />
|-<br />
|1<br />
|1,3,4,6,7<br />
|-<br />
|2<br />
|4,7,8,12<br />
|-<br />
|3<br />
|2,5,9,11,13<br />
|-<br />
|4<br />
|1,2,14,15<br />
|-<br />
|5<br />
|3,6,10,12,14<br />
|-<br />
|6<br />
|8,14,15<br />
|-<br />
|7<br />
|1,2,6,11<br />
|-<br />
|8<br />
|1,2,4,6,8,12<br />
|}<br />
To reformulate the problem, we can list the stadium areas and the camera locations that cover each stadium area. For instance, stadium area 1 can be covered with camera location {1,4,7,8}, stadium area 2 can be covered with camera location {3,4,7,8}, while the rest are given in table 2 below:<br />
{| class="wikitable"<br />
|+Table 2<br />
!Stadium Area<br />
!Camera Location<br />
|-<br />
|1<br />
|1,4,7,8<br />
|-<br />
|2<br />
|3,4,7,8<br />
|-<br />
|3<br />
|1,5<br />
|-<br />
|4<br />
|1,2,8<br />
|-<br />
|5<br />
|3<br />
|-<br />
|6<br />
|1,5,7,8<br />
|-<br />
|7<br />
|1,2<br />
|-<br />
|8<br />
|2,6,8<br />
|-<br />
|9<br />
|3<br />
|-<br />
|10<br />
|5<br />
|-<br />
|11<br />
|3,7<br />
|-<br />
|12<br />
|2,5,8<br />
|-<br />
|13<br />
|3<br />
|-<br />
|14<br />
|4,5,6<br />
|-<br />
|15<br />
|4,6<br />
|}<br />
We can then represent the above information using binary values. If the stadium area <math>i</math> can be covered with camera location <math>j</math>, then we have <math>y_{ij} = 1</math>. If not,<math>y_{ij} = 0</math>. For instance, stadium area 1 is covered by camera location 1, so <math>y_{11} = 1</math>, while stadium area 1 is not covered by camera location 2, so <math>y_{12} = 0</math>. The binary variables <math>y_{ij}</math> values are given in the table below: <br />
{| class="wikitable"<br />
|+Table 3<br />
!<br />
!1<br />
!2<br />
!3<br />
!4<br />
!5<br />
!6<br />
!7<br />
!8<br />
|-<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|2<br />
|<br />
|<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|3<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|4<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|-<br />
|5<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|6<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|1<br />
|-<br />
|7<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|8<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|-<br />
|9<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|10<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|11<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|-<br />
|12<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|-<br />
|13<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|14<br />
|<br />
|<br />
|<br />
|1<br />
|1<br />
|1<br />
|<br />
|<br />
|-<br />
|15<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|<br />
|<br />
|}<br />
<br />
<br />
<br />
We introduce another binary variable <math>z_j</math> to indicate if a camera is installed at location <math>j</math>. <math>z_j = 1</math> if camera is installed at location <math>j</math>, while <math>z_j = 0</math> if not. <br />
<br />
Our objective is to minimize <math>\sum_{j=1}^8 z_j</math>. For each stadium, there’s a constraint that the stadium area <math>i</math> has to be covered by at least one camera location. For instance, for stadium area 1, we have <math>z_1 + z_4 + z_7 + z_8 \geqslant 1</math>, while for stadium 2, we have <math>z_3 + z_4 + z_7 + z_8 \geqslant 1</math>. All the 15 constraints that corresponds to 15 stadium areas are listed below:<br />
<br />
<br />
''Constraints 1 to 15:''<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>2. z_3 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>5. z_3 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>9. z_3 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>11. z_3 + z_7 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>13. z_3 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
From constraint {5,9,13}, we can obtain <math>z_3 = 1</math>. Thus we no longer need constraint 2 and 11 as they are satisfied when <math>z_3 = 1</math>. With <math>z_3 = 1</math> determined, the constraints left are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
Now if we take a look at constraint <math>10. z_5 \geqslant 1</math> so <math>z_5</math> shall equal to 1. As <math>z_5 = 1</math>, constraint {3,6,12,14} are satisfied no matter what other <math>z</math> values are taken. If we also take a look at constraint 7 and 4, if constraint 4 will be satisfied as long as constraint 7 is satisfied since <math>z</math> values are nonnegative, so constraint 4 is no longer needed. The remaining constraints are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
The next step is to focus on constraint 7 and 15. We can have at least 4 combinations of <math>z_1, z_2, z_4, z_6</math>values.<br />
<br />
<br />
<math>A: z_1 = 1, z_2 = 0, z_4 = 1, z_6 = 0</math><br />
<br />
<math>B: z_1 = 1, z_2 = 0, z_4 = 0, z_6 = 1</math><br />
<br />
<math>C: z_1 = 0, z_2 = 1, z_4 = 1, z_6 = 0</math><br />
<br />
<math>D: z_1 = 0, z_2 = 1, z_4 = 0, z_6 = 1</math><br />
<br />
<br />
We can then discuss each combination and determine <math>z_7, z_8</math>values for constraint 1 and 8 to be satisfied.<br />
<br />
<br />
Combination <math>A</math>: constraint 1 already satisfied, we need <math>z_8 = 1</math> to satisfy constraint 8.<br />
<br />
Combination <math>B</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>C</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>D</math>: we need <math>z_7 = 1</math> or <math>z_8 = 1</math> to satisfy constraint 1, while constraint 8 already satisfied.<br />
<br />
Our final step is to compare the four combinations. Since our objective is to minimize <math>\sum_{j=1}^8 z_j</math> and combinations <math>B</math> and <math>C</math> require the least amount of <math>z_j</math> to be 1, they are the optimal solutions.<br />
<br />
To conclude, our two solutions are:<br />
<br />
<math>Solution 1: z_1 = 1, z_3 = 1, z_5 = 1, z_6 = 1</math><br />
<br />
<math>Solution 2: z_2 = 1, z_3 = 1, z_4 = 1, z_5 = 1</math><br />
<br />
The minimum number of cameras that we need to install is 4.<br />
<br />
== Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
<br />
This set covering problems is concerned with maximizing the coverage of some public facilities placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city. <br />
<br />
Let <math> y_i </math> be the decision variable corresponding to choosing to build a fire station at town <math> i </math>. Let <math> S_i </math> be a subset of towns including town <math> i </math> and all its neighbors. The problem is then formulated as follows.<br />
<br />
minimize <math>\sum_{i=1}^n y_i</math> <br />
<br />
such that <math> \sum_{i\in S_i} y_i >= 1, \forall i</math> <br />
; The optimal route selection problem<br />
<br />
Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to the scarcity of the physical sensors, the problem does not allow for placing a detector on every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Specifically, giving a collection of routes '''''R''','' where each route itself is divided into segments. The segments of two routes can overlap. The goal is then to select the routes that maximize the number of covered segments.<br />
<br />
This is quite different from other applications because it results in a maximization formulation, rather than a minimization formulation. Say we want to use at most <math> k </math> routes. We want to find <math> k </math> routes that maximize the number of covered segments. Let <math> y_i </math> be the decision variable corresponding to choosing route <math> R_i </math>. The problem is then formulated as follows.<br />
<br />
maximize <math>\sum_{i=1}^N R_i</math> <br />
<br />
such that <math> \sum_{i} y_i = k </math> <br />
<br />
For a greedy approximation solution, please check the work by Ali and Dyo.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span><br />
.<br />
;The airline crew scheduling problem<br />
<br />
An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts.<sup>2,6</sup> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights. Due to the complexity of airline schedules, this problem is usually divided into two subproblems: crew pairing and crew assignment. We refer the interested reader to this survey for a detailed analysis of the formulation and algorithms that pertain to this significant application.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">8</span><br />
<br />
==Conclusion ==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#RUBIN, J. (1973). A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling. ''Transportation Science,'' ''7''(1), 34-48. Retrieved November 23, 2020, from http://www.jstor.org/stable/25767684<br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). https://doi.org/10.1007/BF01942293<br />
# Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088<br />
#Marchiori, E., & Steenbeek, A. (2000). An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling. ''EvoWorkshops''.<br />
# Petr Slavı́k. (1997). A Tight Analysis of the Greedy Algorithm for Set Cover. ''Journal of Algorithms,'', Volume 25, Issue 2, Pages 237-254 https://doi.org/10.1006/jagm.1997.0887.<br />
# Kasirzadeh, A., Saddoune, M. & Soumis, F. Airline crew scheduling: models, algorithms, and data sets. ''EURO J Transp Logist'' 6, 111–137 (2017). https://doi.org/10.1007/s13676-015-0080-x</div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=1861Set covering problem2020-11-25T19:10:28Z<p>Kha32: /* References */</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span> The problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span><br />
<br />
== Problem formulation ==<br />
The mathematical formulation of the set covering problem is define as follows. We define U = {<math> u_i</math>, ….. <math> u_m</math>} as the universe of elements and S = {<math> s_1</math>, ….,<math> s_n</math>} as a collection of subsets such that <math> s_i</math> <math>\in</math>U and the union of <math> s_i</math> covers all elements in U (i.e. <math>\cup</math><math> s_i</math> = U ). Addionally, each set <math> s_i</math> must cover at least one element of U and has associated cost <math> c</math> that is larger than zero (i.e. <math> c_i</math> > 0). The objective is to find the minimum cost sub-collection of sets X <math>\in</math> S that covers all the elements in the universe U.<br />
<br />
== Integer linear program formulation ==<br />
An integer linear program (ILP) model can be formulated for the minimum set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math> y_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
'''Objective function'''<br />
<br />
minimize <math>\sum_{i=1}^n c_i y_i</math> <br />
<br />
'''Constraints '''<br />
<br />
<math> \sum_{i=1}^n a_{ij} y_i >= 1, \forall j= 1,....,m</math> <br />
<br />
<math> y_i \in \{0, 1\}, \forall i = 1,....,n</math> <br />
<br />
The objective function <math>\sum_{i=1}^n c_i y_i</math> is defined to minimize the number of subset <math> s_i</math> that cover all elements in the universe by minimizing their total cost. The first constraint implies that every element j in the universe U must be be covered where <math> a_{ij}</math>=1 if j <math>\in</math> <math> s_i</math> and 0 otherwise. The second constraint <math> y_i \in \{0, 1\} </math> indicates that the decision variables are binary.<br />
<br />
Set covering problems are significant NP-hard optimization problems, which means that for large size instances, integer linear program algorithms can be difficult to solve in polynomial time. Therefore, there exist approximation algorithms that can solve large scale problems in polynomial time with optimal or near-optimal solutions. One of the widely used approximation algorithms for set covering is the classical greedy algorithms.<sup>7</sup><br />
<br />
== Greedy approximation algorithm ==<br />
Greedy algorithms can be used to approximate for optimal or near-optimal solutions for large scale set covering instances in polynomial solvable time. The greedy heuristics applies iterative process that, at each stage, select the largest number of uncovered elements in the universe '''U''', and delete the uncovered elements, until all elements are covered. Let '''T''' be the set that contain the covered elements, and '''U''' be the set that contain the elements of '''Y''' that still uncovered. At the beginning of the iteration, '''T''' is empty and all elements '''Y''' belong to '''U'''. We iteratively select the set of '''S''' that covers the largest number of elements in '''U''' and add it to the covered elements in '''T'''. An example of this algorithm is presented below. <br />
<br />
'''Greedy algorithm for minimum set cover example: '''<br />
<br />
<br />
==Numerical Example==<br />
Let’s consider a simple example where we assign cameras at different locations. Each location covers some areas of stadiums, and our goal is to put the least amount of cameras such that all areas of stadiums are covered. We have stadium areas from 1 to 15, and possible camera locations from 1 to 8.<br />
<br />
We are given that camera location 1 covers stadium areas {1,3,4,6,7}, camera location 2 covers stadium areas {4,7,8,12}, while the remaining camera locations and the stadium areas that the cameras can cover are given in table 1 below:<br />
{| class="wikitable"<br />
|+Table 1<br />
!Camera Location<br />
!Stadium Areas<br />
|-<br />
|1<br />
|1,3,4,6,7<br />
|-<br />
|2<br />
|4,7,8,12<br />
|-<br />
|3<br />
|2,5,9,11,13<br />
|-<br />
|4<br />
|1,2,14,15<br />
|-<br />
|5<br />
|3,6,10,12,14<br />
|-<br />
|6<br />
|8,14,15<br />
|-<br />
|7<br />
|1,2,6,11<br />
|-<br />
|8<br />
|1,2,4,6,8,12<br />
|}<br />
To reformulate the problem, we can list the stadium areas and the camera locations that cover each stadium area. For instance, stadium area 1 can be covered with camera location {1,4,7,8}, stadium area 2 can be covered with camera location {3,4,7,8}, while the rest are given in table 2 below:<br />
{| class="wikitable"<br />
|+Table 2<br />
!Stadium Area<br />
!Camera Location<br />
|-<br />
|1<br />
|1,4,7,8<br />
|-<br />
|2<br />
|3,4,7,8<br />
|-<br />
|3<br />
|1,5<br />
|-<br />
|4<br />
|1,2,8<br />
|-<br />
|5<br />
|3<br />
|-<br />
|6<br />
|1,5,7,8<br />
|-<br />
|7<br />
|1,2<br />
|-<br />
|8<br />
|2,6,8<br />
|-<br />
|9<br />
|3<br />
|-<br />
|10<br />
|5<br />
|-<br />
|11<br />
|3,7<br />
|-<br />
|12<br />
|2,5,8<br />
|-<br />
|13<br />
|3<br />
|-<br />
|14<br />
|4,5,6<br />
|-<br />
|15<br />
|4,6<br />
|}<br />
We can then represent the above information using binary values. If the stadium area <math>i</math> can be covered with camera location <math>j</math>, then we have <math>y_{ij} = 1</math>. If not,<math>y_{ij} = 0</math>. For instance, stadium area 1 is covered by camera location 1, so <math>y_{11} = 1</math>, while stadium area 1 is not covered by camera location 2, so <math>y_{12} = 0</math>. The binary variables <math>y_{ij}</math> values are given in the table below: <br />
{| class="wikitable"<br />
|+Table 3<br />
!<br />
!1<br />
!2<br />
!3<br />
!4<br />
!5<br />
!6<br />
!7<br />
!8<br />
|-<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|2<br />
|<br />
|<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|3<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|4<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|-<br />
|5<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|6<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|1<br />
|-<br />
|7<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|8<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|-<br />
|9<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|10<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|11<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|-<br />
|12<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|-<br />
|13<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|14<br />
|<br />
|<br />
|<br />
|1<br />
|1<br />
|1<br />
|<br />
|<br />
|-<br />
|15<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|<br />
|<br />
|}<br />
<br />
<br />
<br />
We introduce another binary variable <math>z_j</math> to indicate if a camera is installed at location <math>j</math>. <math>z_j = 1</math> if camera is installed at location <math>j</math>, while <math>z_j = 0</math> if not. <br />
<br />
Our objective is to minimize <math>\sum_{j=1}^8 z_j</math>. For each stadium, there’s a constraint that the stadium area <math>i</math> has to be covered by at least one camera location. For instance, for stadium area 1, we have <math>z_1 + z_4 + z_7 + z_8 \geqslant 1</math>, while for stadium 2, we have <math>z_3 + z_4 + z_7 + z_8 \geqslant 1</math>. All the 15 constraints that corresponds to 15 stadium areas are listed below:<br />
<br />
<br />
''Constraints 1 to 15:''<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>2. z_3 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>5. z_3 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>9. z_3 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>11. z_3 + z_7 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>13. z_3 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
From constraint {5,9,13}, we can obtain <math>z_3 = 1</math>. Thus we no longer need constraint 2 and 11 as they are satisfied when <math>z_3 = 1</math>. With <math>z_3 = 1</math> determined, the constraints left are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
Now if we take a look at constraint <math>10. z_5 \geqslant 1</math> so <math>z_5</math> shall equal to 1. As <math>z_5 = 1</math>, constraint {3,6,12,14} are satisfied no matter what other <math>z</math> values are taken. If we also take a look at constraint 7 and 4, if constraint 4 will be satisfied as long as constraint 7 is satisfied since <math>z</math> values are nonnegative, so constraint 4 is no longer needed. The remaining constraints are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
The next step is to focus on constraint 7 and 15. We can have at least 4 combinations of <math>z_1, z_2, z_4, z_6</math>values.<br />
<br />
<br />
<math>A: z_1 = 1, z_2 = 0, z_4 = 1, z_6 = 0</math><br />
<br />
<math>B: z_1 = 1, z_2 = 0, z_4 = 0, z_6 = 1</math><br />
<br />
<math>C: z_1 = 0, z_2 = 1, z_4 = 1, z_6 = 0</math><br />
<br />
<math>D: z_1 = 0, z_2 = 1, z_4 = 0, z_6 = 1</math><br />
<br />
<br />
We can then discuss each combination and determine <math>z_7, z_8</math>values for constraint 1 and 8 to be satisfied.<br />
<br />
<br />
Combination <math>A</math>: constraint 1 already satisfied, we need <math>z_8 = 1</math> to satisfy constraint 8.<br />
<br />
Combination <math>B</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>C</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>D</math>: we need <math>z_7 = 1</math> or <math>z_8 = 1</math> to satisfy constraint 1, while constraint 8 already satisfied.<br />
<br />
Our final step is to compare the four combinations. Since our objective is to minimize <math>\sum_{j=1}^8 z_j</math> and combinations <math>B</math> and <math>C</math> require the least amount of <math>z_j</math> to be 1, they are the optimal solutions.<br />
<br />
To conclude, our two solutions are:<br />
<br />
<math>Solution 1: z_1 = 1, z_3 = 1, z_5 = 1, z_6 = 1</math><br />
<br />
<math>Solution 2: z_2 = 1, z_3 = 1, z_4 = 1, z_5 = 1</math><br />
<br />
The minimum number of cameras that we need to install is 4.<br />
<br />
== Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
<br />
This set covering problems is concerned with maximizing the coverage of some public facilities placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city. <br />
<br />
Let <math> y_i </math> be the decision variable corresponding to choosing to build a fire station at town i. Let <math> S_i </math> be a subset of towns including town i and all its neighbors. The problem is then formulated as follows.<br />
<br />
minimize <math>\sum_{i=1}^n y_i</math> <br />
<br />
such that <math> \sum_{i\in S_i} y_i >= 1, \forall i</math> <br />
; The optimal route selection problem<br />
<br />
Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to scarcity of the physical sensors, the problem does not allow for placing a detector at every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Specifically, giving a collection of routes '''''R''','' where each route itself is divided into segments. The segments of two routes can overlap. The goal is then to select the routes that maximize number of covered segments.<br />
<br />
This is quite different from other applications because it results in a maximization formulation, rather than a minimization formulation. Say we want to use at most k routes. We want to find k routes that maximize the number of covered segments. Let <math> y_i </math> be the decision variable corresponding to choosing route <math> R_i </math>. The problem is then formulated as follows.<br />
<br />
maximize <math>\sum_{i=1}^N R_i</math> <br />
<br />
such that <math> \sum_{i} y_i = k </math> <br />
<br />
For a greedy approximation solution, please check the work by Ali and Dyo.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span><br />
.<br />
;The airline crew scheduling problem<br />
<br />
An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts.<sup>2,6</sup> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights. Due to the complexity of airline schedules, this problem is usually divided into two subproblems: crew pairing and crew assignment. We refer the interested reader to this survey for a detailed analysis of the formulation and algorithms that pertain to this significant application.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">8</span><br />
<br />
==Conclusion ==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#RUBIN, J. (1973). A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling. ''Transportation Science,'' ''7''(1), 34-48. Retrieved November 23, 2020, from http://www.jstor.org/stable/25767684<br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). https://doi.org/10.1007/BF01942293<br />
# Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088<br />
#Marchiori, E., & Steenbeek, A. (2000). An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling. ''EvoWorkshops''.<br />
# Petr Slavı́k. (1997). A Tight Analysis of the Greedy Algorithm for Set Cover. ''Journal of Algorithms,'', Volume 25, Issue 2, Pages 237-254 https://doi.org/10.1006/jagm.1997.0887.<br />
# Kasirzadeh, A., Saddoune, M. & Soumis, F. Airline crew scheduling: models, algorithms, and data sets. ''EURO J Transp Logist'' 6, 111–137 (2017). https://doi.org/10.1007/s13676-015-0080-x</div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=1860Set covering problem2020-11-25T19:06:05Z<p>Kha32: /* Applications */</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span> The problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span><br />
<br />
== Problem formulation ==<br />
The mathematical formulation of the set covering problem is define as follows. We define U = {<math> u_i</math>, ….. <math> u_m</math>} as the universe of elements and S = {<math> s_1</math>, ….,<math> s_n</math>} as a collection of subsets such that <math> s_i</math> <math>\in</math>U and the union of <math> s_i</math> covers all elements in U (i.e. <math>\cup</math><math> s_i</math> = U ). Addionally, each set <math> s_i</math> must cover at least one element of U and has associated cost <math> c</math> that is larger than zero (i.e. <math> c_i</math> > 0). The objective is to find the minimum cost sub-collection of sets X <math>\in</math> S that covers all the elements in the universe U.<br />
<br />
== Integer linear program formulation ==<br />
An integer linear program (ILP) model can be formulated for the minimum set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math> y_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
'''Objective function'''<br />
<br />
minimize <math>\sum_{i=1}^n c_i y_i</math> <br />
<br />
'''Constraints '''<br />
<br />
<math> \sum_{i=1}^n a_{ij} y_i >= 1, \forall j= 1,....,m</math> <br />
<br />
<math> y_i \in \{0, 1\}, \forall i = 1,....,n</math> <br />
<br />
The objective function <math>\sum_{i=1}^n c_i y_i</math> is defined to minimize the number of subset <math> s_i</math> that cover all elements in the universe by minimizing their total cost. The first constraint implies that every element j in the universe U must be be covered where <math> a_{ij}</math>=1 if j <math>\in</math> <math> s_i</math> and 0 otherwise. The second constraint <math> y_i \in \{0, 1\} </math> indicates that the decision variables are binary.<br />
<br />
Set covering problems are significant NP-hard optimization problems, which means that for large size instances, integer linear program algorithms can be difficult to solve in polynomial time. Therefore, there exist approximation algorithms that can solve large scale problems in polynomial time with optimal or near-optimal solutions. One of the widely used approximation algorithms for set covering is the classical greedy algorithms.<sup>7</sup><br />
<br />
== Greedy approximation algorithm ==<br />
Greedy algorithms can be used to approximate for optimal or near-optimal solutions for large scale set covering instances in polynomial solvable time. The greedy heuristics applies iterative process that, at each stage, select the largest number of uncovered elements in the universe '''U''', and delete the uncovered elements, until all elements are covered. Let '''T''' be the set that contain the covered elements, and '''U''' be the set that contain the elements of '''Y''' that still uncovered. At the beginning of the iteration, '''T''' is empty and all elements '''Y''' belong to '''U'''. We iteratively select the set of '''S''' that covers the largest number of elements in '''U''' and add it to the covered elements in '''T'''. An example of this algorithm is presented below. <br />
<br />
'''Greedy algorithm for minimum set cover example: '''<br />
<br />
<br />
==Numerical Example==<br />
Let’s consider a simple example where we assign cameras at different locations. Each location covers some areas of stadiums, and our goal is to put the least amount of cameras such that all areas of stadiums are covered. We have stadium areas from 1 to 15, and possible camera locations from 1 to 8.<br />
<br />
We are given that camera location 1 covers stadium areas {1,3,4,6,7}, camera location 2 covers stadium areas {4,7,8,12}, while the remaining camera locations and the stadium areas that the cameras can cover are given in table 1 below:<br />
{| class="wikitable"<br />
|+Table 1<br />
!Camera Location<br />
!Stadium Areas<br />
|-<br />
|1<br />
|1,3,4,6,7<br />
|-<br />
|2<br />
|4,7,8,12<br />
|-<br />
|3<br />
|2,5,9,11,13<br />
|-<br />
|4<br />
|1,2,14,15<br />
|-<br />
|5<br />
|3,6,10,12,14<br />
|-<br />
|6<br />
|8,14,15<br />
|-<br />
|7<br />
|1,2,6,11<br />
|-<br />
|8<br />
|1,2,4,6,8,12<br />
|}<br />
To reformulate the problem, we can list the stadium areas and the camera locations that cover each stadium area. For instance, stadium area 1 can be covered with camera location {1,4,7,8}, stadium area 2 can be covered with camera location {3,4,7,8}, while the rest are given in table 2 below:<br />
{| class="wikitable"<br />
|+Table 2<br />
!Stadium Area<br />
!Camera Location<br />
|-<br />
|1<br />
|1,4,7,8<br />
|-<br />
|2<br />
|3,4,7,8<br />
|-<br />
|3<br />
|1,5<br />
|-<br />
|4<br />
|1,2,8<br />
|-<br />
|5<br />
|3<br />
|-<br />
|6<br />
|1,5,7,8<br />
|-<br />
|7<br />
|1,2<br />
|-<br />
|8<br />
|2,6,8<br />
|-<br />
|9<br />
|3<br />
|-<br />
|10<br />
|5<br />
|-<br />
|11<br />
|3,7<br />
|-<br />
|12<br />
|2,5,8<br />
|-<br />
|13<br />
|3<br />
|-<br />
|14<br />
|4,5,6<br />
|-<br />
|15<br />
|4,6<br />
|}<br />
We can then represent the above information using binary values. If the stadium area <math>i</math> can be covered with camera location <math>j</math>, then we have <math>y_{ij} = 1</math>. If not,<math>y_{ij} = 0</math>. For instance, stadium area 1 is covered by camera location 1, so <math>y_{11} = 1</math>, while stadium area 1 is not covered by camera location 2, so <math>y_{12} = 0</math>. The binary variables <math>y_{ij}</math> values are given in the table below: <br />
{| class="wikitable"<br />
|+Table 3<br />
!<br />
!1<br />
!2<br />
!3<br />
!4<br />
!5<br />
!6<br />
!7<br />
!8<br />
|-<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|2<br />
|<br />
|<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|3<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|4<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|-<br />
|5<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|6<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|1<br />
|-<br />
|7<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|8<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|-<br />
|9<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|10<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|11<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|-<br />
|12<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|-<br />
|13<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|14<br />
|<br />
|<br />
|<br />
|1<br />
|1<br />
|1<br />
|<br />
|<br />
|-<br />
|15<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|<br />
|<br />
|}<br />
<br />
<br />
<br />
We introduce another binary variable <math>z_j</math> to indicate if a camera is installed at location <math>j</math>. <math>z_j = 1</math> if camera is installed at location <math>j</math>, while <math>z_j = 0</math> if not. <br />
<br />
Our objective is to minimize <math>\sum_{j=1}^8 z_j</math>. For each stadium, there’s a constraint that the stadium area <math>i</math> has to be covered by at least one camera location. For instance, for stadium area 1, we have <math>z_1 + z_4 + z_7 + z_8 \geqslant 1</math>, while for stadium 2, we have <math>z_3 + z_4 + z_7 + z_8 \geqslant 1</math>. All the 15 constraints that corresponds to 15 stadium areas are listed below:<br />
<br />
<br />
''Constraints 1 to 15:''<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>2. z_3 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>5. z_3 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>9. z_3 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>11. z_3 + z_7 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>13. z_3 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
From constraint {5,9,13}, we can obtain <math>z_3 = 1</math>. Thus we no longer need constraint 2 and 11 as they are satisfied when <math>z_3 = 1</math>. With <math>z_3 = 1</math> determined, the constraints left are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
Now if we take a look at constraint <math>10. z_5 \geqslant 1</math> so <math>z_5</math> shall equal to 1. As <math>z_5 = 1</math>, constraint {3,6,12,14} are satisfied no matter what other <math>z</math> values are taken. If we also take a look at constraint 7 and 4, if constraint 4 will be satisfied as long as constraint 7 is satisfied since <math>z</math> values are nonnegative, so constraint 4 is no longer needed. The remaining constraints are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
The next step is to focus on constraint 7 and 15. We can have at least 4 combinations of <math>z_1, z_2, z_4, z_6</math>values.<br />
<br />
<br />
<math>A: z_1 = 1, z_2 = 0, z_4 = 1, z_6 = 0</math><br />
<br />
<math>B: z_1 = 1, z_2 = 0, z_4 = 0, z_6 = 1</math><br />
<br />
<math>C: z_1 = 0, z_2 = 1, z_4 = 1, z_6 = 0</math><br />
<br />
<math>D: z_1 = 0, z_2 = 1, z_4 = 0, z_6 = 1</math><br />
<br />
<br />
We can then discuss each combination and determine <math>z_7, z_8</math>values for constraint 1 and 8 to be satisfied.<br />
<br />
<br />
Combination <math>A</math>: constraint 1 already satisfied, we need <math>z_8 = 1</math> to satisfy constraint 8.<br />
<br />
Combination <math>B</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>C</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>D</math>: we need <math>z_7 = 1</math> or <math>z_8 = 1</math> to satisfy constraint 1, while constraint 8 already satisfied.<br />
<br />
Our final step is to compare the four combinations. Since our objective is to minimize <math>\sum_{j=1}^8 z_j</math> and combinations <math>B</math> and <math>C</math> require the least amount of <math>z_j</math> to be 1, they are the optimal solutions.<br />
<br />
To conclude, our two solutions are:<br />
<br />
<math>Solution 1: z_1 = 1, z_3 = 1, z_5 = 1, z_6 = 1</math><br />
<br />
<math>Solution 2: z_2 = 1, z_3 = 1, z_4 = 1, z_5 = 1</math><br />
<br />
The minimum number of cameras that we need to install is 4.<br />
<br />
== Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
<br />
This set covering problems is concerned with maximizing the coverage of some public facilities placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city. <br />
<br />
Let <math> y_i </math> be the decision variable corresponding to choosing to build a fire station at town i. Let <math> S_i </math> be a subset of towns including town i and all its neighbors. The problem is then formulated as follows.<br />
<br />
minimize <math>\sum_{i=1}^n y_i</math> <br />
<br />
such that <math> \sum_{i\in S_i} y_i >= 1, \forall i</math> <br />
; The optimal route selection problem<br />
<br />
Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to scarcity of the physical sensors, the problem does not allow for placing a detector at every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Specifically, giving a collection of routes '''''R''','' where each route itself is divided into segments. The segments of two routes can overlap. The goal is then to select the routes that maximize number of covered segments.<br />
<br />
This is quite different from other applications because it results in a maximization formulation, rather than a minimization formulation. Say we want to use at most k routes. We want to find k routes that maximize the number of covered segments. Let <math> y_i </math> be the decision variable corresponding to choosing route <math> R_i </math>. The problem is then formulated as follows.<br />
<br />
maximize <math>\sum_{i=1}^N R_i</math> <br />
<br />
such that <math> \sum_{i} y_i = k </math> <br />
<br />
For a greedy approximation solution, please check the work by Ali and Dyo.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span><br />
.<br />
;The airline crew scheduling problem<br />
<br />
An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts.<sup>2,6</sup> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights. Due to the complexity of airline schedules, this problem is usually divided into two subproblems: crew pairing and crew assignment. We refer the interested reader to this survey for a detailed analysis of the formulation and algorithms that pertain to this significant application.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">8</span><br />
<br />
==Conclusion ==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#RUBIN, J. (1973). A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling. ''Transportation Science,'' ''7''(1), 34-48. Retrieved November 23, 2020, from <nowiki>http://www.jstor.org/stable/25767684</nowiki><br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). <nowiki>https://doi.org/10.1007/BF01942293</nowiki><br />
# Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088<br />
#Marchiori, E., & Steenbeek, A. (2000). An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling. ''EvoWorkshops''.<br />
# Petr Slavı́k. (1997). A Tight Analysis of the Greedy Algorithm for Set Cover. ''Journal of Algorithms,'', Volume 25, Issue 2, Pages 237-254 <nowiki>https://doi.org/10.1006/jagm.1997.0887.</nowiki></div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=1858Set covering problem2020-11-25T18:53:59Z<p>Kha32: /* Applications */ added mathematical descriptions</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span> The problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span><br />
<br />
== Problem formulation ==<br />
The mathematical formulation of the set covering problem is define as follows. We define U = {<math> u_i</math>, ….. <math> u_m</math>} as the universe of elements and S = {<math> s_1</math>, ….,<math> s_n</math>} as a collection of subsets such that <math> s_i</math> <math>\in</math>U and the union of <math> s_i</math> covers all elements in U (i.e. <math>\cup</math><math> s_i</math> = U ). Addionally, each set <math> s_i</math> must cover at least one element of U and has associated cost <math> c</math> that is larger than zero (i.e. <math> c_i</math> > 0). The objective is to find the minimum cost sub-collection of sets X <math>\in</math> S that covers all the elements in the universe U.<br />
<br />
== Integer linear program formulation ==<br />
An integer linear program (ILP) model can be formulated for the minimum set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math> y_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
'''Objective function'''<br />
<br />
minimize <math>\sum_{i=1}^n c_i y_i</math> <br />
<br />
'''Constraints '''<br />
<br />
<math> \sum_{i=1}^n a_{ij} y_i >= 1, \forall j= 1,....,m</math> <br />
<br />
<math> y_i \in \{0, 1\}, \forall i = 1,....,n</math> <br />
<br />
The objective function <math>\sum_{i=1}^n c_i y_i</math> is defined to minimize the number of subset <math> s_i</math> that cover all elements in the universe by minimizing its total cost. The first constraint implies that every element j in the universe U must be be covered where <math> a_{ij}</math>=1 if j <math>\in</math> <math> s_i</math> and 0 otherwise. The second constraint <math> y_i \in \{0, 1\} </math> indicates that the decision variables are binary.<br />
<br />
Set covering problems are significant NP-hard optimization problems, which means that for large size instances, integer linear program algorithms can be difficult to solve in polynomial time. Therefore, there exist approximation algorithms that can solve large scale problems in polynomial time with optimal or near-optimal solutions. One of the widely used approximation algorithms for set covering is the classical greedy algorithms.<sup>7</sup><br />
<br />
== Greedy approximation algorithm ==<br />
Greedy algorithms can be used to approximate for optimal or near-optimal solutions for large scale set covering instances in polynomial solvable time. The greedy heuristics applies iterative process that, at each stage, select the largest number of uncovered elements in the universe '''U''', and delete the uncovered elements, until all elements are covered. Let '''T''' be the set that contain the covered elements, and '''U''' be the set that contain the elements of '''Y''' that still uncovered. At the beginning of the iteration, '''T''' is empty and all elements '''Y''' belong to '''U'''. We iteratively select the set of '''S''' that covers the largest number of elements in '''U''' and add it to the covered elements in '''T'''. An example of this algorithm is presented below. <br />
<br />
'''Greedy algorithm for minimum set cover example: '''<br />
<br />
<br />
==Numerical Example==<br />
Let’s consider a simple example where we assign cameras at different locations. Each location covers some areas of stadiums, and our goal is to put the least amount of cameras such that all areas of stadiums are covered. We have stadium areas from 1 to 15, and possible camera locations from 1 to 8.<br />
<br />
We are given that camera location 1 covers stadium areas {1,3,4,6,7}, camera location 2 covers stadium areas {4,7,8,12}, while the remaining camera locations and the stadium areas that the cameras can cover are given in table 1 below:<br />
{| class="wikitable"<br />
|+Table 1<br />
!Camera Location<br />
!Stadium Areas<br />
|-<br />
|1<br />
|1,3,4,6,7<br />
|-<br />
|2<br />
|4,7,8,12<br />
|-<br />
|3<br />
|2,5,9,11,13<br />
|-<br />
|4<br />
|1,2,14,15<br />
|-<br />
|5<br />
|3,6,10,12,14<br />
|-<br />
|6<br />
|8,14,15<br />
|-<br />
|7<br />
|1,2,6,11<br />
|-<br />
|8<br />
|1,2,4,6,8,12<br />
|}<br />
To reformulate the problem, we can list the stadium areas and the camera locations that cover each stadium area. For instance, stadium area 1 can be covered with camera location {1,4,7,8}, stadium area 2 can be covered with camera location {3,4,7,8}, while the rest are given in table 2 below:<br />
{| class="wikitable"<br />
|+Table 2<br />
!Stadium Area<br />
!Camera Location<br />
|-<br />
|1<br />
|1,4,7,8<br />
|-<br />
|2<br />
|3,4,7,8<br />
|-<br />
|3<br />
|1,5<br />
|-<br />
|4<br />
|1,2,8<br />
|-<br />
|5<br />
|3<br />
|-<br />
|6<br />
|1,5,7,8<br />
|-<br />
|7<br />
|1,2<br />
|-<br />
|8<br />
|2,6,8<br />
|-<br />
|9<br />
|3<br />
|-<br />
|10<br />
|5<br />
|-<br />
|11<br />
|3,7<br />
|-<br />
|12<br />
|2,5,8<br />
|-<br />
|13<br />
|3<br />
|-<br />
|14<br />
|4,5,6<br />
|-<br />
|15<br />
|4,6<br />
|}<br />
We can then represent the above information using binary values. If the stadium area <math>i</math> can be covered with camera location <math>j</math>, then we have <math>y_{ij} = 1</math>. If not,<math>y_{ij} = 0</math>. For instance, stadium area 1 is covered by camera location 1, so <math>y_{11} = 1</math>, while stadium area 1 is not covered by camera location 2, so <math>y_{12} = 0</math>. The binary variables <math>y_{ij}</math> values are given in the table below: <br />
{| class="wikitable"<br />
|+Table 3<br />
!<br />
!1<br />
!2<br />
!3<br />
!4<br />
!5<br />
!6<br />
!7<br />
!8<br />
|-<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|2<br />
|<br />
|<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|3<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|4<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|-<br />
|5<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|6<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|1<br />
|-<br />
|7<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|8<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|-<br />
|9<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|10<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|11<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|-<br />
|12<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|-<br />
|13<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|14<br />
|<br />
|<br />
|<br />
|1<br />
|1<br />
|1<br />
|<br />
|<br />
|-<br />
|15<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|<br />
|<br />
|}<br />
<br />
<br />
<br />
We introduce another binary variable <math>z_j</math> to indicate if a camera is installed at location <math>j</math>. <math>z_j = 1</math> if camera is installed at location <math>j</math>, while <math>z_j = 0</math> if not. <br />
<br />
Our objective is to minimize <math>\sum_{j=1}^8 z_j</math>. For each stadium, there’s a constraint that the stadium area <math>i</math> has to be covered by at least one camera location. For instance, for stadium area 1, we have <math>z_1 + z_4 + z_7 + z_8 \geqslant 1</math>, while for stadium 2, we have <math>z_3 + z_4 + z_7 + z_8 \geqslant 1</math>. All the 15 constraints that corresponds to 15 stadium areas are listed below:<br />
<br />
<br />
''Constraints 1 to 15:''<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>2. z_3 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>5. z_3 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>9. z_3 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>11. z_3 + z_7 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>13. z_3 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
From constraint {5,9,13}, we can obtain <math>z_3 = 1</math>. Thus we no longer need constraint 2 and 11 as they are satisfied when <math>z_3 = 1</math>. With <math>z_3 = 1</math> determined, the constraints left are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
Now if we take a look at constraint <math>10. z_5 \geqslant 1</math> so <math>z_5</math> shall equal to 1. As <math>z_5 = 1</math>, constraint {3,6,12,14} are satisfied no matter what other <math>z</math> values are taken. If we also take a look at constraint 7 and 4, if constraint 4 will be satisfied as long as constraint 7 is satisfied since <math>z</math> values are nonnegative, so constraint 4 is no longer needed. The remaining constraints are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
The next step is to focus on constraint 7 and 15. We can have at least 4 combinations of <math>z_1, z_2, z_4, z_6</math>values.<br />
<br />
<br />
<math>A: z_1 = 1, z_2 = 0, z_4 = 1, z_6 = 0</math><br />
<br />
<math>B: z_1 = 1, z_2 = 0, z_4 = 0, z_6 = 1</math><br />
<br />
<math>C: z_1 = 0, z_2 = 1, z_4 = 1, z_6 = 0</math><br />
<br />
<math>D: z_1 = 0, z_2 = 1, z_4 = 0, z_6 = 1</math><br />
<br />
<br />
We can then discuss each combination and determine <math>z_7, z_8</math>values for constraint 1 and 8 to be satisfied.<br />
<br />
<br />
Combination <math>A</math>: constraint 1 already satisfied, we need <math>z_8 = 1</math> to satisfy constraint 8.<br />
<br />
Combination <math>B</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>C</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>D</math>: we need <math>z_7 = 1</math> or <math>z_8 = 1</math> to satisfy constraint 1, while constraint 8 already satisfied.<br />
<br />
Our final step is to compare the four combinations. Since our objective is to minimize <math>\sum_{j=1}^8 z_j</math> and combinations <math>B</math> and <math>C</math> require the least amount of <math>z_j</math> to be 1, they are the optimal solutions.<br />
<br />
To conclude, our two solutions are:<br />
<br />
<math>Solution 1: z_1 = 1, z_3 = 1, z_5 = 1, z_6 = 1</math><br />
<br />
<math>Solution 2: z_2 = 1, z_3 = 1, z_4 = 1, z_5 = 1</math><br />
<br />
The minimum number of cameras that we need to install is 4.<br />
<br />
== Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
<br />
This set covering problems is concerned with maximizing the coverage of some public facilities placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city. <br />
<br />
Let <math> y_i </math> be the decision variable corresponding to choosing to build a fire station at town i. Let <math> S_i </math> be a subset of towns including town i and all its neighbors. The problem is then formulated as follows.<br />
<br />
minimize <math>\sum_{i=1}^n y_i</math> <br />
<br />
such that <math> \sum_{i\in S_i} y_i >= 1, \forall i</math> <br />
; The optimal route selection problem<br />
<br />
Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to scarcity of the physical sensors, the problem does not allow for placing a detector at every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Specifically, giving a collection of routes '''''R''','' where each route itself is divided into segments. The segments of two routes can overlap. The goal is then to select the routes that maximize number of covered segments.<br />
<br />
This is quite different from other applications because it results in a maximization formulation, rather than a minimization formulation. Say we want to use at most k routes. We want to find k routes that maximize the number of covered segments. Let <math> y_i </math> be the decision variable corresponding to choosing route <math> R_i </math>. The problem is then formulated as follows.<br />
<br />
maximize <math>\sum_{i=1}^N R_i</math> <br />
<br />
such that <math> \sum_{i} y_i = k </math> <br />
<br />
For a greedy approximation solution, please check the work by Ali and Dyo.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span><br />
<br />
;The airline crew scheduling problem<br />
<br />
An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts.<sup>2,6</sup> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights.<br />
<br />
==Conclusion ==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#RUBIN, J. (1973). A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling. ''Transportation Science,'' ''7''(1), 34-48. Retrieved November 23, 2020, from <nowiki>http://www.jstor.org/stable/25767684</nowiki><br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). <nowiki>https://doi.org/10.1007/BF01942293</nowiki><br />
# Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088<br />
#Marchiori, E., & Steenbeek, A. (2000). An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling. ''EvoWorkshops''.<br />
# Petr Slavı́k. (1997). A Tight Analysis of the Greedy Algorithm for Set Cover. ''Journal of Algorithms,'', Volume 25, Issue 2, Pages 237-254 <nowiki>https://doi.org/10.1006/jagm.1997.0887.</nowiki></div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=1841Set covering problem2020-11-25T16:04:03Z<p>Kha32: /* Applications */</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span> The problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span><br />
<br />
== Problem formulation ==<br />
The mathematical formulation of the set covering problem is define as follows. We define U = {<math> u_i</math>, ….. <math> u_m</math>} as the universe of elements and S = {<math> s_1</math>, ….,<math> s_n</math>} as a collection of subsets such that <math> s_i</math> <math>\in</math>U and the union of <math> s_i</math> covers all elements in U (i.e. <math>\cup</math><math> s_i</math> = U ). Addionally, each set <math> s_i</math> must cover at least one element of U and has associated cost <math> c</math> that is larger than zero (i.e. <math> c_i</math> > 0). The objective is to find the minimum cost sub-collection of sets X <math>\in</math> S that covers all the elements in the universe U.<br />
<br />
== Integer linear program formulation ==<br />
An integer linear program (ILP) model can be formulated for the minimum set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math> y_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
'''Objective function'''<br />
<br />
minimize <math>\sum_{i=1}^n c_i y_i</math> <br />
<br />
'''Constraints '''<br />
<br />
<math> \sum_{i=1}^n a_{ij} y_i >= 1, \forall j= 1,....,m</math> <br />
<br />
<math> y_i \in \{0, 1\}, \forall i = 1,....,n</math> <br />
<br />
The objective function <math>\sum_{i=1}^n c_i y_i</math> is defined to minimize the number of subset <math> s_i</math> that cover all elements in the universe by minimizing its total cost. The first constraint implies that every element j in the universe U must be be covered where <math> a_{ij}</math>=1 if j <math>\in</math> <math> s_i</math> and 0 otherwise. The second constraint <math> y_i \in \{0, 1\} </math> indicates that the decision variables are binary.<br />
<br />
Set covering problems are significant NP-hard optimization problems, which means that for large size instances, integer linear program algorithms can be difficult to solve in polynomial time. Therefore, there exist approximation algorithms that can solve large scale problems in polynomial time with optimal or near-optimal solutions. One of the widely used approximation algorithms for set covering is the classical greedy algorithms.<sup>7</sup><br />
<br />
== Greedy approximation algorithm ==<br />
Greedy algorithms can be used to approximate for optimal or near-optimal solutions for large scale set covering instances in polynomial solvable time. The greedy heuristics applies iterative process that, at each stage, select the largest number of uncovered elements in the universe '''U''', and delete the uncovered elements, until all elements are covered. Let '''T''' be the set that contain the covered elements, and '''U''' be the set that contain the elements of '''Y''' that still uncovered. At the beginning of the iteration, '''T''' is empty and all elements '''Y''' belong to '''U'''. We iteratively select the set of '''S''' that covers the largest number of elements in '''U''' and add it to the covered elements in '''T'''. An example of this algorithm is presented below. <br />
<br />
'''Greedy algorithm for minimum set cover example: '''<br />
<br />
<br />
==Numerical Example==<br />
Let’s consider a simple example where we assign cameras at different locations. Each location covers some areas of stadiums, and our goal is to put the least amount of cameras such that all areas of stadiums are covered. We have stadium areas from 1 to 15, and possible camera locations from 1 to 8.<br />
<br />
We are given that camera location 1 covers stadium areas {1,3,4,6,7}, camera location 2 covers stadium areas {4,7,8,12}, while the remaining camera locations and the stadium areas that the cameras can cover are given in table 1 below:<br />
{| class="wikitable"<br />
|+Table 1<br />
!Camera Location<br />
!Stadium Areas<br />
|-<br />
|1<br />
|1,3,4,6,7<br />
|-<br />
|2<br />
|4,7,8,12<br />
|-<br />
|3<br />
|2,5,9,11,13<br />
|-<br />
|4<br />
|1,2,14,15<br />
|-<br />
|5<br />
|3,6,10,12,14<br />
|-<br />
|6<br />
|8,14,15<br />
|-<br />
|7<br />
|1,2,6,11<br />
|-<br />
|8<br />
|1,2,4,6,8,12<br />
|}<br />
To reformulate the problem, we can list the stadium areas and the camera locations that cover each stadium area. For instance, stadium area 1 can be covered with camera location {1,4,7,8}, stadium area 2 can be covered with camera location {3,4,7,8}, while the rest are given in table 2 below:<br />
{| class="wikitable"<br />
|+Table 2<br />
!Stadium Area<br />
!Camera Location<br />
|-<br />
|1<br />
|1,4,7,8<br />
|-<br />
|2<br />
|3,4,7,8<br />
|-<br />
|3<br />
|1,5<br />
|-<br />
|4<br />
|1,2,8<br />
|-<br />
|5<br />
|3<br />
|-<br />
|6<br />
|1,5,7,8<br />
|-<br />
|7<br />
|1,2<br />
|-<br />
|8<br />
|2,6,8<br />
|-<br />
|9<br />
|3<br />
|-<br />
|10<br />
|5<br />
|-<br />
|11<br />
|3,7<br />
|-<br />
|12<br />
|2,5,8<br />
|-<br />
|13<br />
|3<br />
|-<br />
|14<br />
|4,5,6<br />
|-<br />
|15<br />
|4,6<br />
|}<br />
We can then represent the above information using binary values. If the stadium area <math>i</math> can be covered with camera location <math>j</math>, then we have <math>y_{ij} = 1</math>. If not,<math>y_{ij} = 0</math>. For instance, stadium area 1 is covered by camera location 1, so <math>y_{11} = 1</math>, while stadium area 1 is not covered by camera location 2, so <math>y_{12} = 0</math>. The binary variables <math>y_{ij}</math> values are given in the table below: <br />
{| class="wikitable"<br />
|+Table 3<br />
!<br />
!1<br />
!2<br />
!3<br />
!4<br />
!5<br />
!6<br />
!7<br />
!8<br />
|-<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|2<br />
|<br />
|<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|3<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|4<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|-<br />
|5<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|6<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|1<br />
|-<br />
|7<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|8<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|-<br />
|9<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|10<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|11<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|-<br />
|12<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|-<br />
|13<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|14<br />
|<br />
|<br />
|<br />
|1<br />
|1<br />
|1<br />
|<br />
|<br />
|-<br />
|15<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|<br />
|<br />
|}<br />
<br />
<br />
<br />
We introduce another binary variable <math>z_j</math> to indicate if a camera is installed at location <math>j</math>. <math>z_j = 1</math> if camera is installed at location <math>j</math>, while <math>z_j = 0</math> if not. <br />
<br />
Our objective is to minimize <math>\sum_{j=1}^8 z_j</math>. For each stadium, there’s a constraint that the stadium area <math>i</math> has to be covered by at least one camera location. For instance, for stadium area 1, we have <math>z_1 + z_4 + z_7 + z_8 \geqslant 1</math>, while for stadium 2, we have <math>z_3 + z_4 + z_7 + z_8 \geqslant 1</math>. All the 15 constraints that corresponds to 15 stadium areas are listed below:<br />
<br />
<br />
''Constraints 1 to 15:''<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>2. z_3 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>5. z_3 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>9. z_3 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>11. z_3 + z_7 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>13. z_3 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
From constraint {5,9,13}, we can obtain <math>z_3 = 1</math>. Thus we no longer need constraint 2 and 11 as they are satisfied when <math>z_3 = 1</math>. With <math>z_3 = 1</math> determined, the constraints left are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
Now if we take a look at constraint <math>10. z_5 \geqslant 1</math> so <math>z_5</math> shall equal to 1. As <math>z_5 = 1</math>, constraint {3,6,12,14} are satisfied no matter what other <math>z</math> values are taken. If we also take a look at constraint 7 and 4, if constraint 4 will be satisfied as long as constraint 7 is satisfied since <math>z</math> values are nonnegative, so constraint 4 is no longer needed. The remaining constraints are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
The next step is to focus on constraint 7 and 15. We can have at least 4 combinations of <math>z_1, z_2, z_4, z_6</math>values.<br />
<br />
<br />
<math>A: z_1 = 1, z_2 = 0, z_4 = 1, z_6 = 0</math><br />
<br />
<math>B: z_1 = 1, z_2 = 0, z_4 = 0, z_6 = 1</math><br />
<br />
<math>C: z_1 = 0, z_2 = 1, z_4 = 1, z_6 = 0</math><br />
<br />
<math>D: z_1 = 0, z_2 = 1, z_4 = 0, z_6 = 1</math><br />
<br />
<br />
We can then discuss each combination and determine <math>z_7, z_8</math>values for constraint 1 and 8 to be satisfied.<br />
<br />
<br />
Combination <math>A</math>: constraint 1 already satisfied, we need <math>z_8 = 1</math> to satisfy constraint 8.<br />
<br />
Combination <math>B</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>C</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>D</math>: we need <math>z_7 = 1</math> or <math>z_8 = 1</math> to satisfy constraint 1, while constraint 8 already satisfied.<br />
<br />
Our final step is to compare the four combinations. Since our objective is to minimize <math>\sum_{j=1}^8 z_j</math> and combinations <math>B</math> and <math>C</math> require the least amount of <math>z_j</math> to be 1, they are the optimal solutions.<br />
<br />
To conclude, our two solutions are:<br />
<br />
<math>Solution 1: z_1 = 1, z_3 = 1, z_5 = 1, z_6 = 1</math><br />
<br />
<math>Solution 2: z_2 = 1, z_3 = 1, z_4 = 1, z_5 = 1</math><br />
<br />
The minimum number of cameras that we need to install is 4.<br />
<br />
== Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
<br />
This set covering problems is concerned with maximizing the coverage of some public facilities placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city. <br />
<br />
Let <math> y_i </math> be the decision variable corresponding to choosing to build a fire station at town i. Let <math> S_i </math> be a subset of towns including town i and all its neighbors. The problem is then formulated as follows.<br />
<br />
minimize <math>\sum_{i=1}^n y_i</math> <br />
<br />
such that<br />
<br />
<math> \sum_{i\in S_i} y_i >= 1, \forall i</math> <br />
; The optimal route selection problem<br />
<br />
Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to scarcity of the physical sensors, the problem does not allow for placing a detector at every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Specifically, giving a collection of routes '''''U''','' where each route itself is divided into segments. The segments of two routes can overlap. The goal is then to select the routes that maximize number of covered segments.<br />
;The airline crew scheduling problem<br />
<br />
An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts.<sup>2,6</sup> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights.<br />
<br />
==Conclusion ==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#RUBIN, J. (1973). A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling. ''Transportation Science,'' ''7''(1), 34-48. Retrieved November 23, 2020, from <nowiki>http://www.jstor.org/stable/25767684</nowiki><br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). <nowiki>https://doi.org/10.1007/BF01942293</nowiki><br />
# Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088<br />
#Marchiori, E., & Steenbeek, A. (2000). An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling. ''EvoWorkshops''.<br />
# Petr Slavı́k. (1997). A Tight Analysis of the Greedy Algorithm for Set Cover. ''Journal of Algorithms,'', Volume 25, Issue 2, Pages 237-254 <nowiki>https://doi.org/10.1006/jagm.1997.0887.</nowiki></div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=1840Set covering problem2020-11-25T16:00:11Z<p>Kha32: /* Applications */</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span> The problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span><br />
<br />
== Problem formulation ==<br />
The mathematical formulation of the set covering problem is define as follows. We define U = {<math> u_i</math>, ….. <math> u_m</math>} as the universe of elements and S = {<math> s_1</math>, ….,<math> s_n</math>} as a collection of subsets such that <math> s_i</math> <math>\in</math>U and the union of <math> s_i</math> covers all elements in U (i.e. <math>\cup</math><math> s_i</math> = U ). Addionally, each set <math> s_i</math> must cover at least one element of U and has associated cost <math> c</math> that is larger than zero (i.e. <math> c_i</math> > 0). The objective is to find the minimum cost sub-collection of sets X <math>\in</math> S that covers all the elements in the universe U.<br />
<br />
== Integer linear program formulation ==<br />
An integer linear program (ILP) model can be formulated for the minimum set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math> y_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
'''Objective function'''<br />
<br />
minimize <math>\sum_{i=1}^n c_i y_i</math> <br />
<br />
'''Constraints '''<br />
<br />
<math> \sum_{i=1}^n a_{ij} y_i >= 1, \forall j= 1,....,m</math> <br />
<br />
<math> y_i \in \{0, 1\}, \forall i = 1,....,n</math> <br />
<br />
The objective function <math>\sum_{i=1}^n c_i y_i</math> is defined to minimize the number of subset <math> s_i</math> that cover all elements in the universe by minimizing its total cost. The first constraint implies that every element j in the universe U must be be covered where <math> a_{ij}</math>=1 if j <math>\in</math> <math> s_i</math> and 0 otherwise. The second constraint <math> y_i \in \{0, 1\} </math> indicates that the decision variables are binary.<br />
<br />
Set covering problems are significant NP-hard optimization problems, which means that for large size instances, integer linear program algorithms can be difficult to solve in polynomial time. Therefore, there exist approximation algorithms that can solve large scale problems in polynomial time with optimal or near-optimal solutions. One of the widely used approximation algorithms for set covering is the classical greedy algorithms.<sup>7</sup><br />
<br />
== Greedy approximation algorithm ==<br />
Greedy algorithms can be used to approximate for optimal or near-optimal solutions for large scale set covering instances in polynomial solvable time. The greedy heuristics applies iterative process that, at each stage, select the largest number of uncovered elements in the universe '''U''', and delete the uncovered elements, until all elements are covered. Let '''T''' be the set that contain the covered elements, and '''U''' be the set that contain the elements of '''Y''' that still uncovered. At the beginning of the iteration, '''T''' is empty and all elements '''Y''' belong to '''U'''. We iteratively select the set of '''S''' that covers the largest number of elements in '''U''' and add it to the covered elements in '''T'''. An example of this algorithm is presented below. <br />
<br />
'''Greedy algorithm for minimum set cover example: '''<br />
<br />
<br />
==Numerical Example==<br />
Let’s consider a simple example where we assign cameras at different locations. Each location covers some areas of stadiums, and our goal is to put the least amount of cameras such that all areas of stadiums are covered. We have stadium areas from 1 to 15, and possible camera locations from 1 to 8.<br />
<br />
We are given that camera location 1 covers stadium areas {1,3,4,6,7}, camera location 2 covers stadium areas {4,7,8,12}, while the remaining camera locations and the stadium areas that the cameras can cover are given in table 1 below:<br />
{| class="wikitable"<br />
|+Table 1<br />
!Camera Location<br />
!Stadium Areas<br />
|-<br />
|1<br />
|1,3,4,6,7<br />
|-<br />
|2<br />
|4,7,8,12<br />
|-<br />
|3<br />
|2,5,9,11,13<br />
|-<br />
|4<br />
|1,2,14,15<br />
|-<br />
|5<br />
|3,6,10,12,14<br />
|-<br />
|6<br />
|8,14,15<br />
|-<br />
|7<br />
|1,2,6,11<br />
|-<br />
|8<br />
|1,2,4,6,8,12<br />
|}<br />
To reformulate the problem, we can list the stadium areas and the camera locations that cover each stadium area. For instance, stadium area 1 can be covered with camera location {1,4,7,8}, stadium area 2 can be covered with camera location {3,4,7,8}, while the rest are given in table 2 below:<br />
{| class="wikitable"<br />
|+Table 2<br />
!Stadium Area<br />
!Camera Location<br />
|-<br />
|1<br />
|1,4,7,8<br />
|-<br />
|2<br />
|3,4,7,8<br />
|-<br />
|3<br />
|1,5<br />
|-<br />
|4<br />
|1,2,8<br />
|-<br />
|5<br />
|3<br />
|-<br />
|6<br />
|1,5,7,8<br />
|-<br />
|7<br />
|1,2<br />
|-<br />
|8<br />
|2,6,8<br />
|-<br />
|9<br />
|3<br />
|-<br />
|10<br />
|5<br />
|-<br />
|11<br />
|3,7<br />
|-<br />
|12<br />
|2,5,8<br />
|-<br />
|13<br />
|3<br />
|-<br />
|14<br />
|4,5,6<br />
|-<br />
|15<br />
|4,6<br />
|}<br />
We can then represent the above information using binary values. If the stadium area <math>i</math> can be covered with camera location <math>j</math>, then we have <math>y_{ij} = 1</math>. If not,<math>y_{ij} = 0</math>. For instance, stadium area 1 is covered by camera location 1, so <math>y_{11} = 1</math>, while stadium area 1 is not covered by camera location 2, so <math>y_{12} = 0</math>. The binary variables <math>y_{ij}</math> values are given in the table below: <br />
{| class="wikitable"<br />
|+Table 3<br />
!<br />
!1<br />
!2<br />
!3<br />
!4<br />
!5<br />
!6<br />
!7<br />
!8<br />
|-<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|2<br />
|<br />
|<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|3<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|4<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|-<br />
|5<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|6<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|1<br />
|-<br />
|7<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|8<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|-<br />
|9<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|10<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|11<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|-<br />
|12<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|-<br />
|13<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|14<br />
|<br />
|<br />
|<br />
|1<br />
|1<br />
|1<br />
|<br />
|<br />
|-<br />
|15<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|<br />
|<br />
|}<br />
<br />
<br />
<br />
We introduce another binary variable <math>z_j</math> to indicate if a camera is installed at location <math>j</math>. <math>z_j = 1</math> if camera is installed at location <math>j</math>, while <math>z_j = 0</math> if not. <br />
<br />
Our objective is to minimize <math>\sum_{j=1}^8 z_j</math>. For each stadium, there’s a constraint that the stadium area <math>i</math> has to be covered by at least one camera location. For instance, for stadium area 1, we have <math>z_1 + z_4 + z_7 + z_8 \geqslant 1</math>, while for stadium 2, we have <math>z_3 + z_4 + z_7 + z_8 \geqslant 1</math>. All the 15 constraints that corresponds to 15 stadium areas are listed below:<br />
<br />
<br />
''Constraints 1 to 15:''<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>2. z_3 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>5. z_3 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>9. z_3 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>11. z_3 + z_7 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>13. z_3 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
From constraint {5,9,13}, we can obtain <math>z_3 = 1</math>. Thus we no longer need constraint 2 and 11 as they are satisfied when <math>z_3 = 1</math>. With <math>z_3 = 1</math> determined, the constraints left are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
Now if we take a look at constraint <math>10. z_5 \geqslant 1</math> so <math>z_5</math> shall equal to 1. As <math>z_5 = 1</math>, constraint {3,6,12,14} are satisfied no matter what other <math>z</math> values are taken. If we also take a look at constraint 7 and 4, if constraint 4 will be satisfied as long as constraint 7 is satisfied since <math>z</math> values are nonnegative, so constraint 4 is no longer needed. The remaining constraints are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
The next step is to focus on constraint 7 and 15. We can have at least 4 combinations of <math>z_1, z_2, z_4, z_6</math>values.<br />
<br />
<br />
<math>A: z_1 = 1, z_2 = 0, z_4 = 1, z_6 = 0</math><br />
<br />
<math>B: z_1 = 1, z_2 = 0, z_4 = 0, z_6 = 1</math><br />
<br />
<math>C: z_1 = 0, z_2 = 1, z_4 = 1, z_6 = 0</math><br />
<br />
<math>D: z_1 = 0, z_2 = 1, z_4 = 0, z_6 = 1</math><br />
<br />
<br />
We can then discuss each combination and determine <math>z_7, z_8</math>values for constraint 1 and 8 to be satisfied.<br />
<br />
<br />
Combination <math>A</math>: constraint 1 already satisfied, we need <math>z_8 = 1</math> to satisfy constraint 8.<br />
<br />
Combination <math>B</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>C</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>D</math>: we need <math>z_7 = 1</math> or <math>z_8 = 1</math> to satisfy constraint 1, while constraint 8 already satisfied.<br />
<br />
Our final step is to compare the four combinations. Since our objective is to minimize <math>\sum_{j=1}^8 z_j</math> and combinations <math>B</math> and <math>C</math> require the least amount of <math>z_j</math> to be 1, they are the optimal solutions.<br />
<br />
To conclude, our two solutions are:<br />
<br />
<math>Solution 1: z_1 = 1, z_3 = 1, z_5 = 1, z_6 = 1</math><br />
<br />
<math>Solution 2: z_2 = 1, z_3 = 1, z_4 = 1, z_5 = 1</math><br />
<br />
The minimum number of cameras that we need to install is 4.<br />
<br />
== Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
:This set covering problems is concerned with maximizing the coverage of some public facilities placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city. <br />
<br />
Let <math> y_i </math> be the decision variable corresponding to choosing to build a fire station at town i. Let <math> S_i </math> be a subset of towns including town i and all its neighbors. The problem is then formulated as follows.<br />
<br />
minimize <math>\sum_{i=1}^n y_i</math> <br />
<br />
such that<br />
<br />
<math> \sum_{i\in S_i} y_i >= 1, \forall i</math> <br />
; The optimal route selection problem<br />
:Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to scarcity of the physical sensors, the problem does not allow for placing a detector at every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Specifically, giving a collection of routes '''''U''','' where each route itself is divided into segments. The segments of two routes can overlap. The goal is then to select the routes that maximize number of covered segments.<br />
;The airline crew scheduling problem<br />
:An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts.<sup>2,6</sup> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights.<br />
:<br />
<br />
==Conclusion ==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#RUBIN, J. (1973). A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling. ''Transportation Science,'' ''7''(1), 34-48. Retrieved November 23, 2020, from <nowiki>http://www.jstor.org/stable/25767684</nowiki><br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). <nowiki>https://doi.org/10.1007/BF01942293</nowiki><br />
# Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088<br />
#Marchiori, E., & Steenbeek, A. (2000). An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling. ''EvoWorkshops''.<br />
# Petr Slavı́k. (1997). A Tight Analysis of the Greedy Algorithm for Set Cover. ''Journal of Algorithms,'', Volume 25, Issue 2, Pages 237-254 <nowiki>https://doi.org/10.1006/jagm.1997.0887.</nowiki></div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=1839Set covering problem2020-11-25T15:57:49Z<p>Kha32: /* Applications */</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span> The problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span><br />
<br />
== Problem formulation ==<br />
The mathematical formulation of the set covering problem is define as follows. We define U = {<math> u_i</math>, ….. <math> u_m</math>} as the universe of elements and S = {<math> s_1</math>, ….,<math> s_n</math>} as a collection of subsets such that <math> s_i</math> <math>\in</math>U and the union of <math> s_i</math> covers all elements in U (i.e. <math>\cup</math><math> s_i</math> = U ). Addionally, each set <math> s_i</math> must cover at least one element of U and has associated cost <math> c</math> that is larger than zero (i.e. <math> c_i</math> > 0). The objective is to find the minimum cost sub-collection of sets X <math>\in</math> S that covers all the elements in the universe U.<br />
<br />
== Integer linear program formulation ==<br />
An integer linear program (ILP) model can be formulated for the minimum set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math> y_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
'''Objective function'''<br />
<br />
minimize <math>\sum_{i=1}^n c_i y_i</math> <br />
<br />
'''Constraints '''<br />
<br />
<math> \sum_{i=1}^n a_{ij} y_i >= 1, \forall j= 1,....,m</math> <br />
<br />
<math> y_i \in \{0, 1\}, \forall i = 1,....,n</math> <br />
<br />
The objective function <math>\sum_{i=1}^n c_i y_i</math> is defined to minimize the number of subset <math> s_i</math> that cover all elements in the universe by minimizing its total cost. The first constraint implies that every element j in the universe U must be be covered where <math> a_{ij}</math>=1 if j <math>\in</math> <math> s_i</math> and 0 otherwise. The second constraint <math> y_i \in \{0, 1\} </math> indicates that the decision variables are binary.<br />
<br />
Set covering problems are significant NP-hard optimization problems, which means that for large size instances, integer linear program algorithms can be difficult to solve in polynomial time. Therefore, there exist approximation algorithms that can solve large scale problems in polynomial time with optimal or near-optimal solutions. One of the widely used approximation algorithms for set covering is the classical greedy algorithms.<sup>7</sup><br />
<br />
== Greedy approximation algorithm ==<br />
Greedy algorithms can be used to approximate for optimal or near-optimal solutions for large scale set covering instances in polynomial solvable time. The greedy heuristics applies iterative process that, at each stage, select the largest number of uncovered elements in the universe '''U''', and delete the uncovered elements, until all elements are covered. Let '''T''' be the set that contain the covered elements, and '''U''' be the set that contain the elements of '''Y''' that still uncovered. At the beginning of the iteration, '''T''' is empty and all elements '''Y''' belong to '''U'''. We iteratively select the set of '''S''' that covers the largest number of elements in '''U''' and add it to the covered elements in '''T'''. An example of this algorithm is presented below. <br />
<br />
'''Greedy algorithm for minimum set cover example: '''<br />
<br />
<br />
==Numerical Example==<br />
Let’s consider a simple example where we assign cameras at different locations. Each location covers some areas of stadiums, and our goal is to put the least amount of cameras such that all areas of stadiums are covered. We have stadium areas from 1 to 15, and possible camera locations from 1 to 8.<br />
<br />
We are given that camera location 1 covers stadium areas {1,3,4,6,7}, camera location 2 covers stadium areas {4,7,8,12}, while the remaining camera locations and the stadium areas that the cameras can cover are given in table 1 below:<br />
{| class="wikitable"<br />
|+Table 1<br />
!Camera Location<br />
!Stadium Areas<br />
|-<br />
|1<br />
|1,3,4,6,7<br />
|-<br />
|2<br />
|4,7,8,12<br />
|-<br />
|3<br />
|2,5,9,11,13<br />
|-<br />
|4<br />
|1,2,14,15<br />
|-<br />
|5<br />
|3,6,10,12,14<br />
|-<br />
|6<br />
|8,14,15<br />
|-<br />
|7<br />
|1,2,6,11<br />
|-<br />
|8<br />
|1,2,4,6,8,12<br />
|}<br />
To reformulate the problem, we can list the stadium areas and the camera locations that cover each stadium area. For instance, stadium area 1 can be covered with camera location {1,4,7,8}, stadium area 2 can be covered with camera location {3,4,7,8}, while the rest are given in table 2 below:<br />
{| class="wikitable"<br />
|+Table 2<br />
!Stadium Area<br />
!Camera Location<br />
|-<br />
|1<br />
|1,4,7,8<br />
|-<br />
|2<br />
|3,4,7,8<br />
|-<br />
|3<br />
|1,5<br />
|-<br />
|4<br />
|1,2,8<br />
|-<br />
|5<br />
|3<br />
|-<br />
|6<br />
|1,5,7,8<br />
|-<br />
|7<br />
|1,2<br />
|-<br />
|8<br />
|2,6,8<br />
|-<br />
|9<br />
|3<br />
|-<br />
|10<br />
|5<br />
|-<br />
|11<br />
|3,7<br />
|-<br />
|12<br />
|2,5,8<br />
|-<br />
|13<br />
|3<br />
|-<br />
|14<br />
|4,5,6<br />
|-<br />
|15<br />
|4,6<br />
|}<br />
We can then represent the above information using binary values. If the stadium area <math>i</math> can be covered with camera location <math>j</math>, then we have <math>y_{ij} = 1</math>. If not,<math>y_{ij} = 0</math>. For instance, stadium area 1 is covered by camera location 1, so <math>y_{11} = 1</math>, while stadium area 1 is not covered by camera location 2, so <math>y_{12} = 0</math>. The binary variables <math>y_{ij}</math> values are given in the table below: <br />
{| class="wikitable"<br />
|+Table 3<br />
!<br />
!1<br />
!2<br />
!3<br />
!4<br />
!5<br />
!6<br />
!7<br />
!8<br />
|-<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|2<br />
|<br />
|<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|3<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|4<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|-<br />
|5<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|6<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|1<br />
|-<br />
|7<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|8<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|-<br />
|9<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|10<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|11<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|-<br />
|12<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|-<br />
|13<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|14<br />
|<br />
|<br />
|<br />
|1<br />
|1<br />
|1<br />
|<br />
|<br />
|-<br />
|15<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|<br />
|<br />
|}<br />
<br />
<br />
<br />
We introduce another binary variable <math>z_j</math> to indicate if a camera is installed at location <math>j</math>. <math>z_j = 1</math> if camera is installed at location <math>j</math>, while <math>z_j = 0</math> if not. <br />
<br />
Our objective is to minimize <math>\sum_{j=1}^8 z_j</math>. For each stadium, there’s a constraint that the stadium area <math>i</math> has to be covered by at least one camera location. For instance, for stadium area 1, we have <math>z_1 + z_4 + z_7 + z_8 \geqslant 1</math>, while for stadium 2, we have <math>z_3 + z_4 + z_7 + z_8 \geqslant 1</math>. All the 15 constraints that corresponds to 15 stadium areas are listed below:<br />
<br />
<br />
''Constraints 1 to 15:''<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>2. z_3 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>5. z_3 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>9. z_3 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>11. z_3 + z_7 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>13. z_3 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
From constraint {5,9,13}, we can obtain <math>z_3 = 1</math>. Thus we no longer need constraint 2 and 11 as they are satisfied when <math>z_3 = 1</math>. With <math>z_3 = 1</math> determined, the constraints left are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
Now if we take a look at constraint <math>10. z_5 \geqslant 1</math> so <math>z_5</math> shall equal to 1. As <math>z_5 = 1</math>, constraint {3,6,12,14} are satisfied no matter what other <math>z</math> values are taken. If we also take a look at constraint 7 and 4, if constraint 4 will be satisfied as long as constraint 7 is satisfied since <math>z</math> values are nonnegative, so constraint 4 is no longer needed. The remaining constraints are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
The next step is to focus on constraint 7 and 15. We can have at least 4 combinations of <math>z_1, z_2, z_4, z_6</math>values.<br />
<br />
<br />
<math>A: z_1 = 1, z_2 = 0, z_4 = 1, z_6 = 0</math><br />
<br />
<math>B: z_1 = 1, z_2 = 0, z_4 = 0, z_6 = 1</math><br />
<br />
<math>C: z_1 = 0, z_2 = 1, z_4 = 1, z_6 = 0</math><br />
<br />
<math>D: z_1 = 0, z_2 = 1, z_4 = 0, z_6 = 1</math><br />
<br />
<br />
We can then discuss each combination and determine <math>z_7, z_8</math>values for constraint 1 and 8 to be satisfied.<br />
<br />
<br />
Combination <math>A</math>: constraint 1 already satisfied, we need <math>z_8 = 1</math> to satisfy constraint 8.<br />
<br />
Combination <math>B</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>C</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>D</math>: we need <math>z_7 = 1</math> or <math>z_8 = 1</math> to satisfy constraint 1, while constraint 8 already satisfied.<br />
<br />
Our final step is to compare the four combinations. Since our objective is to minimize <math>\sum_{j=1}^8 z_j</math> and combinations <math>B</math> and <math>C</math> require the least amount of <math>z_j</math> to be 1, they are the optimal solutions.<br />
<br />
To conclude, our two solutions are:<br />
<br />
<math>Solution 1: z_1 = 1, z_3 = 1, z_5 = 1, z_6 = 1</math><br />
<br />
<math>Solution 2: z_2 = 1, z_3 = 1, z_4 = 1, z_5 = 1</math><br />
<br />
The minimum number of cameras that we need to install is 4.<br />
<br />
== Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
:This set covering problems is concerned with maximizing the coverage of some public facilities placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city. Let <math> y_i </math> be the decision variable corresponding to choosing to build a fire station at town i. Let <math> S_i </math> be a subset of towns including town i and all its neighbors. The problem is then formulated as follows.<br />
minimize <math>\sum_{i=1}^n y_i</math> <br />
such that<br />
<math> \sum_{i\in S_i} y_i >= 1, \forall i</math> <br />
; The optimal route selection problem<br />
:Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to scarcity of the physical sensors, the problem does not allow for placing a detector at every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Specifically, giving a collection of routes '''''U''','' where each route itself is divided into segments. The segments of two routes can overlap. The goal is then to select the routes that maximize number of covered segments.<br />
;The airline crew scheduling problem<br />
:An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts.<sup>2,6</sup> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights.<br />
:<br />
<br />
==Conclusion ==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#RUBIN, J. (1973). A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling. ''Transportation Science,'' ''7''(1), 34-48. Retrieved November 23, 2020, from <nowiki>http://www.jstor.org/stable/25767684</nowiki><br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). <nowiki>https://doi.org/10.1007/BF01942293</nowiki><br />
# Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088<br />
#Marchiori, E., & Steenbeek, A. (2000). An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling. ''EvoWorkshops''.<br />
# Petr Slavı́k. (1997). A Tight Analysis of the Greedy Algorithm for Set Cover. ''Journal of Algorithms,'', Volume 25, Issue 2, Pages 237-254 <nowiki>https://doi.org/10.1006/jagm.1997.0887.</nowiki></div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=1838Set covering problem2020-11-25T15:57:10Z<p>Kha32: </p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span> The problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span><br />
<br />
== Problem formulation ==<br />
The mathematical formulation of the set covering problem is define as follows. We define U = {<math> u_i</math>, ….. <math> u_m</math>} as the universe of elements and S = {<math> s_1</math>, ….,<math> s_n</math>} as a collection of subsets such that <math> s_i</math> <math>\in</math>U and the union of <math> s_i</math> covers all elements in U (i.e. <math>\cup</math><math> s_i</math> = U ). Addionally, each set <math> s_i</math> must cover at least one element of U and has associated cost <math> c</math> that is larger than zero (i.e. <math> c_i</math> > 0). The objective is to find the minimum cost sub-collection of sets X <math>\in</math> S that covers all the elements in the universe U.<br />
<br />
== Integer linear program formulation ==<br />
An integer linear program (ILP) model can be formulated for the minimum set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math> y_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
'''Objective function'''<br />
<br />
minimize <math>\sum_{i=1}^n c_i y_i</math> <br />
<br />
'''Constraints '''<br />
<br />
<math> \sum_{i=1}^n a_{ij} y_i >= 1, \forall j= 1,....,m</math> <br />
<br />
<math> y_i \in \{0, 1\}, \forall i = 1,....,n</math> <br />
<br />
The objective function <math>\sum_{i=1}^n c_i y_i</math> is defined to minimize the number of subset <math> s_i</math> that cover all elements in the universe by minimizing its total cost. The first constraint implies that every element j in the universe U must be be covered where <math> a_{ij}</math>=1 if j <math>\in</math> <math> s_i</math> and 0 otherwise. The second constraint <math> y_i \in \{0, 1\} </math> indicates that the decision variables are binary.<br />
<br />
Set covering problems are significant NP-hard optimization problems, which means that for large size instances, integer linear program algorithms can be difficult to solve in polynomial time. Therefore, there exist approximation algorithms that can solve large scale problems in polynomial time with optimal or near-optimal solutions. One of the widely used approximation algorithms for set covering is the classical greedy algorithms.<sup>7</sup><br />
<br />
== Greedy approximation algorithm ==<br />
Greedy algorithms can be used to approximate for optimal or near-optimal solutions for large scale set covering instances in polynomial solvable time. The greedy heuristics applies iterative process that, at each stage, select the largest number of uncovered elements in the universe '''U''', and delete the uncovered elements, until all elements are covered. Let '''T''' be the set that contain the covered elements, and '''U''' be the set that contain the elements of '''Y''' that still uncovered. At the beginning of the iteration, '''T''' is empty and all elements '''Y''' belong to '''U'''. We iteratively select the set of '''S''' that covers the largest number of elements in '''U''' and add it to the covered elements in '''T'''. An example of this algorithm is presented below. <br />
<br />
'''Greedy algorithm for minimum set cover example: '''<br />
<br />
<br />
==Numerical Example==<br />
Let’s consider a simple example where we assign cameras at different locations. Each location covers some areas of stadiums, and our goal is to put the least amount of cameras such that all areas of stadiums are covered. We have stadium areas from 1 to 15, and possible camera locations from 1 to 8.<br />
<br />
We are given that camera location 1 covers stadium areas {1,3,4,6,7}, camera location 2 covers stadium areas {4,7,8,12}, while the remaining camera locations and the stadium areas that the cameras can cover are given in table 1 below:<br />
{| class="wikitable"<br />
|+Table 1<br />
!Camera Location<br />
!Stadium Areas<br />
|-<br />
|1<br />
|1,3,4,6,7<br />
|-<br />
|2<br />
|4,7,8,12<br />
|-<br />
|3<br />
|2,5,9,11,13<br />
|-<br />
|4<br />
|1,2,14,15<br />
|-<br />
|5<br />
|3,6,10,12,14<br />
|-<br />
|6<br />
|8,14,15<br />
|-<br />
|7<br />
|1,2,6,11<br />
|-<br />
|8<br />
|1,2,4,6,8,12<br />
|}<br />
To reformulate the problem, we can list the stadium areas and the camera locations that cover each stadium area. For instance, stadium area 1 can be covered with camera location {1,4,7,8}, stadium area 2 can be covered with camera location {3,4,7,8}, while the rest are given in table 2 below:<br />
{| class="wikitable"<br />
|+Table 2<br />
!Stadium Area<br />
!Camera Location<br />
|-<br />
|1<br />
|1,4,7,8<br />
|-<br />
|2<br />
|3,4,7,8<br />
|-<br />
|3<br />
|1,5<br />
|-<br />
|4<br />
|1,2,8<br />
|-<br />
|5<br />
|3<br />
|-<br />
|6<br />
|1,5,7,8<br />
|-<br />
|7<br />
|1,2<br />
|-<br />
|8<br />
|2,6,8<br />
|-<br />
|9<br />
|3<br />
|-<br />
|10<br />
|5<br />
|-<br />
|11<br />
|3,7<br />
|-<br />
|12<br />
|2,5,8<br />
|-<br />
|13<br />
|3<br />
|-<br />
|14<br />
|4,5,6<br />
|-<br />
|15<br />
|4,6<br />
|}<br />
We can then represent the above information using binary values. If the stadium area <math>i</math> can be covered with camera location <math>j</math>, then we have <math>y_{ij} = 1</math>. If not,<math>y_{ij} = 0</math>. For instance, stadium area 1 is covered by camera location 1, so <math>y_{11} = 1</math>, while stadium area 1 is not covered by camera location 2, so <math>y_{12} = 0</math>. The binary variables <math>y_{ij}</math> values are given in the table below: <br />
{| class="wikitable"<br />
|+Table 3<br />
!<br />
!1<br />
!2<br />
!3<br />
!4<br />
!5<br />
!6<br />
!7<br />
!8<br />
|-<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|2<br />
|<br />
|<br />
|1<br />
|1<br />
|<br />
|<br />
|1<br />
|1<br />
|-<br />
|3<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|4<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|-<br />
|5<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|6<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|1<br />
|-<br />
|7<br />
|1<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|8<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|-<br />
|9<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|10<br />
|<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|-<br />
|11<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|-<br />
|12<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|1<br />
|-<br />
|13<br />
|<br />
|<br />
|1<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
|14<br />
|<br />
|<br />
|<br />
|1<br />
|1<br />
|1<br />
|<br />
|<br />
|-<br />
|15<br />
|<br />
|<br />
|<br />
|1<br />
|<br />
|1<br />
|<br />
|<br />
|}<br />
<br />
<br />
<br />
We introduce another binary variable <math>z_j</math> to indicate if a camera is installed at location <math>j</math>. <math>z_j = 1</math> if camera is installed at location <math>j</math>, while <math>z_j = 0</math> if not. <br />
<br />
Our objective is to minimize <math>\sum_{j=1}^8 z_j</math>. For each stadium, there’s a constraint that the stadium area <math>i</math> has to be covered by at least one camera location. For instance, for stadium area 1, we have <math>z_1 + z_4 + z_7 + z_8 \geqslant 1</math>, while for stadium 2, we have <math>z_3 + z_4 + z_7 + z_8 \geqslant 1</math>. All the 15 constraints that corresponds to 15 stadium areas are listed below:<br />
<br />
<br />
''Constraints 1 to 15:''<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>2. z_3 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>5. z_3 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>9. z_3 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>11. z_3 + z_7 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>13. z_3 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
From constraint {5,9,13}, we can obtain <math>z_3 = 1</math>. Thus we no longer need constraint 2 and 11 as they are satisfied when <math>z_3 = 1</math>. With <math>z_3 = 1</math> determined, the constraints left are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>3. z_1 + z_5 \geqslant 1</math><br />
<br />
<math>4. z_1 + z_2 + z_8 \geqslant 1</math><br />
<br />
<math>6. z_1 + z_5 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>10. z_5 \geqslant 1</math><br />
<br />
<math>12. z_2 + z_5 + z_8 \geqslant 1</math><br />
<br />
<math>14. z_4 + z_5 + z_6 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
Now if we take a look at constraint <math>10. z_5 \geqslant 1</math> so <math>z_5</math> shall equal to 1. As <math>z_5 = 1</math>, constraint {3,6,12,14} are satisfied no matter what other <math>z</math> values are taken. If we also take a look at constraint 7 and 4, if constraint 4 will be satisfied as long as constraint 7 is satisfied since <math>z</math> values are nonnegative, so constraint 4 is no longer needed. The remaining constraints are:<br />
<br />
<br />
<math>1. z_1 + z_4 + z_7 + z_8 \geqslant 1</math><br />
<br />
<math>7. z_1 + z_2 \geqslant 1</math><br />
<br />
<math>8. z_2 + z_6 + z_8 \geqslant 1</math><br />
<br />
<math>15. z_4 + z_6 \geqslant 1</math><br />
<br />
<br />
The next step is to focus on constraint 7 and 15. We can have at least 4 combinations of <math>z_1, z_2, z_4, z_6</math>values.<br />
<br />
<br />
<math>A: z_1 = 1, z_2 = 0, z_4 = 1, z_6 = 0</math><br />
<br />
<math>B: z_1 = 1, z_2 = 0, z_4 = 0, z_6 = 1</math><br />
<br />
<math>C: z_1 = 0, z_2 = 1, z_4 = 1, z_6 = 0</math><br />
<br />
<math>D: z_1 = 0, z_2 = 1, z_4 = 0, z_6 = 1</math><br />
<br />
<br />
We can then discuss each combination and determine <math>z_7, z_8</math>values for constraint 1 and 8 to be satisfied.<br />
<br />
<br />
Combination <math>A</math>: constraint 1 already satisfied, we need <math>z_8 = 1</math> to satisfy constraint 8.<br />
<br />
Combination <math>B</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>C</math>: constraint 1 already satisfied, constraint 8 already satisfied.<br />
<br />
Combination <math>D</math>: we need <math>z_7 = 1</math> or <math>z_8 = 1</math> to satisfy constraint 1, while constraint 8 already satisfied.<br />
<br />
Our final step is to compare the four combinations. Since our objective is to minimize <math>\sum_{j=1}^8 z_j</math> and combinations <math>B</math> and <math>C</math> require the least amount of <math>z_j</math> to be 1, they are the optimal solutions.<br />
<br />
To conclude, our two solutions are:<br />
<br />
<math>Solution 1: z_1 = 1, z_3 = 1, z_5 = 1, z_6 = 1</math><br />
<br />
<math>Solution 2: z_2 = 1, z_3 = 1, z_4 = 1, z_5 = 1</math><br />
<br />
The minimum number of cameras that we need to install is 4.<br />
<br />
== Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
:This set covering problems is concerned with maximizing the coverage of some public facilities placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city. Let <math> y_i </math> be the decision variable corresponding to choosing to build a fire station at town i. Let <math> S_i </math> be a subset of towns including town i and all its neighbors. The problem is then formulated as follows.<br />
<br />
minimize <math>\sum_{i=1}^n y_i</math> <br />
<br />
such that<br />
<br />
<math> \sum_{i\in S_i} y_i >= 1, \forall i</math> <br />
<br />
; The optimal route selection problem<br />
:Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to scarcity of the physical sensors, the problem does not allow for placing a detector at every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Specifically, giving a collection of routes '''''U''','' where each route itself is divided into segments. The segments of two routes can overlap. The goal is then to select the routes that maximize number of covered segments.<br />
;The airline crew scheduling problem<br />
:An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts.<sup>2,6</sup> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights.<br />
:<br />
==Conclusion ==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#RUBIN, J. (1973). A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling. ''Transportation Science,'' ''7''(1), 34-48. Retrieved November 23, 2020, from <nowiki>http://www.jstor.org/stable/25767684</nowiki><br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). <nowiki>https://doi.org/10.1007/BF01942293</nowiki><br />
# Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088<br />
#Marchiori, E., & Steenbeek, A. (2000). An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling. ''EvoWorkshops''.<br />
# Petr Slavı́k. (1997). A Tight Analysis of the Greedy Algorithm for Set Cover. ''Journal of Algorithms,'', Volume 25, Issue 2, Pages 237-254 <nowiki>https://doi.org/10.1006/jagm.1997.0887.</nowiki></div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=1689Set covering problem2020-11-23T20:44:54Z<p>Kha32: Added a conclusions section.</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span> The problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span><br />
<br />
== Methodology ==<br />
The mathematical formulation of the set covering problem is define as follows. We define U as the universe of elements such that U = {u<sub>1</sub>, ….. u<sub>m</sub>} and S = {s<sub>1</sub>, ….s<sub>n</sub>} as a collection of subsets <br />
<br />
such that s<sub>i</sub> <math>\in</math>U and their union cover U (i.e. <math>\cup</math>s<sub>i</sub> = U ). Addionally, each set s<sub>i</sub> must cover at least one element of U and has associated cost c that is larger than zero (i.e. c<sub>i</sub> > 0). The objective <br />
<br />
is to find the minimum subcollection of sets X <math>\in</math> S that covers all the elements in U with the minimum cost. <br />
<br />
<br />
An integer linear program (ILP) model can be formulated for the set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math>x_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
<br />
'''Objective function'''<br />
<br />
<br />
'''Constraints '''<br />
<br />
<br />
==Example==<br />
<br />
<br />
==Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
: This set covering problems is concerned with maximizing the coverage of some public facility placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city.<br />
;The optimal route selection problem<br />
:Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to scarcity of the physical sensors, the problem does not allow for placing a detector at every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Specifically, giving a collection of routes '''''U''','' where each route itself is divided into segments. The segments of two routes can overlap. The goal is then to select the routes that maximize number of covered segments.<br />
;The airline crew scheduling problem<br />
:An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts.<sup>2,6</sup> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights. <br />
:<br />
==Conclusion==<br />
<br />
The set covering problem, which aims to find the least number of subsets that cover some universal set, is a widely known NP-hard combinatorial problem. Due to its applicability to route planning and airline crew scheduling, several methods have been proposed to solve it. Its straightforward formulation allows for the use of off-the-shelf optimizers to solve it. Moreover, heuristic techniques and greedy algorithms can be used to solve large-scale set covering problems for industrial applications. <br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#RUBIN, J. (1973). A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling. ''Transportation Science,'' ''7''(1), 34-48. Retrieved November 23, 2020, from <nowiki>http://www.jstor.org/stable/25767684</nowiki><br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). <nowiki>https://doi.org/10.1007/BF01942293</nowiki><br />
#Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088<br />
#Marchiori, E., & Steenbeek, A. (2000). An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling. ''EvoWorkshops''.</div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=1684Set covering problem2020-11-23T20:34:02Z<p>Kha32: Completed the applications section.</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span> The problem has many applications in the airline industry, and it was explored on an industrial scale as early as the 1970s.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span><br />
<br />
== Methodology ==<br />
The mathematical formulation of the set covering problem is define as follows. We define U as the universe of elements such that U = {u<sub>1</sub>, ….. u<sub>m</sub>} and S = {s<sub>1</sub>, ….s<sub>n</sub>} as a collection of subsets <br />
<br />
such that s<sub>i</sub> <math>\in</math>U and their union cover U (i.e. <math>\cup</math>s<sub>i</sub> = U ). Addionally, each set s<sub>i</sub> must cover at least one element of U and has associated cost c that is larger than zero (i.e. c<sub>i</sub> > 0). The objective <br />
<br />
is to find the minimum subcollection of sets X <math>\in</math> S that covers all the elements in U with the minimum cost. <br />
<br />
<br />
An integer linear program (ILP) model can be formulated for the set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math>x_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
<br />
'''Objective function'''<br />
<br />
<br />
'''Constraints '''<br />
<br />
<br />
==Example==<br />
<br />
<br />
==Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
: This set covering problems is concerned with maximizing the coverage of some public facility placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city.<br />
;The optimal route selection problem<br />
:Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to scarcity of the physical sensors, the problem does not allow for placing a detector at every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">5</span> Specifically, giving a collection of routes '''''U''','' where each route itself is divided into segments. The segments of two routes can overlap. The goal is then to select the routes that maximize number of covered segments.<br />
;The airline crew scheduling problem<br />
:An important application of large-scale set covering is the airline crew scheduling problem, which pertains to assigning airline staff to work shifts.<sup>2,6</sup> Thinking of the collection of flights as a universal set to be covered, we can formulate a set covering problem to search for the optimal assignment of employees to flights. <br />
:<br />
==Conclusion==<br />
<br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#RUBIN, J. (1973). A Technique for the Solution of Massive Set Covering Problems, with Application to Airline Crew Scheduling. ''Transportation Science,'' ''7''(1), 34-48. Retrieved November 23, 2020, from <nowiki>http://www.jstor.org/stable/25767684</nowiki><br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). <nowiki>https://doi.org/10.1007/BF01942293</nowiki><br />
#Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088<br />
#Marchiori, E., & Steenbeek, A. (2000). An Evolutionary Algorithm for Large Scale Set Covering Problems with Application to Airline Crew Scheduling. ''EvoWorkshops''.</div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=1603Set covering problem2020-11-22T14:32:35Z<p>Kha32: Added a second application</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span><br />
<br />
== Methodology ==<br />
The mathematical formulation of the set covering problem is define as follows. We define U as the universe of elements such that U = {u<sub>1</sub>, ….. u<sub>m</sub>} and S = {s<sub>1</sub>, ….s<sub>n</sub>} as a collection of subsets <br />
<br />
such that s<sub>i</sub> <math>\in</math>U and their union cover U (i.e. <math>\cup</math>s<sub>i</sub> = U ). Addionally, each set s<sub>i</sub> must cover at least one element of U and has associated cost c that is larger than zero (i.e. c<sub>i</sub> > 0). The objective <br />
<br />
is to find the minimum subcollection of sets X <math>\in</math> S that covers all the elements in U with the minimum cost. <br />
<br />
<br />
An integer linear program (ILP) model can be formulated for the set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math>x_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
<br />
'''Objective function'''<br />
<br />
<br />
'''Constraints '''<br />
<br />
<br />
==Example==<br />
<br />
<br />
==Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
: This set covering problems is concerned with maximizing the coverage of some public facility placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city.<br />
;The optimal route selection problem<br />
:Consider the problem of selecting the optimal bus routes to place pothole detectors. Due to scarcity of the physical sensors, the problem does not allow for placing a detector at every road. The task of finding the maximum coverage using a limited number of detectors could be formulated as a set covering problem.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">4</span> Specifically, giving a collection of routes '''''U''','' where each route itself is divided into segments. The segments of two routes can overlap. The goal is then to select the routes that maximize number of covered segments.<br />
;The airline crew scheduling problem<br />
:<br />
:<br />
==Conclusion==<br />
<br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). <nowiki>https://doi.org/10.1007/BF01942293</nowiki><br />
#Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671<br />
#Ali, J., & Dyo, V. (2017). Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach. ''Proceedings of the 14th International Joint Conference on E-Business and Telecommunications''. doi:10.5220/0006469800830088</div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=1602Set covering problem2020-11-22T14:08:14Z<p>Kha32: </p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span><br />
<br />
== Methodology ==<br />
The mathematical formulation of the set covering problem is define as follows. We define U as the universe of elements such that U = {u<sub>1</sub>, ….. u<sub>m</sub>} and S = {s<sub>1</sub>, ….s<sub>n</sub>} as a collection of subsets <br />
<br />
such that s<sub>i</sub> <math>\in</math>U and their union cover U (i.e. <math>\cup</math>s<sub>i</sub> = U ). Addionally, each set s<sub>i</sub> must cover at least one element of U and has associated cost c that is larger than zero (i.e. c<sub>i</sub> > 0). The objective <br />
<br />
is to find the minimum subcollection of sets X <math>\in</math> S that covers all the elements in U with the minimum cost. <br />
<br />
<br />
An integer linear program (ILP) model can be formulated for the set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math>x_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
<br />
'''Objective function'''<br />
<br />
<br />
'''Constraints '''<br />
<br />
<br />
==Example==<br />
<br />
<br />
==Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
: This set covering problems is concerned with maximizing the coverage of some public facility placed at different locations.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span> Consider the problem of placing fire stations to serve the towns of some city.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">3</span> If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city.<br />
;The optimal route selection problem<br />
:<br />
;The airline crew scheduling problem<br />
:<br />
:<br />
==Conclusion==<br />
<br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). <nowiki>https://doi.org/10.1007/BF01942293</nowiki><br />
#Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671</div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=1601Set covering problem2020-11-22T14:05:59Z<p>Kha32: </p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
== Introduction ==<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. In the set covering problem, two sets are given: a set '''''U''''' of elements and a set '''''S''''' of subsets of the set '''''U'''''. Each subset in '''''S''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''U'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span><br />
<br />
== Methodology ==<br />
The mathematical formulation of the set covering problem is define as follows. We define U as the universe of elements such that U = {u<sub>1</sub>, ….. u<sub>m</sub>} and S = {s<sub>1</sub>, ….s<sub>n</sub>} as a collection of subsets <br />
<br />
such that s<sub>i</sub> <math>\in</math>U and their union cover U (i.e. <math>\cup</math>s<sub>i</sub> = U ). Addionally, each set s<sub>i</sub> must cover at least one element of U and has associated cost c that is larger than zero (i.e. c<sub>i</sub> > 0). The objective <br />
<br />
is to find the minimum subcollection of sets X <math>\in</math> S that covers all the elements in U with the minimum cost. <br />
<br />
<br />
An integer linear program (ILP) model can be formulated for the set covering problem as follows:<br />
<br />
'''Decision variables'''<br />
<br />
<math>x_i = \begin{cases} 1, & \text{if subset }i\text{ is selected} \\ 0, & \text{otherwise } \end{cases}</math><br />
<br />
<br />
'''Objective function'''<br />
<br />
<br />
'''Constraints '''<br />
<br />
<br />
==Example==<br />
<br />
<br />
==Applications==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal location problem<br />
: This set covering problems is concerned with maximizing the coverage of some public facility placed at different locations.2 Consider the problem of placing fire stations to serve the towns of some city.3 If each fire station can serve its town and all adjacent towns, we can formulate a set covering problem where each subset consists of a set of adjacent towns. The problem is then solved to minimize the required number of fire stations to serve the whole city.<br />
;The optimal route selection problem<br />
:<br />
;The airline crew scheduling problem<br />
:<br />
:<br />
==Conclusion==<br />
<br />
<br />
==References==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0<br />
#Church, R., ReVelle, C. The maximal covering location problem. ''Papers of the Regional Science Association'' 32, 101–118 (1974). <nowiki>https://doi.org/10.1007/BF01942293</nowiki><br />
#Aktaş, E., Özaydın, Ö, Bozkaya, B., Ülengin, F., & Önsel, Ş. (2013). Optimizing Fire Station Locations for the Istanbul Metropolitan Municipality. ''Interfaces,'' ''43''(3), 240-255. doi:10.1287/inte.1120.0671</div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=1488Set covering problem2020-11-21T21:28:35Z<p>Kha32: Added some main applications</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. In the set covering problem, two sets are given: a set '''''S''''' of elements and a set '''''A''''' of subsets of the set '''''S'''''. Each subset in '''''A''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''S'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span><br />
<br />
== Introduction ==<br />
<br />
<br />
<br />
<br />
<br />
== Methodology ==<br />
<br />
<br />
<br />
== Example ==<br />
<br />
<br />
<br />
== Applications ==<br />
<br />
The applications of the set covering problem span a wide range of applications, but its usefulness is evident in industrial and governmental planning. Variations of the set covering problem that are of practical significance include the following.<br />
;The optimal covering location problem<br />
:This set covering problems is concerned with maximizing the population coverage of some public facility.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">2</span> Consider the problem of placing hospitals at different cities around some state. <br />
;The cell tower coverage problem<br />
:<br />
;The airline crew scheduling problem<br />
:<br />
:<br />
== Conclusion ==<br />
<br />
<br />
<br />
== References ==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0</div>Kha32https://optimization.cbe.cornell.edu/index.php?title=Set_covering_problem&diff=1472Set covering problem2020-11-21T20:12:47Z<p>Kha32: Added a brief description of the problem</p>
<hr />
<div>Authors: Sherry Liang, Khalid Alanazi, Kumail Al Hamoud<br />
<br />
The set covering problem is a significant NP-hard problem in combinatorial optimization. In the set covering problem, two sets are given: a set '''''S''''' of elements and a set '''''A''''' of subsets of the set '''''S'''''. Each subset in '''''A''''' is associated with a predetermined cost, and the union of all the subsets covers the set '''''S'''''. This combinatorial problem then concerns finding the optimal number of subsets whose union covers the universal set while minimizing the total cost.<span style="font-size: 8pt; position:relative; bottom: 0.3em;">1</span><br />
<br />
== Introduction ==<br />
<br />
<br />
<br />
<br />
<br />
== Methodology ==<br />
<br />
<br />
<br />
== Example ==<br />
<br />
<br />
<br />
== Applications ==<br />
<br />
<br />
<br />
<br />
== Conclusion ==<br />
<br />
<br />
<br />
== References ==<br />
#Grossman, T., & Wool, A. (1997). Computational experience with approximation algorithms for the set covering problem. ''European Journal of Operational Research,'' ''101''(1), 81-92. doi:10.1016/s0377-2217(96)00161-0</div>Kha32