Enum MPModelRequest.SolverType

java.lang.Object
java.lang.Enum<MPModelRequest.SolverType>
com.google.ortools.linearsolver.MPModelRequest.SolverType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<MPModelRequest.SolverType>, java.lang.constant.Constable
Enclosing class:
MPModelRequest

public static enum MPModelRequest.SolverType extends 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 Details

    • CLP_LINEAR_PROGRAMMING

      public static final MPModelRequest.SolverType CLP_LINEAR_PROGRAMMING
      CLP_LINEAR_PROGRAMMING = 0;
    • 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 Details

    • CLP_LINEAR_PROGRAMMING_VALUE

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

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

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

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

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

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

      public static final int HIGHS_LINEAR_PROGRAMMING_VALUE
      HIGHS_LINEAR_PROGRAMMING = 15;
      See Also:
    • 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:
    • GLPK_MIXED_INTEGER_PROGRAMMING_VALUE

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

      public static final int CBC_MIXED_INTEGER_PROGRAMMING_VALUE
      CBC_MIXED_INTEGER_PROGRAMMING = 5;
      See Also:
    • 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:
    • 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:
    • 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:
    • HIGHS_MIXED_INTEGER_PROGRAMMING_VALUE

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

      public static final int BOP_INTEGER_PROGRAMMING_VALUE
      BOP_INTEGER_PROGRAMMING = 12;
      See Also:
    • 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:
    • 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:
    • KNAPSACK_MIXED_INTEGER_PROGRAMMING_VALUE

      public static final int KNAPSACK_MIXED_INTEGER_PROGRAMMING_VALUE
      KNAPSACK_MIXED_INTEGER_PROGRAMMING = 13;
      See Also:
  • Method Details

    • values

      public static MPModelRequest.SolverType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MPModelRequest.SolverType valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      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 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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null