Interface MPArrayWithConstantConstraintOrBuilder

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

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

    Modifier and Type Method Description
    double getConstant()
    optional double constant = 2;
    int getResultantVarIndex()
    optional int32 resultant_var_index = 3;
    int getVarIndex​(int index)
    Variable indices are relative to the "variable" field in MPModelProto.
    int getVarIndexCount()
    Variable indices are relative to the "variable" field in MPModelProto.
    java.util.List<java.lang.Integer> getVarIndexList()
    Variable indices are relative to the "variable" field in MPModelProto.
    boolean hasConstant()
    optional double constant = 2;
    boolean hasResultantVarIndex()
    optional int32 resultant_var_index = 3;

    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

      java.util.List<java.lang.Integer> getVarIndexList()
       Variable indices are relative to the "variable" field in MPModelProto.
       resultant_var = f(var_1, var_2, ..., constant)
       
      repeated int32 var_index = 1;
      Returns:
      A list containing the varIndex.
    • getVarIndexCount

      int getVarIndexCount()
       Variable indices are relative to the "variable" field in MPModelProto.
       resultant_var = f(var_1, var_2, ..., constant)
       
      repeated int32 var_index = 1;
      Returns:
      The count of varIndex.
    • getVarIndex

      int getVarIndex​(int index)
       Variable indices are relative to the "variable" field in MPModelProto.
       resultant_var = f(var_1, var_2, ..., constant)
       
      repeated int32 var_index = 1;
      Parameters:
      index - The index of the element to return.
      Returns:
      The varIndex at the given index.
    • hasConstant

      boolean hasConstant()
      optional double constant = 2;
      Returns:
      Whether the constant field is set.
    • getConstant

      double getConstant()
      optional double constant = 2;
      Returns:
      The constant.
    • hasResultantVarIndex

      boolean hasResultantVarIndex()
      optional int32 resultant_var_index = 3;
      Returns:
      Whether the resultantVarIndex field is set.
    • getResultantVarIndex

      int getResultantVarIndex()
      optional int32 resultant_var_index = 3;
      Returns:
      The resultantVarIndex.