SlideShare una empresa de Scribd logo
1 de 13
How to schedule, trigger static
event
Become an AnyLogic Expert Step by Step
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.
Learning subjects
khoi.tran@simbean.com 3
In this example you can learn,
• How to create different kind of events.
• Static events
• Dynamic events
You can see the demo in action first
http://simbean.com/en/knowhow/become-an-anylogic-expert.html
If you like to know, how I built this model, this presentation may help you.
Create a static events
khoi.tran@simbean.com 4
Drag & drop all the
elements and rename
them
Schedule static event with “Occurs once“
khoi.tran@simbean.com 5
Set trigger type on
“Time out“ and mode
on “Occurs once“
Absolute time for
scheduling the
trigger
Show the message on the
console and set the variable
on true, when the event is
triggered
This event is triggered only once, event starts at the begin of model run.
Schedule static event with “Occurs once“
khoi.tran@simbean.com 6
Set variable type on
“boolean“ and initial
value on false
Schedule static event with “User control“
khoi.tran@simbean.com 7
Set trigger type on “Time
out“ and mode on “User
mode“
Show the message on the
console
For mode “User control“ you need to define the event start.
Schedule static event with “User control“
khoi.tran@simbean.com 8
Start the event
For mode “User control“ you need to define the event start.
You can define the event start e.g. In the startup code block of the active object.
Schedule static event with “Cyclic“
khoi.tran@simbean.com 9
Set event mode
on “Cyclic“
The the first
occurence, event
starts right at the
begin of model run After every event
trigger, this event is
rescheduled for the
same value
This event never stops, otherwise you have to stop or suspend it explixitely.
The message will be shown on the console every 5 time units.
Schedule static event with “Rate“
khoi.tran@simbean.com 10
Create dynamic events,
Value 10 is the trigger time
The value of rate defines how many times the event will occure. If the rate e.g. is 10, the
event will occure 10 times per time unit. For rate = 0.1 the event occures one time per
10 time units. The interarrival time is calculated by the exponential distributed function.
The mean of this function is exactly 1/rate, for rate = 0.1 => mean = 1/0.1 = 10
To see this histogram, you
need to run the model with
maximum speed
Schedule static event with “Condition“
khoi.tran@simbean.com 11
When this condition is true,
the event is triggered
Remember: We already set this variable in the action of the event “eventTimeoutOccursOnce“.
This means, when the action is executed by the “eventTimeoutOccursOnce“, our
„eventCondition“ is triggered, too.
Run the model
khoi.tran@simbean.com
Click on the run button and
choose the simulation
12
1. You can run the model and see the result
2. Try to change or set properties to see some small effects e.g.
1. Change the absolute time for the static events.
2. Change the rate of the eventRate to understand the histogram.
3. You need to restart the model to see the effects
Thank You
khoi.tran@simbean.com 13
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.

Más contenido relacionado

Destacado

3rd meeting minutes
3rd meeting minutes3rd meeting minutes
3rd meeting minuteschoojk
 
Made in china – prowadzenie biznesu w chinach
Made in china – prowadzenie biznesu w chinachMade in china – prowadzenie biznesu w chinach
Made in china – prowadzenie biznesu w chinachsknsz
 
Spotkanie wigilijne skn
Spotkanie wigilijne sknSpotkanie wigilijne skn
Spotkanie wigilijne sknsknsz
 
2007 general 2_bd164d_ed01
2007 general 2_bd164d_ed012007 general 2_bd164d_ed01
2007 general 2_bd164d_ed01Anam
 
Debata oksfordzka skn spraw zagranicznych
Debata oksfordzka skn spraw zagranicznychDebata oksfordzka skn spraw zagranicznych
Debata oksfordzka skn spraw zagranicznychsknsz
 
Yapcasia 2012 skyarc
Yapcasia 2012 skyarcYapcasia 2012 skyarc
Yapcasia 2012 skyarconagatani
 
Half sync/Half Async
Half sync/Half AsyncHalf sync/Half Async
Half sync/Half Asyncscor7910
 
V este 1 web
V este 1 webV este 1 web
V este 1 webAnam
 
Financial crisis done
Financial crisis doneFinancial crisis done
Financial crisis doneEly Twiggs
 
What could possibly go wrong?
What could possibly go wrong?What could possibly go wrong?
What could possibly go wrong?Pace
 
Web ve
Web veWeb ve
Web veAnam
 
Cd digi pack cover completed
Cd digi pack cover completedCd digi pack cover completed
Cd digi pack cover completedjackthompson
 
Incontro mondiale delle famiglie 2012
Incontro mondiale delle famiglie 2012Incontro mondiale delle famiglie 2012
Incontro mondiale delle famiglie 2012Roberto Flossi
 

Destacado (17)

