Browse Source

removed unused option

tempestpy_adaptions
TimQu 7 years ago
parent
commit
f2289a3b87
  1. 20
      src/storm/environment/solver/MinMaxSolverEnvironment.cpp
  2. 6
      src/storm/environment/solver/MinMaxSolverEnvironment.h
  3. 13
      src/storm/settings/modules/MinMaxEquationSolverSettings.cpp
  4. 10
      src/storm/settings/modules/MinMaxEquationSolverSettings.h

20
src/storm/environment/solver/MinMaxSolverEnvironment.cpp

@ -19,8 +19,6 @@ namespace storm {
multiplicationStyle = minMaxSettings.getValueIterationMultiplicationStyle();
forceBounds = minMaxSettings.isForceBoundsSet();
symmetricUpdates = minMaxSettings.isForceIntervalIterationSymmetricUpdatesSet();
qviRestartThreshold = minMaxSettings.getQviRestartThreshold();
qviRestartMaxIterations = minMaxSettings.getQviRestartMaxIterations();
}
MinMaxSolverEnvironment::~MinMaxSolverEnvironment() {
@ -88,22 +86,4 @@ namespace storm {
symmetricUpdates = value;
}
storm::RationalNumber MinMaxSolverEnvironment::getQviRestartThreshold() const {
return qviRestartThreshold;
}
void MinMaxSolverEnvironment::setQviRestartThreshold(storm::RationalNumber value) {
qviRestartThreshold = value;
}
uint64_t MinMaxSolverEnvironment::getQviRestartMaxIterations() const {
return qviRestartMaxIterations;
}
void MinMaxSolverEnvironment::setQviRestartMaxIterations(uint64_t value) {
qviRestartMaxIterations = value;
}
}

6
src/storm/environment/solver/MinMaxSolverEnvironment.h

@ -29,10 +29,6 @@ namespace storm {
void setForceBounds(bool value);
bool isSymmetricUpdatesSet() const;
void setSymmetricUpdates(bool value);
storm::RationalNumber getQviRestartThreshold() const;
void setQviRestartThreshold(storm::RationalNumber value);
uint64_t getQviRestartMaxIterations() const;
void setQviRestartMaxIterations(uint64_t value);
private:
storm::solver::MinMaxMethod minMaxMethod;
@ -43,8 +39,6 @@ namespace storm {
storm::solver::MultiplicationStyle multiplicationStyle;
bool forceBounds;
bool symmetricUpdates;
storm::RationalNumber qviRestartThreshold;
uint64_t qviRestartMaxIterations;
};
}

13
src/storm/settings/modules/MinMaxEquationSolverSettings.cpp

@ -21,7 +21,6 @@ namespace storm {
const std::string MinMaxEquationSolverSettings::valueIterationMultiplicationStyleOptionName = "vimult";
const std::string MinMaxEquationSolverSettings::intervalIterationSymmetricUpdatesOptionName = "symmetricupdates";
const std::string MinMaxEquationSolverSettings::forceBoundsOptionName = "forcebounds";
const std::string MinMaxEquationSolverSettings::quickValueIterationRestartOptionName = "qvirestart";
MinMaxEquationSolverSettings::MinMaxEquationSolverSettings() : ModuleSettings(moduleName) {
std::vector<std::string> minMaxSolvingTechniques = {"vi", "value-iteration", "pi", "policy-iteration", "linear-programming", "lp", "ratsearch", "qvi", "quick-value-iteration", "topological"};
@ -46,9 +45,6 @@ namespace storm {
this->addOption(storm::settings::OptionBuilder(moduleName, forceBoundsOptionName, false, "If set, minmax solver always require that a priori bounds for the solution are computed.").build());
this->addOption(storm::settings::OptionBuilder(moduleName, quickValueIterationRestartOptionName, false, "Controls when a restart of quick value iteration is triggered.")
.addArgument(storm::settings::ArgumentBuilder::createDoubleArgument("threshold", "The minimal (relative) bound improvement that triggers a restart").addValidatorDouble(ArgumentValidatorFactory::createDoubleRangeValidatorIncluding(0.0, 1.0)).setDefaultValueDouble(0.5).build())
.addArgument(storm::settings::ArgumentBuilder::createUnsignedIntegerArgument("maxiters", "The maximal number of iterations within which a restart can be triggered.").setDefaultValueUnsignedInteger(300).build()).build());
}
storm::solver::MinMaxMethod MinMaxEquationSolverSettings::getMinMaxEquationSolvingMethod() const {
@ -128,15 +124,6 @@ namespace storm {
bool MinMaxEquationSolverSettings::isForceBoundsSet() const {
return this->getOption(forceBoundsOptionName).getHasOptionBeenSet();
}
double MinMaxEquationSolverSettings::getQviRestartThreshold() const {
return this->getOption(quickValueIterationRestartOptionName).getArgumentByName("threshold").getValueAsDouble();
}
uint_fast64_t MinMaxEquationSolverSettings::getQviRestartMaxIterations() const {
return this->getOption(quickValueIterationRestartOptionName).getArgumentByName("maxiters").getValueAsUnsignedInteger();
}
}
}
}

10
src/storm/settings/modules/MinMaxEquationSolverSettings.h

@ -107,16 +107,6 @@ namespace storm {
*/
bool isForceBoundsSet() const;
/*!
* Retrieves the restart threshold for quick value iteration
*/
double getQviRestartThreshold() const;
/*!
* Retrieves the maximal number of iterations within which a restart of quick value iteration can be triggered.
*/
uint_fast64_t getQviRestartMaxIterations() const;
// The name of the module.
static const std::string moduleName;

Loading…
Cancel
Save