On Finite-element Elastoplastic Analysis Based On Generalized Variables