Abstract
Theoretical calculations show that inhomogeneous doping can increase the efficiency of thermoelectric generators and refrigerators.