The catalog attached provides an example of how to build branch control within Cube. Branch controls are very useful in the event there are multiple conditions or scenarios that needs to be compare. Branch controls require the usage of the PILOT program to call upon.
The catalog is a four-step procedure. Below is an overview of the process.
Figure 1: Branch Control Example
The procedure decides which path to take. This is where the PILOT program comes in. The program calls upon a key called FACTOR.
Figure 2: FACTOR key can be set as "0" or "1" to determine if Path 1 or Path 2 is taken. The script clearly states it as such.
In this example, two groups are linked to the branch to identify two different conditions. These conditions are determined by a multiplied factor for the matrix file. In order to branch the groups, a branch has to be created initially by clicking on the Branch icon and give it a description. Click OK when done and a Branch should appear on the screen.
Figure 3: Branch icon located top-left of Cube screen
Next right-click the new branch and go to Edit Branch Control. By default, the large white box will be empty as no groups were linked to the branch yet.
- Please note that for this example, two groups were already created
for the two conditions
Initially, clicking Add Branch, this screen should show up.
Figure 4: Add Branch Window
Click on the drop-down box from the Select Group to New Branch. For this example, there are no new groups to add as the two provided groups are already linked to the sole branch.
The Branch Condition Value can be considered as the "path taken" after step 1 from Figure 1. The Branch Description provides a brief of the function of each path. Below (Figure 5 and 6) are templates of this example.
Figure 5: Branch Specifications of Branch Condition #1
Figure 6: Edit Branch Template for the Example
Steps 3 and 4 uses different multiplication factors to output final matrices for each condition. Figures 7 and 8 are resulting matrices for single-occupancy vehicles (SOVs) for paths 1 and 2.
Figure 7: Factored Assignment SOV matrix of Path / Set #1
Figure 8: Factored Assignment SOV matrix of Path / Set #2
BranchExample.zip (23.8 KB)