bill2watt.scaling package

Submodules

bill2watt.scaling.flat module

This module contains the function ‘evaluate’, used to scale a typical load profile according to certain ToU monthly energy consumption values, using a flat approach.

Notes

Info

Author: G. Lorenti Email: gianmarco.lorenti@polito.it

bill2watt.scaling.flat.evaluate(y, x_des, nd=None, x=None)

Scale a typical load profile (y) so that the total monthly energy consumption associated with it equals the desired value (x_des).

Parameters

yndarray

Typical load profile to be scaled.

x_desfloat or ndarray

Desired monthly energy consumption (divided into ToU tariffs if ndarray).

ndndarray, optional

Number of days of each type in the month. If provided, ‘x’ should not be provided.

xfloat or ndarray, optional

Monthly energy consumption associated with ‘y’ (divided into ToU tariffs if ndarray). If provided, ‘nd’ should not be provided.

Returns

y_scalendarray

Scaled load profile.

Raises

AssertionError

If ‘y’, ‘x_des’, ‘nd’, or ‘x’ do not comply with the requirements, or if ‘nd’ are ‘x’ are provided at the same time.

Module contents