Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PimLeerkes committed Dec 22, 2024
1 parent 8e1fb4e commit bb69719
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions examples/monty_hall.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ def create_monty_hall_mdp():

if __name__ == "__main__":
# Print the resulting model in dot format.

print(create_monty_hall_mdp().to_dot())
2 changes: 1 addition & 1 deletion stormvogel/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __init__(
self.observation = None

if name is None:
self.name = str(id)
self.name = str(id) # TODO Two states can have same name in some cases
else:
self.name = name

Expand Down
8 changes: 4 additions & 4 deletions stormvogel/model_checking.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ def model_checking(
if __name__ == "__main__":
mdp = examples.monty_hall.create_monty_hall_mdp()

# rewardmodel = mdp.add_rewards("rewardmodel")
# rewardmodel.set_from_rewards_vector(list(range(67)))
# rewardmodel2 = mdp.add_rewards("rewardmodel2")
# rewardmodel2.set_from_rewards_vector(list(range(67)))
rewardmodel = mdp.add_rewards("rewardmodel")
rewardmodel.set_from_rewards_vector(list(range(67)))
rewardmodel2 = mdp.add_rewards("rewardmodel2")
rewardmodel2.set_from_rewards_vector(list(range(67)))

print(model_checking(mdp)) # ,'R{"rewardmodel"}min=? [F "target" | "done"]'))

0 comments on commit bb69719

Please sign in to comment.