Adding Sourcing Rules via the Model Element Tables (Simulation)

In a supply chain model, sourcing policies describe how network components create and order necessary materials. In Cosmic Frog, sourcing policies and rules appear in two different table categories:

  • In the Customers and Facilities tables in the Model Elements category, users can define several sourcing rules. This article covers those rules.

In this article, we describe how to use the model elements tables to define sourcing rules for customers and facilities. Specifically, we can decide if each location is single sourced, allows backorders, and/or allows partial fulfillment.

i

Good to know

  • The screenshots below show the Customers table; the same fields are also present on the Facilities table and work in the same way.
  • The settings covered below are at the customer and facility level, i.e. they apply to all orders/line items at that location. The Orders tables (Customer Orders, Replenishment Orders, etc.) also contain these same settings (see the Adding Demand (Simulation) Help Center article). The order-level settings override the location-level settings when both are set.

‍

Single Source Rules

Single sourcing rules can be defined at both the order and line item level. Setting Single Source Orders to True for a location means that for each order placed by that location, every item in that order must come from a single source. Setting this value to False does not prohibit single sourcing, it just removes the requirement.

Setting Single Source Line Items to True only requires each individual line item to come from a single source. In other words, even if this is True, an individual order can have multiple sources, as long as each line item is single sourced.

If Single Source Orders is set to True and Single Source Line Items is set to False, the Single Source Orders value takes precedence and whole orders need to be single sourced.

Defaults: when these fields are left blank, a value of False will be used - orders and line items can be split over multiple sources.

!

Heads up

There is also a Single Source field on the Customers table, it is currently not used by the Throg engine.

‍

Backorder Rules

In case an order, or part of an order, cannot be filled from the stock available at the source when the order is placed, setting Allow Backorders to True lets the unfilled quantity wait as a backorder instead of being cancelled. It is filled when stock becomes available, provided this happens within the Backorder Time Limit. If the stock arrives after the due date, the order is filled late. If no stock arrives within the Backorder Time Limit, the unfilled quantity is cancelled.

Defaults:

  • Leaving Allow Backorders blank uses its default of True - backorders are allowed
  • Leaving Backorder Time Limit blank means there is no time limit - orders can be filled late indefinitely when backorders are allowed
  • Leaving Backorder Time UOM blank uses the Primary Time UOM specified in the Model Settings table

How the Backorder Time Limit works

  • ‍It counts from the order date, not the due date.
  • It limits how long an order may wait to be filled, not when it must arrive. Filled means the stock is available at the source and allocated to the customer.‍
  • Should an order be filled exactly at the deadline, it counts as expired. For example, with a 7 day backorder time limit and an order occurring at noon on January 4, if the order is backordered and would be filled exactly at noon on January 11 (or later), the order is cancelled.
  • By default, cancellation comes about half a day after the deadline. A limit of 7 days, cancels on day 7.5 and 10 days on day 10.5, etc. This is a separately scheduled default expiration review 12 hours after the deadline. If there is a regular queue review that happens earlier, the cancellation can happen sooner.
  • A backorder is not automatically late. Lateness is measured by comparing when an order arrives at the customer with its due date.

Partial Fill Rules

We can also decide to allow partial fulfillment of orders or their line items. If Allow Partial Fill Orders is set to False, orders need to be filled in full. If set to True, then only filling part of an order on time (by the due date) is allowed. What happens with the unfulfilled part of the order depends on if backorders are allowed. If so, then the remaining quantity of a partially filled order can be satisfied in the future with additional shipments. If a time limit on backorders is set and is reached on a partially filled order, the remaining quantity will be cancelled. Partial Fill Orders and Partial Fill Line Items behave similarly to the single sourcing rules, where it is possible to for example allow partially filling orders (Allow Partial Fill Orders = False), but not partially filling line items (Allow Partial Fill Line Items = False). If Partial Fill Orders is set to True, then Partial Fill Line Items will also be forced to True, regardless of its value specified.

Defaults: when these fields are left blank, a value of True will be used - orders and line items are allowed to be partially filled.

Queue Priority

The Customers, Facilities, and Suppliers tables also each contain a simulation-specific Queue Priority field, which is typically only used in more advanced Throg models. They can be used to give a customer, facility, or supplier a relative rank for prioritizing waiting orders. It only takes effect when a supporting queue-configuration table - such as Order Fulfillment Policies or Transportation Lane Queue Details - uses a value for the Queueing Priority Logic field that includes “By Location”; it has no effect with the default FIFO setting.

