Class SRVM_MIP
- java.lang.Object
-
- org.marketdesignresearch.mechlib.winnerdetermination.WinnerDetermination
-
- org.spectrumauctions.sats.opt.model.ModelMIP
-
- org.spectrumauctions.sats.opt.model.srvm.SRVM_MIP
-
- All Implemented Interfaces:
org.marketdesignresearch.mechlib.instrumentation.MipInstrumentationable,org.marketdesignresearch.mechlib.outcomerules.AllocationRule
public class SRVM_MIP extends ModelMIP
- Author:
- Fabio Isler
-
-
Field Summary
Fields Modifier and Type Field Description static java.math.BigDecimalhighestValidValIf the highest possible value any bidder can have is higher thanMIP.MAX_VALUE- MAXVAL_SAFETYGAP} a non-zero scaling factor for the calculation is chosen.static booleanPRINT_SOLVER_RESULT
-
Constructor Summary
Constructors Constructor Description SRVM_MIP(java.util.Collection<SRVMBidder> bidders)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.marketdesignresearch.mechlib.core.AllocationadaptMIPResult(edu.harvard.econcs.jopt.solver.ISolution solution)voidaddConstraint(edu.harvard.econcs.jopt.solver.mip.Constraint constraint)voidaddVariable(edu.harvard.econcs.jopt.solver.mip.Variable variable)static java.math.BigDecimalbiggestUnscaledPossibleValue(java.util.Collection<SRVMBidder> bidders)Returns the biggest possible value any of the passed bidders can havestatic doublecalculateScalingFactor(java.util.Collection<SRVMBidder> bidders)ModelMIPcopyOf()java.util.Map<SRVMBidder,SRVMBidderPartialMIP>getBidderPartialMips()ModelMIPgetMIPWithout(org.marketdesignresearch.mechlib.core.bidder.Bidder bidder)protected java.util.Collection<java.util.Collection<edu.harvard.econcs.jopt.solver.mip.Variable>>getVariablesOfInterest()ModelMIPs have to explicitly set variables of interestSRVMWorldPartialMipgetWorldPartialMip()-
Methods inherited from class org.spectrumauctions.sats.opt.model.ModelMIP
calculateAllocation, getMIP, join
-
Methods inherited from class org.marketdesignresearch.mechlib.winnerdetermination.WinnerDetermination
getAllocation, getBestAllocations, getBestAllocations, getIntermediateSolutions, getMipInstrumentation, getPurpose, getSolutionPoolMode, setAbsolutePoolMode4Tolerance, setAcceptSuboptimal, setDisplayOutput, setEpsilon, setLowerBound, setMipInstrumentation, setPurpose, setRelativePoolMode4Tolerance, setTimeLimit, setTimeLimitPoolMode4, solveWinnerDetermination
-
-
-
-
Constructor Detail
-
SRVM_MIP
public SRVM_MIP(java.util.Collection<SRVMBidder> bidders)
-
-
Method Detail
-
calculateScalingFactor
public static double calculateScalingFactor(java.util.Collection<SRVMBidder> bidders)
-
biggestUnscaledPossibleValue
public static java.math.BigDecimal biggestUnscaledPossibleValue(java.util.Collection<SRVMBidder> bidders)
Returns the biggest possible value any of the passed bidders can have- Returns:
-
addConstraint
public void addConstraint(edu.harvard.econcs.jopt.solver.mip.Constraint constraint)
-
addVariable
public void addVariable(edu.harvard.econcs.jopt.solver.mip.Variable variable)
-
getMIPWithout
public ModelMIP getMIPWithout(org.marketdesignresearch.mechlib.core.bidder.Bidder bidder)
- Specified by:
getMIPWithoutin classModelMIP
-
adaptMIPResult
public org.marketdesignresearch.mechlib.core.Allocation adaptMIPResult(edu.harvard.econcs.jopt.solver.ISolution solution)
- Specified by:
adaptMIPResultin classModelMIP
-
getVariablesOfInterest
protected java.util.Collection<java.util.Collection<edu.harvard.econcs.jopt.solver.mip.Variable>> getVariablesOfInterest()
Description copied from class:ModelMIPModelMIPs have to explicitly set variables of interest- Specified by:
getVariablesOfInterestin classModelMIP
-
getWorldPartialMip
public SRVMWorldPartialMip getWorldPartialMip()
-
getBidderPartialMips
public java.util.Map<SRVMBidder,SRVMBidderPartialMIP> getBidderPartialMips()
-
-