Skip to content

Commit db6e7f6

Browse files
committed
update service discipline docs
1 parent f95ab8f commit db6e7f6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/Guides/service_disciplines.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ As an example, say we have a three node network, and we want to use FIFO discipl
3838
Custom Disciplines
3939
------------------
4040

41-
Other service disciplines can also be implemented by writing a custom service discipline function. These functions take in a list of individuals and returns an individual from that list that represents the next individual to be served. As this is a list of individuals, we can access the individuals' attributes when making the service discipline decision.
41+
Other service disciplines can also be implemented by writing a custom service discipline function. These functions take in a list of individuals, and the current time, and returns an individual from that list that represents the next individual to be served. As this is a list of individuals, we can access the individuals' attributes when making the service discipline decision.
4242

4343
For example, say we wish to implement a service discipline that chooses the customers randomly, but with probability proportional to their arrival order, we could write:
4444

45-
>>> def SIRO_proportional(individuals):
45+
>>> def SIRO_proportional(individuals, t):
4646
... n = len(inds)
4747
... denominator = (n * (n + 1)) / 2
4848
... probs = [(n - i) / denominator for i in range(n)]

0 commit comments

Comments
 (0)