Copy, paste and apply diagonal

Note: The diagonal of a matrix runs from top left to bottom right (FromZoneNo = ToZoneNo). In demand matrices the diagonal represents the trips within the cell.

The functions Copy diagonal into clipboard and Paste diagonal from clipboard enable the exchange of diagonal values between two matrices. For example, you can set a matrix value outside the diagonal to zero by copying the diagonal, setting all matrix values to zero and reinserting the diagonal (User Manual: Copying and pasting matrix diagonal values).

The set diagonal function, in the Matrix editor window, offers the option of setting the values of the diagonal with a new value, with the matrix values remaining unchanged for all relations FromZoneNo ≠ ToZoneNo.

In the procedure sequence, you can set the values of a diagonal by using the OnlyActiveODPairs or If function in formulas.