The generator coordinate method as an approximation to the exact diagonalization in a given model space