1 Introduction

Consider an undirected graph \(G = (V,E)\). A dominating set for G is a set of vertices \(S \subseteq V\) such that for every vertex \(v \in V \setminus S\), there exists an adjacent vertex \(w \in S\). The problem of finding a dominating set of minimum cardinality for a given graph is known as the domination problem, and the size of the minimum dominating set is the domination number of the graph, typically denoted \(\gamma (G)\). The domination problem is one of the most widely studied problems in graph theory and computational complexity, and numerous algorithms have been described to find minimum dominating sets.

A dominating set S is said to be minimal if no proper subset of S is a dominating set. Clearly, any minimum dominating set is minimal, however some larger dominating sets may also be minimal. Then, the upper domination problem is the problem of finding the minimal dominating set of maximum cardinality for a given graph G. The cardinality of the latter is denoted by \(\Gamma (G)\). The upper domination problem can be seen as a maximin version of the domination problem, and is hence useful in the analysis of the worst-case performance of algorithms for the latter. The upper domination problem is known to be NP-hard in general, and in particular is NP-hard for planar cubic graphs (Bazgan et al. 2018).

There are a few algorithms designed to solve the upper domination problem for certain restricted classes of graphs. It can be easily solved for graphs with maximum degree 2. Bazgan et al. (2018) give an exact \(O^*(1.348^n)\) algorithm for subcubic graphs, as well as an exact \(O(7^p)\) algorithm for graphs of pathwidth p. For general graphs, the best known algorithm is an enumeration algorithm due to Fomin et al. (2008) which computes every minimal dominating set in \(O^*(1.7159^n)\) time, and in doing so gives the same bound on the number of minimal dominating sets in a graph of order n.

One common approach to constructing an exact algorithm for an NP-hard problem is to model it using mixed-integer linear programming (MILP). There are numerous highly optimised MILP solvers, with CPLEX being perhaps the most notable of these. For the standard domination problem, such a model can be easily constructed. First, we define N(v) to be the set of vertices adjacent to v, and \(N[v]:= N(v) \cup \{v\}\). Then we introduce binary variables \(x_v \in \{0,1\}\), \(\forall v \in V\), with the interpretation that \(v \in S\) if and only if \(x_v = 1\). It is then easy to see that the domination problem is equivalent to the following:

$$\begin{aligned} \min \sum _{v \in V} x_v \end{aligned}$$

subject to

$$\begin{aligned} \sum _{w \in N[v]} x_w \ge 1, \;\;\;\;\;\;\;\;\; \forall v \in V. \end{aligned}$$

MILP formulations have been described in the literature for several variants of domination, such as total domination (Burger et al. 2013), Roman domination (Burger et al. 2013; Ivanović 2016; ReVelle and Rosing 2000), weak Roman domination (Burger et al. 2013; Ivanović 2018), secure domination (Burdett and Haythorpe 2020; Burger et al. 2013), connected domination (Fan and Watson 2012; Simonetti et al. 2011), and power domination (Fan and Watson 2012). In particular, Burger et al. (2013) noted that even an unsophisticated approach to solving the MILP formulations for secure domination (i.e. simply submitting it to CPLEX) significantly outperformed the previous best-known exact algorithms from Burger et al. (2013), and indicated that better formulations or more sophisticated approaches such as column generation techniques could further improve the results; indeed, a superior formulation which can be solved even faster was given in Burdett and Haythorpe (2020).

In this paper, we add to this literature by describing, for the first time, MILP formulations for the upper domination problem. In particular, we introduce two formulations. The first has 2|V| binary variables and 3|V| constraints, the second has \(2|V| + |E|\) binary variables and \(3|V| + |E|\) constraints. We then proceed to show that both formulations can be improved with the addition of some extra constraints; there are |V| new constraints for the first formulation, and \(|V| + |E|\) new constraints for the second formulation. We compare these formulations experimentally, and observe that (a) the additional constraints lead to improved performance, and (b) the first formulation generally outperforms the second for general graphs; however, the second formulation does perform better for very sparse graphs.

2 Formulations

We now introduce two MILP formulations for the upper domination problem. In particular, these are binary programming formulations, as all variables in both formulations will be binary.

2.1 Formulation 1

