Comments (5)
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.
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.
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.
@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.
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)
- TagBot trigger issue HOT 8
- Rank priority function in StorePutKey
- Polling a resource / poor-mans spinlock HOT 4
- Citation reference? HOT 1
- Add API Functions for process and resource state inspection
- TODO: Transparent statistics gathering for resources HOT 1
- document similarities and differences with DiscreteEvents.jl
- add downstream breakage tests to CI
- set documentation builder to error on warnings (and clear up all the warnings)
- enable preemption of jobs HOT 1
- use the typical Base functions instead of declaring new ones (e.g. `get`, `put`, `release`, etc) HOT 1
- document difference between Resource, Store, and Container
- verify all basic types are concrete (and consider using sumtypes where possible)
- Error when building documentation HOT 2
- Try - catch bad for performance in Julia. HOT 1
- port SimJulia.jl 'school' example and add description of that to the docs HOT 3
- refresh the examples folder: clean up, rewrite, test, and add to CI
- add benchmarks to CI
- documentation reorganizing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from concurrentsim.jl.