Configure Strategic Scenarios – Strategic Routing Scenario Optimization Settings

Route4Me’s Strategic Routing simplifies route planning with complex schedules over long planning periods. You add locations and schedules, configure Strategic Scenarios, and Route4Me automatically plans and optimizes strategic routes according to your preferences. In this guide, you’ll learn how to configure Scenarios when creating Strategic Optimizations using the intuitive configuration wizard or JSON code for in-depth manual settings, compare Scenarios, and more.

NOTE: Please refer to the main Strategic Route Planning guide to learn more about the Strategic Routing process.

 

 

Strategic Scenario Configuration Overview

After importing data and setting departure addresses, you can configure Scenario. The page is divided into three sections:

  1. Wizard: Configure Scenarios using an intuitive interface.
  2. Table: Compare and adjust Scenario settings in a table.
  3. JSON: Manually configure Scenarios using structured JSON code.

Further in this guide, you’ll learn how to pick Scenario settings and use each of the above interface sections.

 

Strategic Routing Scenario Configuration Wizard

The “Configuration” window will automatically open with the “Wizard” tab selected and is divided into the following sections:

  1. Scenarios List: The Scenarios included in the Strategic Optimization.
    You can select Scenarios, add or remove them, and export and import them as JSON code.
  2. Scenario Settings: Scheduling and optimization settings for the selected Scenario.

Each Scenario represents a distinct collection of settings you can learn more about in the table below.

SettingsDescription
Scenario
Scheduler NameName the scheduling scenario so it’s easy to find and reuse when planning cycles.
CyclesHow many complete cycles to execute (cycle = 1 week by default). For example, enter “4” to plan 4 weeks. This determines how far ahead your routing schedule extends.
Cycle LengthLength of each planning cycle in days. The default is 7 days (weekly). Adjust for custom planning periods – use “1” for daily, “14” for bi-weekly, or “30” for monthly cycles. Blackout Days still apply within each cycle.
Schedule
TimezoneThe timezone of your depot, facility, or departure address. Time Windows at customer destinations will use this timezone.
Start DateThe first day of the planning period. The default is the current date (when optimizing). Set to a future date to prepare schedules in advance.
Route Start TimeRoutes will start at the specified time in the corresponding timezone (not your account timezone).
Flexible Start TimeSet an earliest and latest time of day during which routes can start. Flexible Start Time enables optimal Time Windows route planning.
Blackout DaysWeekdays to exclude from route planning, such as non-business days.
Blackout DatesCalendar dates to exclude from route planning, such as bank holidays, facility maintenance dates, etc.
Optimization
Route ConsistencyWhen enabled, the system will prioritize maintaining similar route structures across recurring cycles.
Driver BreaksAutomatically schedule HOS breaks into optimized routes based on time, travel duration, or number of stops with adjustable break duration.
Route EndSelect the final destination type of routes in the scenario. Routes can end at any address for optimal route sequencing, end at the departure address for round trip routing, or end at the last address in the uploaded sequence.
Business RulesInput per-route constraint values such as maximum distance, vehicle capacity, number of destinations, etc. NOTE:Max Route Duration” is required.
Weather AdaptationAutomatically adjust Service Time and Travel Time based on real-time weather conditions along the route.
Traffic AdjustmentSet Service Time and Travel Time Slowdown values to account for heavy traffic, service delays, etc.
Advanced
Virtual Resource ProfilesModel scenario resources using generic profiles defined by skills, instead of assigning specific users.

 

Use the Scenarios List to select and manage Scenarios during configuration. You can click the Three-Dot Icon to:

  • Duplicate: Create a copy of a Scenario with the same settings and schedule rules.
  • Save as Template: Save a Scenario as a template, which can be added as a new Scenario using the “Add from Templates” button.
  • Copy as JSON: Copy a Scenario’s settings and schedule rules to your clipboard as JSON code.
  • Export as JSON: Save a Scenario’s settings and schedule rules as a JSON file.
  • Remove: Delete a Scenario from the list.

