The Magic Formula Tire Tool uses the Fitter included in the Magic Formula Tire MATLAB Library. It also uses a least-squares approach but uses the fmincon function instead. This is because I also wanted to implement nonlinear constraints, as certain variables of Magic Formula Tire should always be within certain bounds.