From 50f93eeb57271af8884b596d6de5f828cf103b92 Mon Sep 17 00:00:00 2001 From: Arjun Date: Fri, 14 Feb 2025 12:11:11 +0000 Subject: [PATCH] My Normal Bakery Economical Simulation Vensim Model (Version 1)(Rough) --- bes.mdl | 455 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 455 insertions(+) create mode 100644 bes.mdl diff --git a/bes.mdl b/bes.mdl new file mode 100644 index 0000000..2553ab5 --- /dev/null +++ b/bes.mdl @@ -0,0 +1,455 @@ +{UTF-8} +Available Workers= + 2 + ~ workers + ~ | + +Base Rate= + 200 + ~ loaves/Day + ~ | + +Lead Time Sugar= + 1 + ~ days + ~ | + +Bread Production= + MIN(Base Rate,MinResource )*Labour Efficiency + ~ loaves/Day + ~ | + +Demand= + 200 + ~ loaves/Day + ~ | + +Water Safety= + 300 + ~ litres + ~ | + +Sugar Purchase= + MAX(0,( Bread Production*Suger per Loaf+Sugar Safety-Sugar)/Lead Time Sugar) + ~ kg + ~ | + +Flour per Loaf= + 0.3 + ~ kg/loaf + ~ | + +Suger per Loaf= + 0.02 + ~ kg/loaf + ~ | + +MinSugarWater= + MIN(Sugar/Suger per Loaf, Water/Water per Loaf ) + ~ + ~ | + +Yeast Purchase= + MAX(0,( Bread Production*Yeast per Loaf+Yeast Safety-Yeast)/Lead Time Yeast) + ~ kg + ~ | + +Labour Efficiency= + MIN(1, Available Workers/Workers Required ) + ~ Dmnl + ~ | + +Water= INTEG ( + Water Purchase-(Bread Production*Water per Loaf), + 2000) + ~ litres + ~ | + +Water Cost= + 0.001 + ~ $/litre + ~ | + +Lead Time Water= + 1 + ~ days + ~ | + +Lead Time Yeast= + 1 + ~ days + ~ | + +Water Purchase= + MAX(0,( Bread Production*Water per Loaf+Water Safety-Water)/Lead Time Water) + ~ litres + ~ | + +Workers Required= + 2 + ~ workers + ~ | + +MinFlourYeast= + MIN(Flour/Flour per Loaf, Yeast/Yeast per Loaf ) + ~ + ~ | + +MinResource= + MIN(MinFlourYeast, MinSugarWater ) + ~ + ~ | + +Water per Loaf= + 0.2 + ~ litres/loaf + ~ | + +Waste Bread= + 2 + ~ loaves/Day + ~ | + +Raw Material Cost= + (Flour Cost*Flour Purchase)+(Sugar Cost*Sugar Purchase)+(Yeast Cost*Yeast Purchase)+\ + (Water Cost*Water Purchase) + ~ $ + ~ | + +Yeast Safety= + 10 + ~ kg + ~ | + +Sugar Safety= + 20 + ~ kg + ~ | + +Bread= INTEG ( + Bread Production-Waste Bread-Sales, + 0) + ~ loaves + ~ | + +Flour= INTEG ( + Flour Purchase-(Flour per Loaf*Bread Production), + 1000) + ~ kg + ~ | + +Flour Cost= + 0.5 + ~ $/kg + ~ | + +Flour Purchase= + MAX(0,( Bread Production*Flour per Loaf+Flour Safety-Flour)/Lead Time Flour ) + ~ kg + ~ | + +Flour Safety= + 200 + ~ kg + ~ | + +Labour Cost= + Wage Rate*Total Labour Hours + ~ $ + ~ | + +Lead Time Flour= + 1 + ~ days + ~ | + +Maintainance Cost= + Maintainance Rate*Money + ~ $ + ~ | + +Maintainance Rate= + 0.002 + ~ fraction/Day + ~ | + +Money= INTEG ( + Revenue-Labour Cost-Maintainance Cost-Raw Material Cost, + 100000) + ~ $ + ~ | + +Revenue= + Sales Price*Sales + ~ $ + ~ | + +Sales= + MIN( Bread , Demand ) + ~ loaves/Day + ~ | + +Sales Price= + 4 + ~ $/loaf + ~ | + +Sugar= INTEG ( + Sugar Purchase-(Bread Production*Suger per Loaf), + 100) + ~ kg + ~ | + +Sugar Cost= + 0.8 + ~ $/kg + ~ | + +Total Labour Hours= + 16 + ~ hours/Day + ~ | + +Wage Rate= + 12 + ~ $/Hour + ~ | + +Yeast= INTEG ( + Yeast Purchase-(Bread Production*Yeast per Loaf), + 50) + ~ kg + ~ | + +Yeast Cost= + 10 + ~ $/kg + ~ | + +Yeast per Loaf= + 0.01 + ~ kg/loaf + ~ | + +******************************************************** + .Control +********************************************************~ + Simulation Control Parameters + | + +FINAL TIME = 240 + ~ Month + ~ The final time for the simulation. + | + +INITIAL TIME = 0 + ~ Month + ~ The initial time for the simulation. + | + +SAVEPER = + TIME STEP + ~ Month [0,?] + ~ The frequency with which output is stored. + | + +TIME STEP = 1 + ~ Month [0,?] + ~ The time step for the simulation. + | + +\\\---/// Sketch information - do not modify anything except names +V300 Do not put anything below this section - it will be ignored +*View 1 +$-1--1--1,0,|12||-1--1--1|-1--1--1|-1--1--1|-1--1--1|-1--1--1|96,96,99,0 +10,1,Money,765,313,42,22,3,3,0,0,-1,0,0,0,0,0,0,0,0,0 +12,2,48,468,306,10,8,0,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,3,5,2,100,0,0,22,0,192,0,-1--1--1,,1|(532,306)| +1,4,5,1,4,0,0,22,0,192,0,-1--1--1,,1|(661,306)| +11,5,0,593,306,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0 +10,6,Revenue,593,336,42,22,40,3,0,0,-1,0,0,0,0,0,0,0,0,0 +12,7,48,1318,308,10,8,0,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,8,10,1,100,0,0,22,0,192,0,-1--1--1,,1|(1060,309)| +1,9,10,7,4,0,0,22,0,192,0,-1--1--1,,1|(1318,309)| +11,10,0,1319,309,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0 +10,11,Raw Material Cost,1319,346,61,29,40,3,0,0,-1,0,0,0,0,0,0,0,0,0 +12,12,48,1109,312,10,8,0,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,13,15,1,100,0,0,22,0,192,0,-1--1--1,,1|(955,314)| +1,14,15,12,4,0,0,22,0,192,0,-1--1--1,,1|(1109,314)| +11,15,0,1110,314,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0 +10,16,Labour Cost,1110,344,56,22,40,3,0,0,-1,0,0,0,0,0,0,0,0,0 +12,17,48,930,313,10,8,0,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,18,20,1,100,0,0,22,0,192,0,-1--1--1,,1|(866,314)| +1,19,20,17,4,0,0,22,0,192,0,-1--1--1,,1|(930,314)| +11,20,0,931,314,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0 +10,21,Maintainance Cost,931,351,63,29,40,3,0,0,-1,0,0,0,0,0,0,0,0,0 +10,22,Wage Rate,1029,449,50,22,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +10,23,Total Labour Hours,1186,451,58,29,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,24,22,16,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,25,23,16,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,26,Sales Price,513,413,49,22,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +10,27,Sales,662,415,42,22,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,28,26,6,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,29,27,6,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,30,Flour,1636,-41,42,22,3,3,0,0,-1,0,0,0,0,0,0,0,0,0 +12,31,48,1459,12,10,8,0,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,32,34,31,100,0,0,22,0,192,0,-1--1--1,,1|(1498,12)| +1,33,34,30,4,0,0,22,0,192,0,-1--1--1,,1|(1533,-41)| +11,34,0,1533,12,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0 +10,35,Flour Purchase,1533,49,43,29,40,3,0,0,-1,0,0,0,0,0,0,0,0,0 +10,36,Flour per Loaf,1786,-43,43,29,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,37,36,30,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,38,Bread,759,184,42,22,3,3,0,0,-1,0,0,0,0,0,0,0,0,0 +12,39,48,563,174,10,8,0,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,40,42,39,100,0,0,22,0,192,0,-1--1--1,,1|(563,186)| +1,41,42,38,4,0,0,22,0,192,0,-1--1--1,,1|(643,198)| +11,42,0,563,198,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0 +10,43,Bread Production,563,235,51,29,40,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,44,27,38,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +12,45,48,898,163,10,8,0,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,46,48,38,100,0,0,22,0,192,0,-1--1--1,,1|(899,184)| +1,47,48,45,4,0,0,22,0,192,0,-1--1--1,,1|(898,159)| +11,48,0,899,159,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0 +10,49,Waste Bread,899,189,59,22,40,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,50,43,30,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +12,51,48,1288,460,10,8,0,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,52,54,51,100,0,0,22,0,192,0,-1--1--1,,1|(1288,399)| +1,53,54,11,4,0,0,22,0,192,0,-1--1--1,,1|(1196,346)| +11,54,0,1196,399,8,6,33,3,0,0,4,0,0,0,0,0,0,0,0,0 +10,55,Flour Cost,1251,399,47,22,40,3,0,0,-1,0,0,0,0,0,0,0,0,0 +12,56,48,1487,445,10,8,0,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,57,59,56,100,0,0,22,0,192,0,-1--1--1,,1|(1487,385)| +1,58,59,11,4,0,0,22,0,192,0,-1--1--1,,1|(1319,385)| +11,59,0,1554,385,8,6,33,3,0,0,1,0,0,0,0,0,0,0,0,0 +10,60,Yeast Cost,1554,413,48,22,40,3,0,0,-1,0,0,0,0,0,0,0,0,0 +12,61,48,1519,321,10,8,0,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,62,64,61,100,0,0,22,0,192,0,-1--1--1,,1|(1492,321)| +1,63,64,11,4,0,0,22,0,192,0,-1--1--1,,1|(1421,321)| +11,64,0,1469,321,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0 +10,65,Sugar Cost,1469,351,49,22,40,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,66,35,11,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,67,Yeast,1651,142,42,22,3,3,0,0,-1,0,0,0,0,0,0,0,0,0 +12,68,48,1477,144,10,8,0,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,69,71,68,100,0,0,22,0,192,0,-1--1--1,,1|(1533,144)| +1,70,71,67,4,0,0,22,0,192,0,-1--1--1,,1|(1574,152)| +11,71,0,1533,152,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0 +10,72,Yeast Purchase,1533,189,43,29,40,3,0,0,-1,0,0,0,0,0,0,0,0,0 +10,73,Yeast per Loaf,1763,137,44,29,8,3,0,0,-1,1,0,0,0,0,0,0,0,0 +1,74,73,67,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,75,72,11,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,76,Sugar,1650,285,42,22,3,3,0,0,-1,0,0,0,0,0,0,0,0,0 +12,77,48,1480,292,10,8,0,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,78,80,77,100,0,0,22,0,192,0,-1--1--1,,1|(1524,292)| +1,79,80,76,4,0,0,22,0,192,0,-1--1--1,,1|(1589,292)| +11,80,0,1565,292,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0 +10,81,Sugar Purchase,1565,329,43,29,40,3,0,0,-1,0,0,0,0,0,0,0,0,0 +10,82,Suger per Loaf,1778,284,45,29,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,83,82,76,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,84,81,11,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,85,Maintainance Rate,920,436,63,29,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,86,85,21,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,87,Demand,660,479,42,22,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,88,87,27,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,89,30,150,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,90,67,150,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,91,76,152,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,92,36,150,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,93,73,150,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,94,82,152,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,95,30,35,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,96,Flour Safety,1505,-69,55,22,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,97,96,35,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,98,Lead Time Flour,1388,7,48,29,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,99,98,35,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,100,1,21,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,101,43,35,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,102,36,35,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,103,Base Rate,407,207,46,22,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,104,103,43,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,105,Labour Efficiency,491,128,44,29,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,106,105,43,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,107,38,27,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,108,43,67,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,109,43,76,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,110,Yeast Safety,1530,101,56,22,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,111,110,72,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,112,Lead Time Yeast,1387,179,40,18,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,113,112,72,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,114,Lead Time Sugar,1406,268,40,18,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,115,114,81,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,116,73,72,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,117,82,81,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,118,67,72,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,119,76,81,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,120,43,72,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,121,43,81,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,122,Sugar Safety,1542,234,57,22,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,123,122,81,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,124,Available Workers,632,122,42,29,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,125,124,105,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,126,Workers Required,344,127,43,29,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,127,126,105,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,128,Water,1659,406,42,22,3,3,0,0,-1,0,0,0,0,0,0,0,0,0 +10,129,Water per Loaf,1796,405,47,29,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,130,129,128,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +12,131,48,1633,472,10,8,0,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,132,134,131,100,0,0,22,0,192,0,-1--1--1,,1|(1633,458)| +1,133,134,128,4,0,0,22,0,192,0,-1--1--1,,1|(1633,434)| +11,134,0,1633,446,8,6,33,3,0,0,4,0,0,0,0,0,0,0,0,0 +10,135,Water Purchase,1684,446,43,29,40,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,136,128,135,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,137,Water Safety,1688,511,59,22,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,138,137,135,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,139,Lead Time Water,1829,483,48,29,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,140,139,135,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +12,141,48,1372,488,10,8,0,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,142,144,141,100,0,0,22,0,192,0,-1--1--1,,1|(1372,507)| +1,143,144,11,4,0,0,22,0,192,0,-1--1--1,,1|(1394,346)| +11,144,0,1394,507,8,6,33,3,0,0,4,0,0,0,0,0,0,0,0,0 +10,145,Water Cost,1453,507,51,22,40,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,146,135,11,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,147,43,128,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,148,43,135,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,149,129,135,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,150,MinFlourYeast,736,102,58,29,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,151,150,156,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,152,MinSugarWater,573,69,59,29,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,153,152,156,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,154,128,152,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +1,155,129,152,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +10,156,MinResource,419,74,60,22,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 +1,157,156,43,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)| +///---\\\ +:L<%^E!@ +1:current2.vdfx +4:Time +5:Demand +9:current2 +19:99,0 +24:0 +25:240 +26:240 +23:0 +15:0,0,0,0,0,0 +27:0, +34:0, +42:0 +72:0 +73:0 +95:0 +96:0 +97:0 +77:0 +78:0 +102:1 +93:0 +94:0 +92:0 +91:0 +90:0 +87:0 +75: +43: +103:8,8,8,3,8 +105:0,0,0,0,0,0,0,0,0,0 +104:Vensim Sans|12||0-0-0|0-0-0|-1--1--1|0-0-255|192-192-192|-1--1--1