Objective function¶
Since the number of elements in the feedback vertex set should be as small as possible, the objective
function is:
$$
\displaystyle -\sum_{v=0}^{N-1} y_v,
$$
Note that $y_v$ is $0$ if the feedback vertex set includes the vertex $v$ and $1$ otherwise.
Constraints¶
For $y$ and $x$ to represent the feedback vertex set, we need the following.
-
Condition 1: Vertices not included in $F$ are numbered $1$. That is, the row $v$ of $x$ are all
$0$
if the feedback vertex set includes $v$, and it yields a single $1$ otherwise.
-
Condition 2: For an edge $u\rightarrow v$ of $G$, if $u$ and $v$ are not both in the feedback
vertex
set, then the number of $u$ is less than the number of $v$. That is, $x_{u, j}$ and $x_{v, i}$
must
not both be $1$ for natural numbers $i \leq j$ at this time (note: $x_{u, \underline{i}}$ and
$x_{v,
\underline{j}}$ may both be $1$).
The condition 1 is:
$$
\sum_{i=0}^{N-1} x_{v, i} = y_v \quad \text{for} \quad v \in \{0, 1, \ldots, N-1\}.
$$
Also, from condition 1, if the feedback vertex set includes either $u$ or $v$, then $x_{u, j}$ and
$x_{v,
i}$ cannot both be $1$, so the condition "$u$ and $v$ are not both included in the feedback vertex
set" in
the condition 2 is naturally considered. Therefore, condition 2 is satisfied by the following
equation.
$$
x_{u, j} x_{v, i} = 0 \quad \text{for} \quad (u, v) \in E, \ 0 \leq i \leq j < N.
$$
Conversely, when the binary variables $y$ and $x$ satisfy conditions 1 and 2, the set of vertices
whose
corresponding $y$ is $y=0$ is the feedback vertex set, so these can be given as the constraint
conditions.