The quality of a functional is judged by the root-mean-square (RMS) deviation of the computed results from the experimental values for the 129 data points. This requires the evaluation of self-consistent energies on 150 atoms and molecules. The RMS deviation is minimized with respect to parameters included in the functionals. Linear combinations of different functionals and combinations of the same functional with different parameters are considered. This optimization can be carried out in two ways. In the first, termed `internal' optimization, the full functional is written as a linear combination of component functionals
with adjustable coefficients ci. This functional is then used to calculate the 150 self-consistent energies, leading to an RMS deviation from experiment, which is minimized with respect to the ci. The Hartree-Fock exchange can be included by adding another term to this sum with an additional c coefficient. This is the conventional mixing method introduced by Becke [119].
The second method used is termed `external' optimization. Here the 150 energies are calculated for each of the component functionals
Note that, if there are n functionals, this will require the 150n single point Kohn-Sham calculations. The energies for each functional can be arranged as n vectors
and then combined, using coefficients ci, to give a single set of 150 energies as a vector
This mixture is, in effect, a `linear combination of model chemistries' defined by the coefficients ci. As before, the RMS deviation from experiment is minimized with respect to the ci.
While the second type could be used as a model, the internal optimization is clearly preferable as only one calculation is required (compared with n calculations). However optimization by the `external' method is much faster as it only involves quadratic minimization of the coefficients. Thus the external optimization can be used first as a pointer to worthwhile candidates for internal optimization.