A general model of price competition with soft capacity constraints