No description
  • TeX 57.4%
  • Python 42.6%
Find a file
2023-10-19 22:08:48 +02:00
Code docs: work on solving expanded report 2023-10-19 03:39:02 +02:00
Data feat: 🎨 upload more model plots 2023-10-18 03:11:13 +02:00
Images docs: 📝 work on cost optimization in results 2023-10-18 16:02:33 +02:00
Latex feat: 🚀 updated .pdf upload 2023-10-19 22:08:48 +02:00
Models docs: 📝 work on cost optimization in results 2023-10-18 16:02:33 +02:00
Solutions docs: 📝 work on cost optimization in results 2023-10-18 16:02:33 +02:00
.gitignore chore: 🙈 exclude virtual env 2023-10-18 18:51:58 +00:00
hosts ci: 🔧 add slots to MPI host file 2023-10-19 00:34:03 +02:00
MarkoUrbanč_102.pdf feat: 🚀 updated .pdf upload 2023-10-19 22:08:48 +02:00
MarkoUrbanč_102.txt feat: 🚀 upload .pdf 2023-10-19 05:24:18 +02:00
mod102_instructions.pdf init: 🎉 initial commit 2023-10-14 16:55:19 +02:00
README.md docs: 📝 update dataset installation instructions in README 2023-10-18 20:33:41 +02:00
requirements.txt chore: 📌 add messy requirements.txt 2023-10-18 20:42:37 +02:00
test.png feat: 🎨 good progress on holoview Sankey plots 2023-10-17 02:36:37 +02:00

Linear programing

Repository Installation

Since full unprocessed datasets are too large to be stored in the repository, they are stored elsewhere online and must be downloaded separately if you want full functionality of all the scripts. Most importantly the FoodData Central database must be downloaded from here It can be done like so:

cd Data
wget https://fdc.nal.usda.gov/fdc-datasets/FoodData_Central_csv_2023-04-20.zip
unzip -d FoodData FoodData_Central_csv_2023-04-20.zip

Basic problem

Let us minimize the amount of calories, thus creating a diet plan if we need to meet the following conditions:

  • 70 g of fats
  • 310 g of carbohydrates
  • 50 g of proteins
  • 1000 mg of calcium
  • 18 mg of of iron

Additionally it must hold:

  • Daily intake of food is < 2 kg
  • 60 mg of vitamin C
  • 3500 mg of potassium
  • acceptable level of sodium (500 - 2400 mg)

Possible ideas

  • Create a diet for an alcoholic so maximize the amount of alcohol in the diet