I saw some guy in Britain that replaced his old fence with one made of solar panels because the cost difference between that and traditional was nil.
EDIT: The fence gets at least 4 hours of direct sun in the winter; up to 7 in the summer. I can easily install 10KW of panels. I don’t have any way to store the power. I suppose I could build a giant Tesla coil and zap the neighbor’s dog?