; Do not change filenames or add or remove FILEI/FILEO statements using an editor. Use Cube/Application Manager.
RUN PGM=MATRIX PRNFILE="{Scenario_Dir}\OUTPUT\MCMAT00A.PRN"
FILEI MATI[3] = "{Scenario_Dir}\OUTPUT\PSNTRIPS_{ALT}{YEAR}.MAT"
FILEO MATO[1] = "X:\Projects\CRTPA\Model\C\BASE\OUTPUT\TEMP_HWYTTAB_{ALT}{YEAR}.MAT",
MO=1-7, NAME=HBW,HBO,NHB,TAX,IE,EE,TOTAL
FILEI MATI[2] = "{Scenario_Dir}\OUTPUT\EETRIPS_{ALT}{Year}.MAT"
FILEI MATI[1] = "X:\Projects\CRTPA\Model\C\BASE\OUTPUT\HWYTTAB_TEMP_{ALT}{YEAR}.MAT"

;MW[11]=MI.1.4+MI.2.1+MI.3.4+MI.3.5
;mw[22]=MI.1.1.T+MI.1.2.t+MI.1.3.t+MI.2.1.t*0.5+mi.3.4.t+mi.3.5.t
MW[1]=MI.1.1*0.5
MW[2]=MI.1.2*0.5
MW[3]=MI.1.3*0.5
MW[4]=MI.3.4*0.5
;MW[5]=(MI.3.5+MI.3.5.T)*0.5*0.5
;MW[6]=MI.2.1*0.5
;MW[7]=MW[1]+MW[2]+MW[3]+MW[4]+MW[5]+MW[6]
;mw[1]=MW[11]*0.5

;if (i=2207) || (I=2208)
;mw[5]=(mi.3.1+mi.3.2)*0.5
;elseIF(I=2208)
;mw[5]=(mi.3.1+mi.3.2)*0.5
;ELSE
MW[5]=(MI.3.5+MI.3.5.T)*0.5*0.5
;endif

MW[6]=MI.2.1*0.5
MW[7]=MW[1]+MW[2]+MW[3]+MW[4]+MW[5]+MW[6]

;FILLMW MW[11]=MI.1.1,2,3,4,5             ;11/12/13/14/15: DA,SR2,SR3P,TRKS,SR2P   
;FILLMW MW[21]=MI.1.1.T,2.T,3.T,4.T,5.T   ;21/22/23/24/25: DA,SR2,SR3P,TRKS,SR2P-Transposed   


;Balanced Vehicle trips & Trucks are in PCE
;MW[1]= (MW[11]+MW[21])*0.5         ;24H - DA
;MW[2]= (MW[12]+MW[22])*0.5         ;24H - SR2
;MW[3]= (MW[13]+MW[23])*0.5         ;24H - SR3P
;MW[4]= (MW[14]+MW[24])*0.5         ;24H - TRKS
;MW[5]= (MW[15]+MW[25])*0.5         ;24H - SR2P




ENDRUN
