Browse Source

Under- and overapproximation for Pareto curve check result are now optional

tempestpy_adaptions
TimQu 7 years ago
parent
commit
cd5b805a76
  1. 6
      src/storm/modelchecker/results/ParetoCurveCheckResult.cpp

6
src/storm/modelchecker/results/ParetoCurveCheckResult.cpp

@ -44,9 +44,13 @@ namespace storm {
template<typename ValueType> template<typename ValueType>
std::ostream& ParetoCurveCheckResult<ValueType>::writeToStream(std::ostream& out) const { std::ostream& ParetoCurveCheckResult<ValueType>::writeToStream(std::ostream& out) const {
out << std::endl; out << std::endl;
if (underApproximation) {
out << "Underapproximation of achievable values: " << underApproximation->toString() << std::endl; out << "Underapproximation of achievable values: " << underApproximation->toString() << std::endl;
}
if (overApproximation) {
out << "Overapproximation of achievable values: " << overApproximation->toString() << std::endl; out << "Overapproximation of achievable values: " << overApproximation->toString() << std::endl;
out << points.size() << " pareto optimal points found (Note that these points are safe, i.e., contained in the underapproximation, but there is no guarantee for optimality):" << std::endl;
}
out << points.size() << " pareto optimal points found:" << std::endl;
for(auto const& p : points) { for(auto const& p : points) {
out << " ("; out << " (";
for(auto it = p.begin(); it != p.end(); ++it){ for(auto it = p.begin(); it != p.end(); ++it){

Loading…
Cancel
Save