fmichel / madkit Goto Github PK
View Code? Open in Web Editor NEWMultiAgent Development Kit - version 5
Home Page: http://www.madkit.net
License: Other
MultiAgent Development Kit - version 5
Home Page: http://www.madkit.net
License: Other
MDK kernels do not connect correctly in such a case.
Hi,
My colleagues and I are currently developing an application on top of Madkit and we have questions about having multiple schedulers in the same simulation.
For now we have a working simulation with several agents and a customized scheduler. Each agent "schedules" a bunch of actions at each tick. To do so, we created a custom ActionActivator
, which is an activator that rather executing a method on all agents in a CGR location, executes an action (one activator per action).
The problem we are facing is that only the scheduler is executing the actions, decreasing performances (agents threads are idle).
If I understand well the threading model of Madkit:
Activator
can be distributed on several threadsThe first point is fine when you have concurrent agents working at different speed, the second is designed for tick/date-based simulations. We can of course mix both.
To address our performance issue, we came up with several ideas:
Activator#useMulticore
capability. Unfortunately, given the fact that each activator executes only one action, we won't be able to distribute it.Thanks a lot for your time !
Pierre
Hi !
I have found an issue in Scheduler.TickBasedTime
. I was trying to reset the simulation time in a tick-based simulation. To do so, I used Scheduler.SimulationTime#setCurrentTick(double)
operation but I got an UnsupportedOperationException
.
It turns out that contrary to what the documentation says, it is not a "shortcut of setCurrentTick(BigDecimal.valueOf(value))
". I would have expected something like this as the body:
public default void setCurrentTick(double value){
return setCurrentTick(BigDecimal.valueOf(value));
}
Since it is not the case, it is not enough to override setCurrentTick(BigDecimal)
to have setCurrentTick(double value)
working. Unfortunately, Scheduler.TickBasedTime
only overrides the BigDecimal version :(
I switched back to the BigDecimal version in my code but could be great to fix it ;)
Best regards
Pierre
According to website http://www.madkit.net/madkit/, current version is 5.3.1 but I can't find the related tag.
Based on commits, I would say it should be a9e6639
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.