Stability solutions of a dumbbell-like system in an elliptical orbit