In the following formulation, we will use two vectors of binary variables, \(\textbf{x}\) and \(\textbf{z}\) to find a minimal dominating set S of maximum cardinality. The intended interpretation will be that \(x_v = 1\) if and only if v is contained in S, and \(z_v = 1\) if and only if \(|S \cap N[v]| \ge 2\). In situations where \(\{w\} = S \cap N[v]\), it is common to refer to v as a private neighbour of w. Hence, the intention is that \(z_v = 0\) if and only if there is a vertex \(w \in N[v]\) such that v is a private neighbour of w. We will use d(v) to denote the degree of vertex v.

$$\begin{aligned} \max \sum _{v \in V} x_v \end{aligned}$$

subject to

$$\begin{aligned}{} & {} \sum _{w \in N[v]} x_w \ge 1, \;\;\;\qquad \qquad \forall v \in V, \end{aligned}$$
(2.1)
$$\begin{aligned}{} & {} \sum _{w \in N[v]} x_w - d(v)z_v \le 1, \;\;\;\qquad \qquad \forall v \in V, \end{aligned}$$
(2.2)
$$\begin{aligned}{} & {} x_v + \sum _{w \in N[v]} z_w \le d(v) + 1, \qquad \forall v \in V, \end{aligned}$$
(2.3)

Theorem 2.1

Constraints (2.1)–(2.3) provide a correct formulation for the upper domination problem.

Proof

We first argue that any solution \((\textbf{x}, \textbf{z})\) to the constraints (2.1)–(2.3) corresponds to a minimal dominating set. Since \(\textbf{x}\) is binary, we can define \(S(\textbf{x})\) to be the set of all vertices v for which \(x_v = 1\), and it is clear that from (2.1) that \(S(\textbf{x})\) is a dominating set. Then, recall that a dominating set S is minimal if no proper subset of S is a dominating set. Hence it is sufficient to confirm that, for every vertex \(v \in S(\textbf{x})\), the set \(S(\textbf{x}) {\setminus } \{v\}\) is not dominating.

Consider any vertex \(v \in S(\textbf{x})\), then by definition we have \(x_v = 1\). From (2.3) this implies that \(\sum _{w \in N[v]} z_w \le d(v)\), which means there is at least one vertex, say \(u \in N[v]\), such that \(z_u = 0\). But from constraints (2.2), this implies that \(\sum _{w \in N[u]} x_w \le 1\). Since \(x_v = 1\), this simplifies to \(\sum _{w \in N[u] \setminus \{v\}} x_w \le 0\). Hence, \(S(\textbf{x}) \cap N[u] = \{v\}\), and so \(S(\textbf{x}) \setminus \{v\}\) is not dominating. Since this argument can be applied to every vertex in \(S(\textbf{x})\), we conclude that \(S(\textbf{x})\) is a minimal dominating set.

Next, we argue that for every minimal dominating set, there is a corresponding solution to the constraints (2.1)–(2.3). Suppose that S is a minimal dominating set, then we need to assign values to \(\textbf{x}\) and \(\textbf{z}\) that will satisfy (2.1)–(2.3). For all \(v \in V\), we assign \(x_v = 1\) if \(v \in S\), and \(x_v = 0\) if \(v \not \in S\). Furthermore, for every vertex \(v \in S\), there must be at least one vertex, say \(w \in N[v]\) such that \(S \cap N[w] = \{v\}\). For each \(v \in S\) we select all such vertices w and assign \(z_w = 0\). Then, once we have finished considering all \(v \in S\), any unassigned \(z_w\) values are set to 1. Note that it is clear that (2.1) is satisfied, since it only contains x variables and S is a dominating set. We will now argue that constraints (2.2) and (2.3) are also satisfied.

Consider constraints (2.2). For any given \(v \in V\), the constraint could only be violated if \(z_v = 0\). However, according to the assignment of values above, this implies that \(|S \cap N[v]| = 1\). Hence \(\sum _{w \in N[v]} x_w = 1\) and so the constraint is not violated for any valid choice of minimal dominating set S.

Finally, consider constraints (2.3). For any given \(v \in V\), this constraint could only be violated if \(x_v = 1\) and \(\sum _{w \in N[v]} z_w = d(v) + 1\). However, according to the assignment of values above, this means there is no vertex \(w \in N[v]\) such that \(S \cap N[w] = \{v\}\). Hence, \(S \setminus \{v\}\) is still a dominating set, which contradicts the assumption that S is minimal. Hence, this constraint is not violated for any valid choice of minimal dominating set S. \(\square \)

