Search Questions

  • Hello,  I am trying to copy an agent through the Split block in AnyLogic. The problem is that the COPY does not have the same characteristics as the ORIGINAL; it create a copy of the agent with 'blank' characteristics.    My Patient agent has only one parameter: "p" [original value 0]. I made this simple model to illustrate my problem. In DELAY1 block , I change the parameter p = 1. The Split should create a copy of Patient which has the parameter p ==1. The code 'this.add_patients()' creates a Patient, but without 'p'.   Any help would be greatly appreciated.    

Search Questions