Browse Source

added override to LESolver

tempestpy_adaptions
Stefan Pranger 4 years ago
parent
commit
4a018c0ca7
  1. 6
      src/storm/solver/IterativeMinMaxLinearEquationSolver.cpp

6
src/storm/solver/IterativeMinMaxLinearEquationSolver.cpp

@ -5,6 +5,7 @@
#include "storm/environment/solver/MinMaxSolverEnvironment.h" #include "storm/environment/solver/MinMaxSolverEnvironment.h"
#include "storm/environment/solver/OviSolverEnvironment.h" #include "storm/environment/solver/OviSolverEnvironment.h"
#include "storm/environment/solver/MultiplierEnvironment.h"
#include "storm/utility/ConstantsComparator.h" #include "storm/utility/ConstantsComparator.h"
#include "storm/utility/KwekMehlhorn.h" #include "storm/utility/KwekMehlhorn.h"
@ -414,6 +415,11 @@ namespace storm {
this->multiplierA = storm::solver::MultiplierFactory<ValueType>().create(env, *this->A); this->multiplierA = storm::solver::MultiplierFactory<ValueType>().create(env, *this->A);
} }
// TODO cleanup
if(env.solver().multiplier().getOptimizationDirectionOverride().is_initialized()) {
multiplierA->setOptimizationDirectionOverride(env.solver().multiplier().getOptimizationDirectionOverride().get());
}
if (!auxiliaryRowGroupVector) { if (!auxiliaryRowGroupVector) {
auxiliaryRowGroupVector = std::make_unique<std::vector<ValueType>>(this->A->getRowGroupCount()); auxiliaryRowGroupVector = std::make_unique<std::vector<ValueType>>(this->A->getRowGroupCount());
} }

Loading…
Cancel
Save