CCR/vensim/bes.mdl

494 lines
13 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{UTF-8}
Noise=
RANDOM UNIFORM(0, 5, 1234)
~
~ |
Demand=
Base Demand+Noise
~ loaves/Day
~ |
Amplitude of Seasonal Variations=
30
~ loaves
~ |
phi=
0
~ radians
~ |
Base Demand=
200
~ loaves/Day
~ |
Sigma=
5
~ loaves/Day
~ |
Period=
7
~ days
~ |
Available Workers=
2
~ workers
~ |
Base Rate=
200
~ loaves/Day
~ |
Lead Time Sugar=
1
~ days
~ |
Bread Production=
MIN(Base Rate,MinResource )*Labour Efficiency
~ 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 = 120
~ 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,921,89,42,22,3,3,0,0,-1,0,0,0,0,0,0,0,0,0
12,2,48,624,82,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|(688,82)|
1,4,5,1,4,0,0,22,0,192,0,-1--1--1,,1|(817,82)|
11,5,0,749,82,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0
10,6,Revenue,749,112,42,22,40,3,0,0,-1,0,0,0,0,0,0,0,0,0
12,7,48,1474,84,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|(1216,85)|
1,9,10,7,4,0,0,22,0,192,0,-1--1--1,,1|(1474,85)|
11,10,0,1475,85,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0
10,11,Raw Material Cost,1475,122,61,29,40,3,0,0,-1,0,0,0,0,0,0,0,0,0
12,12,48,1265,88,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|(1111,90)|
1,14,15,12,4,0,0,22,0,192,0,-1--1--1,,1|(1265,90)|
11,15,0,1266,90,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0
10,16,Labour Cost,1266,120,56,22,40,3,0,0,-1,0,0,0,0,0,0,0,0,0
12,17,48,1086,89,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|(1022,90)|
1,19,20,17,4,0,0,22,0,192,0,-1--1--1,,1|(1086,90)|
11,20,0,1087,90,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0
10,21,Maintainance Cost,1087,127,63,29,40,3,0,0,-1,0,0,0,0,0,0,0,0,0
10,22,Wage Rate,1185,225,50,22,8,3,0,0,-1,0,0,0,0,0,0,0,0,0
10,23,Total Labour Hours,1342,227,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,669,189,49,22,8,3,0,0,-1,0,0,0,0,0,0,0,0,0
10,27,Sales,818,191,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,1792,-265,42,22,3,3,0,0,-1,0,0,0,0,0,0,0,0,0
12,31,48,1615,-212,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|(1654,-212)|
1,33,34,30,4,0,0,22,0,192,0,-1--1--1,,1|(1689,-265)|
11,34,0,1689,-212,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0
10,35,Flour Purchase,1689,-175,43,29,40,3,0,0,-1,0,0,0,0,0,0,0,0,0
10,36,Flour per Loaf,1942,-267,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,915,-40,42,22,3,3,0,0,-1,0,0,0,0,0,0,0,0,0
12,39,48,719,-50,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|(719,-38)|
1,41,42,38,4,0,0,22,0,192,0,-1--1--1,,1|(799,-26)|
11,42,0,719,-26,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0
10,43,Bread Production,719,11,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,1054,-61,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|(1055,-40)|
1,47,48,45,4,0,0,22,0,192,0,-1--1--1,,1|(1054,-65)|
11,48,0,1055,-65,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0
10,49,Waste Bread,1055,-35,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,1444,236,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|(1444,175)|
1,53,54,11,4,0,0,22,0,192,0,-1--1--1,,1|(1352,122)|
11,54,0,1352,175,8,6,33,3,0,0,4,0,0,0,0,0,0,0,0,0
10,55,Flour Cost,1407,175,47,22,40,3,0,0,-1,0,0,0,0,0,0,0,0,0
12,56,48,1643,221,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|(1643,161)|
1,58,59,11,4,0,0,22,0,192,0,-1--1--1,,1|(1475,161)|
11,59,0,1710,161,8,6,33,3,0,0,1,0,0,0,0,0,0,0,0,0
10,60,Yeast Cost,1710,189,48,22,40,3,0,0,-1,0,0,0,0,0,0,0,0,0
12,61,48,1675,97,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|(1648,97)|
1,63,64,11,4,0,0,22,0,192,0,-1--1--1,,1|(1577,97)|
11,64,0,1625,97,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0
10,65,Sugar Cost,1625,127,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,1807,-82,42,22,3,3,0,0,-1,0,0,0,0,0,0,0,0,0
12,68,48,1633,-80,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|(1689,-80)|
1,70,71,67,4,0,0,22,0,192,0,-1--1--1,,1|(1730,-72)|
11,71,0,1689,-72,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0
10,72,Yeast Purchase,1689,-35,43,29,40,3,0,0,-1,0,0,0,0,0,0,0,0,0
10,73,Yeast per Loaf,1919,-87,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,1806,61,42,22,3,3,0,0,-1,0,0,0,0,0,0,0,0,0
12,77,48,1636,68,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|(1680,68)|
1,79,80,76,4,0,0,22,0,192,0,-1--1--1,,1|(1745,68)|
11,80,0,1721,68,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0
10,81,Sugar Purchase,1721,105,43,29,40,3,0,0,-1,0,0,0,0,0,0,0,0,0
10,82,Suger per Loaf,1934,60,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,1076,212,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,816,255,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,1661,-293,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,1544,-217,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,563,-17,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,647,-96,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,1686,-123,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,1543,-45,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,1562,44,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,1698,10,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,788,-102,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,500,-97,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,1815,182,42,22,3,3,0,0,-1,0,0,0,0,0,0,0,0,0
10,129,Water per Loaf,1952,181,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,1789,248,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|(1789,234)|
1,133,134,128,4,0,0,22,0,192,0,-1--1--1,,1|(1789,210)|
11,134,0,1789,222,8,6,33,3,0,0,4,0,0,0,0,0,0,0,0,0
10,135,Water Purchase,1840,222,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,1844,287,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,1985,259,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,1528,264,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|(1528,283)|
1,143,144,11,4,0,0,22,0,192,0,-1--1--1,,1|(1550,122)|
11,144,0,1550,283,8,6,33,3,0,0,4,0,0,0,0,0,0,0,0,0
10,145,Water Cost,1609,283,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,892,-122,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,729,-155,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,575,-150,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)|
10,158,Base Demand,682,251,42,29,8,3,0,0,-1,0,0,0,0,0,0,0,0,0
1,159,158,87,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)|
10,160,Amplitude of Seasonal Variations,829,347,60,42,8,3,0,0,-1,0,0,0,0,0,0,0,0,0
10,161,Period,940,250,42,22,8,3,0,0,-1,0,0,0,0,0,0,0,0,0
10,162,phi,699,332,42,22,8,3,0,0,-1,0,0,0,0,0,0,0,0,0
10,163,Sigma,929,325,42,22,8,3,0,0,-1,0,0,0,0,0,0,0,0,0
10,164,Noise,596,301,42,22,8,3,0,0,-1,0,0,0,0,0,0,0,0,0
1,165,164,87,0,0,0,0,0,192,0,-1--1--1,,1|(0,0)|
///---\\\
:L<%^E!@
1:current.vdfx
4:Time
5:Sales
9:current
19:99,0
24:0
25:120
26:120
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