def find_rlc(p_utility, q_utility, r_set, l_set, c_set):
    """
    Proportional controllers for adjusting the resistance and capacitance values in the RLC load bank

    :param p_utility: utility/source active power in watts
    :param q_utility: utility/source reactive power in var
    :param r_set: prior resistor % change
    :param l_set: prior inductor % change
    :param c_set: prior capacitor % change
    :return:
    """

    smoothing_factor = 0.50  # only move a small percentage of the desired change for stability
    cap = c_set + (6./1300. * q_utility) * smoothing_factor
    res = r_set + (50.5/11700. * p_utility) * smoothing_factor

    return res, l_set, cap