Constraints

PowerModelsITD.constraint_boundary_currentMethod
function constraint_boundary_current(
    pmitd::AbstractIVRPowerModelITD,
    i::Int;
    nw::Int=nw_id_default
)

Boundary power constraints based on rectangular currents (I) for AbstractIVRPowerModelITD.

source
PowerModelsITD.constraint_boundary_voltage_angleMethod
function constraint_boundary_voltage_angle(
    pm::_PM.ACPPowerModel,
    pmd::_PMD.ACPUPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

ACP-ACPU boundary bus voltage angle constraints.

source
PowerModelsITD.constraint_boundary_voltage_angleMethod
function constraint_boundary_voltage_angle(
    pm::_PM.ACPPowerModel,
    pmd::_PMD.FOTPUPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int=nw_id_default
)

ACP-FOTPU boundary bus voltage angle constraints.

source
PowerModelsITD.constraint_boundary_voltage_angleMethod
function constraint_boundary_voltage_angle(
    pm::_PM.ACRPowerModel,
    pmd::_PMD.ACRUPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

ACR-ACRU boundary bus voltage angle constraints.

source
PowerModelsITD.constraint_boundary_voltage_angleMethod
function constraint_boundary_voltage_angle(
    pm::_PM.ACRPowerModel,
    pmd::_PMD.FBSUBFPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int=nw_id_default
)

ACR-FBSU boundary bus voltage angle constraints.

source
PowerModelsITD.constraint_boundary_voltage_angleMethod
function constraint_boundary_voltage_angle(
    pm::_PM.ACRPowerModel,
    pmd::_PMD.FOTRUPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int=nw_id_default
)

ACR-FOTRU boundary bus voltage angle constraints.

source
PowerModelsITD.constraint_boundary_voltage_angleMethod
function constraint_boundary_voltage_angle(
    pm::_PM.DCPPowerModel,
    pmd::_PMD.DCPUPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

DCP-DCPU boundary bus voltage angle constraints: DCP angle.

source
PowerModelsITD.constraint_boundary_voltage_angleMethod
function constraint_boundary_voltage_angle(
    pm::_PM.IVRPowerModel,
    pmd::_PMD.IVRUPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

IVR-IVRU boundary bus voltage angle constraints.

source
PowerModelsITD.constraint_boundary_voltage_angleMethod
function constraint_boundary_voltage_angle(
    pm::_PM.NFAPowerModel,
    pmd::_PMD.NFAUPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

NFA-NFAU boundary bus voltage angle constraints: empty NFA angle.

source
PowerModelsITD.constraint_boundary_voltage_angleMethod
function constraint_boundary_voltage_angle(
    pm::_PM.AbstractBFAModel,
    pmd::_PMD.LPUBFDiagPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int=nw_id_default
)

BFA-LinDist3FlowPowerModel boundary bus voltage angle constraints.

source
PowerModelsITD.constraint_boundary_voltage_angleMethod
function constraint_boundary_voltage_angle(
    pm::_PM.AbstractSDPWRMModel,
    pmd::_PMD.SOCConicUBFPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

SDPWRM-SOCConicUBF boundary bus voltage angle constraints.

source
PowerModelsITD.constraint_boundary_voltage_angleMethod
function constraint_boundary_voltage_angle(
    pm::_PM.AbstractSOCBFConicModel,
    pmd::_PMD.SOCConicUBFPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

SOCBFConic-SOCUBFConic boundary bus voltage angle constraints.

source
PowerModelsITD.constraint_boundary_voltage_angleMethod
function constraint_boundary_voltage_angle(
    pm::_PM.AbstractSOCBFModel,
    pmd::_PMD.LPUBFDiagPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int=nw_id_default
)

SOCBF-LinDist3FlowPowerModel boundary bus voltage angle constraints.

source
PowerModelsITD.constraint_boundary_voltage_angleMethod
function constraint_boundary_voltage_angle(
    pm::_PM.AbstractSOCBFModel,
    pmd::_PMD.SOCNLPUBFPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

SOCBF-SOCNLUBF boundary bus voltage angle constraints.

source
PowerModelsITD.constraint_boundary_voltage_angleMethod
function constraint_boundary_voltage_angle(
    pm::_PM.AbstractSOCWRConicModel,
    pmd::_PMD.SOCConicUBFPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

SOCWRConic-SOCConicUBF boundary bus voltage angle constraints.

source
PowerModelsITD.constraint_boundary_voltage_magnitudeMethod
function constraint_boundary_voltage_magnitude(
    pm::_PM.ACPPowerModel,
    pmd::_PMD.ACPUPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

ACP-ACPU boundary bus voltage magnitude constraints.

source
PowerModelsITD.constraint_boundary_voltage_magnitudeMethod
function constraint_boundary_voltage_magnitude(
    pm::_PM.ACPPowerModel,
    pmd::_PMD.FOTPUPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int=nw_id_default
)

ACP-FOTPU boundary bus voltage magnitude constraints.

source
PowerModelsITD.constraint_boundary_voltage_magnitudeMethod
function constraint_boundary_voltage_magnitude(
    pm::_PM.ACRPowerModel,
    pmd::_PMD.ACRUPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

ACR-ACRU boundary bus voltage magnitude constraints.

source
PowerModelsITD.constraint_boundary_voltage_magnitudeMethod
function constraint_boundary_voltage_magnitude(
    pm::_PM.ACRPowerModel,
    pmd::_PMD.FBSUBFPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int=nw_id_default
)

ACR-FBSU boundary bus voltage magnitude constraints.

source
PowerModelsITD.constraint_boundary_voltage_magnitudeMethod
function constraint_boundary_voltage_magnitude(
    pm::_PM.ACRPowerModel,
    pmd::_PMD.FOTRUPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int=nw_id_default
)

ACR-FOTRU boundary bus voltage magnitude constraints.

source
PowerModelsITD.constraint_boundary_voltage_magnitudeMethod
function constraint_boundary_voltage_magnitude(
    pm::_PM.DCPPowerModel,
    pmd::_PMD.DCPUPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

DCP-DCPU boundary bus voltage magnitude constraints: empty since DC keeps vm = 1 for all.

source
PowerModelsITD.constraint_boundary_voltage_magnitudeMethod
function constraint_boundary_voltage_magnitude(
    pm::_PM.IVRPowerModel,
    pmd::_PMD.IVRUPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

IVR-IVRU boundary bus voltage magnitude constraints.

source
PowerModelsITD.constraint_boundary_voltage_magnitudeMethod
function constraint_boundary_voltage_magnitude(
    pm::_PM.NFAPowerModel,
    pmd::_PMD.NFAUPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

NFA-NFAU boundary bus voltage magnitude constraints: empty NFA.

source
PowerModelsITD.constraint_boundary_voltage_magnitudeMethod
function constraint_boundary_voltage_magnitude(
    pm::_PM.AbstractBFAModel,
    pmd::_PMD.LPUBFDiagPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int=nw_id_default
)

BFA-LinDist3FlowPowerModel boundary bus voltage magnitude constraints.

source
PowerModelsITD.constraint_boundary_voltage_magnitudeMethod
function constraint_boundary_voltage_magnitude(
    pm::_PM.AbstractSDPWRMModel,
    pmd::_PMD.SOCConicUBFPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

SDPWRM-SOCConicUBF boundary bus voltage magnitude (W variables) constraints.

source
PowerModelsITD.constraint_boundary_voltage_magnitudeMethod
function constraint_boundary_voltage_magnitude(
    pm::_PM.AbstractSOCBFConicModel,
    pmd::_PMD.SOCConicUBFPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

SOCBFConic-SOCUBFConic boundary bus voltage magnitude (W variables) constraints.

source
PowerModelsITD.constraint_boundary_voltage_magnitudeMethod
function constraint_boundary_voltage_magnitude(
    pm::_PM.AbstractSOCBFModel,
    pmd::_PMD.LPUBFDiagPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int=nw_id_default
)

SOCBF-LinDist3FlowPowerModel boundary bus voltage magnitude constraints.

source
PowerModelsITD.constraint_boundary_voltage_magnitudeMethod
function constraint_boundary_voltage_magnitude(
    pm::_PM.AbstractSOCBFModel,
    pmd::_PMD.SOCNLPUBFPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

SOCBF-SOCNLUBF boundary bus voltage magnitude (W variables) constraints.

source
PowerModelsITD.constraint_boundary_voltage_magnitudeMethod
function constraint_boundary_voltage_magnitude(
    pm::_PM.AbstractSOCWRConicModel,
    pmd::_PMD.SOCConicUBFPowerModel,
    i::Int,
    f_idx::Tuple{Int,Int,Int},
    f_connections::Vector{Int},
    t_connections::Vector{Int};
    nw::Int = nw_id_default
)

SOCWRConic-SOCConicUBF boundary bus voltage magnitude (W variables) constraints.

source
PowerModelsITD.constraint_distribution_current_balanceMethod
function constraint_distribution_current_balance(
    pmitd::AbstractPowerModelITD,
    pmd::_PMD.AbstractUnbalancedIVRModel,
    n::Int,
    i::Int,
    terminals::Vector{Int},
    grounded::Vector{Bool},
    bus_arcs::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_sw::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_trans::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_gens::Vector{Tuple{Int,Vector{Int}}},
    bus_storage::Vector{Tuple{Int,Vector{Int}}},
    bus_loads::Vector{Tuple{Int,Vector{Int}}},
    bus_shunts::Vector{Tuple{Int,Vector{Int}}},
    bus_arcs_boundary_to
)

IVRU distribution constraint power balance.

source
PowerModelsITD.constraint_distribution_power_balanceMethod
function constraint_distribution_power_balance(
    pmitd::AbstractBFPowerModelITD,
    pmd::_PMD.LPUBFDiagPowerModel,
    n::Int,
    i::Int,
    terminals::Vector{Int},
    grounded::Vector{Bool},
    bus_arcs::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_sw::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_trans::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_gens::Vector{Tuple{Int,Vector{Int}}},
    bus_storage::Vector{Tuple{Int,Vector{Int}}},
    bus_loads::Vector{Tuple{Int,Vector{Int}}},
    bus_shunts::Vector{Tuple{Int,Vector{Int}}},
    bus_arcs_boundary_to
)

LinDist3FlowPowerModel distribution constraint power balance.

source
PowerModelsITD.constraint_distribution_power_balanceMethod
function constraint_distribution_power_balance(
    pmitd::AbstractPowerModelITD,
    pmd::_PMD.FBSUBFPowerModel,
    n::Int,
    i::Int,
    terminals::Vector{Int},
    grounded::Vector{Bool},
    bus_arcs::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_sw::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_trans::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_gens::Vector{Tuple{Int,Vector{Int}}},
    bus_storage::Vector{Tuple{Int,Vector{Int}}},
    bus_loads::Vector{Tuple{Int,Vector{Int}}},
    bus_shunts::Vector{Tuple{Int,Vector{Int}}},
    bus_arcs_boundary_to
)

FBSU distribution constraint power balance.

source
PowerModelsITD.constraint_distribution_power_balanceMethod
function constraint_distribution_power_balance(
    pmitd::AbstractPowerModelITD,
    pmd::_PMD.FOTPUPowerModel,
    n::Int,
    i::Int,
    terminals::Vector{Int},
    grounded::Vector{Bool},
    bus_arcs::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_sw::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_trans::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_gens::Vector{Tuple{Int,Vector{Int}}},
    bus_storage::Vector{Tuple{Int,Vector{Int}}},
    bus_loads::Vector{Tuple{Int,Vector{Int}}},
    bus_shunts::Vector{Tuple{Int,Vector{Int}}},
    bus_arcs_boundary_to
)

FOTPU distribution constraint power balance.

source
PowerModelsITD.constraint_distribution_power_balanceMethod
function constraint_distribution_power_balance(
    pmitd::AbstractPowerModelITD,
    pmd::_PMD.FOTRUPowerModel,
    n::Int,
    i::Int,
    terminals::Vector{Int},
    grounded::Vector{Bool},
    bus_arcs::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_sw::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_trans::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_gens::Vector{Tuple{Int,Vector{Int}}},
    bus_storage::Vector{Tuple{Int,Vector{Int}}},
    bus_loads::Vector{Tuple{Int,Vector{Int}}},
    bus_shunts::Vector{Tuple{Int,Vector{Int}}},
    bus_arcs_boundary_to
)

FOTRU distribution constraint power balance.

source
PowerModelsITD.constraint_distribution_power_balanceMethod
function constraint_distribution_power_balance(
    pmitd::AbstractPowerModelITD,
    pmd::_PMD.AbstractUnbalancedACPModel,
    n::Int,
    i::Int,
    terminals::Vector{Int},
    grounded::Vector{Bool},
    bus_arcs::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_sw::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_trans::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_gens::Vector{Tuple{Int,Vector{Int}}},
    bus_storage::Vector{Tuple{Int,Vector{Int}}},
    bus_loads::Vector{Tuple{Int,Vector{Int}}},
    bus_shunts::Vector{Tuple{Int,Vector{Int}}},
    bus_arcs_boundary_to
)

ACPU distribution constraint power balance.

source
PowerModelsITD.constraint_distribution_power_balanceMethod
function constraint_distribution_power_balance(
    pmitd::AbstractPowerModelITD,
    pmd::_PMD.AbstractUnbalancedACRModel,
    n::Int,
    i::Int,
    terminals::Vector{Int},
    grounded::Vector{Bool},
    bus_arcs::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_sw::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_trans::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_gens::Vector{Tuple{Int,Vector{Int}}},
    bus_storage::Vector{Tuple{Int,Vector{Int}}},
    bus_loads::Vector{Tuple{Int,Vector{Int}}},
    bus_shunts::Vector{Tuple{Int,Vector{Int}}},
    bus_arcs_boundary_to
)

ACRU distribution constraint power balance.

source
PowerModelsITD.constraint_distribution_power_balanceMethod
function constraint_distribution_power_balance(
    pmitd::AbstractPowerModelITD,
    pmd::_PMD.AbstractUnbalancedActivePowerModel,
    n::Int,
    i::Int,
    terminals::Vector{Int},
    grounded::Vector{Bool},
    bus_arcs::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_sw::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_trans::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_gens::Vector{Tuple{Int,Vector{Int}}},
    bus_storage::Vector{Tuple{Int,Vector{Int}}},
    bus_loads::Vector{Tuple{Int,Vector{Int}}},
    bus_shunts::Vector{Tuple{Int,Vector{Int}}},
    bus_arcs_boundary_to
)

DCPU/NFAU distribution constraint power balance.

source
PowerModelsITD.constraint_distribution_power_balanceMethod
function constraint_distribution_power_balance(
    pmitd::AbstractPowerModelITD,
    pmd::_PMD.AbstractUnbalancedWModels,
    n::Int,
    i::Int,
    terminals::Vector{Int},
    grounded::Vector{Bool},
    bus_arcs::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_sw::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_arcs_trans::Vector{Tuple{Tuple{Int,Int,Int},Vector{Int}}},
    bus_gens::Vector{Tuple{Int,Vector{Int}}},
    bus_storage::Vector{Tuple{Int,Vector{Int}}},
    bus_loads::Vector{Tuple{Int,Vector{Int}}},
    bus_shunts::Vector{Tuple{Int,Vector{Int}}},
    bus_arcs_boundary_to
)

Unbalanced W models distribution constraint power balance.

source
PowerModelsITD.constraint_transmission_current_balanceMethod
function constraint_transmission_current_balance(
    pmitd::AbstractPowerModelITD,
    pm::_PM.AbstractIVRModel,
    n::Int,
    i::Int,
    bus_arcs,
    bus_arcs_dc,
    bus_gens,
    bus_pd,
    bus_qd,
    bus_gs,
    bus_bs,
    bus_arcs_boundary_from
)

IVR transmission constraint power balance.

source
PowerModelsITD.constraint_transmission_power_balanceMethod
function constraint_transmission_power_balance(
    pmitd::AbstractPowerModelITD,
    pm::_PM.AbstractACPModel,
    n::Int,
    i::Int,
    bus_arcs,
    bus_arcs_dc,
    bus_arcs_sw,
    bus_gens,
    bus_storage,
    bus_pd,
    bus_qd,
    bus_gs,
    bus_bs,
    bus_arcs_boundary_from
)

ACP transmission constraint power balance.

source
PowerModelsITD.constraint_transmission_power_balanceMethod
function constraint_transmission_power_balance(
    pmitd::AbstractPowerModelITD,
    pm::_PM.AbstractACRModel,
    n::Int,
    i::Int,
    bus_arcs,
    bus_arcs_dc,
    bus_arcs_sw,
    bus_gens,
    bus_storage,
    bus_pd,
    bus_qd,
    bus_gs,
    bus_bs,
    bus_arcs_boundary_from
)

ACR transmission constraint power balance.

source
PowerModelsITD.constraint_transmission_power_balanceMethod
function constraint_transmission_power_balance(
    pmitd::AbstractPowerModelITD,
    pm::_PM.AbstractActivePowerModel,
    n::Int,
    i::Int,
    bus_arcs,
    bus_arcs_dc,
    bus_arcs_sw,
    bus_gens,
    bus_storage,
    bus_pd,
    bus_qd,
    bus_gs,
    bus_bs,
    bus_arcs_boundary_from
)

DCP/NFA transmission constraint power balance.

source
PowerModelsITD.constraint_transmission_power_balanceMethod
function constraint_transmission_power_balance(
    pmitd::AbstractPowerModelITD,
    pm::_PM.AbstractWModels,
    n::Int,
    i::Int,
    bus_arcs,
    bus_arcs_dc,
    bus_arcs_sw,
    bus_gens,
    bus_storage,
    bus_pd,
    bus_qd,
    bus_gs,
    bus_bs,
    bus_arcs_boundary_from
)

W Models (e.g., SOCBF) transmission constraint power balance.

source