2.2 Formulation 2

In the following formulation, in addition to the \(x_v\) variables from Formulation 1, we introduce a vector y, containing binary variables \(y_{vw}\) defined for all \(v \in V\), and \(w \in N[v]\). The intended interpretation will be that if \(y_{vw} = 1\), then vertex w is dominated only by vertex v; that is, w is a private neighbour of v. We again use d(v) to denote the degree of vertex v.

$$\begin{aligned} \max \sum _{v \in V} x_v \end{aligned}$$

subject to

$$\begin{aligned} \sum _{w \in N[v]} x_w\ge & {} 1, \;\;\;\;\;\qquad \forall v \in V, \end{aligned}$$
(2.4)
$$\begin{aligned} x_v - \sum _{w \in N[v]} y_{vw}\le & {} 0, \;\;\;\;\;\qquad \forall v \in V, \end{aligned}$$
(2.5)
$$\begin{aligned} d(w) y_{vw} + \sum _{u \in N[w] \setminus v} x_u\le & {} d(w), \qquad \forall v \in V, w \in N[v]. \end{aligned}$$
(2.6)

Theorem 2.2

Constraints (2.4)–(2.6) provide a correct formulation for the upper domination problem.

Proof

We first argue that any solution \((\textbf{x}, \textbf{y})\) to the constraints (2.4)–(2.6) corresponds to a minimal dominating set. Since \(\textbf{x}\) is binary, we define \(S(\textbf{x})\) to be the set of all vertices v for which \(x_v = 1\). It is clear that from (2.4) that \(S(\textbf{x})\) is a dominating set. Then, recall that a dominating set S is minimal if no proper subset of S is a dominating set. Hence it is sufficient to confirm that, for every vertex \(v \in S(\textbf{x})\), the set \(S(\textbf{x}) {\setminus } \{v\}\) is not dominating.

Consider any vertex \(v \in S(\textbf{x})\), then by definition we have \(x_v = 1\). From (2.5) this implies that \(\sum _{w \in N[v]} y_{vw} \ge 1\). Hence, there is some \(w \in N[v]\) such that \(y_{vw} = 1\). Then, consider (2.6), for the corresponding values of v and w. Since \(y_{vw} = 1\), (2.6) simplifies to \(\sum _{u \in N[w] {\setminus } v} x_u \le 0\). Hence, \(S(\textbf{x}) \cap N[w] = \{v\}\), and so \(S(\textbf{x}) \setminus \{v\}\) is not dominating. Since this argument can be applied to every vertex in \(S(\textbf{x})\), we conclude that \(S(\textbf{x})\) is a minimal dominating set.

Next, we argue that for every minimal dominating set, there is a corresponding solution to the constraints (2.4)–(2.6). Suppose that S is a minimal dominating set, then we need to assign values to \(\textbf{x}\) and \(\textbf{y}\) that will satisfy (2.4)–(2.6). For all \(v \in V\), we assign \(x_v = 1\) if \(v \in S\), and \(x_v = 0\) if \(v \not \in S\). Furthermore, for every vertex \(v \in S\), there must be at least one vertex, say \(w \in N[v]\) such that w is a private neighbour of v. For each \(v \in S\) we can select exactly one such vertex w, and denote it by p(v). Then, for all \(v \in V\), \(w \in N[v]\), we assign \(y_{vw} = 1\) if \(v \in S\) and \(w = p(v)\), and \(y_{vw} = 0\) otherwise. Note that it is clear that (2.4) is satisfied, since it only contains x variables and S is a dominating set. We will now argue that constraints (2.5) and (2.6) are also satisfied.

Consider constraints (2.5). For any given v and w, the constraint could only be violated if \(x_v = 1\) and \(\sum _{w \in N[v]} y_{vw} = 0\). However, if \(x_v = 1\), then \(v \in S\), and hence in the assignment of values above, we have chosen a private neighbour of v, say \(p(v) \in N[v]\), and assigned \(y_{vp(v)} = 1\). Hence, \(\sum _{w \in N[v]} y_{vw} \ge 1\) and so this constraint is not violated for any valid choice of minimal dominating set S.

