Static and dynamic portfolio allocation with nonstandard utility functions