public final class LinearBooleanProblem extends com.google.protobuf.GeneratedMessage implements LinearBooleanProblemOrBuilder
A linear Boolean problem.Protobuf type
operations_research.sat.LinearBooleanProblem| Modifier and Type | Class and Description |
|---|---|
static class |
LinearBooleanProblem.Builder
A linear Boolean problem.
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ASSIGNMENT_FIELD_NUMBER |
static int |
CONSTRAINTS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NUM_VARIABLES_FIELD_NUMBER |
static int |
OBJECTIVE_FIELD_NUMBER |
static int |
ORIGINAL_NUM_VARIABLES_FIELD_NUMBER |
static int |
VAR_NAMES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
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.
|
static LinearBooleanProblem |
getDefaultInstance() |
LinearBooleanProblem |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<LinearBooleanProblem> |
getParserForType() |
int |
getSerializedSize() |
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.
|
com.google.protobuf.ProtocolStringList |
getVarNamesList()
The names of the problem variables.
|
boolean |
hasAssignment()
Stores an assignment of the problem variables.
|
int |
hashCode() |
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.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static LinearBooleanProblem.Builder |
newBuilder() |
static LinearBooleanProblem.Builder |
newBuilder(LinearBooleanProblem prototype) |
LinearBooleanProblem.Builder |
newBuilderForType() |
protected LinearBooleanProblem.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static LinearBooleanProblem |
parseDelimitedFrom(java.io.InputStream input) |
static LinearBooleanProblem |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LinearBooleanProblem |
parseFrom(byte[] data) |
static LinearBooleanProblem |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LinearBooleanProblem |
parseFrom(java.nio.ByteBuffer data) |
static LinearBooleanProblem |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LinearBooleanProblem |
parseFrom(com.google.protobuf.ByteString data) |
static LinearBooleanProblem |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LinearBooleanProblem |
parseFrom(com.google.protobuf.CodedInputStream input) |
static LinearBooleanProblem |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LinearBooleanProblem |
parseFrom(java.io.InputStream input) |
static LinearBooleanProblem |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<LinearBooleanProblem> |
parser() |
LinearBooleanProblem.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int NUM_VARIABLES_FIELD_NUMBER
public static final int CONSTRAINTS_FIELD_NUMBER
public static final int OBJECTIVE_FIELD_NUMBER
public static final int VAR_NAMES_FIELD_NUMBER
public static final int ASSIGNMENT_FIELD_NUMBER
public static final int ORIGINAL_NUM_VARIABLES_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic boolean hasName()
The name of the problem.
optional string name = 1 [default = ""];hasName in interface LinearBooleanProblemOrBuilderpublic java.lang.String getName()
The name of the problem.
optional string name = 1 [default = ""];getName in interface LinearBooleanProblemOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the problem.
optional string name = 1 [default = ""];getNameBytes in interface LinearBooleanProblemOrBuilderpublic 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;hasNumVariables in interface LinearBooleanProblemOrBuilderpublic 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;getNumVariables in interface LinearBooleanProblemOrBuilderpublic java.util.List<LinearBooleanConstraint> getConstraintsList()
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;getConstraintsList in interface LinearBooleanProblemOrBuilderpublic java.util.List<? extends LinearBooleanConstraintOrBuilder> getConstraintsOrBuilderList()
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;getConstraintsOrBuilderList in interface LinearBooleanProblemOrBuilderpublic int getConstraintsCount()
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;getConstraintsCount in interface LinearBooleanProblemOrBuilderpublic LinearBooleanConstraint getConstraints(int index)
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;getConstraints in interface LinearBooleanProblemOrBuilderpublic LinearBooleanConstraintOrBuilder getConstraintsOrBuilder(int index)
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;getConstraintsOrBuilder in interface LinearBooleanProblemOrBuilderpublic boolean hasObjective()
The objective of the problem. If left empty, we just have a satisfiability problem.
optional .operations_research.sat.LinearObjective objective = 5;hasObjective in interface LinearBooleanProblemOrBuilderpublic LinearObjective getObjective()
The objective of the problem. If left empty, we just have a satisfiability problem.
optional .operations_research.sat.LinearObjective objective = 5;getObjective in interface LinearBooleanProblemOrBuilderpublic LinearObjectiveOrBuilder getObjectiveOrBuilder()
The objective of the problem. If left empty, we just have a satisfiability problem.
optional .operations_research.sat.LinearObjective objective = 5;getObjectiveOrBuilder in interface LinearBooleanProblemOrBuilderpublic com.google.protobuf.ProtocolStringList 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;getVarNamesList in interface LinearBooleanProblemOrBuilderpublic 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;getVarNamesCount in interface LinearBooleanProblemOrBuilderpublic 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;getVarNames in interface LinearBooleanProblemOrBuilderindex - The index of the element to return.public 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;getVarNamesBytes in interface LinearBooleanProblemOrBuilderindex - The index of the value to return.public 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;hasAssignment in interface LinearBooleanProblemOrBuilderpublic 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;getAssignment in interface LinearBooleanProblemOrBuilderpublic 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;getAssignmentOrBuilder in interface LinearBooleanProblemOrBuilderpublic 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;hasOriginalNumVariables in interface LinearBooleanProblemOrBuilderpublic 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;getOriginalNumVariables in interface LinearBooleanProblemOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessagejava.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static LinearBooleanProblem parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LinearBooleanProblem parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LinearBooleanProblem parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LinearBooleanProblem parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LinearBooleanProblem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LinearBooleanProblem parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LinearBooleanProblem parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LinearBooleanProblem parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static LinearBooleanProblem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LinearBooleanProblem parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static LinearBooleanProblem parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LinearBooleanProblem parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic LinearBooleanProblem.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static LinearBooleanProblem.Builder newBuilder()
public static LinearBooleanProblem.Builder newBuilder(LinearBooleanProblem prototype)
public LinearBooleanProblem.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected LinearBooleanProblem.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static LinearBooleanProblem getDefaultInstance()
public static com.google.protobuf.Parser<LinearBooleanProblem> parser()
public com.google.protobuf.Parser<LinearBooleanProblem> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic LinearBooleanProblem getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024. All rights reserved.