Browse Source

bugfix

Former-commit-id: 3841028452
tempestpy_adaptions
TimQu 9 years ago
parent
commit
3784d59a85
  1. 2
      src/modelchecker/multiobjective/helper/SparseMultiObjectiveHelper.cpp

2
src/modelchecker/multiobjective/helper/SparseMultiObjectiveHelper.cpp

@ -258,7 +258,7 @@ namespace storm {
// shorten the distance between lower and upper bound for the new result by multiplying the current distance with 0.5 // shorten the distance between lower and upper bound for the new result by multiplying the current distance with 0.5
// TODO: try other values/strategies? // TODO: try other values/strategies?
RationalNumberType distance = storm::utility::sqrt(storm::utility::vector::dotProduct(lowerUpperDistances, lowerUpperDistances)); RationalNumberType distance = storm::utility::sqrt(storm::utility::vector::dotProduct(lowerUpperDistances, lowerUpperDistances));
weightVectorChecker->setMaximumLowerUpperBoundGap(storm::utility::convertNumber<SparseModelValueType>(distance) + storm::utility::convertNumber<SparseModelValueType>(0.5));
weightVectorChecker->setMaximumLowerUpperBoundGap(std::min(*oldMaximumLowerUpperBoundGap, storm::utility::convertNumber<SparseModelValueType>(distance) * storm::utility::convertNumber<SparseModelValueType>(0.5)));
break; break;
} }
} }

Loading…
Cancel
Save