Non-linear least-squares estimation