\documentclass{article}

\usepackage{epsfig}

%\usepackage{algorithm2e}
%\usepackage[linesnumbered]{algorithm2e}
%\usepackage[linesnumbered,ruled]{algorithm2e}
\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\;
               }\EndIf\;
           }\Endfor\;   }
        
        solution $\gets$ solve Master($\Omega_1$)\;
        \If {solution $\notin Z$} 
        {
              ub $\gets$ Solve Master($\Omega_1$,integral)\;
                  \If {solution=ub} 
                             {
                        \Break\;
                             } \EndIf\;
                             
                  solution  $\gets$ branch and bound (solution)\;                                     
       }  \EndIf\;                
\Print{ solution} 
}\;   
       

\caption{{\sc Branch and price}}
\label{algo:duplicate2}
\end{algorithm}

\end{document}