We give a characterization on the sets A ⊆ ℕ d such that the monoid generated by A is a generalized numerical semigroup (GNS) in ℕ d . Furthermore we give a procedure to compute the hole set ℕ d \ S , where S is a GNS, if a finite set of generators of S is known.