public class TariffEvaluator extends Object
| Constructor and Description |
|---|
TariffEvaluator(CustomerModelAccessor cma) |
| Modifier and Type | Method and Description |
|---|---|
double |
computeInconvenience(org.powertac.common.Tariff tariff)
Computes composite per-tariff inconvenience of a tariff.
|
void |
evaluateTariffs()
Evaluates tariffs and updates subscriptions
for a single customer model with a single power type.
|
double |
getInterruptibilityFactor()
Returns inconvenience of interruptibility.
|
double |
getTieredRateFactor()
Returns inconvenience of tiered rate.
|
double |
getTouFactor()
Returns inconvenience of time-of-use rate.
|
double |
getVariablePricingFactor()
Returns inconvenience of variable pricing.
|
void |
initializeCostFactors(double wtExpected,
double wtMax,
double wtRealized,
double soldThreshold)
Delegates profile cost factors to helper.
|
void |
initializeInconvenienceFactors(double touFactor,
double tieredRateFactor,
double variablePricingFactor,
double interruptibilityFactor)
Initializes the per-tariff inconvenience factors.
|
void |
initializeRegulationFactors(double expectedCurtailment,
double expectedDischarge,
double expectedDownRegulation)
Initializes the per-timeslot regulation-capacity estimates.
|
TariffEvaluator |
withChunkSize(int size)
Sets the target size of allocation chunks.
|
TariffEvaluator |
withEvaluateAllTariffs(boolean value)
If true, then tariff evaluations are not saved; instead, all tariffs
are evaluated each time.
|
TariffEvaluator |
withInconvenienceWeight(double weight)
Sets the weight given to inconvenience (as opposed to cost)
in computing tariff utility.
|
TariffEvaluator |
withInertia(double inertia)
Sets the steady-state evaluation inertia for the customer.
|
TariffEvaluator |
withPreferredContractDuration(double days)
Sets the preferred maximum contract duration in days.
|
TariffEvaluator |
withRationality(double rationality)
Sets the level of rationality for this customer.
|
TariffEvaluator |
withSignupBonusFactor(double factor)
Sets the factor by which inertia is multiplied for the case where
the current tariff had a positive signup bonus.
|
TariffEvaluator |
withTariffEvalDepth(int depth)
Sets the number of tariffs/broker of each applicable PowerType
to consider.
|
TariffEvaluator |
withTariffSwitchFactor(double factor)
Sets the inconvenience of switching tariffs.
|
public TariffEvaluator(CustomerModelAccessor cma)
public void initializeCostFactors(double wtExpected,
double wtMax,
double wtRealized,
double soldThreshold)
public void initializeInconvenienceFactors(double touFactor,
double tieredRateFactor,
double variablePricingFactor,
double interruptibilityFactor)
public void initializeRegulationFactors(double expectedCurtailment,
double expectedDischarge,
double expectedDownRegulation)
public TariffEvaluator withChunkSize(int size)
public TariffEvaluator withTariffEvalDepth(int depth)
public TariffEvaluator withEvaluateAllTariffs(boolean value)
public TariffEvaluator withInertia(double inertia)
public TariffEvaluator withSignupBonusFactor(double factor)
public TariffEvaluator withRationality(double rationality)
public TariffEvaluator withInconvenienceWeight(double weight)
public TariffEvaluator withTariffSwitchFactor(double factor)
public TariffEvaluator withPreferredContractDuration(double days)
public void evaluateTariffs()
public double getTouFactor()
public double getTieredRateFactor()
public double getVariablePricingFactor()
public double getInterruptibilityFactor()
public double computeInconvenience(org.powertac.common.Tariff tariff)
Copyright © 2016 Power TAC. All Rights Reserved.