model for the modern diet problem More...
Go to the source code of this file.
Functions | |
def | diet (F, N, a, b, c, d) |
def | make_inst () |
Variables | |
F | |
N | |
a | |
b | |
c | |
d | |
model = diet(F,N,a,b,c,d) | |
x | |
y | |
z | |
v | |
model for the modern diet problem
Definition in file diet.py.
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.