Browse Source

minor fixes and debug output

Former-commit-id: 67c7c6b362
tempestpy_adaptions
TimQu 9 years ago
parent
commit
5310793653
  1. 3
      src/logic/FragmentSpecification.cpp
  2. 3
      src/modelchecker/multiobjective/helper/SparseMultiObjectiveModelCheckerHelper.cpp
  3. 7
      src/storage/geometry/Halfspace.h

3
src/logic/FragmentSpecification.cpp

@ -89,6 +89,7 @@ namespace storm {
multiObjective.setMultiObjectiveFormulasAllowed(true);
multiObjective.setProbabilityOperatorsAllowed(true);
multiObjective.setUntilFormulasAllowed(true);
multiObjective.setGloballyFormulasAllowed(true);
multiObjective.setReachabilityProbabilityFormulasAllowed(true);
multiObjective.setRewardOperatorsAllowed(true);
multiObjective.setReachabilityRewardFormulasAllowed(true);
@ -466,4 +467,4 @@ namespace storm {
}
}
}
}

3
src/modelchecker/multiobjective/helper/SparseMultiObjectiveModelCheckerHelper.cpp

@ -94,7 +94,7 @@ namespace storm {
}
STORM_LOG_ASSERT(optimizingObjIndex < info.objectives.size(), "Numerical Query invoked but there are no objectives without threshold");
auto thresholdsAsPolytope = storm::storage::geometry::Polytope<RationalNumberType>::create(thresholdConstraints);
WeightVector directionOfOptimizingObjective(info.objectives.size());
WeightVector directionOfOptimizingObjective(info.objectives.size(), storm::utility::zero<RationalNumberType>());
directionOfOptimizingObjective[optimizingObjIndex] = storm::utility::one<RationalNumberType>();
// Try to find one valid solution
@ -187,6 +187,7 @@ namespace storm {
storm::storage::TotalScheduler scheduler = weightedObjectivesChecker.getScheduler();
Point weightedObjectivesResult = storm::utility::vector::convertNumericVector<RationalNumberType>(weightedObjectivesChecker.getInitialStateResultOfObjectives());
STORM_LOG_DEBUG("Result with weighted objectives is " << storm::utility::vector::toString(weightedObjectivesResult));
// Insert the computed scheduler and check whether we have already seen it before
auto schedulerInsertRes = schedulers.insert(std::make_pair(std::move(scheduler), paretoOptimalPoints.end()));

7
src/storage/geometry/Halfspace.h

@ -73,7 +73,12 @@ namespace storm {
}
stream << std::setw(10) << numberStream.str();
}
stream << ") * x <= " << offset();
stream << ") * x <= ";
if(numbersAsDouble) {
stream << storm::utility::convertNumber<double>(offset());
} else {
stream << offset();
}
return stream.str();
}

Loading…
Cancel
Save