Ver Mensaje Individual
  #1  
Antiguo 31-03-2008
Avatar de RK2
RK2 RK2 is offline
Miembro
 
Registrado: dic 2006
Posts: 18
Reputación: 0
RK2 Va por buen camino
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.
Responder Con Cita