I replace the assumption of individual optimization, common in economic literature, by an assumption that an individual executes a computational algorithm directed at finding the choice that is good at the time the choice is made. The general properties of such algorithm are studied