A Unified Mathematical Programming Formulation for the Discriminant Problem