amin=(A⊤A)−1A⊤y with J(amin)=mina∈RMJ(a) where, a→Weights A→Ansatz points y→Given dependent variables