|
|
@ -197,10 +197,6 @@ void check() { |
|
|
|
std::unique_ptr<storm::modelchecker::CheckResult> result = modelchecker.check(*formula); |
|
|
|
ValueType valueFunction = result->asExplicitQuantitativeCheckResult<ValueType>()[*model->getInitialStates().begin()]; |
|
|
|
|
|
|
|
if (storm::settings::parametricSettings().exportResultToFile()) { |
|
|
|
storm::utility::exportParametricMcResult(valueFunction, constraintCollector); |
|
|
|
} |
|
|
|
|
|
|
|
// Report the result.
|
|
|
|
STORM_PRINT_AND_LOG(std::endl << "Result (initial state): "); |
|
|
|
result->writeToStream(std::cout, model->getInitialStates()); |
|
|
@ -209,6 +205,10 @@ void check() { |
|
|
|
} |
|
|
|
std::cout << std::endl; |
|
|
|
|
|
|
|
if (storm::settings::parametricSettings().exportResultToFile()) { |
|
|
|
storm::utility::exportParametricMcResult(valueFunction, constraintCollector); |
|
|
|
} |
|
|
|
|
|
|
|
// Generate derivatives for sensitivity analysis if requested.
|
|
|
|
if (std::is_same<ValueType, storm::RationalFunction>::value && storm::settings::parametricSettings().isDerivativesSet()) { |
|
|
|
ValueType function = result->asExplicitQuantitativeCheckResult<ValueType>()[*model->getInitialStates().begin()]; |
|
|
|