Class SizeBasedUniqueRandomXOR

    • Constructor Detail

      • SizeBasedUniqueRandomXOR

        public SizeBasedUniqueRandomXOR​(java.util.Collection<? extends License> goods,
                                        RNGSupplier rngSupplier,
                                        SATSBidder bidder)
    • Method Detail

      • getValue

        protected java.math.BigDecimal getValue​(org.marketdesignresearch.mechlib.core.Bundle goods)
      • getBidder

        public SATSBidder getBidder()
        Description copied from interface: BiddingLanguage
        References back to the SATSBidder instance from whom this Bidding language instance was created.
        Specified by:
        getBidder in interface BiddingLanguage
      • setDefaultDistribution

        public void setDefaultDistribution()
      • setMaxIterations

        public void setMaxIterations()
      • setIterations

        public void setIterations​(int iterations)
        Set the number of iterations of this iterator.
        Parameters:
        iterations - : The number of iterations before iterator.hasNext() returns false. Note that setting this parameter too high will result in a slow iterator and possibly cause a StackOverflowException while iterating.
      • setDistribution

        public void setDistribution​(int meanBundleSize,
                                    double standardDeviation)
        Set the basic distribution of this iterator. Note that the parameters are not checked for its validity and meaningfulness.
        Parameters:
        meanBundleSize - : The mean bundle size of the randomly generated packages. Should by greater than 0 and less than or equal to the number of goods.
        standardDeviation - : The bundle size standard deviation
      • setDistribution

        @Deprecated
        public void setDistribution​(int meanBundleSize,
                                    double standardDeviation,
                                    int iterations)
        Deprecated.