Optimized heat pumps for heating