Class GSVMBidder

  • 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 GSVMBidder
    extends SATSBidder
    Author:
    Fabio Isler
    See Also:
    Serialized Form
    • Method Detail

      • calculateValue

        public java.math.BigDecimal calculateValue​(org.marketdesignresearch.mechlib.core.Bundle bundle)
        Description copied from class: SATSBidder
        Returns the value this bidder has for a specific bundle.
        Specified by:
        calculateValue in class SATSBidder
        Parameters:
        bundle - the bundle for which the value is asked
        Returns:
        bidder specific value for this bundle
      • getBidderPosition

        public int getBidderPosition()
      • getWorld

        public GSVMWorld getWorld()
        Specified by:
        getWorld in class SATSBidder
        Returns:
        World to which this bidder belongs. The implementing Bidder class, overriding this method, should return a world type corresponding to the specific model.
      • refreshReference

        public void refreshReference​(World world)
        Description copied from class: SATSBidder
        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.
        Specified by:
        refreshReference in class SATSBidder
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class SATSBidder
      • getBaseValues

        public java.util.Map<java.lang.Long,​java.math.BigDecimal> getBaseValues()
      • getBestBundles

        public java.util.LinkedHashSet<org.marketdesignresearch.mechlib.core.Bundle> getBestBundles​(org.marketdesignresearch.mechlib.core.price.Prices prices,
                                                                                                    int maxNumberOfBundles,
                                                                                                    boolean allowNegative)
      • getAllocationLimit

        public org.marketdesignresearch.mechlib.core.allocationlimits.AllocationLimit getAllocationLimit()
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface org.marketdesignresearch.mechlib.core.bidder.Bidder
        Overrides:
        getDescription in class SATSBidder
      • setAllocationLimit

        public void setAllocationLimit​(org.marketdesignresearch.mechlib.core.allocationlimits.AllocationLimit allocationLimit)