Class ModelDomain<T extends SATSBidder>
- java.lang.Object
-
- org.spectrumauctions.sats.mechanism.domains.ModelDomain<T>
-
- All Implemented Interfaces:
org.marketdesignresearch.mechlib.core.Domain,org.marketdesignresearch.mechlib.instrumentation.MipInstrumentationable
- Direct Known Subclasses:
GSVMDomain,LSVMDomain,MRVMDomain
public abstract class ModelDomain<T extends SATSBidder> extends java.lang.Object implements org.marketdesignresearch.mechlib.core.Domain
-
-
Constructor Summary
Constructors Constructor Description ModelDomain(java.util.List<T> bidders)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)abstract BiddingLanguagecreatePriceSamplingBiddingLanguage(RNGSupplier rngSupplier, SATSBidder bidder, int numberOfSamples)booleanequals(java.lang.Object o)java.util.List<T>getBidders()org.marketdesignresearch.mechlib.core.AllocationgetEfficientAllocation()abstract ModelMIPgetMIP()org.marketdesignresearch.mechlib.instrumentation.MipInstrumentationgetMipInstrumentation()java.lang.StringgetName()protected intgetPriceGenerationBidsPerBidder()booleanhasEfficientAllocationCalculated()inthashCode()org.marketdesignresearch.mechlib.core.price.PricesproposeStartingPrices()voidsetMipInstrumentation(org.marketdesignresearch.mechlib.instrumentation.MipInstrumentation mipInstrumentation)voidsetPriceGenerationBidsPerBidder(int priceGenerationBidsPerBidder)voidsetPriceGenerationFraction(double priceGenerationFraction)voidsetPriceGenerationNumberOfWorldSamples(int priceGenerationNumberOfWorldSamples)voidsetPriceGenerationSeed(long priceGenerationSeed)
-
-
-
Constructor Detail
-
ModelDomain
public ModelDomain(java.util.List<T> bidders)
-
-
Method Detail
-
getMIP
public abstract ModelMIP getMIP()
-
getEfficientAllocation
public org.marketdesignresearch.mechlib.core.Allocation getEfficientAllocation()
- Specified by:
getEfficientAllocationin interfaceorg.marketdesignresearch.mechlib.core.Domain
-
hasEfficientAllocationCalculated
public boolean hasEfficientAllocationCalculated()
- Specified by:
hasEfficientAllocationCalculatedin interfaceorg.marketdesignresearch.mechlib.core.Domain
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceorg.marketdesignresearch.mechlib.core.Domain
-
setMipInstrumentation
public void setMipInstrumentation(org.marketdesignresearch.mechlib.instrumentation.MipInstrumentation mipInstrumentation)
- Specified by:
setMipInstrumentationin interfaceorg.marketdesignresearch.mechlib.instrumentation.MipInstrumentationable
-
proposeStartingPrices
public org.marketdesignresearch.mechlib.core.price.Prices proposeStartingPrices()
- Specified by:
proposeStartingPricesin interfaceorg.marketdesignresearch.mechlib.core.Domain
-
createPriceSamplingBiddingLanguage
public abstract BiddingLanguage createPriceSamplingBiddingLanguage(RNGSupplier rngSupplier, SATSBidder bidder, int numberOfSamples) throws UnsupportedBiddingLanguageException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getBidders
public java.util.List<T> getBidders()
- Specified by:
getBiddersin interfaceorg.marketdesignresearch.mechlib.core.Domain
-
setPriceGenerationBidsPerBidder
public void setPriceGenerationBidsPerBidder(int priceGenerationBidsPerBidder)
-
getPriceGenerationBidsPerBidder
protected int getPriceGenerationBidsPerBidder()
-
setPriceGenerationNumberOfWorldSamples
public void setPriceGenerationNumberOfWorldSamples(int priceGenerationNumberOfWorldSamples)
-
setPriceGenerationFraction
public void setPriceGenerationFraction(double priceGenerationFraction)
-
setPriceGenerationSeed
public void setPriceGenerationSeed(long priceGenerationSeed)
-
getMipInstrumentation
public org.marketdesignresearch.mechlib.instrumentation.MipInstrumentation getMipInstrumentation()
- Specified by:
getMipInstrumentationin interfaceorg.marketdesignresearch.mechlib.instrumentation.MipInstrumentationable
-
-