We examine the optimal portfolio selection problem of a single agent who receives an unhedgeable endowment. The agent wishes to optimize his/her log-utility derived from his/her terminal wealth. We do not solve this problem analytically but construct a recursive computational algorithm which...