• Like
  • Save

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

AnyLogic - Free AnyLogic basic lessions - Learning AnyLogic by examples - Demo event

  • 842 views
Published

Free AnyLogic basic lessions - Learning AnyLogic by examples is made by Khoi Tran. …

Free AnyLogic basic lessions - Learning AnyLogic by examples is made by Khoi Tran.

In this example you can learn, how to create events in AnyLogic

Published in Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
842
On SlideShare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Become an AnyLogic Expert Step by Step
    How to create an embedded active object
  • 2. About me
    khoi.tran@simbean.com
    2
    My name is Khoi Tran and I’m living in beautiful Stuttgart, Germany.
    As a 12-years expert in the software industry and 6-years expert in simulation with AnyLogic, I would like to share my experiences with you on a simple and fast path.
  • 3. Learning subjects
    khoi.tran@simbean.com
    3
    In this example you can learn,
    • How to create different kind of Events.
    • 4. Static Events
    • 5. Dynamic Events
    • 6. How to create experiments
    You can see the demo in action first
    http://simbean.com/en/knowhow/become-an-anylogic-expert.html
    If you like to know, how we built this model, this slide may help you.
  • 7. static event and dynamic event
    khoi.tran@simbean.com
    4
    Action executed
    10
    15
    Static event
    0
    time
    event.restart(15);
    Start to schedule
    10
    15
    Dynamic event
    0
    time
    create_MyDynamicEvent01(15);
    create_MyDynamicEvent01(10);
    Static event exists for the whole time, during the model run. When time is over, you can restart the static event by calling its restart method.
    Many dynamic event objects can be created in parallel. When time is over, you need to create new dynamic event.
  • 8. Create a static event
    khoi.tran@simbean.com
    5
    Drag & drop one event onto the graghical editor
  • 9. Set properties for static event
    khoi.tran@simbean.com
    6
    Set Trigger type: “Timeout”
    Set Mode: “Occurs once”
    Set absolute time for event trigger
    Show the message, when this event is triggered
    • Method “Traceln” prints the message on the console of AnyLogic
    • 10. Absolute time of a running model is exactly the time, which is counted from the begin of the running model
  • Create a dynamic event
    khoi.tran@simbean.com
    7
    Drag & drop a dynamic event onto the graghical editor
    Drag & drop a plain variable onto the graghical editor
  • 11. Set properties for dynamic event
    khoi.tran@simbean.com
    8
    Method traceln(“...“) shows the message on the console, as the definition of the action in this dynamic event
  • 12. Set properties for plain variable
    khoi.tran@simbean.com
    9
    Set the plain variable on type “DynamicEvent“
  • 13. Set startup code for active object which has a dynamic event
    khoi.tran@simbean.com
    10
    Create dynamic events,
    Value 10 is the trigger time
  • 14. Run the model
    khoi.tran@simbean.com
    Click on the run button and choose the simulation
    11
    You can run the model and see the result
    Try to change or set properties to see some small effects e.g.
    Set the absolute time for the static and dynamic events.
    You need to restart the model to see the effects
  • 15. Another try
    khoi.tran@simbean.com
    12
    Create another plain variable
    Create another dynamic event with another plain variable
  • 16. The result
    khoi.tran@simbean.com
    13
    The time is counting down for the static event
    Two dynamic events are created. Time value can be seen at the plain variables
    Two dynamic events are created. Time value can be seen at the plain variables
  • 17. Thank You
    khoi.tran@simbean.com
    14
    IF YOU HAVE ANY QUESTION, IDEA, FEEDBACK or FIND ANY MISTAKE, PLEASE SEND ME an EMAIL
    khoi.tran@simbean.com
    BECAUSE I WOULD LIKE to IMPROVE this SLIDE CONTINUOUSLY.
    I APPRECIATE a lot YOUR TIME.