Goal: To have a magnetic clamp stick together with your magnet,

Which of the following methods is more reasonable for accomplishing this goal?
make sure that the magnetic base and the magnet you are using touch with opposite polarity.