def configure_weighted_rrn_price_targeting_model(m):
    """Configure mode to target weighted RRN prices"""

    # Ensure weighted RRN price targeting objective is the only one active
    m.O_FEASIBILITY.deactivate()
    m.O_PERMIT_PRICE_TARGET.deactivate()

    # Deactivate first order condition and permit market constraints that have not been linearised
    m.C_FOC_1.deactivate()
    m.C_PERMIT_MARKET_1.deactivate()
    m.C_PERMIT_MARKET_3.deactivate()

    return m