cplex and mosek accept other numeric types

For example, decimal.Decimal