---
metadata:
  - name: generator
    content: Diplodoc Platform v5.19.6
alternate:
  - https://docs.routeq.com/doc/en/vrp/properties-of-vehicles-routes.md
  - https://docs.routeq.com/doc/tr/vrp/properties-of-vehicles-routes.md
title: RouteQ — vehicle properties — routes, runs, shifts
---
> **Documentation Index:** Fetch the complete configuration index at https://docs.routeq.com/doc/en/llms.txt


# Courier shifts and routes

With vehicle properties, you can configure [courier shifts](#shifts), their [maximum duration](#shift-duration), the [number of runs](#vehicle-max-runs) and [stops](#shift-stops), set the [maximum mileage](#shift-mileage), and specify [restrictions for routes](#route-proximity).

## Vehicle or courier shifts  {#shifts}

You can define one or more work shifts for a vehicle. Use the `vehicle.shifts` field to define the shifts.

A shift is a time range when the vehicle is allowed to operate. Shift time includes the loading time at the depot, travel time, and handling time at order locations, as well as unloading time at the depot (if the vehicle returns to the depot).

To use one or more shifts in Excel, define the following fields:

- `shifts.0.time_window`: A [soft time window](https://docs.routeq.com/doc/en/vrp/properties-of-time-window.md) corresponding to the vehicle's operating hours.

- `shifts.0.hard_window`: Flag indicating a [hard time window](https://docs.routeq.com/doc/en/vrp/properties-of-time-window.md#hard-and-soft-windows). If the time window is hard, the algorithm can't go outside the specified interval.

- `shifts.0.service_duration_s`: Time between shifts (in seconds). For example, it can be the time needed to replace the driver or exchange documents.

You can also restrict the [maximum shift duration](#shift-duration) (`shifts.N.max_duration_s` and `shifts.N.hard_max_duration_s`).

In the case of a **soft** time window, you can set additional penalties:

- For time window violation:
    - `shifts.0.penalty.out_of_time.fixed`: A fixed penalty for one-time violation of the shift's time window.
    - `shifts.0.penalty.out_of_time.minute`: A penalty per minute of the shift's time window violation.

- For early departure:
    - `shifts.0.penalty.early.fixed`: A fixed penalty for one-time start of work before the shift's time window.
    - `shifts.0.penalty.early.minute`: A penalty per minute of work start before the shift's time window.

- For late arrival:
    - `shifts.0.penalty.late.fixed`: A fixed penalty for one-time work completion later than the shift's time window.
    - `shifts.0.penalty.late.minute`: A penalty per minute of work end after the shift's time window.


To limit permissible violations of the shift's time window, you can set a [hard window around a soft one](https://docs.routeq.com/doc/en/vrp/properties-of-time-window.md#soft-inside-hard).

### Start, end, and duration of shift {#start-duration-end}

Let's say a shift's `time_window` is from 9:00 to 18:00. The properties used are hard time window (`hard_window`), maximum shift duration (`max_duration_s`), and [flexible start time from the depot](https://docs.routeq.com/doc/en/vrp/properties-of-depot.md#depot-flexible-start-time) (`depot.flexible_start_time`).

#|
|| **How to plan courier's work** | **Parameters** ||

||
Set a work interval that will **preferably** last no longer than 6 hours, **strictly** between 9:00 and 18:00<br/><br/>
<svg width="165" height="56" viewBox="0 0 165 56" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.3125 35.5L150.125 35.5" stroke="#4FA6D5"/><line x1="28.125" y1="35.5" x2="28.125" y2="39.5" stroke="#4FA6D5"/><line x1="11.8124" y1="0.5" x2="11.8124" y2="39.5" stroke="#4FA6D5"/><line x1="150.625" y1="0.5" x2="150.625" y2="39.5" stroke="#4FA6D5"/><line x1="43.4375" y1="35.5" x2="43.4375" y2="39.5" stroke="#4FA6D5"/><line x1="58.7499" y1="35.5" x2="58.7499" y2="39.5" stroke="#4FA6D5"/><line x1="74.0624" y1="35.5" x2="74.0624" y2="39.5" stroke="#4FA6D5"/><line x1="89.3749" y1="35.5" x2="89.3749" y2="39.5" stroke="#4FA6D5"/><line x1="104.687" y1="35.5" x2="104.687" y2="39.5" stroke="#4FA6D5"/><line x1="120" y1="35.5" x2="120" y2="39.5" stroke="#4FA6D5"/><line x1="135.312" y1="35.5" x2="135.312" y2="39.5" stroke="#4FA6D5"/><path d="M1.4988 47.72C1.4988 47.1773 1.61246 46.7043 1.8398 46.301C2.06713 45.8903 2.37513 45.5713 2.7638 45.344C3.15246 45.1167 3.5888 45.003 4.0728 45.003C4.92346 45.003 5.5798 45.2927 6.0418 45.872C6.51113 46.4513 6.7458 47.302 6.7458 48.424C6.7458 49.3627 6.63946 50.184 6.4268 50.888C6.21413 51.592 5.8768 52.1383 5.4148 52.527C4.9528 52.9157 4.3588 53.11 3.6328 53.11C2.96546 53.11 2.41546 52.978 1.9828 52.714V52.142C2.43013 52.4353 2.9728 52.582 3.6108 52.582C4.16813 52.582 4.61913 52.428 4.9638 52.12C5.3158 51.812 5.5798 51.3867 5.7558 50.844C5.9318 50.3013 6.03446 49.678 6.0638 48.974C5.8658 49.414 5.58713 49.7477 5.2278 49.975C4.8758 50.195 4.4688 50.305 4.0068 50.305C3.53746 50.305 3.11213 50.2023 2.7308 49.997C2.34946 49.7843 2.0488 49.4873 1.8288 49.106C1.6088 48.7173 1.4988 48.2553 1.4988 47.72ZM4.0948 45.542C3.75746 45.542 3.4458 45.6263 3.1598 45.795C2.88113 45.9563 2.65746 46.1983 2.4888 46.521C2.32746 46.8363 2.2468 47.2177 2.2468 47.665C2.2468 48.1123 2.32746 48.4937 2.4888 48.809C2.65013 49.117 2.86646 49.3553 3.1378 49.524C3.40913 49.6853 3.70246 49.766 4.0178 49.766C4.37713 49.766 4.6998 49.6853 4.9858 49.524C5.2718 49.3553 5.49546 49.1133 5.6568 48.798C5.82546 48.4827 5.9098 48.1013 5.9098 47.654C5.9098 47.016 5.7448 46.5063 5.4148 46.125C5.09213 45.7363 4.65213 45.542 4.0948 45.542ZM8.72365 47.621C8.56965 47.621 8.44132 47.5733 8.33865 47.478C8.24332 47.3753 8.19565 47.2543 8.19565 47.115C8.19565 46.9683 8.24332 46.8473 8.33865 46.752C8.44132 46.6567 8.56965 46.609 8.72365 46.609C8.87032 46.609 8.99132 46.6567 9.08665 46.752C9.18932 46.8473 9.24065 46.9683 9.24065 47.115C9.24065 47.2543 9.18932 47.3753 9.08665 47.478C8.99132 47.5733 8.87032 47.621 8.72365 47.621ZM8.72365 51.845C8.56965 51.845 8.44132 51.7973 8.33865 51.702C8.24332 51.5993 8.19565 51.4747 8.19565 51.328C8.19565 51.1813 8.24332 51.0603 8.33865 50.965C8.44132 50.8697 8.56965 50.822 8.72365 50.822C8.87032 50.822 8.99132 50.8697 9.08665 50.965C9.18932 51.0603 9.24065 51.1813 9.24065 51.328C9.24065 51.4747 9.18932 51.5993 9.08665 51.702C8.99132 51.7973 8.87032 51.845 8.72365 51.845ZM13.4735 53.11C12.9602 53.11 12.5055 52.9633 12.1095 52.67C11.7208 52.3767 11.4165 51.9293 11.1965 51.328C10.9765 50.7267 10.8665 49.9677 10.8665 49.051C10.8665 48.127 10.9765 47.368 11.1965 46.774C11.4165 46.18 11.7208 45.74 12.1095 45.454C12.5055 45.1607 12.9602 45.014 13.4735 45.014C14.2508 45.014 14.8742 45.3403 15.3435 45.993C15.8202 46.6383 16.0585 47.6503 16.0585 49.029C16.0585 50.4003 15.8202 51.4233 15.3435 52.098C14.8742 52.7727 14.2508 53.11 13.4735 53.11ZM13.4625 52.582C14.0492 52.582 14.5075 52.3033 14.8375 51.746C15.1675 51.1887 15.3325 50.294 15.3325 49.062C15.3325 47.83 15.1712 46.939 14.8485 46.389C14.5258 45.8317 14.0675 45.553 13.4735 45.553C12.8795 45.553 12.4175 45.8317 12.0875 46.389C11.7575 46.939 11.5925 47.83 11.5925 49.062C11.5925 50.294 11.7575 51.1887 12.0875 51.746C12.4175 52.3033 12.8758 52.582 13.4625 52.582ZM19.5214 53.11C19.008 53.11 18.5534 52.9633 18.1574 52.67C17.7687 52.3767 17.4644 51.9293 17.2444 51.328C17.0244 50.7267 16.9144 49.9677 16.9144 49.051C16.9144 48.127 17.0244 47.368 17.2444 46.774C17.4644 46.18 17.7687 45.74 18.1574 45.454C18.5534 45.1607 19.008 45.014 19.5214 45.014C20.2987 45.014 20.922 45.3403 21.3914 45.993C21.868 46.6383 22.1064 47.6503 22.1064 49.029C22.1064 50.4003 21.868 51.4233 21.3914 52.098C20.922 52.7727 20.2987 53.11 19.5214 53.11ZM19.5104 52.582C20.097 52.582 20.5554 52.3033 20.8854 51.746C21.2154 51.1887 21.3804 50.294 21.3804 49.062C21.3804 47.83 21.219 46.939 20.8964 46.389C20.5737 45.8317 20.1154 45.553 19.5214 45.553C18.9274 45.553 18.4654 45.8317 18.1354 46.389C17.8054 46.939 17.6404 47.83 17.6404 49.062C17.6404 50.294 17.8054 51.1887 18.1354 51.746C18.4654 52.3033 18.9237 52.582 19.5104 52.582Z" fill="black"/><path d="M140.428 53H139.702V45.993L137.326 47.764V46.972L139.823 45.113H140.428V53ZM145.475 53.11C144.969 53.11 144.518 53.022 144.122 52.846C143.734 52.67 143.426 52.417 143.198 52.087C142.971 51.7497 142.857 51.3463 142.857 50.877C142.857 50.3417 143.015 49.8943 143.33 49.535C143.653 49.1757 144.075 48.9337 144.595 48.809C144.17 48.6917 143.822 48.4827 143.55 48.182C143.279 47.8813 143.143 47.4963 143.143 47.027C143.143 46.5943 143.246 46.2277 143.451 45.927C143.657 45.6263 143.935 45.399 144.287 45.245C144.639 45.091 145.035 45.014 145.475 45.014C145.915 45.014 146.311 45.091 146.663 45.245C147.015 45.3917 147.294 45.6117 147.499 45.905C147.705 46.1983 147.807 46.565 147.807 47.005C147.807 47.4817 147.672 47.8703 147.4 48.171C147.129 48.4717 146.784 48.6807 146.366 48.798C146.872 48.9227 147.279 49.1573 147.587 49.502C147.903 49.8467 148.06 50.294 148.06 50.844C148.06 51.3133 147.947 51.7203 147.719 52.065C147.492 52.4023 147.184 52.6627 146.795 52.846C146.407 53.022 145.967 53.11 145.475 53.11ZM145.475 48.534C145.923 48.534 146.304 48.4093 146.619 48.16C146.942 47.9107 147.103 47.5513 147.103 47.082C147.103 46.5907 146.949 46.213 146.641 45.949C146.333 45.685 145.945 45.553 145.475 45.553C145.013 45.553 144.625 45.685 144.309 45.949C144.001 46.213 143.847 46.5907 143.847 47.082C143.847 47.39 143.921 47.654 144.067 47.874C144.221 48.0867 144.419 48.2517 144.661 48.369C144.911 48.479 145.182 48.534 145.475 48.534ZM145.475 52.582C146.018 52.582 146.465 52.4207 146.817 52.098C147.169 51.7753 147.345 51.3427 147.345 50.8C147.345 50.4333 147.261 50.1217 147.092 49.865C146.931 49.6083 146.707 49.4103 146.421 49.271C146.143 49.1317 145.827 49.062 145.475 49.062C144.933 49.062 144.482 49.216 144.122 49.524C143.763 49.8247 143.583 50.25 143.583 50.8C143.583 51.3427 143.759 51.7753 144.111 52.098C144.471 52.4207 144.925 52.582 145.475 52.582ZM150.06 47.621C149.906 47.621 149.778 47.5733 149.675 47.478C149.58 47.3753 149.532 47.2543 149.532 47.115C149.532 46.9683 149.58 46.8473 149.675 46.752C149.778 46.6567 149.906 46.609 150.06 46.609C150.207 46.609 150.328 46.6567 150.423 46.752C150.526 46.8473 150.577 46.9683 150.577 47.115C150.577 47.2543 150.526 47.3753 150.423 47.478C150.328 47.5733 150.207 47.621 150.06 47.621ZM150.06 51.845C149.906 51.845 149.778 51.7973 149.675 51.702C149.58 51.5993 149.532 51.4747 149.532 51.328C149.532 51.1813 149.58 51.0603 149.675 50.965C149.778 50.8697 149.906 50.822 150.06 50.822C150.207 50.822 150.328 50.8697 150.423 50.965C150.526 51.0603 150.577 51.1813 150.577 51.328C150.577 51.4747 150.526 51.5993 150.423 51.702C150.328 51.7973 150.207 51.845 150.06 51.845ZM154.81 53.11C154.297 53.11 153.842 52.9633 153.446 52.67C153.057 52.3767 152.753 51.9293 152.533 51.328C152.313 50.7267 152.203 49.9677 152.203 49.051C152.203 48.127 152.313 47.368 152.533 46.774C152.753 46.18 153.057 45.74 153.446 45.454C153.842 45.1607 154.297 45.014 154.81 45.014C155.587 45.014 156.211 45.3403 156.68 45.993C157.157 46.6383 157.395 47.6503 157.395 49.029C157.395 50.4003 157.157 51.4233 156.68 52.098C156.211 52.7727 155.587 53.11 154.81 53.11ZM154.799 52.582C155.386 52.582 155.844 52.3033 156.174 51.746C156.504 51.1887 156.669 50.294 156.669 49.062C156.669 47.83 156.508 46.939 156.185 46.389C155.862 45.8317 155.404 45.553 154.81 45.553C154.216 45.553 153.754 45.8317 153.424 46.389C153.094 46.939 152.929 47.83 152.929 49.062C152.929 50.294 153.094 51.1887 153.424 51.746C153.754 52.3033 154.212 52.582 154.799 52.582ZM160.858 53.11C160.344 53.11 159.89 52.9633 159.494 52.67C159.105 52.3767 158.801 51.9293 158.581 51.328C158.361 50.7267 158.251 49.9677 158.251 49.051C158.251 48.127 158.361 47.368 158.581 46.774C158.801 46.18 159.105 45.74 159.494 45.454C159.89 45.1607 160.344 45.014 160.858 45.014C161.635 45.014 162.258 45.3403 162.728 45.993C163.204 46.6383 163.443 47.6503 163.443 49.029C163.443 50.4003 163.204 51.4233 162.728 52.098C162.258 52.7727 161.635 53.11 160.858 53.11ZM160.847 52.582C161.433 52.582 161.892 52.3033 162.222 51.746C162.552 51.1887 162.717 50.294 162.717 49.062C162.717 47.83 162.555 46.939 162.233 46.389C161.91 45.8317 161.452 45.553 160.858 45.553C160.264 45.553 159.802 45.8317 159.472 46.389C159.142 46.939 158.977 47.83 158.977 49.062C158.977 50.294 159.142 51.1887 159.472 51.746C159.802 52.3033 160.26 52.582 160.847 52.582Z" fill="black"/><rect x="34.125" y="7.5" width="94.1875" height="24" fill="#4FA6D5"/><path d="M34.125 19.5L29.125 16.6132L29.125 22.3868L34.125 19.5ZM12.3125 19.5L17.3125 22.3867L17.3125 16.6132L12.3125 19.5ZM29.625 19L16.8125 19L16.8125 20L29.625 20L29.625 19Z" fill="#4FA6D5"/><path d="M150.625 19.5L145.625 16.6132L145.625 22.3868L150.625 19.5ZM128.812 19.5L133.812 22.3867L133.813 16.6132L128.812 19.5ZM146.125 19L133.313 19L133.312 20L146.125 20L146.125 19Z" fill="#4FA6D5"/></svg>
|
 `hard_window` = `true`<br/><br/>
 `max_duration_s` = 6 hours (less than the shift window)<br/><br/>
 `flexible_start_time` = `true` ||

||
Start the work **strictly** at 9:00, **preferably** end it before 15:00 and **strictly** not later than 18:00 (this parameter combination corresponds to `time_window` = `9:00 – 15:00`, `hard_time_window` = `9:00 – 18:00`, `flexible_start_time` = `false`)<br/><br/>
<svg width="165" height="55" viewBox="0 0 165 55" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.3125 34.5L151.125 34.5" stroke="#4FA6D5"/><line x1="29.125" y1="34.5" x2="29.125" y2="38.5" stroke="#4FA6D5"/><line x1="44.4375" y1="34.5" x2="44.4375" y2="38.5" stroke="#4FA6D5"/><line x1="59.75" y1="34.5" x2="59.75" y2="38.5" stroke="#4FA6D5"/><line x1="75.0625" y1="34.5" x2="75.0625" y2="38.5" stroke="#4FA6D5"/><line x1="90.375" y1="34.5" x2="90.375" y2="38.5" stroke="#4FA6D5"/><line x1="105.688" y1="34.5" x2="105.688" y2="38.5" stroke="#4FA6D5"/><line x1="121" y1="34.5" x2="121" y2="38.5" stroke="#4FA6D5"/><line x1="136.312" y1="34.5" x2="136.312" y2="38.5" stroke="#4FA6D5"/><path d="M1.4988 46.72C1.4988 46.1773 1.61246 45.7043 1.8398 45.301C2.06713 44.8903 2.37513 44.5713 2.7638 44.344C3.15246 44.1167 3.5888 44.003 4.0728 44.003C4.92346 44.003 5.5798 44.2927 6.0418 44.872C6.51113 45.4513 6.7458 46.302 6.7458 47.424C6.7458 48.3627 6.63946 49.184 6.4268 49.888C6.21413 50.592 5.8768 51.1383 5.4148 51.527C4.9528 51.9157 4.3588 52.11 3.6328 52.11C2.96546 52.11 2.41546 51.978 1.9828 51.714V51.142C2.43013 51.4353 2.9728 51.582 3.6108 51.582C4.16813 51.582 4.61913 51.428 4.9638 51.12C5.3158 50.812 5.5798 50.3867 5.7558 49.844C5.9318 49.3013 6.03446 48.678 6.0638 47.974C5.8658 48.414 5.58713 48.7477 5.2278 48.975C4.8758 49.195 4.4688 49.305 4.0068 49.305C3.53746 49.305 3.11213 49.2023 2.7308 48.997C2.34946 48.7843 2.0488 48.4873 1.8288 48.106C1.6088 47.7173 1.4988 47.2553 1.4988 46.72ZM4.0948 44.542C3.75746 44.542 3.4458 44.6263 3.1598 44.795C2.88113 44.9563 2.65746 45.1983 2.4888 45.521C2.32746 45.8363 2.2468 46.2177 2.2468 46.665C2.2468 47.1123 2.32746 47.4937 2.4888 47.809C2.65013 48.117 2.86646 48.3553 3.1378 48.524C3.40913 48.6853 3.70246 48.766 4.0178 48.766C4.37713 48.766 4.6998 48.6853 4.9858 48.524C5.2718 48.3553 5.49546 48.1133 5.6568 47.798C5.82546 47.4827 5.9098 47.1013 5.9098 46.654C5.9098 46.016 5.7448 45.5063 5.4148 45.125C5.09213 44.7363 4.65213 44.542 4.0948 44.542ZM8.72365 46.621C8.56965 46.621 8.44132 46.5733 8.33865 46.478C8.24332 46.3753 8.19565 46.2543 8.19565 46.115C8.19565 45.9683 8.24332 45.8473 8.33865 45.752C8.44132 45.6567 8.56965 45.609 8.72365 45.609C8.87032 45.609 8.99132 45.6567 9.08665 45.752C9.18932 45.8473 9.24065 45.9683 9.24065 46.115C9.24065 46.2543 9.18932 46.3753 9.08665 46.478C8.99132 46.5733 8.87032 46.621 8.72365 46.621ZM8.72365 50.845C8.56965 50.845 8.44132 50.7973 8.33865 50.702C8.24332 50.5993 8.19565 50.4747 8.19565 50.328C8.19565 50.1813 8.24332 50.0603 8.33865 49.965C8.44132 49.8697 8.56965 49.822 8.72365 49.822C8.87032 49.822 8.99132 49.8697 9.08665 49.965C9.18932 50.0603 9.24065 50.1813 9.24065 50.328C9.24065 50.4747 9.18932 50.5993 9.08665 50.702C8.99132 50.7973 8.87032 50.845 8.72365 50.845ZM13.4735 52.11C12.9602 52.11 12.5055 51.9633 12.1095 51.67C11.7208 51.3767 11.4165 50.9293 11.1965 50.328C10.9765 49.7267 10.8665 48.9677 10.8665 48.051C10.8665 47.127 10.9765 46.368 11.1965 45.774C11.4165 45.18 11.7208 44.74 12.1095 44.454C12.5055 44.1607 12.9602 44.014 13.4735 44.014C14.2508 44.014 14.8742 44.3403 15.3435 44.993C15.8202 45.6383 16.0585 46.6503 16.0585 48.029C16.0585 49.4003 15.8202 50.4233 15.3435 51.098C14.8742 51.7727 14.2508 52.11 13.4735 52.11ZM13.4625 51.582C14.0492 51.582 14.5075 51.3033 14.8375 50.746C15.1675 50.1887 15.3325 49.294 15.3325 48.062C15.3325 46.83 15.1712 45.939 14.8485 45.389C14.5258 44.8317 14.0675 44.553 13.4735 44.553C12.8795 44.553 12.4175 44.8317 12.0875 45.389C11.7575 45.939 11.5925 46.83 11.5925 48.062C11.5925 49.294 11.7575 50.1887 12.0875 50.746C12.4175 51.3033 12.8758 51.582 13.4625 51.582ZM19.5214 52.11C19.008 52.11 18.5534 51.9633 18.1574 51.67C17.7687 51.3767 17.4644 50.9293 17.2444 50.328C17.0244 49.7267 16.9144 48.9677 16.9144 48.051C16.9144 47.127 17.0244 46.368 17.2444 45.774C17.4644 45.18 17.7687 44.74 18.1574 44.454C18.5534 44.1607 19.008 44.014 19.5214 44.014C20.2987 44.014 20.922 44.3403 21.3914 44.993C21.868 45.6383 22.1064 46.6503 22.1064 48.029C22.1064 49.4003 21.868 50.4233 21.3914 51.098C20.922 51.7727 20.2987 52.11 19.5214 52.11ZM19.5104 51.582C20.097 51.582 20.5554 51.3033 20.8854 50.746C21.2154 50.1887 21.3804 49.294 21.3804 48.062C21.3804 46.83 21.219 45.939 20.8964 45.389C20.5737 44.8317 20.1154 44.553 19.5214 44.553C18.9274 44.553 18.4654 44.8317 18.1354 45.389C17.8054 45.939 17.6404 46.83 17.6404 48.062C17.6404 49.294 17.8054 50.1887 18.1354 50.746C18.4654 51.3033 18.9237 51.582 19.5104 51.582Z" fill="black"/><path d="M140.428 52H139.702V44.993L137.326 46.764V45.972L139.823 44.113H140.428V52ZM145.475 52.11C144.969 52.11 144.518 52.022 144.122 51.846C143.734 51.67 143.426 51.417 143.198 51.087C142.971 50.7497 142.857 50.3463 142.857 49.877C142.857 49.3417 143.015 48.8943 143.33 48.535C143.653 48.1757 144.075 47.9337 144.595 47.809C144.17 47.6917 143.822 47.4827 143.55 47.182C143.279 46.8813 143.143 46.4963 143.143 46.027C143.143 45.5943 143.246 45.2277 143.451 44.927C143.657 44.6263 143.935 44.399 144.287 44.245C144.639 44.091 145.035 44.014 145.475 44.014C145.915 44.014 146.311 44.091 146.663 44.245C147.015 44.3917 147.294 44.6117 147.499 44.905C147.705 45.1983 147.807 45.565 147.807 46.005C147.807 46.4817 147.672 46.8703 147.4 47.171C147.129 47.4717 146.784 47.6807 146.366 47.798C146.872 47.9227 147.279 48.1573 147.587 48.502C147.903 48.8467 148.06 49.294 148.06 49.844C148.06 50.3133 147.947 50.7203 147.719 51.065C147.492 51.4023 147.184 51.6627 146.795 51.846C146.407 52.022 145.967 52.11 145.475 52.11ZM145.475 47.534C145.923 47.534 146.304 47.4093 146.619 47.16C146.942 46.9107 147.103 46.5513 147.103 46.082C147.103 45.5907 146.949 45.213 146.641 44.949C146.333 44.685 145.945 44.553 145.475 44.553C145.013 44.553 144.625 44.685 144.309 44.949C144.001 45.213 143.847 45.5907 143.847 46.082C143.847 46.39 143.921 46.654 144.067 46.874C144.221 47.0867 144.419 47.2517 144.661 47.369C144.911 47.479 145.182 47.534 145.475 47.534ZM145.475 51.582C146.018 51.582 146.465 51.4207 146.817 51.098C147.169 50.7753 147.345 50.3427 147.345 49.8C147.345 49.4333 147.261 49.1217 147.092 48.865C146.931 48.6083 146.707 48.4103 146.421 48.271C146.143 48.1317 145.827 48.062 145.475 48.062C144.933 48.062 144.482 48.216 144.122 48.524C143.763 48.8247 143.583 49.25 143.583 49.8C143.583 50.3427 143.759 50.7753 144.111 51.098C144.471 51.4207 144.925 51.582 145.475 51.582ZM150.06 46.621C149.906 46.621 149.778 46.5733 149.675 46.478C149.58 46.3753 149.532 46.2543 149.532 46.115C149.532 45.9683 149.58 45.8473 149.675 45.752C149.778 45.6567 149.906 45.609 150.06 45.609C150.207 45.609 150.328 45.6567 150.423 45.752C150.526 45.8473 150.577 45.9683 150.577 46.115C150.577 46.2543 150.526 46.3753 150.423 46.478C150.328 46.5733 150.207 46.621 150.06 46.621ZM150.06 50.845C149.906 50.845 149.778 50.7973 149.675 50.702C149.58 50.5993 149.532 50.4747 149.532 50.328C149.532 50.1813 149.58 50.0603 149.675 49.965C149.778 49.8697 149.906 49.822 150.06 49.822C150.207 49.822 150.328 49.8697 150.423 49.965C150.526 50.0603 150.577 50.1813 150.577 50.328C150.577 50.4747 150.526 50.5993 150.423 50.702C150.328 50.7973 150.207 50.845 150.06 50.845ZM154.81 52.11C154.297 52.11 153.842 51.9633 153.446 51.67C153.057 51.3767 152.753 50.9293 152.533 50.328C152.313 49.7267 152.203 48.9677 152.203 48.051C152.203 47.127 152.313 46.368 152.533 45.774C152.753 45.18 153.057 44.74 153.446 44.454C153.842 44.1607 154.297 44.014 154.81 44.014C155.587 44.014 156.211 44.3403 156.68 44.993C157.157 45.6383 157.395 46.6503 157.395 48.029C157.395 49.4003 157.157 50.4233 156.68 51.098C156.211 51.7727 155.587 52.11 154.81 52.11ZM154.799 51.582C155.386 51.582 155.844 51.3033 156.174 50.746C156.504 50.1887 156.669 49.294 156.669 48.062C156.669 46.83 156.508 45.939 156.185 45.389C155.862 44.8317 155.404 44.553 154.81 44.553C154.216 44.553 153.754 44.8317 153.424 45.389C153.094 45.939 152.929 46.83 152.929 48.062C152.929 49.294 153.094 50.1887 153.424 50.746C153.754 51.3033 154.212 51.582 154.799 51.582ZM160.858 52.11C160.344 52.11 159.89 51.9633 159.494 51.67C159.105 51.3767 158.801 50.9293 158.581 50.328C158.361 49.7267 158.251 48.9677 158.251 48.051C158.251 47.127 158.361 46.368 158.581 45.774C158.801 45.18 159.105 44.74 159.494 44.454C159.89 44.1607 160.344 44.014 160.858 44.014C161.635 44.014 162.258 44.3403 162.728 44.993C163.204 45.6383 163.443 46.6503 163.443 48.029C163.443 49.4003 163.204 50.4233 162.728 51.098C162.258 51.7727 161.635 52.11 160.858 52.11ZM160.847 51.582C161.433 51.582 161.892 51.3033 162.222 50.746C162.552 50.1887 162.717 49.294 162.717 48.062C162.717 46.83 162.555 45.939 162.233 45.389C161.91 44.8317 161.452 44.553 160.858 44.553C160.264 44.553 159.802 44.8317 159.472 45.389C159.142 45.939 158.977 46.83 158.977 48.062C158.977 49.294 159.142 50.1887 159.472 50.746C159.802 51.3033 160.26 51.582 160.847 51.582Z" fill="black"/><path d="M93.9909 52H93.2649V44.993L90.8889 46.764V45.972L93.3859 44.113H93.9909V52ZM98.7297 52.11C98.3044 52.11 97.9011 52.0477 97.5197 51.923C97.1457 51.791 96.8267 51.593 96.5627 51.329V50.768C96.9001 51.0467 97.2484 51.2483 97.6077 51.373C97.9671 51.4977 98.3411 51.56 98.7297 51.56C99.4117 51.56 99.9214 51.3693 100.259 50.988C100.596 50.6067 100.765 50.1117 100.765 49.503C100.765 48.843 100.585 48.3627 100.226 48.062C99.8737 47.7613 99.4227 47.611 98.8727 47.611C98.5721 47.611 98.3227 47.6477 98.1247 47.721C97.9267 47.7943 97.7691 47.8713 97.6517 47.952C97.5417 48.0327 97.4647 48.084 97.4207 48.106H96.8597V44.113H101.117V44.674H97.4977V47.49C97.6151 47.4093 97.7984 47.3177 98.0477 47.215C98.2971 47.105 98.6271 47.05 99.0377 47.05C99.4997 47.05 99.9141 47.1417 100.281 47.325C100.655 47.501 100.952 47.7723 101.172 48.139C101.392 48.4983 101.502 48.9493 101.502 49.492C101.502 50.0127 101.392 50.471 101.172 50.867C100.952 51.2557 100.633 51.56 100.215 51.78C99.8041 52 99.3091 52.11 98.7297 52.11ZM103.623 46.621C103.469 46.621 103.34 46.5733 103.238 46.478C103.142 46.3753 103.095 46.2543 103.095 46.115C103.095 45.9683 103.142 45.8473 103.238 45.752C103.34 45.6567 103.469 45.609 103.623 45.609C103.769 45.609 103.89 45.6567 103.986 45.752C104.088 45.8473 104.14 45.9683 104.14 46.115C104.14 46.2543 104.088 46.3753 103.986 46.478C103.89 46.5733 103.769 46.621 103.623 46.621ZM103.623 50.845C103.469 50.845 103.34 50.7973 103.238 50.702C103.142 50.5993 103.095 50.4747 103.095 50.328C103.095 50.1813 103.142 50.0603 103.238 49.965C103.34 49.8697 103.469 49.822 103.623 49.822C103.769 49.822 103.89 49.8697 103.986 49.965C104.088 50.0603 104.14 50.1813 104.14 50.328C104.14 50.4747 104.088 50.5993 103.986 50.702C103.89 50.7973 103.769 50.845 103.623 50.845ZM108.372 52.11C107.859 52.11 107.404 51.9633 107.008 51.67C106.62 51.3767 106.315 50.9293 106.095 50.328C105.875 49.7267 105.765 48.9677 105.765 48.051C105.765 47.127 105.875 46.368 106.095 45.774C106.315 45.18 106.62 44.74 107.008 44.454C107.404 44.1607 107.859 44.014 108.372 44.014C109.15 44.014 109.773 44.3403 110.242 44.993C110.719 45.6383 110.957 46.6503 110.957 48.029C110.957 49.4003 110.719 50.4233 110.242 51.098C109.773 51.7727 109.15 52.11 108.372 52.11ZM108.361 51.582C108.948 51.582 109.406 51.3033 109.736 50.746C110.066 50.1887 110.231 49.294 110.231 48.062C110.231 46.83 110.07 45.939 109.747 45.389C109.425 44.8317 108.966 44.553 108.372 44.553C107.778 44.553 107.316 44.8317 106.986 45.389C106.656 45.939 106.491 46.83 106.491 48.062C106.491 49.294 106.656 50.1887 106.986 50.746C107.316 51.3033 107.775 51.582 108.361 51.582ZM114.42 52.11C113.907 52.11 113.452 51.9633 113.056 51.67C112.668 51.3767 112.363 50.9293 112.143 50.328C111.923 49.7267 111.813 48.9677 111.813 48.051C111.813 47.127 111.923 46.368 112.143 45.774C112.363 45.18 112.668 44.74 113.056 44.454C113.452 44.1607 113.907 44.014 114.42 44.014C115.198 44.014 115.821 44.3403 116.29 44.993C116.767 45.6383 117.005 46.6503 117.005 48.029C117.005 49.4003 116.767 50.4233 116.29 51.098C115.821 51.7727 115.198 52.11 114.42 52.11ZM114.409 51.582C114.996 51.582 115.454 51.3033 115.784 50.746C116.114 50.1887 116.279 49.294 116.279 48.062C116.279 46.83 116.118 45.939 115.795 45.389C115.473 44.8317 115.014 44.553 114.42 44.553C113.826 44.553 113.364 44.8317 113.034 45.389C112.704 45.939 112.539 46.83 112.539 48.062C112.539 49.294 112.704 50.1887 113.034 50.746C113.364 51.3033 113.823 51.582 114.409 51.582Z" fill="black"/><rect width="45" height="24" transform="matrix(-1 0 0 1 150.188 6.5)" fill="#C7E5F4"/><rect x="14.3438" y="6.5" width="90.8438" height="24" fill="#4FA6D5"/><line x1="12.8124" y1="0.5" x2="12.8124" y2="38.5" stroke="#4FA6D5"/><line x1="151.625" y1="0.5" x2="151.625" y2="38.5" stroke="#4FA6D5"/></svg>
|
 `hard_window` = `true`<br/><br/>
 `max_duration_s` = 6 hours (less than the shift window)<br/><br/>
 `flexible_start_time` = `false` ||

||
Set a work interval that will **preferably** last no longer than 6 hours, **preferably** between 9:00 and 18:00<br/><br/>
<svg width="169" height="55" viewBox="0 0 169 55" fill="none" xmlns="http://www.w3.org/2000/svg"><line x1="15.3125" y1="2.1629e-08" x2="15.3125" y2="34" stroke="#4FA6D5" stroke-dasharray="2 2"/><line x1="154.125" y1="2.1629e-08" x2="154.125" y2="34" stroke="#4FA6D5" stroke-dasharray="2 2"/><path d="M6.10352e-05 34L168.438 34" stroke="#4FA6D5"/><line x1="15.8126" y1="34" x2="15.8126" y2="38" stroke="#4FA6D5"/><line x1="31.1251" y1="34" x2="31.1251" y2="38" stroke="#4FA6D5"/><line x1="46.4376" y1="34" x2="46.4376" y2="38" stroke="#4FA6D5"/><line x1="61.7501" y1="34" x2="61.7501" y2="38" stroke="#4FA6D5"/><line x1="77.0626" y1="34" x2="77.0626" y2="38" stroke="#4FA6D5"/><line x1="92.3751" y1="34" x2="92.3751" y2="38" stroke="#4FA6D5"/><line x1="107.688" y1="34" x2="107.688" y2="38" stroke="#4FA6D5"/><line x1="123" y1="34" x2="123" y2="38" stroke="#4FA6D5"/><line x1="138.313" y1="34" x2="138.313" y2="38" stroke="#4FA6D5"/><line x1="153.625" y1="34" x2="153.625" y2="38" stroke="#4FA6D5"/><path d="M4.49886 46.22C4.49886 45.6773 4.61252 45.2043 4.83986 44.801C5.06719 44.3903 5.37519 44.0713 5.76386 43.844C6.15252 43.6167 6.58886 43.503 7.07286 43.503C7.92352 43.503 8.57986 43.7927 9.04186 44.372C9.51119 44.9513 9.74586 45.802 9.74586 46.924C9.74586 47.8627 9.63952 48.684 9.42686 49.388C9.21419 50.092 8.87686 50.6383 8.41486 51.027C7.95286 51.4157 7.35886 51.61 6.63286 51.61C5.96552 51.61 5.41552 51.478 4.98286 51.214V50.642C5.43019 50.9353 5.97286 51.082 6.61086 51.082C7.16819 51.082 7.61919 50.928 7.96386 50.62C8.31586 50.312 8.57986 49.8867 8.75586 49.344C8.93186 48.8013 9.03452 48.178 9.06386 47.474C8.86586 47.914 8.58719 48.2477 8.22786 48.475C7.87586 48.695 7.46886 48.805 7.00686 48.805C6.53752 48.805 6.11219 48.7023 5.73086 48.497C5.34952 48.2843 5.04886 47.9873 4.82886 47.606C4.60886 47.2173 4.49886 46.7553 4.49886 46.22ZM7.09486 44.042C6.75752 44.042 6.44586 44.1263 6.15986 44.295C5.88119 44.4563 5.65752 44.6983 5.48886 45.021C5.32752 45.3363 5.24686 45.7177 5.24686 46.165C5.24686 46.6123 5.32752 46.9937 5.48886 47.309C5.65019 47.617 5.86652 47.8553 6.13786 48.024C6.40919 48.1853 6.70252 48.266 7.01786 48.266C7.37719 48.266 7.69986 48.1853 7.98586 48.024C8.27186 47.8553 8.49552 47.6133 8.65686 47.298C8.82552 46.9827 8.90986 46.6013 8.90986 46.154C8.90986 45.516 8.74486 45.0063 8.41486 44.625C8.09219 44.2363 7.65219 44.042 7.09486 44.042ZM11.7237 46.121C11.5697 46.121 11.4414 46.0733 11.3387 45.978C11.2434 45.8753 11.1957 45.7543 11.1957 45.615C11.1957 45.4683 11.2434 45.3473 11.3387 45.252C11.4414 45.1567 11.5697 45.109 11.7237 45.109C11.8704 45.109 11.9914 45.1567 12.0867 45.252C12.1894 45.3473 12.2407 45.4683 12.2407 45.615C12.2407 45.7543 12.1894 45.8753 12.0867 45.978C11.9914 46.0733 11.8704 46.121 11.7237 46.121ZM11.7237 50.345C11.5697 50.345 11.4414 50.2973 11.3387 50.202C11.2434 50.0993 11.1957 49.9747 11.1957 49.828C11.1957 49.6813 11.2434 49.5603 11.3387 49.465C11.4414 49.3697 11.5697 49.322 11.7237 49.322C11.8704 49.322 11.9914 49.3697 12.0867 49.465C12.1894 49.5603 12.2407 49.6813 12.2407 49.828C12.2407 49.9747 12.1894 50.0993 12.0867 50.202C11.9914 50.2973 11.8704 50.345 11.7237 50.345ZM16.4736 51.61C15.9602 51.61 15.5056 51.4633 15.1096 51.17C14.7209 50.8767 14.4166 50.4293 14.1966 49.828C13.9766 49.2267 13.8666 48.4677 13.8666 47.551C13.8666 46.627 13.9766 45.868 14.1966 45.274C14.4166 44.68 14.7209 44.24 15.1096 43.954C15.5056 43.6607 15.9602 43.514 16.4736 43.514C17.2509 43.514 17.8742 43.8403 18.3436 44.493C18.8202 45.1383 19.0586 46.1503 19.0586 47.529C19.0586 48.9003 18.8202 49.9233 18.3436 50.598C17.8742 51.2727 17.2509 51.61 16.4736 51.61ZM16.4626 51.082C17.0492 51.082 17.5076 50.8033 17.8376 50.246C18.1676 49.6887 18.3326 48.794 18.3326 47.562C18.3326 46.33 18.1712 45.439 17.8486 44.889C17.5259 44.3317 17.0676 44.053 16.4736 44.053C15.8796 44.053 15.4176 44.3317 15.0876 44.889C14.7576 45.439 14.5926 46.33 14.5926 47.562C14.5926 48.794 14.7576 49.6887 15.0876 50.246C15.4176 50.8033 15.8759 51.082 16.4626 51.082ZM22.5214 51.61C22.0081 51.61 21.5534 51.4633 21.1574 51.17C20.7687 50.8767 20.4644 50.4293 20.2444 49.828C20.0244 49.2267 19.9144 48.4677 19.9144 47.551C19.9144 46.627 20.0244 45.868 20.2444 45.274C20.4644 44.68 20.7687 44.24 21.1574 43.954C21.5534 43.6607 22.0081 43.514 22.5214 43.514C23.2987 43.514 23.9221 43.8403 24.3914 44.493C24.8681 45.1383 25.1064 46.1503 25.1064 47.529C25.1064 48.9003 24.8681 49.9233 24.3914 50.598C23.9221 51.2727 23.2987 51.61 22.5214 51.61ZM22.5104 51.082C23.0971 51.082 23.5554 50.8033 23.8854 50.246C24.2154 49.6887 24.3804 48.794 24.3804 47.562C24.3804 46.33 24.2191 45.439 23.8964 44.889C23.5737 44.3317 23.1154 44.053 22.5214 44.053C21.9274 44.053 21.4654 44.3317 21.1354 44.889C20.8054 45.439 20.6404 46.33 20.6404 47.562C20.6404 48.794 20.8054 49.6887 21.1354 50.246C21.4654 50.8033 21.9237 51.082 22.5104 51.082Z" fill="black"/><path d="M143.428 51.5H142.702V44.493L140.326 46.264V45.472L142.823 43.613H143.428V51.5ZM148.475 51.61C147.969 51.61 147.518 51.522 147.122 51.346C146.734 51.17 146.426 50.917 146.198 50.587C145.971 50.2497 145.857 49.8463 145.857 49.377C145.857 48.8417 146.015 48.3943 146.33 48.035C146.653 47.6757 147.075 47.4337 147.595 47.309C147.17 47.1917 146.822 46.9827 146.55 46.682C146.279 46.3813 146.143 45.9963 146.143 45.527C146.143 45.0943 146.246 44.7277 146.451 44.427C146.657 44.1263 146.935 43.899 147.287 43.745C147.639 43.591 148.035 43.514 148.475 43.514C148.915 43.514 149.311 43.591 149.663 43.745C150.015 43.8917 150.294 44.1117 150.499 44.405C150.705 44.6983 150.807 45.065 150.807 45.505C150.807 45.9817 150.672 46.3703 150.4 46.671C150.129 46.9717 149.784 47.1807 149.366 47.298C149.872 47.4227 150.279 47.6573 150.587 48.002C150.903 48.3467 151.06 48.794 151.06 49.344C151.06 49.8133 150.947 50.2203 150.719 50.565C150.492 50.9023 150.184 51.1627 149.795 51.346C149.407 51.522 148.967 51.61 148.475 51.61ZM148.475 47.034C148.923 47.034 149.304 46.9093 149.619 46.66C149.942 46.4107 150.103 46.0513 150.103 45.582C150.103 45.0907 149.949 44.713 149.641 44.449C149.333 44.185 148.945 44.053 148.475 44.053C148.013 44.053 147.625 44.185 147.309 44.449C147.001 44.713 146.847 45.0907 146.847 45.582C146.847 45.89 146.921 46.154 147.067 46.374C147.221 46.5867 147.419 46.7517 147.661 46.869C147.911 46.979 148.182 47.034 148.475 47.034ZM148.475 51.082C149.018 51.082 149.465 50.9207 149.817 50.598C150.169 50.2753 150.345 49.8427 150.345 49.3C150.345 48.9333 150.261 48.6217 150.092 48.365C149.931 48.1083 149.707 47.9103 149.421 47.771C149.143 47.6317 148.827 47.562 148.475 47.562C147.933 47.562 147.482 47.716 147.122 48.024C146.763 48.3247 146.583 48.75 146.583 49.3C146.583 49.8427 146.759 50.2753 147.111 50.598C147.471 50.9207 147.925 51.082 148.475 51.082ZM153.06 46.121C152.906 46.121 152.778 46.0733 152.675 45.978C152.58 45.8753 152.532 45.7543 152.532 45.615C152.532 45.4683 152.58 45.3473 152.675 45.252C152.778 45.1567 152.906 45.109 153.06 45.109C153.207 45.109 153.328 45.1567 153.423 45.252C153.526 45.3473 153.577 45.4683 153.577 45.615C153.577 45.7543 153.526 45.8753 153.423 45.978C153.328 46.0733 153.207 46.121 153.06 46.121ZM153.06 50.345C152.906 50.345 152.778 50.2973 152.675 50.202C152.58 50.0993 152.532 49.9747 152.532 49.828C152.532 49.6813 152.58 49.5603 152.675 49.465C152.778 49.3697 152.906 49.322 153.06 49.322C153.207 49.322 153.328 49.3697 153.423 49.465C153.526 49.5603 153.577 49.6813 153.577 49.828C153.577 49.9747 153.526 50.0993 153.423 50.202C153.328 50.2973 153.207 50.345 153.06 50.345ZM157.81 51.61C157.297 51.61 156.842 51.4633 156.446 51.17C156.057 50.8767 155.753 50.4293 155.533 49.828C155.313 49.2267 155.203 48.4677 155.203 47.551C155.203 46.627 155.313 45.868 155.533 45.274C155.753 44.68 156.057 44.24 156.446 43.954C156.842 43.6607 157.297 43.514 157.81 43.514C158.587 43.514 159.211 43.8403 159.68 44.493C160.157 45.1383 160.395 46.1503 160.395 47.529C160.395 48.9003 160.157 49.9233 159.68 50.598C159.211 51.2727 158.587 51.61 157.81 51.61ZM157.799 51.082C158.386 51.082 158.844 50.8033 159.174 50.246C159.504 49.6887 159.669 48.794 159.669 47.562C159.669 46.33 159.508 45.439 159.185 44.889C158.862 44.3317 158.404 44.053 157.81 44.053C157.216 44.053 156.754 44.3317 156.424 44.889C156.094 45.439 155.929 46.33 155.929 47.562C155.929 48.794 156.094 49.6887 156.424 50.246C156.754 50.8033 157.212 51.082 157.799 51.082ZM163.858 51.61C163.345 51.61 162.89 51.4633 162.494 51.17C162.105 50.8767 161.801 50.4293 161.581 49.828C161.361 49.2267 161.251 48.4677 161.251 47.551C161.251 46.627 161.361 45.868 161.581 45.274C161.801 44.68 162.105 44.24 162.494 43.954C162.89 43.6607 163.345 43.514 163.858 43.514C164.635 43.514 165.259 43.8403 165.728 44.493C166.205 45.1383 166.443 46.1503 166.443 47.529C166.443 48.9003 166.205 49.9233 165.728 50.598C165.259 51.2727 164.635 51.61 163.858 51.61ZM163.847 51.082C164.434 51.082 164.892 50.8033 165.222 50.246C165.552 49.6887 165.717 48.794 165.717 47.562C165.717 46.33 165.556 45.439 165.233 44.889C164.91 44.3317 164.452 44.053 163.858 44.053C163.264 44.053 162.802 44.3317 162.472 44.889C162.142 45.439 161.977 46.33 161.977 47.562C161.977 48.794 162.142 49.6887 162.472 50.246C162.802 50.8033 163.26 51.082 163.847 51.082Z" fill="black"/><rect x="37.1251" y="6" width="94.1875" height="24" fill="#4FA6D5"/><path d="M37.1251 18L32.1251 15.1132L32.1251 20.8868L37.1251 18ZM15.3126 18L20.3126 20.8867L20.3126 15.1132L15.3126 18ZM32.6251 17.5L19.8126 17.5L19.8126 18.5L32.6251 18.5L32.6251 17.5Z" fill="#4FA6D5"/><path d="M153.625 18L148.625 15.1132L148.625 20.8868L153.625 18ZM131.813 18L136.813 20.8867L136.813 15.1132L131.813 18ZM149.125 17.5L136.313 17.5L136.313 18.5L149.125 18.5L149.125 17.5Z" fill="#4FA6D5"/></svg>
|
 `hard_window` = `false`<br/><br/>
 `max_duration_s` = 6 hours (less than the shift window)<br/><br/>
 `flexible_start_time` = `true` ||

||
Start the work **strictly** at 9:00, **preferably** end it before 15:00 and **preferably** not later than 18:00 (this parameter combination corresponds to `time_window` = `9:00 - 15:00`, `max_duration_s` = 9 hours)<br/><br/>
<svg width="169" height="56" viewBox="0 0 169 56" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.10352e-05 34.75L168.438 34.75" stroke="#4FA6D5"/><line x1="15.8126" y1="34.75" x2="15.8126" y2="38.75" stroke="#4FA6D5"/><line x1="31.1251" y1="34.75" x2="31.1251" y2="38.75" stroke="#4FA6D5"/><line x1="46.4376" y1="34.75" x2="46.4376" y2="38.75" stroke="#4FA6D5"/><line x1="61.7501" y1="34.75" x2="61.7501" y2="38.75" stroke="#4FA6D5"/><line x1="77.0626" y1="34.75" x2="77.0626" y2="38.75" stroke="#4FA6D5"/><line x1="92.3751" y1="34.75" x2="92.3751" y2="38.75" stroke="#4FA6D5"/><line x1="107.688" y1="34.75" x2="107.688" y2="38.75" stroke="#4FA6D5"/><line x1="123" y1="34.75" x2="123" y2="38.75" stroke="#4FA6D5"/><line x1="138.313" y1="34.75" x2="138.313" y2="38.75" stroke="#4FA6D5"/><line x1="153.625" y1="34.75" x2="153.625" y2="38.75" stroke="#4FA6D5"/><path d="M4.49886 46.97C4.49886 46.4273 4.61252 45.9543 4.83986 45.551C5.06719 45.1403 5.37519 44.8213 5.76386 44.594C6.15252 44.3667 6.58886 44.253 7.07286 44.253C7.92352 44.253 8.57986 44.5427 9.04186 45.122C9.51119 45.7013 9.74586 46.552 9.74586 47.674C9.74586 48.6127 9.63952 49.434 9.42686 50.138C9.21419 50.842 8.87686 51.3883 8.41486 51.777C7.95286 52.1657 7.35886 52.36 6.63286 52.36C5.96552 52.36 5.41552 52.228 4.98286 51.964V51.392C5.43019 51.6853 5.97286 51.832 6.61086 51.832C7.16819 51.832 7.61919 51.678 7.96386 51.37C8.31586 51.062 8.57986 50.6367 8.75586 50.094C8.93186 49.5513 9.03452 48.928 9.06386 48.224C8.86586 48.664 8.58719 48.9977 8.22786 49.225C7.87586 49.445 7.46886 49.555 7.00686 49.555C6.53752 49.555 6.11219 49.4523 5.73086 49.247C5.34952 49.0343 5.04886 48.7373 4.82886 48.356C4.60886 47.9673 4.49886 47.5053 4.49886 46.97ZM7.09486 44.792C6.75752 44.792 6.44586 44.8763 6.15986 45.045C5.88119 45.2063 5.65752 45.4483 5.48886 45.771C5.32752 46.0863 5.24686 46.4677 5.24686 46.915C5.24686 47.3623 5.32752 47.7437 5.48886 48.059C5.65019 48.367 5.86652 48.6053 6.13786 48.774C6.40919 48.9353 6.70252 49.016 7.01786 49.016C7.37719 49.016 7.69986 48.9353 7.98586 48.774C8.27186 48.6053 8.49552 48.3633 8.65686 48.048C8.82552 47.7327 8.90986 47.3513 8.90986 46.904C8.90986 46.266 8.74486 45.7563 8.41486 45.375C8.09219 44.9863 7.65219 44.792 7.09486 44.792ZM11.7237 46.871C11.5697 46.871 11.4414 46.8233 11.3387 46.728C11.2434 46.6253 11.1957 46.5043 11.1957 46.365C11.1957 46.2183 11.2434 46.0973 11.3387 46.002C11.4414 45.9067 11.5697 45.859 11.7237 45.859C11.8704 45.859 11.9914 45.9067 12.0867 46.002C12.1894 46.0973 12.2407 46.2183 12.2407 46.365C12.2407 46.5043 12.1894 46.6253 12.0867 46.728C11.9914 46.8233 11.8704 46.871 11.7237 46.871ZM11.7237 51.095C11.5697 51.095 11.4414 51.0473 11.3387 50.952C11.2434 50.8493 11.1957 50.7247 11.1957 50.578C11.1957 50.4313 11.2434 50.3103 11.3387 50.215C11.4414 50.1197 11.5697 50.072 11.7237 50.072C11.8704 50.072 11.9914 50.1197 12.0867 50.215C12.1894 50.3103 12.2407 50.4313 12.2407 50.578C12.2407 50.7247 12.1894 50.8493 12.0867 50.952C11.9914 51.0473 11.8704 51.095 11.7237 51.095ZM16.4736 52.36C15.9602 52.36 15.5056 52.2133 15.1096 51.92C14.7209 51.6267 14.4166 51.1793 14.1966 50.578C13.9766 49.9767 13.8666 49.2177 13.8666 48.301C13.8666 47.377 13.9766 46.618 14.1966 46.024C14.4166 45.43 14.7209 44.99 15.1096 44.704C15.5056 44.4107 15.9602 44.264 16.4736 44.264C17.2509 44.264 17.8742 44.5903 18.3436 45.243C18.8202 45.8883 19.0586 46.9003 19.0586 48.279C19.0586 49.6503 18.8202 50.6733 18.3436 51.348C17.8742 52.0227 17.2509 52.36 16.4736 52.36ZM16.4626 51.832C17.0492 51.832 17.5076 51.5533 17.8376 50.996C18.1676 50.4387 18.3326 49.544 18.3326 48.312C18.3326 47.08 18.1712 46.189 17.8486 45.639C17.5259 45.0817 17.0676 44.803 16.4736 44.803C15.8796 44.803 15.4176 45.0817 15.0876 45.639C14.7576 46.189 14.5926 47.08 14.5926 48.312C14.5926 49.544 14.7576 50.4387 15.0876 50.996C15.4176 51.5533 15.8759 51.832 16.4626 51.832ZM22.5214 52.36C22.0081 52.36 21.5534 52.2133 21.1574 51.92C20.7687 51.6267 20.4644 51.1793 20.2444 50.578C20.0244 49.9767 19.9144 49.2177 19.9144 48.301C19.9144 47.377 20.0244 46.618 20.2444 46.024C20.4644 45.43 20.7687 44.99 21.1574 44.704C21.5534 44.4107 22.0081 44.264 22.5214 44.264C23.2987 44.264 23.9221 44.5903 24.3914 45.243C24.8681 45.8883 25.1064 46.9003 25.1064 48.279C25.1064 49.6503 24.8681 50.6733 24.3914 51.348C23.9221 52.0227 23.2987 52.36 22.5214 52.36ZM22.5104 51.832C23.0971 51.832 23.5554 51.5533 23.8854 50.996C24.2154 50.4387 24.3804 49.544 24.3804 48.312C24.3804 47.08 24.2191 46.189 23.8964 45.639C23.5737 45.0817 23.1154 44.803 22.5214 44.803C21.9274 44.803 21.4654 45.0817 21.1354 45.639C20.8054 46.189 20.6404 47.08 20.6404 48.312C20.6404 49.544 20.8054 50.4387 21.1354 50.996C21.4654 51.5533 21.9237 51.832 22.5104 51.832Z" fill="black"/><path d="M143.428 52.25H142.702V45.243L140.326 47.014V46.222L142.823 44.363H143.428V52.25ZM148.475 52.36C147.969 52.36 147.518 52.272 147.122 52.096C146.734 51.92 146.426 51.667 146.198 51.337C145.971 50.9997 145.857 50.5963 145.857 50.127C145.857 49.5917 146.015 49.1443 146.33 48.785C146.653 48.4257 147.075 48.1837 147.595 48.059C147.17 47.9417 146.822 47.7327 146.55 47.432C146.279 47.1313 146.143 46.7463 146.143 46.277C146.143 45.8443 146.246 45.4777 146.451 45.177C146.657 44.8763 146.935 44.649 147.287 44.495C147.639 44.341 148.035 44.264 148.475 44.264C148.915 44.264 149.311 44.341 149.663 44.495C150.015 44.6417 150.294 44.8617 150.499 45.155C150.705 45.4483 150.807 45.815 150.807 46.255C150.807 46.7317 150.672 47.1203 150.4 47.421C150.129 47.7217 149.784 47.9307 149.366 48.048C149.872 48.1727 150.279 48.4073 150.587 48.752C150.903 49.0967 151.06 49.544 151.06 50.094C151.06 50.5633 150.947 50.9703 150.719 51.315C150.492 51.6523 150.184 51.9127 149.795 52.096C149.407 52.272 148.967 52.36 148.475 52.36ZM148.475 47.784C148.923 47.784 149.304 47.6593 149.619 47.41C149.942 47.1607 150.103 46.8013 150.103 46.332C150.103 45.8407 149.949 45.463 149.641 45.199C149.333 44.935 148.945 44.803 148.475 44.803C148.013 44.803 147.625 44.935 147.309 45.199C147.001 45.463 146.847 45.8407 146.847 46.332C146.847 46.64 146.921 46.904 147.067 47.124C147.221 47.3367 147.419 47.5017 147.661 47.619C147.911 47.729 148.182 47.784 148.475 47.784ZM148.475 51.832C149.018 51.832 149.465 51.6707 149.817 51.348C150.169 51.0253 150.345 50.5927 150.345 50.05C150.345 49.6833 150.261 49.3717 150.092 49.115C149.931 48.8583 149.707 48.6603 149.421 48.521C149.143 48.3817 148.827 48.312 148.475 48.312C147.933 48.312 147.482 48.466 147.122 48.774C146.763 49.0747 146.583 49.5 146.583 50.05C146.583 50.5927 146.759 51.0253 147.111 51.348C147.471 51.6707 147.925 51.832 148.475 51.832ZM153.06 46.871C152.906 46.871 152.778 46.8233 152.675 46.728C152.58 46.6253 152.532 46.5043 152.532 46.365C152.532 46.2183 152.58 46.0973 152.675 46.002C152.778 45.9067 152.906 45.859 153.06 45.859C153.207 45.859 153.328 45.9067 153.423 46.002C153.526 46.0973 153.577 46.2183 153.577 46.365C153.577 46.5043 153.526 46.6253 153.423 46.728C153.328 46.8233 153.207 46.871 153.06 46.871ZM153.06 51.095C152.906 51.095 152.778 51.0473 152.675 50.952C152.58 50.8493 152.532 50.7247 152.532 50.578C152.532 50.4313 152.58 50.3103 152.675 50.215C152.778 50.1197 152.906 50.072 153.06 50.072C153.207 50.072 153.328 50.1197 153.423 50.215C153.526 50.3103 153.577 50.4313 153.577 50.578C153.577 50.7247 153.526 50.8493 153.423 50.952C153.328 51.0473 153.207 51.095 153.06 51.095ZM157.81 52.36C157.297 52.36 156.842 52.2133 156.446 51.92C156.057 51.6267 155.753 51.1793 155.533 50.578C155.313 49.9767 155.203 49.2177 155.203 48.301C155.203 47.377 155.313 46.618 155.533 46.024C155.753 45.43 156.057 44.99 156.446 44.704C156.842 44.4107 157.297 44.264 157.81 44.264C158.587 44.264 159.211 44.5903 159.68 45.243C160.157 45.8883 160.395 46.9003 160.395 48.279C160.395 49.6503 160.157 50.6733 159.68 51.348C159.211 52.0227 158.587 52.36 157.81 52.36ZM157.799 51.832C158.386 51.832 158.844 51.5533 159.174 50.996C159.504 50.4387 159.669 49.544 159.669 48.312C159.669 47.08 159.508 46.189 159.185 45.639C158.862 45.0817 158.404 44.803 157.81 44.803C157.216 44.803 156.754 45.0817 156.424 45.639C156.094 46.189 155.929 47.08 155.929 48.312C155.929 49.544 156.094 50.4387 156.424 50.996C156.754 51.5533 157.212 51.832 157.799 51.832ZM163.858 52.36C163.345 52.36 162.89 52.2133 162.494 51.92C162.105 51.6267 161.801 51.1793 161.581 50.578C161.361 49.9767 161.251 49.2177 161.251 48.301C161.251 47.377 161.361 46.618 161.581 46.024C161.801 45.43 162.105 44.99 162.494 44.704C162.89 44.4107 163.345 44.264 163.858 44.264C164.635 44.264 165.259 44.5903 165.728 45.243C166.205 45.8883 166.443 46.9003 166.443 48.279C166.443 49.6503 166.205 50.6733 165.728 51.348C165.259 52.0227 164.635 52.36 163.858 52.36ZM163.847 51.832C164.434 51.832 164.892 51.5533 165.222 50.996C165.552 50.4387 165.717 49.544 165.717 48.312C165.717 47.08 165.556 46.189 165.233 45.639C164.91 45.0817 164.452 44.803 163.858 44.803C163.264 44.803 162.802 45.0817 162.472 45.639C162.142 46.189 161.977 47.08 161.977 48.312C161.977 49.544 162.142 50.4387 162.472 50.996C162.802 51.5533 163.26 51.832 163.847 51.832Z" fill="black"/><rect x="16.3438" y="6.75" width="136.781" height="24" fill="#C7E5F4"/><rect x="16.3438" y="6.75" width="90.8438" height="24" fill="#4FA6D5"/><path d="M96.9909 52.25H96.2649V45.243L93.8889 47.014V46.222L96.3859 44.363H96.9909V52.25ZM101.73 52.36C101.304 52.36 100.901 52.2977 100.52 52.173C100.146 52.041 99.8267 51.843 99.5627 51.579V51.018C99.9001 51.2967 100.248 51.4983 100.608 51.623C100.967 51.7477 101.341 51.81 101.73 51.81C102.412 51.81 102.921 51.6193 103.259 51.238C103.596 50.8567 103.765 50.3617 103.765 49.753C103.765 49.093 103.585 48.6127 103.226 48.312C102.874 48.0113 102.423 47.861 101.873 47.861C101.572 47.861 101.323 47.8977 101.125 47.971C100.927 48.0443 100.769 48.1213 100.652 48.202C100.542 48.2827 100.465 48.334 100.421 48.356H99.8597V44.363H104.117V44.924H100.498V47.74C100.615 47.6593 100.798 47.5677 101.048 47.465C101.297 47.355 101.627 47.3 102.038 47.3C102.5 47.3 102.914 47.3917 103.281 47.575C103.655 47.751 103.952 48.0223 104.172 48.389C104.392 48.7483 104.502 49.1993 104.502 49.742C104.502 50.2627 104.392 50.721 104.172 51.117C103.952 51.5057 103.633 51.81 103.215 52.03C102.804 52.25 102.309 52.36 101.73 52.36ZM106.623 46.871C106.469 46.871 106.34 46.8233 106.238 46.728C106.142 46.6253 106.095 46.5043 106.095 46.365C106.095 46.2183 106.142 46.0973 106.238 46.002C106.34 45.9067 106.469 45.859 106.623 45.859C106.769 45.859 106.89 45.9067 106.986 46.002C107.088 46.0973 107.14 46.2183 107.14 46.365C107.14 46.5043 107.088 46.6253 106.986 46.728C106.89 46.8233 106.769 46.871 106.623 46.871ZM106.623 51.095C106.469 51.095 106.34 51.0473 106.238 50.952C106.142 50.8493 106.095 50.7247 106.095 50.578C106.095 50.4313 106.142 50.3103 106.238 50.215C106.34 50.1197 106.469 50.072 106.623 50.072C106.769 50.072 106.89 50.1197 106.986 50.215C107.088 50.3103 107.14 50.4313 107.14 50.578C107.14 50.7247 107.088 50.8493 106.986 50.952C106.89 51.0473 106.769 51.095 106.623 51.095ZM111.372 52.36C110.859 52.36 110.404 52.2133 110.008 51.92C109.62 51.6267 109.315 51.1793 109.095 50.578C108.875 49.9767 108.765 49.2177 108.765 48.301C108.765 47.377 108.875 46.618 109.095 46.024C109.315 45.43 109.62 44.99 110.008 44.704C110.404 44.4107 110.859 44.264 111.372 44.264C112.15 44.264 112.773 44.5903 113.242 45.243C113.719 45.8883 113.957 46.9003 113.957 48.279C113.957 49.6503 113.719 50.6733 113.242 51.348C112.773 52.0227 112.15 52.36 111.372 52.36ZM111.361 51.832C111.948 51.832 112.406 51.5533 112.736 50.996C113.066 50.4387 113.231 49.544 113.231 48.312C113.231 47.08 113.07 46.189 112.747 45.639C112.425 45.0817 111.966 44.803 111.372 44.803C110.778 44.803 110.316 45.0817 109.986 45.639C109.656 46.189 109.491 47.08 109.491 48.312C109.491 49.544 109.656 50.4387 109.986 50.996C110.316 51.5533 110.775 51.832 111.361 51.832ZM117.42 52.36C116.907 52.36 116.452 52.2133 116.056 51.92C115.668 51.6267 115.363 51.1793 115.143 50.578C114.923 49.9767 114.813 49.2177 114.813 48.301C114.813 47.377 114.923 46.618 115.143 46.024C115.363 45.43 115.668 44.99 116.056 44.704C116.452 44.4107 116.907 44.264 117.42 44.264C118.198 44.264 118.821 44.5903 119.29 45.243C119.767 45.8883 120.005 46.9003 120.005 48.279C120.005 49.6503 119.767 50.6733 119.29 51.348C118.821 52.0227 118.198 52.36 117.42 52.36ZM117.409 51.832C117.996 51.832 118.454 51.5533 118.784 50.996C119.114 50.4387 119.279 49.544 119.279 48.312C119.279 47.08 119.118 46.189 118.795 45.639C118.473 45.0817 118.014 44.803 117.42 44.803C116.826 44.803 116.364 45.0817 116.034 45.639C115.704 46.189 115.539 47.08 115.539 48.312C115.539 49.544 115.704 50.4387 116.034 50.996C116.364 51.5533 116.823 51.832 117.409 51.832Z" fill="black"/><line x1="15.3125" y1="0.75" x2="15.3125" y2="34.75" stroke="#4FA6D5" stroke-dasharray="2 2"/><line x1="154.125" y1="0.75" x2="154.125" y2="34.75" stroke="#4FA6D5" stroke-dasharray="2 2"/></svg>
|
 `hard_window` = `false`<br/><br/>
 `max_duration_s` = 6 hours (less than the shift window)<br/><br/>
 `flexible_start_time` = `false` ||

||
You **may** start work later than 9:00, finish **preferably** before 18:00, **preferably** work no longer than 10 hours<br/><br/>
<svg width="169" height="55" viewBox="0 0 169 55" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.10352e-05 34.5L168.438 34.5" stroke="#4FA6D5"/><line x1="15.8126" y1="34.5" x2="15.8126" y2="38.5" stroke="#4FA6D5"/><line x1="31.1251" y1="34.5" x2="31.1251" y2="38.5" stroke="#4FA6D5"/><line x1="46.4376" y1="34.5" x2="46.4376" y2="38.5" stroke="#4FA6D5"/><line x1="61.7501" y1="34.5" x2="61.7501" y2="38.5" stroke="#4FA6D5"/><line x1="77.0626" y1="34.5" x2="77.0626" y2="38.5" stroke="#4FA6D5"/><line x1="92.3751" y1="34.5" x2="92.3751" y2="38.5" stroke="#4FA6D5"/><line x1="107.688" y1="34.5" x2="107.688" y2="38.5" stroke="#4FA6D5"/><line x1="123" y1="34.5" x2="123" y2="38.5" stroke="#4FA6D5"/><line x1="138.313" y1="34.5" x2="138.313" y2="38.5" stroke="#4FA6D5"/><line x1="153.625" y1="34.5" x2="153.625" y2="38.5" stroke="#4FA6D5"/><path d="M4.49886 46.72C4.49886 46.1773 4.61252 45.7043 4.83986 45.301C5.06719 44.8903 5.37519 44.5713 5.76386 44.344C6.15252 44.1167 6.58886 44.003 7.07286 44.003C7.92352 44.003 8.57986 44.2927 9.04186 44.872C9.51119 45.4513 9.74586 46.302 9.74586 47.424C9.74586 48.3627 9.63952 49.184 9.42686 49.888C9.21419 50.592 8.87686 51.1383 8.41486 51.527C7.95286 51.9157 7.35886 52.11 6.63286 52.11C5.96552 52.11 5.41552 51.978 4.98286 51.714V51.142C5.43019 51.4353 5.97286 51.582 6.61086 51.582C7.16819 51.582 7.61919 51.428 7.96386 51.12C8.31586 50.812 8.57986 50.3867 8.75586 49.844C8.93186 49.3013 9.03452 48.678 9.06386 47.974C8.86586 48.414 8.58719 48.7477 8.22786 48.975C7.87586 49.195 7.46886 49.305 7.00686 49.305C6.53752 49.305 6.11219 49.2023 5.73086 48.997C5.34952 48.7843 5.04886 48.4873 4.82886 48.106C4.60886 47.7173 4.49886 47.2553 4.49886 46.72ZM7.09486 44.542C6.75752 44.542 6.44586 44.6263 6.15986 44.795C5.88119 44.9563 5.65752 45.1983 5.48886 45.521C5.32752 45.8363 5.24686 46.2177 5.24686 46.665C5.24686 47.1123 5.32752 47.4937 5.48886 47.809C5.65019 48.117 5.86652 48.3553 6.13786 48.524C6.40919 48.6853 6.70252 48.766 7.01786 48.766C7.37719 48.766 7.69986 48.6853 7.98586 48.524C8.27186 48.3553 8.49552 48.1133 8.65686 47.798C8.82552 47.4827 8.90986 47.1013 8.90986 46.654C8.90986 46.016 8.74486 45.5063 8.41486 45.125C8.09219 44.7363 7.65219 44.542 7.09486 44.542ZM11.7237 46.621C11.5697 46.621 11.4414 46.5733 11.3387 46.478C11.2434 46.3753 11.1957 46.2543 11.1957 46.115C11.1957 45.9683 11.2434 45.8473 11.3387 45.752C11.4414 45.6567 11.5697 45.609 11.7237 45.609C11.8704 45.609 11.9914 45.6567 12.0867 45.752C12.1894 45.8473 12.2407 45.9683 12.2407 46.115C12.2407 46.2543 12.1894 46.3753 12.0867 46.478C11.9914 46.5733 11.8704 46.621 11.7237 46.621ZM11.7237 50.845C11.5697 50.845 11.4414 50.7973 11.3387 50.702C11.2434 50.5993 11.1957 50.4747 11.1957 50.328C11.1957 50.1813 11.2434 50.0603 11.3387 49.965C11.4414 49.8697 11.5697 49.822 11.7237 49.822C11.8704 49.822 11.9914 49.8697 12.0867 49.965C12.1894 50.0603 12.2407 50.1813 12.2407 50.328C12.2407 50.4747 12.1894 50.5993 12.0867 50.702C11.9914 50.7973 11.8704 50.845 11.7237 50.845ZM16.4736 52.11C15.9602 52.11 15.5056 51.9633 15.1096 51.67C14.7209 51.3767 14.4166 50.9293 14.1966 50.328C13.9766 49.7267 13.8666 48.9677 13.8666 48.051C13.8666 47.127 13.9766 46.368 14.1966 45.774C14.4166 45.18 14.7209 44.74 15.1096 44.454C15.5056 44.1607 15.9602 44.014 16.4736 44.014C17.2509 44.014 17.8742 44.3403 18.3436 44.993C18.8202 45.6383 19.0586 46.6503 19.0586 48.029C19.0586 49.4003 18.8202 50.4233 18.3436 51.098C17.8742 51.7727 17.2509 52.11 16.4736 52.11ZM16.4626 51.582C17.0492 51.582 17.5076 51.3033 17.8376 50.746C18.1676 50.1887 18.3326 49.294 18.3326 48.062C18.3326 46.83 18.1712 45.939 17.8486 45.389C17.5259 44.8317 17.0676 44.553 16.4736 44.553C15.8796 44.553 15.4176 44.8317 15.0876 45.389C14.7576 45.939 14.5926 46.83 14.5926 48.062C14.5926 49.294 14.7576 50.1887 15.0876 50.746C15.4176 51.3033 15.8759 51.582 16.4626 51.582ZM22.5214 52.11C22.0081 52.11 21.5534 51.9633 21.1574 51.67C20.7687 51.3767 20.4644 50.9293 20.2444 50.328C20.0244 49.7267 19.9144 48.9677 19.9144 48.051C19.9144 47.127 20.0244 46.368 20.2444 45.774C20.4644 45.18 20.7687 44.74 21.1574 44.454C21.5534 44.1607 22.0081 44.014 22.5214 44.014C23.2987 44.014 23.9221 44.3403 24.3914 44.993C24.8681 45.6383 25.1064 46.6503 25.1064 48.029C25.1064 49.4003 24.8681 50.4233 24.3914 51.098C23.9221 51.7727 23.2987 52.11 22.5214 52.11ZM22.5104 51.582C23.0971 51.582 23.5554 51.3033 23.8854 50.746C24.2154 50.1887 24.3804 49.294 24.3804 48.062C24.3804 46.83 24.2191 45.939 23.8964 45.389C23.5737 44.8317 23.1154 44.553 22.5214 44.553C21.9274 44.553 21.4654 44.8317 21.1354 45.389C20.8054 45.939 20.6404 46.83 20.6404 48.062C20.6404 49.294 20.8054 50.1887 21.1354 50.746C21.4654 51.3033 21.9237 51.582 22.5104 51.582Z" fill="black"/><path d="M143.428 52H142.702V44.993L140.326 46.764V45.972L142.823 44.113H143.428V52ZM148.475 52.11C147.969 52.11 147.518 52.022 147.122 51.846C146.734 51.67 146.426 51.417 146.198 51.087C145.971 50.7497 145.857 50.3463 145.857 49.877C145.857 49.3417 146.015 48.8943 146.33 48.535C146.653 48.1757 147.075 47.9337 147.595 47.809C147.17 47.6917 146.822 47.4827 146.55 47.182C146.279 46.8813 146.143 46.4963 146.143 46.027C146.143 45.5943 146.246 45.2277 146.451 44.927C146.657 44.6263 146.935 44.399 147.287 44.245C147.639 44.091 148.035 44.014 148.475 44.014C148.915 44.014 149.311 44.091 149.663 44.245C150.015 44.3917 150.294 44.6117 150.499 44.905C150.705 45.1983 150.807 45.565 150.807 46.005C150.807 46.4817 150.672 46.8703 150.4 47.171C150.129 47.4717 149.784 47.6807 149.366 47.798C149.872 47.9227 150.279 48.1573 150.587 48.502C150.903 48.8467 151.06 49.294 151.06 49.844C151.06 50.3133 150.947 50.7203 150.719 51.065C150.492 51.4023 150.184 51.6627 149.795 51.846C149.407 52.022 148.967 52.11 148.475 52.11ZM148.475 47.534C148.923 47.534 149.304 47.4093 149.619 47.16C149.942 46.9107 150.103 46.5513 150.103 46.082C150.103 45.5907 149.949 45.213 149.641 44.949C149.333 44.685 148.945 44.553 148.475 44.553C148.013 44.553 147.625 44.685 147.309 44.949C147.001 45.213 146.847 45.5907 146.847 46.082C146.847 46.39 146.921 46.654 147.067 46.874C147.221 47.0867 147.419 47.2517 147.661 47.369C147.911 47.479 148.182 47.534 148.475 47.534ZM148.475 51.582C149.018 51.582 149.465 51.4207 149.817 51.098C150.169 50.7753 150.345 50.3427 150.345 49.8C150.345 49.4333 150.261 49.1217 150.092 48.865C149.931 48.6083 149.707 48.4103 149.421 48.271C149.143 48.1317 148.827 48.062 148.475 48.062C147.933 48.062 147.482 48.216 147.122 48.524C146.763 48.8247 146.583 49.25 146.583 49.8C146.583 50.3427 146.759 50.7753 147.111 51.098C147.471 51.4207 147.925 51.582 148.475 51.582ZM153.06 46.621C152.906 46.621 152.778 46.5733 152.675 46.478C152.58 46.3753 152.532 46.2543 152.532 46.115C152.532 45.9683 152.58 45.8473 152.675 45.752C152.778 45.6567 152.906 45.609 153.06 45.609C153.207 45.609 153.328 45.6567 153.423 45.752C153.526 45.8473 153.577 45.9683 153.577 46.115C153.577 46.2543 153.526 46.3753 153.423 46.478C153.328 46.5733 153.207 46.621 153.06 46.621ZM153.06 50.845C152.906 50.845 152.778 50.7973 152.675 50.702C152.58 50.5993 152.532 50.4747 152.532 50.328C152.532 50.1813 152.58 50.0603 152.675 49.965C152.778 49.8697 152.906 49.822 153.06 49.822C153.207 49.822 153.328 49.8697 153.423 49.965C153.526 50.0603 153.577 50.1813 153.577 50.328C153.577 50.4747 153.526 50.5993 153.423 50.702C153.328 50.7973 153.207 50.845 153.06 50.845ZM157.81 52.11C157.297 52.11 156.842 51.9633 156.446 51.67C156.057 51.3767 155.753 50.9293 155.533 50.328C155.313 49.7267 155.203 48.9677 155.203 48.051C155.203 47.127 155.313 46.368 155.533 45.774C155.753 45.18 156.057 44.74 156.446 44.454C156.842 44.1607 157.297 44.014 157.81 44.014C158.587 44.014 159.211 44.3403 159.68 44.993C160.157 45.6383 160.395 46.6503 160.395 48.029C160.395 49.4003 160.157 50.4233 159.68 51.098C159.211 51.7727 158.587 52.11 157.81 52.11ZM157.799 51.582C158.386 51.582 158.844 51.3033 159.174 50.746C159.504 50.1887 159.669 49.294 159.669 48.062C159.669 46.83 159.508 45.939 159.185 45.389C158.862 44.8317 158.404 44.553 157.81 44.553C157.216 44.553 156.754 44.8317 156.424 45.389C156.094 45.939 155.929 46.83 155.929 48.062C155.929 49.294 156.094 50.1887 156.424 50.746C156.754 51.3033 157.212 51.582 157.799 51.582ZM163.858 52.11C163.345 52.11 162.89 51.9633 162.494 51.67C162.105 51.3767 161.801 50.9293 161.581 50.328C161.361 49.7267 161.251 48.9677 161.251 48.051C161.251 47.127 161.361 46.368 161.581 45.774C161.801 45.18 162.105 44.74 162.494 44.454C162.89 44.1607 163.345 44.014 163.858 44.014C164.635 44.014 165.259 44.3403 165.728 44.993C166.205 45.6383 166.443 46.6503 166.443 48.029C166.443 49.4003 166.205 50.4233 165.728 51.098C165.259 51.7727 164.635 52.11 163.858 52.11ZM163.847 51.582C164.434 51.582 164.892 51.3033 165.222 50.746C165.552 50.1887 165.717 49.294 165.717 48.062C165.717 46.83 165.556 45.939 165.233 45.389C164.91 44.8317 164.452 44.553 163.858 44.553C163.264 44.553 162.802 44.8317 162.472 45.389C162.142 45.939 161.977 46.83 161.977 48.062C161.977 49.294 162.142 50.1887 162.472 50.746C162.802 51.3033 163.26 51.582 163.847 51.582Z" fill="black"/><rect x="16.3438" y="6.5" width="152.094" height="24" fill="#C7E5F4"/><rect x="61.2501" y="6.5" width="91.875" height="24" fill="#4FA6D5"/><line x1="15.3125" y1="0.5" x2="15.3125" y2="34.5" stroke="#4FA6D5" stroke-dasharray="2 2"/><line x1="154.125" y1="0.5" x2="154.125" y2="34.5" stroke="#4FA6D5" stroke-dasharray="2 2"/></svg>
|
`hard_window` = `false`<br/><br/>
 `max_duration_s` = 10 hours (more than the shift window)<br/><br/>
 `flexible_start_time` = `true`||

||
Start the work **strictly** at 9:00, finish **preferably** before 18:00, but **preferably** no later than 19:00 (this combination of parameters corresponds to `time_window` = `9:00 – 19:00`, `max_duration_s` = 9 hours)<br/><br/>
<svg width="169" height="55" viewBox="0 0 169 55" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.10352e-05 34.25L168.438 34.25" stroke="#4FA6D5"/><line x1="15.8126" y1="34.25" x2="15.8126" y2="38.25" stroke="#4FA6D5"/><line x1="31.1251" y1="34.25" x2="31.1251" y2="38.25" stroke="#4FA6D5"/><line x1="46.4376" y1="34.25" x2="46.4376" y2="38.25" stroke="#4FA6D5"/><line x1="61.7501" y1="34.25" x2="61.7501" y2="38.25" stroke="#4FA6D5"/><line x1="77.0626" y1="34.25" x2="77.0626" y2="38.25" stroke="#4FA6D5"/><line x1="92.3751" y1="34.25" x2="92.3751" y2="38.25" stroke="#4FA6D5"/><line x1="107.688" y1="34.25" x2="107.688" y2="38.25" stroke="#4FA6D5"/><line x1="123" y1="34.25" x2="123" y2="38.25" stroke="#4FA6D5"/><line x1="138.313" y1="34.25" x2="138.313" y2="38.25" stroke="#4FA6D5"/><line x1="153.625" y1="34.25" x2="153.625" y2="38.25" stroke="#4FA6D5"/><path d="M4.49886 46.47C4.49886 45.9273 4.61252 45.4543 4.83986 45.051C5.06719 44.6403 5.37519 44.3213 5.76386 44.094C6.15252 43.8667 6.58886 43.753 7.07286 43.753C7.92352 43.753 8.57986 44.0427 9.04186 44.622C9.51119 45.2013 9.74586 46.052 9.74586 47.174C9.74586 48.1127 9.63952 48.934 9.42686 49.638C9.21419 50.342 8.87686 50.8883 8.41486 51.277C7.95286 51.6657 7.35886 51.86 6.63286 51.86C5.96552 51.86 5.41552 51.728 4.98286 51.464V50.892C5.43019 51.1853 5.97286 51.332 6.61086 51.332C7.16819 51.332 7.61919 51.178 7.96386 50.87C8.31586 50.562 8.57986 50.1367 8.75586 49.594C8.93186 49.0513 9.03452 48.428 9.06386 47.724C8.86586 48.164 8.58719 48.4977 8.22786 48.725C7.87586 48.945 7.46886 49.055 7.00686 49.055C6.53752 49.055 6.11219 48.9523 5.73086 48.747C5.34952 48.5343 5.04886 48.2373 4.82886 47.856C4.60886 47.4673 4.49886 47.0053 4.49886 46.47ZM7.09486 44.292C6.75752 44.292 6.44586 44.3763 6.15986 44.545C5.88119 44.7063 5.65752 44.9483 5.48886 45.271C5.32752 45.5863 5.24686 45.9677 5.24686 46.415C5.24686 46.8623 5.32752 47.2437 5.48886 47.559C5.65019 47.867 5.86652 48.1053 6.13786 48.274C6.40919 48.4353 6.70252 48.516 7.01786 48.516C7.37719 48.516 7.69986 48.4353 7.98586 48.274C8.27186 48.1053 8.49552 47.8633 8.65686 47.548C8.82552 47.2327 8.90986 46.8513 8.90986 46.404C8.90986 45.766 8.74486 45.2563 8.41486 44.875C8.09219 44.4863 7.65219 44.292 7.09486 44.292ZM11.7237 46.371C11.5697 46.371 11.4414 46.3233 11.3387 46.228C11.2434 46.1253 11.1957 46.0043 11.1957 45.865C11.1957 45.7183 11.2434 45.5973 11.3387 45.502C11.4414 45.4067 11.5697 45.359 11.7237 45.359C11.8704 45.359 11.9914 45.4067 12.0867 45.502C12.1894 45.5973 12.2407 45.7183 12.2407 45.865C12.2407 46.0043 12.1894 46.1253 12.0867 46.228C11.9914 46.3233 11.8704 46.371 11.7237 46.371ZM11.7237 50.595C11.5697 50.595 11.4414 50.5473 11.3387 50.452C11.2434 50.3493 11.1957 50.2247 11.1957 50.078C11.1957 49.9313 11.2434 49.8103 11.3387 49.715C11.4414 49.6197 11.5697 49.572 11.7237 49.572C11.8704 49.572 11.9914 49.6197 12.0867 49.715C12.1894 49.8103 12.2407 49.9313 12.2407 50.078C12.2407 50.2247 12.1894 50.3493 12.0867 50.452C11.9914 50.5473 11.8704 50.595 11.7237 50.595ZM16.4736 51.86C15.9602 51.86 15.5056 51.7133 15.1096 51.42C14.7209 51.1267 14.4166 50.6793 14.1966 50.078C13.9766 49.4767 13.8666 48.7177 13.8666 47.801C13.8666 46.877 13.9766 46.118 14.1966 45.524C14.4166 44.93 14.7209 44.49 15.1096 44.204C15.5056 43.9107 15.9602 43.764 16.4736 43.764C17.2509 43.764 17.8742 44.0903 18.3436 44.743C18.8202 45.3883 19.0586 46.4003 19.0586 47.779C19.0586 49.1503 18.8202 50.1733 18.3436 50.848C17.8742 51.5227 17.2509 51.86 16.4736 51.86ZM16.4626 51.332C17.0492 51.332 17.5076 51.0533 17.8376 50.496C18.1676 49.9387 18.3326 49.044 18.3326 47.812C18.3326 46.58 18.1712 45.689 17.8486 45.139C17.5259 44.5817 17.0676 44.303 16.4736 44.303C15.8796 44.303 15.4176 44.5817 15.0876 45.139C14.7576 45.689 14.5926 46.58 14.5926 47.812C14.5926 49.044 14.7576 49.9387 15.0876 50.496C15.4176 51.0533 15.8759 51.332 16.4626 51.332ZM22.5214 51.86C22.0081 51.86 21.5534 51.7133 21.1574 51.42C20.7687 51.1267 20.4644 50.6793 20.2444 50.078C20.0244 49.4767 19.9144 48.7177 19.9144 47.801C19.9144 46.877 20.0244 46.118 20.2444 45.524C20.4644 44.93 20.7687 44.49 21.1574 44.204C21.5534 43.9107 22.0081 43.764 22.5214 43.764C23.2987 43.764 23.9221 44.0903 24.3914 44.743C24.8681 45.3883 25.1064 46.4003 25.1064 47.779C25.1064 49.1503 24.8681 50.1733 24.3914 50.848C23.9221 51.5227 23.2987 51.86 22.5214 51.86ZM22.5104 51.332C23.0971 51.332 23.5554 51.0533 23.8854 50.496C24.2154 49.9387 24.3804 49.044 24.3804 47.812C24.3804 46.58 24.2191 45.689 23.8964 45.139C23.5737 44.5817 23.1154 44.303 22.5214 44.303C21.9274 44.303 21.4654 44.5817 21.1354 45.139C20.8054 45.689 20.6404 46.58 20.6404 47.812C20.6404 49.044 20.8054 49.9387 21.1354 50.496C21.4654 51.0533 21.9237 51.332 22.5104 51.332Z" fill="black"/><path d="M143.428 51.75H142.702V44.743L140.326 46.514V45.722L142.823 43.863H143.428V51.75ZM148.475 51.86C147.969 51.86 147.518 51.772 147.122 51.596C146.734 51.42 146.426 51.167 146.198 50.837C145.971 50.4997 145.857 50.0963 145.857 49.627C145.857 49.0917 146.015 48.6443 146.33 48.285C146.653 47.9257 147.075 47.6837 147.595 47.559C147.17 47.4417 146.822 47.2327 146.55 46.932C146.279 46.6313 146.143 46.2463 146.143 45.777C146.143 45.3443 146.246 44.9777 146.451 44.677C146.657 44.3763 146.935 44.149 147.287 43.995C147.639 43.841 148.035 43.764 148.475 43.764C148.915 43.764 149.311 43.841 149.663 43.995C150.015 44.1417 150.294 44.3617 150.499 44.655C150.705 44.9483 150.807 45.315 150.807 45.755C150.807 46.2317 150.672 46.6203 150.4 46.921C150.129 47.2217 149.784 47.4307 149.366 47.548C149.872 47.6727 150.279 47.9073 150.587 48.252C150.903 48.5967 151.06 49.044 151.06 49.594C151.06 50.0633 150.947 50.4703 150.719 50.815C150.492 51.1523 150.184 51.4127 149.795 51.596C149.407 51.772 148.967 51.86 148.475 51.86ZM148.475 47.284C148.923 47.284 149.304 47.1593 149.619 46.91C149.942 46.6607 150.103 46.3013 150.103 45.832C150.103 45.3407 149.949 44.963 149.641 44.699C149.333 44.435 148.945 44.303 148.475 44.303C148.013 44.303 147.625 44.435 147.309 44.699C147.001 44.963 146.847 45.3407 146.847 45.832C146.847 46.14 146.921 46.404 147.067 46.624C147.221 46.8367 147.419 47.0017 147.661 47.119C147.911 47.229 148.182 47.284 148.475 47.284ZM148.475 51.332C149.018 51.332 149.465 51.1707 149.817 50.848C150.169 50.5253 150.345 50.0927 150.345 49.55C150.345 49.1833 150.261 48.8717 150.092 48.615C149.931 48.3583 149.707 48.1603 149.421 48.021C149.143 47.8817 148.827 47.812 148.475 47.812C147.933 47.812 147.482 47.966 147.122 48.274C146.763 48.5747 146.583 49 146.583 49.55C146.583 50.0927 146.759 50.5253 147.111 50.848C147.471 51.1707 147.925 51.332 148.475 51.332ZM153.06 46.371C152.906 46.371 152.778 46.3233 152.675 46.228C152.58 46.1253 152.532 46.0043 152.532 45.865C152.532 45.7183 152.58 45.5973 152.675 45.502C152.778 45.4067 152.906 45.359 153.06 45.359C153.207 45.359 153.328 45.4067 153.423 45.502C153.526 45.5973 153.577 45.7183 153.577 45.865C153.577 46.0043 153.526 46.1253 153.423 46.228C153.328 46.3233 153.207 46.371 153.06 46.371ZM153.06 50.595C152.906 50.595 152.778 50.5473 152.675 50.452C152.58 50.3493 152.532 50.2247 152.532 50.078C152.532 49.9313 152.58 49.8103 152.675 49.715C152.778 49.6197 152.906 49.572 153.06 49.572C153.207 49.572 153.328 49.6197 153.423 49.715C153.526 49.8103 153.577 49.9313 153.577 50.078C153.577 50.2247 153.526 50.3493 153.423 50.452C153.328 50.5473 153.207 50.595 153.06 50.595ZM157.81 51.86C157.297 51.86 156.842 51.7133 156.446 51.42C156.057 51.1267 155.753 50.6793 155.533 50.078C155.313 49.4767 155.203 48.7177 155.203 47.801C155.203 46.877 155.313 46.118 155.533 45.524C155.753 44.93 156.057 44.49 156.446 44.204C156.842 43.9107 157.297 43.764 157.81 43.764C158.587 43.764 159.211 44.0903 159.68 44.743C160.157 45.3883 160.395 46.4003 160.395 47.779C160.395 49.1503 160.157 50.1733 159.68 50.848C159.211 51.5227 158.587 51.86 157.81 51.86ZM157.799 51.332C158.386 51.332 158.844 51.0533 159.174 50.496C159.504 49.9387 159.669 49.044 159.669 47.812C159.669 46.58 159.508 45.689 159.185 45.139C158.862 44.5817 158.404 44.303 157.81 44.303C157.216 44.303 156.754 44.5817 156.424 45.139C156.094 45.689 155.929 46.58 155.929 47.812C155.929 49.044 156.094 49.9387 156.424 50.496C156.754 51.0533 157.212 51.332 157.799 51.332ZM163.858 51.86C163.345 51.86 162.89 51.7133 162.494 51.42C162.105 51.1267 161.801 50.6793 161.581 50.078C161.361 49.4767 161.251 48.7177 161.251 47.801C161.251 46.877 161.361 46.118 161.581 45.524C161.801 44.93 162.105 44.49 162.494 44.204C162.89 43.9107 163.345 43.764 163.858 43.764C164.635 43.764 165.259 44.0903 165.728 44.743C166.205 45.3883 166.443 46.4003 166.443 47.779C166.443 49.1503 166.205 50.1733 165.728 50.848C165.259 51.5227 164.635 51.86 163.858 51.86ZM163.847 51.332C164.434 51.332 164.892 51.0533 165.222 50.496C165.552 49.9387 165.717 49.044 165.717 47.812C165.717 46.58 165.556 45.689 165.233 45.139C164.91 44.5817 164.452 44.303 163.858 44.303C163.264 44.303 162.802 44.5817 162.472 45.139C162.142 45.689 161.977 46.58 161.977 47.812C161.977 49.044 162.142 49.9387 162.472 50.496C162.802 51.0533 163.26 51.332 163.847 51.332Z" fill="black"/><rect x="16.3438" y="6.25" width="152.094" height="24" fill="#C7E5F4"/><rect x="16.3438" y="6.25" width="136.781" height="24" fill="#4FA6D5"/><line x1="15.3125" y1="0.25" x2="15.3125" y2="34.25" stroke="#4FA6D5" stroke-dasharray="2 2"/><line x1="154.125" y1="0.25" x2="154.125" y2="34.25" stroke="#4FA6D5" stroke-dasharray="2 2"/></svg>
|
 `hard_window` = `false`<br/><br/>
 `max_duration_s` = 10 hours (more than the shift window)<br/><br/>
 `flexible_start_time` = `false` ||
||
With this combination of parameters, you won't be able to plan the solution<br/><br/>
<svg width="169" height="56" viewBox="0 0 169 56" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="168.438" height="54.5" transform="translate(6.10352e-05 0.599976)" fill="none"/><path d="M6.10352e-05 34.6L168.438 34.6" stroke="#4FA6D5"/><line x1="15.8126" y1="34.6" x2="15.8126" y2="38.6" stroke="#4FA6D5"/><line x1="31.1251" y1="34.6" x2="31.1251" y2="38.6" stroke="#4FA6D5"/><line x1="46.4376" y1="34.6" x2="46.4376" y2="38.6" stroke="#4FA6D5"/><line x1="61.7501" y1="34.6" x2="61.7501" y2="38.6" stroke="#4FA6D5"/><line x1="77.0626" y1="34.6" x2="77.0626" y2="38.6" stroke="#4FA6D5"/><line x1="92.3751" y1="34.6" x2="92.3751" y2="38.6" stroke="#4FA6D5"/><line x1="107.688" y1="34.6" x2="107.688" y2="38.6" stroke="#4FA6D5"/><line x1="123" y1="34.6" x2="123" y2="38.6" stroke="#4FA6D5"/><line x1="138.313" y1="34.6" x2="138.313" y2="38.6" stroke="#4FA6D5"/><line x1="153.625" y1="34.6" x2="153.625" y2="38.6" stroke="#4FA6D5"/><path d="M4.49886 46.82C4.49886 46.2773 4.61252 45.8043 4.83986 45.401C5.06719 44.9903 5.37519 44.6713 5.76386 44.444C6.15252 44.2166 6.58886 44.103 7.07286 44.103C7.92352 44.103 8.57986 44.3926 9.04186 44.972C9.51119 45.5513 9.74586 46.402 9.74586 47.524C9.74586 48.4626 9.63952 49.284 9.42686 49.988C9.21419 50.692 8.87686 51.2383 8.41486 51.627C7.95286 52.0156 7.35886 52.21 6.63286 52.21C5.96552 52.21 5.41552 52.078 4.98286 51.814V51.242C5.43019 51.5353 5.97286 51.682 6.61086 51.682C7.16819 51.682 7.61919 51.528 7.96386 51.22C8.31586 50.912 8.57986 50.4866 8.75586 49.944C8.93186 49.4013 9.03452 48.778 9.06386 48.074C8.86586 48.514 8.58719 48.8476 8.22786 49.075C7.87586 49.295 7.46886 49.405 7.00686 49.405C6.53752 49.405 6.11219 49.3023 5.73086 49.097C5.34952 48.8843 5.04886 48.5873 4.82886 48.206C4.60886 47.8173 4.49886 47.3553 4.49886 46.82ZM7.09486 44.642C6.75752 44.642 6.44586 44.7263 6.15986 44.895C5.88119 45.0563 5.65752 45.2983 5.48886 45.621C5.32752 45.9363 5.24686 46.3176 5.24686 46.765C5.24686 47.2123 5.32752 47.5936 5.48886 47.909C5.65019 48.217 5.86652 48.4553 6.13786 48.624C6.40919 48.7853 6.70252 48.866 7.01786 48.866C7.37719 48.866 7.69986 48.7853 7.98586 48.624C8.27186 48.4553 8.49552 48.2133 8.65686 47.898C8.82552 47.5826 8.90986 47.2013 8.90986 46.754C8.90986 46.116 8.74486 45.6063 8.41486 45.225C8.09219 44.8363 7.65219 44.642 7.09486 44.642ZM11.7237 46.721C11.5697 46.721 11.4414 46.6733 11.3387 46.578C11.2434 46.4753 11.1957 46.3543 11.1957 46.215C11.1957 46.0683 11.2434 45.9473 11.3387 45.852C11.4414 45.7566 11.5697 45.709 11.7237 45.709C11.8704 45.709 11.9914 45.7566 12.0867 45.852C12.1894 45.9473 12.2407 46.0683 12.2407 46.215C12.2407 46.3543 12.1894 46.4753 12.0867 46.578C11.9914 46.6733 11.8704 46.721 11.7237 46.721ZM11.7237 50.945C11.5697 50.945 11.4414 50.8973 11.3387 50.802C11.2434 50.6993 11.1957 50.5746 11.1957 50.428C11.1957 50.2813 11.2434 50.1603 11.3387 50.065C11.4414 49.9696 11.5697 49.922 11.7237 49.922C11.8704 49.922 11.9914 49.9696 12.0867 50.065C12.1894 50.1603 12.2407 50.2813 12.2407 50.428C12.2407 50.5746 12.1894 50.6993 12.0867 50.802C11.9914 50.8973 11.8704 50.945 11.7237 50.945ZM16.4736 52.21C15.9602 52.21 15.5056 52.0633 15.1096 51.77C14.7209 51.4766 14.4166 51.0293 14.1966 50.428C13.9766 49.8266 13.8666 49.0676 13.8666 48.151C13.8666 47.227 13.9766 46.468 14.1966 45.874C14.4166 45.28 14.7209 44.84 15.1096 44.554C15.5056 44.2606 15.9602 44.114 16.4736 44.114C17.2509 44.114 17.8742 44.4403 18.3436 45.093C18.8202 45.7383 19.0586 46.7503 19.0586 48.129C19.0586 49.5003 18.8202 50.5233 18.3436 51.198C17.8742 51.8726 17.2509 52.21 16.4736 52.21ZM16.4626 51.682C17.0492 51.682 17.5076 51.4033 17.8376 50.846C18.1676 50.2886 18.3326 49.394 18.3326 48.162C18.3326 46.93 18.1712 46.039 17.8486 45.489C17.5259 44.9316 17.0676 44.653 16.4736 44.653C15.8796 44.653 15.4176 44.9316 15.0876 45.489C14.7576 46.039 14.5926 46.93 14.5926 48.162C14.5926 49.394 14.7576 50.2886 15.0876 50.846C15.4176 51.4033 15.8759 51.682 16.4626 51.682ZM22.5214 52.21C22.0081 52.21 21.5534 52.0633 21.1574 51.77C20.7687 51.4766 20.4644 51.0293 20.2444 50.428C20.0244 49.8266 19.9144 49.0676 19.9144 48.151C19.9144 47.227 20.0244 46.468 20.2444 45.874C20.4644 45.28 20.7687 44.84 21.1574 44.554C21.5534 44.2606 22.0081 44.114 22.5214 44.114C23.2987 44.114 23.9221 44.4403 24.3914 45.093C24.8681 45.7383 25.1064 46.7503 25.1064 48.129C25.1064 49.5003 24.8681 50.5233 24.3914 51.198C23.9221 51.8726 23.2987 52.21 22.5214 52.21ZM22.5104 51.682C23.0971 51.682 23.5554 51.4033 23.8854 50.846C24.2154 50.2886 24.3804 49.394 24.3804 48.162C24.3804 46.93 24.2191 46.039 23.8964 45.489C23.5737 44.9316 23.1154 44.653 22.5214 44.653C21.9274 44.653 21.4654 44.9316 21.1354 45.489C20.8054 46.039 20.6404 46.93 20.6404 48.162C20.6404 49.394 20.8054 50.2886 21.1354 50.846C21.4654 51.4033 21.9237 51.682 22.5104 51.682Z" fill="black"/><path d="M143.428 52.1H142.702V45.093L140.326 46.864V46.072L142.823 44.213H143.428V52.1ZM148.475 52.21C147.969 52.21 147.518 52.122 147.122 51.946C146.734 51.77 146.426 51.517 146.198 51.187C145.971 50.8496 145.857 50.4463 145.857 49.977C145.857 49.4416 146.015 48.9943 146.33 48.635C146.653 48.2756 147.075 48.0336 147.595 47.909C147.17 47.7916 146.822 47.5826 146.55 47.282C146.279 46.9813 146.143 46.5963 146.143 46.127C146.143 45.6943 146.246 45.3276 146.451 45.027C146.657 44.7263 146.935 44.499 147.287 44.345C147.639 44.191 148.035 44.114 148.475 44.114C148.915 44.114 149.311 44.191 149.663 44.345C150.015 44.4916 150.294 44.7116 150.499 45.005C150.705 45.2983 150.807 45.665 150.807 46.105C150.807 46.5816 150.672 46.9703 150.4 47.271C150.129 47.5716 149.784 47.7806 149.366 47.898C149.872 48.0226 150.279 48.2573 150.587 48.602C150.903 48.9466 151.06 49.394 151.06 49.944C151.06 50.4133 150.947 50.8203 150.719 51.165C150.492 51.5023 150.184 51.7626 149.795 51.946C149.407 52.122 148.967 52.21 148.475 52.21ZM148.475 47.634C148.923 47.634 149.304 47.5093 149.619 47.26C149.942 47.0106 150.103 46.6513 150.103 46.182C150.103 45.6906 149.949 45.313 149.641 45.049C149.333 44.785 148.945 44.653 148.475 44.653C148.013 44.653 147.625 44.785 147.309 45.049C147.001 45.313 146.847 45.6906 146.847 46.182C146.847 46.49 146.921 46.754 147.067 46.974C147.221 47.1866 147.419 47.3516 147.661 47.469C147.911 47.579 148.182 47.634 148.475 47.634ZM148.475 51.682C149.018 51.682 149.465 51.5206 149.817 51.198C150.169 50.8753 150.345 50.4426 150.345 49.9C150.345 49.5333 150.261 49.2216 150.092 48.965C149.931 48.7083 149.707 48.5103 149.421 48.371C149.143 48.2316 148.827 48.162 148.475 48.162C147.933 48.162 147.482 48.316 147.122 48.624C146.763 48.9246 146.583 49.35 146.583 49.9C146.583 50.4426 146.759 50.8753 147.111 51.198C147.471 51.5206 147.925 51.682 148.475 51.682ZM153.06 46.721C152.906 46.721 152.778 46.6733 152.675 46.578C152.58 46.4753 152.532 46.3543 152.532 46.215C152.532 46.0683 152.58 45.9473 152.675 45.852C152.778 45.7566 152.906 45.709 153.06 45.709C153.207 45.709 153.328 45.7566 153.423 45.852C153.526 45.9473 153.577 46.0683 153.577 46.215C153.577 46.3543 153.526 46.4753 153.423 46.578C153.328 46.6733 153.207 46.721 153.06 46.721ZM153.06 50.945C152.906 50.945 152.778 50.8973 152.675 50.802C152.58 50.6993 152.532 50.5746 152.532 50.428C152.532 50.2813 152.58 50.1603 152.675 50.065C152.778 49.9696 152.906 49.922 153.06 49.922C153.207 49.922 153.328 49.9696 153.423 50.065C153.526 50.1603 153.577 50.2813 153.577 50.428C153.577 50.5746 153.526 50.6993 153.423 50.802C153.328 50.8973 153.207 50.945 153.06 50.945ZM157.81 52.21C157.297 52.21 156.842 52.0633 156.446 51.77C156.057 51.4766 155.753 51.0293 155.533 50.428C155.313 49.8266 155.203 49.0676 155.203 48.151C155.203 47.227 155.313 46.468 155.533 45.874C155.753 45.28 156.057 44.84 156.446 44.554C156.842 44.2606 157.297 44.114 157.81 44.114C158.587 44.114 159.211 44.4403 159.68 45.093C160.157 45.7383 160.395 46.7503 160.395 48.129C160.395 49.5003 160.157 50.5233 159.68 51.198C159.211 51.8726 158.587 52.21 157.81 52.21ZM157.799 51.682C158.386 51.682 158.844 51.4033 159.174 50.846C159.504 50.2886 159.669 49.394 159.669 48.162C159.669 46.93 159.508 46.039 159.185 45.489C158.862 44.9316 158.404 44.653 157.81 44.653C157.216 44.653 156.754 44.9316 156.424 45.489C156.094 46.039 155.929 46.93 155.929 48.162C155.929 49.394 156.094 50.2886 156.424 50.846C156.754 51.4033 157.212 51.682 157.799 51.682ZM163.858 52.21C163.345 52.21 162.89 52.0633 162.494 51.77C162.105 51.4766 161.801 51.0293 161.581 50.428C161.361 49.8266 161.251 49.0676 161.251 48.151C161.251 47.227 161.361 46.468 161.581 45.874C161.801 45.28 162.105 44.84 162.494 44.554C162.89 44.2606 163.345 44.114 163.858 44.114C164.635 44.114 165.259 44.4403 165.728 45.093C166.205 45.7383 166.443 46.7503 166.443 48.129C166.443 49.5003 166.205 50.5233 165.728 51.198C165.259 51.8726 164.635 52.21 163.858 52.21ZM163.847 51.682C164.434 51.682 164.892 51.4033 165.222 50.846C165.552 50.2886 165.717 49.394 165.717 48.162C165.717 46.93 165.556 46.039 165.233 45.489C164.91 44.9316 164.452 44.653 163.858 44.653C163.264 44.653 162.802 44.9316 162.472 45.489C162.142 46.039 161.977 46.93 161.977 48.162C161.977 49.394 162.142 50.2886 162.472 50.846C162.802 51.4033 163.26 51.682 163.847 51.682Z" fill="black"/><rect x="9" y="7" width="152" height="24" fill="#4FA6D5"/><line x1="154.125" y1="0.599976" x2="154.125" y2="34.6" stroke="#E12647"/><line x1="15.3125" y1="0.599976" x2="15.3125" y2="34.6" stroke="#E12647"/></svg>
|
 `hard_window` = `true`<br/><br/>
 `max_duration_s` = 10 hours (more than the shift window)<br/><br/>
 `flexible_start_time` = `true` or `flexible_start_time` = `false` ||
|#

{% endcut %}

{% note info %}

Note that to define multiple shifts, you need multiple Excel fields with an increasing numeric index.

For example. `shifts.0.time_window` refers to the first shift, and `shifts.1.time_window` refers to the second one.

{% endnote %}

**Example**

The request to RouteQ includes one vehicle with three shifts (morning, afternoon, and evening) and three orders, of which one order has a delivery time in the morning, and two others in the evening.

{% note info %}

Note that the RouteQ response will only use the morning and evening shifts, since there are no delivery orders for the day shift.

{% endnote %}

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/5b30b1fe-ec08f161-91823f6c-83d6a609) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/5b30b1fe-ec08f161-91823f6c-83d6a609) ⋅ [View on map](https://yandex.com/courier/mvrp-map#5b30b1fe-ec08f161-91823f6c-83d6a609)

## Multiple courier runs per day  {#vehicle-max-runs}

By default, a courier starts and ends their route at a depot, that is they complete exactly one route during a working day (shift).

If a courier can return to the depot anytime during the work shift to reload additional orders, you can limit the number of runs using one of the parameters:

- `vehicle.shifts.N.max_runs`: The maximum number of runs per shift. The default is 1.

- `vehicle.max_runs`: The maximum number of runs for all the courier's shifts summed up (for example, the courier can perform all the runs in one shift). The number of courier runs can be lower than the number of shifts. The default is 1.

- If none of the parameters are specified, the courier can make as many runs as they have shifts (one run per shift).

{% note info %}

You can use `vehicle.max_runs` or `vehicle.shifts.N.max_runs` in the planning task, but not both parameters at the same time.

At least one shift should be set for the courier.

{% endnote %}


**Example**

The example below uses one vehicle with the limited carrying capacity of 2 tons and three orders with a weight of 0.8 tons. The vehicle is allowed to do two runs. This means that after completing two orders, the vehicle can return to the depot to pick up and deliver another order.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/fedcdbb9-4bc2bf4f-fa971929-b981b7d) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/fedcdbb9-4bc2bf4f-fa971929-b981b7d) ⋅ [View on map](https://yandex.com/courier/mvrp-map#fedcdbb9-4bc2bf4f-fa971929-b981b7d)

### Break before the last run {#rest-between-runs}

The break is set using the `vehicle.extra_wait_before_last_run_s` object. Mind the following:

- The break is scheduled before the last run in the shift.

- The start of the last run is shifted by the specified break time.

#|
||**Parameter** | **Value** | **Example**||
||`extra_wait_before_last_run_s` | Break duration in seconds. | `"extra_wait_before_last_run_s": 2700`

Break time is 45 minutes (2700 seconds).||
|#

**Example**

A courier has two scheduled runs. A one-hour break and a 45-minute break are scheduled between these runs (`extra_wait_before_last_run_s` = 2700).

As a result, two breaks are scheduled:

- 60 minutes in the first run.
- 45 minutes before the start of the second run. As a result, the second run starts 45 minutes later. 

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/ac45d92-4f470ec1-5f39ad60-20c7e4f5) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/ac45d92-4f470ec1-5f39ad60-20c7e4f5) ⋅ [View on map](https://yandex.com/courier/mvrp-map#ac45d92-4f470ec1-5f39ad60-20c7e4f5)

## Limit the number of stops per shift  {#shift-stops}

When planning a route, you can specify the minimum and maximum number of stops in the route. This can be useful, for example, to limit the maximum courier workload per day or, on the contrary, make sure that the courier gets on the route with a certain minimum number of stops.

For this, RouteQ uses the `minimal_stops` and `maximal_stops` shift parameters. You can set the number of stops for each courier. 

The restriction is not strict and may be violated. If the limit on the minimum number of stops is violated, a penalty applies. The penalty is specified in the following shift fields: `penalty.stop_lack.fixed` (for making fewer stops than the minimum number) and `penalty.stop_lack.per_stop` (for each stop missing under the minimum number).

In the same way, if the limit on the maximum number of stops is violated, a penalty applies. The penalty is specified in the following shift fields: `penalty.stop_excess.fixed` (for making more stops than the maximum number) and `penalty.stop_excess.per_stop` (for each stop above the maximum number).

{% note info %}

Usually when you restrict the number of stops, the solution metrics degrade since the solution favors restrictions at the cost of the optimal route.

{% endnote %}

### Unique stops {#minimal-unique-stops}

When using the `minimal_stops` parameter, orders with matching coordinates are considered different stops if they aren't consecutive in the route. For the `minimal_stops` condition to be fulfilled, the algorithm may plan the route to have the courier visit the same address multiple times. 

To avoid repeat visits, use the `minimal_unique_stops` parameter and `penalty.unique_stop_lack.fixed` and `penalty.unique_stop_lack.per_stop` penalties instead of `minimal_stops`. 

The `minimal_unique_stops` parameter considers only orders with unique coordinates, so there won't be any repeat visits planned for the courier. However, orders to the same address may be assigned to different couriers, because such stops are considered different in this case, and the algorithm can use this to enforce the `minimal_unique_stops` limit.

It makes sense to use the `minimal_unique_stops` limit if the route has a lot of multi-orders.

### Stops for non-active couriers {#ignore-min-stops-for-unused}

By default, the `minimal_stops` and `minimal_unique_stops` limits apply to all assigned couriers. When you specify more couriers than necessary, and the `penalty.stop_lack` or `penalty.unique_stop_lack` penalty value is too high, this can result in suboptimal planning. 

To set the minimum number of stops in a shift and build an effective route at the same time, use the option `ignore_min_stops_for_unused` (see [Counting the minimum number of stops for active vehicles only](https://docs.routeq.com/doc/en/vrp/optimization-count.md)).

**Example 1**

In the example, the route is built for 3 couriers who deliver to 15 points. Since there are no restrictions for the route, the route is built the usual way.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/11838b12-e031f2fa-580da0a2-c972bf41) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/11838b12-e031f2fa-580da0a2-c972bf41) ⋅ [View on map](https://yandex.com/courier/mvrp-map#11838b12-e031f2fa-580da0a2-c972bf41)

**Example 2**

This example has the same conditions as example 1, but sets the limit of 4 minimum stops per courier. As a result, the routes changed so that each courier visited at least 4 delivery locations.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/b047dde9-68385061-f63d36a1-d4fee317) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/b047dde9-68385061-f63d36a1-d4fee317) ⋅ [View on map](https://yandex.com/courier/mvrp-map#b047dde9-68385061-f63d36a1-d4fee317)

**Example 3**

This example has the same conditions as example 1, but sets the limit of 5 maximum stops per courier. As a result, orders are distributed evenly among all couriers, even though several orders are located next to each other and can be completed by one courier.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/350b1d5e-3f98f16c-5fecb6db-463afe14) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/350b1d5e-3f98f16c-5fecb6db-463afe14) ⋅ [View on map](https://yandex.com/courier/mvrp-map#350b1d5e-3f98f16c-5fecb6db-463afe14)


## Maximum shift duration  {#shift-duration}

Sometimes you may need to extend the courier's working hours. But you also need to limit the maximum shift length and set the window you want to fit into. For example, there's a specific 14-hour time window during which couriers can make deliveries: from 8:00 to 22:00. However, the duration of each courier's shift must not exceed 10 hours (`max_duration_s`), and there should be no more than 8 working hours per shift (`max_working_duration_s`).    

RouteQ helps you schedule shifts with hard time windows and preferred lengths. In this case, the courier's shift length doesn't affect the work start time. It only affects the time that they spend completing orders.

The maximum shift length can be set as a soft restriction `shifts.N.max_duration_s` that can be violated for a penalty or as a hard restriction `shifts.N.hard_max_duration_s` that can't be violated:

- When planning with a soft restriction, the workload that doesn't fit into one courier's preferred shift is distributed among others or to the same courier, but with penalties for violating the shift length. All orders that can't be completed in `max_duration_s` are added to the route with the penalty specified in the `shift.penalty.late` field (if applicable) or in the `shift.penalty.out_of_time` field all other times. The total route penalty for violating the maximum shift length is shown in the API response in the `overtime_penalty` field. If the estimated order cost including penalties is higher than the cost of completing the order by another courier, the order is handed over to another courier.

- When planning with a hard restriction, the courier's shift never exceeds the `hard_max_duration_s` value.

The maximum working time per shift can also be defined by a soft restriction `shifts.N.max_working_duration_s` or hard restriction `shifts.N.hard_max_working_duration_s`.

- If the courier violates a soft restriction, the workload is redistributed to other couriers or given back to the same courier, but with penalties. Orders that are not completed within the shift's working time `max_working_duration_s` will be added to the route with a penalty `working_overtime`:

    - `shifts.N.penalty.working_overtime.fixed`: Penalty for exceeding the maximum working time per shift.

    - `shifts.N.penalty.working_overtime.minute`: Penalty for each minute of such overtime.
    
    If the penalty value isn't specified, the penalty for violating the time window `shift.penalty.out_of_time` will be applied to the orders. You can find the total penalty amount in the `working_overtime_penalty` field of the API response. The order will be transferred to another courier if the estimated cost of the order (including penalties) exceeds the cost of completing the order with another courier.

- When planning with a hard restriction, the maximum duration of working time per shift never exceeds the value specified in `hard_max_working_duration_s`.

If you use both soft and hard restrictions for `max_duration_s` and `max_working_duration_s`, the hard one can't be lower than the soft one. By default, `max_duration_s` and `max_working_duration_s` are set to 2 days, while `hard_max_duration_s` and `hard_max_working_duration_s` are set to 30 days.

**Example 1**

Let's say the shift window `shifts.N.time_window` is from 8:00 to 23:00. By default, routes will be built to use the minimum number of couriers.

If you specify `max_duration_s` = 14400, the load is distributed between couriers, and each of them works for approximately 4 hours (the shift length is set in seconds). Some couriers may still work more than 4 hours, because it's less costly to pay for extra hours than to hand over the order to another courier.

As a result of planning, orders are distributed among three couriers. One courier's shift went over 4 hours. The penalty amount is shown in the API response in the `overtime_penalty` field.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/df538b6f-fcfdef29-905bfff2-2026c242) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/df538b6f-fcfdef29-905bfff2-2026c242) ⋅ [View on map](https://yandex.com/courier/mvrp-map#df538b6f-fcfdef29-905bfff2-2026c242)

**Example 2**

The same as in Example 1, but with hard restrictions on the maximum shift length: `hard_max_duration_s` = 14400. When planning, all couriers are given shifts that are 4 hours or less. As a result, the number of couriers increased to 4.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/c128465f-b5b6183a-742a5ecb-c487b20f) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/c128465f-b5b6183a-742a5ecb-c487b20f) ⋅ [View on map](https://yandex.com/courier/mvrp-map#c128465f-b5b6183a-742a5ecb-c487b20f)

**Example 3**

Three couriers are delivering 26 orders. The shift window `shifts.N.time_window` is 8:00 to 23:00. Penalties are set for exceeding the maximum working time per shift: `shifts.N.penalty.working_overtime.fixed` for overtime, and `shifts.N.penalty.working_overtime.minute` for overtime per minute. 

If you specify `shifts.0.max_working_duration_s` = 14,400, each courier will work for approximately 4 hours. The restriction is soft, and one courier worked overtime.

As a result of the planning, all orders are distributed among couriers, and the total penalty amount for overtime is indicated in the field `working_overtime_penalty` of the API response. 

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/52de0997-7584e652-2b690f8b-d6aae033) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/52de0997-7584e652-2b690f8b-d6aae033) ⋅ [View on map](https://yandex.com/courier/mvrp-map#52de0997-7584e652-2b690f8b-d6aae033)

**Example 4**

Same as in Example 3, but with a hard restriction on the maximum working time per shift `shifts.N.hard_max_working_duration_s` = 14,400.

As a result of planning, all couriers are busy and work for a maximum of 4 hours. However, one of the orders remains unassigned.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/19c4f69-d64c6dc4-b1ec98f3-e9269ef5) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/19c4f69-d64c6dc4-b1ec98f3-e9269ef5) ⋅ [View on map](https://yandex.com/courier/mvrp-map#19c4f69-d64c6dc4-b1ec98f3-e9269ef5)


## Maximum mileage per shift  {#shift-mileage}

In some cases, you need to limit the mileage per vehicle. For example:

- The planning includes hired cars, and their rate implies limited mileage.

- You can assign specific vehicles for far-away points. Then you can limit the mileage for other vehicles.


The `shifts.max_mileage_km` parameter determines the maximum vehicle mileage per shift. The entire mileage is taken into account, including:

- Traveling from the depot or starting point to the first point from the order list.

- Returning to the depot or end point of the route from the last point in the order list.


The restriction is soft: the algorithm may violate it. Penalties are set in the fields:

- `shifts.penalty.max_mileage.fixed`: A fixed penalty for exceeding the maximum mileage (1000 by default).

- `shifts.penalty.max_mileage.km`: A penalty per each kilometer in excess of the maximum mileage (100 by default).


If the maximum mileage per run is critical to you, and the vehicle can do several runs per shift, you can create multiple identical shifts (see **Example 2**).

If the courier uses [public transit](#routing-mode), only the walking part of the route is returned as the mileage.

**Example 1**

The mileage limit per courier is 50 km, with a big penalty for violating this restriction. In the result, the planned mileage on any route doesn't exceed 50 km.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/2baffdf7-e330bef-9c22aa4c-13af933c) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/2baffdf7-e330bef-9c22aa4c-13af933c) ⋅ [View on map](https://yandex.com/courier/mvrp-map#2baffdf7-e330bef-9c22aa4c-13af933c)

**Example 2**

There's one courier and each of their runs should be no more than 50 km. To achieve this, the courier has several shifts with the same time windows and mileage restrictions. The result includes 3 routes, each one less than 50 km long.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/6852b43a-d2b1c520-28f07322-9515b082) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/6852b43a-d2b1c520-28f07322-9515b082) ⋅ [View on map](https://yandex.com/courier/mvrp-map#6852b43a-d2b1c520-28f07322-9515b082)


## Limit the mileage and number of stops per run {#ride-limitations}

Sometimes you might need to restrict the mileage and number of stops for a specific run in the route. 

To set a mileage limit, go to the **Vehicles** sheet and specify the maximum allowed mileage per run in kilometers in the `shifts.N.run_restrictions.max_mileage_km.value` field. If necessary, add penalties for exceeding the limit using the following fields:

* `shifts.N.run_restrictions.max_mileage_km.penalty.fixed`: The penalty for exceeding the maximum mileage (defaults to 1000).

* `shifts.N.run_restrictions.max_mileage_km.penalty.km`: The penalty for each kilometer in excess of the maximum mileage (defaults to 100).

To limit the number of stops in the run, specify values for the following parameters on the **Vehicles** sheet:

* `shifts.N.run_restrictions.maximal_stops.value`: The maximum number of stops.

* `shifts.N.run_restrictions.minimal_stops.value`: The minimum number of stops.

Penalties can be imposed for violating the limit on the number of stops. If necessary, specify penalty values in the following fields:

* `shifts.N.run_restrictions.maximal_stops.penalty.fixed`: The penalty for exceeding the maximum number of stops (defaults to 1000). 

* `shifts.N.run_restrictions.maximal_stops.penalty.per_stop`: The penalty for each extra stop (defaults to 100).

* `shifts.N.run_restrictions.minimal_stops.penalty.fixed`: The penalty for violating the minimum number of stops (defaults to 1000). 

* `shifts.N.run_restrictions.minimal_stops.penalty.per_stop`: The penalty for each missing stop (defaults to 100).

**Example 1**

A courier must deliver 10 orders. There are no restrictions on the mileage and number of stops in the run.

As a result, the courier delivers all the orders in 1 run.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/663e15c2-ad3b513-2158b7c2-18169e3f) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/663e15c2-ad3b513-2158b7c2-18169e3f) ⋅ [View on map](https://yandex.com/courier/mvrp-map#663e15c2-ad3b513-2158b7c2-18169e3f)

**Example 2**

Same as example 1 except for the first shift runs, where the following restrictions on the maximum number of stops are set:
* `shifts.0.run_restrictions.maximal_stops.value` = 1
* `shifts.0.run_restrictions.maximal_stops.penalty.fixed` = 1 000 000
* `shifts.0.run_restrictions.maximal_stops.penalty.per_stop` = 1 000

The penalties are so high that it's unprofitable to violate the stop restrictions. As a result, the courier delivers the orders in 2 runs. In the first run they deliver order 8, and in the second run they deliver all the remaining orders.        

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/e09509eb-3bb43c5c-c01ca72f-ebabf72c) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/e09509eb-3bb43c5c-c01ca72f-ebabf72c) ⋅ [View on map](https://yandex.com/courier/mvrp-map#e09509eb-3bb43c5c-c01ca72f-ebabf72c)

**Example 3**

Same as example 2 except for the first shift runs, where the penalties for exceeding the maximum number of stops (`shifts.0.run_restrictions.maximal_stops.penalty.fixed` and `shifts.0.run_restrictions.maximal_stops.penalty.per_stop`) are no longer used. The run has the following restriction: `shifts.0.run_restrictions.maximal_stops.value` = 1.

Plus, the cost of one run (3000) is added to the `cost.run` field.

As a result, the courier delivers all the orders in 1 run. Under the given conditions, it's more profitable to violate the restriction and get a penalty than to split the orders into several runs. The penalty amount is 1100, where 1000 is the default value for `shifts.0.run_restrictions.maximal_stops.penalty.fixed` and 100 is the default value for `shifts.0.run_restrictions.maximal_stops.penalty.per_stop`.      

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/dc8f087b-affae9dc-4f0170df-473390d9) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/dc8f087b-affae9dc-4f0170df-473390d9) ⋅ [View on map](https://yandex.com/courier/mvrp-map#dc8f087b-affae9dc-4f0170df-473390d9)


## Route density {#route-proximity}

To set the preferred area of work for a vehicle so that the route includes orders near a certain location, use the `global_proximity_attraction_point` parameter. In the parameter value, specify the location `id` with the `garage` type. This is used as a hotspot: the algorithm aims to reduce the total distance between orders on the route and this location.

The density of routes around the hotspot is determined by the `options.global_proximity_factor` option: the greater its value, the denser the routes are. For more information about this option, see [Dense routes](https://docs.routeq.com/doc/en/vrp/grouping-routes.md).

The maximum distance from the route locations to the hotspot is stored in the `max_distance_to_attraction_point_m` parameter, which can be used to calculate the [cost of the route](#max-distance-to-attraction-point-m). The total sum of distances from all orders to the hotspot on the route affects the penalty for inadequate route grouping.

{% cut "Other ways to group orders geographically" %}

- You can use the `global_proximity_factor` option to build [dense routes](https://docs.routeq.com/doc/en/vrp/grouping-routes.md) without setting a “hotspot”. This option only works for vehicles that don't have the `global_proximity_attraction_point` parameter set.
- By using [geofences](#geozones) for vehicles, you can set restrictions on delivery zones. While geofence restriction can't be violated, route density settings are a more flexible tool.

{% endcut %}

**Example 1**

Three vehicles have to deliver 15 orders. The route is calculated based on the order weight and vehicle capacity. There are no other restrictions on the route.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/9b6d127d-4c840689-4c039f34-33581bc2) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/9b6d127d-4c840689-4c039f34-33581bc2) ⋅ [View on map](https://yandex.com/courier/mvrp-map#9b6d127d-4c840689-4c039f34-33581bc2)

**Example 2**

The same as in example 1, but each courier has a set hotspot that shows their preferred area of work. As a result, the routes are more dense. The maximum distance from the order to the hotspot on the route is 20,663 m.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/afea8c56-ac603463-5c6bc57a-fb1c0878) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/afea8c56-ac603463-5c6bc57a-fb1c0878) ⋅ [View on map](https://yandex.com/courier/mvrp-map#afea8c56-ac603463-5c6bc57a-fb1c0878)

**Example 3**

The same as in example 2, but one of the couriers has a different hotspot. Because orders are regrouped, the location of routes on the map has changed. The maximum distance from the order to the hotspot increased to 28,528 m.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/80ce390a-e5c3ed62-3ea846c2-e2aaa95) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/80ce390a-e5c3ed62-3ea846c2-e2aaa95) ⋅ [View on map](https://yandex.com/courier/mvrp-map#80ce390a-e5c3ed62-3ea846c2-e2aaa95)


## Planned route {#planned-route}

The user can specify which courier should deliver particular orders. This is useful:

- For [additional planning](https://docs.routeq.com/doc/en/vrp/additional-planning.md) when you have pre-planned routes.

- When the order requires a specific courier.

To specify pre-planned orders for the courier, use the `vehicle.planned_route` option. This option has the following properties:

- When planning, all orders that you specify in `vehicle.planned_route` can't become unassigned, even if strict restrictions are violated, such as vehicle capacity or time windows for which `hard_window` = `true`.

- By default, the order sequence set in `planned_route` isn't fixed. When re-planning, orders can be arranged in a new sequence.

- If you need to save the route that's specified in `planned_route` without saving changes (sequence changes and adding new orders), use `vehicle.fixed_planned_route` = `true`.


For each order in `planned_route`, be sure to specify the vehicle shift (even if the vehicle only has 1 shift).

If in `planned_route` several shifts are specified, you can lock orders for shifts using the `fix_planned_shifts` = `true` option. By default, the value is `false`.

If a courier arrives too early, delivery time of the order is determined by the `vehicle.wait_if_early` parameter:

- `true`: The courier waits for the order time window to start (default value).
- `false`: The courier handles the order as soon as they arrive.

{% note alert %}

If there is only a hard time window `location.hard_window` = `true` for an order, the `vehicle.wait_if_early` parameter with the `false` value won't affect the order delivery.

{% endnote %}

If the courier needs to visit [depots for reloading](#visit-additional-depot) while following the route, specify them in the `middle_depot_id` field. They may be the same as the depots the courier visits at the start or at the end of the route. 

If the courier needs to visit depots for reloading in `planned_route`, set `is_middle_depot` = `true` (it's `false` by default). If you set `is_middle_depot` = `true` for all depots, the algorithm will plan the start and end depots based on the courier settings (see sections [Start from one of multiple depots](https://docs.routeq.com/doc/en/vrp/properties-of-vehicles-depot.md#start-from-any) and [Returning to a depot at the end of the route or run](https://docs.routeq.com/doc/en/vrp/properties-of-vehicles-depot.md#return-to-depot)).

**Example 1**

Both couriers had pre-planned orders in `planned_route`. As a result, these orders were given to these two couriers.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/6aa1d440-bff2d49-b86afbee-1900f44f) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/6aa1d440-bff2d49-b86afbee-1900f44f) ⋅ [View on map](https://yandex.com/courier/mvrp-map#6aa1d440-bff2d49-b86afbee-1900f44f)

**Example 2**

This example involves 1 vehicle that has orders linked to it via `planned_route`. The total weight of the orders exceeds the vehicle capacity, but the route is still being planned (because orders specified in this option can't be unallocated). But the ask status is `UNFEASIBLE`.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/bbdfd67f-24b1190e-3e0a9aed-9b9ded7b) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/bbdfd67f-24b1190e-3e0a9aed-9b9ded7b) ⋅ [View on map](https://yandex.com/courier/mvrp-map#bbdfd67f-24b1190e-3e0a9aed-9b9ded7b)

**Example 3**

Theoretically, 2 couriers could deliver all 20 orders without overload and without being late. But a fixed sequence is specified for courier 1 using the `vehicle.fixed_planned_route` = `true` parameter, so they'll only deliver orders from this sequence. Courier 2 isn't limited by a strict plan, so they'll take as many orders as they can carry. Several orders will remain in the depot, despite the fact that courier 1 has the space and time.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/a838532d-b63f0770-34e8ca86-52241b38) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/a838532d-b63f0770-34e8ca86-52241b38) ⋅ [View on map](https://yandex.com/courier/mvrp-map#a838532d-b63f0770-34e8ca86-52241b38)

**Example 4.1**

2 couriers need to deliver 15 orders in 2 shifts. Using the `planned_route` option, orders 1-8 are assigned to courier 1, and orders 9-15 to courier 2. At the same time, it's indicated that orders 1-4 and 9-12 must be delivered during the first shift, and orders 5-8 and 13-15 during the second shift. Since `fix_planned_shifts` = `false` and couriers manage to deliver all orders within one shift, the distribution of orders by shifts is not taken into account.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/89cf9a98-4114ebbc-306feb86-d051a8b) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/89cf9a98-4114ebbc-306feb86-d051a8b) ⋅ [View on map](https://yandex.com/courier/mvrp-map#89cf9a98-4114ebbc-306feb86-d051a8b)

**Example 4.2**

The conditions are the same as in example 4.1, but the option `fix_planned_shifts` = `true`. This means the shifts during which orders have to be delivered are taken into account.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/f4927523-de7e2964-84a36f34-1d0e823d) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/f4927523-de7e2964-84a36f34-1d0e823d) ⋅ [View on map](https://yandex.com/courier/mvrp-map#f4927523-de7e2964-84a36f34-1d0e823d)


## Fixed part of the route  {#visited-locations}

The `visited_locations` feature is useful if:

- The beginning of route must follow a particular path.

- You need to change the start point when doing [additional planning](https://docs.routeq.com/doc/en/vrp/additional-planning.md).


The route must be fixed for each courier individually.

To do this, specify the `visited_locations` array in `vehicles` and describe the points of the fixed route using the following parameters.

#|
||**Parameter** | **Description**||
||`id`* | Order ID from `locations` or depot ID from `depots`. Please note that the order and depot IDs must be different.||
||`shift_id` | ID of the courier shift from `vehicle.shifts`. Determines the shift in which to serve this point.||
||`time` | The time of departure from the point. If the first point of a fixed part of the route:

 - Has a specified time, that's the starting point.
 - Has no specified time, the route starts from the depot, and the start of work is calculated according to the depot or shift window.

 You can specify this parameter for several orders, so that the visit time is calculated according to the time specified in `time`.||
||`wait_if_early` | The need to wait for the start of the time window in case of early arrival.

- Its default value is`true`, meaning that the courier will wait for the start of the time window.
- If you specify `false`, the courier will start service immediately after arrival.||
|#

\* Required parameter

**Example 1**

There are 5 orders in this example. The sequence of orders 1, 2, 3 is fixed in `visited_locations`. Orders 4 and 5 can be delivered in any sequence.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/ee4315ef-ad6907c3-1e3caf-ae4a9b88) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/ee4315ef-ad6907c3-1e3caf-ae4a9b88) ⋅ [View on map](https://yandex.com/courier/mvrp-map#ee4315ef-ad6907c3-1e3caf-ae4a9b88)

**Example 2**

In `visited_locations`, it's specified that the route must start with order 2 at 10:00.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/b72a3c31-d08ce81d-dd965f31-9b143db3) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/b72a3c31-d08ce81d-dd965f31-9b143db3) ⋅ [View on map](https://yandex.com/courier/mvrp-map#b72a3c31-d08ce81d-dd965f31-9b143db3)

**Example 3**

The order sequence 1, 2, 3 is set as in example 1. It's also specified that departure from order 1 must be at 08:20 and from order 3 at 11:00.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/87d9729b-6d6d8d12-7e59415e-8eded514) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/87d9729b-6d6d8d12-7e59415e-8eded514) ⋅ [View on map](https://yandex.com/courier/mvrp-map#87d9729b-6d6d8d12-7e59415e-8eded514)

**Example 4**

There are 8 orders in this example. The specified sequence is orders 1, 2, 3, then the depot, then order 4. The courier may deliver the remaining orders in any sequence.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/d50df3d9-3507050c-d748c21e-bcc23db3) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/d50df3d9-3507050c-d748c21e-bcc23db3) ⋅ [View on map](https://yandex.com/courier/mvrp-map#d50df3d9-3507050c-d748c21e-bcc23db3)

{% include [warehouse-feedback](_includes/feedback-81845556eeea.md) %}
