Options module¶
Reference to the options.py module.
options
¶
Options for working with the Nextroute engine.
Verbosity
¶
Bases: str, Enum
Format of an Input.
MEDIUM
class-attribute
instance-attribute
¶
Medium verbosity for the check engine.
Options
¶
Bases: BaseModel
Options for using Nextroute.
CHECK_DURATION
class-attribute
instance-attribute
¶
Maximum duration of the check, in seconds.
CHECK_VERBOSITY
class-attribute
instance-attribute
¶
Verbosity of the check engine.
FORMAT_DISABLE_PROGRESSION
class-attribute
instance-attribute
¶
Whether to disable the progression series.
MODEL_CONSTRAINTS_DISABLE_ATTRIBUTES
class-attribute
instance-attribute
¶
Ignore the compatibility attributes constraint.
MODEL_CONSTRAINTS_DISABLE_CAPACITIES
class-attribute
instance-attribute
¶
Ignore the capacity constraint for the given resource names.
MODEL_CONSTRAINTS_DISABLE_CAPACITY
class-attribute
instance-attribute
¶
Ignore the capacity constraint for all resources.
MODEL_CONSTRAINTS_DISABLE_DISTANCELIMIT
class-attribute
instance-attribute
¶
Ignore the distance limit constraint.
MODEL_CONSTRAINTS_DISABLE_GROUPS
class-attribute
instance-attribute
¶
Ignore the groups constraint.
MODEL_CONSTRAINTS_DISABLE_MAXIMUMDURATION
class-attribute
instance-attribute
¶
Ignore the maximum duration constraint.
MODEL_CONSTRAINTS_DISABLE_MAXIMUMSTOPS
class-attribute
instance-attribute
¶
Ignore the maximum stops constraint.
MODEL_CONSTRAINTS_DISABLE_MAXIMUMWAITSTOP
class-attribute
instance-attribute
¶
Ignore the maximum stop wait constraint.
MODEL_CONSTRAINTS_DISABLE_MAXIMUMWAITVEHICLE
class-attribute
instance-attribute
¶
Ignore the maximum vehicle wait constraint.
MODEL_CONSTRAINTS_DISABLE_MIXINGITEMS
class-attribute
instance-attribute
¶
Ignore the do not mix items constraint.
MODEL_CONSTRAINTS_DISABLE_PRECEDENCE
class-attribute
instance-attribute
¶
Ignore the precedence (pickups & deliveries) constraint.
MODEL_CONSTRAINTS_DISABLE_STARTTIMEWINDOWS
class-attribute
instance-attribute
¶
Ignore the start time windows constraint.
MODEL_CONSTRAINTS_DISABLE_VEHICLEENDTIME
class-attribute
instance-attribute
¶
Ignore the vehicle end time constraint.
MODEL_CONSTRAINTS_DISABLE_VEHICLESTARTTIME
class-attribute
instance-attribute
¶
Ignore the vehicle start time constraint.
MODEL_CONSTRAINTS_ENABLE_CLUSTER
class-attribute
instance-attribute
¶
Enable the cluster constraint.
MODEL_OBJECTIVES_CAPACITIES
class-attribute
instance-attribute
¶
Capacity objective, provide triple for each resource
name=default;factor=1.0;offset=0.0.
MODEL_OBJECTIVES_CLUSTER
class-attribute
instance-attribute
¶
Factor to weigh the cluster objective.
MODEL_OBJECTIVES_DISTANCE
class-attribute
instance-attribute
¶
Factor to weigh the distance objective.
MODEL_OBJECTIVES_EARLYARRIVALPENALTY
class-attribute
instance-attribute
¶
Factor to weigh the early arrival objective.
MODEL_OBJECTIVES_LATEARRIVALPENALTY
class-attribute
instance-attribute
¶
Factor to weigh the late arrival objective.
MODEL_OBJECTIVES_MINSTOPS
class-attribute
instance-attribute
¶
Factor to weigh the min stops objective.
MODEL_OBJECTIVES_STOPBALANCE
class-attribute
instance-attribute
¶
Factor to weigh the stop balance objective.
MODEL_OBJECTIVES_TRAVELDURATION
class-attribute
instance-attribute
¶
Factor to weigh the travel duration objective.
MODEL_OBJECTIVES_UNPLANNEDPENALTY
class-attribute
instance-attribute
¶
Factor to weigh the unplanned objective.
MODEL_OBJECTIVES_VEHICLEACTIVATIONPENALTY
class-attribute
instance-attribute
¶
Factor to weigh the vehicle activation objective.
MODEL_OBJECTIVES_VEHICLESDURATION
class-attribute
instance-attribute
¶
Factor to weigh the vehicles duration objective.
MODEL_PROPERTIES_DISABLE_DURATIONGROUPS
class-attribute
instance-attribute
¶
Ignore the durations groups of stops.
MODEL_PROPERTIES_DISABLE_DURATIONS
class-attribute
instance-attribute
¶
Ignore the durations of stops.
MODEL_PROPERTIES_DISABLE_INITIALSOLUTION
class-attribute
instance-attribute
¶
Ignore the initial solution.
MODEL_PROPERTIES_DISABLE_STOPDURATIONMULTIPLIERS
class-attribute
instance-attribute
¶
Ignore the stop duration multipliers defined on vehicles.
MODEL_PROPERTIES_MAXIMUMTIMEHORIZON
class-attribute
instance-attribute
¶
Maximum time horizon for the model in seconds.
MODEL_VALIDATE_DISABLE_RESOURCES
class-attribute
instance-attribute
¶
Disable the resources validation.
MODEL_VALIDATE_DISABLE_STARTTIME
class-attribute
instance-attribute
¶
Disable the start time validation.
MODEL_VALIDATE_ENABLE_MATRIX
class-attribute
instance-attribute
¶
Enable matrix validation.
MODEL_VALIDATE_ENABLE_MATRIXASYMMETRYTOLERANCE
class-attribute
instance-attribute
¶
Percentage of acceptable matrix asymmetry, requires matrix validation enabled.
SOLVE_DURATION
class-attribute
instance-attribute
¶
Maximum duration, in seconds, of the solver.
SOLVE_ITERATIONS
class-attribute
instance-attribute
¶
Maximum number of iterations, -1 assumes no limit; iterations are counted after start solutions are generated.
SOLVE_PARALLELRUNS
class-attribute
instance-attribute
¶
Maximum number of parallel runs, -1 results in using all available resources.
SOLVE_PLATEAU_DELAY
class-attribute
instance-attribute
¶
Delay before starting to monitor for a plateau.
SOLVE_PLATEAU_ABSOLUTETHRESHOLD
class-attribute
instance-attribute
¶
Absolute threshold for significant improvement.
SOLVE_PLATEAU_DURATION
class-attribute
instance-attribute
¶
Maximum duration, in seconds, without (significant) improvement.
SOLVE_PLATEAU_ITERATIONS
class-attribute
instance-attribute
¶
Maximum number of iterations without (significant) improvement.
SOLVE_PLATEAU_RELATIVETHRESHOLD
class-attribute
instance-attribute
¶
Relative threshold for significant improvement.
SOLVE_RUNDETERMINISTICALLY
class-attribute
instance-attribute
¶
Run the parallel solver deterministically.
SOLVE_SOLVER_PLANGROUPSIZE_DELTA
class-attribute
instance-attribute
¶
Delta for the plan group size parameter.
SOLVE_SOLVER_PLANGROUPSIZE_DELTAAFTERITERATIONS
class-attribute
instance-attribute
¶
Delta after each iteration for the plan group size parameter.
SOLVE_SOLVER_PLANGROUPSIZE_MAXVALUE
class-attribute
instance-attribute
¶
Maximum value for the plan group size parameter.
SOLVE_SOLVER_PLANGROUPSIZE_MINVALUE
class-attribute
instance-attribute
¶
Minimum value for the plan group size parameter.
SOLVE_SOLVER_PLANGROUPSIZE_SNAPBACKAFTERIMPROVEMENT
class-attribute
instance-attribute
¶
Snap back to start value after improvement of best solution for the plan group size parameter.
SOLVE_SOLVER_PLANGROUPSIZE_STARTVALUE
class-attribute
instance-attribute
¶
Start value for the plan group size parameter.
SOLVE_SOLVER_PLANGROUPSIZE_ZIGZAG
class-attribute
instance-attribute
¶
Zigzag between min and max value like a jig saw for the plan group size parameter.
SOLVE_SOLVER_UNPLANUNITS_DELTA
class-attribute
instance-attribute
¶
Delta for the unplan units parameter.
SOLVE_SOLVER_UNPLANUNITS_DELTAAFTERITERATIONS
class-attribute
instance-attribute
¶
Delta after each iteration for the unplan units parameter.
SOLVE_SOLVER_UNPLANUNITS_MAXVALUE
class-attribute
instance-attribute
¶
Maximum value for the unplan units parameter.
SOLVE_SOLVER_UNPLANUNITS_MINVALUE
class-attribute
instance-attribute
¶
Minimum value for the unplan units parameter.
SOLVE_SOLVER_UNPLANUNITS_SNAPBACKAFTERIMPROVEMENT
class-attribute
instance-attribute
¶
Snap back to start value after improvement of best solution for the unplan units parameter.
SOLVE_SOLVER_UNPLANUNITS_STARTVALUE
class-attribute
instance-attribute
¶
Start value for the unplan units parameter.
SOLVE_SOLVER_UNPLANUNITS_ZIGZAG
class-attribute
instance-attribute
¶
Zigzag between min and max value like a jig saw for the unplan units parameter.
SOLVE_SOLVER_UNPLANWEIGHTS
class-attribute
instance-attribute
¶
Unplan heuristic weights parameter.
SOLVE_STARTSOLUTIONS
class-attribute
instance-attribute
¶
Number of solutions to generate on top of those passed in; one solution generated with sweep algorithm, the rest generated randomly.
to_args
¶
Convert the options to command-line arguments.
| RETURNS | DESCRIPTION |
|---|---|
List[str]
|
The flattened options as a list of strings. |
Source code in nextroute/src/nextroute/options.py
extract_from_dict
classmethod
¶
Extracts options from a dictionary. This dictionary may contain more keys that are not part of the Nextroute options.
| PARAMETER | DESCRIPTION |
|---|---|
|
The dictionary to extract options from.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Options
|
The Nextroute options. |