Class MarginalCostSensitivity
- java.lang.Object
-
- agents.markets.meritOrder.sensitivities.MeritOrderSensitivity
-
- agents.markets.meritOrder.sensitivities.MarginalCostSensitivity
-
public class MarginalCostSensitivity extends MeritOrderSensitivity
Reflects the sensitivity of supply-side marginal cost with respect to changes in demand- Author:
- Christoph Schimeczek
-
-
Field Summary
-
Fields inherited from class agents.markets.meritOrder.sensitivities.MeritOrderSensitivity
chargingItems, dischargingItems, externalChargingPowerInMW, externalDischargingPowerInMW
-
-
Constructor Summary
Constructors Constructor Description MarginalCostSensitivity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
calcMonetaryValue(SensitivityItem item)
Calculates monetary value of given itemprotected double
calcValueOfItemAtPower(SensitivityItem item, double power)
Calculates value of given sensitivity item at specified powerprotected Comparator<SensitivityItem>
getComparator()
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:
- the monetary value as a product of items power and marginal costs
-
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
-
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
-
-