Here is the least absolute deviation problem under concerned: $ \underset{\textbf{w}}{\arg\min} L(w)=\sum_{i=1}^{n}|y_{i}-\textbf{w}^T\textbf{x}|$. I know it can be rearranged as LP problem in following way:
$\min \sum_{i=1}^{n}u_{i}$
$u_i \geq \textbf{x}^T\textbf{w}- y_{i} \; i = 1,\ldots,n$
$u_i \geq -\left(\textbf{x}^T\textbf{w}-y_{i}\right) \; i = 1,\ldots,n$
I have no idea to solve it with simplex method. I don't want to use package but solve it with written computation. Could you please help me with this problem? Thanks in advance!