Browse Source

parameters from rewards are now also collected in wellformedness analysis

tempestpy_adaptions
Sebastian Junges 7 years ago
parent
commit
2ce145745a
  1. 2
      src/storm/analysis/GraphConditions.cpp

2
src/storm/analysis/GraphConditions.cpp

@ -35,6 +35,8 @@ namespace storm {
void ConstraintCollector<ValueType>::wellformedRequiresNonNegativeEntries(std::vector<ValueType> const& vec) {
for(auto const& entry : vec) {
if (!storm::utility::isConstant(entry)) {
auto const& transitionVars = entry.gatherVariables();
variableSet.insert(transitionVars.begin(), transitionVars.end());
if (entry.denominator().isConstant()) {
if (entry.denominatorAsNumber() > 0) {
wellformedConstraintSet.emplace(entry.nominator().polynomialWithCoefficient(), storm::CompareRelation::GEQ);

Loading…
Cancel
Save