Enum MPModelRequest.SolverType

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, java.io.Serializable, java.lang.Comparable<MPModelRequest.SolverType>
    Enclosing class:
    MPModelRequest

    public static enum MPModelRequest.SolverType
    extends java.lang.Enum<MPModelRequest.SolverType>
    implements com.google.protobuf.ProtocolMessageEnum
     The solver type, which will select a specific implementation, and will also
     impact the interpretation of the model (i.e. are we solving the problem
     as a mixed integer program or are we relaxing it as a continuous linear
     program?).
     This must remain consistent with MPSolver::OptimizationProblemType.
     
    Protobuf enum operations_research.MPModelRequest.SolverType
    • Enum Constant Detail

      • GLOP_LINEAR_PROGRAMMING

        public static final MPModelRequest.SolverType GLOP_LINEAR_PROGRAMMING
         Recommended default for LP models.
         
        GLOP_LINEAR_PROGRAMMING = 2;
      • GLPK_LINEAR_PROGRAMMING

        public static final MPModelRequest.SolverType GLPK_LINEAR_PROGRAMMING
        GLPK_LINEAR_PROGRAMMING = 1;
      • GUROBI_LINEAR_PROGRAMMING

        public static final MPModelRequest.SolverType GUROBI_LINEAR_PROGRAMMING
         Commercial, needs a valid license.
         
        GUROBI_LINEAR_PROGRAMMING = 6;
      • XPRESS_LINEAR_PROGRAMMING

        public static final MPModelRequest.SolverType XPRESS_LINEAR_PROGRAMMING
         Commercial, needs a valid license. NOLINT
         
        XPRESS_LINEAR_PROGRAMMING = 101;
      • CPLEX_LINEAR_PROGRAMMING

        public static final MPModelRequest.SolverType CPLEX_LINEAR_PROGRAMMING
         Commercial, needs a valid license. NOLINT
         
        CPLEX_LINEAR_PROGRAMMING = 10;
      • HIGHS_LINEAR_PROGRAMMING

        public static final MPModelRequest.SolverType HIGHS_LINEAR_PROGRAMMING
        HIGHS_LINEAR_PROGRAMMING = 15;
      • SCIP_MIXED_INTEGER_PROGRAMMING

        public static final MPModelRequest.SolverType SCIP_MIXED_INTEGER_PROGRAMMING
         Recommended default for MIP models.
         
        SCIP_MIXED_INTEGER_PROGRAMMING = 3;
      • GLPK_MIXED_INTEGER_PROGRAMMING

        public static final MPModelRequest.SolverType GLPK_MIXED_INTEGER_PROGRAMMING
        GLPK_MIXED_INTEGER_PROGRAMMING = 4;
      • CBC_MIXED_INTEGER_PROGRAMMING

        public static final MPModelRequest.SolverType CBC_MIXED_INTEGER_PROGRAMMING
        CBC_MIXED_INTEGER_PROGRAMMING = 5;
      • GUROBI_MIXED_INTEGER_PROGRAMMING

        public static final MPModelRequest.SolverType GUROBI_MIXED_INTEGER_PROGRAMMING
         Commercial, needs a valid license.
         
        GUROBI_MIXED_INTEGER_PROGRAMMING = 7;
      • XPRESS_MIXED_INTEGER_PROGRAMMING

        public static final MPModelRequest.SolverType XPRESS_MIXED_INTEGER_PROGRAMMING
         Commercial, needs a valid license. NOLINT
         
        XPRESS_MIXED_INTEGER_PROGRAMMING = 102;
      • CPLEX_MIXED_INTEGER_PROGRAMMING

        public static final MPModelRequest.SolverType CPLEX_MIXED_INTEGER_PROGRAMMING
         Commercial, needs a valid license. NOLINT
         
        CPLEX_MIXED_INTEGER_PROGRAMMING = 11;
      • HIGHS_MIXED_INTEGER_PROGRAMMING

        public static final MPModelRequest.SolverType HIGHS_MIXED_INTEGER_PROGRAMMING
        HIGHS_MIXED_INTEGER_PROGRAMMING = 16;
      • BOP_INTEGER_PROGRAMMING

        public static final MPModelRequest.SolverType BOP_INTEGER_PROGRAMMING
        BOP_INTEGER_PROGRAMMING = 12;
      • SAT_INTEGER_PROGRAMMING

        public static final MPModelRequest.SolverType SAT_INTEGER_PROGRAMMING
         WARNING: This solver will currently interpret all variables as integer,
         so any solution you get will be valid, but the optimal might be far away
         for the real one (when you authorise non-integer value for continuous
         variables).
         
        SAT_INTEGER_PROGRAMMING = 14;
      • PDLP_LINEAR_PROGRAMMING

        public static final MPModelRequest.SolverType PDLP_LINEAR_PROGRAMMING
         In-house linear programming solver based on the primal-dual hybrid
         gradient method. Sometimes faster than Glop for medium-size problems and
         scales to much larger problems than Glop.
         
        PDLP_LINEAR_PROGRAMMING = 8;
      • KNAPSACK_MIXED_INTEGER_PROGRAMMING

        public static final MPModelRequest.SolverType KNAPSACK_MIXED_INTEGER_PROGRAMMING
        KNAPSACK_MIXED_INTEGER_PROGRAMMING = 13;
    • Field Detail

      • CLP_LINEAR_PROGRAMMING_VALUE

        public static final int CLP_LINEAR_PROGRAMMING_VALUE
        CLP_LINEAR_PROGRAMMING = 0;
        See Also:
        Constant Field Values
      • GLOP_LINEAR_PROGRAMMING_VALUE

        public static final int GLOP_LINEAR_PROGRAMMING_VALUE
         Recommended default for LP models.
         
        GLOP_LINEAR_PROGRAMMING = 2;
        See Also:
        Constant Field Values
      • GLPK_LINEAR_PROGRAMMING_VALUE

        public static final int GLPK_LINEAR_PROGRAMMING_VALUE
        GLPK_LINEAR_PROGRAMMING = 1;
        See Also:
        Constant Field Values
      • GUROBI_LINEAR_PROGRAMMING_VALUE

        public static final int GUROBI_LINEAR_PROGRAMMING_VALUE
         Commercial, needs a valid license.
         
        GUROBI_LINEAR_PROGRAMMING = 6;
        See Also:
        Constant Field Values
      • XPRESS_LINEAR_PROGRAMMING_VALUE

        public static final int XPRESS_LINEAR_PROGRAMMING_VALUE
         Commercial, needs a valid license. NOLINT
         
        XPRESS_LINEAR_PROGRAMMING = 101;
        See Also:
        Constant Field Values
      • CPLEX_LINEAR_PROGRAMMING_VALUE

        public static final int CPLEX_LINEAR_PROGRAMMING_VALUE
         Commercial, needs a valid license. NOLINT
         
        CPLEX_LINEAR_PROGRAMMING = 10;
        See Also:
        Constant Field Values
      • HIGHS_LINEAR_PROGRAMMING_VALUE

        public static final int HIGHS_LINEAR_PROGRAMMING_VALUE
        HIGHS_LINEAR_PROGRAMMING = 15;
        See Also:
        Constant Field Values
      • SCIP_MIXED_INTEGER_PROGRAMMING_VALUE

        public static final int SCIP_MIXED_INTEGER_PROGRAMMING_VALUE
         Recommended default for MIP models.
         
        SCIP_MIXED_INTEGER_PROGRAMMING = 3;
        See Also:
        Constant Field Values
      • GLPK_MIXED_INTEGER_PROGRAMMING_VALUE

        public static final int GLPK_MIXED_INTEGER_PROGRAMMING_VALUE
        GLPK_MIXED_INTEGER_PROGRAMMING = 4;
        See Also:
        Constant Field Values
      • CBC_MIXED_INTEGER_PROGRAMMING_VALUE

        public static final int CBC_MIXED_INTEGER_PROGRAMMING_VALUE
        CBC_MIXED_INTEGER_PROGRAMMING = 5;
        See Also:
        Constant Field Values
      • GUROBI_MIXED_INTEGER_PROGRAMMING_VALUE

        public static final int GUROBI_MIXED_INTEGER_PROGRAMMING_VALUE
         Commercial, needs a valid license.
         
        GUROBI_MIXED_INTEGER_PROGRAMMING = 7;
        See Also:
        Constant Field Values
      • XPRESS_MIXED_INTEGER_PROGRAMMING_VALUE

        public static final int XPRESS_MIXED_INTEGER_PROGRAMMING_VALUE
         Commercial, needs a valid license. NOLINT
         
        XPRESS_MIXED_INTEGER_PROGRAMMING = 102;
        See Also:
        Constant Field Values
      • CPLEX_MIXED_INTEGER_PROGRAMMING_VALUE

        public static final int CPLEX_MIXED_INTEGER_PROGRAMMING_VALUE
         Commercial, needs a valid license. NOLINT
         
        CPLEX_MIXED_INTEGER_PROGRAMMING = 11;
        See Also:
        Constant Field Values
      • HIGHS_MIXED_INTEGER_PROGRAMMING_VALUE

        public static final int HIGHS_MIXED_INTEGER_PROGRAMMING_VALUE
        HIGHS_MIXED_INTEGER_PROGRAMMING = 16;
        See Also:
        Constant Field Values
      • BOP_INTEGER_PROGRAMMING_VALUE

        public static final int BOP_INTEGER_PROGRAMMING_VALUE
        BOP_INTEGER_PROGRAMMING = 12;
        See Also:
        Constant Field Values
      • SAT_INTEGER_PROGRAMMING_VALUE

        public static final int SAT_INTEGER_PROGRAMMING_VALUE
         WARNING: This solver will currently interpret all variables as integer,
         so any solution you get will be valid, but the optimal might be far away
         for the real one (when you authorise non-integer value for continuous
         variables).
         
        SAT_INTEGER_PROGRAMMING = 14;
        See Also:
        Constant Field Values
      • PDLP_LINEAR_PROGRAMMING_VALUE

        public static final int PDLP_LINEAR_PROGRAMMING_VALUE
         In-house linear programming solver based on the primal-dual hybrid
         gradient method. Sometimes faster than Glop for medium-size problems and
         scales to much larger problems than Glop.
         
        PDLP_LINEAR_PROGRAMMING = 8;
        See Also:
        Constant Field Values
      • KNAPSACK_MIXED_INTEGER_PROGRAMMING_VALUE

        public static final int KNAPSACK_MIXED_INTEGER_PROGRAMMING_VALUE
        KNAPSACK_MIXED_INTEGER_PROGRAMMING = 13;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static MPModelRequest.SolverType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MPModelRequest.SolverType c : MPModelRequest.SolverType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MPModelRequest.SolverType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.google.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static MPModelRequest.SolverType valueOf​(int value)
        Deprecated.
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        value - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • forNumber

        public static MPModelRequest.SolverType forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • internalGetValueMap

        public static com.google.protobuf.Internal.EnumLiteMap<MPModelRequest.SolverType> internalGetValueMap()
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static MPModelRequest.SolverType valueOf​(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        desc - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null