Select Most Full 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 greater than the max

        Store the decision as the max quantity

      End if

    End if

  End if

Next decision

If found a decision with max quantity

  Select the decision

End if

Exit Sub

 Note: In the case where multiple decisions have the same source region with a maximum quantity or when multiple source 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 Full Region.