3rd meeting minutes
3rd meeting minutes3rd meeting minutes
3rd meeting minutes
 
Ppt 1
Ppt 1Ppt 1
Ppt 1
 
Made in china – prowadzenie biznesu w chinach
Made in china – prowadzenie biznesu w chinachMade in china – prowadzenie biznesu w chinach
Made in china – prowadzenie biznesu w chinach
 
Spotkanie wigilijne skn
Spotkanie wigilijne sknSpotkanie wigilijne skn
Spotkanie wigilijne skn
 
2007 general 2_bd164d_ed01
2007 general 2_bd164d_ed012007 general 2_bd164d_ed01
2007 general 2_bd164d_ed01
 
Debata oksfordzka skn spraw zagranicznych
Debata oksfordzka skn spraw zagranicznychDebata oksfordzka skn spraw zagranicznych
Debata oksfordzka skn spraw zagranicznych
 
Érárnyék
ÉrárnyékÉrárnyék
Érárnyék
 
Yapcasia 2012 skyarc
Yapcasia 2012 skyarcYapcasia 2012 skyarc
Yapcasia 2012 skyarc
 
Half sync/Half Async
Half sync/Half AsyncHalf sync/Half Async
Half sync/Half Async
 
Hachiojipm11
Hachiojipm11Hachiojipm11
Hachiojipm11
 
V este 1 web
V este 1 webV este 1 web
V este 1 web
 
Financial crisis done
Financial crisis doneFinancial crisis done
Financial crisis done
 
Presentation2
Presentation2Presentation2
Presentation2
 
What could possibly go wrong?
What could possibly go wrong?What could possibly go wrong?
What could possibly go wrong?
 
Web ve
Web veWeb ve
Web ve
 
Cd digi pack cover completed
Cd digi pack cover completedCd digi pack cover completed
Cd digi pack cover completed
 
Incontro mondiale delle famiglie 2012
Incontro mondiale delle famiglie 2012Incontro mondiale delle famiglie 2012
Incontro mondiale delle famiglie 2012
 

Último

New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 

Último (20)

New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 

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

  • 1. How to schedule, trigger static event Become an AnyLogic Expert Step by Step
  • 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. • Static events • Dynamic events You can see the demo in action first http://simbean.com/en/knowhow/become-an-anylogic-expert.html If you like to know, how I built this model, this presentation may help you.
  • 4. Create a static events khoi.tran@simbean.com 4 Drag & drop all the elements and rename them
  • 5. Schedule static event with “Occurs once“ khoi.tran@simbean.com 5 Set trigger type on “Time out“ and mode on “Occurs once“ Absolute time for scheduling the trigger Show the message on the console and set the variable on true, when the event is triggered This event is triggered only once, event starts at the begin of model run.
  • 6. Schedule static event with “Occurs once“ khoi.tran@simbean.com 6 Set variable type on “boolean“ and initial value on false
  • 7. Schedule static event with “User control“ khoi.tran@simbean.com 7 Set trigger type on “Time out“ and mode on “User mode“ Show the message on the console For mode “User control“ you need to define the event start.
  • 8. Schedule static event with “User control“ khoi.tran@simbean.com 8 Start the event For mode “User control“ you need to define the event start. You can define the event start e.g. In the startup code block of the active object.
  • 9. Schedule static event with “Cyclic“ khoi.tran@simbean.com 9 Set event mode on “Cyclic“ The the first occurence, event starts right at the begin of model run After every event trigger, this event is rescheduled for the same value This event never stops, otherwise you have to stop or suspend it explixitely. The message will be shown on the console every 5 time units.
  • 10. Schedule static event with “Rate“ khoi.tran@simbean.com 10 Create dynamic events, Value 10 is the trigger time The value of rate defines how many times the event will occure. If the rate e.g. is 10, the event will occure 10 times per time unit. For rate = 0.1 the event occures one time per 10 time units. The interarrival time is calculated by the exponential distributed function. The mean of this function is exactly 1/rate, for rate = 0.1 => mean = 1/0.1 = 10 To see this histogram, you need to run the model with maximum speed
  • 11. Schedule static event with “Condition“ khoi.tran@simbean.com 11 When this condition is true, the event is triggered Remember: We already set this variable in the action of the event “eventTimeoutOccursOnce“. This means, when the action is executed by the “eventTimeoutOccursOnce“, our „eventCondition“ is triggered, too.
  • 12. Run the model khoi.tran@simbean.com Click on the run button and choose the simulation 12 1. You can run the model and see the result 2. Try to change or set properties to see some small effects e.g. 1. Change the absolute time for the static events. 2. Change the rate of the eventRate to understand the histogram. 3. You need to restart the model to see the effects
  • 13. Thank You khoi.tran@simbean.com 13 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.