Skip to content

Commit

Permalink
fix sub-POMDP construction
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Andriushchenko committed Feb 19, 2024
1 parent bec3a74 commit 8aab0e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions payntbind/src/synthesis/translation/SubPomdpBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ namespace synthesis {
}

auto state = state_translator.retrieve(translated_state);
builder.newRowGroup(builder.getLastRow()+1);
synthesis::translateTransitionMatrixRowGroup(
pomdp, builder, state_translator.itemToTranslation(), choice_translator.itemToTranslation(), state
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ namespace synthesis {
std::vector<uint64_t> const& original_to_translated_choice,
uint64_t state
) {
builder.newRowGroup(builder.getLastRow());
for(auto const& choice: model.getTransitionMatrix().getRowGroupIndices(state)) {
synthesis::translateTransitionMatrixRow(
model, builder, original_to_translated_state, original_to_translated_choice, choice
Expand Down

0 comments on commit 8aab0e1

Please sign in to comment.