first step towards weekly planning

This commit is contained in:
artus
2018-12-24 15:44:19 +01:00
parent f0bc06d9ed
commit 8236b8ac9f
7 changed files with 99 additions and 17 deletions

16
planner/src/rules.rs Normal file
View File

@@ -0,0 +1,16 @@
//! Rules used by the `planner`
//! A rule is a constraint on valid solutions, but also provides insights
//! and eventually inferences to optimize the solving process.
// Nutritional values
// - Per day : according to user profile (man: 2000kcal, woman: 1800kcal)
// - Per meal : some meals should have higher nutrional values than others
// Ingredients
// - Per week : should use most of a limited set of ingredients (excluding
// condiments, ...)
// - To consume : must use a small set of ingredients (leftovers)
//
// Price
// - Per week : should restrict ingredients cost to a given amount