Sourcing Decisions Example

Consider the following simple model setup:

  • ‍Customer: CZ_MA places one order on day 0 with two line items: 125 basketballs and 80 soccer balls. It is due on day 5.‍
  • Sources, in order of preference: DC_1, then DC_2, for both products (Customer Fulfillment Policies, By Preference unless a scenario says Allocation, see also Adding Sourcing Policies via the Sourcing Tables (Simulation))‍
  • Transport time: DC_1 to CZ_MA is 2 days, DC_2 to CZ_MA is 4 days.‍
  • Starting inventory: DC_1 has 200 basketballs and 30 soccer balls. DC_2 has 25 basketballs and 100 soccer balls.‍
  • Replenishment: an upstream plant, MFG_1, holds ample stock and ships to the DCs. The earliest extra soccer balls can reach DC_1 is on day 11 (day 13 at the customer), and the earliest extra basketballs can reach DC_2 is on day 12 (day 16 at the customer).‍
  • Defaults when a Customers field is left blank: Single Source Orders = False, Single Source Line Items = False, Allow Backorders = True, Backorder Time Limit = blank (unlimited), Allow Partial Fill Orders = True, Allow Partial Fill Line Items = True.
The 4 By Preference policies on the Customer Fulfillment Policies table, setting DC_1 as the preferred source for both the Basketballs and Soccer balls products. The policy is changed to Allocation in several scenarios.

To illustrate how the sourcing rules and combinations of them affect how and when the 1 customer order with 2 line items is fulfilled, 32 scenarios were run with different settings and a few slight variations in inputs. The conventions used in the runs are:

  • Abbreviations:
    • ‍SSO: Single Source Orders
    • ‍SSLI: Single Source Line Items
    • ‍AB: Allow Backorders
    • ‍BTL: Backorder Time Limit (days)
    • ‍APFO: Allow Partial Fill Orders
    • ‍APFLI: Allow Partial Fill Line Items
    • BP: By Preference, AL: Allocation
  • A dash means the field was left blank
  • All settings are on the Customers table except the policy, which is on Customer Fulfillment Policies (Sourcing Policy field). A brief summary of these sourcing policies is as follows:
    • By Preference (BP): Tries sources in priority order, looking first for one facility that can fill the entire order. If none can, it can split the order across sources, subject to the single sourcing settings.
    • Allocation (AL): Works through sources in priority order line item by line item, taking available inventory from the preferred source before assigning the remainder to other sources. It does not first look for one facility that can fill the whole order.
    • Note that these policies behave the same when Single Source Orders = True; they can differ when Single Source Line Items = True.
  • Times are days after the order was placed. Deliveries marked late arrived after the day-5 due date; all other deliveries were on time.

The runs are grouped together based on common settings. Unless a group below says otherwise, the order is for 125 basketballs and 80 soccer balls. Where a setting has the same value in every row of a group, it is stated in the group’s introduction instead of in a column. Further below, the outcomes of all scenarios are also briefly explained in one table.

The Simulation Order Report and Simulation Shipment Report output tables are used to understand the outcomes of each scenario. In the order report, we learn when orders occur ("Drop"), and when they are filled, backordered or cancelled. The shipment report tells us when a shipment leaves its origin and arrives at its destination along with the details of which product is being moved and the quantity.

Baseline: all defaults (S0)

Every Customers setting is blank. The effective defaults are: Single Source Orders False, Single Source Line Items False, Allow Backorders True, Backorder Time Limit unlimited, Allow Partial Fill Orders True, Allow Partial Fill Line Items True.

Backorders off (S1 to S6)

Allow Backorders is False and Backorder Time Limit is blank in all six, so anything that cannot be filled from stock at the start is cancelled immediately. Policy is shown as BP/AL where Single Source Orders is True, because By Preference and Allocation behave the same there.

Backorders on, whole order from a single source (S7 to S12)

Single Source Orders and Allow Backorders are True in all of them, so the whole order must come from one source. Policy is BP/AL: By Preference and Allocation behave the same here. Each 7-day scenario is followed by its 12-day counterpart: with 7 days the backorder is cancelled, and with 12 days it is filled late.

