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.

28 lines
347 B

  1. ctmc
  2. module main
  3. s : [0..4]; // current state:
  4. <> s=0 -> 4 : (s'=1) + 4 : (s'=2);
  5. <> s=1 -> 0.3 : (s'=2) + 0.7 : (s'=1);
  6. <> s=2 -> 0.5 : (s'=2) + 0.5 : (s'=3);
  7. <> s=3 -> 1 : (s'=4);
  8. <> s=4 -> 1 : (s'=3);
  9. endmodule
  10. rewards "rew1"
  11. s=0 : 7;
  12. [] s=2 : 1;
  13. endrewards
  14. rewards "rew2"
  15. s=0 : 7;
  16. [] s=2 : 1;
  17. [] s=4 : 100;
  18. endrewards