Finally, consider constraints (2.6). It is clear that \(\sum _{u \in N[w] \setminus v} x_u \le d(w)\). Hence, for any given v and w, the constraint could only be violated if \(y_{vw} = 1\) and \(\sum _{u \in N[w] \setminus v} x_u \ge 1\). However, the latter implies there is some vertex \(u \in N[w] {\setminus } v\) such that \(u \in S\). That is, w is not a private neighbour of v, and so \(y_{vw} = 0\). Hence, this constraint is not violated for any valid choice of minimal dominating set S.\(\square \)

3 Additional constraints

In the previous section, we introduced Formulations 1 and 2 and showed that they are equivalent to the upper domination problem. In this section, we show that these formulations can each be augmented with an additional set of constraints which tighten the formulations, and hence may lead to superior empirical results; we explore this further in Sect. 4.

3.1 Augmented formulation 1

Recall that in addition to the standard \(\textbf{x}\) variables corresponding to vertices, Formulation 1 included an extra set of variables, z. The intended interpretation of \(\textbf{z}\) is that \(z_v = 1\) if and only if \(|S \cap N[v]| \ge 2\), however the constraints in Formulation 1 only imply this relationship in one direction. Specifically, they imply that if \(|S \cap N[v]| \ge 2\) then \(z_v = 1\). This can be seen by considering constraint (2.2). If we have \(|S \cap N[v]| \ge 2\) then that means we have \(\sum _{w \in N[v]} x_w \ge 2\). Constraints (2.2) then reduce to \(d(v)z_v \ge 1\). Since \(z_v\) is binary, we must have \(z_v = 1\).

In order to imply the opposite direction, we can impose additional constraints. In the following, it is clear that if \(z_v = 1\), then the constraint reduces to \(\sum _{w \in N[v]} x_w \ge 2\), as desired.

$$\begin{aligned} \sum _{w \in N[v]} x_w - z_v\ge & {} 1, \;\qquad \qquad \forall v \in V. \end{aligned}$$
(3.1)

We will refer to Formulation 1 with the addition of constraints (3.1) as Augmented Formulation 1.

Theorem 3.1

Augmented Formulation 1 is equivalent to the upper domination problem.

Proof

Since Augmented Formulation 1 contains all the constraints from Formulation 1, then from Theorem 2.1 we know that any solution must correspond to a minimal dominating set. Then all that remains is to ensure that for each minimal dominating set, there is a corresponding solution to Formulation 1 which also satisfies constraints (3.1).

Consider any minimal dominating set in the graph, and assign values to \(\textbf{x}\) and \(\textbf{z}\) in the manner described in the proof of Theorem 2.1. As proved in Theorem 2.1 this is a solution of Formulation 1. Since this solution satisfies constraints (2.1), we know that \(\sum _{w \in N[v]} x_w \ge 1\). Then, since the solution is binary, for any given \(v \in V\), constraints (3.1) could only be violated if \(z_v = 1\) and \(\sum _{w \in N[v]} x_w = 1\). However, the latter implies that \(|S \cap N[v]| = 1\), and according to the assignment of values in the proof of Theorem 2.1, we would have set \(z_v = 0\). Hence, this constraint is not violated, completing the proof. \(\square \)

3.2 Augmented formulation 2

We now undergo a similar exercise for Formulation 2, which contains the extra set of variables \(\textbf{y}\). The intended interpretation of \(\textbf{y}\) is that \(y_{vw} = 1\) if and only if w is a private neighbour of v. However, the constraints of Formulation 2 only imply this relationship in one direction. Specifically, they imply that if \(y_{vw} = 1\) then w is a private neighbour of v. This can be seen by considering constraint (2.6). If we have \(y_{vw} = 1\) then the constraint reduces to \(\sum _{u \in N[w] {\setminus } v} x_u = 0\). This, combined with constraints (2.4) and the variables being binary implies that \(x_v = 1\) and hence w is a private neighbour of v.

In order to imply the opposite direction, we can impose additional constraints. In the following, it is clear that if \(\sum _{u \in N[w] {\setminus } v} x_u = 0\) then the constraint reduces to \(y_{vw} \ge 1\), and since \(y_{vw}\) is binary it implies \(y_{vw} = 1\).

$$\begin{aligned} y_{vw} + \sum _{u \in N[w] \setminus v} x_u\ge & {} 1, \;\qquad \qquad \forall v \in V, w \in N[v]. \end{aligned}$$
(3.2)

