Skip to content

Commit

Permalink
Merge branch 'master' into game-abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Andriushchenko committed Dec 8, 2023
2 parents bbc520c + 8332ada commit b39a6e3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions paynt/synthesizer/policy_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ def synthesize_policy_for_family(self, family, prop, all_sat=False, iteration_li
:returns whether all SAT MDPs are solved using a single policy
:returns a list of UNSAT MDPs
:returns a list of SAT MDPs
:returns to each SAT MDP, a corresponding policy
:returns one policy if all SAT MDPs are solved using single policy or list containing a corresponding policy for each SAT MDP
'''
sat_mdp_families = []
sat_mdp_policies = []
Expand Down Expand Up @@ -701,10 +701,12 @@ def synthesize_policy_for_family(self, family, prop, all_sat=False, iteration_li
if scores[splitter] > 1:
break
else:
policy = self.quotient.empty_policy()
for index, (result, family) in enumerate(zip(current_results, sat_mdp_families)):
policy = self.quotient.scheduler_to_policy(result.result.scheduler, family.mdp)
sat_mdp_policies[index] = policy
return True, unsat_mdp_families, sat_mdp_families, sat_mdp_policies
mdp_policy = self.quotient.scheduler_to_policy(result.result.scheduler, family.mdp)
policy = merge_policies([policy, mdp_policy])
assert policy is not None
return True, unsat_mdp_families, sat_mdp_families, policy

if False in current_results:
continue
Expand Down

0 comments on commit b39a6e3

Please sign in to comment.