|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powertac.common.TariffEvaluator
public class TariffEvaluator
Tariff evaluation process intended to simplify customer models. There should be one of these created for each CustomerInfo instance within a customer model, since tariff cost values are cached, and are dependent on PowerType.
| Constructor Summary | |
|---|---|
TariffEvaluator(CustomerModelAccessor cma)
|
|
| Method Summary | |
|---|---|
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. |
TariffEvaluator |
withChunkSize(int size)
Sets the target size of allocation chunks. |
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 |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TariffEvaluator(CustomerModelAccessor cma)
| Method Detail |
|---|
public void initializeCostFactors(double wtExpected,
double wtMax,
double wtRealized,
double soldThreshold)
public void initializeInconvenienceFactors(double touFactor,
double tieredRateFactor,
double variablePricingFactor,
double interruptibilityFactor)
public TariffEvaluator withChunkSize(int size)
public TariffEvaluator withTariffEvalDepth(int depth)
public TariffEvaluator withInertia(double inertia)
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||