def fill_params(params, paramsname):
    #modified by Bodhi Wang
    #2019.11.26
    """
    index = 0
    result = dict()
    for name in paramsname:
        result[name] = params[index]
        index += 1
    """
    result = dict(zip(paramsname, params))
    return result