News for hackers. Stuff that matters.
Re:Show HN: App creates a meal plan that satisfies your nutr... by derleth on Thursday August 09, 2012 @04:43AM (#4360177)
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
Re:Show HN: App creates a meal plan that satisfies your nutr... by rimantas on Thursday August 09, 2012 @06:52AM (#4360447)
I think I saw the similar story, but the requirement was to get the cheapest version. The result was 10 liters of vinegar, iirc.
Re:Show HN: App creates a meal plan that satisfies your nutr... by sciboy on Thursday August 09, 2012 @06:12AM (#4360370)
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 :)

Re:Show HN: App creates a meal plan that satisfies your nutr... by StavrosK on Thursday August 09, 2012 @07:07AM (#4360483)
That sounds like an insult. "Hey, buddy! Go eat a kilo of salt!"
Re:Show HN: App creates a meal plan that satisfies your nutr... by blogkitten on Thursday August 09, 2012 @11:51AM (#4361630)
I tried it and lunch was "2c. whole milk + .5c green beans" and dinner was fruit juice + potatoes.

Ah, computers.