Class MRVMLocalBidder
- java.lang.Object
-
- org.spectrumauctions.sats.core.model.SATSBidder
-
- org.spectrumauctions.sats.core.model.mrvm.MRVMBidder
-
- org.spectrumauctions.sats.core.model.mrvm.MRVMLocalBidder
-
- All Implemented Interfaces:
java.io.Serializable,org.marketdesignresearch.mechlib.core.bidder.Bidder,org.marketdesignresearch.mechlib.instrumentation.MipInstrumentationable
public final class MRVMLocalBidder extends MRVMBidder
- Author:
- Michael Weiss
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.spectrumauctions.sats.core.model.SATSBidder
DEFAULT_DEMAND_QUERY_EPSILON, DEFAULT_DEMAND_QUERY_TIME_LIMIT
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbidderTypeSpecificDemandQueryMIPAdjustments(MRVM_MIP mip)Allows a specific bidder type (subclass) to change the demand query mip before execution.MRVMLocalBidderdrawSimilarBidder(RNGSupplier rngSupplier)booleanequals(java.lang.Object obj)java.math.BigDecimalgammaFactor(MRVMRegionsMap.Region r, java.util.Set<MRVMLicense> bundle)Calculates the gamma factor, as explained in the model writeup.java.util.Map<MRVMRegionsMap.Region,java.math.BigDecimal>gammaFactors(java.util.Set<MRVMLicense> bundle)Calculates the gamma factors for all regions.<T extends BiddingLanguage>
TgetValueFunction(java.lang.Class<T> type, RNGSupplier rngSupplier)inthashCode()-
Methods inherited from class org.spectrumauctions.sats.core.model.mrvm.MRVMBidder
calculateValue, canEqual, getAllocationLimit, getAlpha, getBestBundles, getBeta, getWorld, getzHigh, getzLow, omegaFactor, refreshReference, setAllocationLimit, svFunction, svFunction
-
Methods inherited from class org.spectrumauctions.sats.core.model.SATSBidder
getDescription, getId, getLongId, getMipInstrumentation, getName, getPopulation, getSetup, getSetupType, getShortDescription, getStrategy, getValue, getValueFunction, getValueFunction, getWorldId, setMipInstrumentation, setStrategy, store, toString
-
-
-
-
Method Detail
-
gammaFactor
public java.math.BigDecimal gammaFactor(MRVMRegionsMap.Region r, java.util.Set<MRVMLicense> bundle)
Calculates the gamma factor, as explained in the model writeup.
The gamma factor represents a bidder-specific discount of the the regional (omega) values.- Specified by:
gammaFactorin classMRVMBidder- Parameters:
bundle- Is not required for calculation of local bidders gamma factors and will be ignored.r- The region for which the discount is requested
-
gammaFactors
public java.util.Map<MRVMRegionsMap.Region,java.math.BigDecimal> gammaFactors(java.util.Set<MRVMLicense> bundle)
Calculates the gamma factors for all regions. For explanations of the gamma factors, seeMRVMBidder.gammaFactor(MRVMRegionsMap.Region, Set)- Specified by:
gammaFactorsin classMRVMBidder- Parameters:
bundle- Is not required for calculation of local bidders gamma factors and will be ignored.
-
getValueFunction
public <T extends BiddingLanguage> T getValueFunction(java.lang.Class<T> type, RNGSupplier rngSupplier) throws UnsupportedBiddingLanguageException
- Overrides:
getValueFunctionin classMRVMBidder- Throws:
UnsupportedBiddingLanguageException
-
drawSimilarBidder
public MRVMLocalBidder drawSimilarBidder(RNGSupplier rngSupplier)
- Specified by:
drawSimilarBidderin classSATSBidder
-
bidderTypeSpecificDemandQueryMIPAdjustments
protected void bidderTypeSpecificDemandQueryMIPAdjustments(MRVM_MIP mip)
Description copied from class:MRVMBidderAllows a specific bidder type (subclass) to change the demand query mip before execution. I.e. restrict demand query result to items where the bidder is interested in.- Specified by:
bidderTypeSpecificDemandQueryMIPAdjustmentsin classMRVMBidder
-
hashCode
public int hashCode()
- Overrides:
hashCodein classMRVMBidder
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classMRVMBidder
-
-