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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashFields, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessage
public boolean hasName()
The name of the problem.
optional string name = 1 [default = ""];
hasName
in interface LinearBooleanProblemOrBuilder
public java.lang.String getName()
The name of the problem.
optional string name = 1 [default = ""];
getName
in interface LinearBooleanProblemOrBuilder
public com.google.protobuf.ByteString getNameBytes()
The name of the problem.
optional string name = 1 [default = ""];
getNameBytes
in interface LinearBooleanProblemOrBuilder
public 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 LinearBooleanProblemOrBuilder
public 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 LinearBooleanProblemOrBuilder
public java.util.List<LinearBooleanConstraint> getConstraintsList()
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
getConstraintsList
in interface LinearBooleanProblemOrBuilder
public java.util.List<? extends LinearBooleanConstraintOrBuilder> getConstraintsOrBuilderList()
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
getConstraintsOrBuilderList
in interface LinearBooleanProblemOrBuilder
public int getConstraintsCount()
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
getConstraintsCount
in interface LinearBooleanProblemOrBuilder
public LinearBooleanConstraint getConstraints(int index)
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
getConstraints
in interface LinearBooleanProblemOrBuilder
public LinearBooleanConstraintOrBuilder getConstraintsOrBuilder(int index)
The constraints of the problem.
repeated .operations_research.sat.LinearBooleanConstraint constraints = 4;
getConstraintsOrBuilder
in interface LinearBooleanProblemOrBuilder
public 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 LinearBooleanProblemOrBuilder
public 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 LinearBooleanProblemOrBuilder
public 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 LinearBooleanProblemOrBuilder
public 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 LinearBooleanProblemOrBuilder
public 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 LinearBooleanProblemOrBuilder
public 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 LinearBooleanProblemOrBuilder
index
- 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 LinearBooleanProblemOrBuilder
index
- 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 LinearBooleanProblemOrBuilder
public 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 LinearBooleanProblemOrBuilder
public 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 LinearBooleanProblemOrBuilder
public 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 LinearBooleanProblemOrBuilder
public 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 LinearBooleanProblemOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessage
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessage
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static LinearBooleanProblem parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LinearBooleanProblem parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LinearBooleanProblem parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LinearBooleanProblem parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LinearBooleanProblem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LinearBooleanProblem parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LinearBooleanProblem parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LinearBooleanProblem parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LinearBooleanProblem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LinearBooleanProblem parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LinearBooleanProblem parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static LinearBooleanProblem parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public LinearBooleanProblem.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static LinearBooleanProblem.Builder newBuilder()
public static LinearBooleanProblem.Builder newBuilder(LinearBooleanProblem prototype)
public LinearBooleanProblem.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected LinearBooleanProblem.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public static LinearBooleanProblem getDefaultInstance()
public static com.google.protobuf.Parser<LinearBooleanProblem> parser()
public com.google.protobuf.Parser<LinearBooleanProblem> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public LinearBooleanProblem getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2025. All rights reserved.