Versions Compared

Key

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

First, learn about Dimensions Categories and Hierarchies in the Optimization Engine at Main Concepts for Optimization Problems.

...

The problem description starts with enumerating the hierarchies of dimensions categories used in the problem. Dimensions Categories are sorted from the finest grain to the larger grain.

...

  • Each customer belongs to a customer_group and an unrelated customer_country.

  • Each product belongs to a product_family which itself belongs to a product_group.

  • shipping_mode is a dimension category without any hierarchical relation to any other dimensioncategory.

Code Block
languageyaml
hierarchies:
- [customer, customer_group]
- [customer, customer_country]
- [product, product_family, product_group]
- [shipping_mode]

All the dimensions, in their correct hierarchies, are to be defined. They are used in the spaces definitions.

...

Appsplus tabs lite macro
data{"theme":"custom","features":["active","rounded","border","titles","ripples"],"padding":10,"height":230,"tabFont":"Atlassian","tabSize":15,"tabBold":true,"tabItalic":false,"tabUnderline":false,"tabColor":"#ffffff","tabColorBG":"#172b4d","type":"scrollable","opacity":100,"activeColor":"#ffffff","activeColorBG":"#0052cc","borderWidth":1,"borderColor":"#ebecf0","radius":5,"hoverColor":"#ffffff","hoverColorBG":"#0052cc","iconSize":"medium","iconInline":true,"iconPrimary":"#ffffff","iconSecondary":"#172b4d","separatorWidth":1,"separatorColor":"#42526E","indicatorPercent":5,"indicatorColor":"#ff5630","indicatorColorBG":"#0052cc","hide":false,"vertical":false,"preload":true,"animate":false,"uuid":"LNdiKOCeLy","isNew":false,"loaded":false,"attachmentId":"att4241358936"}

All categories used as dimensions in any space description must be present in the hierarchy list.

Note: Sometimes, from the end-user point of view, the customer group is hierarchical with the country: “wholesales/UK” is not the same group of customers as “wholesales/CZ” for instance. But if the customer group has the same name in both countries, like “wholesales”, it is not a hierarchy, it is a cartesian product. A hierarchy would be with the values “UK” and “CZ” for the countries and “wholesales-UK”, “wholesales-CZ”, “retail-CZ“ for the customer groups.