Line 215:
Line 215:
These resemble a lot onions (correlation 0.98) and a bit less tomato puree (corr. 0.95). So if we already use onion, it does not matter.
These resemble a lot onions (correlation 0.98) and a bit less tomato puree (corr. 0.95). So if we already use onion, it does not matter.
−
== Order constraints ==
+
== Order constraints attempt 1==
If we base ourselves only on the nutritional values, eggs will predominate the solution. A solution might be to enforce an order of the coefficients. This is dictated by the ingredient list.
If we base ourselves only on the nutritional values, eggs will predominate the solution. A solution might be to enforce an order of the coefficients. This is dictated by the ingredient list.
Line 262:
Line 262:
|-
|-
| Semolina/Onion/Carrots/Cream/Cheese/OliveOil || - || - || 0.112 || 0.66 || 0.045 || 0.0023 || 0.119 || - || 0.020 || 0.30
| Semolina/Onion/Carrots/Cream/Cheese/OliveOil || - || - || 0.112 || 0.66 || 0.045 || 0.0023 || 0.119 || - || 0.020 || 0.30
+
|}
+
+
=== Order constraints Attempt 2 ===
+
In this attempt I rewrote the functions, which must be minimised. This results in a hard order. It used the nnls function in Rstudio.
+
{| class="wikitable"
+
|+ Caption text
+
|-
+
! Solver !! Milk !! Mushroom !! Semolina !! Onion !! Carrots !! Cream !! Cheese !! Egg !! Olive oil !! RMSE
+
|-
+
| ConsReg (with intercept) || 0.08 || 0.83 || 0.13 || - || - || 0.13 || - || 0.08 || - || -
|}
|}