You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
776 B

2 months ago
  1. // tandem queueing network [HKMKS99]
  2. // gxn/dxp 25/01/00
  3. ctmc
  4. const int c = 5; // queue capacity
  5. const double lambda = 4*c;
  6. const double mu1a = 0.1*2;
  7. const double mu1b = 0.9*2;
  8. const double mu2 = 2;
  9. const double kappa = 4;
  10. module serverC
  11. sc : [0..c];
  12. ph : [1..2];
  13. [] (sc<c) -> lambda: (sc'=sc+1);
  14. [route] (sc>0) & (ph=1) -> mu1b: (sc'=sc-1);
  15. [] (sc>0) & (ph=1) -> mu1a: (ph'=2);
  16. [route] (sc>0) & (ph=2) -> mu2: (ph'=1) & (sc'=sc-1);
  17. endmodule
  18. module serverM
  19. sm : [0..c];
  20. [route] (sm<c) -> 1: (sm'=sm+1);
  21. [] (sm>0) -> kappa: (sm'=sm-1);
  22. endmodule
  23. // reward - number of customers in network
  24. rewards "customers"
  25. true : sc + sm;
  26. endrewards
  27. label "network_full" = sc=c&sm=c&ph=2;
  28. label "first_queue_full" = sc=c;
  29. label "second_queue_full" = sm=c;