Altes Rezept als Vergleichswert (ref)

master
Wurzelkoch 2019-12-15 11:21:03 +01:00
parent fcf4a3177a
commit 4b0a04d4c1
3 changed files with 13 additions and 0 deletions

View File

@ -12,3 +12,5 @@ param werte: Calories Carbs Protein Fat Sodium Potassium Chloride Fiber Calcium
include werte.dat;
include config.dat; #Für penalty-Werte
include ref.dat;

View File

@ -6,6 +6,7 @@ param werte {z in ZUTATEN, s in STOFFE} >= 0;
param minwert {s in STOFFE} >= 0 default 0;
param maxwert {s in STOFFE} >= 0 default Infinity;
var menge {z in ZUTATEN} >= 0;
param ref {z in ZUTATEN} >= 0 default 0;
param bezugsmenge {z in ZUTATEN} default 100; #nicht immer ist menge in 100g, teilweise in Stück
param weight_penalty >= 0 <= 1 default 0.05; #Transportkosten je 100g

10
ref.dat Normal file
View File

@ -0,0 +1,10 @@
param ref :=
feingemahleneHaferflockenOR 150
SojaflockenOR 110
JodsalzOR 4
MultivitamineOR 1.5
SonnenblumenölOR 30
PuderzuckerOR 150
ErbsenproteinOR 50
WeizenmehlOR 70