Giter Club home page Giter Club logo

Comments (5)

hdavid16 avatar hdavid16 commented on June 18, 2024

Can you explain better what you are trying to do? Maybe with a small example. If you are trying to do a discrete time simulation on a uniform time grid, you may not need SimJulia. Furthermore, you can trigger events every month with the @yield macro inside a resumable function (e.g., @yield(env, t) where t is your event trigger time 1:12, but then again you don't need a discrete event simulation to do this).

from concurrentsim.jl.

tyhlee avatar tyhlee commented on June 18, 2024

Sure, for each agent I create, I want to run a set of events until the agent dies or reaches a pre-specified time limit. These event processes are updated at a fixed frequency (e.g., monthly) and dependent on each others. I will look into the yield macro. Thanks!

from concurrentsim.jl.

hdavid16 avatar hdavid16 commented on June 18, 2024

You could probably do this in a for loop iterating monthly. If you chose to use SimJulia, you can have an agent resource with the capacity being the number of agents that you have. Thus an agent is occupied as you run a process and released when the process completes. Feel free to reach out if you need any further help.

from concurrentsim.jl.

hdavid16 avatar hdavid16 commented on June 18, 2024

@tyhlee, I would also suggest you check out Agents.jl, which is more suited for discrete-time simulations. They also have GUI generation capabilities and many sample tutorials.

from concurrentsim.jl.

BenLauwens avatar BenLauwens commented on June 18, 2024

Agents.jl is more suited for a specific kind of discrete-time simulations. Whatever is possible in Agents.jl can also be built in SimJulia.jl

from concurrentsim.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.