We will refer to Formulation 2 with the addition of constraints (3.2) as Augmented Formulation 2.

Theorem 3.2

Augmented Formulation 2 is equivalent to the upper domination problem.

Proof

Since Augmented Formulation 2 contains all the constraints from Formulation 2, then from Theorem 2.2 we know that any solution must correspond to a minimal dominating set. Then all that remains is to ensure that for each minimal dominating set, there is a corresponding solution to Formulation 2 which also satisfies constraints (3.2).

Consider any minimal dominating set in the graph, and assign values to \(\textbf{x}\) and \(\textbf{y}\) in the manner described in the proof of Theorem 2.2. As proved in Theorem 2.2 this is a solution of Formulation 2. Since this solution is binary, for any given \(v \in V\), \(w \in N[v]\), constraints (3.2) could only be violated if \(y_{vw} = 0\) and \(\sum _{u \in N[w] {\setminus } v} x_u = 0\). However, the latter along with constraints (2.4) imply that \(x_v = 1\) and hence w is a private neighbour of v. Then, according to the assignment of values in the proof of Theorem 2.2, we would have set \(y_{vw} = 1\). Hence, this constraint is not violated, completing the proof. \(\square \)

We now provide a simple example to demonstrate that the augmented formulations are tighter than the original formulations.

Example 3.1

Consider the complete graph \(K_4\) and a minimal dominating set \(S = \{1\}\). The intended solution corresponding to this minimal dominating set for Formulation 1 is \(x_1 = 1\), and all other variables are zero. Likewise, the intended solution corresponding to this minimal dominating set for Formulation 2 is \(x_1 = y_{11} = y_{12} = y_{13} = y_{14} = 1\), and all other variables are 0. However, it can be easily checked that Formulation 1 is also satisfied by setting \(x_1 = 1\), and letting up to three of \(z_1\), \(z_2\), \(z_3\) and \(z_4\) be equal to 1 and the others to zero. Likewise, Formulation 2 is also satisfied by setting \(x_1 = 1\), and ensuring at least one of \(y_{11}\), \(y_{12}\), \(y_{13}\) and \(y_{14}\) is equal to 1 while the others are zero. Hence for both formulations, there are multiple solutions corresponding to this one minimal dominating set. However, it can be checked that only the intended solutions satisfy the additional constraints in the augmented formulations.

4 Experimental results

We now present some experimental results comparing the performance of the two formulations and their augmented versions. Each instance considered was run using CPLEX v12.9.0 via the Concert environment to MATLAB R2022b update 1 (9.13.0.2080170) 64-bit. The experiments were conducted on an Intel(R) Core(TM) i5-12500 CPU with a 6 core, 3.00GHz processor and 16GB of RAM, running Windows 10 Enterprise version 22H2. In each case, we set a maximum time limit of 10,000 s. It is worth noting that although there is an overhead involved with using the Concert environment in MATLAB, the times we report here are solely CPLEX runtimes.

There are a number of graphs for which the upper domination number is trivial. For instance, for complete graphs \(K_n\), it is easy to see that \(\Gamma (K_n) = 1\). Likewise, for complete bipartite graphs \(K_{mn}\) with \(2 \le m \le n\) it is also easy to see that \(\Gamma (K_{mn}) = 2\). However, these are not very interesting (or challenging) instances. Instead, we will focus on the following graph families.

  1. 1.

    The \(2 \times k\) queen graph, \(Q_{2k}\). From Hedetniemi and Hedetniemi (2021) we have \(\Gamma (Q_{2k}) = \big \lceil \frac{k}{2}\big \rceil \) for \(k \ge 1\).

  2. 2.

    The \(2 \times k\) rook graph, \(K_2 \Box K_k\). From Burcroff (2021) we have \(\Gamma (K_2 \Box K_k) = k\) for \(k \ge 1\).

  3. 3.

    The \(k \times k\) rook graph, \(K_k \Box K_k\). From Fricke et al. (1995) we have that \(\Gamma (K_k \Box K_k) = k\), for \(k \ge 1\).

  4. 4.

    The \(k \times k\) bishop graph, \(B_{kk}\). From Fricke et al. (1995) we have \(\Gamma (B_{kk}) = 2k - 2\), for \(k \ge 2\).

  5. 5.

    The \(k \times k\) knight graph, \(C_{kk}\). From Cockayne et al. (1981) we have \(\Gamma (C_{kk}) = \big \lceil \frac{k^2}{2}\big \rceil \) for \(k \ge 3\).

  6. 6.

    The \(k \times k\) grid graph, \(G_{kk}\). The upper domination number is not known in general for grid graphs.

  7. 7.

    The flower snark, \(J_k\). From Burdett et al. (2021) we have \(\Gamma (J_k) = 2k\) for even \(k \ge 4\), and \(\Gamma (J_k) = 2k - 1\) for odd \(k \ge 3\).

  8. 8.

    The generalized Petersen graph P(n, 2). In Sect. 5 we show that \(\Gamma (P(n,2)) = n\) for all \(n \ge 3\).

