Class MRVMRegionalBidder
- java.lang.Object
-
- org.spectrumauctions.sats.core.model.SATSBidder
-
- org.spectrumauctions.sats.core.model.mrvm.MRVMBidder
-
- org.spectrumauctions.sats.core.model.mrvm.MRVMRegionalBidder
-
- All Implemented Interfaces:
java.io.Serializable,org.marketdesignresearch.mechlib.core.bidder.Bidder,org.marketdesignresearch.mechlib.core.bidder.valuefunction.ValueFunction,org.marketdesignresearch.mechlib.instrumentation.MipInstrumentationable
public final class MRVMRegionalBidder 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.MRVMRegionalBidderdrawSimilarBidder(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.intgetHomeId()<T extends BiddingLanguage>
TgetValueFunction(java.lang.Class<T> type, RNGSupplier rngSupplier)inthashCode()voidrefreshReference(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.-
Methods inherited from class org.spectrumauctions.sats.core.model.mrvm.MRVMBidder
calculateValue, canEqual, getAllocationLimit, getAlpha, getBestBundles, getBeta, getWorld, getzHigh, getzLow, omegaFactor, setAllocationLimit, svFunction, svFunction
-
Methods inherited from class org.spectrumauctions.sats.core.model.SATSBidder
calculateValues, getDescription, getId, getLongId, getMipInstrumentation, getName, getPopulation, getSetup, getSetupType, getShortDescription, getStrategy, getValue, getValueFunction, getValueFunction, getWorldId, setMipInstrumentation, setStrategy, store, toString
-
-
-
-
Method Detail
-
getHomeId
public int getHomeId()
-
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. If the two regions are not disconnected, the value is 0.- Specified by:
gammaFactorin classMRVMBidder- Parameters:
bundle- Is not required for calculation of regional 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 regional bidders gamma factors and will be ignored.
-
drawSimilarBidder
public MRVMRegionalBidder drawSimilarBidder(RNGSupplier rngSupplier)
- Specified by:
drawSimilarBidderin classSATSBidder
-
getValueFunction
public <T extends BiddingLanguage> T getValueFunction(java.lang.Class<T> type, RNGSupplier rngSupplier) throws UnsupportedBiddingLanguageException
- Overrides:
getValueFunctionin classMRVMBidder- Throws:
UnsupportedBiddingLanguageException
-
refreshReference
public void refreshReference(World world)
Description copied from class:SATSBidderTo 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.- Overrides:
refreshReferencein classMRVMBidder- See Also:
SATSBidder.refreshReference(World)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classMRVMBidder
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classMRVMBidder
-
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
-
-