Generalized expected utility theory