The rationale behind choosing these graph families for the experiments is as follows. Graphs based on chess boards and pieces have been widely studied for domination problems including upper domination (e.g. see Hedetniemi and Hedetniemi 2021), and provide non-trivial and structurally interesting instances. Grid graphs have also been extensively considered for domination problems (Alanko et al. 2011; Dorfling and Henning 2006; Gonçalves et al. 2011; Gravier 2002); the result showing that the domination number of grid graphs separates into 23 individual cases is a wonderful example of the surprising complexity of these instances.

We are also interested in exploring how graph density impacts on the performance of the formulations. The size of Formulation 1 (both before and after augmenting the additional constraints) depends only on the number of vertices, while the size of (Augmented) Formulation 2 depends on the number of vertices and edges. As such, it is reasonable to expect that the relative performance of these formulations might be impacted by the graph density. To study this, we have selected graph families with a variety of average degrees. For the queen, rook and bishop graphs, the average degree increases with the size of the graph. For the knight and grid graphs, the average degree tends towards 8 and 4 respectively as the size increases. We have also included flower snarks and generalized Petersen graphs as widely studied examples of 3–regular graphs.

Finally, we will also consider two kinds of random graphs; Erdős-Rényi graphs, and unit disk graphs. In particular, the latter have been widely considered in the context of domination problems (Clark et al. 1990; Marathe et al. 1995; Shang et al. 2010; Wang et al. 2023). For both Erdős-Rényi graphs and unit disk graphs, the parameters can be set to ensure that the expected average degree is equal to a desired value, which enables us to further explore the impact of graph density on the performance of the formulations. In the upcoming experiments, we consider average degrees of 4, 6, 8 and 10.

The time taken to solve the instances for various choices of parameters are displayed in Figs. 1, 2 and 3. In those figures, the large dotted line corresponds to Formulation 1 in this paper, the small dotted line to Formulation 2, the solid line to Augmented Formulation 1, and the dashed line to Augmented Formulation 2.

Fig. 1
figure 1

Times taken the various formulations to solve the unit disk graph test instances. The large dotted line corresponds to Formulation 1 in this paper, the small dotted line to Formulation 2, the solid line to Augmented Formulation 1, and the dashed line to Augmented Formulation 2

Fig. 2
figure 2

Times taken the various formulations to solve several chess and grid based test instances. The large dotted line corresponds to Formulation 1 in this paper, the small dotted line to Formulation 2, the solid line to Augmented Formulation 1, and the dashed line to Augmented Formulation 2

Fig. 3
figure 3

Times taken the various formulations to solve Flower snarks, generalized Petersen graphs, and Erdős-Rényi random graphs. The large dotted line corresponds to Formulation 1 in this paper, the small dotted line to Formulation 2, the solid line to Augmented Formulation 1, and the dashed line to Augmented Formulation 2

We first comment on the performance of the augmented formulations compared to the non-augmented formulations. As discussed in Sect. 3, the augmented formulations have a reduced set of feasible solutions, however this does not necessarily correspond to a faster computation time for a solver. For instance, there may be additional overhead costs associated with handling the additional constraints, and there may also be fewer optimal solutions for the solver to “stumble into". However, we observe that in our experiments, the augmented formulations did indeed outperform their equivalent non-augmented formulations, particularly as the size of the graph increased. In particular, Augmented Formulation 1 performed significantly better than Formulation 1 in all experiments. Augmented Formulation 2 generally outperformed Formulation 2, but the level of improvement was not as stark as for the first formulation, and there were some graph families where Formulation 2 displayed (marginally) superior performance even as the size of the graph increased.