Backorders on, order may be split across sources (S13 to S15)

Single Source Orders is False, Allow Backorders is True, Backorder Time Limit is 7 and both partial-fill settings are False in all three. These repeat S4 to S6 with backorders switched on. Nothing has to wait, so the backorder settings never come into play and the results are the same.

Backorders filled before the due date (S16 to S18)

Single Source Orders, Allow Backorders and Allow Partial Fill Orders are True and Backorder Time Limit is 12 in all three. Policy is BP/AL. The soccer replenishment to DC_1 is made faster by shortening the MFG_1 to DC_1 transit time, so the backordered soccer balls become available earlier. Compare S10 and S12 (replenishment arrives on day 11) withS16 and S17 (day 1) and S18 (day 4).

Demand above the combined stock (S19 to S24)

Soccer demand is raised from 80 to 200, above the 130 balls on hand in DC_1 and DC_2 together, so part of the soccer line has to be backordered even though the order may be split across sources. Single Source Orders is False, Single Source Line Items is blank and Allow Backorders is True in all of them. Basketball demand stays at 125.

Line-level single sourcing that no single source can fill (S25 to S29)

Soccer demand is 120: DC_1 has 30 and DC_2 has 100, so neither can fill the line alone, but together they can. Basketball demand stays at 125. In S26 to S29 Single Source Line Items is set to True, and S25 is the control with it set to False. Single Source Orders is False and both partial-fill settings are blank in all of them.

One source can fill the whole order (S30 and S31)

DC_2’s initial basketball inventory is raised from 25 to 200, so DC_2 can fill the whole order while DC_1 still cannot. Single Source Orders is True, Allow Backorders is False and Backorder Time Limit is blank in both. Each scenario was run with both By Preference and Allocation, and the results were identical.

Why each scenario behaves as it does

At an overall level, neither DC can fill the whole order on its own: DC_1 is short of soccer balls and DC_2 is short of basketballs. Where the order must stay with one source, it therefore falls back to the preferred source, DC_1. Details by scenario:

Please do not hesitate to reach out to our Support team, support@optilogic.com, in case of questions or feedback.

‍

In a supply chain model, sourcing policies describe how network components create and order necessary materials. In Cosmic Frog, sourcing policies and rules appear in two different table categories:

  • In the Customers and Facilities tables in the Model Elements category, users can define several sourcing rules. This article covers those rules.

In this article, we describe how to use the model elements tables to define sourcing rules for customers and facilities. Specifically, we can decide if each location is single sourced, allows backorders, and/or allows partial fulfillment.

i

Good to know

  • The screenshots below show the Customers table; the same fields are also present on the Facilities table and work in the same way.
  • The settings covered below are at the customer and facility level, i.e. they apply to all orders/line items at that location. The Orders tables (Customer Orders, Replenishment Orders, etc.) also contain these same settings (see the Adding Demand (Simulation) Help Center article). The order-level settings override the location-level settings when both are set.

‍

Single Source Rules

Single sourcing rules can be defined at both the order and line item level. Setting Single Source Orders to True for a location means that for each order placed by that location, every item in that order must come from a single source. Setting this value to False does not prohibit single sourcing, it just removes the requirement.

Setting Single Source Line Items to True only requires each individual line item to come from a single source. In other words, even if this is True, an individual order can have multiple sources, as long as each line item is single sourced.

If Single Source Orders is set to True and Single Source Line Items is set to False, the Single Source Orders value takes precedence and whole orders need to be single sourced.

Defaults: when these fields are left blank, a value of False will be used - orders and line items can be split over multiple sources.

!

Heads up

There is also a Single Source field on the Customers table, it is currently not used by the Throg engine.

‍

Backorder Rules

In case an order, or part of an order, cannot be filled from the stock available at the source when the order is placed, setting Allow Backorders to True lets the unfilled quantity wait as a backorder instead of being cancelled. It is filled when stock becomes available, provided this happens within the Backorder Time Limit. If the stock arrives after the due date, the order is filled late. If no stock arrives within the Backorder Time Limit, the unfilled quantity is cancelled.

Defaults:

  • Leaving Allow Backorders blank uses its default of True - backorders are allowed
  • Leaving Backorder Time Limit blank means there is no time limit - orders can be filled late indefinitely when backorders are allowed
  • Leaving Backorder Time UOM blank uses the Primary Time UOM specified in the Model Settings table

