Class PriceSensitivity
- java.lang.Object
-
- agents.markets.meritOrder.sensitivities.MeritOrderSensitivity
-
- agents.markets.meritOrder.sensitivities.PriceSensitivity
-
public class PriceSensitivity extends MeritOrderSensitivity
Reflects the sensitivity of the merit order price to bid changes- Author:
- Christoph Schimeczek
-
-
Field Summary
-
Fields inherited from class agents.markets.meritOrder.sensitivities.MeritOrderSensitivity
chargingItems, dischargingItems, externalChargingPowerInMW, externalDischargingPowerInMW
-
-
Constructor Summary
Constructors Constructor Description PriceSensitivity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
calcMonetaryValue(SensitivityItem item)
Calculates monetary value of given itemdouble
calcPriceForExternalEnergyDelta(double externalEnergyDelta)
Calculates expected energy price at given (dis-)charging amountprotected double
calcValueOfItemAtPower(SensitivityItem item, double power)
Calculates value of given sensitivity item at specified powerprotected Comparator<SensitivityItem>
getComparator()
double
getPriceWithoutCharging()
protected void
selectOrderBookItems(SupplyOrderBook supplyBookForecast, DemandOrderBook demandBookForecast)
pick from given supply and / or demandOrderBook
s - and add picked one(s) to this sensitivityvoid
updatePriceForecast(double electricityPriceForecast)
Stores fixed electricity price forecast value-
Methods inherited from class agents.markets.meritOrder.sensitivities.MeritOrderSensitivity
extractOrders, getStepPowers, getValuesInSteps, hasPositiveBlockPower, isEmpty, updatePowers, updateSensitivities
-
-
-
-
Method Detail
-
selectOrderBookItems
protected void selectOrderBookItems(SupplyOrderBook supplyBookForecast, DemandOrderBook demandBookForecast)
Description copied from class:MeritOrderSensitivity
pick from given supply and / or demandOrderBook
s - and add picked one(s) to this sensitivity- Specified by:
selectOrderBookItems
in classMeritOrderSensitivity
- Parameters:
supplyBookForecast
- order book with supply orders after clearingdemandBookForecast
- order book with demand orders after clearing
-
getComparator
protected Comparator<SensitivityItem> getComparator()
- Specified by:
getComparator
in classMeritOrderSensitivity
- Returns:
Comparator
forSensitivityItem
s to be used by this Sensitivity type
-
calcMonetaryValue
protected double calcMonetaryValue(SensitivityItem item)
Description copied from class:MeritOrderSensitivity
Calculates monetary value of given item- Specified by:
calcMonetaryValue
in classMeritOrderSensitivity
- Parameters:
item
- to assess- Returns:
- monetary value of this
SensitivityItem
according to this Sensitivity type
-
calcValueOfItemAtPower
protected double calcValueOfItemAtPower(SensitivityItem item, double power)
Description copied from class:MeritOrderSensitivity
Calculates value of given sensitivity item at specified power- Specified by:
calcValueOfItemAtPower
in classMeritOrderSensitivity
- Parameters:
item
- that is to be evaluatedpower
- to be applied- Returns:
- value of given
SensitivityItem
at specified power according to this Sensitivity type;
when power > 0: charging, otherwise discharging
-
calcPriceForExternalEnergyDelta
public double calcPriceForExternalEnergyDelta(double externalEnergyDelta)
Calculates expected energy price at given (dis-)charging amount- Parameters:
externalEnergyDelta
- > 0: charging, < 0: discharging- Returns:
- expected energy price at given (dis-)charging amount
-
getPriceWithoutCharging
public double getPriceWithoutCharging()
- Returns:
- price without any (dis-)charging activity in €/MWh
-
updatePriceForecast
public void updatePriceForecast(double electricityPriceForecast)
Description copied from class:MeritOrderSensitivity
Stores fixed electricity price forecast value- Specified by:
updatePriceForecast
in classMeritOrderSensitivity
- Parameters:
electricityPriceForecast
- value to store
-
-