public class SRVM_MIP extends ModelMIP implements EfficientAllocator<GenericAllocation<org.spectrumauctions.sats.core.model.srvm.SRVMBand>>
| Modifier and Type | Field and Description |
|---|---|
static BigDecimal |
highestValidVal
If the highest possible value any bidder can have is higher than
MIP.MAX_VALUE - MAXVAL_SAFETYGAP}
a non-zero scaling factor for the calculation is chosen. |
static boolean |
PRINT_SOLVER_RESULT |
| Constructor and Description |
|---|
SRVM_MIP(Collection<org.spectrumauctions.sats.core.model.srvm.SRVMBidder> bidders) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConstraint(edu.harvard.econcs.jopt.solver.mip.Constraint constraint) |
void |
addVariable(edu.harvard.econcs.jopt.solver.mip.Variable variable) |
static BigDecimal |
biggestUnscaledPossibleValue(Collection<org.spectrumauctions.sats.core.model.srvm.SRVMBidder> bidders)
Returns the biggest possible value any of the passed bidders can have
|
SRVMMipResult |
calculateAllocation() |
static double |
calculateScalingFactor(Collection<org.spectrumauctions.sats.core.model.srvm.SRVMBidder> bidders) |
Map<org.spectrumauctions.sats.core.model.srvm.SRVMBidder,SRVMBidderPartialMIP> |
getBidderPartialMips() |
SRVMWorldPartialMip |
getWorldPartialMip() |
getMip, setAcceptSuboptimal, setDisplayOutput, setTimeLimitpublic static boolean PRINT_SOLVER_RESULT
public static BigDecimal highestValidVal
MIP.MAX_VALUE - MAXVAL_SAFETYGAP}
a non-zero scaling factor for the calculation is chosen.public SRVM_MIP(Collection<org.spectrumauctions.sats.core.model.srvm.SRVMBidder> bidders)
public static double calculateScalingFactor(Collection<org.spectrumauctions.sats.core.model.srvm.SRVMBidder> bidders)
public static BigDecimal biggestUnscaledPossibleValue(Collection<org.spectrumauctions.sats.core.model.srvm.SRVMBidder> bidders)
public void addConstraint(edu.harvard.econcs.jopt.solver.mip.Constraint constraint)
public void addVariable(edu.harvard.econcs.jopt.solver.mip.Variable variable)
public SRVMMipResult calculateAllocation()
calculateAllocation in interface EfficientAllocator<GenericAllocation<org.spectrumauctions.sats.core.model.srvm.SRVMBand>>public SRVMWorldPartialMip getWorldPartialMip()
public Map<org.spectrumauctions.sats.core.model.srvm.SRVMBidder,SRVMBidderPartialMIP> getBidderPartialMips()
Copyright © 2017. All rights reserved.