How the Backorder Time Limit works

  • ‍It counts from the order date, not the due date.
  • It limits how long an order may wait to be filled, not when it must arrive. Filled means the stock is available at the source and allocated to the customer.‍
  • Should an order be filled exactly at the deadline, it counts as expired. For example, with a 7 day backorder time limit and an order occurring at noon on January 4, if the order is backordered and would be filled exactly at noon on January 11 (or later), the order is cancelled.
  • By default, cancellation comes about half a day after the deadline. A limit of 7 days, cancels on day 7.5 and 10 days on day 10.5, etc. This is a separately scheduled default expiration review 12 hours after the deadline. If there is a regular queue review that happens earlier, the cancellation can happen sooner.
  • A backorder is not automatically late. Lateness is measured by comparing when an order arrives at the customer with its due date.

Partial Fill Rules

We can also decide to allow partial fulfillment of orders or their line items. If Allow Partial Fill Orders is set to False, orders need to be filled in full. If set to True, then only filling part of an order on time (by the due date) is allowed. What happens with the unfulfilled part of the order depends on if backorders are allowed. If so, then the remaining quantity of a partially filled order can be satisfied in the future with additional shipments. If a time limit on backorders is set and is reached on a partially filled order, the remaining quantity will be cancelled. Partial Fill Orders and Partial Fill Line Items behave similarly to the single sourcing rules, where it is possible to for example allow partially filling orders (Allow Partial Fill Orders = False), but not partially filling line items (Allow Partial Fill Line Items = False). If Partial Fill Orders is set to True, then Partial Fill Line Items will also be forced to True, regardless of its value specified.

Defaults: when these fields are left blank, a value of True will be used - orders and line items are allowed to be partially filled.

Queue Priority

The Customers, Facilities, and Suppliers tables also each contain a simulation-specific Queue Priority field, which is typically only used in more advanced Throg models. They can be used to give a customer, facility, or supplier a relative rank for prioritizing waiting orders. It only takes effect when a supporting queue-configuration table - such as Order Fulfillment Policies or Transportation Lane Queue Details - uses a value for the Queueing Priority Logic field that includes “By Location”; it has no effect with the default FIFO setting.

Sourcing Decisions Example

Consider the following simple model setup:

  • ‍Customer: CZ_MA places one order on day 0 with two line items: 125 basketballs and 80 soccer balls. It is due on day 5.‍
  • Sources, in order of preference: DC_1, then DC_2, for both products (Customer Fulfillment Policies, By Preference unless a scenario says Allocation, see also Adding Sourcing Policies via the Sourcing Tables (Simulation))‍
  • Transport time: DC_1 to CZ_MA is 2 days, DC_2 to CZ_MA is 4 days.‍
  • Starting inventory: DC_1 has 200 basketballs and 30 soccer balls. DC_2 has 25 basketballs and 100 soccer balls.‍
  • Replenishment: an upstream plant, MFG_1, holds ample stock and ships to the DCs. The earliest extra soccer balls can reach DC_1 is on day 11 (day 13 at the customer), and the earliest extra basketballs can reach DC_2 is on day 12 (day 16 at the customer).‍
  • Defaults when a Customers field is left blank: Single Source Orders = False, Single Source Line Items = False, Allow Backorders = True, Backorder Time Limit = blank (unlimited), Allow Partial Fill Orders = True, Allow Partial Fill Line Items = True.
The 4 By Preference policies on the Customer Fulfillment Policies table, setting DC_1 as the preferred source for both the Basketballs and Soccer balls products. The policy is changed to Allocation in several scenarios.

To illustrate how the sourcing rules and combinations of them affect how and when the 1 customer order with 2 line items is fulfilled, 32 scenarios were run with different settings and a few slight variations in inputs. The conventions used in the runs are:

  • Abbreviations:
    • ‍SSO: Single Source Orders
    • ‍SSLI: Single Source Line Items
    • ‍AB: Allow Backorders
    • ‍BTL: Backorder Time Limit (days)
    • ‍APFO: Allow Partial Fill Orders
    • ‍APFLI: Allow Partial Fill Line Items
    • BP: By Preference, AL: Allocation
  • A dash means the field was left blank
  • All settings are on the Customers table except the policy, which is on Customer Fulfillment Policies (Sourcing Policy field). A brief summary of these sourcing policies is as follows:
    • By Preference (BP): Tries sources in priority order, looking first for one facility that can fill the entire order. If none can, it can split the order across sources, subject to the single sourcing settings.
    • Allocation (AL): Works through sources in priority order line item by line item, taking available inventory from the preferred source before assigning the remainder to other sources. It does not first look for one facility that can fill the whole order.
    • Note that these policies behave the same when Single Source Orders = True; they can differ when Single Source Line Items = True.
  • Times are days after the order was placed. Deliveries marked late arrived after the day-5 due date; all other deliveries were on time.

