SolverTech.Tasha.PlugIns.Commands.PostImportJobsCompute
Plik konfiguracyjny do obliczeń kolumn po imporcie danych. Zazwyczaj stosuje się go do obliczeń, w których wymagany jest obliczony dystans (moduł kurierski, szczególnie cennik TopTrans).
Przykład 1: Z importowanego popytu (ładowanie) Chcę obliczyć czas trwania (ładowanie)
<string>zatrzymuje[0].czas trwania;zatrzymuje[0].demand1;;3*zatrzymuje[0].demand1</string>
Przykład 2: jeśli odległość jest mniejsza niż 100 km, wynik bezobsługowej kary wynosi 20-krotność obciążenia1, jeśli jest większy niż 100 km, a następnie 68-krotność odległości
<string>notservedpenalty;stops[0].demand1;distance;;distance<100?20*stops[0].demand1:distance*68</string>
Syntax
ścieżka [x]. kolumna do obliczenia;ścieżka [x]. zmienna 1;ścieżka [x]. zmienna 2;;warunek''''
Następnie wykonuje się obliczenia, naciskając przycisk "Obliczanie zamówień"
Strona główna (Zamówienia) → Polecenia → Obliczenia zamówienia
Przykładowy kod:
<?xml version="1.0" encoding="utf-8"?> <PostImportJobsComputeSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Equations> <string>cenatoptranscz;cenatoptranscz;cenatt700cz;distance;;distance<701?cenatt700cz:cenatoptranscz</string> <string>cenatoptranscz;cenatoptranscz;cenatt600cz;distance;;distance<601?cenatt600cz:cenatoptranscz</string> <string>cenatoptranscz;cenatoptranscz;cenatt500cz;distance;;distance<501?cenatt500cz:cenatoptranscz</string> <string>cenatoptranscz;cenatoptranscz;cenatt400cz;distance;;distance<401?cenatt400cz:cenatoptranscz</string> <string>cenatoptranscz;cenatoptranscz;cenatt300cz;distance;;distance<301?cenatt300cz:cenatoptranscz</string> <string>cenatoptranscz;cenatoptranscz;cenatt200cz;distance;;distance<201?cenatt200cz:cenatoptranscz</string> <string>cenatoptranscz;cenatoptranscz;cenatt100cz;distance;;distance<101?cenatt100cz:cenatoptranscz</string> <string>cenatoptranssk;cenatoptranssk;cenatt900sk;distance;;distance<901?cenatt900sk:cenatoptranssk</string> <string>cenatoptranssk;cenatoptranssk;cenatt800sk;distance;;distance<801?cenatt800sk:cenatoptranssk</string> <string>cenatoptranssk;cenatoptranssk;cenatt700sk;distance;;distance<701?cenatt700sk:cenatoptranssk</string> <string>cenatoptranssk;cenatoptranssk;cenatt600sk;distance;;distance<601?cenatt600sk:cenatoptranssk</string> <string>cenatoptranssk;cenatoptranssk;cenatt500sk;distance;;distance<501?cenatt500sk:cenatoptranssk</string> <string>cenatoptranssk;cenatoptranssk;cenatt400sk;distance;;distance<401?cenatt400sk:cenatoptranssk</string> <string>cenatoptranssk;cenatoptranssk;cenatt300sk;distance;;distance<301?cenatt300sk:cenatoptranssk</string> <string>cenatoptranssk;cenatoptranssk;cenatt200sk;distance;;distance<201?cenatt200sk:cenatoptranssk</string> <string>cenatoptranssk;cenatoptranssk;cenatt100sk;distance;;distance<101?cenatt100sk:cenatoptranssk</string> <string>cenatoptrans;slovensko;cenatoptranscz;cenatoptranssk;;slovensko==1?cenatoptranssk:cenatoptranscz</string> </Equations>
</PostImportJobsComputeSettings>