Book a Demo

Author Topic: BPSim run scenario problem  (Read 6650 times)

Zvolensky

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
  • Do... or do not. There is no try.
    • View Profile
BPSim run scenario problem
« on: February 17, 2016, 09:59:39 pm »
Hello
I'm trying to model simple ticket handling. Let's say, 4000 tickets in one month, new ticket each 10 minutes. No issues there, works like a charm.
Now i would like to run more realistic simulation, something like during working hours the frequency of arriving tickets will be higher than during night.
Or provide some randomness (not dependent on the actual hour of a day), that sometimes there will be 1 ticket each 3 minutes and other time there will be 1 ticket each 20 minutes. But keeping to those 4000 a month.
Is there a way to do something like this? Can't get my head around it.
Thx for help
Maros

MMA

  • EA User
  • **
  • Posts: 63
  • Karma: +3/-0
    • View Profile
Re: BPSim run scenario problem
« Reply #1 on: February 18, 2016, 08:59:00 am »
Hi Maros,

According to your requirement, following tips might be helpful:

1. Calendar: you should create 2 calendars PEAK_HOUR, OFFPEAK_HOUR.
    Ref: http://www.sparxsystems.com.au/enterprise_architect_user_guide/12.1/business_engineering/bpsim_ui_components.html
   
2. Then you setup the "Control | InterTriggerTimer" parameter for the start event:
    3 minutes, calendar choose to PEAK_HOUR
    20 minutes, calendar choose to OFFPEAK_HOUR
    some dummy like 99 minutes, calendar choose to empty "----"   (It is a must to set the default non-calendar item, otherwise it won't work.  If this is not set and you click "Validate", this important error will be picked up by validator and report in the System Output window)

3. Set the "Control | TriggerCount" to be 4000
4. Make sure the "Duration" parameter is big enough, e.g. 9999 000:00:00

Note: If the Duration is too short while TriggerCount is set to large number, the simulation will terminate early because of "timeout".

If you want some further realistic randomness, you can use distribution type of parameter for the InterTriggerTimer (the calendars could remain the same setting as above).

Note: The time unit on distribution page is not supported at the moment, Data is ignored and the basetimeUnit specified in the scenario is used.


Have a look at this webinar, in which a "Poisson distribution" is used to initialize the "numberOfIssues" property.  (you may use many other type of distributions).

Simulation and Decision Making in Enterprise Architect 12.1

http://www.sparxsystems.com/resources/webinar/release/ea121/specification/specification-simulation-using-enterprise-architect-121.html

Hope that helps
MMA
« Last Edit: February 18, 2016, 11:11:10 am by MMA »

Zvolensky

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
  • Do... or do not. There is no try.
    • View Profile
Re: BPSim run scenario problem
« Reply #2 on: February 18, 2016, 03:17:39 pm »
Hello
Thank you for you help, looks very promising  :D. Will try it out and I will let you know how it went
Thank you again
Maros

Zvolensky

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
  • Do... or do not. There is no try.
    • View Profile
Re: BPSim run scenario problem
« Reply #3 on: February 18, 2016, 06:15:27 pm »
Hello
Calendars are working. Thank you. Now just need to figure out the "Poisson distribution". Getting there
Maros