Skip to content
forked from frnsys/nutrimix

generate the cheapest nutritional shake mix based on ingredients and nutritional targets

Notifications You must be signed in to change notification settings

ondrocks/nutrimix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this treats the creation of a cheap, nutritional shake as a constrained optimization problem, where you want to:

  • minimize the cost of each shake
  • meet some minimum nutritional content targets
  • under some maximum shake size (currently 18oz)

notes:

- id: '<NDB id>'
  cost: <cost/g>
  • to search for a food: python search.py "<QUERY>"
    • the USDA NDB has multiple entries for many foods with varying quality of information, so make sure you pick one with as much info as possible. You can check at https://ndb.nal.usda.gov/ndb/search/list
  • to generate a mix: python mix.py

About

generate the cheapest nutritional shake mix based on ingredients and nutritional targets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%