makeLODF

makeLODF(branch, PTDF, mask_bridge)

makeLODF() - Builds the line outage distribution factor matrix.

LODF = MAKELODF(BRANCH, PTDF)
LODF = MAKELODF(MPC, PTDF)
LODF = MAKELODF(MPC, PTDF, MASK_BRIDGE)

Returns the DC model line outage distribution factor matrix corresponding
to a given PTDF matrix. The LODF matrix is nbr x nbr, where nbr is the
number of branches. If the optional MASK_BRIDGE argument is true, columns
corresponding to bridge branches (those whose removal result in
islanding) are replaced with NaN.

Example:
    H = makePTDF(mpc);
    LODF = makeLODF(branch, H);
    LODF = makeLODF(mpc, H);

    % mask bridge branches in LODF
    makeLODF(mpc, H, 1);

See also makePTDF(), find_bridges().