The “Add Scenario” button at the bottom of the list enables you to add more Strategic Scenarios to the list.

 

Optionally Export And Import Strategic Scenario Templates

Route4Me enables you to export and import Scenario Settings as JSON templates that can easily be reused as needed. Simply click the “Export as JSON” button in the Scenarios List to download a JSON file with your configured Scenarios.

To export a single Scenario, click the Three-Dot Icon and select “Export as JSON“.

 

Once you’ve saved or exported a template, you can add its Scenarios to your configuration by following these steps:

  1. Click “Add from Templates” in the Scenarios List.
  2. Click “Import JSON“.
    NOTE: If you’ve used the “Save as Template” option, the saved Scenario will automatically be added.
  3. Find and select your previously exported JSON template with the file browser.
  4. Click “Open” to add the Scenarios from the template.

 

Next, you’ll see your “Scenario Templates” in the panel, along with their settings and schedule rules. Click a Scenario to check its settings and click “Select Template” to add the Scenario Templates to the Scenarios List.

The “Add from Templates” panel offers the following options to manage templates:

  1. Three Dot Icon > Export as JSON: Download a JSON file only with the selected Scenario from the template.
  2. Three Dot Icon > Remove: Remove the selected Scenario from the template.
  3. Export as JSON: Export the template as a new JSON file.
  4. Import JSON: Import a template with one or more Scenarios, as described above.

 

Compare Scenarios In The Configurator’s Table View Mode

To easily compare the optimization settings across your Scenarios, click the “Table” tab. The table view maps Scenario settings as data columns, and you can use the “Column Labels” field to swap between field names and internal JSON identifiers.

 

From the “Table” tab, you can adjust individual Scenario settings by clicking the Pencil Icon in the table. You can also click the “Duplicate” button to copy Scenarios or click the Down Arrow to remove Scenarios from the configurator.

 

Manually Input Strategic Scenario Settings In JSON Editor

You can also configure Scenarios in a JSON editor, which you can open by clicking the “JSON”  tab. Use the blue bar above the editor for formatting.

The table below shows a list of configuration parameters for recurring strategic cycle optimization, and you can find a JSON code snippet with the minimal necessary settings under the table.

