Sie sind auf Seite 1von 15

UNIVERSIDAD NACIONAL DE INGENIERA

FACULTAD DE INGENIERA INDUSTRIAL Y DE SISTEMAS

TRABAJO DE SIMULACION
TEMA: PROBLEMA DE LOS PERIODICOS

CURSO:

SIMULACION

INTEGRANTES:

GRUPO

PROFESOR:

ALARCO SANTIVAEZ LUIS


LINO YUPANQUI LUIS
FERNANDEZ MONTERO VICTOR
PINEDO FIERRO LUCAS

ING. JUAN CARLOS SOTELO

FECHA DE ENTREGA: 04 DE FEBRERO DEL 2015

PROBLEMA:
Un voceador compra peridicos al precio de 4 centavos por cada uno y los
vende a 10 centavos la unidad. Al final de cada da el agente de publicaciones
le pagar 2 centavos por cada peridico que no haya vendido. La demanda
diaria (D) de los peridicos tiene la siguiente distribucin de probabilidad:
P(D)

(D)

0.08

75

0.07

80

0.02

85

0.20

90

0.09

95

0.19

100

0.12

105

0.03

110

0.14

115

0.06

120

Use la tcnica de simulacin en computadora para determinar el nmero


ptimo de peridicos que el voceador debe ordenar cada da.

COMPRA

PERIODICOS

80

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

VENDE

10

REPOSICIO
N

PERIODIC
OS
COMPRAD
OS
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80

COMPRADOS
GANANCIA
PROMEDIO

476.533

RANDO
M

DEMAND
A

EXCE
SO

FALTANT
E

VENDIDO
S

GANANCIA

REPOSICI
ON

0.84
0.75
0.65
0.61
0.73
0.87
0.75
0.77
0.9
0.58
0.49
0.12
0.47
0.54
0.37
0.57
0.24
0.11
0.97
0.85
0.58
0.8
0.65
0.21
0.28
0.68
0.94
0.98
0.25
0.89
0.43
0.64
0.44
0.67
0.92
0.24
0.86
0.44
0.16
0.05
0.81
0.53
0.28
0.51
0.34

115
105
100
100
105
115
105
105
115
100
100
80
100
100
90
100
90
80
120
115
100
110
100
90
90
105
115
120
90
115
95
100
95
105
115
90
115
95
85
75
115
100
90
100
90

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0
0
0
0
0

35
25
20
20
25
35
25
25
35
20
20
0
20
20
10
20
10
0
40
35
20
30
20
10
10
25
35
40
10
35
15
20
15
25
35
10
35
15
5
0
35
20
10
20
10

80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
75
80
80
80
80
80

480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
440
480
480
480
480
480

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
10
0
0
0
0
0

46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99

80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80

0.1
0.24
0.65
0.89
0.54
0.31
0.05
0.07
0.37
0.24
0.62
0.31
0.06
0.04
0.58
0.79
0.69
0.62
0.79
0.14
0.02
0.05
0.78
0.21
0.11
0.05
0.27
0.08
0.41
0.76
0.02
0.65
0.61
0.92
0.95
0.35
0.52
0.16
0.61
0.34
0.26
0.11
0.39
0.23
0.53
0.84
0.75
0.94
0.42
0.02
0.84
0.72
0.03
0.74

80
90
100
115
100
90
75
75
90
90
100
90
75
75
100
110
105
100
110
80
75
75
110
90
80
75
90
75
95
105
75
100
100
115
120
90
100
85
100
90
90
80
95
90
100
115
105
115
95
75
115
105
75
105

0
0
0
0
0
0
5
5
0
0
0
0
5
5
0
0
0
0
0
0
5
5
0
0
0
5
0
5
0
0
5
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0
0
5
0

0
10
20
35
20
10
0
0
10
10
20
10
0
0
20
30
25
20
30
0
0
0
30
10
0
0
10
0
15
25
0
20
20
35
40
10
20
5
20
10
10
0
15
10
20
35
25
35
15
0
35
25
0
25

80
80
80
80
80
80
75
75
80
80
80
80
75
75
80
80
80
80
80
80
75
75
80
80
80
75
80
75
80
80
75
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
75
80
80
75
80

480
480
480
480
480
480
440
440
480
480
480
480
440
440
480
480
480
480
480
480
440
440
480
480
480
440
480
440
480
480
440
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
440
480
480
440
480

0
0
0
0
0
0
10
10
0
0
0
0
10
10
0
0
0
0
0
0
10
10
0
0
0
10
0
10
0
0
10
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
10
0
0
10
0

100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153

80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80

