46 oc.
addCallExample(
"-c <CONFIGURATION>",
"run routing with options from file");
70 oc.
addSynonyme(
"ignore-vehicle-type",
"no-vtype",
true);
71 oc.
addDescription(
"ignore-vehicle-type",
"Output",
TL(
"Does not save vtype information"));
74 oc.
addDescription(
"netload-output",
"Output",
TL(
"Writes edge loads and final costs into FILE"));
77 oc.
addDescription(
"all-pairs-output",
"Output",
TL(
"Writes complete distance matrix into FILE"));
81 oc.
addDescription(
"od-matrix-files",
"Input",
TL(
"Loads O/D-files from FILE(s)"));
84 oc.
addSynonyme(
"od-amitran-files",
"amitran-files");
86 oc.
addDescription(
"od-amitran-files",
"Input",
TL(
"Loads O/D-matrix in Amitran format from FILE(s)"));
89 oc.
addDescription(
"tazrelation-files",
"Input",
TL(
"Loads O/D-matrix in tazRelation format from FILE(s)"));
92 oc.
addSynonyme(
"tazrelation-attribute",
"attribute");
93 oc.
addDescription(
"tazrelation-attribute",
"Input",
TL(
"Define data attribute for loading counts (default 'count')"));
96 oc.
addDescription(
"weight-adaption",
"Input",
TL(
"The travel time influence of prior intervals"));
99 oc.
addDescription(
"taz-param",
"Input",
TL(
"Parameter key(s) defining source (and sink) taz"));
102 oc.
addDescription(
"ignore-taz",
"Input",
TL(
"Ignore attributes 'fromTaz' and 'toTaz'"));
106 oc.
addDescription(
"aggregation-interval",
"Processing",
TL(
"Defines the time interval when aggregating single vehicle input; Defaults to one hour"));
109 oc.
addDescription(
"capacities.default",
"Processing",
TL(
"Ignore edge priorities when calculating capacities and restraints"));
112 oc.
addDescription(
"weights.priority-factor",
"Processing",
TL(
"Consider edge priorities in addition to travel times, weighted by factor"));
115 oc.
addDescription(
"bulk-routing.vtypes",
"Processing",
TL(
"Aggregate routing queries with the same origin for different vehicle types"));
118 oc.
addDescription(
"weight-period",
"Processing",
TL(
"Aggregation period for the given weight files; triggers rebuilding of Contraction Hierarchy"));
122 oc.
addSynonyme(
"flow-output.departlane",
"departlane");
123 oc.
addDescription(
"flow-output.departlane",
"Defaults",
TL(
"Assigns a default depart lane"));
126 oc.
addSynonyme(
"flow-output.departpos",
"departpos");
127 oc.
addDescription(
"flow-output.departpos",
"Defaults",
TL(
"Assigns a default depart position"));
130 oc.
addSynonyme(
"flow-output.departspeed",
"departspeed");
131 oc.
addDescription(
"flow-output.departspeed",
"Defaults",
TL(
"Assigns a default depart speed"));
134 oc.
addSynonyme(
"flow-output.arrivallane",
"arrivallane");
135 oc.
addDescription(
"flow-output.arrivallane",
"Defaults",
TL(
"Assigns a default arrival lane"));
138 oc.
addSynonyme(
"flow-output.arrivalpos",
"arrivalpos");
139 oc.
addDescription(
"flow-output.arrivalpos",
"Defaults",
TL(
"Assigns a default arrival position"));
142 oc.
addSynonyme(
"flow-output.arrivalspeed",
"arrivalspeed");
143 oc.
addDescription(
"flow-output.arrivalspeed",
"Defaults",
TL(
"Assigns a default arrival speed"));
153 oc.
addDescription(
"scale",
"Processing",
TL(
"Scales the loaded flows by FLOAT"));
156 oc.
addDescription(
"vtype",
"Processing",
TL(
"Defines the name of the vehicle type to use"));
159 oc.
addDescription(
"prefix",
"Processing",
TL(
"Defines the prefix for vehicle flow names"));
162 oc.
addDescription(
"timeline",
"Processing",
TL(
"Uses STR[] as a timeline definition"));
165 oc.
addDescription(
"timeline.day-in-hours",
"Processing",
TL(
"Uses STR as a 24h-timeline definition"));
168 oc.
addDescription(
"additive-traffic",
"Processing",
TL(
"Keep traffic flows of all time slots in the net"));
172 oc.
addDescription(
"assignment-method",
"Processing",
TL(
"Choose a assignment method: incremental, UE or SUE"));
175 oc.
addDescription(
"tolerance",
"Processing",
TL(
"Use FLOAT as tolerance when checking for SUE stability"));
178 oc.
addDescription(
"left-turn-penalty",
"Processing",
TL(
"Use left-turn penalty FLOAT to calculate link travel time when searching routes"));
181 oc.
addDescription(
"paths",
"Processing",
TL(
"Use INTEGER as the number of paths needed to be searched for each OD pair at each iteration"));
184 oc.
addDescription(
"paths.penalty",
"Processing",
TL(
"Penalize existing routes with FLOAT to find secondary routes"));
188 oc.
addDescription(
"upperbound",
"Processing",
TL(
"Use FLOAT as the upper bound to determine auxiliary link cost"));
192 oc.
addDescription(
"lowerbound",
"Processing",
TL(
"Use FLOAT as the lower bound to determine auxiliary link cost"));
195 oc.
addDescription(
"max-iterations",
"Processing",
TL(
"maximal number of iterations for new route searching in incremental and stochastic user assignment"));
198 oc.
addDescription(
"max-inner-iterations",
"Processing",
TL(
"maximal number of inner iterations for user equilibrium calculation in the stochastic user assignment"));
202 oc.
addDescription(
"route-choice-method",
"Processing",
TL(
"Choose a route choice method: gawron, logit, or lohse"));
206 oc.
addDescription(
"gawron.beta",
"Processing",
TL(
"Use FLOAT as Gawron's beta"));
213 oc.
addDescription(
"exit-times",
"Output",
TL(
"Write exit times (weights) for each edge"));
216 oc.
addDescription(
"keep-all-routes",
"Processing",
TL(
"Save routes with near zero probability"));
219 oc.
addDescription(
"skip-new-routes",
"Processing",
TL(
"Only reuse routes from input, do not calculate new ones"));
223 oc.
addDescription(
"logit.beta",
"Processing",
TL(
"Use FLOAT as (c-)logit's beta for the commonality factor"));
227 oc.
addDescription(
"logit.gamma",
"Processing",
TL(
"Use FLOAT as (c-)logit's gamma for the commonality factor"));
231 oc.
addDescription(
"logit.theta",
"Processing",
TL(
"Use FLOAT as (c-)logit's theta"));
238 if (oc.
isSet(
"assignment-method") && oc.
getString(
"assignment-method") !=
"incremental" && oc.
getString(
"assignment-method") !=
"UE" && oc.
getString(
"assignment-method") !=
"SUE") {
242 if (oc.
getString(
"route-choice-method") !=
"gawron" && oc.
getString(
"route-choice-method") !=
"logit" && oc.
getString(
"route-choice-method") !=
"lohse") {
246 if (oc.
getInt(
"paths") > 1 && (oc.
getString(
"routing-algorithm") ==
"CH" || oc.
getString(
"routing-algorithm") ==
"CHWrapper")) {
247 WRITE_WARNING(
TL(
"Contraction hierarchies do not work with k shortest path search (please use a different routing algorithm)!"));
#define WRITE_ERRORF(...)
#define WRITE_WARNING(msg)
A storage for options typed value containers)
void addDescription(const std::string &name, const std::string &subtopic, const std::string &description)
Adds a description for an option.
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.
int getInt(const std::string &name) const
Returns the int-value of the named option (only for Option_Integer)
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
void addSynonyme(const std::string &name1, const std::string &name2, bool isDeprecated=false)
Adds a synonyme for an options name (any order)
void doRegister(const std::string &name, Option *o)
Adds an option under the given name.
void addOptionSubTopic(const std::string &topic)
Adds an option subtopic.
static OptionsCont & getOptions()
Retrieves the options.
void addCallExample(const std::string &example, const std::string &desc)
Add a call example.
static void fillOptions(OptionsCont &oc, const bool isDUA=false, const bool isMA=false)
Inserts options used by routing applications into the OptionsCont-singleton.
static void fillOptions()
Inserts options used by duarouter into the OptionsCont-singleton.
static void addImportOptions()
Inserts import options used by duarouter into the OptionsCont-singleton.
static bool checkOptions()
Checks set options from the OptionsCont-singleton for being valid for usage within duarouter.
static void addAssignmentOptions()
Inserts dua options used by duarouter into the OptionsCont-singleton.
static void insertRandOptions(OptionsCont &oc)
Initialises the given options container with random number options.
static void addConfigurationOptions(OptionsCont &oc)
Adds configuration options to the given container.