A solution to plane strain rolling by the weighted residuals method