Select Most Empty Region Pseudo Code

For each decisions

  If the decision is still possible

    If the decision source region has a Quantity point in Region Maintenance

      Get the value of the quantity point

      If the region quantity is less than the min

        Store the decision as the min quantity

      End if

    End if

  End if

Next decision

If found a decision with min quantity

  Select the decision

End if

Exit Sub

 Note: In the case where multiple decisions have the same destination regions, containing the minimum quantity or when multiple destination regions have the same quantity, the decision with the lowest order is selected.

If all decisions have already been eliminated, the logic script will not terminate.

More information

Select Most Empty Region.