Browse Source

Making POMDPs simple now does not introduce further initial states

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

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

@ -141,8 +141,11 @@ 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 ) {
newStates.set(newState, newStates[data.simpleStateToOriginalState[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