public final class MRVMNationalBidder extends MRVMBidder
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
BigDecimal |
gammaFactor(MRVMRegionsMap.Region r,
Bundle<MRVMLicense> bundle)
Calculates the gamma factor, as explained in the model writeup.
|
Map<MRVMRegionsMap.Region,BigDecimal> |
gammaFactors(Bundle<MRVMLicense> bundle)
Calculates the gamma factors for all regions.
|
BigDecimal |
getGamma(int uncoveredRegions)
Reads the gammavalue form the stored map.
|
int |
getKMax() |
<T extends BiddingLanguage> |
getValueFunction(Class<T> type,
long seed)
Use this method to get a desired value function representation (bidding language)
for this bidder.
|
int |
hashCode() |
calculateValue, calculateValue, getAlpha, getBeta, getWorld, getzHigh, getzLow, omegaFactor, refreshReference, svFunction, svFunctiongetId, getPopulation, getSetupType, getValue, getValueFunction, getWorldId, storepublic BigDecimal gammaFactor(MRVMRegionsMap.Region r, Bundle<MRVMLicense> bundle)
gammaFactor in class MRVMBidderr - Not required for gamma calculation of national bidder and will be ignoredbundle - The complete bundle (not only containing the licenses of r).public Map<MRVMRegionsMap.Region,BigDecimal> gammaFactors(Bundle<MRVMLicense> bundle)
MRVMBidder.gammaFactor(MRVMRegionsMap.Region, Bundle)gammaFactors in class MRVMBidderbundle - The bundle for which the discounts will be calculated.public int getKMax()
public BigDecimal getGamma(int uncoveredRegions)
getKMax(), then the value for kMax is returned (see model writeup for explanation).uncoveredRegions - the number of regions that are uncoveredpublic <T extends BiddingLanguage> T getValueFunction(Class<T> type, long seed) throws UnsupportedBiddingLanguageException
BiddergetValueFunction in class MRVMBiddertype - the type of the value functionUnsupportedBiddingLanguageException - Throws this exception for all bidding languages
which are not supported by the implementing bidder class. This javadoc should be extended by
the implementing class, specifying which value function representation are supported.public int hashCode()
hashCode in class MRVMBidderpublic boolean equals(Object obj)
equals in class MRVMBidderCopyright © 2017. All rights reserved.