Package com.google.ortools.sat
Class CpModelProto.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CpModelProto.Builder>
-
- com.google.ortools.sat.CpModelProto.Builder
-
- All Implemented Interfaces:
CpModelProtoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- CpModelProto
public static final class CpModelProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CpModelProto.Builder> implements CpModelProtoOrBuilder
A constraint programming problem.
Protobuf typeoperations_research.sat.CpModelProto
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CpModelProto.BuilderaddAllAssumptions(java.lang.Iterable<? extends java.lang.Integer> values)A list of literals.CpModelProto.BuilderaddAllConstraints(java.lang.Iterable<? extends ConstraintProto> values)repeated .operations_research.sat.ConstraintProto constraints = 3;CpModelProto.BuilderaddAllSearchStrategy(java.lang.Iterable<? extends DecisionStrategyProto> values)Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.CpModelProto.BuilderaddAllVariables(java.lang.Iterable<? extends IntegerVariableProto> values)The associated Protos should be referred by their index in these fields.CpModelProto.BuilderaddAssumptions(int value)A list of literals.CpModelProto.BuilderaddConstraints(int index, ConstraintProto value)repeated .operations_research.sat.ConstraintProto constraints = 3;CpModelProto.BuilderaddConstraints(int index, ConstraintProto.Builder builderForValue)repeated .operations_research.sat.ConstraintProto constraints = 3;CpModelProto.BuilderaddConstraints(ConstraintProto value)repeated .operations_research.sat.ConstraintProto constraints = 3;CpModelProto.BuilderaddConstraints(ConstraintProto.Builder builderForValue)repeated .operations_research.sat.ConstraintProto constraints = 3;ConstraintProto.BuilderaddConstraintsBuilder()repeated .operations_research.sat.ConstraintProto constraints = 3;ConstraintProto.BuilderaddConstraintsBuilder(int index)repeated .operations_research.sat.ConstraintProto constraints = 3;CpModelProto.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CpModelProto.BuilderaddSearchStrategy(int index, DecisionStrategyProto value)Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.CpModelProto.BuilderaddSearchStrategy(int index, DecisionStrategyProto.Builder builderForValue)Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.CpModelProto.BuilderaddSearchStrategy(DecisionStrategyProto value)Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.CpModelProto.BuilderaddSearchStrategy(DecisionStrategyProto.Builder builderForValue)Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.DecisionStrategyProto.BuilderaddSearchStrategyBuilder()Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.DecisionStrategyProto.BuilderaddSearchStrategyBuilder(int index)Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.CpModelProto.BuilderaddVariables(int index, IntegerVariableProto value)The associated Protos should be referred by their index in these fields.CpModelProto.BuilderaddVariables(int index, IntegerVariableProto.Builder builderForValue)The associated Protos should be referred by their index in these fields.CpModelProto.BuilderaddVariables(IntegerVariableProto value)The associated Protos should be referred by their index in these fields.CpModelProto.BuilderaddVariables(IntegerVariableProto.Builder builderForValue)The associated Protos should be referred by their index in these fields.IntegerVariableProto.BuilderaddVariablesBuilder()The associated Protos should be referred by their index in these fields.IntegerVariableProto.BuilderaddVariablesBuilder(int index)The associated Protos should be referred by their index in these fields.CpModelProtobuild()CpModelProtobuildPartial()CpModelProto.Builderclear()CpModelProto.BuilderclearAssumptions()A list of literals.CpModelProto.BuilderclearConstraints()repeated .operations_research.sat.ConstraintProto constraints = 3;CpModelProto.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CpModelProto.BuilderclearFloatingPointObjective()Advanced usage.CpModelProto.BuilderclearName()For debug/logging only.CpModelProto.BuilderclearObjective()The objective to minimize.CpModelProto.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CpModelProto.BuilderclearSearchStrategy()Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.CpModelProto.BuilderclearSolutionHint()Solution hint.CpModelProto.BuilderclearSymmetry()For now, this is not meant to be filled by a client writing a model, but by our preprocessing step.CpModelProto.BuilderclearVariables()The associated Protos should be referred by their index in these fields.CpModelProto.Builderclone()intgetAssumptions(int index)A list of literals.intgetAssumptionsCount()A list of literals.java.util.List<java.lang.Integer>getAssumptionsList()A list of literals.ConstraintProtogetConstraints(int index)repeated .operations_research.sat.ConstraintProto constraints = 3;ConstraintProto.BuildergetConstraintsBuilder(int index)repeated .operations_research.sat.ConstraintProto constraints = 3;java.util.List<ConstraintProto.Builder>getConstraintsBuilderList()repeated .operations_research.sat.ConstraintProto constraints = 3;intgetConstraintsCount()repeated .operations_research.sat.ConstraintProto constraints = 3;java.util.List<ConstraintProto>getConstraintsList()repeated .operations_research.sat.ConstraintProto constraints = 3;ConstraintProtoOrBuildergetConstraintsOrBuilder(int index)repeated .operations_research.sat.ConstraintProto constraints = 3;java.util.List<? extends ConstraintProtoOrBuilder>getConstraintsOrBuilderList()repeated .operations_research.sat.ConstraintProto constraints = 3;CpModelProtogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()FloatObjectiveProtogetFloatingPointObjective()Advanced usage.FloatObjectiveProto.BuildergetFloatingPointObjectiveBuilder()Advanced usage.FloatObjectiveProtoOrBuildergetFloatingPointObjectiveOrBuilder()Advanced usage.java.lang.StringgetName()For debug/logging only.com.google.protobuf.ByteStringgetNameBytes()For debug/logging only.CpObjectiveProtogetObjective()The objective to minimize.CpObjectiveProto.BuildergetObjectiveBuilder()The objective to minimize.CpObjectiveProtoOrBuildergetObjectiveOrBuilder()The objective to minimize.DecisionStrategyProtogetSearchStrategy(int index)Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.DecisionStrategyProto.BuildergetSearchStrategyBuilder(int index)Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.java.util.List<DecisionStrategyProto.Builder>getSearchStrategyBuilderList()Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.intgetSearchStrategyCount()Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.java.util.List<DecisionStrategyProto>getSearchStrategyList()Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.DecisionStrategyProtoOrBuildergetSearchStrategyOrBuilder(int index)Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.java.util.List<? extends DecisionStrategyProtoOrBuilder>getSearchStrategyOrBuilderList()Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.PartialVariableAssignmentgetSolutionHint()Solution hint.PartialVariableAssignment.BuildergetSolutionHintBuilder()Solution hint.PartialVariableAssignmentOrBuildergetSolutionHintOrBuilder()Solution hint.SymmetryProtogetSymmetry()For now, this is not meant to be filled by a client writing a model, but by our preprocessing step.SymmetryProto.BuildergetSymmetryBuilder()For now, this is not meant to be filled by a client writing a model, but by our preprocessing step.SymmetryProtoOrBuildergetSymmetryOrBuilder()For now, this is not meant to be filled by a client writing a model, but by our preprocessing step.IntegerVariableProtogetVariables(int index)The associated Protos should be referred by their index in these fields.IntegerVariableProto.BuildergetVariablesBuilder(int index)The associated Protos should be referred by their index in these fields.java.util.List<IntegerVariableProto.Builder>getVariablesBuilderList()The associated Protos should be referred by their index in these fields.intgetVariablesCount()The associated Protos should be referred by their index in these fields.java.util.List<IntegerVariableProto>getVariablesList()The associated Protos should be referred by their index in these fields.IntegerVariableProtoOrBuildergetVariablesOrBuilder(int index)The associated Protos should be referred by their index in these fields.java.util.List<? extends IntegerVariableProtoOrBuilder>getVariablesOrBuilderList()The associated Protos should be referred by their index in these fields.booleanhasFloatingPointObjective()Advanced usage.booleanhasObjective()The objective to minimize.booleanhasSolutionHint()Solution hint.booleanhasSymmetry()For now, this is not meant to be filled by a client writing a model, but by our preprocessing step.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CpModelProto.BuildermergeFloatingPointObjective(FloatObjectiveProto value)Advanced usage.CpModelProto.BuildermergeFrom(CpModelProto other)CpModelProto.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CpModelProto.BuildermergeFrom(com.google.protobuf.Message other)CpModelProto.BuildermergeObjective(CpObjectiveProto value)The objective to minimize.CpModelProto.BuildermergeSolutionHint(PartialVariableAssignment value)Solution hint.CpModelProto.BuildermergeSymmetry(SymmetryProto value)For now, this is not meant to be filled by a client writing a model, but by our preprocessing step.CpModelProto.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CpModelProto.BuilderremoveConstraints(int index)repeated .operations_research.sat.ConstraintProto constraints = 3;CpModelProto.BuilderremoveSearchStrategy(int index)Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.CpModelProto.BuilderremoveVariables(int index)The associated Protos should be referred by their index in these fields.CpModelProto.BuildersetAssumptions(int index, int value)A list of literals.CpModelProto.BuildersetConstraints(int index, ConstraintProto value)repeated .operations_research.sat.ConstraintProto constraints = 3;CpModelProto.BuildersetConstraints(int index, ConstraintProto.Builder builderForValue)repeated .operations_research.sat.ConstraintProto constraints = 3;CpModelProto.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CpModelProto.BuildersetFloatingPointObjective(FloatObjectiveProto value)Advanced usage.CpModelProto.BuildersetFloatingPointObjective(FloatObjectiveProto.Builder builderForValue)Advanced usage.CpModelProto.BuildersetName(java.lang.String value)For debug/logging only.CpModelProto.BuildersetNameBytes(com.google.protobuf.ByteString value)For debug/logging only.CpModelProto.BuildersetObjective(CpObjectiveProto value)The objective to minimize.CpModelProto.BuildersetObjective(CpObjectiveProto.Builder builderForValue)The objective to minimize.CpModelProto.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)CpModelProto.BuildersetSearchStrategy(int index, DecisionStrategyProto value)Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.CpModelProto.BuildersetSearchStrategy(int index, DecisionStrategyProto.Builder builderForValue)Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.CpModelProto.BuildersetSolutionHint(PartialVariableAssignment value)Solution hint.CpModelProto.BuildersetSolutionHint(PartialVariableAssignment.Builder builderForValue)Solution hint.CpModelProto.BuildersetSymmetry(SymmetryProto value)For now, this is not meant to be filled by a client writing a model, but by our preprocessing step.CpModelProto.BuildersetSymmetry(SymmetryProto.Builder builderForValue)For now, this is not meant to be filled by a client writing a model, but by our preprocessing step.CpModelProto.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CpModelProto.BuildersetVariables(int index, IntegerVariableProto value)The associated Protos should be referred by their index in these fields.CpModelProto.BuildersetVariables(int index, IntegerVariableProto.Builder builderForValue)The associated Protos should be referred by their index in these fields.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CpModelProto.Builder>
-
clear
public CpModelProto.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CpModelProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CpModelProto.Builder>
-
getDefaultInstanceForType
public CpModelProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CpModelProto build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CpModelProto buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CpModelProto.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CpModelProto.Builder>
-
setField
public CpModelProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CpModelProto.Builder>
-
clearField
public CpModelProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CpModelProto.Builder>
-
clearOneof
public CpModelProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CpModelProto.Builder>
-
setRepeatedField
public CpModelProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CpModelProto.Builder>
-
addRepeatedField
public CpModelProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CpModelProto.Builder>
-
mergeFrom
public CpModelProto.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CpModelProto.Builder>
-
mergeFrom
public CpModelProto.Builder mergeFrom(CpModelProto other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CpModelProto.Builder>
-
mergeFrom
public CpModelProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CpModelProto.Builder>- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
For debug/logging only. Can be empty.
string name = 1;- Specified by:
getNamein interfaceCpModelProtoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
For debug/logging only. Can be empty.
string name = 1;- Specified by:
getNameBytesin interfaceCpModelProtoOrBuilder- Returns:
- The bytes for name.
-
setName
public CpModelProto.Builder setName(java.lang.String value)
For debug/logging only. Can be empty.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public CpModelProto.Builder clearName()
For debug/logging only. Can be empty.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public CpModelProto.Builder setNameBytes(com.google.protobuf.ByteString value)
For debug/logging only. Can be empty.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getVariablesList
public java.util.List<IntegerVariableProto> getVariablesList()
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;- Specified by:
getVariablesListin interfaceCpModelProtoOrBuilder
-
getVariablesCount
public int getVariablesCount()
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;- Specified by:
getVariablesCountin interfaceCpModelProtoOrBuilder
-
getVariables
public IntegerVariableProto getVariables(int index)
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;- Specified by:
getVariablesin interfaceCpModelProtoOrBuilder
-
setVariables
public CpModelProto.Builder setVariables(int index, IntegerVariableProto value)
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
-
setVariables
public CpModelProto.Builder setVariables(int index, IntegerVariableProto.Builder builderForValue)
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
-
addVariables
public CpModelProto.Builder addVariables(IntegerVariableProto value)
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
-
addVariables
public CpModelProto.Builder addVariables(int index, IntegerVariableProto value)
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
-
addVariables
public CpModelProto.Builder addVariables(IntegerVariableProto.Builder builderForValue)
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
-
addVariables
public CpModelProto.Builder addVariables(int index, IntegerVariableProto.Builder builderForValue)
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
-
addAllVariables
public CpModelProto.Builder addAllVariables(java.lang.Iterable<? extends IntegerVariableProto> values)
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
-
clearVariables
public CpModelProto.Builder clearVariables()
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
-
removeVariables
public CpModelProto.Builder removeVariables(int index)
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
-
getVariablesBuilder
public IntegerVariableProto.Builder getVariablesBuilder(int index)
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
-
getVariablesOrBuilder
public IntegerVariableProtoOrBuilder getVariablesOrBuilder(int index)
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;- Specified by:
getVariablesOrBuilderin interfaceCpModelProtoOrBuilder
-
getVariablesOrBuilderList
public java.util.List<? extends IntegerVariableProtoOrBuilder> getVariablesOrBuilderList()
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;- Specified by:
getVariablesOrBuilderListin interfaceCpModelProtoOrBuilder
-
addVariablesBuilder
public IntegerVariableProto.Builder addVariablesBuilder()
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
-
addVariablesBuilder
public IntegerVariableProto.Builder addVariablesBuilder(int index)
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
-
getVariablesBuilderList
public java.util.List<IntegerVariableProto.Builder> getVariablesBuilderList()
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
-
getConstraintsList
public java.util.List<ConstraintProto> getConstraintsList()
repeated .operations_research.sat.ConstraintProto constraints = 3;- Specified by:
getConstraintsListin interfaceCpModelProtoOrBuilder
-
getConstraintsCount
public int getConstraintsCount()
repeated .operations_research.sat.ConstraintProto constraints = 3;- Specified by:
getConstraintsCountin interfaceCpModelProtoOrBuilder
-
getConstraints
public ConstraintProto getConstraints(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;- Specified by:
getConstraintsin interfaceCpModelProtoOrBuilder
-
setConstraints
public CpModelProto.Builder setConstraints(int index, ConstraintProto value)
repeated .operations_research.sat.ConstraintProto constraints = 3;
-
setConstraints
public CpModelProto.Builder setConstraints(int index, ConstraintProto.Builder builderForValue)
repeated .operations_research.sat.ConstraintProto constraints = 3;
-
addConstraints
public CpModelProto.Builder addConstraints(ConstraintProto value)
repeated .operations_research.sat.ConstraintProto constraints = 3;
-
addConstraints
public CpModelProto.Builder addConstraints(int index, ConstraintProto value)
repeated .operations_research.sat.ConstraintProto constraints = 3;
-
addConstraints
public CpModelProto.Builder addConstraints(ConstraintProto.Builder builderForValue)
repeated .operations_research.sat.ConstraintProto constraints = 3;
-
addConstraints
public CpModelProto.Builder addConstraints(int index, ConstraintProto.Builder builderForValue)
repeated .operations_research.sat.ConstraintProto constraints = 3;
-
addAllConstraints
public CpModelProto.Builder addAllConstraints(java.lang.Iterable<? extends ConstraintProto> values)
repeated .operations_research.sat.ConstraintProto constraints = 3;
-
clearConstraints
public CpModelProto.Builder clearConstraints()
repeated .operations_research.sat.ConstraintProto constraints = 3;
-
removeConstraints
public CpModelProto.Builder removeConstraints(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;
-
getConstraintsBuilder
public ConstraintProto.Builder getConstraintsBuilder(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;
-
getConstraintsOrBuilder
public ConstraintProtoOrBuilder getConstraintsOrBuilder(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;- Specified by:
getConstraintsOrBuilderin interfaceCpModelProtoOrBuilder
-
getConstraintsOrBuilderList
public java.util.List<? extends ConstraintProtoOrBuilder> getConstraintsOrBuilderList()
repeated .operations_research.sat.ConstraintProto constraints = 3;- Specified by:
getConstraintsOrBuilderListin interfaceCpModelProtoOrBuilder
-
addConstraintsBuilder
public ConstraintProto.Builder addConstraintsBuilder()
repeated .operations_research.sat.ConstraintProto constraints = 3;
-
addConstraintsBuilder
public ConstraintProto.Builder addConstraintsBuilder(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;
-
getConstraintsBuilderList
public java.util.List<ConstraintProto.Builder> getConstraintsBuilderList()
repeated .operations_research.sat.ConstraintProto constraints = 3;
-
hasObjective
public boolean hasObjective()
The objective to minimize. Can be empty for pure decision problems.
.operations_research.sat.CpObjectiveProto objective = 4;- Specified by:
hasObjectivein interfaceCpModelProtoOrBuilder- Returns:
- Whether the objective field is set.
-
getObjective
public CpObjectiveProto getObjective()
The objective to minimize. Can be empty for pure decision problems.
.operations_research.sat.CpObjectiveProto objective = 4;- Specified by:
getObjectivein interfaceCpModelProtoOrBuilder- Returns:
- The objective.
-
setObjective
public CpModelProto.Builder setObjective(CpObjectiveProto value)
The objective to minimize. Can be empty for pure decision problems.
.operations_research.sat.CpObjectiveProto objective = 4;
-
setObjective
public CpModelProto.Builder setObjective(CpObjectiveProto.Builder builderForValue)
The objective to minimize. Can be empty for pure decision problems.
.operations_research.sat.CpObjectiveProto objective = 4;
-
mergeObjective
public CpModelProto.Builder mergeObjective(CpObjectiveProto value)
The objective to minimize. Can be empty for pure decision problems.
.operations_research.sat.CpObjectiveProto objective = 4;
-
clearObjective
public CpModelProto.Builder clearObjective()
The objective to minimize. Can be empty for pure decision problems.
.operations_research.sat.CpObjectiveProto objective = 4;
-
getObjectiveBuilder
public CpObjectiveProto.Builder getObjectiveBuilder()
The objective to minimize. Can be empty for pure decision problems.
.operations_research.sat.CpObjectiveProto objective = 4;
-
getObjectiveOrBuilder
public CpObjectiveProtoOrBuilder getObjectiveOrBuilder()
The objective to minimize. Can be empty for pure decision problems.
.operations_research.sat.CpObjectiveProto objective = 4;- Specified by:
getObjectiveOrBuilderin interfaceCpModelProtoOrBuilder
-
hasFloatingPointObjective
public boolean hasFloatingPointObjective()
Advanced usage. It is invalid to have both an objective and a floating point objective. The objective of the model, in floating point format. The solver will automatically scale this to integer during expansion and thus convert it to a normal CpObjectiveProto. See the mip* parameters to control how this is scaled. In most situation the precision will be good enough, but you can see the logs to see what are the precision guaranteed when this is converted to a fixed point representation. Note that even if the precision is bad, the returned objective_value and best_objective_bound will be computed correctly. So at the end of the solve you can check the gap if you only want precise optimal.
.operations_research.sat.FloatObjectiveProto floating_point_objective = 9;- Specified by:
hasFloatingPointObjectivein interfaceCpModelProtoOrBuilder- Returns:
- Whether the floatingPointObjective field is set.
-
getFloatingPointObjective
public FloatObjectiveProto getFloatingPointObjective()
Advanced usage. It is invalid to have both an objective and a floating point objective. The objective of the model, in floating point format. The solver will automatically scale this to integer during expansion and thus convert it to a normal CpObjectiveProto. See the mip* parameters to control how this is scaled. In most situation the precision will be good enough, but you can see the logs to see what are the precision guaranteed when this is converted to a fixed point representation. Note that even if the precision is bad, the returned objective_value and best_objective_bound will be computed correctly. So at the end of the solve you can check the gap if you only want precise optimal.
.operations_research.sat.FloatObjectiveProto floating_point_objective = 9;- Specified by:
getFloatingPointObjectivein interfaceCpModelProtoOrBuilder- Returns:
- The floatingPointObjective.
-
setFloatingPointObjective
public CpModelProto.Builder setFloatingPointObjective(FloatObjectiveProto value)
Advanced usage. It is invalid to have both an objective and a floating point objective. The objective of the model, in floating point format. The solver will automatically scale this to integer during expansion and thus convert it to a normal CpObjectiveProto. See the mip* parameters to control how this is scaled. In most situation the precision will be good enough, but you can see the logs to see what are the precision guaranteed when this is converted to a fixed point representation. Note that even if the precision is bad, the returned objective_value and best_objective_bound will be computed correctly. So at the end of the solve you can check the gap if you only want precise optimal.
.operations_research.sat.FloatObjectiveProto floating_point_objective = 9;
-
setFloatingPointObjective
public CpModelProto.Builder setFloatingPointObjective(FloatObjectiveProto.Builder builderForValue)
Advanced usage. It is invalid to have both an objective and a floating point objective. The objective of the model, in floating point format. The solver will automatically scale this to integer during expansion and thus convert it to a normal CpObjectiveProto. See the mip* parameters to control how this is scaled. In most situation the precision will be good enough, but you can see the logs to see what are the precision guaranteed when this is converted to a fixed point representation. Note that even if the precision is bad, the returned objective_value and best_objective_bound will be computed correctly. So at the end of the solve you can check the gap if you only want precise optimal.
.operations_research.sat.FloatObjectiveProto floating_point_objective = 9;
-
mergeFloatingPointObjective
public CpModelProto.Builder mergeFloatingPointObjective(FloatObjectiveProto value)
Advanced usage. It is invalid to have both an objective and a floating point objective. The objective of the model, in floating point format. The solver will automatically scale this to integer during expansion and thus convert it to a normal CpObjectiveProto. See the mip* parameters to control how this is scaled. In most situation the precision will be good enough, but you can see the logs to see what are the precision guaranteed when this is converted to a fixed point representation. Note that even if the precision is bad, the returned objective_value and best_objective_bound will be computed correctly. So at the end of the solve you can check the gap if you only want precise optimal.
.operations_research.sat.FloatObjectiveProto floating_point_objective = 9;
-
clearFloatingPointObjective
public CpModelProto.Builder clearFloatingPointObjective()
Advanced usage. It is invalid to have both an objective and a floating point objective. The objective of the model, in floating point format. The solver will automatically scale this to integer during expansion and thus convert it to a normal CpObjectiveProto. See the mip* parameters to control how this is scaled. In most situation the precision will be good enough, but you can see the logs to see what are the precision guaranteed when this is converted to a fixed point representation. Note that even if the precision is bad, the returned objective_value and best_objective_bound will be computed correctly. So at the end of the solve you can check the gap if you only want precise optimal.
.operations_research.sat.FloatObjectiveProto floating_point_objective = 9;
-
getFloatingPointObjectiveBuilder
public FloatObjectiveProto.Builder getFloatingPointObjectiveBuilder()
Advanced usage. It is invalid to have both an objective and a floating point objective. The objective of the model, in floating point format. The solver will automatically scale this to integer during expansion and thus convert it to a normal CpObjectiveProto. See the mip* parameters to control how this is scaled. In most situation the precision will be good enough, but you can see the logs to see what are the precision guaranteed when this is converted to a fixed point representation. Note that even if the precision is bad, the returned objective_value and best_objective_bound will be computed correctly. So at the end of the solve you can check the gap if you only want precise optimal.
.operations_research.sat.FloatObjectiveProto floating_point_objective = 9;
-
getFloatingPointObjectiveOrBuilder
public FloatObjectiveProtoOrBuilder getFloatingPointObjectiveOrBuilder()
Advanced usage. It is invalid to have both an objective and a floating point objective. The objective of the model, in floating point format. The solver will automatically scale this to integer during expansion and thus convert it to a normal CpObjectiveProto. See the mip* parameters to control how this is scaled. In most situation the precision will be good enough, but you can see the logs to see what are the precision guaranteed when this is converted to a fixed point representation. Note that even if the precision is bad, the returned objective_value and best_objective_bound will be computed correctly. So at the end of the solve you can check the gap if you only want precise optimal.
.operations_research.sat.FloatObjectiveProto floating_point_objective = 9;- Specified by:
getFloatingPointObjectiveOrBuilderin interfaceCpModelProtoOrBuilder
-
getSearchStrategyList
public java.util.List<DecisionStrategyProto> getSearchStrategyList()
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;- Specified by:
getSearchStrategyListin interfaceCpModelProtoOrBuilder
-
getSearchStrategyCount
public int getSearchStrategyCount()
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;- Specified by:
getSearchStrategyCountin interfaceCpModelProtoOrBuilder
-
getSearchStrategy
public DecisionStrategyProto getSearchStrategy(int index)
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;- Specified by:
getSearchStrategyin interfaceCpModelProtoOrBuilder
-
setSearchStrategy
public CpModelProto.Builder setSearchStrategy(int index, DecisionStrategyProto value)
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
-
setSearchStrategy
public CpModelProto.Builder setSearchStrategy(int index, DecisionStrategyProto.Builder builderForValue)
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
-
addSearchStrategy
public CpModelProto.Builder addSearchStrategy(DecisionStrategyProto value)
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
-
addSearchStrategy
public CpModelProto.Builder addSearchStrategy(int index, DecisionStrategyProto value)
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
-
addSearchStrategy
public CpModelProto.Builder addSearchStrategy(DecisionStrategyProto.Builder builderForValue)
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
-
addSearchStrategy
public CpModelProto.Builder addSearchStrategy(int index, DecisionStrategyProto.Builder builderForValue)
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
-
addAllSearchStrategy
public CpModelProto.Builder addAllSearchStrategy(java.lang.Iterable<? extends DecisionStrategyProto> values)
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
-
clearSearchStrategy
public CpModelProto.Builder clearSearchStrategy()
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
-
removeSearchStrategy
public CpModelProto.Builder removeSearchStrategy(int index)
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
-
getSearchStrategyBuilder
public DecisionStrategyProto.Builder getSearchStrategyBuilder(int index)
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
-
getSearchStrategyOrBuilder
public DecisionStrategyProtoOrBuilder getSearchStrategyOrBuilder(int index)
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;- Specified by:
getSearchStrategyOrBuilderin interfaceCpModelProtoOrBuilder
-
getSearchStrategyOrBuilderList
public java.util.List<? extends DecisionStrategyProtoOrBuilder> getSearchStrategyOrBuilderList()
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;- Specified by:
getSearchStrategyOrBuilderListin interfaceCpModelProtoOrBuilder
-
addSearchStrategyBuilder
public DecisionStrategyProto.Builder addSearchStrategyBuilder()
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
-
addSearchStrategyBuilder
public DecisionStrategyProto.Builder addSearchStrategyBuilder(int index)
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
-
getSearchStrategyBuilderList
public java.util.List<DecisionStrategyProto.Builder> getSearchStrategyBuilderList()
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
-
hasSolutionHint
public boolean hasSolutionHint()
Solution hint. If a feasible or almost-feasible solution to the problem is already known, it may be helpful to pass it to the solver so that it can be used. The solver will try to use this information to create its initial feasible solution. Note that it may not always be faster to give a hint like this to the solver. There is also no guarantee that the solver will use this hint or try to return a solution "close" to this assignment in case of multiple optimal solutions.
.operations_research.sat.PartialVariableAssignment solution_hint = 6;- Specified by:
hasSolutionHintin interfaceCpModelProtoOrBuilder- Returns:
- Whether the solutionHint field is set.
-
getSolutionHint
public PartialVariableAssignment getSolutionHint()
Solution hint. If a feasible or almost-feasible solution to the problem is already known, it may be helpful to pass it to the solver so that it can be used. The solver will try to use this information to create its initial feasible solution. Note that it may not always be faster to give a hint like this to the solver. There is also no guarantee that the solver will use this hint or try to return a solution "close" to this assignment in case of multiple optimal solutions.
.operations_research.sat.PartialVariableAssignment solution_hint = 6;- Specified by:
getSolutionHintin interfaceCpModelProtoOrBuilder- Returns:
- The solutionHint.
-
setSolutionHint
public CpModelProto.Builder setSolutionHint(PartialVariableAssignment value)
Solution hint. If a feasible or almost-feasible solution to the problem is already known, it may be helpful to pass it to the solver so that it can be used. The solver will try to use this information to create its initial feasible solution. Note that it may not always be faster to give a hint like this to the solver. There is also no guarantee that the solver will use this hint or try to return a solution "close" to this assignment in case of multiple optimal solutions.
.operations_research.sat.PartialVariableAssignment solution_hint = 6;
-
setSolutionHint
public CpModelProto.Builder setSolutionHint(PartialVariableAssignment.Builder builderForValue)
Solution hint. If a feasible or almost-feasible solution to the problem is already known, it may be helpful to pass it to the solver so that it can be used. The solver will try to use this information to create its initial feasible solution. Note that it may not always be faster to give a hint like this to the solver. There is also no guarantee that the solver will use this hint or try to return a solution "close" to this assignment in case of multiple optimal solutions.
.operations_research.sat.PartialVariableAssignment solution_hint = 6;
-
mergeSolutionHint
public CpModelProto.Builder mergeSolutionHint(PartialVariableAssignment value)
Solution hint. If a feasible or almost-feasible solution to the problem is already known, it may be helpful to pass it to the solver so that it can be used. The solver will try to use this information to create its initial feasible solution. Note that it may not always be faster to give a hint like this to the solver. There is also no guarantee that the solver will use this hint or try to return a solution "close" to this assignment in case of multiple optimal solutions.
.operations_research.sat.PartialVariableAssignment solution_hint = 6;
-
clearSolutionHint
public CpModelProto.Builder clearSolutionHint()
Solution hint. If a feasible or almost-feasible solution to the problem is already known, it may be helpful to pass it to the solver so that it can be used. The solver will try to use this information to create its initial feasible solution. Note that it may not always be faster to give a hint like this to the solver. There is also no guarantee that the solver will use this hint or try to return a solution "close" to this assignment in case of multiple optimal solutions.
.operations_research.sat.PartialVariableAssignment solution_hint = 6;
-
getSolutionHintBuilder
public PartialVariableAssignment.Builder getSolutionHintBuilder()
Solution hint. If a feasible or almost-feasible solution to the problem is already known, it may be helpful to pass it to the solver so that it can be used. The solver will try to use this information to create its initial feasible solution. Note that it may not always be faster to give a hint like this to the solver. There is also no guarantee that the solver will use this hint or try to return a solution "close" to this assignment in case of multiple optimal solutions.
.operations_research.sat.PartialVariableAssignment solution_hint = 6;
-
getSolutionHintOrBuilder
public PartialVariableAssignmentOrBuilder getSolutionHintOrBuilder()
Solution hint. If a feasible or almost-feasible solution to the problem is already known, it may be helpful to pass it to the solver so that it can be used. The solver will try to use this information to create its initial feasible solution. Note that it may not always be faster to give a hint like this to the solver. There is also no guarantee that the solver will use this hint or try to return a solution "close" to this assignment in case of multiple optimal solutions.
.operations_research.sat.PartialVariableAssignment solution_hint = 6;- Specified by:
getSolutionHintOrBuilderin interfaceCpModelProtoOrBuilder
-
getAssumptionsList
public java.util.List<java.lang.Integer> getAssumptionsList()
A list of literals. The model will be solved assuming all these literals are true. Compared to just fixing the domain of these literals, using this mechanism is slower but allows in case the model is INFEASIBLE to get a potentially small subset of them that can be used to explain the infeasibility. Think (IIS), except when you are only concerned by the provided assumptions. This is powerful as it allows to group a set of logically related constraint under only one enforcement literal which can potentially give you a good and interpretable explanation for infeasiblity. Such infeasibility explanation will be available in the sufficient_assumptions_for_infeasibility response field.
repeated int32 assumptions = 7;- Specified by:
getAssumptionsListin interfaceCpModelProtoOrBuilder- Returns:
- A list containing the assumptions.
-
getAssumptionsCount
public int getAssumptionsCount()
A list of literals. The model will be solved assuming all these literals are true. Compared to just fixing the domain of these literals, using this mechanism is slower but allows in case the model is INFEASIBLE to get a potentially small subset of them that can be used to explain the infeasibility. Think (IIS), except when you are only concerned by the provided assumptions. This is powerful as it allows to group a set of logically related constraint under only one enforcement literal which can potentially give you a good and interpretable explanation for infeasiblity. Such infeasibility explanation will be available in the sufficient_assumptions_for_infeasibility response field.
repeated int32 assumptions = 7;- Specified by:
getAssumptionsCountin interfaceCpModelProtoOrBuilder- Returns:
- The count of assumptions.
-
getAssumptions
public int getAssumptions(int index)
A list of literals. The model will be solved assuming all these literals are true. Compared to just fixing the domain of these literals, using this mechanism is slower but allows in case the model is INFEASIBLE to get a potentially small subset of them that can be used to explain the infeasibility. Think (IIS), except when you are only concerned by the provided assumptions. This is powerful as it allows to group a set of logically related constraint under only one enforcement literal which can potentially give you a good and interpretable explanation for infeasiblity. Such infeasibility explanation will be available in the sufficient_assumptions_for_infeasibility response field.
repeated int32 assumptions = 7;- Specified by:
getAssumptionsin interfaceCpModelProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The assumptions at the given index.
-
setAssumptions
public CpModelProto.Builder setAssumptions(int index, int value)
A list of literals. The model will be solved assuming all these literals are true. Compared to just fixing the domain of these literals, using this mechanism is slower but allows in case the model is INFEASIBLE to get a potentially small subset of them that can be used to explain the infeasibility. Think (IIS), except when you are only concerned by the provided assumptions. This is powerful as it allows to group a set of logically related constraint under only one enforcement literal which can potentially give you a good and interpretable explanation for infeasiblity. Such infeasibility explanation will be available in the sufficient_assumptions_for_infeasibility response field.
repeated int32 assumptions = 7;- Parameters:
index- The index to set the value at.value- The assumptions to set.- Returns:
- This builder for chaining.
-
addAssumptions
public CpModelProto.Builder addAssumptions(int value)
A list of literals. The model will be solved assuming all these literals are true. Compared to just fixing the domain of these literals, using this mechanism is slower but allows in case the model is INFEASIBLE to get a potentially small subset of them that can be used to explain the infeasibility. Think (IIS), except when you are only concerned by the provided assumptions. This is powerful as it allows to group a set of logically related constraint under only one enforcement literal which can potentially give you a good and interpretable explanation for infeasiblity. Such infeasibility explanation will be available in the sufficient_assumptions_for_infeasibility response field.
repeated int32 assumptions = 7;- Parameters:
value- The assumptions to add.- Returns:
- This builder for chaining.
-
addAllAssumptions
public CpModelProto.Builder addAllAssumptions(java.lang.Iterable<? extends java.lang.Integer> values)
A list of literals. The model will be solved assuming all these literals are true. Compared to just fixing the domain of these literals, using this mechanism is slower but allows in case the model is INFEASIBLE to get a potentially small subset of them that can be used to explain the infeasibility. Think (IIS), except when you are only concerned by the provided assumptions. This is powerful as it allows to group a set of logically related constraint under only one enforcement literal which can potentially give you a good and interpretable explanation for infeasiblity. Such infeasibility explanation will be available in the sufficient_assumptions_for_infeasibility response field.
repeated int32 assumptions = 7;- Parameters:
values- The assumptions to add.- Returns:
- This builder for chaining.
-
clearAssumptions
public CpModelProto.Builder clearAssumptions()
A list of literals. The model will be solved assuming all these literals are true. Compared to just fixing the domain of these literals, using this mechanism is slower but allows in case the model is INFEASIBLE to get a potentially small subset of them that can be used to explain the infeasibility. Think (IIS), except when you are only concerned by the provided assumptions. This is powerful as it allows to group a set of logically related constraint under only one enforcement literal which can potentially give you a good and interpretable explanation for infeasiblity. Such infeasibility explanation will be available in the sufficient_assumptions_for_infeasibility response field.
repeated int32 assumptions = 7;- Returns:
- This builder for chaining.
-
hasSymmetry
public boolean hasSymmetry()
For now, this is not meant to be filled by a client writing a model, but by our preprocessing step. Information about the symmetries of the feasible solution space. These usually leaves the objective invariant.
.operations_research.sat.SymmetryProto symmetry = 8;- Specified by:
hasSymmetryin interfaceCpModelProtoOrBuilder- Returns:
- Whether the symmetry field is set.
-
getSymmetry
public SymmetryProto getSymmetry()
For now, this is not meant to be filled by a client writing a model, but by our preprocessing step. Information about the symmetries of the feasible solution space. These usually leaves the objective invariant.
.operations_research.sat.SymmetryProto symmetry = 8;- Specified by:
getSymmetryin interfaceCpModelProtoOrBuilder- Returns:
- The symmetry.
-
setSymmetry
public CpModelProto.Builder setSymmetry(SymmetryProto value)
For now, this is not meant to be filled by a client writing a model, but by our preprocessing step. Information about the symmetries of the feasible solution space. These usually leaves the objective invariant.
.operations_research.sat.SymmetryProto symmetry = 8;
-
setSymmetry
public CpModelProto.Builder setSymmetry(SymmetryProto.Builder builderForValue)
For now, this is not meant to be filled by a client writing a model, but by our preprocessing step. Information about the symmetries of the feasible solution space. These usually leaves the objective invariant.
.operations_research.sat.SymmetryProto symmetry = 8;
-
mergeSymmetry
public CpModelProto.Builder mergeSymmetry(SymmetryProto value)
For now, this is not meant to be filled by a client writing a model, but by our preprocessing step. Information about the symmetries of the feasible solution space. These usually leaves the objective invariant.
.operations_research.sat.SymmetryProto symmetry = 8;
-
clearSymmetry
public CpModelProto.Builder clearSymmetry()
For now, this is not meant to be filled by a client writing a model, but by our preprocessing step. Information about the symmetries of the feasible solution space. These usually leaves the objective invariant.
.operations_research.sat.SymmetryProto symmetry = 8;
-
getSymmetryBuilder
public SymmetryProto.Builder getSymmetryBuilder()
For now, this is not meant to be filled by a client writing a model, but by our preprocessing step. Information about the symmetries of the feasible solution space. These usually leaves the objective invariant.
.operations_research.sat.SymmetryProto symmetry = 8;
-
getSymmetryOrBuilder
public SymmetryProtoOrBuilder getSymmetryOrBuilder()
For now, this is not meant to be filled by a client writing a model, but by our preprocessing step. Information about the symmetries of the feasible solution space. These usually leaves the objective invariant.
.operations_research.sat.SymmetryProto symmetry = 8;- Specified by:
getSymmetryOrBuilderin interfaceCpModelProtoOrBuilder
-
setUnknownFields
public final CpModelProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CpModelProto.Builder>
-
mergeUnknownFields
public final CpModelProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CpModelProto.Builder>
-
-