Browse Source

Making POMDPs simple now does not introduce further initial states

tempestpy_adaptions
Sebastian Junges 4 years ago
parent
commit
03e0b01ae2
  1. 5
      src/storm-pomdp/transformer/BinaryPomdpTransformer.cpp

5
src/storm-pomdp/transformer/BinaryPomdpTransformer.cpp

@ -141,9 +141,12 @@ namespace storm {
for (auto const& labelName : pomdp.getStateLabeling().getLabels()) {
storm::storage::BitVector newStates = pomdp.getStateLabeling().getStates(labelName);
newStates.resize(data.simpleMatrix.getRowGroupCount(), false);
for (uint64_t newState = pomdp.getNumberOfStates(); newState < data.simpleMatrix.getRowGroupCount(); ++newState ) {
if (labelName != "init") {
for (uint64_t newState = pomdp.getNumberOfStates();
newState < data.simpleMatrix.getRowGroupCount(); ++newState) {
newStates.set(newState, newStates[data.simpleStateToOriginalState[newState]]);
}
}
labeling.addLabel(labelName, std::move(newStates));
}

Loading…
Cancel
Save