Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
Sets a variable's value equal to a function on a set of variables and, optionally, a constant.
Protobuf type operations_research.MPArrayWithConstantConstraint
Definition at line 339 of file MPArrayWithConstantConstraint.java.
Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.addAllVarIndex | ( | java.lang.Iterable<? extends java.lang.Integer > | values | ) |
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;
values | The varIndex to add. |
Definition at line 614 of file MPArrayWithConstantConstraint.java.
Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.addVarIndex | ( | int | value | ) |
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;
value | The varIndex to add. |
Definition at line 596 of file MPArrayWithConstantConstraint.java.
com.google.ortools.linearsolver.MPArrayWithConstantConstraint com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.build | ( | ) |
Definition at line 388 of file MPArrayWithConstantConstraint.java.
com.google.ortools.linearsolver.MPArrayWithConstantConstraint com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.buildPartial | ( | ) |
Definition at line 397 of file MPArrayWithConstantConstraint.java.
Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.clear | ( | ) |
Definition at line 367 of file MPArrayWithConstantConstraint.java.
Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.clearConstant | ( | ) |
optional double constant = 2;
Definition at line 672 of file MPArrayWithConstantConstraint.java.
Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.clearResultantVarIndex | ( | ) |
optional int32 resultant_var_index = 3;
Definition at line 712 of file MPArrayWithConstantConstraint.java.
Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.clearVarIndex | ( | ) |
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;
Definition at line 632 of file MPArrayWithConstantConstraint.java.
double com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.getConstant | ( | ) |
optional double constant = 2;
Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.
Definition at line 653 of file MPArrayWithConstantConstraint.java.
com.google.ortools.linearsolver.MPArrayWithConstantConstraint com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 383 of file MPArrayWithConstantConstraint.java.
|
static |
Definition at line 344 of file MPArrayWithConstantConstraint.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.getDescriptorForType | ( | ) |
Definition at line 378 of file MPArrayWithConstantConstraint.java.
int com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.getResultantVarIndex | ( | ) |
optional int32 resultant_var_index = 3;
Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.
Definition at line 693 of file MPArrayWithConstantConstraint.java.
int com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.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;
index | The index of the element to return. |
Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.
Definition at line 563 of file MPArrayWithConstantConstraint.java.
int com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.getVarIndexCount | ( | ) |
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;
Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.
Definition at line 550 of file MPArrayWithConstantConstraint.java.
java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.getVarIndexList | ( | ) |
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;
Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.
Definition at line 537 of file MPArrayWithConstantConstraint.java.
boolean com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.hasConstant | ( | ) |
optional double constant = 2;
Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.
Definition at line 645 of file MPArrayWithConstantConstraint.java.
boolean com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.hasResultantVarIndex | ( | ) |
optional int32 resultant_var_index = 3;
Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.
Definition at line 685 of file MPArrayWithConstantConstraint.java.
|
protected |
Definition at line 350 of file MPArrayWithConstantConstraint.java.
final boolean com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.isInitialized | ( | ) |
Definition at line 457 of file MPArrayWithConstantConstraint.java.
Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.mergeFrom | ( | com.google.ortools.linearsolver.MPArrayWithConstantConstraint | other | ) |
Definition at line 432 of file MPArrayWithConstantConstraint.java.
Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 462 of file MPArrayWithConstantConstraint.java.
Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 423 of file MPArrayWithConstantConstraint.java.
Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.setConstant | ( | double | value | ) |
optional double constant = 2;
value | The constant to set. |
Definition at line 661 of file MPArrayWithConstantConstraint.java.
Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.setResultantVarIndex | ( | int | value | ) |
optional int32 resultant_var_index = 3;
value | The resultantVarIndex to set. |
Definition at line 701 of file MPArrayWithConstantConstraint.java.
Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.setVarIndex | ( | int | index, |
int | value ) |
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;
index | The index to set the value at. |
value | The varIndex to set. |
Definition at line 577 of file MPArrayWithConstantConstraint.java.