Class MRVMWorldPartialMip


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

      • valueVariablePrefix

        public static final java.lang.String valueVariablePrefix
        See Also:
        Constant Field Values
    • 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​(MRVMBidder bidder,
                                                                        MRVMRegionsMap.Region region,
                                                                        MRVMBand band)
        Throws:
        java.lang.NullPointerException - if the requested variable is not stored.
      • getXVariables

        public java.util.Set<edu.harvard.econcs.jopt.solver.mip.Variable> getXVariables​(MRVMBidder bidder)
      • getValueVariable

        public edu.harvard.econcs.jopt.solver.mip.Variable getValueVariable​(MRVMBidder bidder)
      • getBiggestPossibleValue

        public double getBiggestPossibleValue()
        Returns: