Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Classes | |
class | Builder |
Public Member Functions | |
java.util.List< java.lang.Integer > | getVarsList () |
int | getVarsCount () |
int | getVars (int index) |
java.util.List< java.lang.Long > | getCoeffsList () |
int | getCoeffsCount () |
long | getCoeffs (int index) |
double | getOffset () |
double | getScalingFactor () |
java.util.List< java.lang.Long > | getDomainList () |
int | getDomainCount () |
long | getDomain (int index) |
boolean | getScalingWasExact () |
long | getIntegerBeforeOffset () |
long | getIntegerAfterOffset () |
long | getIntegerScalingFactor () |
final boolean | isInitialized () |
void | writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException |
int | getSerializedSize () |
boolean | equals (final java.lang.Object obj) |
int | hashCode () |
Builder | newBuilderForType () |
Builder | toBuilder () |
com.google.protobuf.Parser< CpObjectiveProto > | getParserForType () |
com.google.ortools.sat.CpObjectiveProto | getDefaultInstanceForType () |
Public Member Functions inherited from com.google.ortools.sat.CpObjectiveProtoOrBuilder |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
static com.google.ortools.sat.CpObjectiveProto | parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.CpObjectiveProto | parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.CpObjectiveProto | parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.CpObjectiveProto | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.CpObjectiveProto | parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.CpObjectiveProto | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.CpObjectiveProto | parseFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.sat.CpObjectiveProto | parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.sat.CpObjectiveProto | parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.sat.CpObjectiveProto | parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.sat.CpObjectiveProto | parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException |
static com.google.ortools.sat.CpObjectiveProto | parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static Builder | newBuilder () |
static Builder | newBuilder (com.google.ortools.sat.CpObjectiveProto prototype) |
static com.google.ortools.sat.CpObjectiveProto | getDefaultInstance () |
static com.google.protobuf.Parser< CpObjectiveProto > | parser () |
Static Public Attributes | |
static final int | VARS_FIELD_NUMBER = 1 |
static final int | COEFFS_FIELD_NUMBER = 4 |
static final int | OFFSET_FIELD_NUMBER = 2 |
static final int | SCALING_FACTOR_FIELD_NUMBER = 3 |
static final int | DOMAIN_FIELD_NUMBER = 5 |
static final int | SCALING_WAS_EXACT_FIELD_NUMBER = 6 |
static final int | INTEGER_BEFORE_OFFSET_FIELD_NUMBER = 7 |
static final int | INTEGER_AFTER_OFFSET_FIELD_NUMBER = 9 |
static final int | INTEGER_SCALING_FACTOR_FIELD_NUMBER = 8 |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
Builder | newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent) |
Optimization objective.
Protobuf type operations_research.sat.CpObjectiveProto
Definition at line 14 of file CpObjectiveProto.java.
boolean com.google.ortools.sat.CpObjectiveProto.equals | ( | final java.lang.Object | obj | ) |
Definition at line 411 of file CpObjectiveProto.java.
long com.google.ortools.sat.CpObjectiveProto.getCoeffs | ( | int | index | ) |
repeated int64 coeffs = 4;
index | The index of the element to return. |
Implements com.google.ortools.sat.CpObjectiveProtoOrBuilder.
Definition at line 124 of file CpObjectiveProto.java.
int com.google.ortools.sat.CpObjectiveProto.getCoeffsCount | ( | ) |
repeated int64 coeffs = 4;
Implements com.google.ortools.sat.CpObjectiveProtoOrBuilder.
Definition at line 116 of file CpObjectiveProto.java.
java.util.List< java.lang.Long > com.google.ortools.sat.CpObjectiveProto.getCoeffsList | ( | ) |
repeated int64 coeffs = 4;
Implements com.google.ortools.sat.CpObjectiveProtoOrBuilder.
Definition at line 109 of file CpObjectiveProto.java.
|
static |
Definition at line 1510 of file CpObjectiveProto.java.
com.google.ortools.sat.CpObjectiveProto com.google.ortools.sat.CpObjectiveProto.getDefaultInstanceForType | ( | ) |
Definition at line 1546 of file CpObjectiveProto.java.
|
static |
Definition at line 39 of file CpObjectiveProto.java.
long com.google.ortools.sat.CpObjectiveProto.getDomain | ( | int | index | ) |
If non-empty, only look for an objective value in the given domain. Note that this does not depend on the offset or scaling factor, it is a domain on the sum of the objective terms only.
repeated int64 domain = 5;
index | The index of the element to return. |
Implements com.google.ortools.sat.CpObjectiveProtoOrBuilder.
Definition at line 204 of file CpObjectiveProto.java.
int com.google.ortools.sat.CpObjectiveProto.getDomainCount | ( | ) |
If non-empty, only look for an objective value in the given domain. Note that this does not depend on the offset or scaling factor, it is a domain on the sum of the objective terms only.
repeated int64 domain = 5;
Implements com.google.ortools.sat.CpObjectiveProtoOrBuilder.
Definition at line 190 of file CpObjectiveProto.java.
java.util.List< java.lang.Long > com.google.ortools.sat.CpObjectiveProto.getDomainList | ( | ) |
If non-empty, only look for an objective value in the given domain. Note that this does not depend on the offset or scaling factor, it is a domain on the sum of the objective terms only.
repeated int64 domain = 5;
Implements com.google.ortools.sat.CpObjectiveProtoOrBuilder.
Definition at line 177 of file CpObjectiveProto.java.
long com.google.ortools.sat.CpObjectiveProto.getIntegerAfterOffset | ( | ) |
int64 integer_after_offset = 9;
Implements com.google.ortools.sat.CpObjectiveProtoOrBuilder.
Definition at line 261 of file CpObjectiveProto.java.
long com.google.ortools.sat.CpObjectiveProto.getIntegerBeforeOffset | ( | ) |
Internal fields to recover a bound on the original integer objective from the presolved one. Basically, initially the integer objective fit on an int64 and is in [Initial_lb, Initial_ub]. During presolve, we might change the linear expression to have a new domain [Presolved_lb, Presolved_ub] that will also always fit on an int64. The two domain will always be linked with an affine transformation between the two of the form: old = (new + before_offset) * integer_scaling_factor + after_offset. Note that we use both offsets to always be able to do the computation while staying in the int64 domain. In particular, the after_offset will always be in (-integer_scaling_factor, integer_scaling_factor).
int64 integer_before_offset = 7;
Implements com.google.ortools.sat.CpObjectiveProtoOrBuilder.
Definition at line 250 of file CpObjectiveProto.java.
long com.google.ortools.sat.CpObjectiveProto.getIntegerScalingFactor | ( | ) |
int64 integer_scaling_factor = 8;
Implements com.google.ortools.sat.CpObjectiveProtoOrBuilder.
Definition at line 272 of file CpObjectiveProto.java.
double com.google.ortools.sat.CpObjectiveProto.getOffset | ( | ) |
The displayed objective is always: scaling_factor * (sum(coefficients[i] * objective_vars[i]) + offset). This is needed to have a consistent objective after presolve or when scaling a double problem to express it with integers. Note that if scaling_factor is zero, then it is assumed to be 1, so that by default these fields have no effect.
double offset = 2;
Implements com.google.ortools.sat.CpObjectiveProtoOrBuilder.
Definition at line 146 of file CpObjectiveProto.java.
com.google.protobuf.Parser< CpObjectiveProto > com.google.ortools.sat.CpObjectiveProto.getParserForType | ( | ) |
Definition at line 1541 of file CpObjectiveProto.java.
double com.google.ortools.sat.CpObjectiveProto.getScalingFactor | ( | ) |
double scaling_factor = 3;
Implements com.google.ortools.sat.CpObjectiveProtoOrBuilder.
Definition at line 157 of file CpObjectiveProto.java.
boolean com.google.ortools.sat.CpObjectiveProto.getScalingWasExact | ( | ) |
Internal field. Do not set. When we scale a FloatObjectiveProto to a integer version, we set this to true if the scaling was exact (i.e. all original coeff were integer for instance). TODO(user): Put the error bounds we computed instead?
bool scaling_was_exact = 6;
Implements com.google.ortools.sat.CpObjectiveProtoOrBuilder.
Definition at line 224 of file CpObjectiveProto.java.
int com.google.ortools.sat.CpObjectiveProto.getSerializedSize | ( | ) |
Definition at line 334 of file CpObjectiveProto.java.
int com.google.ortools.sat.CpObjectiveProto.getVars | ( | int | index | ) |
The linear terms of the objective to minimize. For a maximization problem, one can negate all coefficients in the objective and set scaling_factor to -1.
repeated int32 vars = 1;
index | The index of the element to return. |
Implements com.google.ortools.sat.CpObjectiveProtoOrBuilder.
Definition at line 94 of file CpObjectiveProto.java.
int com.google.ortools.sat.CpObjectiveProto.getVarsCount | ( | ) |
The linear terms of the objective to minimize. For a maximization problem, one can negate all coefficients in the objective and set scaling_factor to -1.
repeated int32 vars = 1;
Implements com.google.ortools.sat.CpObjectiveProtoOrBuilder.
Definition at line 80 of file CpObjectiveProto.java.
java.util.List< java.lang.Integer > com.google.ortools.sat.CpObjectiveProto.getVarsList | ( | ) |
The linear terms of the objective to minimize. For a maximization problem, one can negate all coefficients in the objective and set scaling_factor to -1.
repeated int32 vars = 1;
Implements com.google.ortools.sat.CpObjectiveProtoOrBuilder.
Definition at line 67 of file CpObjectiveProto.java.
int com.google.ortools.sat.CpObjectiveProto.hashCode | ( | ) |
Definition at line 445 of file CpObjectiveProto.java.
|
protected |
Definition at line 45 of file CpObjectiveProto.java.
final boolean com.google.ortools.sat.CpObjectiveProto.isInitialized | ( | ) |
Definition at line 278 of file CpObjectiveProto.java.
|
static |
Definition at line 560 of file CpObjectiveProto.java.
|
static |
Definition at line 563 of file CpObjectiveProto.java.
Builder com.google.ortools.sat.CpObjectiveProto.newBuilderForType | ( | ) |
Definition at line 559 of file CpObjectiveProto.java.
|
protected |
Definition at line 573 of file CpObjectiveProto.java.
|
static |
Definition at line 531 of file CpObjectiveProto.java.
|
static |
Definition at line 537 of file CpObjectiveProto.java.
|
static |
Definition at line 508 of file CpObjectiveProto.java.
|
static |
Definition at line 512 of file CpObjectiveProto.java.
|
static |
Definition at line 497 of file CpObjectiveProto.java.
|
static |
Definition at line 502 of file CpObjectiveProto.java.
|
static |
Definition at line 544 of file CpObjectiveProto.java.
|
static |
Definition at line 550 of file CpObjectiveProto.java.
|
static |
Definition at line 518 of file CpObjectiveProto.java.
|
static |
Definition at line 523 of file CpObjectiveProto.java.
|
static |
Definition at line 486 of file CpObjectiveProto.java.
|
static |
Definition at line 491 of file CpObjectiveProto.java.
|
static |
Definition at line 1536 of file CpObjectiveProto.java.
Builder com.google.ortools.sat.CpObjectiveProto.toBuilder | ( | ) |
Definition at line 567 of file CpObjectiveProto.java.
void com.google.ortools.sat.CpObjectiveProto.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 288 of file CpObjectiveProto.java.
|
static |
Definition at line 99 of file CpObjectiveProto.java.
|
static |
Definition at line 161 of file CpObjectiveProto.java.
|
static |
Definition at line 254 of file CpObjectiveProto.java.
|
static |
Definition at line 228 of file CpObjectiveProto.java.
|
static |
Definition at line 265 of file CpObjectiveProto.java.
|
static |
Definition at line 129 of file CpObjectiveProto.java.
|
static |
Definition at line 150 of file CpObjectiveProto.java.
|
static |
Definition at line 209 of file CpObjectiveProto.java.
|
static |
Definition at line 51 of file CpObjectiveProto.java.