The source code and dockerfile for the GSW2024 AI Lab.
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

28 lines
347 B

2 months ago
  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