def get_optimal_parameter_value(results):
    """Given a list of results as returned by *run_parameter_study*,
    return the parameter value minimizing total cost.
    """
    best_result = min(
            results,
            key=lambda res: sum(res["cost"].get_predicted_times().values()))

    return best_result["param_value"]