For graphs where the average degree increases with the size of the graph (e.g. the queens, rook, and bishop graphs), we observed that Augmented Formulation 1 tended to outperform Augmented Formulation 2. However, for 3–regular graphs (e.g. the Flower snarks and the generalized Petersen graphs) Augmented Formulation 2 significantly outperformed Augmented Formulation 1. We postulate that there is some tipping point for the average degree where the two formulations perform equally well, and indeed, we observe this for the randomly generated graphs with low average degree (e.g. Erdős-Rényi and unit disk graphs). For the randomly generated graphs with average degree 4, Augmented Formulation 2 outperforms Augmented Formulation 1. However, the gap closes as the average degree is increased, with the two formulations performing similarly well for Erdős-Rényi graphs of average degree 6, and unit disk graphs of average degree 10.

In conclusion, these experiments suggest that, among the formulations introduced in this paper, Augmented Formulation 1 should be favoured for all but very sparse instances, in which case Augmented Formulation 2 should be favoured instead. A fascinating topic for future research would be to consider if either of these formulations could be further tightened with additional constraints, or by considering different variables. Alternatively, it would be interesting to investigate whether the constraints developed in this paper could be employed directly to construct more sophisticated exact algorithms for upper domination, rather than simply embedding them in an MILP formulation.

5 Upper domination numbers for generalized Petersen graphs

We conclude this paper by deriving the upper domination numbers for all generalized Petersen graphs, a family of graphs first introduced by Coxeter (1950) and later named by Watkins (1969). We first recall the definition of generalized Petersen graphs.

Definition 5.1

Consider integers \(n \ge 3\), and \(1 \le k < n/2\). Then the generalized Petersen graph with parameters nk (denoted P(nk)) is a 3–regular graph on 2n vertices. The vertex set is \(\{u_0\), \(u_1\), \(\ldots \), \(u_{n-1}\), \(v_0\), \(v_1\), \(\ldots \), \(v_{n-1}\}\), and the edge set is constructed as follows. For each \(0 \le i \le n-1\), P(nk) contains edges \(\{u_i,u_{i+1}\}\), \(\{u_i,v_i\}\), and \(\{v_i,v_{i+k}\}\), where the subscripts are to be read modulo n.

In the upcoming proof, we will make use of the following two results from Bazgan et al. (2018) and Rosenfeld (1964), where |V(G)| is the order of the graph G, and \(\alpha (G)\) is the independence number of G.

Lemma 5.1

(Bazgan et al. (2018)) For any given graph G of minimum degree \(\delta \) and maximum degree \(\Delta \), we have:

$$\begin{aligned} \alpha (G) \le \Gamma (G) \le \max \left\{ \alpha (G), \frac{|V(G)|}{2} + \frac{\alpha (G)(\Delta - \delta )}{2\Delta } - \frac{\Delta - \delta }{\Delta }\right\} . \end{aligned}$$

Lemma 5.2

(Rosenfeld (1964)) If G is a d–regular graph with \(d \le \big \lceil \frac{|V(G)|}{2}\big \rceil \), then \(\alpha (G) \le \left\lfloor \frac{|V(G)|}{2}\right\rfloor \).

These two results lead immediately to the following corollary.

Corollary 5.1

If G is a 3–regular graph with \(|V(G)| \ge 6\), then \(\Gamma (G) \le \frac{|V(G)|}{2}\).

Theorem 5.1

Consider the generalized Petersen graph P(nk), for \(n \ge 3\) and \(1 \le k < n/2\). Then, \(\Gamma (P(n,k)) = n\).

Proof

By definition, P(nk) is a 3–regular graph on \(2n \ge 6\) vertices. From Corollary 5.1, we have \(\Gamma (P(n,k)) \le n\). Then, it suffices to provide a corresponding lower bound. From the definition of P(nk) we can see that vertices \(u_i\) and \(v_j\) are adjacent if and only if \(i = j\). Then it is clear that \(S = \{u_0, \ldots , u_{n-1}\}\) is a dominating set, and that any proper subset of S will leave at least one vertex \(v_i\) undominated. Therefore S is a minimal dominating set, and so \(\Gamma (P(n,k)) \ge n\), completing the proof. \(\square \)