Variants of the construction of the effective Hamiltonian for valence elect
rons of an atom are discussed. It is shown that a proper choice of the opti
mum initial approximation can substantially improve the agreement between c
alculated and experimental spectra of multielectron atoms. The optimized ef
fective Hamiltonian can be used for calculations of atomic quantities.