Ground-state variational procedure