Aim of this paper is to extend the error based approach to the study o
f general electromagnetic problems in 3D geometries in which the displ
acement currents may not be neglected. The unknown variables are the,
three-component vector potential A and W defined as the time integrals
of -E and H, respectively. These potentials are constrained to satisf
y initial, boundary and interface conditions. Since in this way the Ma
xwell equations are automatically satisfied, the solution is obtained
via minimization of a global error functional which approaches zero wh
en the constitutive equations are satisfied.