0.5
0.84
0.51
0.72
0.98
0.23
0.64
0.99
0.76
0.73
0.5
0.25
0.22
0.94
0.63
0.11
0.91
0.6
0.97
0.74
0.75
0.53
0.29
0.83
0.88
0.02
0.31
0.5
0.51
0.77
0.96
0.94
0.81
0.54
0.93
0.9
0.03
0.51
0.97
0.06
0.64
0.15
0.64
0.86
0.23
0.78
0.91
0.99
0.92
0.22
0.59
0.4
0.39
0.1

100
115
100
105
120
90
100
120
105
105
100
90
90
115
100
80
115
100
120
105
105
100
90
115
115
75
90
100
100
105
120
115
115
100
115
115
75
100
120
75
100
80
100
115
90
110
115
120
115
90
100
95
95
80

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0
0
0
0
0
0
0
0
0
0
5
0
0
5
0
0
0
0
0
0
0
0
0
0
0
0
0
0

20
35
20
25
40
10
20
40
25
25
20
10
10
35
20
0
35
20
40
25
25
20
10
35
35
0
10
20
20
25
40
35
35
20
35
35
0
20
40
0
20
0
20
35
10
30
35
40
35
10
20
15
15
0

80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
75
80
80
80
80
80
80
80
80
80
80
75
80
80
75
80
80
80
80
80
80
80
80
80
80
80
80
80
80

480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
440
480
480
480
480
480
480
480
480
480
480
440
480
480
440
480
480
480
480
480
480
480
480
480
480
480
480
480
480

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
10
0
0
0
0
0
0
0
0
0
0
10
0
0
10
0
0
0
0
0
0
0
0
0
0
0
0
0
0

154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207

80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80

0.16
0.99
0.21
0.18
0.96
0.12
0.55
0.31
0.87
0.5
0.76
0.72
0.21
0.77
0.4
0.8
0.42
0.46
0.21
0.34
0.83
0.62
0.97
0.21
0.1
0.15
0.41
0.83
0.95
0.58
0.87
0.98
0.68
0.18
0.47
0.61
0.3
0.93
0.1
0.12
0.86
0.6
0.99
0.3
0.23
0.25
0.29
0.49
0.93
0.72
0.59
0.48
0.34
0.7

85
120
90
90
120
80
100
90
115
100
105
105
90
105
95
110
95
95
90
90
115
100
120
90
80
80
95
115
120
100
115
120
105
90
100
100
90
115
80
80
115
100
120
90
90
90
90
100
115
105
100
100
90
105

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

5
40
10
10
40
0
20
10
35
20
25
25
10
25
15
30
15
15
10
10
35
20
40
10
0
0
15
35
40
20
35
40
25
10
20
20
10
35
0
0
35
20
40
10
10
10
10
20
35
25
20
20
10
25

80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80

480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261

80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80

0.58
0.27
0.66
0.36
0.04
0.73
0.72
0.69
0.36
0.01
0.45
0.76
0.64
0.04
0.34
0.04
0.32
0.88
0.44
0.54
0.33
0.94
0.68
0.07
0.99
0.39
0.06
0.76
0.66
0.14
0.52
0.34
0.99
0.68
0.5
0.39
0.7
0.82
0.75
0.76
0.56
0.7
0.9
0.19
0.71
0.6
0.14
0.82
0.57
0.99
0.83
0.14
0.78
0.2

100
90
105
90
75
105
105
105
90
75
95
105
100
75
90
75
90
115
95
100
90
115
105
75
120
95
75
105
105
80
100
90
120
105
100
95
105
115
105
105
100
105
115
90
105
100
80
115
100
120
115
80
110
90

0
0
0
0
5
0
0
0
0
5
0
0
0
5
0
5
0
0
0
0
0
0
0
5
0
0
5
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

20
10
25
10
0
25
25
25
10
0
15
25
20
0
10
0
10
35
15
20
10
35
25
0
40
15
0
25
25
0
20
10
40
25
20
15
25
35
25
25
20
25
35
10
25
20
0
35
20
40
35
0
30
10

80
80
80
80
75
80
80
80
80
75
80
80
80
75
80
75
80
80
80
80
80
80
80
75
80
80
75
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80

480
480
480
480
440
480
480
480
480
440
480
480
480
440
480
440
480
480
480
480
480
480
480
440
480
480
440
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480

0
0
0
0
10
0
0
0
0
10
0
0
0
10
0
10
0
0
0
0
0
0
0
10
0
0
10
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300

80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80

0.2
0.06
0.31
0.48
0.64
0.59
0.1
0.98
0.38
0.58
0.14
0.46
0.09
0.42
0.09
0.36
0.45
0.09
0.04
0.91
0.02
0.83
0.14
0.78
0.2
0.2
0.06
0.31
0.2
0.2
0.06
0.31
0.48
0.64
0.83
0.14
0.78
0.2
0.2

90
75
90
100
100
100
80
120
95
100
80
95
80
95
80
90
95
80
75
115
75
115
80
110
90
90
75
90
90
90
75
90
100
100
115
80
110
90
90

0
5
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0
5
0
0
0
0
0
5
0
0
0
5
0
0
0
0
0
0
0
0

10
0
10
20
20
20
0
40
15
20
0
15
0
15
0
10
15
0
0
35
0
35
0
30
10
10
0
10
10
10
0
10
20
20
35
0
30
10
10

80
75
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
80
75
80
75
80
80
80
80
80
75
80
80
80
75
80
80
80
80
80
80
80
80

480
440
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
480
440
480
440
480
480
480
480
480
440
480
480
480
440
480
480
480
480
480
480
480
480

Usando los dems valores que el vocero puede comprar diariamente, nos
resulta la siguiente informacin:
PERIODICOS
COMPRADOS
80
81
82
83
84
85

GANANCIA
PROMEDIO
476.533
481.200
485.867
490.533
495.200
499.867

0
10
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
10
0
10
0
0
0
0
0
10
0
0
0
10
0
0
0
0
0
0
0
0

86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139

504.453
509.040
513.627
518.213
522.800
525.787
528.773
531.760
534.747
537.733
540.187
542.640
545.093
547.547
550.000
550.853
551.707
552.560
553.413
554.267
554.133
554.000
553.867
553.733
553.600
553.227
552.853
552.480
552.107
551.733
550.240
548.747
547.253
545.760
544.267
542.267
540.267
538.267
536.267
534.267
532.267
530.267
528.267
526.267
524.267
522.267
520.267
518.267
516.267
514.267
512.267
510.267
508.267
506.267

140
141
142
143
144
145
146
147
148
149
150

504.267
502.267
500.267
498.267
496.267
494.267
492.267
490.267
488.267
486.267
484.267

Llevamos estos valores a una grfica y observamos que:

Siendo nuestra 105 peridicos al da la cantidad que genera una mayor


ganancia (554.267).
Nuestra demanda obtenida proyectada a 1000 iteraciones, usando el Aleatorio
del Excel es:

Nuestra demanda terica (de la distribucin de probabilidad) y la real en las


300 iteraciones realizadas son:
Demand
a
TEORICO REAL
75
24
26
80
21
24
85
6
3
90
60
60
95
27
20
100
57
60
105
36
37
110
9
9
115
42
42
120
18
19
Total
300
300
Siendo la grfica comparativa de nuestra demanda real y demanda terica la
siguiente:

El algoritmo para hallar cada Ganancia es el siguiente:


Leyenda:
I= nmero de itinerarios (das)
BP= beneficio promedio
B= beneficio
D= demanda
C= cantidad de peridicos a comprar

INICI
O
I=0,C=80,B
=0

no
I<
30
0|

si

r
si
r<
0.
0
8

no

D=7
5

si
r<
0.
1
5

D=8
0

no

si
r<
0.
1
7

no

D=8
5

si
r<
0.
3
7

D=9
0

no

r<
0.
4
6

si

r<
0.
6
5

si

D=9
5

D=10
0

no

no

r<
0.
7
7

si

D=10
5

BP=B/3
00

FIN

r<
0.
8
0

si

D=11
0

no

no

r<
0.
9
4

si

D=11
5

D=12
0

no
C>
D

si

B=B+D*6

B=B+D*6-(CD)*2
I=I+1
b

Este algoritmo es usado en las celdas de la hoja Excel para calcular la ganancia
de cada iteracin y la ganancia promedio, luego esto nos servir para analizar
como varia la ganancia promedio cuando cambia el nmero de peridicos a
comprar, resultando 105 el nmero ptimo de peridicos que genera mayor
ganancia
RESULTADOS:
CANTIDD DE
PERIODICOS
COMPRADOS
OPTIMA
GANANCIA
PROMEDIO
MAXIMA
ITERACIONES

105

554.267
300

CONCLUSIONES:

Los valores de la demanda real se ajustan a la distribucin de


probabilidad terica cuando se iteran muchas veces como en este
experimento (300 veces)

El comportamiento de la ganancia promedio respecto al nmero de


peridicos comprados en un inicio es ascendente hasta que alcanza su
punto mximo, luego empieza a descender porque los costos de
comprar mayor cantidad de peridicos empiezan a mermar la ganancia
generada

Los valores aleatorios que se ajustan a la distribucin de probabilidad de


la demanda, ocasionan la variacin de sta con el paso de las
iteraciones

Das könnte Ihnen auch gefallen