Package com.google.ortools.bop
Class BopParameters.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BopParameters.Builder>
-
- com.google.ortools.bop.BopParameters.Builder
-
- All Implemented Interfaces:
BopParametersOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- BopParameters
public static final class BopParameters.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BopParameters.Builder> implements BopParametersOrBuilder
Contains the definitions for all the bop algorithm parameters and their default values. NEXT TAG: 42
Protobuf typeoperations_research.bop.BopParameters
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BopParameters.BuilderaddAllSolverOptimizerSets(java.lang.Iterable<? extends BopSolverOptimizerSet> values)List of set of optimizers to be run by the solvers.BopParameters.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)BopParameters.BuilderaddSolverOptimizerSets(int index, BopSolverOptimizerSet value)List of set of optimizers to be run by the solvers.BopParameters.BuilderaddSolverOptimizerSets(int index, BopSolverOptimizerSet.Builder builderForValue)List of set of optimizers to be run by the solvers.BopParameters.BuilderaddSolverOptimizerSets(BopSolverOptimizerSet value)List of set of optimizers to be run by the solvers.BopParameters.BuilderaddSolverOptimizerSets(BopSolverOptimizerSet.Builder builderForValue)List of set of optimizers to be run by the solvers.BopSolverOptimizerSet.BuilderaddSolverOptimizerSetsBuilder()List of set of optimizers to be run by the solvers.BopSolverOptimizerSet.BuilderaddSolverOptimizerSetsBuilder(int index)List of set of optimizers to be run by the solvers.BopParametersbuild()BopParametersbuildPartial()BopParameters.Builderclear()BopParameters.BuilderclearComputeEstimatedImpact()Compute estimated impact at each iteration when true; only once when false.BopParameters.BuilderclearDecomposedProblemMinTimeInSeconds()HACK.BopParameters.BuilderclearDecomposerNumVariablesThreshold()Only try to decompose the problem when the number of variables is greater than the threshold.BopParameters.BuilderclearDefaultSolverOptimizerSets()optional string default_solver_optimizer_sets = 33 [default = "methods:{type:LOCAL_SEARCH } methods:{type:RANDOM_FIRST_SOLUTION } methods:{type:LINEAR_RELAXATION } methods:{type:LP_FIRST_SOLUTION } methods:{type:OBJECTIVE_FIRST_SOLUTION } methods:{type:USER_GUIDED_FIRST_SOLUTION } methods:{type:RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP } methods:{type:RANDOM_VARIABLE_LNS_GUIDED_BY_LP } methods:{type:RELATION_GRAPH_LNS } methods:{type:RELATION_GRAPH_LNS_GUIDED_BY_LP } methods:{type:RANDOM_CONSTRAINT_LNS } methods:{type:RANDOM_VARIABLE_LNS } methods:{type:SAT_CORE_BASED } methods:{type:COMPLETE_LNS } "];BopParameters.BuilderclearExploitSymmetryInSatFirstSolution()If true, find and exploit symmetries in proving satisfiability in the first problem.BopParameters.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BopParameters.BuilderclearGuidedSatConflictsChunk()The first solutions based on guided SAT will work in chunk of that many conflicts at the time.BopParameters.BuilderclearLogSearchProgress()Whether the solver should log the search progress to LOG(INFO).BopParameters.BuilderclearLpMaxDeterministicTime()The max deterministic time given to the LP solver each time it is called.BopParameters.BuilderclearMaxDeterministicTime()Maximum time allowed in deterministic time to solve a problem.BopParameters.BuilderclearMaxLpSolveForFeasibilityProblems()The maximum number of time the LP solver will run to feasibility for pure feasibility problems (with a constant-valued objective function).BopParameters.BuilderclearMaxNumberOfBacktracksInLs()Maximum number of backtracks times the number of variables in Local Search, ie.BopParameters.BuilderclearMaxNumberOfConflictsForQuickCheck()The number of conflicts the SAT solver has to solve a random LNS subproblem for the quick check of infeasibility.BopParameters.BuilderclearMaxNumberOfConflictsInRandomLns()The number of conflicts the SAT solver has to solve a random LNS subproblem.BopParameters.BuilderclearMaxNumberOfConflictsInRandomSolutionGeneration()The number of conflicts the SAT solver has to generate a random solution.BopParameters.BuilderclearMaxNumberOfConsecutiveFailingOptimizerCalls()Maximum number of consecutive optimizer calls without improving the current solution.BopParameters.BuilderclearMaxNumberOfExploredAssignmentsPerTryInLs()The maximum number of assignments the Local Search iterates on during one try.BopParameters.BuilderclearMaxNumBrokenConstraintsInLs()Abort the LS search tree as soon as strictly more than this number of constraints are broken.BopParameters.BuilderclearMaxNumDecisionsInLs()Maximum number of cascading decisions the solver might use to repair the current solution in the LS.BopParameters.BuilderclearMaxTimeInSeconds()Maximum time allowed in seconds to solve a problem.BopParameters.BuilderclearNumberOfSolvers()The number of solvers used to run Bop.BopParameters.BuilderclearNumBopSolversUsedByDecomposition()The number of BopSolver created (thread pool workers) used by the integral solver to solve a decomposed problem.BopParameters.BuilderclearNumRandomLnsTries()Number of tries in the random lns.BopParameters.BuilderclearNumRelaxedVars()Number of variables to relax in the exhaustive Large Neighborhood Search.BopParameters.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BopParameters.BuilderclearPruneSearchTree()Avoid exploring both branches (b, a, ...) and (a, b, ...).BopParameters.BuilderclearRandomSeed()The seed used to initialize the random generator.BopParameters.BuilderclearRelativeGapLimit()Limit used to stop the optimization as soon as the relative gap is smaller than the given value.BopParameters.BuilderclearSolverOptimizerSets()List of set of optimizers to be run by the solvers.BopParameters.BuilderclearSortConstraintsByNumTerms()Sort constraints by increasing total number of terms instead of number of contributing terms.BopParameters.BuilderclearSynchronizationType()optional .operations_research.bop.BopParameters.ThreadSynchronizationType synchronization_type = 25 [default = NO_SYNCHRONIZATION];BopParameters.BuilderclearUseLearnedBinaryClausesInLp()Whether we use the learned binary clauses in the Linear Relaxation.BopParameters.BuilderclearUseLpLns()Use Large Neighborhood Search based on the LP relaxation.BopParameters.BuilderclearUseLpStrongBranching()Use strong branching in the linear relaxation optimizer.BopParameters.BuilderclearUsePotentialOneFlipRepairsInLs()Whether we keep a list of variable that can potentially repair in one flip all the current infeasible constraints (such variable must at least appear in all the infeasible constraints for this to happen).BopParameters.BuilderclearUseRandomLns()Use the random Large Neighborhood Search instead of the exhaustive one.BopParameters.BuilderclearUseSatToChooseLnsNeighbourhood()Whether we use sat propagation to choose the lns neighbourhood.BopParameters.BuilderclearUseSymmetry()If true, find and exploit the eventual symmetries of the problem.BopParameters.BuilderclearUseTranspositionTableInLs()Whether we use an hash set during the LS to avoid exploring more than once the "same" state.BopParameters.Builderclone()booleangetComputeEstimatedImpact()Compute estimated impact at each iteration when true; only once when false.doublegetDecomposedProblemMinTimeInSeconds()HACK.intgetDecomposerNumVariablesThreshold()Only try to decompose the problem when the number of variables is greater than the threshold.BopParametersgetDefaultInstanceForType()java.lang.StringgetDefaultSolverOptimizerSets()optional string default_solver_optimizer_sets = 33 [default = "methods:{type:LOCAL_SEARCH } methods:{type:RANDOM_FIRST_SOLUTION } methods:{type:LINEAR_RELAXATION } methods:{type:LP_FIRST_SOLUTION } methods:{type:OBJECTIVE_FIRST_SOLUTION } methods:{type:USER_GUIDED_FIRST_SOLUTION } methods:{type:RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP } methods:{type:RANDOM_VARIABLE_LNS_GUIDED_BY_LP } methods:{type:RELATION_GRAPH_LNS } methods:{type:RELATION_GRAPH_LNS_GUIDED_BY_LP } methods:{type:RANDOM_CONSTRAINT_LNS } methods:{type:RANDOM_VARIABLE_LNS } methods:{type:SAT_CORE_BASED } methods:{type:COMPLETE_LNS } "];com.google.protobuf.ByteStringgetDefaultSolverOptimizerSetsBytes()optional string default_solver_optimizer_sets = 33 [default = "methods:{type:LOCAL_SEARCH } methods:{type:RANDOM_FIRST_SOLUTION } methods:{type:LINEAR_RELAXATION } methods:{type:LP_FIRST_SOLUTION } methods:{type:OBJECTIVE_FIRST_SOLUTION } methods:{type:USER_GUIDED_FIRST_SOLUTION } methods:{type:RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP } methods:{type:RANDOM_VARIABLE_LNS_GUIDED_BY_LP } methods:{type:RELATION_GRAPH_LNS } methods:{type:RELATION_GRAPH_LNS_GUIDED_BY_LP } methods:{type:RANDOM_CONSTRAINT_LNS } methods:{type:RANDOM_VARIABLE_LNS } methods:{type:SAT_CORE_BASED } methods:{type:COMPLETE_LNS } "];static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetExploitSymmetryInSatFirstSolution()If true, find and exploit symmetries in proving satisfiability in the first problem.intgetGuidedSatConflictsChunk()The first solutions based on guided SAT will work in chunk of that many conflicts at the time.booleangetLogSearchProgress()Whether the solver should log the search progress to LOG(INFO).doublegetLpMaxDeterministicTime()The max deterministic time given to the LP solver each time it is called.doublegetMaxDeterministicTime()Maximum time allowed in deterministic time to solve a problem.intgetMaxLpSolveForFeasibilityProblems()The maximum number of time the LP solver will run to feasibility for pure feasibility problems (with a constant-valued objective function).longgetMaxNumberOfBacktracksInLs()Maximum number of backtracks times the number of variables in Local Search, ie.intgetMaxNumberOfConflictsForQuickCheck()The number of conflicts the SAT solver has to solve a random LNS subproblem for the quick check of infeasibility.intgetMaxNumberOfConflictsInRandomLns()The number of conflicts the SAT solver has to solve a random LNS subproblem.intgetMaxNumberOfConflictsInRandomSolutionGeneration()The number of conflicts the SAT solver has to generate a random solution.intgetMaxNumberOfConsecutiveFailingOptimizerCalls()Maximum number of consecutive optimizer calls without improving the current solution.longgetMaxNumberOfExploredAssignmentsPerTryInLs()The maximum number of assignments the Local Search iterates on during one try.intgetMaxNumBrokenConstraintsInLs()Abort the LS search tree as soon as strictly more than this number of constraints are broken.intgetMaxNumDecisionsInLs()Maximum number of cascading decisions the solver might use to repair the current solution in the LS.doublegetMaxTimeInSeconds()Maximum time allowed in seconds to solve a problem.intgetNumberOfSolvers()The number of solvers used to run Bop.intgetNumBopSolversUsedByDecomposition()The number of BopSolver created (thread pool workers) used by the integral solver to solve a decomposed problem.intgetNumRandomLnsTries()Number of tries in the random lns.intgetNumRelaxedVars()Number of variables to relax in the exhaustive Large Neighborhood Search.booleangetPruneSearchTree()Avoid exploring both branches (b, a, ...) and (a, b, ...).intgetRandomSeed()The seed used to initialize the random generator.doublegetRelativeGapLimit()Limit used to stop the optimization as soon as the relative gap is smaller than the given value.BopSolverOptimizerSetgetSolverOptimizerSets(int index)List of set of optimizers to be run by the solvers.BopSolverOptimizerSet.BuildergetSolverOptimizerSetsBuilder(int index)List of set of optimizers to be run by the solvers.java.util.List<BopSolverOptimizerSet.Builder>getSolverOptimizerSetsBuilderList()List of set of optimizers to be run by the solvers.intgetSolverOptimizerSetsCount()List of set of optimizers to be run by the solvers.java.util.List<BopSolverOptimizerSet>getSolverOptimizerSetsList()List of set of optimizers to be run by the solvers.BopSolverOptimizerSetOrBuildergetSolverOptimizerSetsOrBuilder(int index)List of set of optimizers to be run by the solvers.java.util.List<? extends BopSolverOptimizerSetOrBuilder>getSolverOptimizerSetsOrBuilderList()List of set of optimizers to be run by the solvers.booleangetSortConstraintsByNumTerms()Sort constraints by increasing total number of terms instead of number of contributing terms.BopParameters.ThreadSynchronizationTypegetSynchronizationType()optional .operations_research.bop.BopParameters.ThreadSynchronizationType synchronization_type = 25 [default = NO_SYNCHRONIZATION];booleangetUseLearnedBinaryClausesInLp()Whether we use the learned binary clauses in the Linear Relaxation.booleangetUseLpLns()Use Large Neighborhood Search based on the LP relaxation.booleangetUseLpStrongBranching()Use strong branching in the linear relaxation optimizer.booleangetUsePotentialOneFlipRepairsInLs()Whether we keep a list of variable that can potentially repair in one flip all the current infeasible constraints (such variable must at least appear in all the infeasible constraints for this to happen).booleangetUseRandomLns()Use the random Large Neighborhood Search instead of the exhaustive one.booleangetUseSatToChooseLnsNeighbourhood()Whether we use sat propagation to choose the lns neighbourhood.booleangetUseSymmetry()If true, find and exploit the eventual symmetries of the problem.booleangetUseTranspositionTableInLs()Whether we use an hash set during the LS to avoid exploring more than once the "same" state.booleanhasComputeEstimatedImpact()Compute estimated impact at each iteration when true; only once when false.booleanhasDecomposedProblemMinTimeInSeconds()HACK.booleanhasDecomposerNumVariablesThreshold()Only try to decompose the problem when the number of variables is greater than the threshold.booleanhasDefaultSolverOptimizerSets()optional string default_solver_optimizer_sets = 33 [default = "methods:{type:LOCAL_SEARCH } methods:{type:RANDOM_FIRST_SOLUTION } methods:{type:LINEAR_RELAXATION } methods:{type:LP_FIRST_SOLUTION } methods:{type:OBJECTIVE_FIRST_SOLUTION } methods:{type:USER_GUIDED_FIRST_SOLUTION } methods:{type:RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP } methods:{type:RANDOM_VARIABLE_LNS_GUIDED_BY_LP } methods:{type:RELATION_GRAPH_LNS } methods:{type:RELATION_GRAPH_LNS_GUIDED_BY_LP } methods:{type:RANDOM_CONSTRAINT_LNS } methods:{type:RANDOM_VARIABLE_LNS } methods:{type:SAT_CORE_BASED } methods:{type:COMPLETE_LNS } "];booleanhasExploitSymmetryInSatFirstSolution()If true, find and exploit symmetries in proving satisfiability in the first problem.booleanhasGuidedSatConflictsChunk()The first solutions based on guided SAT will work in chunk of that many conflicts at the time.booleanhasLogSearchProgress()Whether the solver should log the search progress to LOG(INFO).booleanhasLpMaxDeterministicTime()The max deterministic time given to the LP solver each time it is called.booleanhasMaxDeterministicTime()Maximum time allowed in deterministic time to solve a problem.booleanhasMaxLpSolveForFeasibilityProblems()The maximum number of time the LP solver will run to feasibility for pure feasibility problems (with a constant-valued objective function).booleanhasMaxNumberOfBacktracksInLs()Maximum number of backtracks times the number of variables in Local Search, ie.booleanhasMaxNumberOfConflictsForQuickCheck()The number of conflicts the SAT solver has to solve a random LNS subproblem for the quick check of infeasibility.booleanhasMaxNumberOfConflictsInRandomLns()The number of conflicts the SAT solver has to solve a random LNS subproblem.booleanhasMaxNumberOfConflictsInRandomSolutionGeneration()The number of conflicts the SAT solver has to generate a random solution.booleanhasMaxNumberOfConsecutiveFailingOptimizerCalls()Maximum number of consecutive optimizer calls without improving the current solution.booleanhasMaxNumberOfExploredAssignmentsPerTryInLs()The maximum number of assignments the Local Search iterates on during one try.booleanhasMaxNumBrokenConstraintsInLs()Abort the LS search tree as soon as strictly more than this number of constraints are broken.booleanhasMaxNumDecisionsInLs()Maximum number of cascading decisions the solver might use to repair the current solution in the LS.booleanhasMaxTimeInSeconds()Maximum time allowed in seconds to solve a problem.booleanhasNumberOfSolvers()The number of solvers used to run Bop.booleanhasNumBopSolversUsedByDecomposition()The number of BopSolver created (thread pool workers) used by the integral solver to solve a decomposed problem.booleanhasNumRandomLnsTries()Number of tries in the random lns.booleanhasNumRelaxedVars()Number of variables to relax in the exhaustive Large Neighborhood Search.booleanhasPruneSearchTree()Avoid exploring both branches (b, a, ...) and (a, b, ...).booleanhasRandomSeed()The seed used to initialize the random generator.booleanhasRelativeGapLimit()Limit used to stop the optimization as soon as the relative gap is smaller than the given value.booleanhasSortConstraintsByNumTerms()Sort constraints by increasing total number of terms instead of number of contributing terms.booleanhasSynchronizationType()optional .operations_research.bop.BopParameters.ThreadSynchronizationType synchronization_type = 25 [default = NO_SYNCHRONIZATION];booleanhasUseLearnedBinaryClausesInLp()Whether we use the learned binary clauses in the Linear Relaxation.booleanhasUseLpLns()Use Large Neighborhood Search based on the LP relaxation.booleanhasUseLpStrongBranching()Use strong branching in the linear relaxation optimizer.booleanhasUsePotentialOneFlipRepairsInLs()Whether we keep a list of variable that can potentially repair in one flip all the current infeasible constraints (such variable must at least appear in all the infeasible constraints for this to happen).booleanhasUseRandomLns()Use the random Large Neighborhood Search instead of the exhaustive one.booleanhasUseSatToChooseLnsNeighbourhood()Whether we use sat propagation to choose the lns neighbourhood.booleanhasUseSymmetry()If true, find and exploit the eventual symmetries of the problem.booleanhasUseTranspositionTableInLs()Whether we use an hash set during the LS to avoid exploring more than once the "same" state.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()BopParameters.BuildermergeFrom(BopParameters other)BopParameters.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BopParameters.BuildermergeFrom(com.google.protobuf.Message other)BopParameters.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BopParameters.BuilderremoveSolverOptimizerSets(int index)List of set of optimizers to be run by the solvers.BopParameters.BuildersetComputeEstimatedImpact(boolean value)Compute estimated impact at each iteration when true; only once when false.BopParameters.BuildersetDecomposedProblemMinTimeInSeconds(double value)HACK.BopParameters.BuildersetDecomposerNumVariablesThreshold(int value)Only try to decompose the problem when the number of variables is greater than the threshold.BopParameters.BuildersetDefaultSolverOptimizerSets(java.lang.String value)optional string default_solver_optimizer_sets = 33 [default = "methods:{type:LOCAL_SEARCH } methods:{type:RANDOM_FIRST_SOLUTION } methods:{type:LINEAR_RELAXATION } methods:{type:LP_FIRST_SOLUTION } methods:{type:OBJECTIVE_FIRST_SOLUTION } methods:{type:USER_GUIDED_FIRST_SOLUTION } methods:{type:RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP } methods:{type:RANDOM_VARIABLE_LNS_GUIDED_BY_LP } methods:{type:RELATION_GRAPH_LNS } methods:{type:RELATION_GRAPH_LNS_GUIDED_BY_LP } methods:{type:RANDOM_CONSTRAINT_LNS } methods:{type:RANDOM_VARIABLE_LNS } methods:{type:SAT_CORE_BASED } methods:{type:COMPLETE_LNS } "];BopParameters.BuildersetDefaultSolverOptimizerSetsBytes(com.google.protobuf.ByteString value)optional string default_solver_optimizer_sets = 33 [default = "methods:{type:LOCAL_SEARCH } methods:{type:RANDOM_FIRST_SOLUTION } methods:{type:LINEAR_RELAXATION } methods:{type:LP_FIRST_SOLUTION } methods:{type:OBJECTIVE_FIRST_SOLUTION } methods:{type:USER_GUIDED_FIRST_SOLUTION } methods:{type:RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP } methods:{type:RANDOM_VARIABLE_LNS_GUIDED_BY_LP } methods:{type:RELATION_GRAPH_LNS } methods:{type:RELATION_GRAPH_LNS_GUIDED_BY_LP } methods:{type:RANDOM_CONSTRAINT_LNS } methods:{type:RANDOM_VARIABLE_LNS } methods:{type:SAT_CORE_BASED } methods:{type:COMPLETE_LNS } "];BopParameters.BuildersetExploitSymmetryInSatFirstSolution(boolean value)If true, find and exploit symmetries in proving satisfiability in the first problem.BopParameters.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)BopParameters.BuildersetGuidedSatConflictsChunk(int value)The first solutions based on guided SAT will work in chunk of that many conflicts at the time.BopParameters.BuildersetLogSearchProgress(boolean value)Whether the solver should log the search progress to LOG(INFO).BopParameters.BuildersetLpMaxDeterministicTime(double value)The max deterministic time given to the LP solver each time it is called.BopParameters.BuildersetMaxDeterministicTime(double value)Maximum time allowed in deterministic time to solve a problem.BopParameters.BuildersetMaxLpSolveForFeasibilityProblems(int value)The maximum number of time the LP solver will run to feasibility for pure feasibility problems (with a constant-valued objective function).BopParameters.BuildersetMaxNumberOfBacktracksInLs(long value)Maximum number of backtracks times the number of variables in Local Search, ie.BopParameters.BuildersetMaxNumberOfConflictsForQuickCheck(int value)The number of conflicts the SAT solver has to solve a random LNS subproblem for the quick check of infeasibility.BopParameters.BuildersetMaxNumberOfConflictsInRandomLns(int value)The number of conflicts the SAT solver has to solve a random LNS subproblem.BopParameters.BuildersetMaxNumberOfConflictsInRandomSolutionGeneration(int value)The number of conflicts the SAT solver has to generate a random solution.BopParameters.BuildersetMaxNumberOfConsecutiveFailingOptimizerCalls(int value)Maximum number of consecutive optimizer calls without improving the current solution.BopParameters.BuildersetMaxNumberOfExploredAssignmentsPerTryInLs(long value)The maximum number of assignments the Local Search iterates on during one try.BopParameters.BuildersetMaxNumBrokenConstraintsInLs(int value)Abort the LS search tree as soon as strictly more than this number of constraints are broken.BopParameters.BuildersetMaxNumDecisionsInLs(int value)Maximum number of cascading decisions the solver might use to repair the current solution in the LS.BopParameters.BuildersetMaxTimeInSeconds(double value)Maximum time allowed in seconds to solve a problem.BopParameters.BuildersetNumberOfSolvers(int value)The number of solvers used to run Bop.BopParameters.BuildersetNumBopSolversUsedByDecomposition(int value)The number of BopSolver created (thread pool workers) used by the integral solver to solve a decomposed problem.BopParameters.BuildersetNumRandomLnsTries(int value)Number of tries in the random lns.BopParameters.BuildersetNumRelaxedVars(int value)Number of variables to relax in the exhaustive Large Neighborhood Search.BopParameters.BuildersetPruneSearchTree(boolean value)Avoid exploring both branches (b, a, ...) and (a, b, ...).BopParameters.BuildersetRandomSeed(int value)The seed used to initialize the random generator.BopParameters.BuildersetRelativeGapLimit(double value)Limit used to stop the optimization as soon as the relative gap is smaller than the given value.BopParameters.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)BopParameters.BuildersetSolverOptimizerSets(int index, BopSolverOptimizerSet value)List of set of optimizers to be run by the solvers.BopParameters.BuildersetSolverOptimizerSets(int index, BopSolverOptimizerSet.Builder builderForValue)List of set of optimizers to be run by the solvers.BopParameters.BuildersetSortConstraintsByNumTerms(boolean value)Sort constraints by increasing total number of terms instead of number of contributing terms.BopParameters.BuildersetSynchronizationType(BopParameters.ThreadSynchronizationType value)optional .operations_research.bop.BopParameters.ThreadSynchronizationType synchronization_type = 25 [default = NO_SYNCHRONIZATION];BopParameters.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BopParameters.BuildersetUseLearnedBinaryClausesInLp(boolean value)Whether we use the learned binary clauses in the Linear Relaxation.BopParameters.BuildersetUseLpLns(boolean value)Use Large Neighborhood Search based on the LP relaxation.BopParameters.BuildersetUseLpStrongBranching(boolean value)Use strong branching in the linear relaxation optimizer.BopParameters.BuildersetUsePotentialOneFlipRepairsInLs(boolean value)Whether we keep a list of variable that can potentially repair in one flip all the current infeasible constraints (such variable must at least appear in all the infeasible constraints for this to happen).BopParameters.BuildersetUseRandomLns(boolean value)Use the random Large Neighborhood Search instead of the exhaustive one.BopParameters.BuildersetUseSatToChooseLnsNeighbourhood(boolean value)Whether we use sat propagation to choose the lns neighbourhood.BopParameters.BuildersetUseSymmetry(boolean value)If true, find and exploit the eventual symmetries of the problem.BopParameters.BuildersetUseTranspositionTableInLs(boolean value)Whether we use an hash set during the LS to avoid exploring more than once the "same" state.-
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<BopParameters.Builder>
-
clear
public BopParameters.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<BopParameters.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<BopParameters.Builder>
-
getDefaultInstanceForType
public BopParameters getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BopParameters build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BopParameters buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BopParameters.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<BopParameters.Builder>
-
setField
public BopParameters.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<BopParameters.Builder>
-
clearField
public BopParameters.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BopParameters.Builder>
-
clearOneof
public BopParameters.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BopParameters.Builder>
-
setRepeatedField
public BopParameters.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<BopParameters.Builder>
-
addRepeatedField
public BopParameters.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<BopParameters.Builder>
-
mergeFrom
public BopParameters.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BopParameters.Builder>
-
mergeFrom
public BopParameters.Builder mergeFrom(BopParameters other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BopParameters.Builder>
-
mergeFrom
public BopParameters.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<BopParameters.Builder>- Throws:
java.io.IOException
-
hasMaxTimeInSeconds
public boolean hasMaxTimeInSeconds()
Maximum time allowed in seconds to solve a problem. The counter will starts as soon as Solve() is called.
optional double max_time_in_seconds = 1 [default = inf];- Specified by:
hasMaxTimeInSecondsin interfaceBopParametersOrBuilder- Returns:
- Whether the maxTimeInSeconds field is set.
-
getMaxTimeInSeconds
public double getMaxTimeInSeconds()
Maximum time allowed in seconds to solve a problem. The counter will starts as soon as Solve() is called.
optional double max_time_in_seconds = 1 [default = inf];- Specified by:
getMaxTimeInSecondsin interfaceBopParametersOrBuilder- Returns:
- The maxTimeInSeconds.
-
setMaxTimeInSeconds
public BopParameters.Builder setMaxTimeInSeconds(double value)
Maximum time allowed in seconds to solve a problem. The counter will starts as soon as Solve() is called.
optional double max_time_in_seconds = 1 [default = inf];- Parameters:
value- The maxTimeInSeconds to set.- Returns:
- This builder for chaining.
-
clearMaxTimeInSeconds
public BopParameters.Builder clearMaxTimeInSeconds()
Maximum time allowed in seconds to solve a problem. The counter will starts as soon as Solve() is called.
optional double max_time_in_seconds = 1 [default = inf];- Returns:
- This builder for chaining.
-
hasMaxDeterministicTime
public boolean hasMaxDeterministicTime()
Maximum time allowed in deterministic time to solve a problem. The deterministic time should be correlated with the real time used by the solver, the time unit being roughly the order of magnitude of a second. The counter will starts as soon as SetParameters() or SolveWithTimeLimit() is called.
optional double max_deterministic_time = 27 [default = inf];- Specified by:
hasMaxDeterministicTimein interfaceBopParametersOrBuilder- Returns:
- Whether the maxDeterministicTime field is set.
-
getMaxDeterministicTime
public double getMaxDeterministicTime()
Maximum time allowed in deterministic time to solve a problem. The deterministic time should be correlated with the real time used by the solver, the time unit being roughly the order of magnitude of a second. The counter will starts as soon as SetParameters() or SolveWithTimeLimit() is called.
optional double max_deterministic_time = 27 [default = inf];- Specified by:
getMaxDeterministicTimein interfaceBopParametersOrBuilder- Returns:
- The maxDeterministicTime.
-
setMaxDeterministicTime
public BopParameters.Builder setMaxDeterministicTime(double value)
Maximum time allowed in deterministic time to solve a problem. The deterministic time should be correlated with the real time used by the solver, the time unit being roughly the order of magnitude of a second. The counter will starts as soon as SetParameters() or SolveWithTimeLimit() is called.
optional double max_deterministic_time = 27 [default = inf];- Parameters:
value- The maxDeterministicTime to set.- Returns:
- This builder for chaining.
-
clearMaxDeterministicTime
public BopParameters.Builder clearMaxDeterministicTime()
Maximum time allowed in deterministic time to solve a problem. The deterministic time should be correlated with the real time used by the solver, the time unit being roughly the order of magnitude of a second. The counter will starts as soon as SetParameters() or SolveWithTimeLimit() is called.
optional double max_deterministic_time = 27 [default = inf];- Returns:
- This builder for chaining.
-
hasLpMaxDeterministicTime
public boolean hasLpMaxDeterministicTime()
The max deterministic time given to the LP solver each time it is called. If this is not enough to solve the LP at hand, it will simply be called again later (and the solve will resume from where it stopped).
optional double lp_max_deterministic_time = 37 [default = 1];- Specified by:
hasLpMaxDeterministicTimein interfaceBopParametersOrBuilder- Returns:
- Whether the lpMaxDeterministicTime field is set.
-
getLpMaxDeterministicTime
public double getLpMaxDeterministicTime()
The max deterministic time given to the LP solver each time it is called. If this is not enough to solve the LP at hand, it will simply be called again later (and the solve will resume from where it stopped).
optional double lp_max_deterministic_time = 37 [default = 1];- Specified by:
getLpMaxDeterministicTimein interfaceBopParametersOrBuilder- Returns:
- The lpMaxDeterministicTime.
-
setLpMaxDeterministicTime
public BopParameters.Builder setLpMaxDeterministicTime(double value)
The max deterministic time given to the LP solver each time it is called. If this is not enough to solve the LP at hand, it will simply be called again later (and the solve will resume from where it stopped).
optional double lp_max_deterministic_time = 37 [default = 1];- Parameters:
value- The lpMaxDeterministicTime to set.- Returns:
- This builder for chaining.
-
clearLpMaxDeterministicTime
public BopParameters.Builder clearLpMaxDeterministicTime()
The max deterministic time given to the LP solver each time it is called. If this is not enough to solve the LP at hand, it will simply be called again later (and the solve will resume from where it stopped).
optional double lp_max_deterministic_time = 37 [default = 1];- Returns:
- This builder for chaining.
-
hasMaxNumberOfConsecutiveFailingOptimizerCalls
public boolean hasMaxNumberOfConsecutiveFailingOptimizerCalls()
Maximum number of consecutive optimizer calls without improving the current solution. If this number is reached, the search will be aborted. Note that this parameter only applies when an initial solution has been found or is provided. Also note that there is no limit to the number of calls, when the parameter is not set.
optional int32 max_number_of_consecutive_failing_optimizer_calls = 35;- Specified by:
hasMaxNumberOfConsecutiveFailingOptimizerCallsin interfaceBopParametersOrBuilder- Returns:
- Whether the maxNumberOfConsecutiveFailingOptimizerCalls field is set.
-
getMaxNumberOfConsecutiveFailingOptimizerCalls
public int getMaxNumberOfConsecutiveFailingOptimizerCalls()
Maximum number of consecutive optimizer calls without improving the current solution. If this number is reached, the search will be aborted. Note that this parameter only applies when an initial solution has been found or is provided. Also note that there is no limit to the number of calls, when the parameter is not set.
optional int32 max_number_of_consecutive_failing_optimizer_calls = 35;- Specified by:
getMaxNumberOfConsecutiveFailingOptimizerCallsin interfaceBopParametersOrBuilder- Returns:
- The maxNumberOfConsecutiveFailingOptimizerCalls.
-
setMaxNumberOfConsecutiveFailingOptimizerCalls
public BopParameters.Builder setMaxNumberOfConsecutiveFailingOptimizerCalls(int value)
Maximum number of consecutive optimizer calls without improving the current solution. If this number is reached, the search will be aborted. Note that this parameter only applies when an initial solution has been found or is provided. Also note that there is no limit to the number of calls, when the parameter is not set.
optional int32 max_number_of_consecutive_failing_optimizer_calls = 35;- Parameters:
value- The maxNumberOfConsecutiveFailingOptimizerCalls to set.- Returns:
- This builder for chaining.
-
clearMaxNumberOfConsecutiveFailingOptimizerCalls
public BopParameters.Builder clearMaxNumberOfConsecutiveFailingOptimizerCalls()
Maximum number of consecutive optimizer calls without improving the current solution. If this number is reached, the search will be aborted. Note that this parameter only applies when an initial solution has been found or is provided. Also note that there is no limit to the number of calls, when the parameter is not set.
optional int32 max_number_of_consecutive_failing_optimizer_calls = 35;- Returns:
- This builder for chaining.
-
hasRelativeGapLimit
public boolean hasRelativeGapLimit()
Limit used to stop the optimization as soon as the relative gap is smaller than the given value. The relative gap is defined as: abs(solution_cost - best_bound) / max(abs(solution_cost), abs(best_bound)).optional double relative_gap_limit = 28 [default = 0.0001];- Specified by:
hasRelativeGapLimitin interfaceBopParametersOrBuilder- Returns:
- Whether the relativeGapLimit field is set.
-
getRelativeGapLimit
public double getRelativeGapLimit()
Limit used to stop the optimization as soon as the relative gap is smaller than the given value. The relative gap is defined as: abs(solution_cost - best_bound) / max(abs(solution_cost), abs(best_bound)).optional double relative_gap_limit = 28 [default = 0.0001];- Specified by:
getRelativeGapLimitin interfaceBopParametersOrBuilder- Returns:
- The relativeGapLimit.
-
setRelativeGapLimit
public BopParameters.Builder setRelativeGapLimit(double value)
Limit used to stop the optimization as soon as the relative gap is smaller than the given value. The relative gap is defined as: abs(solution_cost - best_bound) / max(abs(solution_cost), abs(best_bound)).optional double relative_gap_limit = 28 [default = 0.0001];- Parameters:
value- The relativeGapLimit to set.- Returns:
- This builder for chaining.
-
clearRelativeGapLimit
public BopParameters.Builder clearRelativeGapLimit()
Limit used to stop the optimization as soon as the relative gap is smaller than the given value. The relative gap is defined as: abs(solution_cost - best_bound) / max(abs(solution_cost), abs(best_bound)).optional double relative_gap_limit = 28 [default = 0.0001];- Returns:
- This builder for chaining.
-
hasMaxNumDecisionsInLs
public boolean hasMaxNumDecisionsInLs()
Maximum number of cascading decisions the solver might use to repair the current solution in the LS.
optional int32 max_num_decisions_in_ls = 2 [default = 4];- Specified by:
hasMaxNumDecisionsInLsin interfaceBopParametersOrBuilder- Returns:
- Whether the maxNumDecisionsInLs field is set.
-
getMaxNumDecisionsInLs
public int getMaxNumDecisionsInLs()
Maximum number of cascading decisions the solver might use to repair the current solution in the LS.
optional int32 max_num_decisions_in_ls = 2 [default = 4];- Specified by:
getMaxNumDecisionsInLsin interfaceBopParametersOrBuilder- Returns:
- The maxNumDecisionsInLs.
-
setMaxNumDecisionsInLs
public BopParameters.Builder setMaxNumDecisionsInLs(int value)
Maximum number of cascading decisions the solver might use to repair the current solution in the LS.
optional int32 max_num_decisions_in_ls = 2 [default = 4];- Parameters:
value- The maxNumDecisionsInLs to set.- Returns:
- This builder for chaining.
-
clearMaxNumDecisionsInLs
public BopParameters.Builder clearMaxNumDecisionsInLs()
Maximum number of cascading decisions the solver might use to repair the current solution in the LS.
optional int32 max_num_decisions_in_ls = 2 [default = 4];- Returns:
- This builder for chaining.
-
hasMaxNumBrokenConstraintsInLs
public boolean hasMaxNumBrokenConstraintsInLs()
Abort the LS search tree as soon as strictly more than this number of constraints are broken. The default is a large value which basically disable this heuristic.
optional int32 max_num_broken_constraints_in_ls = 38 [default = 2147483647];- Specified by:
hasMaxNumBrokenConstraintsInLsin interfaceBopParametersOrBuilder- Returns:
- Whether the maxNumBrokenConstraintsInLs field is set.
-
getMaxNumBrokenConstraintsInLs
public int getMaxNumBrokenConstraintsInLs()
Abort the LS search tree as soon as strictly more than this number of constraints are broken. The default is a large value which basically disable this heuristic.
optional int32 max_num_broken_constraints_in_ls = 38 [default = 2147483647];- Specified by:
getMaxNumBrokenConstraintsInLsin interfaceBopParametersOrBuilder- Returns:
- The maxNumBrokenConstraintsInLs.
-
setMaxNumBrokenConstraintsInLs
public BopParameters.Builder setMaxNumBrokenConstraintsInLs(int value)
Abort the LS search tree as soon as strictly more than this number of constraints are broken. The default is a large value which basically disable this heuristic.
optional int32 max_num_broken_constraints_in_ls = 38 [default = 2147483647];- Parameters:
value- The maxNumBrokenConstraintsInLs to set.- Returns:
- This builder for chaining.
-
clearMaxNumBrokenConstraintsInLs
public BopParameters.Builder clearMaxNumBrokenConstraintsInLs()
Abort the LS search tree as soon as strictly more than this number of constraints are broken. The default is a large value which basically disable this heuristic.
optional int32 max_num_broken_constraints_in_ls = 38 [default = 2147483647];- Returns:
- This builder for chaining.
-
hasLogSearchProgress
public boolean hasLogSearchProgress()
Whether the solver should log the search progress to LOG(INFO).
optional bool log_search_progress = 14 [default = false];- Specified by:
hasLogSearchProgressin interfaceBopParametersOrBuilder- Returns:
- Whether the logSearchProgress field is set.
-
getLogSearchProgress
public boolean getLogSearchProgress()
Whether the solver should log the search progress to LOG(INFO).
optional bool log_search_progress = 14 [default = false];- Specified by:
getLogSearchProgressin interfaceBopParametersOrBuilder- Returns:
- The logSearchProgress.
-
setLogSearchProgress
public BopParameters.Builder setLogSearchProgress(boolean value)
Whether the solver should log the search progress to LOG(INFO).
optional bool log_search_progress = 14 [default = false];- Parameters:
value- The logSearchProgress to set.- Returns:
- This builder for chaining.
-
clearLogSearchProgress
public BopParameters.Builder clearLogSearchProgress()
Whether the solver should log the search progress to LOG(INFO).
optional bool log_search_progress = 14 [default = false];- Returns:
- This builder for chaining.
-
hasComputeEstimatedImpact
public boolean hasComputeEstimatedImpact()
Compute estimated impact at each iteration when true; only once when false.
optional bool compute_estimated_impact = 3 [default = true];- Specified by:
hasComputeEstimatedImpactin interfaceBopParametersOrBuilder- Returns:
- Whether the computeEstimatedImpact field is set.
-
getComputeEstimatedImpact
public boolean getComputeEstimatedImpact()
Compute estimated impact at each iteration when true; only once when false.
optional bool compute_estimated_impact = 3 [default = true];- Specified by:
getComputeEstimatedImpactin interfaceBopParametersOrBuilder- Returns:
- The computeEstimatedImpact.
-
setComputeEstimatedImpact
public BopParameters.Builder setComputeEstimatedImpact(boolean value)
Compute estimated impact at each iteration when true; only once when false.
optional bool compute_estimated_impact = 3 [default = true];- Parameters:
value- The computeEstimatedImpact to set.- Returns:
- This builder for chaining.
-
clearComputeEstimatedImpact
public BopParameters.Builder clearComputeEstimatedImpact()
Compute estimated impact at each iteration when true; only once when false.
optional bool compute_estimated_impact = 3 [default = true];- Returns:
- This builder for chaining.
-
hasPruneSearchTree
public boolean hasPruneSearchTree()
Avoid exploring both branches (b, a, ...) and (a, b, ...).
optional bool prune_search_tree = 4 [default = false];- Specified by:
hasPruneSearchTreein interfaceBopParametersOrBuilder- Returns:
- Whether the pruneSearchTree field is set.
-
getPruneSearchTree
public boolean getPruneSearchTree()
Avoid exploring both branches (b, a, ...) and (a, b, ...).
optional bool prune_search_tree = 4 [default = false];- Specified by:
getPruneSearchTreein interfaceBopParametersOrBuilder- Returns:
- The pruneSearchTree.
-
setPruneSearchTree
public BopParameters.Builder setPruneSearchTree(boolean value)
Avoid exploring both branches (b, a, ...) and (a, b, ...).
optional bool prune_search_tree = 4 [default = false];- Parameters:
value- The pruneSearchTree to set.- Returns:
- This builder for chaining.
-
clearPruneSearchTree
public BopParameters.Builder clearPruneSearchTree()
Avoid exploring both branches (b, a, ...) and (a, b, ...).
optional bool prune_search_tree = 4 [default = false];- Returns:
- This builder for chaining.
-
hasSortConstraintsByNumTerms
public boolean hasSortConstraintsByNumTerms()
Sort constraints by increasing total number of terms instead of number of contributing terms.
optional bool sort_constraints_by_num_terms = 5 [default = false];- Specified by:
hasSortConstraintsByNumTermsin interfaceBopParametersOrBuilder- Returns:
- Whether the sortConstraintsByNumTerms field is set.
-
getSortConstraintsByNumTerms
public boolean getSortConstraintsByNumTerms()
Sort constraints by increasing total number of terms instead of number of contributing terms.
optional bool sort_constraints_by_num_terms = 5 [default = false];- Specified by:
getSortConstraintsByNumTermsin interfaceBopParametersOrBuilder- Returns:
- The sortConstraintsByNumTerms.
-
setSortConstraintsByNumTerms
public BopParameters.Builder setSortConstraintsByNumTerms(boolean value)
Sort constraints by increasing total number of terms instead of number of contributing terms.
optional bool sort_constraints_by_num_terms = 5 [default = false];- Parameters:
value- The sortConstraintsByNumTerms to set.- Returns:
- This builder for chaining.
-
clearSortConstraintsByNumTerms
public BopParameters.Builder clearSortConstraintsByNumTerms()
Sort constraints by increasing total number of terms instead of number of contributing terms.
optional bool sort_constraints_by_num_terms = 5 [default = false];- Returns:
- This builder for chaining.
-
hasUseRandomLns
public boolean hasUseRandomLns()
Use the random Large Neighborhood Search instead of the exhaustive one.
optional bool use_random_lns = 6 [default = true];- Specified by:
hasUseRandomLnsin interfaceBopParametersOrBuilder- Returns:
- Whether the useRandomLns field is set.
-
getUseRandomLns
public boolean getUseRandomLns()
Use the random Large Neighborhood Search instead of the exhaustive one.
optional bool use_random_lns = 6 [default = true];- Specified by:
getUseRandomLnsin interfaceBopParametersOrBuilder- Returns:
- The useRandomLns.
-
setUseRandomLns
public BopParameters.Builder setUseRandomLns(boolean value)
Use the random Large Neighborhood Search instead of the exhaustive one.
optional bool use_random_lns = 6 [default = true];- Parameters:
value- The useRandomLns to set.- Returns:
- This builder for chaining.
-
clearUseRandomLns
public BopParameters.Builder clearUseRandomLns()
Use the random Large Neighborhood Search instead of the exhaustive one.
optional bool use_random_lns = 6 [default = true];- Returns:
- This builder for chaining.
-
hasRandomSeed
public boolean hasRandomSeed()
The seed used to initialize the random generator. TODO(user): Some of our client test fail depending on this value! we need to fix them and ideally randomize our behavior from on test to the next so that this doesn't happen in the future.
optional int32 random_seed = 7 [default = 8];- Specified by:
hasRandomSeedin interfaceBopParametersOrBuilder- Returns:
- Whether the randomSeed field is set.
-
getRandomSeed
public int getRandomSeed()
The seed used to initialize the random generator. TODO(user): Some of our client test fail depending on this value! we need to fix them and ideally randomize our behavior from on test to the next so that this doesn't happen in the future.
optional int32 random_seed = 7 [default = 8];- Specified by:
getRandomSeedin interfaceBopParametersOrBuilder- Returns:
- The randomSeed.
-
setRandomSeed
public BopParameters.Builder setRandomSeed(int value)
The seed used to initialize the random generator. TODO(user): Some of our client test fail depending on this value! we need to fix them and ideally randomize our behavior from on test to the next so that this doesn't happen in the future.
optional int32 random_seed = 7 [default = 8];- Parameters:
value- The randomSeed to set.- Returns:
- This builder for chaining.
-
clearRandomSeed
public BopParameters.Builder clearRandomSeed()
The seed used to initialize the random generator. TODO(user): Some of our client test fail depending on this value! we need to fix them and ideally randomize our behavior from on test to the next so that this doesn't happen in the future.
optional int32 random_seed = 7 [default = 8];- Returns:
- This builder for chaining.
-
hasNumRelaxedVars
public boolean hasNumRelaxedVars()
Number of variables to relax in the exhaustive Large Neighborhood Search.
optional int32 num_relaxed_vars = 8 [default = 10];- Specified by:
hasNumRelaxedVarsin interfaceBopParametersOrBuilder- Returns:
- Whether the numRelaxedVars field is set.
-
getNumRelaxedVars
public int getNumRelaxedVars()
Number of variables to relax in the exhaustive Large Neighborhood Search.
optional int32 num_relaxed_vars = 8 [default = 10];- Specified by:
getNumRelaxedVarsin interfaceBopParametersOrBuilder- Returns:
- The numRelaxedVars.
-
setNumRelaxedVars
public BopParameters.Builder setNumRelaxedVars(int value)
Number of variables to relax in the exhaustive Large Neighborhood Search.
optional int32 num_relaxed_vars = 8 [default = 10];- Parameters:
value- The numRelaxedVars to set.- Returns:
- This builder for chaining.
-
clearNumRelaxedVars
public BopParameters.Builder clearNumRelaxedVars()
Number of variables to relax in the exhaustive Large Neighborhood Search.
optional int32 num_relaxed_vars = 8 [default = 10];- Returns:
- This builder for chaining.
-
hasMaxNumberOfConflictsInRandomLns
public boolean hasMaxNumberOfConflictsInRandomLns()
The number of conflicts the SAT solver has to solve a random LNS subproblem.
optional int32 max_number_of_conflicts_in_random_lns = 9 [default = 2500];- Specified by:
hasMaxNumberOfConflictsInRandomLnsin interfaceBopParametersOrBuilder- Returns:
- Whether the maxNumberOfConflictsInRandomLns field is set.
-
getMaxNumberOfConflictsInRandomLns
public int getMaxNumberOfConflictsInRandomLns()
The number of conflicts the SAT solver has to solve a random LNS subproblem.
optional int32 max_number_of_conflicts_in_random_lns = 9 [default = 2500];- Specified by:
getMaxNumberOfConflictsInRandomLnsin interfaceBopParametersOrBuilder- Returns:
- The maxNumberOfConflictsInRandomLns.
-
setMaxNumberOfConflictsInRandomLns
public BopParameters.Builder setMaxNumberOfConflictsInRandomLns(int value)
The number of conflicts the SAT solver has to solve a random LNS subproblem.
optional int32 max_number_of_conflicts_in_random_lns = 9 [default = 2500];- Parameters:
value- The maxNumberOfConflictsInRandomLns to set.- Returns:
- This builder for chaining.
-
clearMaxNumberOfConflictsInRandomLns
public BopParameters.Builder clearMaxNumberOfConflictsInRandomLns()
The number of conflicts the SAT solver has to solve a random LNS subproblem.
optional int32 max_number_of_conflicts_in_random_lns = 9 [default = 2500];- Returns:
- This builder for chaining.
-
hasNumRandomLnsTries
public boolean hasNumRandomLnsTries()
Number of tries in the random lns.
optional int32 num_random_lns_tries = 10 [default = 1];- Specified by:
hasNumRandomLnsTriesin interfaceBopParametersOrBuilder- Returns:
- Whether the numRandomLnsTries field is set.
-
getNumRandomLnsTries
public int getNumRandomLnsTries()
Number of tries in the random lns.
optional int32 num_random_lns_tries = 10 [default = 1];- Specified by:
getNumRandomLnsTriesin interfaceBopParametersOrBuilder- Returns:
- The numRandomLnsTries.
-
setNumRandomLnsTries
public BopParameters.Builder setNumRandomLnsTries(int value)
Number of tries in the random lns.
optional int32 num_random_lns_tries = 10 [default = 1];- Parameters:
value- The numRandomLnsTries to set.- Returns:
- This builder for chaining.
-
clearNumRandomLnsTries
public BopParameters.Builder clearNumRandomLnsTries()
Number of tries in the random lns.
optional int32 num_random_lns_tries = 10 [default = 1];- Returns:
- This builder for chaining.
-
hasMaxNumberOfBacktracksInLs
public boolean hasMaxNumberOfBacktracksInLs()
Maximum number of backtracks times the number of variables in Local Search, ie. max num backtracks == max_number_of_backtracks_in_ls / num variables.
optional int64 max_number_of_backtracks_in_ls = 11 [default = 100000000];- Specified by:
hasMaxNumberOfBacktracksInLsin interfaceBopParametersOrBuilder- Returns:
- Whether the maxNumberOfBacktracksInLs field is set.
-
getMaxNumberOfBacktracksInLs
public long getMaxNumberOfBacktracksInLs()
Maximum number of backtracks times the number of variables in Local Search, ie. max num backtracks == max_number_of_backtracks_in_ls / num variables.
optional int64 max_number_of_backtracks_in_ls = 11 [default = 100000000];- Specified by:
getMaxNumberOfBacktracksInLsin interfaceBopParametersOrBuilder- Returns:
- The maxNumberOfBacktracksInLs.
-
setMaxNumberOfBacktracksInLs
public BopParameters.Builder setMaxNumberOfBacktracksInLs(long value)
Maximum number of backtracks times the number of variables in Local Search, ie. max num backtracks == max_number_of_backtracks_in_ls / num variables.
optional int64 max_number_of_backtracks_in_ls = 11 [default = 100000000];- Parameters:
value- The maxNumberOfBacktracksInLs to set.- Returns:
- This builder for chaining.
-
clearMaxNumberOfBacktracksInLs
public BopParameters.Builder clearMaxNumberOfBacktracksInLs()
Maximum number of backtracks times the number of variables in Local Search, ie. max num backtracks == max_number_of_backtracks_in_ls / num variables.
optional int64 max_number_of_backtracks_in_ls = 11 [default = 100000000];- Returns:
- This builder for chaining.
-
hasUseLpLns
public boolean hasUseLpLns()
Use Large Neighborhood Search based on the LP relaxation.
optional bool use_lp_lns = 12 [default = true];- Specified by:
hasUseLpLnsin interfaceBopParametersOrBuilder- Returns:
- Whether the useLpLns field is set.
-
getUseLpLns
public boolean getUseLpLns()
Use Large Neighborhood Search based on the LP relaxation.
optional bool use_lp_lns = 12 [default = true];- Specified by:
getUseLpLnsin interfaceBopParametersOrBuilder- Returns:
- The useLpLns.
-
setUseLpLns
public BopParameters.Builder setUseLpLns(boolean value)
Use Large Neighborhood Search based on the LP relaxation.
optional bool use_lp_lns = 12 [default = true];- Parameters:
value- The useLpLns to set.- Returns:
- This builder for chaining.
-
clearUseLpLns
public BopParameters.Builder clearUseLpLns()
Use Large Neighborhood Search based on the LP relaxation.
optional bool use_lp_lns = 12 [default = true];- Returns:
- This builder for chaining.
-
hasUseSatToChooseLnsNeighbourhood
public boolean hasUseSatToChooseLnsNeighbourhood()
Whether we use sat propagation to choose the lns neighbourhood.
optional bool use_sat_to_choose_lns_neighbourhood = 15 [default = true];- Specified by:
hasUseSatToChooseLnsNeighbourhoodin interfaceBopParametersOrBuilder- Returns:
- Whether the useSatToChooseLnsNeighbourhood field is set.
-
getUseSatToChooseLnsNeighbourhood
public boolean getUseSatToChooseLnsNeighbourhood()
Whether we use sat propagation to choose the lns neighbourhood.
optional bool use_sat_to_choose_lns_neighbourhood = 15 [default = true];- Specified by:
getUseSatToChooseLnsNeighbourhoodin interfaceBopParametersOrBuilder- Returns:
- The useSatToChooseLnsNeighbourhood.
-
setUseSatToChooseLnsNeighbourhood
public BopParameters.Builder setUseSatToChooseLnsNeighbourhood(boolean value)
Whether we use sat propagation to choose the lns neighbourhood.
optional bool use_sat_to_choose_lns_neighbourhood = 15 [default = true];- Parameters:
value- The useSatToChooseLnsNeighbourhood to set.- Returns:
- This builder for chaining.
-
clearUseSatToChooseLnsNeighbourhood
public BopParameters.Builder clearUseSatToChooseLnsNeighbourhood()
Whether we use sat propagation to choose the lns neighbourhood.
optional bool use_sat_to_choose_lns_neighbourhood = 15 [default = true];- Returns:
- This builder for chaining.
-
hasMaxNumberOfConflictsForQuickCheck
public boolean hasMaxNumberOfConflictsForQuickCheck()
The number of conflicts the SAT solver has to solve a random LNS subproblem for the quick check of infeasibility.
optional int32 max_number_of_conflicts_for_quick_check = 16 [default = 10];- Specified by:
hasMaxNumberOfConflictsForQuickCheckin interfaceBopParametersOrBuilder- Returns:
- Whether the maxNumberOfConflictsForQuickCheck field is set.
-
getMaxNumberOfConflictsForQuickCheck
public int getMaxNumberOfConflictsForQuickCheck()
The number of conflicts the SAT solver has to solve a random LNS subproblem for the quick check of infeasibility.
optional int32 max_number_of_conflicts_for_quick_check = 16 [default = 10];- Specified by:
getMaxNumberOfConflictsForQuickCheckin interfaceBopParametersOrBuilder- Returns:
- The maxNumberOfConflictsForQuickCheck.
-
setMaxNumberOfConflictsForQuickCheck
public BopParameters.Builder setMaxNumberOfConflictsForQuickCheck(int value)
The number of conflicts the SAT solver has to solve a random LNS subproblem for the quick check of infeasibility.
optional int32 max_number_of_conflicts_for_quick_check = 16 [default = 10];- Parameters:
value- The maxNumberOfConflictsForQuickCheck to set.- Returns:
- This builder for chaining.
-
clearMaxNumberOfConflictsForQuickCheck
public BopParameters.Builder clearMaxNumberOfConflictsForQuickCheck()
The number of conflicts the SAT solver has to solve a random LNS subproblem for the quick check of infeasibility.
optional int32 max_number_of_conflicts_for_quick_check = 16 [default = 10];- Returns:
- This builder for chaining.
-
hasUseSymmetry
public boolean hasUseSymmetry()
If true, find and exploit the eventual symmetries of the problem. TODO(user): turn this on by default once the symmetry finder becomes fast enough to be negligeable for most problem. Or at least support a time limit.
optional bool use_symmetry = 17 [default = false];- Specified by:
hasUseSymmetryin interfaceBopParametersOrBuilder- Returns:
- Whether the useSymmetry field is set.
-
getUseSymmetry
public boolean getUseSymmetry()
If true, find and exploit the eventual symmetries of the problem. TODO(user): turn this on by default once the symmetry finder becomes fast enough to be negligeable for most problem. Or at least support a time limit.
optional bool use_symmetry = 17 [default = false];- Specified by:
getUseSymmetryin interfaceBopParametersOrBuilder- Returns:
- The useSymmetry.
-
setUseSymmetry
public BopParameters.Builder setUseSymmetry(boolean value)
If true, find and exploit the eventual symmetries of the problem. TODO(user): turn this on by default once the symmetry finder becomes fast enough to be negligeable for most problem. Or at least support a time limit.
optional bool use_symmetry = 17 [default = false];- Parameters:
value- The useSymmetry to set.- Returns:
- This builder for chaining.
-
clearUseSymmetry
public BopParameters.Builder clearUseSymmetry()
If true, find and exploit the eventual symmetries of the problem. TODO(user): turn this on by default once the symmetry finder becomes fast enough to be negligeable for most problem. Or at least support a time limit.
optional bool use_symmetry = 17 [default = false];- Returns:
- This builder for chaining.
-
hasExploitSymmetryInSatFirstSolution
public boolean hasExploitSymmetryInSatFirstSolution()
If true, find and exploit symmetries in proving satisfiability in the first problem. This feature is experimental. On some problems, computing symmetries may run forever. You may also run into unforseen problems as this feature was not extensively tested.
optional bool exploit_symmetry_in_sat_first_solution = 40 [default = false];- Specified by:
hasExploitSymmetryInSatFirstSolutionin interfaceBopParametersOrBuilder- Returns:
- Whether the exploitSymmetryInSatFirstSolution field is set.
-
getExploitSymmetryInSatFirstSolution
public boolean getExploitSymmetryInSatFirstSolution()
If true, find and exploit symmetries in proving satisfiability in the first problem. This feature is experimental. On some problems, computing symmetries may run forever. You may also run into unforseen problems as this feature was not extensively tested.
optional bool exploit_symmetry_in_sat_first_solution = 40 [default = false];- Specified by:
getExploitSymmetryInSatFirstSolutionin interfaceBopParametersOrBuilder- Returns:
- The exploitSymmetryInSatFirstSolution.
-
setExploitSymmetryInSatFirstSolution
public BopParameters.Builder setExploitSymmetryInSatFirstSolution(boolean value)
If true, find and exploit symmetries in proving satisfiability in the first problem. This feature is experimental. On some problems, computing symmetries may run forever. You may also run into unforseen problems as this feature was not extensively tested.
optional bool exploit_symmetry_in_sat_first_solution = 40 [default = false];- Parameters:
value- The exploitSymmetryInSatFirstSolution to set.- Returns:
- This builder for chaining.
-
clearExploitSymmetryInSatFirstSolution
public BopParameters.Builder clearExploitSymmetryInSatFirstSolution()
If true, find and exploit symmetries in proving satisfiability in the first problem. This feature is experimental. On some problems, computing symmetries may run forever. You may also run into unforseen problems as this feature was not extensively tested.
optional bool exploit_symmetry_in_sat_first_solution = 40 [default = false];- Returns:
- This builder for chaining.
-
hasMaxNumberOfConflictsInRandomSolutionGeneration
public boolean hasMaxNumberOfConflictsInRandomSolutionGeneration()
The number of conflicts the SAT solver has to generate a random solution.
optional int32 max_number_of_conflicts_in_random_solution_generation = 20 [default = 500];- Specified by:
hasMaxNumberOfConflictsInRandomSolutionGenerationin interfaceBopParametersOrBuilder- Returns:
- Whether the maxNumberOfConflictsInRandomSolutionGeneration field is set.
-
getMaxNumberOfConflictsInRandomSolutionGeneration
public int getMaxNumberOfConflictsInRandomSolutionGeneration()
The number of conflicts the SAT solver has to generate a random solution.
optional int32 max_number_of_conflicts_in_random_solution_generation = 20 [default = 500];- Specified by:
getMaxNumberOfConflictsInRandomSolutionGenerationin interfaceBopParametersOrBuilder- Returns:
- The maxNumberOfConflictsInRandomSolutionGeneration.
-
setMaxNumberOfConflictsInRandomSolutionGeneration
public BopParameters.Builder setMaxNumberOfConflictsInRandomSolutionGeneration(int value)
The number of conflicts the SAT solver has to generate a random solution.
optional int32 max_number_of_conflicts_in_random_solution_generation = 20 [default = 500];- Parameters:
value- The maxNumberOfConflictsInRandomSolutionGeneration to set.- Returns:
- This builder for chaining.
-
clearMaxNumberOfConflictsInRandomSolutionGeneration
public BopParameters.Builder clearMaxNumberOfConflictsInRandomSolutionGeneration()
The number of conflicts the SAT solver has to generate a random solution.
optional int32 max_number_of_conflicts_in_random_solution_generation = 20 [default = 500];- Returns:
- This builder for chaining.
-
hasMaxNumberOfExploredAssignmentsPerTryInLs
public boolean hasMaxNumberOfExploredAssignmentsPerTryInLs()
The maximum number of assignments the Local Search iterates on during one try. Note that if the Local Search is called again on the same solution it will not restart from scratch but will iterate on the next max_number_of_explored_assignments_per_try_in_ls assignments.
optional int64 max_number_of_explored_assignments_per_try_in_ls = 21 [default = 10000];- Specified by:
hasMaxNumberOfExploredAssignmentsPerTryInLsin interfaceBopParametersOrBuilder- Returns:
- Whether the maxNumberOfExploredAssignmentsPerTryInLs field is set.
-
getMaxNumberOfExploredAssignmentsPerTryInLs
public long getMaxNumberOfExploredAssignmentsPerTryInLs()
The maximum number of assignments the Local Search iterates on during one try. Note that if the Local Search is called again on the same solution it will not restart from scratch but will iterate on the next max_number_of_explored_assignments_per_try_in_ls assignments.
optional int64 max_number_of_explored_assignments_per_try_in_ls = 21 [default = 10000];- Specified by:
getMaxNumberOfExploredAssignmentsPerTryInLsin interfaceBopParametersOrBuilder- Returns:
- The maxNumberOfExploredAssignmentsPerTryInLs.
-
setMaxNumberOfExploredAssignmentsPerTryInLs
public BopParameters.Builder setMaxNumberOfExploredAssignmentsPerTryInLs(long value)
The maximum number of assignments the Local Search iterates on during one try. Note that if the Local Search is called again on the same solution it will not restart from scratch but will iterate on the next max_number_of_explored_assignments_per_try_in_ls assignments.
optional int64 max_number_of_explored_assignments_per_try_in_ls = 21 [default = 10000];- Parameters:
value- The maxNumberOfExploredAssignmentsPerTryInLs to set.- Returns:
- This builder for chaining.
-
clearMaxNumberOfExploredAssignmentsPerTryInLs
public BopParameters.Builder clearMaxNumberOfExploredAssignmentsPerTryInLs()
The maximum number of assignments the Local Search iterates on during one try. Note that if the Local Search is called again on the same solution it will not restart from scratch but will iterate on the next max_number_of_explored_assignments_per_try_in_ls assignments.
optional int64 max_number_of_explored_assignments_per_try_in_ls = 21 [default = 10000];- Returns:
- This builder for chaining.
-
hasUseTranspositionTableInLs
public boolean hasUseTranspositionTableInLs()
Whether we use an hash set during the LS to avoid exploring more than once the "same" state. Note that because the underlying SAT solver may learn information in the middle of the LS, this may make the LS slightly less "complete", but it should be faster.
optional bool use_transposition_table_in_ls = 22 [default = true];- Specified by:
hasUseTranspositionTableInLsin interfaceBopParametersOrBuilder- Returns:
- Whether the useTranspositionTableInLs field is set.
-
getUseTranspositionTableInLs
public boolean getUseTranspositionTableInLs()
Whether we use an hash set during the LS to avoid exploring more than once the "same" state. Note that because the underlying SAT solver may learn information in the middle of the LS, this may make the LS slightly less "complete", but it should be faster.
optional bool use_transposition_table_in_ls = 22 [default = true];- Specified by:
getUseTranspositionTableInLsin interfaceBopParametersOrBuilder- Returns:
- The useTranspositionTableInLs.
-
setUseTranspositionTableInLs
public BopParameters.Builder setUseTranspositionTableInLs(boolean value)
Whether we use an hash set during the LS to avoid exploring more than once the "same" state. Note that because the underlying SAT solver may learn information in the middle of the LS, this may make the LS slightly less "complete", but it should be faster.
optional bool use_transposition_table_in_ls = 22 [default = true];- Parameters:
value- The useTranspositionTableInLs to set.- Returns:
- This builder for chaining.
-
clearUseTranspositionTableInLs
public BopParameters.Builder clearUseTranspositionTableInLs()
Whether we use an hash set during the LS to avoid exploring more than once the "same" state. Note that because the underlying SAT solver may learn information in the middle of the LS, this may make the LS slightly less "complete", but it should be faster.
optional bool use_transposition_table_in_ls = 22 [default = true];- Returns:
- This builder for chaining.
-
hasUsePotentialOneFlipRepairsInLs
public boolean hasUsePotentialOneFlipRepairsInLs()
Whether we keep a list of variable that can potentially repair in one flip all the current infeasible constraints (such variable must at least appear in all the infeasible constraints for this to happen).
optional bool use_potential_one_flip_repairs_in_ls = 39 [default = false];- Specified by:
hasUsePotentialOneFlipRepairsInLsin interfaceBopParametersOrBuilder- Returns:
- Whether the usePotentialOneFlipRepairsInLs field is set.
-
getUsePotentialOneFlipRepairsInLs
public boolean getUsePotentialOneFlipRepairsInLs()
Whether we keep a list of variable that can potentially repair in one flip all the current infeasible constraints (such variable must at least appear in all the infeasible constraints for this to happen).
optional bool use_potential_one_flip_repairs_in_ls = 39 [default = false];- Specified by:
getUsePotentialOneFlipRepairsInLsin interfaceBopParametersOrBuilder- Returns:
- The usePotentialOneFlipRepairsInLs.
-
setUsePotentialOneFlipRepairsInLs
public BopParameters.Builder setUsePotentialOneFlipRepairsInLs(boolean value)
Whether we keep a list of variable that can potentially repair in one flip all the current infeasible constraints (such variable must at least appear in all the infeasible constraints for this to happen).
optional bool use_potential_one_flip_repairs_in_ls = 39 [default = false];- Parameters:
value- The usePotentialOneFlipRepairsInLs to set.- Returns:
- This builder for chaining.
-
clearUsePotentialOneFlipRepairsInLs
public BopParameters.Builder clearUsePotentialOneFlipRepairsInLs()
Whether we keep a list of variable that can potentially repair in one flip all the current infeasible constraints (such variable must at least appear in all the infeasible constraints for this to happen).
optional bool use_potential_one_flip_repairs_in_ls = 39 [default = false];- Returns:
- This builder for chaining.
-
hasUseLearnedBinaryClausesInLp
public boolean hasUseLearnedBinaryClausesInLp()
Whether we use the learned binary clauses in the Linear Relaxation.
optional bool use_learned_binary_clauses_in_lp = 23 [default = true];- Specified by:
hasUseLearnedBinaryClausesInLpin interfaceBopParametersOrBuilder- Returns:
- Whether the useLearnedBinaryClausesInLp field is set.
-
getUseLearnedBinaryClausesInLp
public boolean getUseLearnedBinaryClausesInLp()
Whether we use the learned binary clauses in the Linear Relaxation.
optional bool use_learned_binary_clauses_in_lp = 23 [default = true];- Specified by:
getUseLearnedBinaryClausesInLpin interfaceBopParametersOrBuilder- Returns:
- The useLearnedBinaryClausesInLp.
-
setUseLearnedBinaryClausesInLp
public BopParameters.Builder setUseLearnedBinaryClausesInLp(boolean value)
Whether we use the learned binary clauses in the Linear Relaxation.
optional bool use_learned_binary_clauses_in_lp = 23 [default = true];- Parameters:
value- The useLearnedBinaryClausesInLp to set.- Returns:
- This builder for chaining.
-
clearUseLearnedBinaryClausesInLp
public BopParameters.Builder clearUseLearnedBinaryClausesInLp()
Whether we use the learned binary clauses in the Linear Relaxation.
optional bool use_learned_binary_clauses_in_lp = 23 [default = true];- Returns:
- This builder for chaining.
-
hasNumberOfSolvers
public boolean hasNumberOfSolvers()
The number of solvers used to run Bop. Note that one thread will be created per solver. The type of communication between solvers is specified by the synchronization_type parameter.
optional int32 number_of_solvers = 24 [default = 1];- Specified by:
hasNumberOfSolversin interfaceBopParametersOrBuilder- Returns:
- Whether the numberOfSolvers field is set.
-
getNumberOfSolvers
public int getNumberOfSolvers()
The number of solvers used to run Bop. Note that one thread will be created per solver. The type of communication between solvers is specified by the synchronization_type parameter.
optional int32 number_of_solvers = 24 [default = 1];- Specified by:
getNumberOfSolversin interfaceBopParametersOrBuilder- Returns:
- The numberOfSolvers.
-
setNumberOfSolvers
public BopParameters.Builder setNumberOfSolvers(int value)
The number of solvers used to run Bop. Note that one thread will be created per solver. The type of communication between solvers is specified by the synchronization_type parameter.
optional int32 number_of_solvers = 24 [default = 1];- Parameters:
value- The numberOfSolvers to set.- Returns:
- This builder for chaining.
-
clearNumberOfSolvers
public BopParameters.Builder clearNumberOfSolvers()
The number of solvers used to run Bop. Note that one thread will be created per solver. The type of communication between solvers is specified by the synchronization_type parameter.
optional int32 number_of_solvers = 24 [default = 1];- Returns:
- This builder for chaining.
-
hasSynchronizationType
public boolean hasSynchronizationType()
optional .operations_research.bop.BopParameters.ThreadSynchronizationType synchronization_type = 25 [default = NO_SYNCHRONIZATION];- Specified by:
hasSynchronizationTypein interfaceBopParametersOrBuilder- Returns:
- Whether the synchronizationType field is set.
-
getSynchronizationType
public BopParameters.ThreadSynchronizationType getSynchronizationType()
optional .operations_research.bop.BopParameters.ThreadSynchronizationType synchronization_type = 25 [default = NO_SYNCHRONIZATION];- Specified by:
getSynchronizationTypein interfaceBopParametersOrBuilder- Returns:
- The synchronizationType.
-
setSynchronizationType
public BopParameters.Builder setSynchronizationType(BopParameters.ThreadSynchronizationType value)
optional .operations_research.bop.BopParameters.ThreadSynchronizationType synchronization_type = 25 [default = NO_SYNCHRONIZATION];- Parameters:
value- The synchronizationType to set.- Returns:
- This builder for chaining.
-
clearSynchronizationType
public BopParameters.Builder clearSynchronizationType()
optional .operations_research.bop.BopParameters.ThreadSynchronizationType synchronization_type = 25 [default = NO_SYNCHRONIZATION];- Returns:
- This builder for chaining.
-
getSolverOptimizerSetsList
public java.util.List<BopSolverOptimizerSet> getSolverOptimizerSetsList()
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;- Specified by:
getSolverOptimizerSetsListin interfaceBopParametersOrBuilder
-
getSolverOptimizerSetsCount
public int getSolverOptimizerSetsCount()
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;- Specified by:
getSolverOptimizerSetsCountin interfaceBopParametersOrBuilder
-
getSolverOptimizerSets
public BopSolverOptimizerSet getSolverOptimizerSets(int index)
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;- Specified by:
getSolverOptimizerSetsin interfaceBopParametersOrBuilder
-
setSolverOptimizerSets
public BopParameters.Builder setSolverOptimizerSets(int index, BopSolverOptimizerSet value)
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
-
setSolverOptimizerSets
public BopParameters.Builder setSolverOptimizerSets(int index, BopSolverOptimizerSet.Builder builderForValue)
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
-
addSolverOptimizerSets
public BopParameters.Builder addSolverOptimizerSets(BopSolverOptimizerSet value)
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
-
addSolverOptimizerSets
public BopParameters.Builder addSolverOptimizerSets(int index, BopSolverOptimizerSet value)
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
-
addSolverOptimizerSets
public BopParameters.Builder addSolverOptimizerSets(BopSolverOptimizerSet.Builder builderForValue)
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
-
addSolverOptimizerSets
public BopParameters.Builder addSolverOptimizerSets(int index, BopSolverOptimizerSet.Builder builderForValue)
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
-
addAllSolverOptimizerSets
public BopParameters.Builder addAllSolverOptimizerSets(java.lang.Iterable<? extends BopSolverOptimizerSet> values)
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
-
clearSolverOptimizerSets
public BopParameters.Builder clearSolverOptimizerSets()
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
-
removeSolverOptimizerSets
public BopParameters.Builder removeSolverOptimizerSets(int index)
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
-
getSolverOptimizerSetsBuilder
public BopSolverOptimizerSet.Builder getSolverOptimizerSetsBuilder(int index)
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
-
getSolverOptimizerSetsOrBuilder
public BopSolverOptimizerSetOrBuilder getSolverOptimizerSetsOrBuilder(int index)
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;- Specified by:
getSolverOptimizerSetsOrBuilderin interfaceBopParametersOrBuilder
-
getSolverOptimizerSetsOrBuilderList
public java.util.List<? extends BopSolverOptimizerSetOrBuilder> getSolverOptimizerSetsOrBuilderList()
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;- Specified by:
getSolverOptimizerSetsOrBuilderListin interfaceBopParametersOrBuilder
-
addSolverOptimizerSetsBuilder
public BopSolverOptimizerSet.Builder addSolverOptimizerSetsBuilder()
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
-
addSolverOptimizerSetsBuilder
public BopSolverOptimizerSet.Builder addSolverOptimizerSetsBuilder(int index)
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
-
getSolverOptimizerSetsBuilderList
public java.util.List<BopSolverOptimizerSet.Builder> getSolverOptimizerSetsBuilderList()
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
-
hasDefaultSolverOptimizerSets
public boolean hasDefaultSolverOptimizerSets()
optional string default_solver_optimizer_sets = 33 [default = "methods:{type:LOCAL_SEARCH } methods:{type:RANDOM_FIRST_SOLUTION } methods:{type:LINEAR_RELAXATION } methods:{type:LP_FIRST_SOLUTION } methods:{type:OBJECTIVE_FIRST_SOLUTION } methods:{type:USER_GUIDED_FIRST_SOLUTION } methods:{type:RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP } methods:{type:RANDOM_VARIABLE_LNS_GUIDED_BY_LP } methods:{type:RELATION_GRAPH_LNS } methods:{type:RELATION_GRAPH_LNS_GUIDED_BY_LP } methods:{type:RANDOM_CONSTRAINT_LNS } methods:{type:RANDOM_VARIABLE_LNS } methods:{type:SAT_CORE_BASED } methods:{type:COMPLETE_LNS } "];- Specified by:
hasDefaultSolverOptimizerSetsin interfaceBopParametersOrBuilder- Returns:
- Whether the defaultSolverOptimizerSets field is set.
-
getDefaultSolverOptimizerSets
public java.lang.String getDefaultSolverOptimizerSets()
optional string default_solver_optimizer_sets = 33 [default = "methods:{type:LOCAL_SEARCH } methods:{type:RANDOM_FIRST_SOLUTION } methods:{type:LINEAR_RELAXATION } methods:{type:LP_FIRST_SOLUTION } methods:{type:OBJECTIVE_FIRST_SOLUTION } methods:{type:USER_GUIDED_FIRST_SOLUTION } methods:{type:RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP } methods:{type:RANDOM_VARIABLE_LNS_GUIDED_BY_LP } methods:{type:RELATION_GRAPH_LNS } methods:{type:RELATION_GRAPH_LNS_GUIDED_BY_LP } methods:{type:RANDOM_CONSTRAINT_LNS } methods:{type:RANDOM_VARIABLE_LNS } methods:{type:SAT_CORE_BASED } methods:{type:COMPLETE_LNS } "];- Specified by:
getDefaultSolverOptimizerSetsin interfaceBopParametersOrBuilder- Returns:
- The defaultSolverOptimizerSets.
-
getDefaultSolverOptimizerSetsBytes
public com.google.protobuf.ByteString getDefaultSolverOptimizerSetsBytes()
optional string default_solver_optimizer_sets = 33 [default = "methods:{type:LOCAL_SEARCH } methods:{type:RANDOM_FIRST_SOLUTION } methods:{type:LINEAR_RELAXATION } methods:{type:LP_FIRST_SOLUTION } methods:{type:OBJECTIVE_FIRST_SOLUTION } methods:{type:USER_GUIDED_FIRST_SOLUTION } methods:{type:RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP } methods:{type:RANDOM_VARIABLE_LNS_GUIDED_BY_LP } methods:{type:RELATION_GRAPH_LNS } methods:{type:RELATION_GRAPH_LNS_GUIDED_BY_LP } methods:{type:RANDOM_CONSTRAINT_LNS } methods:{type:RANDOM_VARIABLE_LNS } methods:{type:SAT_CORE_BASED } methods:{type:COMPLETE_LNS } "];- Specified by:
getDefaultSolverOptimizerSetsBytesin interfaceBopParametersOrBuilder- Returns:
- The bytes for defaultSolverOptimizerSets.
-
setDefaultSolverOptimizerSets
public BopParameters.Builder setDefaultSolverOptimizerSets(java.lang.String value)
optional string default_solver_optimizer_sets = 33 [default = "methods:{type:LOCAL_SEARCH } methods:{type:RANDOM_FIRST_SOLUTION } methods:{type:LINEAR_RELAXATION } methods:{type:LP_FIRST_SOLUTION } methods:{type:OBJECTIVE_FIRST_SOLUTION } methods:{type:USER_GUIDED_FIRST_SOLUTION } methods:{type:RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP } methods:{type:RANDOM_VARIABLE_LNS_GUIDED_BY_LP } methods:{type:RELATION_GRAPH_LNS } methods:{type:RELATION_GRAPH_LNS_GUIDED_BY_LP } methods:{type:RANDOM_CONSTRAINT_LNS } methods:{type:RANDOM_VARIABLE_LNS } methods:{type:SAT_CORE_BASED } methods:{type:COMPLETE_LNS } "];- Parameters:
value- The defaultSolverOptimizerSets to set.- Returns:
- This builder for chaining.
-
clearDefaultSolverOptimizerSets
public BopParameters.Builder clearDefaultSolverOptimizerSets()
optional string default_solver_optimizer_sets = 33 [default = "methods:{type:LOCAL_SEARCH } methods:{type:RANDOM_FIRST_SOLUTION } methods:{type:LINEAR_RELAXATION } methods:{type:LP_FIRST_SOLUTION } methods:{type:OBJECTIVE_FIRST_SOLUTION } methods:{type:USER_GUIDED_FIRST_SOLUTION } methods:{type:RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP } methods:{type:RANDOM_VARIABLE_LNS_GUIDED_BY_LP } methods:{type:RELATION_GRAPH_LNS } methods:{type:RELATION_GRAPH_LNS_GUIDED_BY_LP } methods:{type:RANDOM_CONSTRAINT_LNS } methods:{type:RANDOM_VARIABLE_LNS } methods:{type:SAT_CORE_BASED } methods:{type:COMPLETE_LNS } "];- Returns:
- This builder for chaining.
-
setDefaultSolverOptimizerSetsBytes
public BopParameters.Builder setDefaultSolverOptimizerSetsBytes(com.google.protobuf.ByteString value)
optional string default_solver_optimizer_sets = 33 [default = "methods:{type:LOCAL_SEARCH } methods:{type:RANDOM_FIRST_SOLUTION } methods:{type:LINEAR_RELAXATION } methods:{type:LP_FIRST_SOLUTION } methods:{type:OBJECTIVE_FIRST_SOLUTION } methods:{type:USER_GUIDED_FIRST_SOLUTION } methods:{type:RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP } methods:{type:RANDOM_VARIABLE_LNS_GUIDED_BY_LP } methods:{type:RELATION_GRAPH_LNS } methods:{type:RELATION_GRAPH_LNS_GUIDED_BY_LP } methods:{type:RANDOM_CONSTRAINT_LNS } methods:{type:RANDOM_VARIABLE_LNS } methods:{type:SAT_CORE_BASED } methods:{type:COMPLETE_LNS } "];- Parameters:
value- The bytes for defaultSolverOptimizerSets to set.- Returns:
- This builder for chaining.
-
hasUseLpStrongBranching
public boolean hasUseLpStrongBranching()
Use strong branching in the linear relaxation optimizer. The strong branching is a what-if analysis on each variable v, i.e. compute the best bound when v is assigned to true, compute the best bound when v is assigned to false, and then use those best bounds to improve the overall best bound. This is useful to improve the best_bound, but also to fix some variables during search. Note that using probing might be time consuming as it runs the LP solver 2 * num_variables times.
optional bool use_lp_strong_branching = 29 [default = false];- Specified by:
hasUseLpStrongBranchingin interfaceBopParametersOrBuilder- Returns:
- Whether the useLpStrongBranching field is set.
-
getUseLpStrongBranching
public boolean getUseLpStrongBranching()
Use strong branching in the linear relaxation optimizer. The strong branching is a what-if analysis on each variable v, i.e. compute the best bound when v is assigned to true, compute the best bound when v is assigned to false, and then use those best bounds to improve the overall best bound. This is useful to improve the best_bound, but also to fix some variables during search. Note that using probing might be time consuming as it runs the LP solver 2 * num_variables times.
optional bool use_lp_strong_branching = 29 [default = false];- Specified by:
getUseLpStrongBranchingin interfaceBopParametersOrBuilder- Returns:
- The useLpStrongBranching.
-
setUseLpStrongBranching
public BopParameters.Builder setUseLpStrongBranching(boolean value)
Use strong branching in the linear relaxation optimizer. The strong branching is a what-if analysis on each variable v, i.e. compute the best bound when v is assigned to true, compute the best bound when v is assigned to false, and then use those best bounds to improve the overall best bound. This is useful to improve the best_bound, but also to fix some variables during search. Note that using probing might be time consuming as it runs the LP solver 2 * num_variables times.
optional bool use_lp_strong_branching = 29 [default = false];- Parameters:
value- The useLpStrongBranching to set.- Returns:
- This builder for chaining.
-
clearUseLpStrongBranching
public BopParameters.Builder clearUseLpStrongBranching()
Use strong branching in the linear relaxation optimizer. The strong branching is a what-if analysis on each variable v, i.e. compute the best bound when v is assigned to true, compute the best bound when v is assigned to false, and then use those best bounds to improve the overall best bound. This is useful to improve the best_bound, but also to fix some variables during search. Note that using probing might be time consuming as it runs the LP solver 2 * num_variables times.
optional bool use_lp_strong_branching = 29 [default = false];- Returns:
- This builder for chaining.
-
hasDecomposerNumVariablesThreshold
public boolean hasDecomposerNumVariablesThreshold()
Only try to decompose the problem when the number of variables is greater than the threshold.
optional int32 decomposer_num_variables_threshold = 30 [default = 50];- Specified by:
hasDecomposerNumVariablesThresholdin interfaceBopParametersOrBuilder- Returns:
- Whether the decomposerNumVariablesThreshold field is set.
-
getDecomposerNumVariablesThreshold
public int getDecomposerNumVariablesThreshold()
Only try to decompose the problem when the number of variables is greater than the threshold.
optional int32 decomposer_num_variables_threshold = 30 [default = 50];- Specified by:
getDecomposerNumVariablesThresholdin interfaceBopParametersOrBuilder- Returns:
- The decomposerNumVariablesThreshold.
-
setDecomposerNumVariablesThreshold
public BopParameters.Builder setDecomposerNumVariablesThreshold(int value)
Only try to decompose the problem when the number of variables is greater than the threshold.
optional int32 decomposer_num_variables_threshold = 30 [default = 50];- Parameters:
value- The decomposerNumVariablesThreshold to set.- Returns:
- This builder for chaining.
-
clearDecomposerNumVariablesThreshold
public BopParameters.Builder clearDecomposerNumVariablesThreshold()
Only try to decompose the problem when the number of variables is greater than the threshold.
optional int32 decomposer_num_variables_threshold = 30 [default = 50];- Returns:
- This builder for chaining.
-
hasNumBopSolversUsedByDecomposition
public boolean hasNumBopSolversUsedByDecomposition()
The number of BopSolver created (thread pool workers) used by the integral solver to solve a decomposed problem. TODO(user): Merge this with the number_of_solvers parameter.
optional int32 num_bop_solvers_used_by_decomposition = 31 [default = 1];- Specified by:
hasNumBopSolversUsedByDecompositionin interfaceBopParametersOrBuilder- Returns:
- Whether the numBopSolversUsedByDecomposition field is set.
-
getNumBopSolversUsedByDecomposition
public int getNumBopSolversUsedByDecomposition()
The number of BopSolver created (thread pool workers) used by the integral solver to solve a decomposed problem. TODO(user): Merge this with the number_of_solvers parameter.
optional int32 num_bop_solvers_used_by_decomposition = 31 [default = 1];- Specified by:
getNumBopSolversUsedByDecompositionin interfaceBopParametersOrBuilder- Returns:
- The numBopSolversUsedByDecomposition.
-
setNumBopSolversUsedByDecomposition
public BopParameters.Builder setNumBopSolversUsedByDecomposition(int value)
The number of BopSolver created (thread pool workers) used by the integral solver to solve a decomposed problem. TODO(user): Merge this with the number_of_solvers parameter.
optional int32 num_bop_solvers_used_by_decomposition = 31 [default = 1];- Parameters:
value- The numBopSolversUsedByDecomposition to set.- Returns:
- This builder for chaining.
-
clearNumBopSolversUsedByDecomposition
public BopParameters.Builder clearNumBopSolversUsedByDecomposition()
The number of BopSolver created (thread pool workers) used by the integral solver to solve a decomposed problem. TODO(user): Merge this with the number_of_solvers parameter.
optional int32 num_bop_solvers_used_by_decomposition = 31 [default = 1];- Returns:
- This builder for chaining.
-
hasDecomposedProblemMinTimeInSeconds
public boolean hasDecomposedProblemMinTimeInSeconds()
HACK. To avoid spending too little time on small problems, spend at least this time solving each of the decomposed sub-problem. This only make sense if num_bop_solvers_used_by_decomposition is greater than 1 so that the overhead can be "absorbed" by the other threads.
optional double decomposed_problem_min_time_in_seconds = 36 [default = 0];- Specified by:
hasDecomposedProblemMinTimeInSecondsin interfaceBopParametersOrBuilder- Returns:
- Whether the decomposedProblemMinTimeInSeconds field is set.
-
getDecomposedProblemMinTimeInSeconds
public double getDecomposedProblemMinTimeInSeconds()
HACK. To avoid spending too little time on small problems, spend at least this time solving each of the decomposed sub-problem. This only make sense if num_bop_solvers_used_by_decomposition is greater than 1 so that the overhead can be "absorbed" by the other threads.
optional double decomposed_problem_min_time_in_seconds = 36 [default = 0];- Specified by:
getDecomposedProblemMinTimeInSecondsin interfaceBopParametersOrBuilder- Returns:
- The decomposedProblemMinTimeInSeconds.
-
setDecomposedProblemMinTimeInSeconds
public BopParameters.Builder setDecomposedProblemMinTimeInSeconds(double value)
HACK. To avoid spending too little time on small problems, spend at least this time solving each of the decomposed sub-problem. This only make sense if num_bop_solvers_used_by_decomposition is greater than 1 so that the overhead can be "absorbed" by the other threads.
optional double decomposed_problem_min_time_in_seconds = 36 [default = 0];- Parameters:
value- The decomposedProblemMinTimeInSeconds to set.- Returns:
- This builder for chaining.
-
clearDecomposedProblemMinTimeInSeconds
public BopParameters.Builder clearDecomposedProblemMinTimeInSeconds()
HACK. To avoid spending too little time on small problems, spend at least this time solving each of the decomposed sub-problem. This only make sense if num_bop_solvers_used_by_decomposition is greater than 1 so that the overhead can be "absorbed" by the other threads.
optional double decomposed_problem_min_time_in_seconds = 36 [default = 0];- Returns:
- This builder for chaining.
-
hasGuidedSatConflictsChunk
public boolean hasGuidedSatConflictsChunk()
The first solutions based on guided SAT will work in chunk of that many conflicts at the time. This allows to simulate parallelism between the different guiding strategy on a single core.
optional int32 guided_sat_conflicts_chunk = 34 [default = 1000];- Specified by:
hasGuidedSatConflictsChunkin interfaceBopParametersOrBuilder- Returns:
- Whether the guidedSatConflictsChunk field is set.
-
getGuidedSatConflictsChunk
public int getGuidedSatConflictsChunk()
The first solutions based on guided SAT will work in chunk of that many conflicts at the time. This allows to simulate parallelism between the different guiding strategy on a single core.
optional int32 guided_sat_conflicts_chunk = 34 [default = 1000];- Specified by:
getGuidedSatConflictsChunkin interfaceBopParametersOrBuilder- Returns:
- The guidedSatConflictsChunk.
-
setGuidedSatConflictsChunk
public BopParameters.Builder setGuidedSatConflictsChunk(int value)
The first solutions based on guided SAT will work in chunk of that many conflicts at the time. This allows to simulate parallelism between the different guiding strategy on a single core.
optional int32 guided_sat_conflicts_chunk = 34 [default = 1000];- Parameters:
value- The guidedSatConflictsChunk to set.- Returns:
- This builder for chaining.
-
clearGuidedSatConflictsChunk
public BopParameters.Builder clearGuidedSatConflictsChunk()
The first solutions based on guided SAT will work in chunk of that many conflicts at the time. This allows to simulate parallelism between the different guiding strategy on a single core.
optional int32 guided_sat_conflicts_chunk = 34 [default = 1000];- Returns:
- This builder for chaining.
-
hasMaxLpSolveForFeasibilityProblems
public boolean hasMaxLpSolveForFeasibilityProblems()
The maximum number of time the LP solver will run to feasibility for pure feasibility problems (with a constant-valued objective function). Set this to a small value, e.g., 1, if fractional solutions offer useful guidance to other solvers in the portfolio. A negative value means no limit.
optional int32 max_lp_solve_for_feasibility_problems = 41 [default = 0];- Specified by:
hasMaxLpSolveForFeasibilityProblemsin interfaceBopParametersOrBuilder- Returns:
- Whether the maxLpSolveForFeasibilityProblems field is set.
-
getMaxLpSolveForFeasibilityProblems
public int getMaxLpSolveForFeasibilityProblems()
The maximum number of time the LP solver will run to feasibility for pure feasibility problems (with a constant-valued objective function). Set this to a small value, e.g., 1, if fractional solutions offer useful guidance to other solvers in the portfolio. A negative value means no limit.
optional int32 max_lp_solve_for_feasibility_problems = 41 [default = 0];- Specified by:
getMaxLpSolveForFeasibilityProblemsin interfaceBopParametersOrBuilder- Returns:
- The maxLpSolveForFeasibilityProblems.
-
setMaxLpSolveForFeasibilityProblems
public BopParameters.Builder setMaxLpSolveForFeasibilityProblems(int value)
The maximum number of time the LP solver will run to feasibility for pure feasibility problems (with a constant-valued objective function). Set this to a small value, e.g., 1, if fractional solutions offer useful guidance to other solvers in the portfolio. A negative value means no limit.
optional int32 max_lp_solve_for_feasibility_problems = 41 [default = 0];- Parameters:
value- The maxLpSolveForFeasibilityProblems to set.- Returns:
- This builder for chaining.
-
clearMaxLpSolveForFeasibilityProblems
public BopParameters.Builder clearMaxLpSolveForFeasibilityProblems()
The maximum number of time the LP solver will run to feasibility for pure feasibility problems (with a constant-valued objective function). Set this to a small value, e.g., 1, if fractional solutions offer useful guidance to other solvers in the portfolio. A negative value means no limit.
optional int32 max_lp_solve_for_feasibility_problems = 41 [default = 0];- Returns:
- This builder for chaining.
-
setUnknownFields
public final BopParameters.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BopParameters.Builder>
-
mergeUnknownFields
public final BopParameters.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BopParameters.Builder>
-
-