Hacker News new | past | comments | ask | show | jobs | submit login

From the fortune files:

    This is the first numerical problem I ever did.  It demonstrates the
    power of computers:

    Enter lots of data on calorie & nutritive content of foods.  Instruct
    the thing to maximize a function describing nutritive content, with a
    minimum level of each component, for fixed caloric content.  The
    results are that one should eat each day:

        1/2 chicken
        1 egg
        1 glass of skim milk
        27 heads of lettuce.
                -- Rev. Adrian Melott



I think I saw the similar story, but the requirement was to get the cheapest version. The result was 10 liters of vinegar, iirc.


This was our assignment for an AI class many years ago - take USDA and a GA with constraints set by users to generate meal plans.

I remember being told to eat a kilo of salt :)


That sounds like an insult. "Hey, buddy! Go eat a kilo of salt!"


I tried it and lunch was "2c. whole milk + .5c green beans" and dinner was fruit juice + potatoes.

Ah, computers.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: