def scheduled_curtailment_expression_rule(mod, g, tmp):
    """
    **Expression Name**: GenVar_Scheduled_Curtailment_MW
    **Defined Over**: GEN_VAR_OPR_TMPS

    Scheduled curtailment is the available power minus what was actually
    provided.
    """
    return (
        mod.Capacity_MW[g, mod.period[tmp]]
        * mod.Availability_Derate[g, tmp]
        * mod.gen_var_cap_factor[g, tmp]
        - mod.GenVar_Provide_Power_MW[g, tmp]
    )