Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

immediate charging: calculate adjustment values strategy #315

Open
dmuldrew opened this issue Oct 5, 2022 · 1 comment
Open

immediate charging: calculate adjustment values strategy #315

dmuldrew opened this issue Oct 5, 2022 · 1 comment
Labels
transportation electrification UCI Transportation Electrification

Comments

@dmuldrew
Copy link
Collaborator

dmuldrew commented Oct 5, 2022

Currently our LDV immediate test does not use adjustment_values in the following function in immediate.py:

def adjust_bev(hourly_profile, adjustment_values):  # noqa: N802
    """Adjusts the charging profiles by applying weighting factors based on
    seasonal/monthly values

    :param numpy.ndarray hourly_profile: normalized charging profiles
    :param pandas.DataFrame adjustment_values: weighting factors for each
        day of the year loaded from month_info_nhts.mat.
    :return: (*numpy.ndarray*) -- the final adjusted charging profiles.
    """
    adj_vals = adjustment_values.transpose()
    profiles = hourly_profile.reshape((24, 365), order="F")

    pr = profiles / sum(profiles)
    adjusted = pr * adj_vals

    return adjusted.T.flatten()

We need to define a strategy for calculating this parameter which incorporates urban and rural scaling?

@keforres
Copy link

keforres commented Oct 5, 2022

I will look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
transportation electrification UCI Transportation Electrification
Projects
None yet
Development

No branches or pull requests

2 participants