public interface LinearBooleanProblemOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
BooleanAssignment |
getAssignment()
Stores an assignment of the problem variables.
|
BooleanAssignmentOrBuilder |
getAssignmentOrBuilder()
Stores an assignment of the problem variables.
|
LinearBooleanConstraint |
getConstraints(int index)
The constraints of the problem.
|
int |
getConstraintsCount()
The constraints of the problem.
|
java.util.List<LinearBooleanConstraint> |
getConstraintsList()
The constraints of the problem.
|
LinearBooleanConstraintOrBuilder |
getConstraintsOrBuilder(int index)
The constraints of the problem.
|
java.util.List<? extends LinearBooleanConstraintOrBuilder> |
getConstraintsOrBuilderList()
The constraints of the problem.
|
java.lang.String |
getName()
The name of the problem.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the problem.
|
int |
getNumVariables()
The number of variables in the problem.
|
LinearObjective |
getObjective()
The objective of the problem.
|
LinearObjectiveOrBuilder |
getObjectiveOrBuilder()
The objective of the problem.
|
int |
getOriginalNumVariables()
Hack: When converting a wcnf formulat to a LinearBooleanProblem, extra
variables need to be created.
|
java.lang.String |
getVarNames(int index)
The names of the problem variables.
|
com.google.protobuf.ByteString |
getVarNamesBytes(int index)
The names of the problem variables.
|
int |
getVarNamesCount()
The names of the problem variables.
|
java.util.List<java.lang.String> |
getVarNamesList()
The names of the problem variables.
|
boolean |
hasAssignment()
Stores an assignment of the problem variables.
|
boolean |
hasName()
The name of the problem.
|
boolean |
hasNumVariables()
The number of variables in the problem.
|
boolean |
hasObjective()
The objective of the problem.
|
boolean |
hasOriginalNumVariables()
Hack: When converting a wcnf formulat to a LinearBooleanProblem, extra
variables need to be created.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
boolean hasName()
The name of the problem.
optional string name = 1 [default = ""];
java.lang.String getName()
The name of the problem.
optional string name = 1 [default = ""];
com.google.protobuf.ByteString getNameBytes()
The name of the problem.
optional string name = 1 [default = ""];
boolean 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;
int 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;
java.util.List<LinearBooleanConstraint> getConstraintsList()
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
LinearBooleanConstraint getConstraints(int index)
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
int getConstraintsCount()
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
java.util.List<? extends LinearBooleanConstraintOrBuilder> getConstraintsOrBuilderList()
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
LinearBooleanConstraintOrBuilder getConstraintsOrBuilder(int index)
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
boolean hasObjective()
The objective of the problem. If left empty, we just have a satisfiability problem.
optional .operations_research.sat.LinearObjective objective = 5;
LinearObjective getObjective()
The objective of the problem. If left empty, we just have a satisfiability problem.
optional .operations_research.sat.LinearObjective objective = 5;
LinearObjectiveOrBuilder getObjectiveOrBuilder()
The objective of the problem. If left empty, we just have a satisfiability problem.
optional .operations_research.sat.LinearObjective objective = 5;
java.util.List<java.lang.String> 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;
int 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;
java.lang.String 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.com.google.protobuf.ByteString 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.boolean 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;
BooleanAssignment 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;
BooleanAssignmentOrBuilder 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;
boolean 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;
int 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;
Copyright © 2025. All rights reserved.