the variational base class using numerical intregation