![]() They can follow the “code” themselves (even when not used to programming) and discuss it with you It is easier to explain what happens to a is easier to “read” your algorithm when returning to a model you haven’t seen for a while, trying to remember what is going on.However, the Action Chart representation is more visual, leading to several advantages: To reiterate: Anything you have done with your plain old Java function can be done with an Action Chart. The book covers agent-based, discrete event and system dynamics modeling methods, and provides four practical examples of different applications. It is intended to introduce you to AnyLogic. On the other hand, a Function requires far less space and displays the code straight away (no need to click through the different Action Chart blocks one after the next). Learn the basics of AnyLogic simulation software with this free pdf book from the developers. This tutorial will briefly take you through the process of constructing a simulation model using. Use Action Charts for critical algorithms of medium complexity that need to be explained to clients or colleagues.It will be easier to read them, take less time to build and save valuable screen space Use the Function for very short algorithms (1-6 lines) that do a simple thing and have no nested loops.This can helpful in understanding *quickly* what is going on. Also use them for complex algorithms with many nested loops. ![]() In my experience, there is a limit to Action Charts displaying complex algorithms, though: if it becomes so large as to span several screens and you need to scroll a lot to even follow what is going on, it is better to return to Functions instead:Īnother good use of Functions over Action Charts is if your algorithm is just a linear set of operations without loops or nesting. All types of agents in this model (bomber aircrafts, radars, missiles, bombs, and buildings) exist and interact in the continuous 3D space. We will build a simple model of a radar-based air defense system. Here, you’d end up with one long Action Chart which is useless. This tutorial is taken from The Big Book of Simulation Modeling by Andrei Borshchev and Ilya Grigoryev and adapted for AnyLogic 8. I have found Action Charts very useful but you need to beware of a significant short-coming: If you develop your model with other developers using versioning tools and merging (SVN, GIT…), Action Charts d o not behave well and mess up your merges easily. ![]() ![]() Sometimes it’s enough to just move their location a little. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |