A unified model for the sparse optimal scoring problem. (January 2023)