Interface MPVariableProtoOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    MPVariableProto, MPVariableProto.Builder

    public interface MPVariableProtoOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getBranchingPriority()
      optional int32 branching_priority = 6 [default = 0];
      boolean getIsInteger()
      True if the variable is constrained to be integer.
      double getLowerBound()
      lower_bound must be <= upper_bound.
      java.lang.String getName()
      The name of the variable.
      com.google.protobuf.ByteString getNameBytes()
      The name of the variable.
      double getObjectiveCoefficient()
      The coefficient of the variable in the objective.
      double getUpperBound()
      optional double upper_bound = 2 [default = inf];
      boolean hasBranchingPriority()
      optional int32 branching_priority = 6 [default = 0];
      boolean hasIsInteger()
      True if the variable is constrained to be integer.
      boolean hasLowerBound()
      lower_bound must be <= upper_bound.
      boolean hasName()
      The name of the variable.
      boolean hasObjectiveCoefficient()
      The coefficient of the variable in the objective.
      boolean hasUpperBound()
      optional double upper_bound = 2 [default = inf];
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasLowerBound

        boolean hasLowerBound()
         lower_bound must be <= upper_bound.
         
        optional double lower_bound = 1 [default = -inf];
        Returns:
        Whether the lowerBound field is set.
      • getLowerBound

        double getLowerBound()
         lower_bound must be <= upper_bound.
         
        optional double lower_bound = 1 [default = -inf];
        Returns:
        The lowerBound.
      • hasUpperBound

        boolean hasUpperBound()
        optional double upper_bound = 2 [default = inf];
        Returns:
        Whether the upperBound field is set.
      • getUpperBound

        double getUpperBound()
        optional double upper_bound = 2 [default = inf];
        Returns:
        The upperBound.
      • hasObjectiveCoefficient

        boolean hasObjectiveCoefficient()
         The coefficient of the variable in the objective. Must be finite.
         
        optional double objective_coefficient = 3 [default = 0];
        Returns:
        Whether the objectiveCoefficient field is set.
      • getObjectiveCoefficient

        double getObjectiveCoefficient()
         The coefficient of the variable in the objective. Must be finite.
         
        optional double objective_coefficient = 3 [default = 0];
        Returns:
        The objectiveCoefficient.
      • hasIsInteger

        boolean hasIsInteger()
         True if the variable is constrained to be integer.
         Ignored if MPModelProto::solver_type is *LINEAR_PROGRAMMING*.
         
        optional bool is_integer = 4 [default = false];
        Returns:
        Whether the isInteger field is set.
      • getIsInteger

        boolean getIsInteger()
         True if the variable is constrained to be integer.
         Ignored if MPModelProto::solver_type is *LINEAR_PROGRAMMING*.
         
        optional bool is_integer = 4 [default = false];
        Returns:
        The isInteger.
      • hasName

        boolean hasName()
         The name of the variable.
         
        optional string name = 5 [default = ""];
        Returns:
        Whether the name field is set.
      • getName

        java.lang.String getName()
         The name of the variable.
         
        optional string name = 5 [default = ""];
        Returns:
        The name.
      • getNameBytes

        com.google.protobuf.ByteString getNameBytes()
         The name of the variable.
         
        optional string name = 5 [default = ""];
        Returns:
        The bytes for name.
      • hasBranchingPriority

        boolean hasBranchingPriority()
        optional int32 branching_priority = 6 [default = 0];
        Returns:
        Whether the branchingPriority field is set.
      • getBranchingPriority

        int getBranchingPriority()
        optional int32 branching_priority = 6 [default = 0];
        Returns:
        The branchingPriority.