\documentclass[review]{elsarticle}

\usepackage{lineno,hyperref}
\usepackage{latexsym}
\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} 
                             {
                       \State 
                       \Print}\EndIf\;
                  solution  $\gets$ branch and bound (solution)\;                                     
       }  \EndIf\;                
 }
        \Print{ solution}\;

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