The runs are grouped together based on common settings. Unless a group below says otherwise, the order is for 125 basketballs and 80 soccer balls. Where a setting has the same value in every row of a group, it is stated in the group’s introduction instead of in a column. Further below, the outcomes of all scenarios are also briefly explained in one table.

The Simulation Order Report and Simulation Shipment Report output tables are used to understand the outcomes of each scenario. In the order report, we learn when orders occur ("Drop"), and when they are filled, backordered or cancelled. The shipment report tells us when a shipment leaves its origin and arrives at its destination along with the details of which product is being moved and the quantity.

Baseline: all defaults (S0)

Every Customers setting is blank. The effective defaults are: Single Source Orders False, Single Source Line Items False, Allow Backorders True, Backorder Time Limit unlimited, Allow Partial Fill Orders True, Allow Partial Fill Line Items True.

Backorders off (S1 to S6)

Allow Backorders is False and Backorder Time Limit is blank in all six, so anything that cannot be filled from stock at the start is cancelled immediately. Policy is shown as BP/AL where Single Source Orders is True, because By Preference and Allocation behave the same there.

Backorders on, whole order from a single source (S7 to S12)

Single Source Orders and Allow Backorders are True in all of them, so the whole order must come from one source. Policy is BP/AL: By Preference and Allocation behave the same here. Each 7-day scenario is followed by its 12-day counterpart: with 7 days the backorder is cancelled, and with 12 days it is filled late.

Backorders on, order may be split across sources (S13 to S15)

Single Source Orders is False, Allow Backorders is True, Backorder Time Limit is 7 and both partial-fill settings are False in all three. These repeat S4 to S6 with backorders switched on. Nothing has to wait, so the backorder settings never come into play and the results are the same.

Backorders filled before the due date (S16 to S18)

Single Source Orders, Allow Backorders and Allow Partial Fill Orders are True and Backorder Time Limit is 12 in all three. Policy is BP/AL. The soccer replenishment to DC_1 is made faster by shortening the MFG_1 to DC_1 transit time, so the backordered soccer balls become available earlier. Compare S10 and S12 (replenishment arrives on day 11) withS16 and S17 (day 1) and S18 (day 4).

Demand above the combined stock (S19 to S24)

Soccer demand is raised from 80 to 200, above the 130 balls on hand in DC_1 and DC_2 together, so part of the soccer line has to be backordered even though the order may be split across sources. Single Source Orders is False, Single Source Line Items is blank and Allow Backorders is True in all of them. Basketball demand stays at 125.

Line-level single sourcing that no single source can fill (S25 to S29)

Soccer demand is 120: DC_1 has 30 and DC_2 has 100, so neither can fill the line alone, but together they can. Basketball demand stays at 125. In S26 to S29 Single Source Line Items is set to True, and S25 is the control with it set to False. Single Source Orders is False and both partial-fill settings are blank in all of them.

One source can fill the whole order (S30 and S31)

DC_2’s initial basketball inventory is raised from 25 to 200, so DC_2 can fill the whole order while DC_1 still cannot. Single Source Orders is True, Allow Backorders is False and Backorder Time Limit is blank in both. Each scenario was run with both By Preference and Allocation, and the results were identical.

Why each scenario behaves as it does

At an overall level, neither DC can fill the whole order on its own: DC_1 is short of soccer balls and DC_2 is short of basketballs. Where the order must stay with one source, it therefore falls back to the preferred source, DC_1. Details by scenario:

Please do not hesitate to reach out to our Support team, support@optilogic.com, in case of questions or feedback.

‍

Have More Questions?

Contact Support

Get in touch

Contact Sales

Get in touch

Visit Frogger Pond Community

Visit our Community