Analysis of mathematical programming problems prior to applying the simplex algorithm