Browse Source

Fixed wrong dimension bug in MDP model checkers.

tempestpy_adaptions
dehnert 12 years ago
parent
commit
16e1e2cedf
  1. 1
      src/modelchecker/prctl/GmmxxMdpPrctlModelChecker.h
  2. 2
      src/modelchecker/prctl/SparseMdpPrctlModelChecker.h

1
src/modelchecker/prctl/GmmxxMdpPrctlModelChecker.h

@ -111,7 +111,6 @@ private:
unsigned maxIterations = s->get<unsigned>("maxiter"); unsigned maxIterations = s->get<unsigned>("maxiter");
bool relative = s->get<bool>("relative"); bool relative = s->get<bool>("relative");
// Transform the transition probability matrix to the gmm++ format to use its arithmetic. // Transform the transition probability matrix to the gmm++ format to use its arithmetic.
gmm::csr_matrix<Type>* gmmxxMatrix = storm::adapters::GmmxxAdapter::toGmmxxSparseMatrix<Type>(A); gmm::csr_matrix<Type>* gmmxxMatrix = storm::adapters::GmmxxAdapter::toGmmxxSparseMatrix<Type>(A);

2
src/modelchecker/prctl/SparseMdpPrctlModelChecker.h

@ -434,7 +434,7 @@ public:
std::vector<uint_fast64_t> subNondeterministicChoiceIndices = this->computeNondeterministicChoiceIndicesForConstraint(maybeStates); std::vector<uint_fast64_t> subNondeterministicChoiceIndices = this->computeNondeterministicChoiceIndicesForConstraint(maybeStates);
// Create vector for results for maybe states. // Create vector for results for maybe states.
std::vector<Type> x(submatrix.getRowCount());
std::vector<Type> x(submatrix.getColumnCount());
// Prepare the right-hand side of the equation system. For entry i this corresponds to // Prepare the right-hand side of the equation system. For entry i this corresponds to
// the accumulated probability of going from state i to some 'yes' state. // the accumulated probability of going from state i to some 'yes' state.

Loading…
Cancel
Save