|
Pseudocodigo...
***obtener tiempo entre llegadas****
tiempo_entre_llegadas(n_pacientes)= tiempo_entre_llegadas_minimo+ RAND()*(tiempo_entre_llegadas_maximo - tiempo_entre_llegadas_minimo)
***
*****tiempo de espera de pacientes****
tiempo_espera_pacientes(n_pacientes)=tiempo_inicio_servicio(n_pacientes) - tiempo_llegadas_pacientes(n_pacientes)
suma=suma + tiempo_espera_pacientes(n_pacientes)
promedio_tiempo_espera= suma /n_pacientes.
**tiempo llegada***
tiempo_llegadas__pacientes((n__pacientes()= tiempo_llegadas__pacientes((n__pacientes(-1) + tiempo_entre_llegadas(n__pacientes()
sumallegada=sumallegada + tiempo_llegadas__pacientes((n__pacientes()
promedio_tiempo_llegada = sumallegada /n__pacientes.
|