Selection of the Ridge Parameter Using Mathematical Programming