A class of optimization problems motivated by rank estimators in robust regression. (3rd August 2022)