def get_resource_suffix(params):
    """
    This function generates the part of suffix of result folders that pertains to resource cap(s).

    Parameters
    ----------
    params : dict
        Parameters that are needed to run the indp optimization.

    Returns
    -------
     out_dir_suffix_res : str
     The part of suffix of result folders that pertains to resource cap(s).

    """
    out_dir_suffix_res = ''
    for rc, val in params["V"].items():
        if isinstance(val[0], int) or isinstance(val[0], float):
            sum_res = sum([valt for _, valt in val.items()])
            if rc != '':
                out_dir_suffix_res += rc[0] + str(sum_res)
            else:
                out_dir_suffix_res += str(sum_res)
        else:
            sum_res = sum([sum([lval for _, lval in valt.items()]) for _, valt in val.items()])
            out_dir_suffix_res += rc[0] + str(sum_res) + '_fixed_layer_Cap'
    return out_dir_suffix_res