\documentclass{article}
\usepackage[linesnumbered,ruled,vlined]{algorithm2e}
\begin{document}
\begin{algorithm}
\DontPrintSemicolon
\KwData{data file, $\Omega$,finished-boolean,duals-float}
\KwResult{$\Omega_1 \subset \Omega$, solution}
\Begin{
$\Omega_1$ $\gets$ Initial Heuristic($\Omega$)\;
duals $\gets \emptyset$\;
solution $\gets \emptyset$\;
\Repeat {finished}{
duals $\gets$ Solve Master($\Omega_1$)\;
finished$ \gets$ true\;
\For{$i\in N$}{
temp $\gets$ solve Sub problem($i$,duals)\;
\If {reduced Cost(temp)$<0$}{
$\Omega_1=\Omega_1$ $\cup$ temp\;
finished $\gets$ false
}
}
}
solution $\gets$ solve Master($\Omega_1$)\;
\If {solution $\notin Z$}{
ub $\gets$ Solve Master($\Omega_1$,integral)\;
\If {solution=ub}{\textbf{break}}
solution $\gets$ branch and bound (solution)
}
\textbf{print} solution
}
\caption{Branch and price}
\label{algo:duplicate2}
\end{algorithm}
\end{document}