I have used an invisible fence with success to keep my dog from wandering. They are relatively cheap, easy to install. In fact you can just lay the ground wire on the ground instead of burying if is in a place that will not get cut. Many dogs will get trained and never even need the fence to be...