![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
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 341 of file MPArrayWithConstantConstraint.java.
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
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 616 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 598 of file MPArrayWithConstantConstraint.java.
com.google.ortools.linearsolver.MPArrayWithConstantConstraint com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.build | ( | ) |
Definition at line 390 of file MPArrayWithConstantConstraint.java.
com.google.ortools.linearsolver.MPArrayWithConstantConstraint com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.buildPartial | ( | ) |
Definition at line 399 of file MPArrayWithConstantConstraint.java.
Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.clear | ( | ) |
Definition at line 369 of file MPArrayWithConstantConstraint.java.
Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.clearConstant | ( | ) |
optional double constant = 2;
Definition at line 674 of file MPArrayWithConstantConstraint.java.
Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.clearResultantVarIndex | ( | ) |
optional int32 resultant_var_index = 3;
Definition at line 714 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 634 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 655 of file MPArrayWithConstantConstraint.java.
com.google.ortools.linearsolver.MPArrayWithConstantConstraint com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 385 of file MPArrayWithConstantConstraint.java.
|
static |
Definition at line 346 of file MPArrayWithConstantConstraint.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.getDescriptorForType | ( | ) |
Definition at line 380 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 695 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 565 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 552 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 539 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 647 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 687 of file MPArrayWithConstantConstraint.java.
|
protected |
Definition at line 352 of file MPArrayWithConstantConstraint.java.
final boolean com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.isInitialized | ( | ) |
Definition at line 459 of file MPArrayWithConstantConstraint.java.
Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.mergeFrom | ( | com.google.ortools.linearsolver.MPArrayWithConstantConstraint | other | ) |
Definition at line 434 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 464 of file MPArrayWithConstantConstraint.java.
Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 425 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 663 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 703 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 579 of file MPArrayWithConstantConstraint.java.