How to control events scheduling in Anylogic? - anylogic

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 :).

Related

AS/RS simulation in Anylogic Simulation Software

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.

How to assign waiters to a restaurant operation simulation in AnyLogic

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.

How to process with ABM

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)

What is the easiest UML diagram to model?

I am currently implementing an app and I am on the design stages at the moment. I know for a fact that the deployment diagram is fairly easy to model and can be done in the space of 2 hours.
Likewise, what are some of the easiest UML diagrams to model - i.e ones that don't require much effort and time. I am asking as I have a tight schedule in terms of other commitments and I want to get all the same bits and bobs out of the way
Also, what is the difference between a localhost server - i.e one on your laptop, and a normal remote server? I just need to know so that I can model my deployment diagram.
Thanks
Sorry, but that question is complete nonsense. You never model a diagram. You model a model and show it to humans by means of diagrams. So to answer your question: The easiest one is one that shows nothing at all (take any possible diagram you like). That way you also show nothing. If you want to show something, you need to take the effort to compose the diagram(s).
Maybe you think over your question.
P.S. Have you ever had a homework at school to describe a picture? It's analogous: if you just say "it's paint inside a rectangle frame" then it's a description. But a poor one. You can go on an say "There's a face of a person" (if it's a portrait). That would say a bit more, but you see that the essence is hard to find. IIRC Euklid has been asked if there's a king's way to mathematics. You probably know his answer.
Sorry Cons.
The answer of course is none as that is the quickest. However this is feeling like a class assignment so i will guess that you should probably do a class diagram and a deployment diagram.
Often if you have to describe the chat between two objects between two machines, lots of other diagram types come in. I like activity diagrams with swimlanes for that.
I generally use a use case diagram, with one activity diagram per use case. I also use a class diagram. Those are probably the fundamentally necessary diagrams. I only use a deployment diagram if the deployment is fairly complex.
The reason that you're getting some negative feedback is that you appear to be asking how to make a good impression rather than how to do the job right. If your priority is to do diagrams with a minimum of effort rather than to create useful diagrams, the easiest thing is not to do them at all. Otherwise, use diagrams to explain the model in the simplest way possible.

UML: How to Model UI and Background-Threads for Mobile Application (iPhone/iOS, Android)

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