The nematode worm C. elegans chooses between bacterial foods as if maximizing economic utility