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 () |
The sum of the demands of the intervals at each interval point cannot exceed a capacity. Note that intervals are interpreted as [start, end) and as such intervals like [2,3) and [3,4) do not overlap for the point of view of this constraint. Moreover, intervals of size zero are ignored. All demands must not contain any negative value in their domains. This is checked at validation. The capacity can currently contains negative values, but it will be propagated to >= 0 right away.
Protobuf type operations_research.sat.CumulativeConstraintProto
Definition at line 392 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addAllDemands | ( | java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto > | values | ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Definition at line 1016 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addAllIntervals | ( | java.lang.Iterable<? extends java.lang.Integer > | values | ) |
repeated int32 intervals = 2;
values | The intervals to add. |
Definition at line 819 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addDemands | ( | com.google.ortools.sat.LinearExpressionProto | value | ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Definition at line 939 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addDemands | ( | com.google.ortools.sat.LinearExpressionProto.Builder | builderForValue | ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Definition at line 980 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addDemands | ( | int | index, |
com.google.ortools.sat.LinearExpressionProto | value ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Definition at line 959 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addDemands | ( | int | index, |
com.google.ortools.sat.LinearExpressionProto.Builder | builderForValue ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Definition at line 998 of file CumulativeConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addDemandsBuilder | ( | ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Definition at line 1109 of file CumulativeConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addDemandsBuilder | ( | int | index | ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Definition at line 1120 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addIntervals | ( | int | value | ) |
repeated int32 intervals = 2;
value | The intervals to add. |
Definition at line 806 of file CumulativeConstraintProto.java.
com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.Builder.build | ( | ) |
Definition at line 458 of file CumulativeConstraintProto.java.
com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.Builder.buildPartial | ( | ) |
Definition at line 467 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.clear | ( | ) |
Definition at line 427 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.clearCapacity | ( | ) |
.operations_research.sat.LinearExpressionProto capacity = 1;
Definition at line 709 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.clearDemands | ( | ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Definition at line 1035 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.clearIntervals | ( | ) |
repeated int32 intervals = 2;
Definition at line 832 of file CumulativeConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.CumulativeConstraintProto.Builder.getCapacity | ( | ) |
.operations_research.sat.LinearExpressionProto capacity = 1;
Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.
Definition at line 648 of file CumulativeConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.getCapacityBuilder | ( | ) |
.operations_research.sat.LinearExpressionProto capacity = 1;
Definition at line 722 of file CumulativeConstraintProto.java.
com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.CumulativeConstraintProto.Builder.getCapacityOrBuilder | ( | ) |
.operations_research.sat.LinearExpressionProto capacity = 1;
Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.
Definition at line 730 of file CumulativeConstraintProto.java.
com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 453 of file CumulativeConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.CumulativeConstraintProto.Builder.getDemands | ( | int | index | ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.
Definition at line 886 of file CumulativeConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.getDemandsBuilder | ( | int | index | ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Definition at line 1069 of file CumulativeConstraintProto.java.
java.util.List< com.google.ortools.sat.LinearExpressionProto.Builder > com.google.ortools.sat.CumulativeConstraintProto.Builder.getDemandsBuilderList | ( | ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Definition at line 1133 of file CumulativeConstraintProto.java.
int com.google.ortools.sat.CumulativeConstraintProto.Builder.getDemandsCount | ( | ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.
Definition at line 872 of file CumulativeConstraintProto.java.
java.util.List< com.google.ortools.sat.LinearExpressionProto > com.google.ortools.sat.CumulativeConstraintProto.Builder.getDemandsList | ( | ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.
Definition at line 858 of file CumulativeConstraintProto.java.
com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.CumulativeConstraintProto.Builder.getDemandsOrBuilder | ( | int | index | ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.
Definition at line 1080 of file CumulativeConstraintProto.java.
java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder > com.google.ortools.sat.CumulativeConstraintProto.Builder.getDemandsOrBuilderList | ( | ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.
Definition at line 1095 of file CumulativeConstraintProto.java.
|
static |
Definition at line 397 of file CumulativeConstraintProto.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.CumulativeConstraintProto.Builder.getDescriptorForType | ( | ) |
Definition at line 448 of file CumulativeConstraintProto.java.
int com.google.ortools.sat.CumulativeConstraintProto.Builder.getIntervals | ( | int | index | ) |
repeated int32 intervals = 2;
index | The index of the element to return. |
Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.
Definition at line 783 of file CumulativeConstraintProto.java.
int com.google.ortools.sat.CumulativeConstraintProto.Builder.getIntervalsCount | ( | ) |
repeated int32 intervals = 2;
Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.
Definition at line 775 of file CumulativeConstraintProto.java.
java.util.List< java.lang.Integer > com.google.ortools.sat.CumulativeConstraintProto.Builder.getIntervalsList | ( | ) |
repeated int32 intervals = 2;
Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.
Definition at line 767 of file CumulativeConstraintProto.java.
boolean com.google.ortools.sat.CumulativeConstraintProto.Builder.hasCapacity | ( | ) |
.operations_research.sat.LinearExpressionProto capacity = 1;
Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.
Definition at line 641 of file CumulativeConstraintProto.java.
|
protected |
Definition at line 403 of file CumulativeConstraintProto.java.
final boolean com.google.ortools.sat.CumulativeConstraintProto.Builder.isInitialized | ( | ) |
Definition at line 561 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.mergeCapacity | ( | com.google.ortools.sat.LinearExpressionProto | value | ) |
.operations_research.sat.LinearExpressionProto capacity = 1;
Definition at line 688 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.mergeFrom | ( | com.google.ortools.sat.CumulativeConstraintProto | other | ) |
Definition at line 513 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 566 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 504 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.removeDemands | ( | int | index | ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Definition at line 1052 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.setCapacity | ( | com.google.ortools.sat.LinearExpressionProto | value | ) |
.operations_research.sat.LinearExpressionProto capacity = 1;
Definition at line 658 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.setCapacity | ( | com.google.ortools.sat.LinearExpressionProto.Builder | builderForValue | ) |
.operations_research.sat.LinearExpressionProto capacity = 1;
Definition at line 674 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.setDemands | ( | int | index, |
com.google.ortools.sat.LinearExpressionProto | value ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Definition at line 900 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.setDemands | ( | int | index, |
com.google.ortools.sat.LinearExpressionProto.Builder | builderForValue ) |
Same size as intervals.
repeated .operations_research.sat.LinearExpressionProto demands = 3;
Definition at line 921 of file CumulativeConstraintProto.java.
Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.setIntervals | ( | int | index, |
int | value ) |
repeated int32 intervals = 2;
index | The index to set the value at. |
value | The intervals to set. |
Definition at line 792 of file CumulativeConstraintProto.java.