16storm::pars::scp::ScpOptions
const defaultOptions;
18const std::string trustRegionInitialOption =
"trust-region-initial";
19const std::string trustRegionFactorOption =
"trust-region-factor";
20const std::string trustRegionMaxOption =
"trust-region-max";
21const std::string trustRegionMinExcessOption =
"trust-region-min-excess";
22const std::string maxIterationsOption =
"max-iterations";
23const std::string initialStateBiasOption =
"initial-state-bias";
24const std::string exactOption =
"exact-checks";
25const std::string sumViolationObjectiveOption =
"sum-violation-objective";
32 .setDefaultValueDouble(defaultOptions.trustRegionInitial)
39 .setDefaultValueDouble(defaultOptions.trustRegionFactor)
46 .setDefaultValueDouble(defaultOptions.trustRegionMax)
51 "The termination threshold on (trust region radius - 1); the radius asymptotically approaches 1, never 0")
54 .setDefaultValueDouble(defaultOptions.trustRegionMinExcess)
61 .setDefaultValueInteger(defaultOptions.maxIterations)
66 "The weight of the initial state's value in the LP objective; it breaks ties towards the threshold side")
69 .setDefaultValueDouble(defaultOptions.initialStateBias)
76 "Minimize the sum of per-state constraint violations instead of the default maximum violation")
virtual int_fast64_t getValueAsInteger() const =0
Retrieves the value of this argument as an integer.
virtual double getValueAsDouble() const =0
Retrieves the value of this argument as a double.
static ArgumentBuilder createDoubleArgument(std::string const &name, std::string const &description)
Creates a double argument with the given parameters.
static ArgumentBuilder createIntegerArgument(std::string const &name, std::string const &description)
Creates an integer argument with the given parameters.
static std::shared_ptr< ArgumentValidator< double > > createDoubleGreaterValidator(double lowerBound)
static std::shared_ptr< ArgumentValidator< int64_t > > createIntegerGreaterEqualValidator(int_fast64_t lowerBound)
static std::shared_ptr< ArgumentValidator< double > > createDoubleGreaterEqualValidator(double lowerBound)
This class provides the interface to create an option...
std::shared_ptr< Option > build()
Builds an option from the data that was added to this builder.
ArgumentBase const & getArgumentByName(std::string const &argumentName) const
Returns a reference to the argument with the specified long name.
bool getHasOptionBeenSet() const
Retrieves whether the option has been set.
ModuleSettings(std::string const &moduleName)
Constructs a new settings object.
void addOption(std::shared_ptr< Option > const &option)
Adds and registers the given option.
Option & getOption(std::string const &longName)
Retrieves the option with the given long name.
uint64_t getMaxIterations() const
Retrieves the maximum number of SCP iterations.
double getTrustRegionFactor() const
Retrieves the trust region growth/shrink factor (gamma).
double getInitialStateBias() const
Retrieves the weight of the initial state's value in the LP objective.
bool isSumViolationObjectiveSet() const
Retrieves whether the LP objective should minimize the sum of per-state violations instead of the def...
static const std::string moduleName
double getTrustRegionMinExcess() const
Retrieves the termination threshold on (radius - 1).
double getTrustRegionMax() const
Retrieves the upper cap on the trust region radius.
bool isExactSet() const
Retrieves whether candidate valuations are model-checked with exact (rational) arithmetic instead of ...
double getTrustRegionInitial() const
Retrieves the initial trust region radius (delta_0).