Browse Source

Output progress for DFT exploration

tempestpy_adaptions
Matthias Volk 6 years ago
parent
commit
d062e658e0
  1. 7
      src/storm-dft/builder/ExplicitDFTModelBuilder.cpp

7
src/storm-dft/builder/ExplicitDFTModelBuilder.cpp

@ -7,6 +7,7 @@
#include "storm/utility/constants.h"
#include "storm/utility/vector.h"
#include "storm/utility/bitoperations.h"
#include "storm/utility/ProgressMeasurement.h"
#include "storm/exceptions/UnexpectedException.h"
#include "storm/settings/SettingsManager.h"
#include "storm/logic/AtomicLabelFormula.h"
@ -319,6 +320,8 @@ namespace storm {
void ExplicitDFTModelBuilder<ValueType, StateType>::exploreStateSpace(double approximationThreshold) {
size_t nrExpandedStates = 0;
size_t nrSkippedStates = 0;
storm::utility::ProgressMeasurement progress("explored states");
progress.startNewMeasurement(0);
// TODO Matthias: do not empty queue every time but break before
while (!explorationQueue.empty()) {
// Get the first state in the queue
@ -416,6 +419,10 @@ namespace storm {
matrixBuilder.finishRow();
}
}
// Output number of currently explored states
if (nrExpandedStates % 100 == 0) {
progress.updateProgress(nrExpandedStates);
}
} // end exploration
STORM_LOG_INFO("Expanded " << nrExpandedStates << " states");

Loading…
Cancel
Save