i'm new to AnyLogic and i started using it for a restaurant operations simulation. Right now i've figured out how to use the pedestrian library to simulate customers coming into my restaurant and go to attractors placed around the dining tables and make them stop there for a period of time. However, i need help assigning a few waiters who go to each of the customers at least once after they have "sat down at their seats" (or simply means reaching and stopping at the attractors). i cannot figure out whether i can keep using pedestrian library or i have to use another library like a process handling library or create new agents as i am not familiar with the software. any help is much appreciated!
attached below are screenshots of the model and the blocks i currently have done:
model: https://imgur.com/a/3Sumwu8
blocks: https://imgur.com/a/gKD5VSB
I assume there are a lot of ways to do this... Normally you would use waiters as resources, but I think you can't make resources behave like pedestrians if you mix it with the Process Modeling Library... If you can do it smoothly maybe someone will answer it
What you can do is something like this:
On this model you have a separate flow for the waiters, who are your resources and you have to use some JAVA to seize the waiters for a particular table and allow them to do something... do what? I don't know, that depends on your model.
This is just a guideline for one possible solution but there are a lot of implications on how to actually implement it correctly.
Related
I need to simulate a fully functional AS/RS in warehousing. Moreover, I am a complete beginner in this field. Can some please let me know if I could get readymade simulation file? Or if not, please let me know how to learn to do it.
I have checked out the Anylogic website and it's tutorials (They are too lengthy).
fortunately for you, i have developed an AS/RS example that is a ready-made downloadable model for you, available at https://cloud.anylogic.com/model/1f5c7d1f-8782-40ac-957d-d3ba97bf6bf0?mode=SETTINGS
In general, when you want a model example, the first thing you should do is check the anylogic cloud, and if you are lucky the model is downloadable. Unfortunately, most people don't share
It really depends on what type of ASRS you are modeling (shuttle versus unit load) and level of detail you need. Do you need specific slotting and inventory tracking, or simplier black box delays with the assumption inventory is always available? The level of detail you need depends on questions you are asking, and should be addressed prior to starting development. If results from the model are critical and urgent, and you need anything more than simple black box delays, you should consider outsourcing to an experienced professional until you can get your AnyLogic skills up to speed.
Looking for a Netlogo-file to understand how an agent(UAV) interacts with another agent in monitoring purpose.
Sujan, can you explain what kind of interaction you want to see? There are 2000 models in the Modeling Commons, and over 100 in the library:
http://ccl.northwestern.edu/netlogo/models/index.cgi
You can try many of these over the web to see what they do, without downloading anything, and look at the code that runs the model, here:
http://www.netlogoweb.org/launch
Is there a way to manually schedule the events in AnyLogic? or does the order of creating the model plays a role in that?.
I am creating a complex system which currently not behaving in the same order I am expecting. I looked at AnyLogic help and Stuart Rossiter explanation but, I was not able to draw answers for these two questions.
My approach to the problem is to use FIFO in the experiment with a statechart that is knotted with guards for each state (true if related are all complete ). And I was thinking to use a manually programmed time parameter for the whole model to order the events exactly as I want. I am not sure that this is the right approach or if I will work. Please guide me on that matter.
Thanks InAdvance;
These are my answers:
Yes, there is a way to control the events manually (synchronizing).
Its done by creating several events and ordering their
trigger/re-occurrence times similar to the simulated phenomena.
No, of you are using manual synchronizing, and I don't know about Asynchronous modeling
the approach mentioned in the question did not work :).
In my bachalar work I am supossed to build an model of terrorist attack in Tokyo in 1995 (sarin gas). I have never done heard anything about ABM until about a month ago. Now I am even able to do some simple models.
However I would welcome some ideas about how to even start with the model. I only need to model one train of 5 from the attack. Should I start with the environment, defining agents...? And is there anybody who could provide me kind of a support if I need to know something?
Also should I model everything with statecharts, or is It possible to model the train with Trail library using flowcharts and passengers with statecharts?
best idea is to check out the example models that come with AnyLogic (Menu/Help/Example Models).
Get a feeling for a good number and start pulling together techniques and items that were used to achieve similar things.
Otherwise, your questions are far too broad for StackOverFlow, I am afraid.
Best modelling advise in a nutshell: Start (super)simple and add features as you go along (and your skills increase)
There are some Topics on Stackoverflow already related on how to model different Threads in UML, for example: Is there an inituitive UML approach to depict threads.
However I still feel, that my case has not been already discussed, even though it should be pretty common:
I am creating an iPhone Application, where I am obviously have a Main-UI-Thread and I am also using Background-Threads to perform Remote-Calls, etc. I basically have 4 different aspects that I like to display within my diagramm:
The UI that is shown to the User.
The Tasks that are being performed by the Main-UI-Thread (therefore blocking the UI)
The Tasks that are performed by Background-Threads
Updates of the UI, which are performed by the UI-Thread, but can be triggered by Background-Threads. For example: new Information loaded from Server, which needs to be displayed on the UI
Has anybody ran into a similiar issue and therefore might show me an example or give me some best practises on how to solve my problem? I am not even sure if I should use a sequence-diagram, an activity-diagram or maybe even some other type.
Well Pascal,
This is not an UML question. It is a design question.
UML just helps you
To understand hard and crtical section of your program/design and to
explore alternative solutions , while writing your code. with the power of visual modeling.
So..
First, ask yourself what kind of parallelism or concurrency exist in
your problem? To investigate this:
Draw a simple activity diagram with partions in which each partions
used to represent different operating system threads or processes.The
object nodes can be used to model the shared objects and data.Forking can be used to model the creation and parallel execution of multiple threads or processes.
Then ask yourself(using that diagram)
What are my shared data? What are my active classes? (threads)What kind of "concurency" problems" may
accour? What may go wrong? What are synronization points? etc..Based on this Explore different alternatives, designs.
The last thing you should worry is UML and its sytax(symbols).
The best UML diagrams are the one that wake up the desire of "asking question" in your mind.
At first forget about Uml. Ask core questions about your problem. If you like visual modeling and your mind like visual thinking use Uml for better understand and investigate possible design solutions.
UML can not design for you...
I found this research papers while searching for same thing
M-UML: an extension to UML for the modeling of mobile
agent-based software systems
May be it can help you