Interface MPConstraintProtoOrBuilder

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

@Generated public interface MPConstraintProtoOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getCoefficient(int index)
    Must be finite.
    int
    Must be finite.
    Must be finite.
    boolean
    [Advanced usage: do not use this if you don't know what you're doing.]
    double
    lower_bound must be <= upper_bound.
    The name of the constraint.
    com.google.protobuf.ByteString
    The name of the constraint.
    double
    optional double upper_bound = 3 [default = inf];
    int
    getVarIndex(int index)
    var_index[i] is the variable index (w.r.t. to "variable" field of MPModelProto) of the i-th linear term involved in this constraint, and coefficient[i] is its coefficient.
    int
    var_index[i] is the variable index (w.r.t. to "variable" field of MPModelProto) of the i-th linear term involved in this constraint, and coefficient[i] is its coefficient.
    var_index[i] is the variable index (w.r.t. to "variable" field of MPModelProto) of the i-th linear term involved in this constraint, and coefficient[i] is its coefficient.
    boolean
    [Advanced usage: do not use this if you don't know what you're doing.]
    boolean
    lower_bound must be <= upper_bound.
    boolean
    The name of the constraint.
    boolean
    optional double upper_bound = 3 [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 Details

    • getVarIndexList

      List<Integer> getVarIndexList()
       var_index[i] is the variable index (w.r.t. to "variable" field of
       MPModelProto) of the i-th linear term involved in this constraint, and
       coefficient[i] is its coefficient. Only the terms with non-zero
       coefficients need to appear. var_index may not contain duplicates.
       
      repeated int32 var_index = 6 [packed = true];
      Returns:
      A list containing the varIndex.
    • getVarIndexCount

      int getVarIndexCount()
       var_index[i] is the variable index (w.r.t. to "variable" field of
       MPModelProto) of the i-th linear term involved in this constraint, and
       coefficient[i] is its coefficient. Only the terms with non-zero
       coefficients need to appear. var_index may not contain duplicates.
       
      repeated int32 var_index = 6 [packed = true];
      Returns:
      The count of varIndex.
    • getVarIndex

      int getVarIndex(int index)
       var_index[i] is the variable index (w.r.t. to "variable" field of
       MPModelProto) of the i-th linear term involved in this constraint, and
       coefficient[i] is its coefficient. Only the terms with non-zero
       coefficients need to appear. var_index may not contain duplicates.
       
      repeated int32 var_index = 6 [packed = true];
      Parameters:
      index - The index of the element to return.
      Returns:
      The varIndex at the given index.
    • getCoefficientList

      List<Double> getCoefficientList()
       Must be finite.
       
      repeated double coefficient = 7 [packed = true];
      Returns:
      A list containing the coefficient.
    • getCoefficientCount

      int getCoefficientCount()
       Must be finite.
       
      repeated double coefficient = 7 [packed = true];
      Returns:
      The count of coefficient.
    • getCoefficient

      double getCoefficient(int index)
       Must be finite.
       
      repeated double coefficient = 7 [packed = true];
      Parameters:
      index - The index of the element to return.
      Returns:
      The coefficient at the given index.
    • hasLowerBound

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

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

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

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

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

      String getName()
       The name of the constraint.
       
      optional string name = 4 [default = ""];
      Returns:
      The name.
    • getNameBytes

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

      boolean hasIsLazy()
       [Advanced usage: do not use this if you don't know what you're doing.]
       A lazy constraint is handled differently by the core solving engine, but
       it does not change the result. It may or may not impact the performance.
       For more info see: http://tinyurl.com/lazy-constraints.
       
      optional bool is_lazy = 5 [default = false];
      Returns:
      Whether the isLazy field is set.
    • getIsLazy

      boolean getIsLazy()
       [Advanced usage: do not use this if you don't know what you're doing.]
       A lazy constraint is handled differently by the core solving engine, but
       it does not change the result. It may or may not impact the performance.
       For more info see: http://tinyurl.com/lazy-constraints.
       
      optional bool is_lazy = 5 [default = false];
      Returns:
      The isLazy.