The total energy is written as a combination of valence term