Functions | |
| def | diet (F, N, a, b, c, d) | 
| def | make_inst () | 
Variables | |
| a | |
| b | |
| c | |
| d | |
| F | |
| def | model = diet(F, N, a, b, c, d) | 
| N | |
| v | |
| x | |
| y | |
| z | |
| def diet.diet | ( | F, | |
| N, | |||
| a, | |||
| b, | |||
| c, | |||
| d | |||
| ) | 
diet -- model for the modern diet problem
Parameters:
    - F: set of foods
    - N: set of nutrients
    - a[i]: minimum intake of nutrient i
    - b[i]: maximum intake of nutrient i
    - c[j]: cost of food j
    - d[j][i]: amount of nutrient i in food j
Returns a model, ready to be solved.
 
Definition at line 10 of file diet.py.
References pyscipopt.expr.quicksum().
| def diet.make_inst | ( | ) | 
make_inst: prepare data for the diet model
Definition at line 49 of file diet.py.
References pyscipopt.Multidict.multidict().