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.

25 lines
377 B

  1. // Model taken from Daws04
  2. // This version by Ernst Moritz Hahn (emh@cs.uni-sb.de)
  3. dtmc
  4. const double pK;
  5. const double pL;
  6. const int n;
  7. module main
  8. s: [-2..n+1];
  9. [b] (s=-1) -> (s'=-2);
  10. [a] (s=0) -> 1-pL : (s'=-1) + pL : (s'=1);
  11. [a] (s>0) & (s<n+1) -> 1-pK : (s'=0) + pK : (s'=s+1);
  12. endmodule
  13. init
  14. s = 0
  15. endinit
  16. rewards
  17. [a] true : 1;
  18. [b] true : n-1;
  19. endrewards