Ordinal Regression by a Generalized Force-Based Model