Package com.google.ortools.linearsolver
Interface MPArrayConstraintOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MPArrayConstraint,MPArrayConstraint.Builder
public interface MPArrayConstraintOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetResultantVarIndex()optional int32 resultant_var_index = 2;intgetVarIndex(int index)Variable indices are relative to the "variable" field in MPModelProto.intgetVarIndexCount()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.booleanhasResultantVarIndex()optional int32 resultant_var_index = 2;-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getVarIndexList
java.util.List<java.lang.Integer> getVarIndexList()
Variable indices are relative to the "variable" field in MPModelProto.
repeated int32 var_index = 1;- Returns:
- A list containing the varIndex.
-
getVarIndexCount
int getVarIndexCount()
Variable indices are relative to the "variable" field in MPModelProto.
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.
repeated int32 var_index = 1;- Parameters:
index- The index of the element to return.- Returns:
- The varIndex at the given index.
-
hasResultantVarIndex
boolean hasResultantVarIndex()
optional int32 resultant_var_index = 2;- Returns:
- Whether the resultantVarIndex field is set.
-
getResultantVarIndex
int getResultantVarIndex()
optional int32 resultant_var_index = 2;- Returns:
- The resultantVarIndex.
-
-