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.

20 lines
319 B

8 years ago
  1. mdp
  2. module module1
  3. // local state
  4. s : [0..2] init 0;
  5. [A] s=0 -> 0.6 : (s'=1) + 0.4 : (s'=2);
  6. [B] s=0 -> 0.3 : (s'=0) + 0.7 : (s'=1);
  7. [C] s=0 -> 0.2 : (s'=0) + 0.8 : (s'=2);
  8. [D] s=1 -> 0.25 : (s'=0) + 0.75 : (s'=2);
  9. [] s=2 -> 1 : (s'=s);
  10. endmodule
  11. rewards "rew"
  12. [A] true : 10;
  13. [D] true : 4;
  14. endrewards