![]() |
Google OR-Tools v9.12
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 () |
A linear Boolean problem.
Protobuf type operations_research.sat.LinearBooleanProblem
Definition at line 645 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.addAllConstraints | ( | java.lang.Iterable<? extends com.google.ortools.sat.LinearBooleanConstraint > | values | ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Definition at line 1285 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.addAllVarNames | ( | java.lang.Iterable< java.lang.String > | values | ) |
The names of the problem variables. The variables index are 0-based and var_names[i] will be the name of the i-th variable which correspond to literals +(i + 1) or -(i + 1). This is optional and can be left empty.
repeated string var_names = 6;
values | The varNames to add. |
Definition at line 1703 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.addConstraints | ( | com.google.ortools.sat.LinearBooleanConstraint | value | ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Definition at line 1208 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.addConstraints | ( | com.google.ortools.sat.LinearBooleanConstraint.Builder | builderForValue | ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Definition at line 1249 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.addConstraints | ( | int | index, |
com.google.ortools.sat.LinearBooleanConstraint | value ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Definition at line 1228 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.addConstraints | ( | int | index, |
com.google.ortools.sat.LinearBooleanConstraint.Builder | builderForValue ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Definition at line 1267 of file LinearBooleanProblem.java.
com.google.ortools.sat.LinearBooleanConstraint.Builder com.google.ortools.sat.LinearBooleanProblem.Builder.addConstraintsBuilder | ( | ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Definition at line 1378 of file LinearBooleanProblem.java.
com.google.ortools.sat.LinearBooleanConstraint.Builder com.google.ortools.sat.LinearBooleanProblem.Builder.addConstraintsBuilder | ( | int | index | ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Definition at line 1389 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.addVarNames | ( | java.lang.String | value | ) |
The names of the problem variables. The variables index are 0-based and var_names[i] will be the name of the i-th variable which correspond to literals +(i + 1) or -(i + 1). This is optional and can be left empty.
repeated string var_names = 6;
value | The varNames to add. |
Definition at line 1683 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.addVarNamesBytes | ( | com.google.protobuf.ByteString | value | ) |
The names of the problem variables. The variables index are 0-based and var_names[i] will be the name of the i-th variable which correspond to literals +(i + 1) or -(i + 1). This is optional and can be left empty.
repeated string var_names = 6;
value | The bytes of the varNames to add. |
Definition at line 1740 of file LinearBooleanProblem.java.
com.google.ortools.sat.LinearBooleanProblem com.google.ortools.sat.LinearBooleanProblem.Builder.build | ( | ) |
Definition at line 721 of file LinearBooleanProblem.java.
com.google.ortools.sat.LinearBooleanProblem com.google.ortools.sat.LinearBooleanProblem.Builder.buildPartial | ( | ) |
Definition at line 730 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.clear | ( | ) |
Definition at line 681 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.clearAssignment | ( | ) |
Stores an assignment of the problem variables. That may be an initial feasible solution, just a partial assignment or the optimal solution.
optional .operations_research.sat.BooleanAssignment assignment = 7;
Definition at line 1855 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.clearConstraints | ( | ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Definition at line 1304 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.clearName | ( | ) |
The name of the problem.
optional string name = 1 [default = ""];
Definition at line 1020 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.clearNumVariables | ( | ) |
The number of variables in the problem. All the signed representation of the problem literals must be in [-num_variables, num_variables], excluding 0.
optional int32 num_variables = 3;
Definition at line 1101 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.clearObjective | ( | ) |
The objective of the problem. If left empty, we just have a satisfiability problem.
optional .operations_research.sat.LinearObjective objective = 5;
Definition at line 1525 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.clearOriginalNumVariables | ( | ) |
Hack: When converting a wcnf formulat to a LinearBooleanProblem, extra variables need to be created. This stores the number of variables in the original problem (which are in one to one correspondence with the first variables of this problem).
optional int32 original_num_variables = 8;
Definition at line 1977 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.clearVarNames | ( | ) |
The names of the problem variables. The variables index are 0-based and var_names[i] will be the name of the i-th variable which correspond to literals +(i + 1) or -(i + 1). This is optional and can be left empty.
repeated string var_names = 6;
Definition at line 1722 of file LinearBooleanProblem.java.
com.google.ortools.sat.BooleanAssignment com.google.ortools.sat.LinearBooleanProblem.Builder.getAssignment | ( | ) |
Stores an assignment of the problem variables. That may be an initial feasible solution, just a partial assignment or the optimal solution.
optional .operations_research.sat.BooleanAssignment assignment = 7;
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1774 of file LinearBooleanProblem.java.
com.google.ortools.sat.BooleanAssignment.Builder com.google.ortools.sat.LinearBooleanProblem.Builder.getAssignmentBuilder | ( | ) |
Stores an assignment of the problem variables. That may be an initial feasible solution, just a partial assignment or the optimal solution.
optional .operations_research.sat.BooleanAssignment assignment = 7;
Definition at line 1873 of file LinearBooleanProblem.java.
com.google.ortools.sat.BooleanAssignmentOrBuilder com.google.ortools.sat.LinearBooleanProblem.Builder.getAssignmentOrBuilder | ( | ) |
Stores an assignment of the problem variables. That may be an initial feasible solution, just a partial assignment or the optimal solution.
optional .operations_research.sat.BooleanAssignment assignment = 7;
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1886 of file LinearBooleanProblem.java.
com.google.ortools.sat.LinearBooleanConstraint com.google.ortools.sat.LinearBooleanProblem.Builder.getConstraints | ( | int | index | ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1155 of file LinearBooleanProblem.java.
com.google.ortools.sat.LinearBooleanConstraint.Builder com.google.ortools.sat.LinearBooleanProblem.Builder.getConstraintsBuilder | ( | int | index | ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Definition at line 1338 of file LinearBooleanProblem.java.
java.util.List< com.google.ortools.sat.LinearBooleanConstraint.Builder > com.google.ortools.sat.LinearBooleanProblem.Builder.getConstraintsBuilderList | ( | ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Definition at line 1402 of file LinearBooleanProblem.java.
int com.google.ortools.sat.LinearBooleanProblem.Builder.getConstraintsCount | ( | ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1141 of file LinearBooleanProblem.java.
java.util.List< com.google.ortools.sat.LinearBooleanConstraint > com.google.ortools.sat.LinearBooleanProblem.Builder.getConstraintsList | ( | ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1127 of file LinearBooleanProblem.java.
com.google.ortools.sat.LinearBooleanConstraintOrBuilder com.google.ortools.sat.LinearBooleanProblem.Builder.getConstraintsOrBuilder | ( | int | index | ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1349 of file LinearBooleanProblem.java.
java.util.List<? extends com.google.ortools.sat.LinearBooleanConstraintOrBuilder > com.google.ortools.sat.LinearBooleanProblem.Builder.getConstraintsOrBuilderList | ( | ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1364 of file LinearBooleanProblem.java.
com.google.ortools.sat.LinearBooleanProblem com.google.ortools.sat.LinearBooleanProblem.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 716 of file LinearBooleanProblem.java.
|
static |
Definition at line 650 of file LinearBooleanProblem.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.LinearBooleanProblem.Builder.getDescriptorForType | ( | ) |
Definition at line 711 of file LinearBooleanProblem.java.
java.lang.String com.google.ortools.sat.LinearBooleanProblem.Builder.getName | ( | ) |
The name of the problem.
optional string name = 1 [default = ""];
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 960 of file LinearBooleanProblem.java.
com.google.protobuf.ByteString com.google.ortools.sat.LinearBooleanProblem.Builder.getNameBytes | ( | ) |
The name of the problem.
optional string name = 1 [default = ""];
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 983 of file LinearBooleanProblem.java.
int com.google.ortools.sat.LinearBooleanProblem.Builder.getNumVariables | ( | ) |
The number of variables in the problem. All the signed representation of the problem literals must be in [-num_variables, num_variables], excluding 0.
optional int32 num_variables = 3;
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1070 of file LinearBooleanProblem.java.
com.google.ortools.sat.LinearObjective com.google.ortools.sat.LinearBooleanProblem.Builder.getObjective | ( | ) |
The objective of the problem. If left empty, we just have a satisfiability problem.
optional .operations_research.sat.LinearObjective objective = 5;
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1444 of file LinearBooleanProblem.java.
com.google.ortools.sat.LinearObjective.Builder com.google.ortools.sat.LinearBooleanProblem.Builder.getObjectiveBuilder | ( | ) |
The objective of the problem. If left empty, we just have a satisfiability problem.
optional .operations_research.sat.LinearObjective objective = 5;
Definition at line 1543 of file LinearBooleanProblem.java.
com.google.ortools.sat.LinearObjectiveOrBuilder com.google.ortools.sat.LinearBooleanProblem.Builder.getObjectiveOrBuilder | ( | ) |
The objective of the problem. If left empty, we just have a satisfiability problem.
optional .operations_research.sat.LinearObjective objective = 5;
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1556 of file LinearBooleanProblem.java.
int com.google.ortools.sat.LinearBooleanProblem.Builder.getOriginalNumVariables | ( | ) |
Hack: When converting a wcnf formulat to a LinearBooleanProblem, extra variables need to be created. This stores the number of variables in the original problem (which are in one to one correspondence with the first variables of this problem).
optional int32 original_num_variables = 8;
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1944 of file LinearBooleanProblem.java.
java.lang.String com.google.ortools.sat.LinearBooleanProblem.Builder.getVarNames | ( | int | index | ) |
The names of the problem variables. The variables index are 0-based and var_names[i] will be the name of the i-th variable which correspond to literals +(i + 1) or -(i + 1). This is optional and can be left empty.
repeated string var_names = 6;
index | The index of the element to return. |
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1633 of file LinearBooleanProblem.java.
com.google.protobuf.ByteString com.google.ortools.sat.LinearBooleanProblem.Builder.getVarNamesBytes | ( | int | index | ) |
The names of the problem variables. The variables index are 0-based and var_names[i] will be the name of the i-th variable which correspond to literals +(i + 1) or -(i + 1). This is optional and can be left empty.
repeated string var_names = 6;
index | The index of the value to return. |
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1648 of file LinearBooleanProblem.java.
int com.google.ortools.sat.LinearBooleanProblem.Builder.getVarNamesCount | ( | ) |
The names of the problem variables. The variables index are 0-based and var_names[i] will be the name of the i-th variable which correspond to literals +(i + 1) or -(i + 1). This is optional and can be left empty.
repeated string var_names = 6;
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1619 of file LinearBooleanProblem.java.
com.google.protobuf.ProtocolStringList com.google.ortools.sat.LinearBooleanProblem.Builder.getVarNamesList | ( | ) |
The names of the problem variables. The variables index are 0-based and var_names[i] will be the name of the i-th variable which correspond to literals +(i + 1) or -(i + 1). This is optional and can be left empty.
repeated string var_names = 6;
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1605 of file LinearBooleanProblem.java.
boolean com.google.ortools.sat.LinearBooleanProblem.Builder.hasAssignment | ( | ) |
Stores an assignment of the problem variables. That may be an initial feasible solution, just a partial assignment or the optimal solution.
optional .operations_research.sat.BooleanAssignment assignment = 7;
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1762 of file LinearBooleanProblem.java.
boolean com.google.ortools.sat.LinearBooleanProblem.Builder.hasName | ( | ) |
The name of the problem.
optional string name = 1 [default = ""];
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 949 of file LinearBooleanProblem.java.
boolean com.google.ortools.sat.LinearBooleanProblem.Builder.hasNumVariables | ( | ) |
The number of variables in the problem. All the signed representation of the problem literals must be in [-num_variables, num_variables], excluding 0.
optional int32 num_variables = 3;
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1056 of file LinearBooleanProblem.java.
boolean com.google.ortools.sat.LinearBooleanProblem.Builder.hasObjective | ( | ) |
The objective of the problem. If left empty, we just have a satisfiability problem.
optional .operations_research.sat.LinearObjective objective = 5;
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1432 of file LinearBooleanProblem.java.
boolean com.google.ortools.sat.LinearBooleanProblem.Builder.hasOriginalNumVariables | ( | ) |
Hack: When converting a wcnf formulat to a LinearBooleanProblem, extra variables need to be created. This stores the number of variables in the original problem (which are in one to one correspondence with the first variables of this problem).
optional int32 original_num_variables = 8;
Implements com.google.ortools.sat.LinearBooleanProblemOrBuilder.
Definition at line 1929 of file LinearBooleanProblem.java.
|
protected |
Definition at line 656 of file LinearBooleanProblem.java.
final boolean com.google.ortools.sat.LinearBooleanProblem.Builder.isInitialized | ( | ) |
Definition at line 855 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.mergeAssignment | ( | com.google.ortools.sat.BooleanAssignment | value | ) |
Stores an assignment of the problem variables. That may be an initial feasible solution, just a partial assignment or the optimal solution.
optional .operations_research.sat.BooleanAssignment assignment = 7;
Definition at line 1829 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.mergeFrom | ( | com.google.ortools.sat.LinearBooleanProblem | other | ) |
Definition at line 794 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 860 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 785 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.mergeObjective | ( | com.google.ortools.sat.LinearObjective | value | ) |
The objective of the problem. If left empty, we just have a satisfiability problem.
optional .operations_research.sat.LinearObjective objective = 5;
Definition at line 1499 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.removeConstraints | ( | int | index | ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Definition at line 1321 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.setAssignment | ( | com.google.ortools.sat.BooleanAssignment | value | ) |
Stores an assignment of the problem variables. That may be an initial feasible solution, just a partial assignment or the optimal solution.
optional .operations_research.sat.BooleanAssignment assignment = 7;
Definition at line 1789 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.setAssignment | ( | com.google.ortools.sat.BooleanAssignment.Builder | builderForValue | ) |
Stores an assignment of the problem variables. That may be an initial feasible solution, just a partial assignment or the optimal solution.
optional .operations_research.sat.BooleanAssignment assignment = 7;
Definition at line 1810 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.setConstraints | ( | int | index, |
com.google.ortools.sat.LinearBooleanConstraint | value ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Definition at line 1169 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.setConstraints | ( | int | index, |
com.google.ortools.sat.LinearBooleanConstraint.Builder | builderForValue ) |
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
Definition at line 1190 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.setName | ( | java.lang.String | value | ) |
The name of the problem.
optional string name = 1 [default = ""];
value | The name to set. |
Definition at line 1004 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.setNameBytes | ( | com.google.protobuf.ByteString | value | ) |
The name of the problem.
optional string name = 1 [default = ""];
value | The bytes for name to set. |
Definition at line 1035 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.setNumVariables | ( | int | value | ) |
The number of variables in the problem. All the signed representation of the problem literals must be in [-num_variables, num_variables], excluding 0.
optional int32 num_variables = 3;
value | The numVariables to set. |
Definition at line 1084 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.setObjective | ( | com.google.ortools.sat.LinearObjective | value | ) |
The objective of the problem. If left empty, we just have a satisfiability problem.
optional .operations_research.sat.LinearObjective objective = 5;
Definition at line 1459 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.setObjective | ( | com.google.ortools.sat.LinearObjective.Builder | builderForValue | ) |
The objective of the problem. If left empty, we just have a satisfiability problem.
optional .operations_research.sat.LinearObjective objective = 5;
Definition at line 1480 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.setOriginalNumVariables | ( | int | value | ) |
Hack: When converting a wcnf formulat to a LinearBooleanProblem, extra variables need to be created. This stores the number of variables in the original problem (which are in one to one correspondence with the first variables of this problem).
optional int32 original_num_variables = 8;
value | The originalNumVariables to set. |
Definition at line 1959 of file LinearBooleanProblem.java.
Builder com.google.ortools.sat.LinearBooleanProblem.Builder.setVarNames | ( | int | index, |
java.lang.String | value ) |
The names of the problem variables. The variables index are 0-based and var_names[i] will be the name of the i-th variable which correspond to literals +(i + 1) or -(i + 1). This is optional and can be left empty.
repeated string var_names = 6;
index | The index to set the value at. |
value | The varNames to set. |
Definition at line 1663 of file LinearBooleanProblem.java.