Package agents.markets.meritOrder
Class MarketClearingResult
- java.lang.Object
-
- agents.markets.meritOrder.MarketClearingResult
-
public class MarketClearingResult extends Object
Holds clearing price, sold energy, and updatedDemandOrderBook
andSupplyOrderBook
- Author:
- Farzad Sarfarazi, Christoph Schimeczek, A. Achraf El Ghazi
-
-
Constructor Summary
Constructors Constructor Description MarketClearingResult(double tradedEnergyInMWH, double marketPriceInEURperMWH)
Instantiate with price and awarded energy; books are set separatelyMarketClearingResult(ClearingDetails clearingResult, DemandOrderBook demandBook, SupplyOrderBook supplyBook)
Instantiate with tradedEnergyInMWH, marketPriceInEURperMWH, priceSettingDemandBidIdx, priceSettingSupplyBidIdx, and minPriceSettingDemand from a ClearingResult object; and with demandBook, and supplyBook.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DemandOrderBook
getDemandBook()
double
getMarketPriceInEURperMWH()
SupplyOrderBook
getSupplyBook()
double
getSystemCostTotalInEUR()
double
getTradedEnergyInMWH()
void
setBooks(SupplyOrderBook supplyBook, DemandOrderBook demandBook, OrderBook.DistributionMethod distributionMethod)
Set and update books, i.e. award contained bids according to their individual resultsvoid
setMarketPriceInEURperMWH(double marketPriceInEURperMWH)
-
-
-
Constructor Detail
-
MarketClearingResult
public MarketClearingResult(double tradedEnergyInMWH, double marketPriceInEURperMWH)
Instantiate with price and awarded energy; books are set separately- Parameters:
tradedEnergyInMWH
- total awarded energymarketPriceInEURperMWH
- uniform market clearing price
-
MarketClearingResult
public MarketClearingResult(ClearingDetails clearingResult, DemandOrderBook demandBook, SupplyOrderBook supplyBook)
Instantiate with tradedEnergyInMWH, marketPriceInEURperMWH, priceSettingDemandBidIdx, priceSettingSupplyBidIdx, and minPriceSettingDemand from a ClearingResult object; and with demandBook, and supplyBook. The priceSettingDemandBidIdx, priceSettingSupplyBidIdx, and minPriceSettingDemand are optional in a ClearingResult object, they are only set if not null.- Parameters:
clearingResult
- result of market clearingdemandBook
- book of demand bidssupplyBook
- book of supply bids
-
-
Method Detail
-
setBooks
public void setBooks(SupplyOrderBook supplyBook, DemandOrderBook demandBook, OrderBook.DistributionMethod distributionMethod)
Set and update books, i.e. award contained bids according to their individual results- Parameters:
supplyBook
- Supply book used to clear the marketdemandBook
- Demand book used to clear the marketdistributionMethod
- defines method of how to award energy when multiple price-setting bids occur
-
getDemandBook
public DemandOrderBook getDemandBook()
- Returns:
- updated demand order book used to clear the market
-
getSupplyBook
public SupplyOrderBook getSupplyBook()
- Returns:
- updated supply order book used to clear the market
-
getTradedEnergyInMWH
public double getTradedEnergyInMWH()
- Returns:
- total awarded energy
-
getMarketPriceInEURperMWH
public double getMarketPriceInEURperMWH()
- Returns:
- uniform market clearing price
-
getSystemCostTotalInEUR
public double getSystemCostTotalInEUR()
- Returns:
- total system cost from generation based on awarded bids and their associated marginal cost
-
setMarketPriceInEURperMWH
public void setMarketPriceInEURperMWH(double marketPriceInEURperMWH)
- Parameters:
marketPriceInEURperMWH
- the marketPriceInEURperMWH to set
-
-