-
Beta Was this translation helpful? Give feedback.
Answered by
Enchufa2
Jun 18, 2023
Replies: 1 comment
-
As you discovered here, you were executing the #Appointment assignment
set_attribute("appointment_time",function(){
assign_appointment(p_id = get_attribute(clinic, "patient_id"),
env_now = simmer::now(clinic),
df = df_appointment_slots)}) %>% Please, next time, try to avoid crossposting. This generates unnecessary duplicity. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Enchufa2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As you discovered here, you were executing the
assign_appointment
once when the trajectory was created. Instead, it needs to be enclosed in a parameterless function, so that it is executed each time an arrival reaches that point in the trajectory, in the same way you did with thepatient_counter
function. Therefore,Please, next time, try to avoid crossposting. This generates unnecessary duplicity.