def set_params(params, name_short, value=None, vary=None, min=None, max=
    None, expr=None, brute_step=None):
    """Set the initial value and (optional) bounds and brute step size for parameters."""
    matches = set()
    name_short_re = name_short.to_re()
    for name, param in params.items():
        if name_short_re.match(name):
            if expr is None and param.expr and vary is None:
                param.value = value
            else:
                param.set(value, vary, min, max, expr, brute_step)
            matches.add(name)
    return matches
