From 16e1e2cedf236891d1cadadf6feb57e1044abaf0 Mon Sep 17 00:00:00 2001 From: dehnert Date: Thu, 6 Jun 2013 18:48:32 +0200 Subject: [PATCH] Fixed wrong dimension bug in MDP model checkers. --- src/modelchecker/prctl/GmmxxMdpPrctlModelChecker.h | 1 - src/modelchecker/prctl/SparseMdpPrctlModelChecker.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modelchecker/prctl/GmmxxMdpPrctlModelChecker.h b/src/modelchecker/prctl/GmmxxMdpPrctlModelChecker.h index f5fb601f1..60a5de999 100644 --- a/src/modelchecker/prctl/GmmxxMdpPrctlModelChecker.h +++ b/src/modelchecker/prctl/GmmxxMdpPrctlModelChecker.h @@ -111,7 +111,6 @@ private: unsigned maxIterations = s->get("maxiter"); bool relative = s->get("relative"); - // Transform the transition probability matrix to the gmm++ format to use its arithmetic. gmm::csr_matrix* gmmxxMatrix = storm::adapters::GmmxxAdapter::toGmmxxSparseMatrix(A); diff --git a/src/modelchecker/prctl/SparseMdpPrctlModelChecker.h b/src/modelchecker/prctl/SparseMdpPrctlModelChecker.h index 74b138d58..2f7238a81 100644 --- a/src/modelchecker/prctl/SparseMdpPrctlModelChecker.h +++ b/src/modelchecker/prctl/SparseMdpPrctlModelChecker.h @@ -434,7 +434,7 @@ public: std::vector subNondeterministicChoiceIndices = this->computeNondeterministicChoiceIndicesForConstraint(maybeStates); // Create vector for results for maybe states. - std::vector x(submatrix.getRowCount()); + std::vector x(submatrix.getColumnCount()); // 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.