Google OR-Tools v9.9
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.GeneratedMessageV3.FieldAccessorTable | internalGetFieldAccessorTable () |
Indicator constraints encode the activation or deactivation of linear constraints given the value of one Boolean variable in the model. For example: y = 0 => 2 * x1 + 3 * x2 >= 42 The 2 * x1 + 3 * x2 >= 42 constraint is only active if the variable y is equal to 0. As of 2019/04, only SCIP, CP-SAT and Gurobi support this constraint type.
Protobuf type operations_research.MPIndicatorConstraint
Definition at line 354 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.addRepeatedField | ( | com.google.protobuf.Descriptors.FieldDescriptor | field, |
java.lang.Object | value ) |
Definition at line 476 of file MPIndicatorConstraint.java.
com.google.ortools.linearsolver.MPIndicatorConstraint com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.build | ( | ) |
Definition at line 413 of file MPIndicatorConstraint.java.
com.google.ortools.linearsolver.MPIndicatorConstraint com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.buildPartial | ( | ) |
Definition at line 422 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.clear | ( | ) |
Definition at line 388 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.clearConstraint | ( | ) |
The constraint activated by the indicator variable.
optional .operations_research.MPConstraintProto constraint = 3;
Definition at line 777 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.clearField | ( | com.google.protobuf.Descriptors.FieldDescriptor | field | ) |
Definition at line 460 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.clearOneof | ( | com.google.protobuf.Descriptors.OneofDescriptor | oneof | ) |
Definition at line 465 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.clearVarIndex | ( | ) |
Variable index (w.r.t. the "variable" field of MPModelProto) of the Boolean variable used as indicator.
optional int32 var_index = 1;
Definition at line 615 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.clearVarValue | ( | ) |
Value the above variable should take. Must be 0 or 1.
optional int32 var_value = 2;
Definition at line 671 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.clone | ( | ) |
Definition at line 450 of file MPIndicatorConstraint.java.
com.google.ortools.linearsolver.MPConstraintProto com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.getConstraint | ( | ) |
The constraint activated by the indicator variable.
optional .operations_research.MPConstraintProto constraint = 3;
Implements com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.
Definition at line 700 of file MPIndicatorConstraint.java.
com.google.ortools.linearsolver.MPConstraintProto.Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.getConstraintBuilder | ( | ) |
The constraint activated by the indicator variable.
optional .operations_research.MPConstraintProto constraint = 3;
Definition at line 794 of file MPIndicatorConstraint.java.
com.google.ortools.linearsolver.MPConstraintProtoOrBuilder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.getConstraintOrBuilder | ( | ) |
The constraint activated by the indicator variable.
optional .operations_research.MPConstraintProto constraint = 3;
Implements com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.
Definition at line 806 of file MPIndicatorConstraint.java.
com.google.ortools.linearsolver.MPIndicatorConstraint com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 408 of file MPIndicatorConstraint.java.
|
static |
Definition at line 359 of file MPIndicatorConstraint.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.getDescriptorForType | ( | ) |
Definition at line 403 of file MPIndicatorConstraint.java.
int com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.getVarIndex | ( | ) |
Variable index (w.r.t. the "variable" field of MPModelProto) of the Boolean variable used as indicator.
optional int32 var_index = 1;
Implements com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.
Definition at line 586 of file MPIndicatorConstraint.java.
int com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.getVarValue | ( | ) |
Value the above variable should take. Must be 0 or 1.
optional int32 var_value = 2;
Implements com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.
Definition at line 644 of file MPIndicatorConstraint.java.
boolean com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.hasConstraint | ( | ) |
The constraint activated by the indicator variable.
optional .operations_research.MPConstraintProto constraint = 3;
Implements com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.
Definition at line 689 of file MPIndicatorConstraint.java.
boolean com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.hasVarIndex | ( | ) |
Variable index (w.r.t. the "variable" field of MPModelProto) of the Boolean variable used as indicator.
optional int32 var_index = 1;
Implements com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.
Definition at line 573 of file MPIndicatorConstraint.java.
boolean com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.hasVarValue | ( | ) |
Value the above variable should take. Must be 0 or 1.
optional int32 var_value = 2;
Implements com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.
Definition at line 632 of file MPIndicatorConstraint.java.
|
protected |
Definition at line 365 of file MPIndicatorConstraint.java.
final boolean com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.isInitialized | ( | ) |
Definition at line 508 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.mergeConstraint | ( | com.google.ortools.linearsolver.MPConstraintProto | value | ) |
The constraint activated by the indicator variable.
optional .operations_research.MPConstraintProto constraint = 3;
Definition at line 752 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.mergeFrom | ( | com.google.ortools.linearsolver.MPIndicatorConstraint | other | ) |
Definition at line 491 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 513 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 482 of file MPIndicatorConstraint.java.
final Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.mergeUnknownFields | ( | final com.google.protobuf.UnknownFieldSet | unknownFields | ) |
Definition at line 841 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.setConstraint | ( | com.google.ortools.linearsolver.MPConstraintProto | value | ) |
The constraint activated by the indicator variable.
optional .operations_research.MPConstraintProto constraint = 3;
Definition at line 714 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.setConstraint | ( | com.google.ortools.linearsolver.MPConstraintProto.Builder | builderForValue | ) |
The constraint activated by the indicator variable.
optional .operations_research.MPConstraintProto constraint = 3;
Definition at line 734 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.setField | ( | com.google.protobuf.Descriptors.FieldDescriptor | field, |
java.lang.Object | value ) |
Definition at line 454 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.setRepeatedField | ( | com.google.protobuf.Descriptors.FieldDescriptor | field, |
int | index, | ||
java.lang.Object | value ) |
Definition at line 470 of file MPIndicatorConstraint.java.
final Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.setUnknownFields | ( | final com.google.protobuf.UnknownFieldSet | unknownFields | ) |
Definition at line 835 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.setVarIndex | ( | int | value | ) |
Variable index (w.r.t. the "variable" field of MPModelProto) of the Boolean variable used as indicator.
optional int32 var_index = 1;
value | The varIndex to set. |
Definition at line 599 of file MPIndicatorConstraint.java.
Builder com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.setVarValue | ( | int | value | ) |
Value the above variable should take. Must be 0 or 1.
optional int32 var_value = 2;
value | The varValue to set. |
Definition at line 656 of file MPIndicatorConstraint.java.