# Scheduler Function in Agents.jl

**URL:** https://discourse.julialang.org/t/scheduler-function-in-agents-jl/30391
**Category:** New to Julia
**Created:** [October 28, 2019, 5:06am UTC](https://discourse.julialang.org/t/scheduler-function-in-agents-jl/30391 "2019-10-28T05:06:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ennvvy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ennvvy/32/7816_2.png) [@ennvvy](https://discourse.julialang.org/u/ennvvy)
#### Post date: [October 28, 2019, 5:06am UTC](https://discourse.julialang.org/t/scheduler-function-in-agents-jl/30391/1 "2019-10-28T05:06:02Z")

</div>

I am trying to use the package Agents.jl for modelling. I see that there are three scheduler functions to activate agents at each step. However, I would like to pick agents according to their weights, i.e.,if I could select `activation_prob` number of agents with higher weights. How can I do this?

---

<div class="post-metadata">

### Author: ![Datseris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datseris/32/13406_2.png) [@Datseris](https://discourse.julialang.org/u/Datseris)
#### Post date: [December 9, 2019, 11:31am UTC](https://discourse.julialang.org/t/scheduler-function-in-agents-jl/30391/2 "2019-12-09T11:31:38Z")

</div>

Hi there. We have updated Agents.jl see [Agents.jl : Agent based modelling](https://discourse.julialang.org/t/agents-jl-agent-based-modelling/32043)

You can try again to make a new scheduler, and if you have questions open an issue on GitHub. It is faster to get support if you ask about this on the GitHub issues page. 🙂

---

<div class="post-metadata">

### Author: ![ennvvy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ennvvy/32/7816_2.png) [@ennvvy](https://discourse.julialang.org/u/ennvvy)
#### Post date: [December 9, 2019, 4:41pm UTC](https://discourse.julialang.org/t/scheduler-function-in-agents-jl/30391/3 "2019-12-09T16:41:08Z")

</div>

I couldn’t quite get to the Github issues page, is there a link that you could share? I looked at the tutorial and found `Agents.random_activation` among the scheduler functions. What if I didn’t want the choice to be uniformly random, but according to a predefined distribution instead?

---

<div class="post-metadata">

### Author: ![Datseris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datseris/32/13406_2.png) [@Datseris](https://discourse.julialang.org/u/Datseris)
#### Post date: [December 10, 2019, 1:00pm UTC](https://discourse.julialang.org/t/scheduler-function-in-agents-jl/30391/4 "2019-12-10T13:00:53Z")

</div>

Of course. Here is the page: [https://github.com/JuliaDynamics/Agents.jl/issues](https://github.com/JuliaDynamics/Agents.jl/issues)

You click on “new issue”, and then describe your problem. This is also a suitable platform to answer questions, so do not hesitate. What you are asking is simple to be done, but I’d prefer to answer it there for clarity.
