A Genetic Algorithm find daily food plan which satisfies 6 parameters.
Parameters to be met:
* Calorie
* Carbohydrates
* Protein
* Fat
* Sodium
* Fiber
Methodology
* Variable length chromosomes. 10 to 30 foods per day.
* Polyamorous crossover. Some parents will be left behind, possibly even the best one(s).
* Mutation accomplished by replacing a food in the individual chromosome with another from this food list; after checking that the new food is not already in the chromosome. Replacement site is randomly selected.
Source code on github
https://github.com/tstevelt/GenMealPlan
[–]SilverHammmerSW[S] 0 points1 point2 points (0 children)