A variationally consistent generalized variable formulation of the elastoplastic rate problem.