Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
| Download
Kernel: SageMath (stable)
Chipotle!!!!!!!!!!!!!!!!!!!!!!!!!
The matrix M has rows for each ingredient and columns for attributes. The ingredients have different sections The attributes of the ingredients are as follows: Taste Rank (1-100), Cost, Calories, Total Fat (G), Sodium (MG), Protein (G), and Sugar (G).
In [187]:
In [188]:
Out[188]:
In [189]:
Out[189]:
[6.85000000000000,
7.85000000000000,
7.30000000000000,
7.85000000000000,
6.85000000000000,
4.80000000000000,
0,
0,
0,
0,
0,
1.25000000000000,
0,
0,
0,
0,
0,
0,
2.05000000000000,
0]
In [190]:
Out[190]:
[98, 90, 40, 40, 50, 60, 65, 55, 65, 50, 7, 80, 65, 50, 25, 65, 58, 79, 93, 50]
In [191]:
Out[191]:
98*x_0 + 90*x_1 + 40*x_2 + 40*x_3 + 50*x_4 + 60*x_5 + 65*x_6 + 55*x_7 + 65*x_8 + 50*x_9 + 7*x_10 + 80*x_11 + 65*x_12 + 50*x_13 + 25*x_14 + 65*x_15 + 58*x_16 + 79*x_17 + 93*x_18 + 50*x_19
In [192]:
Out[192]:
6.85*x_0 + 7.85*x_1 + 7.3*x_2 + 7.85*x_3 + 6.85*x_4 + 4.8*x_5 + 1.25*x_11 + 2.05*x_18
x[i]=the item that we include in the bowl x[taste rank, cost,calories,fat,sodium,protein, sugar] x[i,j,k,l,m,n,o]
Parameters
In [0]:
In [182]:
Out[182]:
Maximization:
91.15 x_0 + 82.15 x_1 + 32.7 x_2 + 32.15 x_3 + 43.15 x_4 + 55.2 x_5 + 65.0 x_6 + 55.0 x_7 + 65.0 x_8 + 50.0 x_9 + 7.0 x_10 + 78.75 x_11 + 65.0 x_12 + 50.0 x_13 + 25.0 x_14 + 65.0 x_15 + 58.0 x_16 + 79.0 x_17 + 90.95 x_18 + 50.0 x_19
Constraints:
-180.0 x_0 - 150.0 x_1 - 210.0 x_2 - 170.0 x_3 - 150.0 x_4 - 40.0 x_5 - 210.0 x_6 - 210.0 x_7 - 130.0 x_8 - 130.0 x_9 - 20.0 x_10 - 120.0 x_11 - 25.0 x_12 - 80.0 x_13 - 15.0 x_14 - 30.0 x_15 - 110.0 x_16 - 110.0 x_17 - 230.0 x_18 - 5.0 x_19 <= -750.0
180.0 x_0 + 150.0 x_1 + 210.0 x_2 + 170.0 x_3 + 150.0 x_4 + 40.0 x_5 + 210.0 x_6 + 210.0 x_7 + 130.0 x_8 + 130.0 x_9 + 20.0 x_10 + 120.0 x_11 + 25.0 x_12 + 80.0 x_13 + 15.0 x_14 + 30.0 x_15 + 110.0 x_16 + 110.0 x_17 + 230.0 x_18 + 5.0 x_19 <= 1000.0
-7.0 x_0 - 6.0 x_1 - 12.0 x_2 - 7.0 x_3 - 10.0 x_4 - 4.0 x_6 - 6.0 x_7 - 1.5 x_8 - 1.5 x_9 - 8.0 x_11 - 1.5 x_13 - 9.0 x_16 - 8.0 x_17 - 22.0 x_18 <= -15.0
7.0 x_0 + 6.0 x_1 + 12.0 x_2 + 7.0 x_3 + 10.0 x_4 + 4.0 x_6 + 6.0 x_7 + 1.5 x_8 + 1.5 x_9 + 8.0 x_11 + 1.5 x_13 + 9.0 x_16 + 8.0 x_17 + 22.0 x_18 <= 32.0
310.0 x_0 + 330.0 x_1 + 450.0 x_2 + 530.0 x_3 + 560.0 x_4 + 300.0 x_5 + 350.0 x_6 + 190.0 x_7 + 210.0 x_8 + 210.0 x_9 + 150.0 x_10 + 200.0 x_11 + 550.0 x_12 + 330.0 x_13 + 260.0 x_14 + 500.0 x_15 + 30.0 x_16 + 190.0 x_17 + 370.0 x_18 <= 940.0
-32.0 x_0 - 21.0 x_1 - 23.0 x_2 - 24.0 x_3 - 8.0 x_4 - 2.0 x_5 - 4.0 x_6 - 4.0 x_7 - 8.0 x_8 - 8.0 x_9 - x_10 - 6.0 x_11 - 3.0 x_13 - 2.0 x_16 - 6.0 x_17 - 2.0 x_18 <= -18.0
5.0 x_4 + 4.0 x_5 + 2.0 x_8 + x_9 + 2.0 x_10 + x_11 + x_12 + 4.0 x_13 + 2.0 x_14 + 2.0 x_16 + x_18 <= 10.0
1.0 <= x_0 + x_1 + x_2 + x_3 + x_4 + x_5 <= 1.0
x_6 + x_7 <= 1.0
x_8 + x_9 <= 1.0
Variables:
x_0 is a boolean variable (min=0.0, max=1.0)
x_1 is a boolean variable (min=0.0, max=1.0)
x_2 is a boolean variable (min=0.0, max=1.0)
x_3 is a boolean variable (min=0.0, max=1.0)
x_4 is a boolean variable (min=0.0, max=1.0)
x_5 is a boolean variable (min=0.0, max=1.0)
x_6 is a boolean variable (min=0.0, max=1.0)
x_7 is a boolean variable (min=0.0, max=1.0)
x_8 is a boolean variable (min=0.0, max=1.0)
x_9 is a boolean variable (min=0.0, max=1.0)
x_10 is a boolean variable (min=0.0, max=1.0)
x_11 is a boolean variable (min=0.0, max=1.0)
x_12 is a boolean variable (min=0.0, max=1.0)
x_13 is a boolean variable (min=0.0, max=1.0)
x_14 is a boolean variable (min=0.0, max=1.0)
x_15 is a boolean variable (min=0.0, max=1.0)
x_16 is a boolean variable (min=0.0, max=1.0)
x_17 is a boolean variable (min=0.0, max=1.0)
x_18 is a boolean variable (min=0.0, max=1.0)
x_19 is a boolean variable (min=0.0, max=1.0)
{0: 1.0,
1: 0.0,
2: 0.0,
3: 0.0,
4: 0.0,
5: 0.0,
6: 0.0,
7: 1.0,
8: 1.0,
9: 0.0,
10: 0.0,
11: 1.0,
12: 0.0,
13: 0.0,
14: 0.0,
15: 0.0,
16: 1.0,
17: 0.0,
18: 0.0,
19: 1.0}
In [183]:
Out[183]:
chicken
Brown Rice
Black Beans
Queso
Sour cream
Lettuce
In [184]:
Out[184]:
755
In [0]:
In [185]:
Out[185]:
WARNING: Some output was deleted.
In [196]:
Out[196]:
Maximization:
91.15 x_0 + 82.15 x_1 + 32.7 x_2 + 32.15 x_3 + 43.15 x_4 + 55.2 x_5 + 65.0 x_6 + 55.0 x_7 + 65.0 x_8 + 50.0 x_9 + 7.0 x_10 + 78.75 x_11 + 65.0 x_12 + 50.0 x_13 + 25.0 x_14 + 65.0 x_15 + 58.0 x_16 + 79.0 x_17 + 90.95 x_18 + 50.0 x_19
Constraints:
-180.0 x_0 - 150.0 x_1 - 210.0 x_2 - 170.0 x_3 - 150.0 x_4 - 40.0 x_5 - 210.0 x_6 - 210.0 x_7 - 130.0 x_8 - 130.0 x_9 - 20.0 x_10 - 120.0 x_11 - 25.0 x_12 - 80.0 x_13 - 15.0 x_14 - 30.0 x_15 - 110.0 x_16 - 110.0 x_17 - 230.0 x_18 - 5.0 x_19 <= -750.0
180.0 x_0 + 150.0 x_1 + 210.0 x_2 + 170.0 x_3 + 150.0 x_4 + 40.0 x_5 + 210.0 x_6 + 210.0 x_7 + 130.0 x_8 + 130.0 x_9 + 20.0 x_10 + 120.0 x_11 + 25.0 x_12 + 80.0 x_13 + 15.0 x_14 + 30.0 x_15 + 110.0 x_16 + 110.0 x_17 + 230.0 x_18 + 5.0 x_19 <= 1000.0
-7.0 x_0 - 6.0 x_1 - 12.0 x_2 - 7.0 x_3 - 10.0 x_4 - 4.0 x_6 - 6.0 x_7 - 1.5 x_8 - 1.5 x_9 - 8.0 x_11 - 1.5 x_13 - 9.0 x_16 - 8.0 x_17 - 22.0 x_18 <= -15.0
7.0 x_0 + 6.0 x_1 + 12.0 x_2 + 7.0 x_3 + 10.0 x_4 + 4.0 x_6 + 6.0 x_7 + 1.5 x_8 + 1.5 x_9 + 8.0 x_11 + 1.5 x_13 + 9.0 x_16 + 8.0 x_17 + 22.0 x_18 <= 32.0
310.0 x_0 + 330.0 x_1 + 450.0 x_2 + 530.0 x_3 + 560.0 x_4 + 300.0 x_5 + 350.0 x_6 + 190.0 x_7 + 210.0 x_8 + 210.0 x_9 + 150.0 x_10 + 200.0 x_11 + 550.0 x_12 + 330.0 x_13 + 260.0 x_14 + 500.0 x_15 + 30.0 x_16 + 190.0 x_17 + 370.0 x_18 <= 1300.0
-32.0 x_0 - 21.0 x_1 - 23.0 x_2 - 24.0 x_3 - 8.0 x_4 - 2.0 x_5 - 4.0 x_6 - 4.0 x_7 - 8.0 x_8 - 8.0 x_9 - x_10 - 6.0 x_11 - 3.0 x_13 - 2.0 x_16 - 6.0 x_17 - 2.0 x_18 <= -18.0
5.0 x_4 + 4.0 x_5 + 2.0 x_8 + x_9 + 2.0 x_10 + x_11 + x_12 + 4.0 x_13 + 2.0 x_14 + 2.0 x_16 + x_18 <= 10.0
1.0 <= x_0 + x_1 + x_2 + x_3 + x_4 + x_5 <= 1.0
x_6 + x_7 <= 1.0
x_8 + x_9 <= 1.0
- x_12 - x_13 - x_14 <= -1.0
Variables:
x_0 is a boolean variable (min=0.0, max=1.0)
x_1 is a boolean variable (min=0.0, max=1.0)
x_2 is a boolean variable (min=0.0, max=1.0)
x_3 is a boolean variable (min=0.0, max=1.0)
x_4 is a boolean variable (min=0.0, max=1.0)
x_5 is a boolean variable (min=0.0, max=1.0)
x_6 is a boolean variable (min=0.0, max=1.0)
x_7 is a boolean variable (min=0.0, max=1.0)
x_8 is a boolean variable (min=0.0, max=1.0)
x_9 is a boolean variable (min=0.0, max=1.0)
x_10 is a boolean variable (min=0.0, max=1.0)
x_11 is a boolean variable (min=0.0, max=1.0)
x_12 is a boolean variable (min=0.0, max=1.0)
x_13 is a boolean variable (min=0.0, max=1.0)
x_14 is a boolean variable (min=0.0, max=1.0)
x_15 is a boolean variable (min=0.0, max=1.0)
x_16 is a boolean variable (min=0.0, max=1.0)
x_17 is a boolean variable (min=0.0, max=1.0)
x_18 is a boolean variable (min=0.0, max=1.0)
x_19 is a boolean variable (min=0.0, max=1.0)
{0: 0.0,
1: 1.0,
2: 0.0,
3: 0.0,
4: 0.0,
5: 0.0,
6: 0.0,
7: 1.0,
8: 1.0,
9: 0.0,
10: 0.0,
11: 0.0,
12: 0.0,
13: 1.0,
14: 0.0,
15: 0.0,
16: 1.0,
17: 1.0,
18: 0.0,
19: 1.0}
In [197]:
Out[197]:
steak
Brown Rice
Black Beans
Chilicorn salsa
Sour cream
Cheese
Lettuce
In [198]:
Out[198]:
795
In [0]: