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 > | getLiteralsList () |
int | getLiteralsCount () |
int | getLiterals (int index) |
java.util.List< java.lang.Long > | getCoefficientsList () |
int | getCoefficientsCount () |
long | getCoefficients (int index) |
boolean | hasOffset () |
double | getOffset () |
boolean | hasScalingFactor () |
double | getScalingFactor () |
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< LinearObjective > | getParserForType () |
com.google.ortools.sat.LinearObjective | getDefaultInstanceForType () |
Public Member Functions inherited from com.google.ortools.sat.LinearObjectiveOrBuilder |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
static com.google.ortools.sat.LinearObjective | parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.LinearObjective | parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.LinearObjective | parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.LinearObjective | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.LinearObjective | parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.LinearObjective | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.LinearObjective | parseFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.sat.LinearObjective | parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.sat.LinearObjective | parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.sat.LinearObjective | parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.sat.LinearObjective | parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException |
static com.google.ortools.sat.LinearObjective | 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.LinearObjective prototype) |
static com.google.ortools.sat.LinearObjective | getDefaultInstance () |
static com.google.protobuf.Parser< LinearObjective > | parser () |
Static Public Attributes | |
static final int | LITERALS_FIELD_NUMBER = 1 |
static final int | COEFFICIENTS_FIELD_NUMBER = 2 |
static final int | OFFSET_FIELD_NUMBER = 3 |
static final int | SCALING_FACTOR_FIELD_NUMBER = 4 |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
Builder | newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent) |
The objective of an optimization problem.
Protobuf type operations_research.sat.LinearObjective
Definition at line 14 of file LinearObjective.java.
boolean com.google.ortools.sat.LinearObjective.equals | ( | final java.lang.Object | obj | ) |
Definition at line 262 of file LinearObjective.java.
long com.google.ortools.sat.LinearObjective.getCoefficients | ( | int | index | ) |
repeated int64 coefficients = 2;
index | The index of the element to return. |
Implements com.google.ortools.sat.LinearObjectiveOrBuilder.
Definition at line 133 of file LinearObjective.java.
int com.google.ortools.sat.LinearObjective.getCoefficientsCount | ( | ) |
repeated int64 coefficients = 2;
Implements com.google.ortools.sat.LinearObjectiveOrBuilder.
Definition at line 125 of file LinearObjective.java.
java.util.List< java.lang.Long > com.google.ortools.sat.LinearObjective.getCoefficientsList | ( | ) |
repeated int64 coefficients = 2;
Implements com.google.ortools.sat.LinearObjectiveOrBuilder.
Definition at line 118 of file LinearObjective.java.
|
static |
Definition at line 993 of file LinearObjective.java.
com.google.ortools.sat.LinearObjective com.google.ortools.sat.LinearObjective.getDefaultInstanceForType | ( | ) |
Definition at line 1029 of file LinearObjective.java.
|
static |
Definition at line 39 of file LinearObjective.java.
int com.google.ortools.sat.LinearObjective.getLiterals | ( | int | index | ) |
The goal is always to minimize the linear Boolean formula defined by these two fields: sum_i literal_i * coefficient_i where literal_i is 1 iff literal_i is true in a given assignment. Note that the same variable shouldn't appear twice and that zero coefficients are not allowed.
repeated int32 literals = 1;
index | The index of the element to return. |
Implements com.google.ortools.sat.LinearObjectiveOrBuilder.
Definition at line 104 of file LinearObjective.java.
int com.google.ortools.sat.LinearObjective.getLiteralsCount | ( | ) |
The goal is always to minimize the linear Boolean formula defined by these two fields: sum_i literal_i * coefficient_i where literal_i is 1 iff literal_i is true in a given assignment. Note that the same variable shouldn't appear twice and that zero coefficients are not allowed.
repeated int32 literals = 1;
Implements com.google.ortools.sat.LinearObjectiveOrBuilder.
Definition at line 87 of file LinearObjective.java.
java.util.List< java.lang.Integer > com.google.ortools.sat.LinearObjective.getLiteralsList | ( | ) |
The goal is always to minimize the linear Boolean formula defined by these two fields: sum_i literal_i * coefficient_i where literal_i is 1 iff literal_i is true in a given assignment. Note that the same variable shouldn't appear twice and that zero coefficients are not allowed.
repeated int32 literals = 1;
Implements com.google.ortools.sat.LinearObjectiveOrBuilder.
Definition at line 71 of file LinearObjective.java.
double com.google.ortools.sat.LinearObjective.getOffset | ( | ) |
For a given variable assignment, the "real" problem objective value is 'scaling_factor * (minimization_objective + offset)' where 'minimization_objective is the one defined just above. Note that this is not what we minimize, but it is what we display. In particular if scaling_factor is negative, then the "real" problem is a maximization problem, even if the "internal" objective is minimized.
optional double offset = 3 [default = 0];
Implements com.google.ortools.sat.LinearObjectiveOrBuilder.
Definition at line 172 of file LinearObjective.java.
com.google.protobuf.Parser< LinearObjective > com.google.ortools.sat.LinearObjective.getParserForType | ( | ) |
Definition at line 1024 of file LinearObjective.java.
double com.google.ortools.sat.LinearObjective.getScalingFactor | ( | ) |
optional double scaling_factor = 4 [default = 1];
Implements com.google.ortools.sat.LinearObjectiveOrBuilder.
Definition at line 191 of file LinearObjective.java.
int com.google.ortools.sat.LinearObjective.getSerializedSize | ( | ) |
Definition at line 225 of file LinearObjective.java.
int com.google.ortools.sat.LinearObjective.hashCode | ( | ) |
Definition at line 292 of file LinearObjective.java.
boolean com.google.ortools.sat.LinearObjective.hasOffset | ( | ) |
For a given variable assignment, the "real" problem objective value is 'scaling_factor * (minimization_objective + offset)' where 'minimization_objective is the one defined just above. Note that this is not what we minimize, but it is what we display. In particular if scaling_factor is negative, then the "real" problem is a maximization problem, even if the "internal" objective is minimized.
optional double offset = 3 [default = 0];
Implements com.google.ortools.sat.LinearObjectiveOrBuilder.
Definition at line 154 of file LinearObjective.java.
boolean com.google.ortools.sat.LinearObjective.hasScalingFactor | ( | ) |
optional double scaling_factor = 4 [default = 1];
Implements com.google.ortools.sat.LinearObjectiveOrBuilder.
Definition at line 183 of file LinearObjective.java.
|
protected |
Definition at line 45 of file LinearObjective.java.
final boolean com.google.ortools.sat.LinearObjective.isInitialized | ( | ) |
Definition at line 197 of file LinearObjective.java.
|
static |
Definition at line 395 of file LinearObjective.java.
|
static |
Definition at line 398 of file LinearObjective.java.
Builder com.google.ortools.sat.LinearObjective.newBuilderForType | ( | ) |
Definition at line 394 of file LinearObjective.java.
|
protected |
Definition at line 408 of file LinearObjective.java.
|
static |
Definition at line 366 of file LinearObjective.java.
|
static |
Definition at line 372 of file LinearObjective.java.
|
static |
Definition at line 343 of file LinearObjective.java.
|
static |
Definition at line 347 of file LinearObjective.java.
|
static |
Definition at line 332 of file LinearObjective.java.
|
static |
Definition at line 337 of file LinearObjective.java.
|
static |
Definition at line 379 of file LinearObjective.java.
|
static |
Definition at line 385 of file LinearObjective.java.
|
static |
Definition at line 353 of file LinearObjective.java.
|
static |
Definition at line 358 of file LinearObjective.java.
|
static |
Definition at line 321 of file LinearObjective.java.
|
static |
Definition at line 326 of file LinearObjective.java.
|
static |
Definition at line 1019 of file LinearObjective.java.
Builder com.google.ortools.sat.LinearObjective.toBuilder | ( | ) |
Definition at line 402 of file LinearObjective.java.
void com.google.ortools.sat.LinearObjective.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 207 of file LinearObjective.java.
|
static |
Definition at line 108 of file LinearObjective.java.
|
static |
Definition at line 52 of file LinearObjective.java.
|
static |
Definition at line 137 of file LinearObjective.java.
|
static |
Definition at line 176 of file LinearObjective.java.