solve_grid_linear_simple2 can now take a sequence of least squares weights.