def max_power_rule(mod, g, tmp):
    """
    **Constraint Name**: DAC_Max_Power_Constraint
    **Enforced Over**: DAC_OPR_TMPS

    Power consumption cannot exceed capacity.
    """
    return (
        mod.DAC_Consume_Power_MW[g, tmp]
        <= mod.Capacity_MW[g, mod.period[tmp]] * mod.Availability_Derate[g, tmp]
    )