ConfigurationDescriptionExample Value
route_max_durationMaximum route duration in seconds.28800” (8 hours)
route_dateRoute start date expressed as a UTC unix timestamp in seconds.1893452400” (01.01.2030)
rtRound Trip configuration. Defines whether the route ends at the final destination or returns to the depot.TRUE” or “FALSE
route_timeScheduled route start time relative to “route_date” in seconds.43200” (12PM)
partsLimits the maximum number of routes that can be scheduled on the same day.99
vehicle_capacityMaximum number of units vehicles can carry.99
vehicle_max_distance_miMaximum distance vehicles can travel (in miles) used as a constraint when planning routes.420
vehicle_max_cargo_weightMaximum vehicle weight capacity constraint used for planning routes.450
vehicle_max_cargo_volumeMaximum vehicle cubic volume capacity constraint used for planning routes.1800
max_tour_sizeMaximum number of destinations for routes in a scenario.20
lock_lastDetermines if the final destination on the route will be fixed (same as final destination in the uploaded file).TRUE” or “FALSE
breaksDriver Breaks JSON list. Automatically inserts Break Destinations based on the “mode” value (0: Elapsed Time, 2: travel Time, 3: Locations Visisted) according to the variable parameters (see example).{“mode”: 2,”mode_params”: [3600],”repeats_number”: 1,”duration”: 1800}
advanced_constraintsJSON list which contains advanced route planning constraints values such as “max_capacity“, “max_cargo_weight“, “max_cargo_volume“, “members_count“, “available_time_windows[{“max_capacity”:50,”max_cargo_weight”:7200,”max_cargo_volume”:1000,”}]
balanceJSON object which defines a “mode” for route balancing, currently supports balancing routes based on destination count.{“mode”: “destinations_count”}
subtour_max_revenueMaximum revenue per route in the scenario.1200
slowdownsJSON object which includes Traffic Slowdown configurations (Service Time Slowdown, Travel Time Slowdown).N/A
service_timeService Time Slowdown expressed as a percentage value in the “slowdowns” JSON object.25” (25%)
travel_timeTravel Time Slowdown expressed as a percentage value in the “slowdowns” JSON object.25” (25%)
is_flexible_start_timeDefines whether planned routes will use Flexible Start Time scheduling.true” or “false
flexible_start_timeJSON object which includes the earliest and latest start time values for dynamic route start time scheduling with time windows.N/A
earliest_startEarliest permitted route start time relative to “route_date” in seconds.43200” (12PM)
latest_startLatest permitted route start time relative to “route_date” in seconds.46800” (1PM)
timezoneTime zone for route scheduling set in your Account Settings.America/New York
schedulerJSON object which contains route schedule data.N/A
start_dateCalendar date on which the first strategic cycle is scheduled to begin.2030-07-04
cyclesNumber of planned strategic cycles to optimize routes for.4
blackout_daysDays of the week to omit when creating recurring route cycles.[“sat”, “sun”]
blackout_datesCalendar dates, such as Holidays, to omit from recurring route cycles.[“12-25”, “01-01”]
scheduler_nameCustom name of the configuration with your current settings.Strategic Scheduler
[
 {
  "route_max_duration": 28800,
  "rt": 1,
  "route_time": 43200,
  "parts": 99,
  "slowdowns": {
   "service_time": 10,
   "travel_time": 10
  },
  "is_flexible_start_time": false,
  "timezone": "America/New_York",
  "scheduler": {
   "start_date": "2030-01-01",
   "cycles": 4,
   "blackout_days": [],
   "blackout_dates": []
  },
  "scheduler_name": "Strategic Cycle Planning Configuration",
 }
]

 

Run Strategic Route Optimization With Your Scenario Settings

When you’re done setting up Scenarios, click “Create” to run the optimization and proceed to syncing strategic routes.

You can also copy a pre-formatted, executable request string with your Strategic Optimization setup, including all schedules, scenario settings, and address data by clicking the “Copy cURL” button.

 

Route4Me will automatically use your data and Scenario Settings to create the most optimal draft routes according to your preferences. The Strategic Scenarios and their respective routes will be grouped into a new Strategic Optimization.

The software will automatically use your order and location data and strategic optimization scenario settings to create the most optimal recurring routes according to your preferences.

 

The new Strategic Optimization will open with the “AI Summary” tab selected. You’ll see an automatically generated high-level overview and performance report. It compares draft routes to evaluate Scenario performance and provide suggestions.

From an open Strategic Optimization, you can review its AI Summary, check routing trends, manage Strategic Scenarios and Locations, etc. Learn more about Strategic Optimization Management.

Open Your Strategic Optimizations

Your new Strategic Optimization will automatically open with the AI Summary tab selected.

 

Last Updated:

About author: Kristian Andreev

Kristian AndreevKristian is a Technical Writer at Route4Me. With over a decade of experience in writing and localization, he's an expert at communicating complex technical data in a clear, concise, and user-friendly way. Passionate about bridging the gap between engineers and users, he specializes in creating documentation to streamline onboarding, enhance product usability, and support global teams on the path to success.

Was this article helpful?
Still can't find what you're looking for? Contact us
Route4Me

About Route4Me

Route4Me has over 40,000 customers globally. Route4Me's Android and iPhone mobile apps have been downloaded over 2 million times since 2009. Extremely easy-to-use, Route4Me's apps create optimized routes, synchronize routes to mobile devices, enable communication with drivers and customers, offer turn-by-turn directions, delivery confirmation, and more. Behind the scenes, Route4Me's operational optimization platform combines high-performance algorithms with data science, machine learning, and big data to plan, optimize, and analyze routes of almost any size in real-time.