The Variational Collocation Method