GitHub

@@ -110,8 +110,8 @@ Hence, our problem is

110110

$$

111111

\begin{aligned}

112112

\min_{\mu \in \mathbb{Z}_+^{X \times Y}}& \sum_{(x,y) \in X \times Y} \mu_{xy}|x-y|^{1/\zeta} \\

113-

\text{s.t. }& \sum_{x \in X} \mu_{xy} = n_x \\

114-

& \sum_{y \in Y} \mu_{xy} = m_y

113+

\text{s.t. }& \sum_{y \in Y} \mu_{xy} = n_x \\

114+

& \sum_{x \in X} \mu_{xy} = m_y

115115

\end{aligned}

116116

$$

117117

@@ -1677,8 +1677,8 @@ Let's recall the formulation

16771677

$$

16781678

\begin{aligned}

16791679

V_P = \min_{\mu \geq 0}& \sum_{(x,y) \in X \times Y} \mu_{xy}c_{xy} \\

1680-

\text{s.t. }& \sum_{x \in X} \mu_{xy} = n_x \\

1681-

& \sum_{y \in Y} \mu_{xy} = m_y

1680+

\text{s.t. }& \sum_{y \in Y} \mu_{xy} = n_x \\

1681+

& \sum_{x \in X} \mu_{xy} = m_y

16821682

\end{aligned}

16831683

$$

16841684

@@ -1706,8 +1706,8 @@ Then we can formulate the following problem and its dual

17061706

$$

17071707

\begin{aligned}

17081708

W_P = \max_{\mu \geq 0}& \sum_{(x,y) \in X \times Y} \mu_{xy}y_{xy} \\

1709-

\text{s.t. }& \sum_{x \in X} \mu_{xy} = n_x \\

1710-

& \sum_{y \in Y} \mu_{xy} = m_y

1709+

\text{s.t. }& \sum_{y \in Y} \mu_{xy} = n_x \\

1710+

& \sum_{x \in X} \mu_{xy} = m_y

17111711

\end{aligned}

17121712

$$

17131713

@@ -1956,7 +1956,7 @@ exam_assign_OD.plot_hierarchies(subpairs)

1956195619571957

We proceed to describe and implement the algorithm to compute the dual solution.

195819581959-

As already mentioned, the algorithm starts from the matched pairs $(x_0,y_0)$ with no subpairs and assigns the (temporary) values $\psi_{x_0} = c_{x_0 y_0}$ and $\psi_{y_0} = 0,$ i.e. the $x$ type sustains the whole cost of matching.

1959+

As already mentioned, the algorithm starts from the matched pairs $(x_0,y_0)$ with no subpairs and assigns the (temporary) values $\phi_{x_0} = c_{x_0 y_0}$ and $\psi_{y_0} = 0,$ i.e. the $x$ type sustains the whole cost of matching.

196019601961196119621962

@@ -1976,7 +1976,7 @@ $$

19761976

\leq \min (c_{x_0 y_j} + c_{x_i y_0} - c_{x_0 y_0} , c_{x_i y_j}) - c_{x_j y_j} , \quad \text{for all } 1 \leq i < j \leq p.

19771977

$$

197819781979-

Then for all $i \in [p]$ compute the adjustment $ \Delta_i = \sum_{k = i+1}^p \beta_k + \phi_{x_p} - \phi_{x_1}$ and modify the dual variables

1979+

Then for all $i \in [p]$ compute the adjustment $ \Delta_i = \sum_{k = i+1}^p \beta_k + \phi_{x_p} - \phi_{x_i}$ and modify the dual variables

1980198019811981

$$

19821982

\begin{aligned}

Read the original on github.com ↗