Class MRVMNationalBidder

  • 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 MRVMNationalBidder
    extends MRVMBidder
    Author:
    Michael Weiss
    See Also:
    Serialized Form
    • 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:
        gammaFactor in class MRVMBidder
        Parameters:
        r - Not required for gamma calculation of national bidder and will be ignored
        bundle - The complete bundle (not only containing the licenses of r).
      • 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, see MRVMBidder.gammaFactor(MRVMRegionsMap.Region, Set)

        As gamma is not dependent on the region for national bidders, the returned map will contain the same value for all keys, i.e. the same gamma for all regions
        Specified by:
        gammaFactors in class MRVMBidder
        Parameters:
        bundle - The bundle for which the discounts will be calculated.
      • getKMax

        public int getKMax()
      • getGamma

        public java.math.BigDecimal getGamma​(int uncoveredRegions)
        Reads the gammavalue form the stored map. If uncoveredRegions greater than getKMax(), then the value for kMax is returned (see model writeup for explanation).
        Parameters:
        uncoveredRegions - the number of regions that are uncovered
        Returns:
        the gamma value for the number of uncovered regions
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class MRVMBidder
      • bidderTypeSpecificDemandQueryMIPAdjustments

        protected void bidderTypeSpecificDemandQueryMIPAdjustments​(MRVM_MIP mip)
        Description copied from class: MRVMBidder
        Allows 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:
        bidderTypeSpecificDemandQueryMIPAdjustments in class MRVMBidder