Browse Source

Enabled probabilities depending on source state variables.

Former-commit-id: 8c12ac975c
tempestpy_adaptions
dehnert 10 years ago
parent
commit
b3d18c2367
  1. 4
      src/builder/DdPrismModelBuilder.cpp

4
src/builder/DdPrismModelBuilder.cpp

@ -132,8 +132,8 @@ namespace storm {
STORM_LOG_WARN_COND(!updateDd.isZero(), "Update '" << update << "' does not have any effect.");
double p = update.getLikelihoodExpression().evaluateAsDouble();
updateDd *= generationInfo.manager->getConstant(p);
storm::dd::Dd<Type> probabilityDd = generationInfo.rowExpressionAdapter->translateExpression(update.getLikelihoodExpression());
updateDd *= probabilityDd;
commandDd += updateDd;
}

Loading…
Cancel
Save