Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Exemplo com parâmetros obrigatórios:

Code Block
languagejson
"operations": [
    {
        "customerSite": "MERCADO02GLICERIO",
        "depotSite": "DEPOSITO01",
        "type": "DELIVERY",
        "customerTimeWindows": [
            {
                "end": 1583506800000,
                "start": 1583499600000
            }
        ],
        "id": "NUMORDEM30",
        "product": "HD_DIVERSOS",
        "volume": 1,
        "weight": 0.15
    },
    {
        "customerSite": "MERCADO10SCAETANO",
        "depotSite": "DEPOSITO01",
        "type": "DELIVERY",
        "customerTimeWindows": [
            {
                "end": 1583528400000,
                "start": 1583492400000
            }
        ],
        "id": "NUMORDEM27",
        "product": "HD_DIVERSOS",
        "volume": 1,
        "weight": 0.15
    }
]

...

Ambas operações são do mesmo "group": "A" e serão atendidos pelo "preAllocatedVehicleName": "VUC01".

Code Block
languagejson
"operations": [
    {
        "customerSite": "MERCADO01MOOCA",
        "depotSite": "DEPOSITO01",
        "preAllocatedVehicleName": "VUC01",
        "priority": 20,
        "type": "DELIVERY",
        "customerTimeWindows": [
            {
                "start": 1583499600000,
                "end": 1583506800000
            }
        ],
        "depotTimeWindows": [
            {
                "start": 1583503200000,
                "end": 1583506800000
            }
        ],
        "depotHandlingDuration": 600,
        "id": "NUMORDEM25",
        "product": "HD_DIVERSOS",
        "volume": 12,
        "weight": 1,
        "quantity": 10,
        "group": "A"
    },
    {
        "customerSite": "MERCADO02GLICERIO",
        "depotSite": "DEPOSITO01",
        "preAllocatedVehicleName": "VUC01",
        "type": "DELIVERY",
        "customerTimeWindows": [
            {
                "start": 1583499600000,
                "end": 1583506800000
            }
        ],
        "customerHandlingDuration": 300,
        "id": "NUMORDEM30",
        "product": "HD_DIVERSOS",
        "volume": 1,
        "weight": 0.15,
        "group": "A"
    }
],

...

Para o bom funcionamento do parâmetro priority, é necessário que o optimization profile tenha os seguintes parâmetros ativados e configurados conforme a necessidade do negócio:

1- Em "valorization" é possível utilizar "NB_REJECTS_PER_PRIORITIES" e "CRITICAL_PRIORITY_RESPECTED" como fator para valorizar as operações com prioridade. O "NB_REJECTS_PER_PRIORITIES" minimiza as operações rejeitadas conforme a prioridade. O "CRITICAL_PRIORITY_RESPECTED" minimiza a sobreposição da prioridade crítica cujo valor é definido nos parâmetros 1764 e 1959.

Code Block
        "valorization": [
            [
                "NB_REJECTS_PER_PRIORITIES"
            ],
            [
                "CRITICAL_PRIORITY_RESPECTED"
            ]
        ]  

 

2- Em LogisticFeatures é necessário ter preenchido priorityManagementType com DECREASING_MANAGEMENT ou GROWING_MANAGEMENT para definir a escala de prioridade para ser crescente ou decrescente:

Code Block
    "logisticFeatures": {
        "priorityManagementType": "DECREASING_MANAGEMENT"
    },

 

3-Em parâmetros do solver, seguintes parâmetros configuram como são utilizadas as prioridades. Vai variar conforme o valor da prioridade usada pelo usuário em Operations. Neste exemplo foi considerado o valor 100 para a operações de mais alta prioridade.

1763=100 - Brackets of priorities. This parameter specifies the way to group the similar priorities.
1764=100 - Level of the critical priority. When the solution's valorization is to minimize the overrun of the critical priority, this parameter specifies the level of the critical priority.
1787=100 - Highest priority level to assign to operations to meet a certification requirement in a problem with production constraints and priorities. In a production management context with prioritized operations, this parameter gives the highest priority level to assign to operations that meet a certification requirement.
1959=100 - Critical priority level for operations. This parameter specifies the level up to which operations are considered important in the context of rejected operations valorization by priority level.

Code Block
"parameters": {
        "1763": {
            "value": "100"
        },
        "1764": {
            "value": "100"
        },
        "1787": {
            "value": "100"
        },
		"1959": {
            "value": "100"
        }
}

 . Ver mais em: https://maplinkdev.atlassian.net/wiki/spaces/mp2021/pages/1893498948/Optimization+Profile#Par%C3%A2metros-usados-para-considerar-prioridade%3A

Parâmetros não testados:

 

...