Class SRVMWorldPartialMip


  • public class SRVMWorldPartialMip
    extends PartialMIP
    The class generating the general allocation rules (variables and constraints)
    It also provides functions to get the allocation variables, used in SRVMBidderPartialMIP instances.
    Author:
    Michael Weiss
    • Method Detail

      • appendToMip

        public void appendToMip​(edu.harvard.econcs.jopt.solver.IMIP mip)
        Adds the generated variables and constraints to an existing MIP instance. Furthermore, this implementation of a PartialMip adds the objective term to the MIP
        Overrides:
        appendToMip in class PartialMIP
      • appendConstraintsToMip

        public void appendConstraintsToMip​(edu.harvard.econcs.jopt.solver.IMIP mip)
        Overrides:
        appendConstraintsToMip in class PartialMIP
      • appendVariablesToMip

        public void appendVariablesToMip​(edu.harvard.econcs.jopt.solver.IMIP mip)
        Overrides:
        appendVariablesToMip in class PartialMIP
      • getXVariable

        public edu.harvard.econcs.jopt.solver.mip.Variable getXVariable​(SRVMBidder bidder,
                                                                        SRVMBand band)
        Throws:
        java.lang.NullPointerException - if the requested variable is not stored.
      • getVmVariable

        public edu.harvard.econcs.jopt.solver.mip.Variable getVmVariable​(SRVMBidder bidder,
                                                                         SRVMBand band)
      • getVoVariable

        public edu.harvard.econcs.jopt.solver.mip.Variable getVoVariable​(SRVMBidder bidder,
                                                                         SRVMBand band)
      • getBiggestPossibleValue

        public double getBiggestPossibleValue()
        Returns:
      • getScalingFactor

        public double getScalingFactor()
        Returns: