public class TariffEvaluationHelper extends Object
Constructor and Description |
---|
TariffEvaluationHelper()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
double |
estimateCost(Tariff tariff,
double[] usage)
Returns aggregate estimated cost, including periodic charges,
starting in the next timeslot.
|
double |
estimateCost(Tariff tariff,
double[] usage,
boolean includePeriodicCharge)
Estimate cost for a profile starting in the next timeslot
|
double |
estimateCost(Tariff tariff,
double[] usage,
org.joda.time.Instant start)
Returns aggregate estimated cost, including periodic charges
|
double |
estimateCost(Tariff tariff,
double[] usage,
org.joda.time.Instant start,
boolean includePeriodicCharge)
Estimate the total cost of buying the given amounts of power
from the given tariff, starting in the timeslot identified by startIndex.
|
double[] |
estimateCostArray(Tariff tariff,
double[] usage)
Returns a cost estimate in array form, including periodic charges.
|
double[] |
estimateCostArray(Tariff tariff,
double[] usage,
boolean includePeriodicCharge)
Returns the cost estimate in the form of an array of the same shape
as the usage vector.
|
double |
getExpectedCurtailment()
Returns the expected-curtailment-per-timeslot quantity
|
double |
getExpectedDischarge()
Returns the expected-discharge-per-timeslot quantity
|
double |
getExpectedDownRegulation()
Returns the expected-down-regulation-per-timeslot quantity
|
double |
getExpectedRegulation() |
double |
getNormWtExpected() |
double |
getNormWtMax() |
double |
getSoldThreshold() |
double |
getWtExpected()
Parameter access
|
double |
getWtMax() |
double |
getWtRealized() |
void |
init()
Initializes, without changing parameter settings
|
void |
init(double wtExpected,
double wtMax,
double wtRealized,
double soldThreshold)
Initializes, setting parameters, then normalize the weights for
expectedMean and maxValue.
|
void |
initializeCostFactors(double wtExpected,
double wtMax,
double wtRealized,
double soldThreshold)
Initializes cost factors and normalizes
|
void |
initializeRegulationFactors(double expectedCurtailment,
double expectedDischarge,
double expectedDownReg)
Initializes regulation factors.
|
void |
setSoldThreshold(double st) |
void |
setWtExpected(double wt) |
void |
setWtMax(double wt) |
void |
setWtRealized(double wt) |
public void init(double wtExpected, double wtMax, double wtRealized, double soldThreshold)
public void init()
public void initializeCostFactors(double wtExpected, double wtMax, double wtRealized, double soldThreshold)
public void initializeRegulationFactors(double expectedCurtailment, double expectedDischarge, double expectedDownReg)
RegulationRate
s. See Section 4.1.1 of the 2014 spec for
details, especially Eq. 5. Signs are from the standpoint of the
customer -- expectedCurtailment and expectedDischarge are negative,
expectedDownReg is positive.
If this method is not called, default values are zero for all factors.public double estimateCost(Tariff tariff, double[] usage, org.joda.time.Instant start, boolean includePeriodicCharge)
includePeriodicCharge
is true. They do not
include signup or withdrawal charges.
Note that there is a strong assumption that the projected usage
is for a single customer, not the total population in some model.
This assumption is embedded in the structure of usage tiers in the
tariff.public double estimateCost(Tariff tariff, double[] usage, boolean includePeriodicCharge)
public double estimateCost(Tariff tariff, double[] usage, org.joda.time.Instant start)
public double estimateCost(Tariff tariff, double[] usage)
public double[] estimateCostArray(Tariff tariff, double[] usage, boolean includePeriodicCharge)
includePeriodicCharge
is true.public double[] estimateCostArray(Tariff tariff, double[] usage)
public double getWtExpected()
public double getNormWtExpected()
public void setWtExpected(double wt)
public double getWtMax()
public double getNormWtMax()
public void setWtMax(double wt)
public double getWtRealized()
public void setWtRealized(double wt)
public double getSoldThreshold()
public void setSoldThreshold(double st)
public double getExpectedCurtailment()
public double getExpectedDischarge()
public double getExpectedDownRegulation()
public double getExpectedRegulation()
Copyright © 2019 Power TAC. All rights reserved.