question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Arrival Schedules

See original GitHub issue

Just Like Server Schedules, can we incorporate Arrival Schedules ( for example - Peak Hours at restaurant, traffic etc). We can do this by providing another attribute to params:-

Arrival Schedules : ['schedule']
schedule=[[Distribution-1,10],[Distribution-2,40],[Distribution-3,100]]

where ‘Distribution-k’ represents Arrival Distributions ,1<=k<=3 and 10,40,100 are the time till which that distribution is followed. 0-10 -Distribution-1 10-40 Distribution-2 40-100 Distribution-3

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
drvinceknightcommented, May 2, 2017

Yes that’s good. So should I keep this open as a suggestion or close it.

I think it can be closed. 👍 (It can always be reopened if need be.)

1reaction
geraintpalmercommented, Apr 27, 2017
  1. OK, if you intend for it to cycle you can use modulo arithmetic:
def arrival_schedules(t):
    if t % 100 <= 10:
        return random.expovariate(0.4)
    if t  % 100 < 40:
        return random.expovariate(0.2)
    if t % 100 < 100:
        return random.expovariate(0.3)

and since t % 100 cannot be greater than 100, we have:

def arrival_schedules(t):
    if t % 100 <= 10:
        return random.expovariate(0.4)
    if t  % 100 < 40:
        return random.expovariate(0.2)
   return random.expovariate(0.3)
  1. 2 changes occurred in version 1.1.0:
  • ciw.create_network is slightly refactored, no user facing changes however.

  • Input for server schedules have been refactored. We now define the schedule inside the Number_of_servers list, rather than give that a string, and define the schedule outside. The latest documentation is up to date with version 1.1.0 and will explain this change: http://ciw.readthedocs.io/en/latest/Guides/server_schedule.html

I hope that helps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Arrival / Departure Schedules, Fairbanks International Airport ...
Arrival / Departure Schedules, Fairbanks International Airport, Transportation & Public Facilities, State of Alaska.
Read more >
Arrival Schedules - Shippensburg University
This pages holds schedules for Arrival Dates and Check-In Times. ... Incoming First year and Transfer Students will arrive on Friday, January 13,...
Read more >
Flight Arrivals - Dane County Regional Airport
City Time Airline Flight Gate Status Dallas‑Ft. Worth 4:50 PM American 1817 13 Arrived Minneapolis 5:05 PM Delta 4070 8 Now 6:24 PM Washington‑DCA 5:18 PM...
Read more >
Arrivals | Fly SRQ
Arriving From Time Flight Claim Remarks Cincinnati 9:09 AM 429 1 On Time Pittsburgh 9:39 AM 2755 1 On Time Boston 10:01 AM 1941 2 On...
Read more >
Vessel Schedules & Arrivals - Port Houston
You can find the current vessel schedules and arrival and departure times for ships calling to and leaving Port Houston's Container terminals below....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found