# \#eventqueueabm

**URL:** https://discourse.julialang.org/tag/eventqueueabm/1603.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Confusion in terminology dt & timing in agents.jl continuous time/EBM model](https://discourse.julialang.org/t/confusion-in-terminology-dt-timing-in-agents-jl-continuous-time-ebm-model/121748)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 3\
**Last updated:** [October 30, 2024, 7:11am UTC](https://discourse.julialang.org/t/confusion-in-terminology-dt-timing-in-agents-jl-continuous-time-ebm-model/121748 "2024-10-30T07:11:34Z")

</div>

Hello everyone, Im working with EBM continuous time model. Im little confused between dt given in model initiation function and timing term while defining events for model. It will be really helpful if someone can desc…

---

## [Parameter inference for agents based model](https://discourse.julialang.org/t/parameter-inference-for-agents-based-model/118613)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 3\
**Last updated:** [August 26, 2024, 11:41pm UTC](https://discourse.julialang.org/t/parameter-inference-for-agents-based-model/118613 "2024-08-26T23:41:39Z")

</div>

Hello everyone, Im doing parameter inference for my agent based model. At the moment, Im using NUTS() from Turing package. Im not sure if its the right choice as model is stochastic in nature. I was wondering that if a A…

---

## [Multithreading in Agents.jl](https://discourse.julialang.org/t/multithreading-in-agents-jl/118452)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 11\
**Last updated:** [August 23, 2024, 8:21am UTC](https://discourse.julialang.org/t/multithreading-in-agents-jl/118452 "2024-08-23T08:21:24Z")

</div>

Hello everyone, Im trying to use multithreading in EventBasedModel. Im getting this error while doing this. Can someone comment ? What can be issue? What is this error trying to say? Threads.@threads for agen…

---

## [Why step function doesn't recognise local model initialisation inside a function?](https://discourse.julialang.org/t/why-step-function-doesnt-recognise-local-model-initialisation-inside-a-function/117586)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 3\
**Last updated:** [July 29, 2024, 9:33am UTC](https://discourse.julialang.org/t/why-step-function-doesnt-recognise-local-model-initialisation-inside-a-function/117586 "2024-07-29T09:33:45Z")

</div>

Here is my function where I try to run ABM model inside a function. Now inside this function when I initialise model it works and also prints model but while using step!() it says model is not defined. Can someone shed …

---

## [Running EBM model in a function](https://discourse.julialang.org/t/running-ebm-model-in-a-function/117512)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [July 29, 2024, 9:28am UTC](https://discourse.julialang.org/t/running-ebm-model-in-a-function/117512 "2024-07-29T09:28:25Z")

</div>

Hello everyone, Im running EBM model inside a function which is causing issue with calling model properties values. Is there a way to extract them inside function? General Idea of my function: model = model\_initiate()…

---

## [Running agents.jl model with run!()](https://discourse.julialang.org/t/running-agents-jl-model-with-run/116477)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 6\
**Last updated:** [July 2, 2024, 1:01pm UTC](https://discourse.julialang.org/t/running-agents-jl-model-with-run/116477 "2024-07-02T13:01:10Z")

</div>

How can I avoid saving data after run in agent based model. I thought if we don’t give adata. It should automatically not save data and its not saving as in end dataframes are 0\*0 in size but its taking same amount of t…

---

## [Using Integrator in EventQueueABM model](https://discourse.julialang.org/t/using-integrator-in-eventqueueabm-model/116249)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 0\
**Last updated:** [June 26, 2024, 9:14am UTC](https://discourse.julialang.org/t/using-integrator-in-eventqueueabm-model/116249 "2024-06-26T09:14:30Z")

</div>

Hello everyone, I want to include some differential equation based model to my agents model. I want to integrate both of them. so at some points in simulation time, agent model get feed some info from differential model…

---

## [Error: Position is outside space extent](https://discourse.julialang.org/t/error-position-is-outside-space-extent/115790)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [June 18, 2024, 9:07am UTC](https://discourse.julialang.org/t/error-position-is-outside-space-extent/115790 "2024-06-18T09:07:57Z")

</div>

I’m working with continuous time ABM. For my model just changing radius of agent lead to this error which doesn’t make sense. Error: ERROR: position is outside space extent! Stacktrace: \[1\] error(s::String) @ Bas…

---

## [Interacting\_pairs() for EventQueueABM](https://discourse.julialang.org/t/interacting-pairs-for-eventqueueabm/115332)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 0\
**Last updated:** [June 7, 2024, 1:28pm UTC](https://discourse.julialang.org/t/interacting-pairs-for-eventqueueabm/115332 "2024-06-07T13:28:22Z")

</div>

Hello, I’m trying to modify interacting\_pairs() function for EventQueueABM model which only looks for true pairs. As EventQueueABM doesn’t have Scheduler. So, I replaced it with allids(model). Now this does give pairs b…

---

## [Nearest\_neighbor() and euclidean\_distance in Agents](https://discourse.julialang.org/t/nearest-neighbor-and-euclidean-distance-in-agents/115270)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 2\
**Last updated:** [June 6, 2024, 9:15am UTC](https://discourse.julialang.org/t/nearest-neighbor-and-euclidean-distance-in-agents/115270 "2024-06-06T09:15:29Z")

</div>

Hey, Im working with interaction\_pair() function which uses nearest\_neighbor() to find a pair. Now while applying this function I feel that doesn’t matter how small r value we give in nearest\_neighbor(model\[2\], model, 1…

---

## [Modifying interaction\_pairs() for EventQueueABM](https://discourse.julialang.org/t/modifying-interaction-pairs-for-eventqueueabm/115233)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [June 5, 2024, 2:27pm UTC](https://discourse.julialang.org/t/modifying-interaction-pairs-for-eventqueueabm/115233 "2024-06-05T14:27:31Z")

</div>

Hello everyone, I’m trying to modify inbuild function interaction\_pairs() to make it usable for EventQueueABM model too. Any suggestion will be helpful… :slight\_smile: Here is original code : function interacting\_pair…

---

## [Elastic collision for particle pairs in 3d EventQueueABM model](https://discourse.julialang.org/t/elastic-collision-for-particle-pairs-in-3d-eventqueueabm-model/115231)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 0\
**Last updated:** [June 5, 2024, 12:57pm UTC](https://discourse.julialang.org/t/elastic-collision-for-particle-pairs-in-3d-eventqueueabm-model/115231 "2024-06-05T12:57:55Z")

</div>

Hello everyone, I’m trying to make a model where 2 particles in 3d cubical space when comes to certain distance they do elastic collision. Now major issues are that Elastic collision function is just for 2d in Agents.…

---

## [Simultaneous movement of agents with EventQueueABM?](https://discourse.julialang.org/t/simultaneous-movement-of-agents-with-eventqueueabm/115168)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [June 4, 2024, 1:15pm UTC](https://discourse.julialang.org/t/simultaneous-movement-of-agents-with-eventqueueabm/115168 "2024-06-04T13:15:24Z")

</div>

For my current output it seems particles movements are sequential in nature though I want it to be simultaneously. It looks like they are stepping rather then floating. Main thing you would want to look into my move!…

---

## [Continuous time (EventQueueABM) Agent based model - Method Error](https://discourse.julialang.org/t/continuous-time-eventqueueabm-agent-based-model-method-error/115163)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [June 4, 2024, 11:41am UTC](https://discourse.julialang.org/t/continuous-time-eventqueueabm-agent-based-model-method-error/115163 "2024-06-04T11:41:54Z")

</div>

Hello, Im working on this following example where I want particles to just move around and thats all to get started. Though I got Error even before a proper start. Will be helpful if someone can point cause. Im sure its …
