Browse Source

Small fix for policy extraction

Former-commit-id: fa37a1ceb2
tempestpy_adaptions
TimQu 9 years ago
parent
commit
b182e3fdcf
  1. 2
      src/solver/MinMaxLinearEquationSolver.h

2
src/solver/MinMaxLinearEquationSolver.h

@ -144,7 +144,7 @@ namespace storm {
std::vector<storm::storage::sparse::state_type> computePolicy(std::vector<ValueType>& x, std::vector<ValueType> const& b) const{
std::vector<ValueType> xPrime(this->A.getRowCount());
this->A.multiplyVectorWithMatrix(x, xPrime);
this->A.multiplyWithVector(x, xPrime);
storm::utility::vector::addVectors(xPrime, b, xPrime);
std::vector<storm::storage::sparse::state_type> policy(x.size());
std::vector<ValueType> reduced(x.size());

Loading…
Cancel
Save