Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
Builder | clear () |
com.google.protobuf.Descriptors.Descriptor | getDescriptorForType () |
com.google.ortools.sat.FloatObjectiveProto | getDefaultInstanceForType () |
com.google.ortools.sat.FloatObjectiveProto | build () |
com.google.ortools.sat.FloatObjectiveProto | buildPartial () |
Builder | mergeFrom (com.google.protobuf.Message other) |
Builder | mergeFrom (com.google.ortools.sat.FloatObjectiveProto other) |
final boolean | isInitialized () |
Builder | mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
java.util.List< java.lang.Integer > | getVarsList () |
int | getVarsCount () |
int | getVars (int index) |
Builder | setVars (int index, int value) |
Builder | addVars (int value) |
Builder | addAllVars (java.lang.Iterable<? extends java.lang.Integer > values) |
Builder | clearVars () |
java.util.List< java.lang.Double > | getCoeffsList () |
int | getCoeffsCount () |
double | getCoeffs (int index) |
Builder | setCoeffs (int index, double value) |
Builder | addCoeffs (double value) |
Builder | addAllCoeffs (java.lang.Iterable<? extends java.lang.Double > values) |
Builder | clearCoeffs () |
double | getOffset () |
Builder | setOffset (double value) |
Builder | clearOffset () |
boolean | getMaximize () |
Builder | setMaximize (boolean value) |
Builder | clearMaximize () |
Public Member Functions inherited from com.google.ortools.sat.FloatObjectiveProtoOrBuilder |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
A linear floating point objective: sum coeffs[i] * vars[i] + offset. Note that the variable can only still take integer value.
Protobuf type operations_research.sat.FloatObjectiveProto
Definition at line 368 of file FloatObjectiveProto.java.
Builder com.google.ortools.sat.FloatObjectiveProto.Builder.addAllCoeffs | ( | java.lang.Iterable<? extends java.lang.Double > | values | ) |
repeated double coeffs = 2;
values | The coeffs to add. |
Definition at line 732 of file FloatObjectiveProto.java.
Builder com.google.ortools.sat.FloatObjectiveProto.Builder.addAllVars | ( | java.lang.Iterable<? extends java.lang.Integer > | values | ) |
repeated int32 vars = 1;
values | The vars to add. |
Definition at line 642 of file FloatObjectiveProto.java.
Builder com.google.ortools.sat.FloatObjectiveProto.Builder.addCoeffs | ( | double | value | ) |
repeated double coeffs = 2;
value | The coeffs to add. |
Definition at line 719 of file FloatObjectiveProto.java.
Builder com.google.ortools.sat.FloatObjectiveProto.Builder.addVars | ( | int | value | ) |
repeated int32 vars = 1;
value | The vars to add. |
Definition at line 629 of file FloatObjectiveProto.java.
com.google.ortools.sat.FloatObjectiveProto com.google.ortools.sat.FloatObjectiveProto.Builder.build | ( | ) |
Definition at line 418 of file FloatObjectiveProto.java.
com.google.ortools.sat.FloatObjectiveProto com.google.ortools.sat.FloatObjectiveProto.Builder.buildPartial | ( | ) |
Definition at line 427 of file FloatObjectiveProto.java.
Builder com.google.ortools.sat.FloatObjectiveProto.Builder.clear | ( | ) |
Definition at line 396 of file FloatObjectiveProto.java.
Builder com.google.ortools.sat.FloatObjectiveProto.Builder.clearCoeffs | ( | ) |
repeated double coeffs = 2;
Definition at line 745 of file FloatObjectiveProto.java.
Builder com.google.ortools.sat.FloatObjectiveProto.Builder.clearMaximize | ( | ) |
The optimization direction. The default is to minimize
bool maximize = 4;
Definition at line 821 of file FloatObjectiveProto.java.
Builder com.google.ortools.sat.FloatObjectiveProto.Builder.clearOffset | ( | ) |
double offset = 3;
Definition at line 777 of file FloatObjectiveProto.java.
Builder com.google.ortools.sat.FloatObjectiveProto.Builder.clearVars | ( | ) |
repeated int32 vars = 1;
Definition at line 655 of file FloatObjectiveProto.java.
double com.google.ortools.sat.FloatObjectiveProto.Builder.getCoeffs | ( | int | index | ) |
repeated double coeffs = 2;
index | The index of the element to return. |
Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.
Definition at line 696 of file FloatObjectiveProto.java.
int com.google.ortools.sat.FloatObjectiveProto.Builder.getCoeffsCount | ( | ) |
repeated double coeffs = 2;
Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.
Definition at line 688 of file FloatObjectiveProto.java.
java.util.List< java.lang.Double > com.google.ortools.sat.FloatObjectiveProto.Builder.getCoeffsList | ( | ) |
repeated double coeffs = 2;
Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.
Definition at line 680 of file FloatObjectiveProto.java.
com.google.ortools.sat.FloatObjectiveProto com.google.ortools.sat.FloatObjectiveProto.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 413 of file FloatObjectiveProto.java.
|
static |
Definition at line 373 of file FloatObjectiveProto.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.FloatObjectiveProto.Builder.getDescriptorForType | ( | ) |
Definition at line 408 of file FloatObjectiveProto.java.
boolean com.google.ortools.sat.FloatObjectiveProto.Builder.getMaximize | ( | ) |
The optimization direction. The default is to minimize
bool maximize = 4;
Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.
Definition at line 794 of file FloatObjectiveProto.java.
double com.google.ortools.sat.FloatObjectiveProto.Builder.getOffset | ( | ) |
double offset = 3;
Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.
Definition at line 758 of file FloatObjectiveProto.java.
int com.google.ortools.sat.FloatObjectiveProto.Builder.getVars | ( | int | index | ) |
repeated int32 vars = 1;
index | The index of the element to return. |
Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.
Definition at line 606 of file FloatObjectiveProto.java.
int com.google.ortools.sat.FloatObjectiveProto.Builder.getVarsCount | ( | ) |
repeated int32 vars = 1;
Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.
Definition at line 598 of file FloatObjectiveProto.java.
java.util.List< java.lang.Integer > com.google.ortools.sat.FloatObjectiveProto.Builder.getVarsList | ( | ) |
repeated int32 vars = 1;
Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.
Definition at line 590 of file FloatObjectiveProto.java.
|
protected |
Definition at line 379 of file FloatObjectiveProto.java.
final boolean com.google.ortools.sat.FloatObjectiveProto.Builder.isInitialized | ( | ) |
Definition at line 498 of file FloatObjectiveProto.java.
Builder com.google.ortools.sat.FloatObjectiveProto.Builder.mergeFrom | ( | com.google.ortools.sat.FloatObjectiveProto | other | ) |
Definition at line 462 of file FloatObjectiveProto.java.
Builder com.google.ortools.sat.FloatObjectiveProto.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 503 of file FloatObjectiveProto.java.
Builder com.google.ortools.sat.FloatObjectiveProto.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 453 of file FloatObjectiveProto.java.
Builder com.google.ortools.sat.FloatObjectiveProto.Builder.setCoeffs | ( | int | index, |
double | value ) |
repeated double coeffs = 2;
index | The index to set the value at. |
value | The coeffs to set. |
Definition at line 705 of file FloatObjectiveProto.java.
Builder com.google.ortools.sat.FloatObjectiveProto.Builder.setMaximize | ( | boolean | value | ) |
The optimization direction. The default is to minimize
bool maximize = 4;
value | The maximize to set. |
Definition at line 806 of file FloatObjectiveProto.java.
Builder com.google.ortools.sat.FloatObjectiveProto.Builder.setOffset | ( | double | value | ) |
double offset = 3;
value | The offset to set. |
Definition at line 766 of file FloatObjectiveProto.java.
Builder com.google.ortools.sat.FloatObjectiveProto.Builder.setVars | ( | int | index, |
int | value ) |
repeated int32 vars = 1;
index | The index to set the value at. |
value | The vars to set. |
Definition at line 615 of file FloatObjectiveProto.java.