public abstract class MRVMBidder extends Bidder<MRVMLicense> implements GenericValueBidder<MRVMGenericDefinition>
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
calculateValue(Bundle<MRVMLicense> bundle)
Returns the value this bidder has for a specific bundle.
|
BigDecimal |
calculateValue(Map<MRVMGenericDefinition,Integer> genericQuantities) |
boolean |
equals(Object obj) |
abstract BigDecimal |
gammaFactor(MRVMRegionsMap.Region r,
Bundle<MRVMLicense> bundle)
Calculates the gamma factor, as explained in the model writeup.
|
abstract Map<MRVMRegionsMap.Region,BigDecimal> |
gammaFactors(Bundle<MRVMLicense> bundle)
Calculates the gamma factors for all regions.
|
BigDecimal |
getAlpha() |
BigDecimal |
getBeta(MRVMRegionsMap.Region region) |
<T extends BiddingLanguage> |
getValueFunction(Class<T> clazz,
RNGSupplier rngSupplier) |
MRVMWorld |
getWorld() |
BigDecimal |
getzHigh(MRVMRegionsMap.Region region) |
BigDecimal |
getzLow(MRVMRegionsMap.Region region) |
int |
hashCode() |
BigDecimal |
omegaFactor(MRVMRegionsMap.Region r,
BigDecimal sv)
Calculates the omega factor (i.e., the regional value)
|
void |
refreshReference(World world)
To prevent from creating too many identical world instances, worlds are not serialized and deserialized with the bidder
As a temporary solution, the world instance is re-added after deserialization by calling this method. This method will be removed in a later version and be done automatically during deserialization. |
ContinuousPiecewiseLinearFunction |
svFunction(MRVMRegionsMap.Region region) |
BigDecimal |
svFunction(MRVMRegionsMap.Region region,
BigDecimal c)
Calculates the sv-function [See description in paper]
|
drawSimilarBidder, getId, getPopulation, getSetup, getSetupType, getValue, getValueFunction, getValueFunction, getWorldId, storepublic BigDecimal omegaFactor(MRVMRegionsMap.Region r, BigDecimal sv)
public BigDecimal svFunction(MRVMRegionsMap.Region region, BigDecimal c)
public ContinuousPiecewiseLinearFunction svFunction(MRVMRegionsMap.Region region)
public abstract BigDecimal gammaFactor(MRVMRegionsMap.Region r, Bundle<MRVMLicense> bundle)
r - The region for which the discount is requestedbundle - The complete bundle (not only containing the licenses of r).public abstract Map<MRVMRegionsMap.Region,BigDecimal> gammaFactors(Bundle<MRVMLicense> bundle)
gammaFactor(MRVMRegionsMap.Region, Bundle)bundle - The bundle for which the discounts will be calculated.public BigDecimal calculateValue(Bundle<MRVMLicense> bundle)
BiddercalculateValue in class Bidder<MRVMLicense>bundle - the bundle for which the value is askedpublic BigDecimal calculateValue(Map<MRVMGenericDefinition,Integer> genericQuantities)
calculateValue in interface GenericValueBidder<MRVMGenericDefinition>GenericValueBidder.calculateValue(java.util.Map)public MRVMWorld getWorld()
getWorld in class Bidder<MRVMLicense>public BigDecimal getzLow(MRVMRegionsMap.Region region)
public BigDecimal getzHigh(MRVMRegionsMap.Region region)
public BigDecimal getAlpha()
public BigDecimal getBeta(MRVMRegionsMap.Region region)
public void refreshReference(World world)
BidderrefreshReference in class Bidder<MRVMLicense>Bidder.refreshReference(World)public <T extends BiddingLanguage> T getValueFunction(Class<T> clazz, RNGSupplier rngSupplier) throws UnsupportedBiddingLanguageException
getValueFunction in class Bidder<MRVMLicense>UnsupportedBiddingLanguageExceptionpublic int hashCode()
hashCode in class Bidder<MRVMLicense>public boolean equals(Object obj)
equals in class Bidder<MRVMLicense>Copyright © 2019. All rights reserved.