Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.SatParametersOrBuilder Interface Reference
Inheritance diagram for com.google.ortools.sat.SatParametersOrBuilder:
com.google.ortools.sat.SatParameters com.google.ortools.sat.SatParameters.Builder

Public Member Functions

boolean hasName ()
 
java.lang.String getName ()
 
com.google.protobuf.ByteString getNameBytes ()
 
boolean hasPreferredVariableOrder ()
 
com.google.ortools.sat.SatParameters.VariableOrder getPreferredVariableOrder ()
 
boolean hasInitialPolarity ()
 
com.google.ortools.sat.SatParameters.Polarity getInitialPolarity ()
 
boolean hasUsePhaseSaving ()
 
boolean getUsePhaseSaving ()
 
boolean hasPolarityRephaseIncrement ()
 
int getPolarityRephaseIncrement ()
 
boolean hasRandomPolarityRatio ()
 
double getRandomPolarityRatio ()
 
boolean hasRandomBranchesRatio ()
 
double getRandomBranchesRatio ()
 
boolean hasUseErwaHeuristic ()
 
boolean getUseErwaHeuristic ()
 
boolean hasInitialVariablesActivity ()
 
double getInitialVariablesActivity ()
 
boolean hasAlsoBumpVariablesInConflictReasons ()
 
boolean getAlsoBumpVariablesInConflictReasons ()
 
boolean hasMinimizationAlgorithm ()
 
com.google.ortools.sat.SatParameters.ConflictMinimizationAlgorithm getMinimizationAlgorithm ()
 
boolean hasBinaryMinimizationAlgorithm ()
 
com.google.ortools.sat.SatParameters.BinaryMinizationAlgorithm getBinaryMinimizationAlgorithm ()
 
boolean hasSubsumptionDuringConflictAnalysis ()
 
boolean getSubsumptionDuringConflictAnalysis ()
 
boolean hasClauseCleanupPeriod ()
 
int getClauseCleanupPeriod ()
 
boolean hasClauseCleanupTarget ()
 
int getClauseCleanupTarget ()
 
boolean hasClauseCleanupRatio ()
 
double getClauseCleanupRatio ()
 
boolean hasClauseCleanupProtection ()
 
com.google.ortools.sat.SatParameters.ClauseProtection getClauseCleanupProtection ()
 
boolean hasClauseCleanupLbdBound ()
 
int getClauseCleanupLbdBound ()
 
boolean hasClauseCleanupOrdering ()
 
com.google.ortools.sat.SatParameters.ClauseOrdering getClauseCleanupOrdering ()
 
boolean hasPbCleanupIncrement ()
 
int getPbCleanupIncrement ()
 
boolean hasPbCleanupRatio ()
 
double getPbCleanupRatio ()
 
boolean hasVariableActivityDecay ()
 
double getVariableActivityDecay ()
 
boolean hasMaxVariableActivityValue ()
 
double getMaxVariableActivityValue ()
 
boolean hasGlucoseMaxDecay ()
 
double getGlucoseMaxDecay ()
 
boolean hasGlucoseDecayIncrement ()
 
double getGlucoseDecayIncrement ()
 
boolean hasGlucoseDecayIncrementPeriod ()
 
int getGlucoseDecayIncrementPeriod ()
 
boolean hasClauseActivityDecay ()
 
double getClauseActivityDecay ()
 
boolean hasMaxClauseActivityValue ()
 
double getMaxClauseActivityValue ()
 
java.util.List< com.google.ortools.sat.SatParameters.RestartAlgorithmgetRestartAlgorithmsList ()
 
int getRestartAlgorithmsCount ()
 
com.google.ortools.sat.SatParameters.RestartAlgorithm getRestartAlgorithms (int index)
 
boolean hasDefaultRestartAlgorithms ()
 
java.lang.String getDefaultRestartAlgorithms ()
 
com.google.protobuf.ByteString getDefaultRestartAlgorithmsBytes ()
 
boolean hasRestartPeriod ()
 
int getRestartPeriod ()
 
boolean hasRestartRunningWindowSize ()
 
int getRestartRunningWindowSize ()
 
boolean hasRestartDlAverageRatio ()
 
double getRestartDlAverageRatio ()
 
boolean hasRestartLbdAverageRatio ()
 
double getRestartLbdAverageRatio ()
 
boolean hasUseBlockingRestart ()
 
boolean getUseBlockingRestart ()
 
boolean hasBlockingRestartWindowSize ()
 
int getBlockingRestartWindowSize ()
 
boolean hasBlockingRestartMultiplier ()
 
double getBlockingRestartMultiplier ()
 
boolean hasNumConflictsBeforeStrategyChanges ()
 
int getNumConflictsBeforeStrategyChanges ()
 
boolean hasStrategyChangeIncreaseRatio ()
 
double getStrategyChangeIncreaseRatio ()
 
boolean hasMaxTimeInSeconds ()
 
double getMaxTimeInSeconds ()
 
boolean hasMaxDeterministicTime ()
 
double getMaxDeterministicTime ()
 
boolean hasMaxNumberOfConflicts ()
 
long getMaxNumberOfConflicts ()
 
boolean hasMaxMemoryInMb ()
 
long getMaxMemoryInMb ()
 
boolean hasAbsoluteGapLimit ()
 
double getAbsoluteGapLimit ()
 
boolean hasRelativeGapLimit ()
 
double getRelativeGapLimit ()
 
boolean hasRandomSeed ()
 
int getRandomSeed ()
 
boolean hasPermuteVariableRandomly ()
 
boolean getPermuteVariableRandomly ()
 
boolean hasPermutePresolveConstraintOrder ()
 
boolean getPermutePresolveConstraintOrder ()
 
boolean hasUseAbslRandom ()
 
boolean getUseAbslRandom ()
 
boolean hasLogSearchProgress ()
 
boolean getLogSearchProgress ()
 
boolean hasLogSubsolverStatistics ()
 
boolean getLogSubsolverStatistics ()
 
boolean hasLogPrefix ()
 
java.lang.String getLogPrefix ()
 
com.google.protobuf.ByteString getLogPrefixBytes ()
 
boolean hasLogToStdout ()
 
boolean getLogToStdout ()
 
boolean hasLogToResponse ()
 
boolean getLogToResponse ()
 
boolean hasUsePbResolution ()
 
boolean getUsePbResolution ()
 
boolean hasMinimizeReductionDuringPbResolution ()
 
boolean getMinimizeReductionDuringPbResolution ()
 
boolean hasCountAssumptionLevelsInLbd ()
 
boolean getCountAssumptionLevelsInLbd ()
 
boolean hasPresolveBveThreshold ()
 
int getPresolveBveThreshold ()
 
boolean hasPresolveBveClauseWeight ()
 
int getPresolveBveClauseWeight ()
 
boolean hasProbingDeterministicTimeLimit ()
 
double getProbingDeterministicTimeLimit ()
 
boolean hasPresolveProbingDeterministicTimeLimit ()
 
double getPresolveProbingDeterministicTimeLimit ()
 
boolean hasPresolveBlockedClause ()
 
boolean getPresolveBlockedClause ()
 
boolean hasPresolveUseBva ()
 
boolean getPresolveUseBva ()
 
boolean hasPresolveBvaThreshold ()
 
int getPresolveBvaThreshold ()
 
boolean hasMaxPresolveIterations ()
 
int getMaxPresolveIterations ()
 
boolean hasCpModelPresolve ()
 
boolean getCpModelPresolve ()
 
boolean hasCpModelProbingLevel ()
 
int getCpModelProbingLevel ()
 
boolean hasCpModelUseSatPresolve ()
 
boolean getCpModelUseSatPresolve ()
 
boolean hasDetectTableWithCost ()
 
boolean getDetectTableWithCost ()
 
boolean hasTableCompressionLevel ()
 
int getTableCompressionLevel ()
 
boolean hasExpandAlldiffConstraints ()
 
boolean getExpandAlldiffConstraints ()
 
boolean hasExpandReservoirConstraints ()
 
boolean getExpandReservoirConstraints ()
 
boolean hasDisableConstraintExpansion ()
 
boolean getDisableConstraintExpansion ()
 
boolean hasEncodeComplexLinearConstraintWithInteger ()
 
boolean getEncodeComplexLinearConstraintWithInteger ()
 
boolean hasMergeNoOverlapWorkLimit ()
 
double getMergeNoOverlapWorkLimit ()
 
boolean hasMergeAtMostOneWorkLimit ()
 
double getMergeAtMostOneWorkLimit ()
 
boolean hasPresolveSubstitutionLevel ()
 
int getPresolveSubstitutionLevel ()
 
boolean hasPresolveExtractIntegerEnforcement ()
 
boolean getPresolveExtractIntegerEnforcement ()
 
boolean hasPresolveInclusionWorkLimit ()
 
long getPresolveInclusionWorkLimit ()
 
boolean hasIgnoreNames ()
 
boolean getIgnoreNames ()
 
boolean hasInferAllDiffs ()
 
boolean getInferAllDiffs ()
 
boolean hasFindBigLinearOverlap ()
 
boolean getFindBigLinearOverlap ()
 
boolean hasUseSatInprocessing ()
 
boolean getUseSatInprocessing ()
 
boolean hasInprocessingDtimeRatio ()
 
double getInprocessingDtimeRatio ()
 
boolean hasInprocessingProbingDtime ()
 
double getInprocessingProbingDtime ()
 
boolean hasInprocessingMinimizationDtime ()
 
double getInprocessingMinimizationDtime ()
 
boolean hasNumWorkers ()
 
int getNumWorkers ()
 
boolean hasNumSearchWorkers ()
 
int getNumSearchWorkers ()
 
boolean hasMinNumLnsWorkers ()
 
int getMinNumLnsWorkers ()
 
java.util.List< java.lang.String > getSubsolversList ()
 
int getSubsolversCount ()
 
java.lang.String getSubsolvers (int index)
 
com.google.protobuf.ByteString getSubsolversBytes (int index)
 
java.util.List< java.lang.String > getExtraSubsolversList ()
 
int getExtraSubsolversCount ()
 
java.lang.String getExtraSubsolvers (int index)
 
com.google.protobuf.ByteString getExtraSubsolversBytes (int index)
 
java.util.List< java.lang.String > getIgnoreSubsolversList ()
 
int getIgnoreSubsolversCount ()
 
java.lang.String getIgnoreSubsolvers (int index)
 
com.google.protobuf.ByteString getIgnoreSubsolversBytes (int index)
 
java.util.List< com.google.ortools.sat.SatParametersgetSubsolverParamsList ()
 
com.google.ortools.sat.SatParameters getSubsolverParams (int index)
 
int getSubsolverParamsCount ()
 
java.util.List<? extends com.google.ortools.sat.SatParametersOrBuildergetSubsolverParamsOrBuilderList ()
 
com.google.ortools.sat.SatParametersOrBuilder getSubsolverParamsOrBuilder (int index)
 
boolean hasInterleaveSearch ()
 
boolean getInterleaveSearch ()
 
boolean hasInterleaveBatchSize ()
 
int getInterleaveBatchSize ()
 
boolean hasShareObjectiveBounds ()
 
boolean getShareObjectiveBounds ()
 
boolean hasShareLevelZeroBounds ()
 
boolean getShareLevelZeroBounds ()
 
boolean hasShareBinaryClauses ()
 
boolean getShareBinaryClauses ()
 
boolean hasDebugPostsolveWithFullSolver ()
 
boolean getDebugPostsolveWithFullSolver ()
 
boolean hasDebugMaxNumPresolveOperations ()
 
int getDebugMaxNumPresolveOperations ()
 
boolean hasDebugCrashOnBadHint ()
 
boolean getDebugCrashOnBadHint ()
 
boolean hasUseOptimizationHints ()
 
boolean getUseOptimizationHints ()
 
boolean hasCoreMinimizationLevel ()
 
int getCoreMinimizationLevel ()
 
boolean hasFindMultipleCores ()
 
boolean getFindMultipleCores ()
 
boolean hasCoverOptimization ()
 
boolean getCoverOptimization ()
 
boolean hasMaxSatAssumptionOrder ()
 
com.google.ortools.sat.SatParameters.MaxSatAssumptionOrder getMaxSatAssumptionOrder ()
 
boolean hasMaxSatReverseAssumptionOrder ()
 
boolean getMaxSatReverseAssumptionOrder ()
 
boolean hasMaxSatStratification ()
 
com.google.ortools.sat.SatParameters.MaxSatStratificationAlgorithm getMaxSatStratification ()
 
boolean hasPropagationLoopDetectionFactor ()
 
double getPropagationLoopDetectionFactor ()
 
boolean hasUsePrecedencesInDisjunctiveConstraint ()
 
boolean getUsePrecedencesInDisjunctiveConstraint ()
 
boolean hasMaxSizeToCreatePrecedenceLiteralsInDisjunctive ()
 
int getMaxSizeToCreatePrecedenceLiteralsInDisjunctive ()
 
boolean hasUseStrongPropagationInDisjunctive ()
 
boolean getUseStrongPropagationInDisjunctive ()
 
boolean hasUseDynamicPrecedenceInDisjunctive ()
 
boolean getUseDynamicPrecedenceInDisjunctive ()
 
boolean hasUseDynamicPrecedenceInCumulative ()
 
boolean getUseDynamicPrecedenceInCumulative ()
 
boolean hasUseOverloadCheckerInCumulative ()
 
boolean getUseOverloadCheckerInCumulative ()
 
boolean hasUseTimetableEdgeFindingInCumulative ()
 
boolean getUseTimetableEdgeFindingInCumulative ()
 
boolean hasMaxNumIntervalsForTimetableEdgeFinding ()
 
int getMaxNumIntervalsForTimetableEdgeFinding ()
 
boolean hasUseHardPrecedencesInCumulative ()
 
boolean getUseHardPrecedencesInCumulative ()
 
boolean hasExploitAllPrecedences ()
 
boolean getExploitAllPrecedences ()
 
boolean hasUseDisjunctiveConstraintInCumulative ()
 
boolean getUseDisjunctiveConstraintInCumulative ()
 
boolean hasUseTimetablingInNoOverlap2D ()
 
boolean getUseTimetablingInNoOverlap2D ()
 
boolean hasUseEnergeticReasoningInNoOverlap2D ()
 
boolean getUseEnergeticReasoningInNoOverlap2D ()
 
boolean hasUseAreaEnergeticReasoningInNoOverlap2D ()
 
boolean getUseAreaEnergeticReasoningInNoOverlap2D ()
 
boolean hasMaxPairsPairwiseReasoningInNoOverlap2D ()
 
int getMaxPairsPairwiseReasoningInNoOverlap2D ()
 
boolean hasUseDualSchedulingHeuristics ()
 
boolean getUseDualSchedulingHeuristics ()
 
boolean hasSearchBranching ()
 
com.google.ortools.sat.SatParameters.SearchBranching getSearchBranching ()
 
boolean hasHintConflictLimit ()
 
int getHintConflictLimit ()
 
boolean hasRepairHint ()
 
boolean getRepairHint ()
 
boolean hasFixVariablesToTheirHintedValue ()
 
boolean getFixVariablesToTheirHintedValue ()
 
boolean hasUseProbingSearch ()
 
boolean getUseProbingSearch ()
 
boolean hasUseExtendedProbing ()
 
boolean getUseExtendedProbing ()
 
boolean hasProbingNumCombinationsLimit ()
 
int getProbingNumCombinationsLimit ()
 
boolean hasUseShavingInProbingSearch ()
 
boolean getUseShavingInProbingSearch ()
 
boolean hasShavingSearchDeterministicTime ()
 
double getShavingSearchDeterministicTime ()
 
boolean hasUseObjectiveLbSearch ()
 
boolean getUseObjectiveLbSearch ()
 
boolean hasUseObjectiveShavingSearch ()
 
boolean getUseObjectiveShavingSearch ()
 
boolean hasPseudoCostReliabilityThreshold ()
 
long getPseudoCostReliabilityThreshold ()
 
boolean hasOptimizeWithCore ()
 
boolean getOptimizeWithCore ()
 
boolean hasOptimizeWithLbTreeSearch ()
 
boolean getOptimizeWithLbTreeSearch ()
 
boolean hasBinarySearchNumConflicts ()
 
int getBinarySearchNumConflicts ()
 
boolean hasOptimizeWithMaxHs ()
 
boolean getOptimizeWithMaxHs ()
 
boolean hasUseFeasibilityJump ()
 
boolean getUseFeasibilityJump ()
 
boolean hasTestFeasibilityJump ()
 
boolean getTestFeasibilityJump ()
 
boolean hasFeasibilityJumpDecay ()
 
double getFeasibilityJumpDecay ()
 
boolean hasFeasibilityJumpLinearizationLevel ()
 
int getFeasibilityJumpLinearizationLevel ()
 
boolean hasFeasibilityJumpRestartFactor ()
 
int getFeasibilityJumpRestartFactor ()
 
boolean hasFeasibilityJumpVarRandomizationProbability ()
 
double getFeasibilityJumpVarRandomizationProbability ()
 
boolean hasFeasibilityJumpVarPerburbationRangeRatio ()
 
double getFeasibilityJumpVarPerburbationRangeRatio ()
 
boolean hasFeasibilityJumpEnableRestarts ()
 
boolean getFeasibilityJumpEnableRestarts ()
 
boolean hasFeasibilityJumpMaxExpandedConstraintSize ()
 
int getFeasibilityJumpMaxExpandedConstraintSize ()
 
boolean hasNumViolationLs ()
 
int getNumViolationLs ()
 
boolean hasViolationLsPerturbationPeriod ()
 
int getViolationLsPerturbationPeriod ()
 
boolean hasViolationLsCompoundMoveProbability ()
 
double getViolationLsCompoundMoveProbability ()
 
boolean hasSharedTreeNumWorkers ()
 
int getSharedTreeNumWorkers ()
 
boolean hasUseSharedTreeSearch ()
 
boolean getUseSharedTreeSearch ()
 
boolean hasSharedTreeWorkerObjectiveSplitProbability ()
 
double getSharedTreeWorkerObjectiveSplitProbability ()
 
boolean hasSharedTreeMaxNodesPerWorker ()
 
int getSharedTreeMaxNodesPerWorker ()
 
boolean hasSharedTreeSplitStrategy ()
 
com.google.ortools.sat.SatParameters.SharedTreeSplitStrategy getSharedTreeSplitStrategy ()
 
boolean hasEnumerateAllSolutions ()
 
boolean getEnumerateAllSolutions ()
 
boolean hasKeepAllFeasibleSolutionsInPresolve ()
 
boolean getKeepAllFeasibleSolutionsInPresolve ()
 
boolean hasFillTightenedDomainsInResponse ()
 
boolean getFillTightenedDomainsInResponse ()
 
boolean hasFillAdditionalSolutionsInResponse ()
 
boolean getFillAdditionalSolutionsInResponse ()
 
boolean hasInstantiateAllVariables ()
 
boolean getInstantiateAllVariables ()
 
boolean hasAutoDetectGreaterThanAtLeastOneOf ()
 
boolean getAutoDetectGreaterThanAtLeastOneOf ()
 
boolean hasStopAfterFirstSolution ()
 
boolean getStopAfterFirstSolution ()
 
boolean hasStopAfterPresolve ()
 
boolean getStopAfterPresolve ()
 
boolean hasStopAfterRootPropagation ()
 
boolean getStopAfterRootPropagation ()
 
boolean hasUseLnsOnly ()
 
boolean getUseLnsOnly ()
 
boolean hasSolutionPoolSize ()
 
int getSolutionPoolSize ()
 
boolean hasUseRinsLns ()
 
boolean getUseRinsLns ()
 
boolean hasUseFeasibilityPump ()
 
boolean getUseFeasibilityPump ()
 
boolean hasUseLbRelaxLns ()
 
boolean getUseLbRelaxLns ()
 
boolean hasFpRounding ()
 
com.google.ortools.sat.SatParameters.FPRoundingMethod getFpRounding ()
 
boolean hasDiversifyLnsParams ()
 
boolean getDiversifyLnsParams ()
 
boolean hasRandomizeSearch ()
 
boolean getRandomizeSearch ()
 
boolean hasSearchRandomVariablePoolSize ()
 
long getSearchRandomVariablePoolSize ()
 
boolean hasPushAllTasksTowardStart ()
 
boolean getPushAllTasksTowardStart ()
 
boolean hasUseOptionalVariables ()
 
boolean getUseOptionalVariables ()
 
boolean hasUseExactLpReason ()
 
boolean getUseExactLpReason ()
 
boolean hasUseCombinedNoOverlap ()
 
boolean getUseCombinedNoOverlap ()
 
boolean hasAtMostOneMaxExpansionSize ()
 
int getAtMostOneMaxExpansionSize ()
 
boolean hasCatchSigintSignal ()
 
boolean getCatchSigintSignal ()
 
boolean hasUseImpliedBounds ()
 
boolean getUseImpliedBounds ()
 
boolean hasPolishLpSolution ()
 
boolean getPolishLpSolution ()
 
boolean hasLpPrimalTolerance ()
 
double getLpPrimalTolerance ()
 
boolean hasLpDualTolerance ()
 
double getLpDualTolerance ()
 
boolean hasConvertIntervals ()
 
boolean getConvertIntervals ()
 
boolean hasSymmetryLevel ()
 
int getSymmetryLevel ()
 
boolean hasNewLinearPropagation ()
 
boolean getNewLinearPropagation ()
 
boolean hasLinearSplitSize ()
 
int getLinearSplitSize ()
 
boolean hasLinearizationLevel ()
 
int getLinearizationLevel ()
 
boolean hasBooleanEncodingLevel ()
 
int getBooleanEncodingLevel ()
 
boolean hasMaxDomainSizeWhenEncodingEqNeqConstraints ()
 
int getMaxDomainSizeWhenEncodingEqNeqConstraints ()
 
boolean hasMaxNumCuts ()
 
int getMaxNumCuts ()
 
boolean hasCutLevel ()
 
int getCutLevel ()
 
boolean hasOnlyAddCutsAtLevelZero ()
 
boolean getOnlyAddCutsAtLevelZero ()
 
boolean hasAddObjectiveCut ()
 
boolean getAddObjectiveCut ()
 
boolean hasAddCgCuts ()
 
boolean getAddCgCuts ()
 
boolean hasAddMirCuts ()
 
boolean getAddMirCuts ()
 
boolean hasAddZeroHalfCuts ()
 
boolean getAddZeroHalfCuts ()
 
boolean hasAddCliqueCuts ()
 
boolean getAddCliqueCuts ()
 
boolean hasAddRltCuts ()
 
boolean getAddRltCuts ()
 
boolean hasMaxAllDiffCutSize ()
 
int getMaxAllDiffCutSize ()
 
boolean hasAddLinMaxCuts ()
 
boolean getAddLinMaxCuts ()
 
boolean hasMaxIntegerRoundingScaling ()
 
int getMaxIntegerRoundingScaling ()
 
boolean hasAddLpConstraintsLazily ()
 
boolean getAddLpConstraintsLazily ()
 
boolean hasRootLpIterations ()
 
int getRootLpIterations ()
 
boolean hasMinOrthogonalityForLpConstraints ()
 
double getMinOrthogonalityForLpConstraints ()
 
boolean hasMaxCutRoundsAtLevelZero ()
 
int getMaxCutRoundsAtLevelZero ()
 
boolean hasMaxConsecutiveInactiveCount ()
 
int getMaxConsecutiveInactiveCount ()
 
boolean hasCutMaxActiveCountValue ()
 
double getCutMaxActiveCountValue ()
 
boolean hasCutActiveCountDecay ()
 
double getCutActiveCountDecay ()
 
boolean hasCutCleanupTarget ()
 
int getCutCleanupTarget ()
 
boolean hasNewConstraintsBatchSize ()
 
int getNewConstraintsBatchSize ()
 
boolean hasExploitIntegerLpSolution ()
 
boolean getExploitIntegerLpSolution ()
 
boolean hasExploitAllLpSolution ()
 
boolean getExploitAllLpSolution ()
 
boolean hasExploitBestSolution ()
 
boolean getExploitBestSolution ()
 
boolean hasExploitRelaxationSolution ()
 
boolean getExploitRelaxationSolution ()
 
boolean hasExploitObjective ()
 
boolean getExploitObjective ()
 
boolean hasDetectLinearizedProduct ()
 
boolean getDetectLinearizedProduct ()
 
boolean hasMipMaxBound ()
 
double getMipMaxBound ()
 
boolean hasMipVarScaling ()
 
double getMipVarScaling ()
 
boolean hasMipScaleLargeDomain ()
 
boolean getMipScaleLargeDomain ()
 
boolean hasMipAutomaticallyScaleVariables ()
 
boolean getMipAutomaticallyScaleVariables ()
 
boolean hasOnlySolveIp ()
 
boolean getOnlySolveIp ()
 
boolean hasMipWantedPrecision ()
 
double getMipWantedPrecision ()
 
boolean hasMipMaxActivityExponent ()
 
int getMipMaxActivityExponent ()
 
boolean hasMipCheckPrecision ()
 
double getMipCheckPrecision ()
 
boolean hasMipComputeTrueObjectiveBound ()
 
boolean getMipComputeTrueObjectiveBound ()
 
boolean hasMipMaxValidMagnitude ()
 
double getMipMaxValidMagnitude ()
 
boolean hasMipTreatHighMagnitudeBoundsAsInfinity ()
 
boolean getMipTreatHighMagnitudeBoundsAsInfinity ()
 
boolean hasMipDropTolerance ()
 
double getMipDropTolerance ()
 
boolean hasMipPresolveLevel ()
 
int getMipPresolveLevel ()
 

Detailed Description

Definition at line 7 of file SatParametersOrBuilder.java.

Member Function Documentation

◆ getAbsoluteGapLimit()

double com.google.ortools.sat.SatParametersOrBuilder.getAbsoluteGapLimit ( )
Stop the search when the gap between the best feasible objective (O) and
our best objective bound (B) is smaller than a limit.
The exact definition is:
- Absolute: abs(O - B)
- Relative: abs(O - B) / max(1, abs(O)).

Important: The relative gap depends on the objective offset! If you
artificially shift the objective, you will get widely different value of
the relative gap.

Note that if the gap is reached, the search status will be OPTIMAL. But
one can check the best objective bound to see the actual gap.

If the objective is integer, then any absolute gap < 1 will lead to a true
optimal. If the objective is floating point, a gap of zero make little
sense so is is why we use a non-zero default value. At the end of the
search, we will display a warning if OPTIMAL is reported yet the gap is
greater than this absolute gap.

optional double absolute_gap_limit = 159 [default = 0.0001];

Returns
The absoluteGapLimit.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getAddCgCuts()

boolean com.google.ortools.sat.SatParametersOrBuilder.getAddCgCuts ( )
Whether we generate and add Chvatal-Gomory cuts to the LP at root node.
Note that for now, this is not heavily tuned.

optional bool add_cg_cuts = 117 [default = true];

Returns
The addCgCuts.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getAddCliqueCuts()

boolean com.google.ortools.sat.SatParametersOrBuilder.getAddCliqueCuts ( )
Whether we generate clique cuts from the binary implication graph. Note
that as the search goes on, this graph will contains new binary clauses
learned by the SAT engine.

optional bool add_clique_cuts = 172 [default = true];

Returns
The addCliqueCuts.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getAddLinMaxCuts()

boolean com.google.ortools.sat.SatParametersOrBuilder.getAddLinMaxCuts ( )
For the lin max constraints, generates the cuts described in "Strong
mixed-integer programming formulations for trained neural networks" by Ross
Anderson et. (https://arxiv.org/pdf/1811.01988.pdf)

optional bool add_lin_max_cuts = 152 [default = true];

Returns
The addLinMaxCuts.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getAddLpConstraintsLazily()

boolean com.google.ortools.sat.SatParametersOrBuilder.getAddLpConstraintsLazily ( )
If true, we start by an empty LP, and only add constraints not satisfied
by the current LP solution batch by batch. A constraint that is only added
like this is known as a "lazy" constraint in the literature, except that we
currently consider all constraints as lazy here.

optional bool add_lp_constraints_lazily = 112 [default = true];

Returns
The addLpConstraintsLazily.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getAddMirCuts()

boolean com.google.ortools.sat.SatParametersOrBuilder.getAddMirCuts ( )
Whether we generate MIR cuts at root node.
Note that for now, this is not heavily tuned.

optional bool add_mir_cuts = 120 [default = true];

Returns
The addMirCuts.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getAddObjectiveCut()

boolean com.google.ortools.sat.SatParametersOrBuilder.getAddObjectiveCut ( )
When the LP objective is fractional, do we add the cut that forces the
linear objective expression to be greater or equal to this fractional value
rounded up? We can always do that since our objective is integer, and
combined with MIR heuristic to reduce the coefficient of such cut, it can
help.

optional bool add_objective_cut = 197 [default = false];

Returns
The addObjectiveCut.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getAddRltCuts()

boolean com.google.ortools.sat.SatParametersOrBuilder.getAddRltCuts ( )
Whether we generate RLT cuts. This is still experimental but can help on
binary problem with a lot of clauses of size 3.

optional bool add_rlt_cuts = 279 [default = true];

Returns
The addRltCuts.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getAddZeroHalfCuts()

boolean com.google.ortools.sat.SatParametersOrBuilder.getAddZeroHalfCuts ( )
Whether we generate Zero-Half cuts at root node.
Note that for now, this is not heavily tuned.

optional bool add_zero_half_cuts = 169 [default = true];

Returns
The addZeroHalfCuts.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getAlsoBumpVariablesInConflictReasons()

boolean com.google.ortools.sat.SatParametersOrBuilder.getAlsoBumpVariablesInConflictReasons ( )
When this is true, then the variables that appear in any of the reason of
the variables in a conflict have their activity bumped. This is addition to
the variables in the conflict, and the one that were used during conflict
resolution.

optional bool also_bump_variables_in_conflict_reasons = 77 [default = false];

Returns
The alsoBumpVariablesInConflictReasons.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getAtMostOneMaxExpansionSize()

int com.google.ortools.sat.SatParametersOrBuilder.getAtMostOneMaxExpansionSize ( )
All at_most_one constraints with a size <= param will be replaced by a
quadratic number of binary implications.

optional int32 at_most_one_max_expansion_size = 270 [default = 3];

Returns
The atMostOneMaxExpansionSize.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getAutoDetectGreaterThanAtLeastOneOf()

boolean com.google.ortools.sat.SatParametersOrBuilder.getAutoDetectGreaterThanAtLeastOneOf ( )
If true, then the precedences propagator try to detect for each variable if
it has a set of "optional incoming arc" for which at least one of them is
present. This is usually useful to have but can be slow on model with a lot
of precedence.

optional bool auto_detect_greater_than_at_least_one_of = 95 [default = true];

Returns
The autoDetectGreaterThanAtLeastOneOf.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getBinaryMinimizationAlgorithm()

com.google.ortools.sat.SatParameters.BinaryMinizationAlgorithm com.google.ortools.sat.SatParametersOrBuilder.getBinaryMinimizationAlgorithm ( )

optional .operations_research.sat.SatParameters.BinaryMinizationAlgorithm binary_minimization_algorithm = 34 [default = BINARY_MINIMIZATION_FIRST];

Returns
The binaryMinimizationAlgorithm.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getBinarySearchNumConflicts()

int com.google.ortools.sat.SatParametersOrBuilder.getBinarySearchNumConflicts ( )
If non-negative, perform a binary search on the objective variable in order
to find an [min, max] interval outside of which the solver proved unsat/sat
under this amount of conflict. This can quickly reduce the objective domain
on some problems.

optional int32 binary_search_num_conflicts = 99 [default = -1];

Returns
The binarySearchNumConflicts.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getBlockingRestartMultiplier()

double com.google.ortools.sat.SatParametersOrBuilder.getBlockingRestartMultiplier ( )

optional double blocking_restart_multiplier = 66 [default = 1.4];

Returns
The blockingRestartMultiplier.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getBlockingRestartWindowSize()

int com.google.ortools.sat.SatParametersOrBuilder.getBlockingRestartWindowSize ( )

optional int32 blocking_restart_window_size = 65 [default = 5000];

Returns
The blockingRestartWindowSize.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getBooleanEncodingLevel()

int com.google.ortools.sat.SatParametersOrBuilder.getBooleanEncodingLevel ( )
A non-negative level indicating how much we should try to fully encode
Integer variables as Boolean.

optional int32 boolean_encoding_level = 107 [default = 1];

Returns
The booleanEncodingLevel.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getCatchSigintSignal()

boolean com.google.ortools.sat.SatParametersOrBuilder.getCatchSigintSignal ( )
Indicates if the CP-SAT layer should catch Control-C (SIGINT) signals
when calling solve. If set, catching the SIGINT signal will terminate the
search gracefully, as if a time limit was reached.

optional bool catch_sigint_signal = 135 [default = true];

Returns
The catchSigintSignal.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getClauseActivityDecay()

double com.google.ortools.sat.SatParametersOrBuilder.getClauseActivityDecay ( )
Clause activity parameters (same effect as the one on the variables).

optional double clause_activity_decay = 17 [default = 0.999];

Returns
The clauseActivityDecay.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getClauseCleanupLbdBound()

int com.google.ortools.sat.SatParametersOrBuilder.getClauseCleanupLbdBound ( )
All the clauses with a LBD (literal blocks distance) lower or equal to this
parameters will always be kept.

optional int32 clause_cleanup_lbd_bound = 59 [default = 5];

Returns
The clauseCleanupLbdBound.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getClauseCleanupOrdering()

com.google.ortools.sat.SatParameters.ClauseOrdering com.google.ortools.sat.SatParametersOrBuilder.getClauseCleanupOrdering ( )

optional .operations_research.sat.SatParameters.ClauseOrdering clause_cleanup_ordering = 60 [default = CLAUSE_ACTIVITY];

Returns
The clauseCleanupOrdering.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getClauseCleanupPeriod()

int com.google.ortools.sat.SatParametersOrBuilder.getClauseCleanupPeriod ( )
Trigger a cleanup when this number of "deletable" clauses is learned.

optional int32 clause_cleanup_period = 11 [default = 10000];

Returns
The clauseCleanupPeriod.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getClauseCleanupProtection()

com.google.ortools.sat.SatParameters.ClauseProtection com.google.ortools.sat.SatParametersOrBuilder.getClauseCleanupProtection ( )

optional .operations_research.sat.SatParameters.ClauseProtection clause_cleanup_protection = 58 [default = PROTECTION_NONE];

Returns
The clauseCleanupProtection.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getClauseCleanupRatio()

double com.google.ortools.sat.SatParametersOrBuilder.getClauseCleanupRatio ( )
During a cleanup, if clause_cleanup_target is 0, we will delete the
clause_cleanup_ratio of "deletable" clauses instead of aiming for a fixed
target of clauses to keep.

optional double clause_cleanup_ratio = 190 [default = 0.5];

Returns
The clauseCleanupRatio.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getClauseCleanupTarget()

int com.google.ortools.sat.SatParametersOrBuilder.getClauseCleanupTarget ( )
During a cleanup, we will always keep that number of "deletable" clauses.
Note that this doesn't include the "protected" clauses.

optional int32 clause_cleanup_target = 13 [default = 0];

Returns
The clauseCleanupTarget.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getConvertIntervals()

boolean com.google.ortools.sat.SatParametersOrBuilder.getConvertIntervals ( )
Temporary flag util the feature is more mature. This convert intervals to
the newer proto format that support affine start/var/end instead of just
variables.

optional bool convert_intervals = 177 [default = true];

Returns
The convertIntervals.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getCoreMinimizationLevel()

int com.google.ortools.sat.SatParametersOrBuilder.getCoreMinimizationLevel ( )
If positive, we spend some effort on each core:
- At level 1, we use a simple heuristic to try to minimize an UNSAT core.
- At level 2, we use propagation to minimize the core but also identify
  literal in at most one relationship in this core.

optional int32 core_minimization_level = 50 [default = 2];

Returns
The coreMinimizationLevel.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getCountAssumptionLevelsInLbd()

boolean com.google.ortools.sat.SatParametersOrBuilder.getCountAssumptionLevelsInLbd ( )
Whether or not the assumption levels are taken into account during the LBD
computation. According to the reference below, not counting them improves
the solver in some situation. Note that this only impact solves under
assumptions.

Gilles Audemard, Jean-Marie Lagniez, Laurent Simon, "Improving Glucose for
Incremental SAT Solving with Assumptions: Application to MUS Extraction"
Theory and Applications of Satisfiability Testing - SAT 2013, Lecture Notes
in Computer Science Volume 7962, 2013, pp 309-317.

optional bool count_assumption_levels_in_lbd = 49 [default = true];

Returns
The countAssumptionLevelsInLbd.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getCoverOptimization()

boolean com.google.ortools.sat.SatParametersOrBuilder.getCoverOptimization ( )
If true, when the max-sat algo find a core, we compute the minimal number
of literals in the core that needs to be true to have a feasible solution.
This is also called core exhaustion in more recent max-SAT papers.

optional bool cover_optimization = 89 [default = true];

Returns
The coverOptimization.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getCpModelPresolve()

boolean com.google.ortools.sat.SatParametersOrBuilder.getCpModelPresolve ( )
Whether we presolve the cp_model before solving it.

optional bool cp_model_presolve = 86 [default = true];

Returns
The cpModelPresolve.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getCpModelProbingLevel()

int com.google.ortools.sat.SatParametersOrBuilder.getCpModelProbingLevel ( )
How much effort do we spend on probing. 0 disables it completely.

optional int32 cp_model_probing_level = 110 [default = 2];

Returns
The cpModelProbingLevel.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getCpModelUseSatPresolve()

boolean com.google.ortools.sat.SatParametersOrBuilder.getCpModelUseSatPresolve ( )
Whether we also use the sat presolve when cp_model_presolve is true.

optional bool cp_model_use_sat_presolve = 93 [default = true];

Returns
The cpModelUseSatPresolve.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getCutActiveCountDecay()

double com.google.ortools.sat.SatParametersOrBuilder.getCutActiveCountDecay ( )

optional double cut_active_count_decay = 156 [default = 0.8];

Returns
The cutActiveCountDecay.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getCutCleanupTarget()

int com.google.ortools.sat.SatParametersOrBuilder.getCutCleanupTarget ( )
Target number of constraints to remove during cleanup.

optional int32 cut_cleanup_target = 157 [default = 1000];

Returns
The cutCleanupTarget.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getCutLevel()

int com.google.ortools.sat.SatParametersOrBuilder.getCutLevel ( )
Control the global cut effort. Zero will turn off all cut. For now we just
have one level. Note also that most cuts are only used at linearization
level >= 2.

optional int32 cut_level = 196 [default = 1];

Returns
The cutLevel.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getCutMaxActiveCountValue()

double com.google.ortools.sat.SatParametersOrBuilder.getCutMaxActiveCountValue ( )
These parameters are similar to sat clause management activity parameters.
They are effective only if the number of generated cuts exceed the storage
limit. Default values are based on a few experiments on miplib instances.

optional double cut_max_active_count_value = 155 [default = 10000000000];

Returns
The cutMaxActiveCountValue.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getDebugCrashOnBadHint()

boolean com.google.ortools.sat.SatParametersOrBuilder.getDebugCrashOnBadHint ( )
Crash if we do not manage to complete the hint into a full solution.

optional bool debug_crash_on_bad_hint = 195 [default = false];

Returns
The debugCrashOnBadHint.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getDebugMaxNumPresolveOperations()

int com.google.ortools.sat.SatParametersOrBuilder.getDebugMaxNumPresolveOperations ( )
If positive, try to stop just after that many presolve rules have been
applied. This is mainly useful for debugging presolve.

optional int32 debug_max_num_presolve_operations = 151 [default = 0];

Returns
The debugMaxNumPresolveOperations.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getDebugPostsolveWithFullSolver()

boolean com.google.ortools.sat.SatParametersOrBuilder.getDebugPostsolveWithFullSolver ( )
We have two different postsolve code. The default one should be better and
it allows for a more powerful presolve, but it can be useful to postsolve
using the full solver instead.

optional bool debug_postsolve_with_full_solver = 162 [default = false];

Returns
The debugPostsolveWithFullSolver.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getDefaultRestartAlgorithms()

java.lang.String com.google.ortools.sat.SatParametersOrBuilder.getDefaultRestartAlgorithms ( )

optional string default_restart_algorithms = 70 [default = "LUBY_RESTART,LBD_MOVING_AVERAGE_RESTART,DL_MOVING_AVERAGE_RESTART"];

Returns
The defaultRestartAlgorithms.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getDefaultRestartAlgorithmsBytes()

com.google.protobuf.ByteString com.google.ortools.sat.SatParametersOrBuilder.getDefaultRestartAlgorithmsBytes ( )

optional string default_restart_algorithms = 70 [default = "LUBY_RESTART,LBD_MOVING_AVERAGE_RESTART,DL_MOVING_AVERAGE_RESTART"];

Returns
The bytes for defaultRestartAlgorithms.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getDetectLinearizedProduct()

boolean com.google.ortools.sat.SatParametersOrBuilder.getDetectLinearizedProduct ( )
Infer products of Boolean or of Boolean time IntegerVariable from the
linear constrainst in the problem. This can be used in some cuts, altough
for now we don't really exploit it.

optional bool detect_linearized_product = 277 [default = false];

Returns
The detectLinearizedProduct.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getDetectTableWithCost()

boolean com.google.ortools.sat.SatParametersOrBuilder.getDetectTableWithCost ( )
If true, we detect variable that are unique to a table constraint and only
there to encode a cost on each tuple. This is usually the case when a WCSP
(weighted constraint program) is encoded into CP-SAT format.

This can lead to a dramatic speed-up for such problems but is still
experimental at this point.

optional bool detect_table_with_cost = 216 [default = false];

Returns
The detectTableWithCost.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getDisableConstraintExpansion()

boolean com.google.ortools.sat.SatParametersOrBuilder.getDisableConstraintExpansion ( )
If true, it disable all constraint expansion.
This should only be used to test the presolve of expanded constraints.

optional bool disable_constraint_expansion = 181 [default = false];

Returns
The disableConstraintExpansion.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getDiversifyLnsParams()

boolean com.google.ortools.sat.SatParametersOrBuilder.getDiversifyLnsParams ( )
If true, registers more lns subsolvers with different parameters.

optional bool diversify_lns_params = 137 [default = false];

Returns
The diversifyLnsParams.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getEncodeComplexLinearConstraintWithInteger()

boolean com.google.ortools.sat.SatParametersOrBuilder.getEncodeComplexLinearConstraintWithInteger ( )
Linear constraint with a complex right hand side (more than a single
interval) need to be expanded, there is a couple of way to do that.

optional bool encode_complex_linear_constraint_with_integer = 223 [default = false];

Returns
The encodeComplexLinearConstraintWithInteger.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getEnumerateAllSolutions()

boolean com.google.ortools.sat.SatParametersOrBuilder.getEnumerateAllSolutions ( )
Whether we enumerate all solutions of a problem without objective. Note
that setting this to true automatically disable some presolve reduction
that can remove feasible solution. That is it has the same effect as
setting keep_all_feasible_solutions_in_presolve.

TODO(user): Do not do that and let the user choose what behavior is best by
setting keep_all_feasible_solutions_in_presolve ?

optional bool enumerate_all_solutions = 87 [default = false];

Returns
The enumerateAllSolutions.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getExpandAlldiffConstraints()

boolean com.google.ortools.sat.SatParametersOrBuilder.getExpandAlldiffConstraints ( )
If true, expand all_different constraints that are not permutations.
Permutations (#Variables = #Values) are always expanded.

optional bool expand_alldiff_constraints = 170 [default = false];

Returns
The expandAlldiffConstraints.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getExpandReservoirConstraints()

boolean com.google.ortools.sat.SatParametersOrBuilder.getExpandReservoirConstraints ( )
If true, expand the reservoir constraints by creating booleans for all
possible precedences between event and encoding the constraint.

optional bool expand_reservoir_constraints = 182 [default = true];

Returns
The expandReservoirConstraints.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getExploitAllLpSolution()

boolean com.google.ortools.sat.SatParametersOrBuilder.getExploitAllLpSolution ( )
If true and the Lp relaxation of the problem has a solution, try to exploit
it. This is same as above except in this case the lp solution might not be
an integer solution.

optional bool exploit_all_lp_solution = 116 [default = true];

Returns
The exploitAllLpSolution.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getExploitAllPrecedences()

boolean com.google.ortools.sat.SatParametersOrBuilder.getExploitAllPrecedences ( )

optional bool exploit_all_precedences = 220 [default = false];

Returns
The exploitAllPrecedences.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getExploitBestSolution()

boolean com.google.ortools.sat.SatParametersOrBuilder.getExploitBestSolution ( )
When branching on a variable, follow the last best solution value.

optional bool exploit_best_solution = 130 [default = false];

Returns
The exploitBestSolution.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getExploitIntegerLpSolution()

boolean com.google.ortools.sat.SatParametersOrBuilder.getExploitIntegerLpSolution ( )
If true and the Lp relaxation of the problem has an integer optimal
solution, try to exploit it. Note that since the LP relaxation may not
contain all the constraints, such a solution is not necessarily a solution
of the full problem.

optional bool exploit_integer_lp_solution = 94 [default = true];

Returns
The exploitIntegerLpSolution.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getExploitObjective()

boolean com.google.ortools.sat.SatParametersOrBuilder.getExploitObjective ( )
When branching an a variable that directly affect the objective,
branch on the value that lead to the best objective first.

optional bool exploit_objective = 131 [default = true];

Returns
The exploitObjective.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getExploitRelaxationSolution()

boolean com.google.ortools.sat.SatParametersOrBuilder.getExploitRelaxationSolution ( )
When branching on a variable, follow the last best relaxation solution
value. We use the relaxation with the tightest bound on the objective as
the best relaxation solution.

optional bool exploit_relaxation_solution = 161 [default = false];

Returns
The exploitRelaxationSolution.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getExtraSubsolvers()

java.lang.String com.google.ortools.sat.SatParametersOrBuilder.getExtraSubsolvers ( int index)
A convenient way to add more workers types.
These will be added at the beginning of the list.

repeated string extra_subsolvers = 219;

Parameters
indexThe index of the element to return.
Returns
The extraSubsolvers at the given index.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getExtraSubsolversBytes()

com.google.protobuf.ByteString com.google.ortools.sat.SatParametersOrBuilder.getExtraSubsolversBytes ( int index)
A convenient way to add more workers types.
These will be added at the beginning of the list.

repeated string extra_subsolvers = 219;

Parameters
indexThe index of the value to return.
Returns
The bytes of the extraSubsolvers at the given index.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getExtraSubsolversCount()

int com.google.ortools.sat.SatParametersOrBuilder.getExtraSubsolversCount ( )
A convenient way to add more workers types.
These will be added at the beginning of the list.

repeated string extra_subsolvers = 219;

Returns
The count of extraSubsolvers.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getExtraSubsolversList()

java.util.List< java.lang.String > com.google.ortools.sat.SatParametersOrBuilder.getExtraSubsolversList ( )
A convenient way to add more workers types.
These will be added at the beginning of the list.

repeated string extra_subsolvers = 219;

Returns
A list containing the extraSubsolvers.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getFeasibilityJumpDecay()

double com.google.ortools.sat.SatParametersOrBuilder.getFeasibilityJumpDecay ( )
On each restart, we randomly choose if we use decay (with this parameter)
or no decay.

optional double feasibility_jump_decay = 242 [default = 0.95];

Returns
The feasibilityJumpDecay.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getFeasibilityJumpEnableRestarts()

boolean com.google.ortools.sat.SatParametersOrBuilder.getFeasibilityJumpEnableRestarts ( )
When stagnating, feasibility jump will either restart from a default
solution (with some possible randomization), or randomly pertubate the
current solution. This parameter selects the first option.

optional bool feasibility_jump_enable_restarts = 250 [default = true];

Returns
The feasibilityJumpEnableRestarts.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getFeasibilityJumpLinearizationLevel()

int com.google.ortools.sat.SatParametersOrBuilder.getFeasibilityJumpLinearizationLevel ( )
How much do we linearize the problem in the local search code.

optional int32 feasibility_jump_linearization_level = 257 [default = 2];

Returns
The feasibilityJumpLinearizationLevel.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getFeasibilityJumpMaxExpandedConstraintSize()

int com.google.ortools.sat.SatParametersOrBuilder.getFeasibilityJumpMaxExpandedConstraintSize ( )
Maximum size of no_overlap or no_overlap_2d constraint for a quadratic
expansion.

optional int32 feasibility_jump_max_expanded_constraint_size = 264 [default = 100];

Returns
The feasibilityJumpMaxExpandedConstraintSize.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getFeasibilityJumpRestartFactor()

int com.google.ortools.sat.SatParametersOrBuilder.getFeasibilityJumpRestartFactor ( )
This is a factor that directly influence the work before each restart.
Setting this to zero disable restart, and increasing it lead to longer
restarts.

optional int32 feasibility_jump_restart_factor = 258 [default = 1];

Returns
The feasibilityJumpRestartFactor.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getFeasibilityJumpVarPerburbationRangeRatio()

double com.google.ortools.sat.SatParametersOrBuilder.getFeasibilityJumpVarPerburbationRangeRatio ( )
Max distance between the default value and the pertubated value relative to
the range of the domain of the variable.

optional double feasibility_jump_var_perburbation_range_ratio = 248 [default = 0.2];

Returns
The feasibilityJumpVarPerburbationRangeRatio.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getFeasibilityJumpVarRandomizationProbability()

double com.google.ortools.sat.SatParametersOrBuilder.getFeasibilityJumpVarRandomizationProbability ( )
Probability for a variable to have a non default value upon restarts or
perturbations.

optional double feasibility_jump_var_randomization_probability = 247 [default = 0];

Returns
The feasibilityJumpVarRandomizationProbability.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getFillAdditionalSolutionsInResponse()

boolean com.google.ortools.sat.SatParametersOrBuilder.getFillAdditionalSolutionsInResponse ( )
If true, the final response addition_solutions field will be filled with
all solutions from our solutions pool.

Note that if both this field and enumerate_all_solutions is true, we will
copy to the pool all of the solution found. So if solution_pool_size is big
enough, you can get all solutions this way instead of using the solution
callback.

Note that this only affect the "final" solution, not the one passed to the
solution callbacks.

optional bool fill_additional_solutions_in_response = 194 [default = false];

Returns
The fillAdditionalSolutionsInResponse.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getFillTightenedDomainsInResponse()

boolean com.google.ortools.sat.SatParametersOrBuilder.getFillTightenedDomainsInResponse ( )
If true, add information about the derived variable domains to the
CpSolverResponse. It is an option because it makes the response slighly
bigger and there is a bit more work involved during the postsolve to
construct it, but it should still have a low overhead. See the
tightened_variables field in CpSolverResponse for more details.

optional bool fill_tightened_domains_in_response = 132 [default = false];

Returns
The fillTightenedDomainsInResponse.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getFindBigLinearOverlap()

boolean com.google.ortools.sat.SatParametersOrBuilder.getFindBigLinearOverlap ( )
Try to find large "rectangle" in the linear constraint matrix with
identical lines. If such rectangle is big enough, we can introduce a new
integer variable corresponding to the common expression and greatly reduce
the number of non-zero.

optional bool find_big_linear_overlap = 234 [default = true];

Returns
The findBigLinearOverlap.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getFindMultipleCores()

boolean com.google.ortools.sat.SatParametersOrBuilder.getFindMultipleCores ( )
Whether we try to find more independent cores for a given set of
assumptions in the core based max-SAT algorithms.

optional bool find_multiple_cores = 84 [default = true];

Returns
The findMultipleCores.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getFixVariablesToTheirHintedValue()

boolean com.google.ortools.sat.SatParametersOrBuilder.getFixVariablesToTheirHintedValue ( )
If true, variables appearing in the solution hints will be fixed to their
hinted value.

optional bool fix_variables_to_their_hinted_value = 192 [default = false];

Returns
The fixVariablesToTheirHintedValue.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getFpRounding()

com.google.ortools.sat.SatParameters.FPRoundingMethod com.google.ortools.sat.SatParametersOrBuilder.getFpRounding ( )

optional .operations_research.sat.SatParameters.FPRoundingMethod fp_rounding = 165 [default = PROPAGATION_ASSISTED];

Returns
The fpRounding.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getGlucoseDecayIncrement()

double com.google.ortools.sat.SatParametersOrBuilder.getGlucoseDecayIncrement ( )

optional double glucose_decay_increment = 23 [default = 0.01];

Returns
The glucoseDecayIncrement.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getGlucoseDecayIncrementPeriod()

int com.google.ortools.sat.SatParametersOrBuilder.getGlucoseDecayIncrementPeriod ( )

optional int32 glucose_decay_increment_period = 24 [default = 5000];

Returns
The glucoseDecayIncrementPeriod.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getGlucoseMaxDecay()

double com.google.ortools.sat.SatParametersOrBuilder.getGlucoseMaxDecay ( )
The activity starts at 0.8 and increment by 0.01 every 5000 conflicts until
0.95. This "hack" seems to work well and comes from:

Glucose 2.3 in the SAT 2013 Competition - SAT Competition 2013
http://edacc4.informatik.uni-ulm.de/SC13/solver-description-download/136

optional double glucose_max_decay = 22 [default = 0.95];

Returns
The glucoseMaxDecay.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getHintConflictLimit()

int com.google.ortools.sat.SatParametersOrBuilder.getHintConflictLimit ( )
Conflict limit used in the phase that exploit the solution hint.

optional int32 hint_conflict_limit = 153 [default = 10];

Returns
The hintConflictLimit.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getIgnoreNames()

boolean com.google.ortools.sat.SatParametersOrBuilder.getIgnoreNames ( )
If true, we don't keep names in our internal copy of the user given model.

optional bool ignore_names = 202 [default = true];

Returns
The ignoreNames.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getIgnoreSubsolvers()

java.lang.String com.google.ortools.sat.SatParametersOrBuilder.getIgnoreSubsolvers ( int index)
Rather than fully specifying subsolvers, it is often convenient to just
remove the ones that are not useful on a given problem.

repeated string ignore_subsolvers = 209;

Parameters
indexThe index of the element to return.
Returns
The ignoreSubsolvers at the given index.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getIgnoreSubsolversBytes()

com.google.protobuf.ByteString com.google.ortools.sat.SatParametersOrBuilder.getIgnoreSubsolversBytes ( int index)
Rather than fully specifying subsolvers, it is often convenient to just
remove the ones that are not useful on a given problem.

repeated string ignore_subsolvers = 209;

Parameters
indexThe index of the value to return.
Returns
The bytes of the ignoreSubsolvers at the given index.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getIgnoreSubsolversCount()

int com.google.ortools.sat.SatParametersOrBuilder.getIgnoreSubsolversCount ( )
Rather than fully specifying subsolvers, it is often convenient to just
remove the ones that are not useful on a given problem.

repeated string ignore_subsolvers = 209;

Returns
The count of ignoreSubsolvers.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getIgnoreSubsolversList()

java.util.List< java.lang.String > com.google.ortools.sat.SatParametersOrBuilder.getIgnoreSubsolversList ( )
Rather than fully specifying subsolvers, it is often convenient to just
remove the ones that are not useful on a given problem.

repeated string ignore_subsolvers = 209;

Returns
A list containing the ignoreSubsolvers.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getInferAllDiffs()

boolean com.google.ortools.sat.SatParametersOrBuilder.getInferAllDiffs ( )
Run a max-clique code amongst all the x != y we can find and try to infer
set of variables that are all different. This allows to close neos16.mps
for instance. Note that we only run this code if there is no all_diff
already in the model so that if a user want to add some all_diff, we assume
it is well done and do not try to add more.

optional bool infer_all_diffs = 233 [default = true];

Returns
The inferAllDiffs.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getInitialPolarity()

com.google.ortools.sat.SatParameters.Polarity com.google.ortools.sat.SatParametersOrBuilder.getInitialPolarity ( )

optional .operations_research.sat.SatParameters.Polarity initial_polarity = 2 [default = POLARITY_FALSE];

Returns
The initialPolarity.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getInitialVariablesActivity()

double com.google.ortools.sat.SatParametersOrBuilder.getInitialVariablesActivity ( )
The initial value of the variables activity. A non-zero value only make
sense when use_erwa_heuristic is true. Experiments with a value of 1e-2
together with the ERWA heuristic showed slighthly better result than simply
using zero. The idea is that when the "learning rate" of a variable becomes
lower than this value, then we prefer to branch on never explored before
variables. This is not in the ERWA paper.

optional double initial_variables_activity = 76 [default = 0];

Returns
The initialVariablesActivity.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getInprocessingDtimeRatio()

double com.google.ortools.sat.SatParametersOrBuilder.getInprocessingDtimeRatio ( )
Proportion of deterministic time we should spend on inprocessing.
At each "restart", if the proportion is below this ratio, we will do some
inprocessing, otherwise, we skip it for this restart.

optional double inprocessing_dtime_ratio = 273 [default = 0.2];

Returns
The inprocessingDtimeRatio.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getInprocessingMinimizationDtime()

double com.google.ortools.sat.SatParametersOrBuilder.getInprocessingMinimizationDtime ( )
Parameters for an heuristic similar to the one described in "An effective
learnt clause minimization approach for CDCL Sat Solvers",
https://www.ijcai.org/proceedings/2017/0098.pdf

This is the amount of dtime we should spend on this technique during each
inprocessing phase.

The minimization technique is the same as the one used to minimize core in
max-sat. We also minimize problem clauses and not just the learned clause
that we keep forever like in the paper.

optional double inprocessing_minimization_dtime = 275 [default = 1];

Returns
The inprocessingMinimizationDtime.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getInprocessingProbingDtime()

double com.google.ortools.sat.SatParametersOrBuilder.getInprocessingProbingDtime ( )
The amount of dtime we should spend on probing for each inprocessing round.

optional double inprocessing_probing_dtime = 274 [default = 1];

Returns
The inprocessingProbingDtime.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getInstantiateAllVariables()

boolean com.google.ortools.sat.SatParametersOrBuilder.getInstantiateAllVariables ( )
If true, the solver will add a default integer branching strategy to the
already defined search strategy. If not, some variable might still not be
fixed at the end of the search. For now we assume these variable can just
be set to their lower bound.

optional bool instantiate_all_variables = 106 [default = true];

Returns
The instantiateAllVariables.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getInterleaveBatchSize()

int com.google.ortools.sat.SatParametersOrBuilder.getInterleaveBatchSize ( )

optional int32 interleave_batch_size = 134 [default = 0];

Returns
The interleaveBatchSize.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getInterleaveSearch()

boolean com.google.ortools.sat.SatParametersOrBuilder.getInterleaveSearch ( )
Experimental. If this is true, then we interleave all our major search
strategy and distribute the work amongst num_workers.

The search is deterministic (independently of num_workers!), and we
schedule and wait for interleave_batch_size task to be completed before
synchronizing and scheduling the next batch of tasks.

optional bool interleave_search = 136 [default = false];

Returns
The interleaveSearch.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getKeepAllFeasibleSolutionsInPresolve()

boolean com.google.ortools.sat.SatParametersOrBuilder.getKeepAllFeasibleSolutionsInPresolve ( )
If true, we disable the presolve reductions that remove feasible solutions
from the search space. Such solution are usually dominated by a "better"
solution that is kept, but depending on the situation, we might want to
keep all solutions.

A trivial example is when a variable is unused. If this is true, then the
presolve will not fix it to an arbitrary value and it will stay in the
search space.

optional bool keep_all_feasible_solutions_in_presolve = 173 [default = false];

Returns
The keepAllFeasibleSolutionsInPresolve.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getLinearizationLevel()

int com.google.ortools.sat.SatParametersOrBuilder.getLinearizationLevel ( )
A non-negative level indicating the type of constraints we consider in the
LP relaxation. At level zero, no LP relaxation is used. At level 1, only
the linear constraint and full encoding are added. At level 2, we also add
all the Boolean constraints.

optional int32 linearization_level = 90 [default = 1];

Returns
The linearizationLevel.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getLinearSplitSize()

int com.google.ortools.sat.SatParametersOrBuilder.getLinearSplitSize ( )
Linear constraints that are not pseudo-Boolean and that are longer than
this size will be split into sqrt(size) intermediate sums in order to have
faster propation in the CP engine.

optional int32 linear_split_size = 256 [default = 100];

Returns
The linearSplitSize.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getLogPrefix()

java.lang.String com.google.ortools.sat.SatParametersOrBuilder.getLogPrefix ( )
Add a prefix to all logs.

optional string log_prefix = 185 [default = ""];

Returns
The logPrefix.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getLogPrefixBytes()

com.google.protobuf.ByteString com.google.ortools.sat.SatParametersOrBuilder.getLogPrefixBytes ( )
Add a prefix to all logs.

optional string log_prefix = 185 [default = ""];

Returns
The bytes for logPrefix.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getLogSearchProgress()

boolean com.google.ortools.sat.SatParametersOrBuilder.getLogSearchProgress ( )
Whether the solver should log the search progress. This is the maing
logging parameter and if this is false, none of the logging (callbacks,
log_to_stdout, log_to_response, ...) will do anything.

optional bool log_search_progress = 41 [default = false];

Returns
The logSearchProgress.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getLogSubsolverStatistics()

boolean com.google.ortools.sat.SatParametersOrBuilder.getLogSubsolverStatistics ( )
Whether the solver should display per sub-solver search statistics.
This is only useful is log_search_progress is set to true, and if the
number of search workers is > 1. Note that in all case we display a bit
of stats with one line per subsolver.

optional bool log_subsolver_statistics = 189 [default = false];

Returns
The logSubsolverStatistics.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getLogToResponse()

boolean com.google.ortools.sat.SatParametersOrBuilder.getLogToResponse ( )
Log to response proto.

optional bool log_to_response = 187 [default = false];

Returns
The logToResponse.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getLogToStdout()

boolean com.google.ortools.sat.SatParametersOrBuilder.getLogToStdout ( )
Log to stdout.

optional bool log_to_stdout = 186 [default = true];

Returns
The logToStdout.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getLpDualTolerance()

double com.google.ortools.sat.SatParametersOrBuilder.getLpDualTolerance ( )

optional double lp_dual_tolerance = 267 [default = 1e-07];

Returns
The lpDualTolerance.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getLpPrimalTolerance()

double com.google.ortools.sat.SatParametersOrBuilder.getLpPrimalTolerance ( )
The internal LP tolerances used by CP-SAT. These applies to the internal
and scaled problem. If the domains of your variables are large it might be
good to use lower tolerances. If your problem is binary with low
coefficients, it might be good to use higher ones to speed-up the lp
solves.

optional double lp_primal_tolerance = 266 [default = 1e-07];

Returns
The lpPrimalTolerance.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxAllDiffCutSize()

int com.google.ortools.sat.SatParametersOrBuilder.getMaxAllDiffCutSize ( )
Cut generator for all diffs can add too many cuts for large all_diff
constraints. This parameter restricts the large all_diff constraints to
have a cut generator.

optional int32 max_all_diff_cut_size = 148 [default = 64];

Returns
The maxAllDiffCutSize.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxClauseActivityValue()

double com.google.ortools.sat.SatParametersOrBuilder.getMaxClauseActivityValue ( )

optional double max_clause_activity_value = 18 [default = 1e+20];

Returns
The maxClauseActivityValue.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxConsecutiveInactiveCount()

int com.google.ortools.sat.SatParametersOrBuilder.getMaxConsecutiveInactiveCount ( )
If a constraint/cut in LP is not active for that many consecutive OPTIMAL
solves, remove it from the LP. Note that it might be added again later if
it become violated by the current LP solution.

optional int32 max_consecutive_inactive_count = 121 [default = 100];

Returns
The maxConsecutiveInactiveCount.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxCutRoundsAtLevelZero()

int com.google.ortools.sat.SatParametersOrBuilder.getMaxCutRoundsAtLevelZero ( )
Max number of time we perform cut generation and resolve the LP at level 0.

optional int32 max_cut_rounds_at_level_zero = 154 [default = 1];

Returns
The maxCutRoundsAtLevelZero.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxDeterministicTime()

double com.google.ortools.sat.SatParametersOrBuilder.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 as close as possible to a second.

optional double max_deterministic_time = 67 [default = inf];

Returns
The maxDeterministicTime.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxDomainSizeWhenEncodingEqNeqConstraints()

int com.google.ortools.sat.SatParametersOrBuilder.getMaxDomainSizeWhenEncodingEqNeqConstraints ( )
When loading a*x + b*y ==/!= c when x and y are both fully encoded.
The solver may decide to replace the linear equation by a set of clauses.
This is triggered if the sizes of the domains of x and y are below the
threshold.

optional int32 max_domain_size_when_encoding_eq_neq_constraints = 191 [default = 16];

Returns
The maxDomainSizeWhenEncodingEqNeqConstraints.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxIntegerRoundingScaling()

int com.google.ortools.sat.SatParametersOrBuilder.getMaxIntegerRoundingScaling ( )
In the integer rounding procedure used for MIR and Gomory cut, the maximum
"scaling" we use (must be positive). The lower this is, the lower the
integer coefficients of the cut will be. Note that cut generated by lower
values are not necessarily worse than cut generated by larger value. There
is no strict dominance relationship.

Setting this to 2 result in the "strong fractional rouding" of Letchford
and Lodi.

optional int32 max_integer_rounding_scaling = 119 [default = 600];

Returns
The maxIntegerRoundingScaling.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxMemoryInMb()

long com.google.ortools.sat.SatParametersOrBuilder.getMaxMemoryInMb ( )
Maximum memory allowed for the whole thread containing the solver. The
solver will abort as soon as it detects that this limit is crossed. As a
result, this limit is approximative, but usually the solver will not go too
much over.

TODO(user): This is only used by the pure SAT solver, generalize to CP-SAT.

optional int64 max_memory_in_mb = 40 [default = 10000];

Returns
The maxMemoryInMb.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxNumberOfConflicts()

long com.google.ortools.sat.SatParametersOrBuilder.getMaxNumberOfConflicts ( )
Maximum number of conflicts allowed to solve a problem.

TODO(user): Maybe change the way the conflict limit is enforced?
currently it is enforced on each independent internal SAT solve, rather
than on the overall number of conflicts across all solves. So in the
context of an optimization problem, this is not really usable directly by a
client.

optional int64 max_number_of_conflicts = 37 [default = 9223372036854775807];

Returns
The maxNumberOfConflicts.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxNumCuts()

int com.google.ortools.sat.SatParametersOrBuilder.getMaxNumCuts ( )
The limit on the number of cuts in our cut pool. When this is reached we do
not generate cuts anymore.

TODO(user): We should probably remove this parameters, and just always
generate cuts but only keep the best n or something.

optional int32 max_num_cuts = 91 [default = 10000];

Returns
The maxNumCuts.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxNumIntervalsForTimetableEdgeFinding()

int com.google.ortools.sat.SatParametersOrBuilder.getMaxNumIntervalsForTimetableEdgeFinding ( )
Max number of intervals for the timetable_edge_finding algorithm to
propagate. A value of 0 disables the constraint.

optional int32 max_num_intervals_for_timetable_edge_finding = 260 [default = 100];

Returns
The maxNumIntervalsForTimetableEdgeFinding.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxPairsPairwiseReasoningInNoOverlap2D()

int com.google.ortools.sat.SatParametersOrBuilder.getMaxPairsPairwiseReasoningInNoOverlap2D ( )
If the number of pairs to look is below this threshold, do an extra step of
propagation in the no_overlap_2d constraint by looking at all pairs of
intervals.

optional int32 max_pairs_pairwise_reasoning_in_no_overlap_2d = 276 [default = 1250];

Returns
The maxPairsPairwiseReasoningInNoOverlap2d.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxPresolveIterations()

int com.google.ortools.sat.SatParametersOrBuilder.getMaxPresolveIterations ( )
In case of large reduction in a presolve iteration, we perform multiple
presolve iterations. This parameter controls the maximum number of such
presolve iterations.

optional int32 max_presolve_iterations = 138 [default = 3];

Returns
The maxPresolveIterations.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxSatAssumptionOrder()

com.google.ortools.sat.SatParameters.MaxSatAssumptionOrder com.google.ortools.sat.SatParametersOrBuilder.getMaxSatAssumptionOrder ( )

optional .operations_research.sat.SatParameters.MaxSatAssumptionOrder max_sat_assumption_order = 51 [default = DEFAULT_ASSUMPTION_ORDER];

Returns
The maxSatAssumptionOrder.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxSatReverseAssumptionOrder()

boolean com.google.ortools.sat.SatParametersOrBuilder.getMaxSatReverseAssumptionOrder ( )
If true, adds the assumption in the reverse order of the one defined by
max_sat_assumption_order.

optional bool max_sat_reverse_assumption_order = 52 [default = false];

Returns
The maxSatReverseAssumptionOrder.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxSatStratification()

com.google.ortools.sat.SatParameters.MaxSatStratificationAlgorithm com.google.ortools.sat.SatParametersOrBuilder.getMaxSatStratification ( )

optional .operations_research.sat.SatParameters.MaxSatStratificationAlgorithm max_sat_stratification = 53 [default = STRATIFICATION_DESCENT];

Returns
The maxSatStratification.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxSizeToCreatePrecedenceLiteralsInDisjunctive()

int com.google.ortools.sat.SatParametersOrBuilder.getMaxSizeToCreatePrecedenceLiteralsInDisjunctive ( )
Create one literal for each disjunction of two pairs of tasks. This slows
down the solve time, but improves the lower bound of the objective in the
makespan case. This will be triggered if the number of intervals is less or
equal than the parameter and if use_strong_propagation_in_disjunctive is
true.

optional int32 max_size_to_create_precedence_literals_in_disjunctive = 229 [default = 60];

Returns
The maxSizeToCreatePrecedenceLiteralsInDisjunctive.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxTimeInSeconds()

double com.google.ortools.sat.SatParametersOrBuilder.getMaxTimeInSeconds ( )
Maximum time allowed in seconds to solve a problem.
The counter will starts at the beginning of the Solve() call.

optional double max_time_in_seconds = 36 [default = inf];

Returns
The maxTimeInSeconds.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMaxVariableActivityValue()

double com.google.ortools.sat.SatParametersOrBuilder.getMaxVariableActivityValue ( )

optional double max_variable_activity_value = 16 [default = 1e+100];

Returns
The maxVariableActivityValue.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMergeAtMostOneWorkLimit()

double com.google.ortools.sat.SatParametersOrBuilder.getMergeAtMostOneWorkLimit ( )

optional double merge_at_most_one_work_limit = 146 [default = 100000000];

Returns
The mergeAtMostOneWorkLimit.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMergeNoOverlapWorkLimit()

double com.google.ortools.sat.SatParametersOrBuilder.getMergeNoOverlapWorkLimit ( )
During presolve, we use a maximum clique heuristic to merge together
no-overlap constraints or at most one constraints. This code can be slow,
so we have a limit in place on the number of explored nodes in the
underlying graph. The internal limit is an int64, but we use double here to
simplify manual input.

optional double merge_no_overlap_work_limit = 145 [default = 1000000000000];

Returns
The mergeNoOverlapWorkLimit.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMinimizationAlgorithm()

com.google.ortools.sat.SatParameters.ConflictMinimizationAlgorithm com.google.ortools.sat.SatParametersOrBuilder.getMinimizationAlgorithm ( )

optional .operations_research.sat.SatParameters.ConflictMinimizationAlgorithm minimization_algorithm = 4 [default = RECURSIVE];

Returns
The minimizationAlgorithm.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMinimizeReductionDuringPbResolution()

boolean com.google.ortools.sat.SatParametersOrBuilder.getMinimizeReductionDuringPbResolution ( )
A different algorithm during PB resolution. It minimizes the number of
calls to ReduceCoefficients() which can be time consuming. However, the
search space will be different and if the coefficients are large, this may
lead to integer overflows that could otherwise be prevented.

optional bool minimize_reduction_during_pb_resolution = 48 [default = false];

Returns
The minimizeReductionDuringPbResolution.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMinNumLnsWorkers()

int com.google.ortools.sat.SatParametersOrBuilder.getMinNumLnsWorkers ( )
Obsolete parameter. No-op.

optional int32 min_num_lns_workers = 211 [default = 2];

Returns
The minNumLnsWorkers.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMinOrthogonalityForLpConstraints()

double com.google.ortools.sat.SatParametersOrBuilder.getMinOrthogonalityForLpConstraints ( )
While adding constraints, skip the constraints which have orthogonality
less than 'min_orthogonality_for_lp_constraints' with already added
constraints during current call. Orthogonality is defined as 1 -
cosine(vector angle between constraints). A value of zero disable this
feature.

optional double min_orthogonality_for_lp_constraints = 115 [default = 0.05];

Returns
The minOrthogonalityForLpConstraints.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMipAutomaticallyScaleVariables()

boolean com.google.ortools.sat.SatParametersOrBuilder.getMipAutomaticallyScaleVariables ( )
If true, some continuous variable might be automatically scaled. For now,
this is only the case where we detect that a variable is actually an
integer multiple of a constant. For instance, variables of the form k * 0.5
are quite frequent, and if we detect this, we will scale such variable
domain by 2 to make it implied integer.

optional bool mip_automatically_scale_variables = 166 [default = true];

Returns
The mipAutomaticallyScaleVariables.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMipCheckPrecision()

double com.google.ortools.sat.SatParametersOrBuilder.getMipCheckPrecision ( )
As explained in mip_precision and mip_max_activity_exponent, we cannot
always reach the wanted precision during scaling. We use this threshold to
enphasize in the logs when the precision seems bad.

optional double mip_check_precision = 128 [default = 0.0001];

Returns
The mipCheckPrecision.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMipComputeTrueObjectiveBound()

boolean com.google.ortools.sat.SatParametersOrBuilder.getMipComputeTrueObjectiveBound ( )
Even if we make big error when scaling the objective, we can always derive
a correct lower bound on the original objective by using the exact lower
bound on the scaled integer version of the objective. This should be fast,
but if you don't care about having a precise lower bound, you can turn it
off.

optional bool mip_compute_true_objective_bound = 198 [default = true];

Returns
The mipComputeTrueObjectiveBound.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMipDropTolerance()

double com.google.ortools.sat.SatParametersOrBuilder.getMipDropTolerance ( )
Any value in the input mip with a magnitude lower than this will be set to
zero. This is to avoid some issue in LP presolving.

optional double mip_drop_tolerance = 232 [default = 1e-16];

Returns
The mipDropTolerance.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMipMaxActivityExponent()

int com.google.ortools.sat.SatParametersOrBuilder.getMipMaxActivityExponent ( )
To avoid integer overflow, we always force the maximum possible constraint
activity (and objective value) according to the initial variable domain to
be smaller than 2 to this given power. Because of this, we cannot always
reach the "mip_wanted_precision" parameter above.

This can go as high as 62, but some internal algo currently abort early if
they might run into integer overflow, so it is better to keep it a bit
lower than this.

optional int32 mip_max_activity_exponent = 127 [default = 53];

Returns
The mipMaxActivityExponent.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMipMaxBound()

double com.google.ortools.sat.SatParametersOrBuilder.getMipMaxBound ( )
We need to bound the maximum magnitude of the variables for CP-SAT, and
that is the bound we use. If the MIP model expect larger variable value in
the solution, then the converted model will likely not be relevant.

optional double mip_max_bound = 124 [default = 10000000];

Returns
The mipMaxBound.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMipMaxValidMagnitude()

double com.google.ortools.sat.SatParametersOrBuilder.getMipMaxValidMagnitude ( )
Any finite values in the input MIP must be below this threshold, otherwise
the model will be reported invalid. This is needed to avoid floating point
overflow when evaluating bounds * coeff for instance. We are a bit more
defensive, but in practice, users shouldn't use super large values in a
MIP.

optional double mip_max_valid_magnitude = 199 [default = 1e+20];

Returns
The mipMaxValidMagnitude.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMipPresolveLevel()

int com.google.ortools.sat.SatParametersOrBuilder.getMipPresolveLevel ( )
When solving a MIP, we do some basic floating point presolving before
scaling the problem to integer to be handled by CP-SAT. This control how
much of that presolve we do. It can help to better scale floating point
model, but it is not always behaving nicely.

optional int32 mip_presolve_level = 261 [default = 2];

Returns
The mipPresolveLevel.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMipScaleLargeDomain()

boolean com.google.ortools.sat.SatParametersOrBuilder.getMipScaleLargeDomain ( )
If this is false, then mip_var_scaling is only applied to variables with
"small" domain. If it is true, we scale all floating point variable
independenlty of their domain.

optional bool mip_scale_large_domain = 225 [default = false];

Returns
The mipScaleLargeDomain.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMipTreatHighMagnitudeBoundsAsInfinity()

boolean com.google.ortools.sat.SatParametersOrBuilder.getMipTreatHighMagnitudeBoundsAsInfinity ( )
By default, any variable/constraint bound with a finite value and a
magnitude greater than the mip_max_valid_magnitude will result with a
invalid model. This flags change the behavior such that such bounds are
silently transformed to +∞ or -∞.

It is recommended to keep it at false, and create valid bounds.

optional bool mip_treat_high_magnitude_bounds_as_infinity = 278 [default = false];

Returns
The mipTreatHighMagnitudeBoundsAsInfinity.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMipVarScaling()

double com.google.ortools.sat.SatParametersOrBuilder.getMipVarScaling ( )
All continuous variable of the problem will be multiplied by this factor.
By default, we don't do any variable scaling and rely on the MIP model to
specify continuous variable domain with the wanted precision.

optional double mip_var_scaling = 125 [default = 1];

Returns
The mipVarScaling.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getMipWantedPrecision()

double com.google.ortools.sat.SatParametersOrBuilder.getMipWantedPrecision ( )
When scaling constraint with double coefficients to integer coefficients,
we will multiply by a power of 2 and round the coefficients. We will choose
the lowest power such that we have no potential overflow (see
mip_max_activity_exponent) and the worst case constraint activity error
does not exceed this threshold.

Note that we also detect constraint with rational coefficients and scale
them accordingly when it seems better instead of using a power of 2.

We also relax all constraint bounds by this absolute value. For pure
integer constraint, if this value if lower than one, this will not change
anything. However it is needed when scaling MIP problems.

If we manage to scale a constraint correctly, the maximum error we can make
will be twice this value (once for the scaling error and once for the
relaxed bounds). If we are not able to scale that well, we will display
that fact but still scale as best as we can.

optional double mip_wanted_precision = 126 [default = 1e-06];

Returns
The mipWantedPrecision.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getName()

java.lang.String com.google.ortools.sat.SatParametersOrBuilder.getName ( )
In some context, like in a portfolio of search, it makes sense to name a
given parameters set for logging purpose.

optional string name = 171 [default = ""];

Returns
The name.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getNameBytes()

com.google.protobuf.ByteString com.google.ortools.sat.SatParametersOrBuilder.getNameBytes ( )
In some context, like in a portfolio of search, it makes sense to name a
given parameters set for logging purpose.

optional string name = 171 [default = ""];

Returns
The bytes for name.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getNewConstraintsBatchSize()

int com.google.ortools.sat.SatParametersOrBuilder.getNewConstraintsBatchSize ( )
Add that many lazy constraints (or cuts) at once in the LP. Note that at
the beginning of the solve, we do add more than this.

optional int32 new_constraints_batch_size = 122 [default = 50];

Returns
The newConstraintsBatchSize.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getNewLinearPropagation()

boolean com.google.ortools.sat.SatParametersOrBuilder.getNewLinearPropagation ( )
Experimental. Use new code to propagate linear constraint.

optional bool new_linear_propagation = 224 [default = false];

Returns
The newLinearPropagation.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getNumConflictsBeforeStrategyChanges()

int com.google.ortools.sat.SatParametersOrBuilder.getNumConflictsBeforeStrategyChanges ( )
After each restart, if the number of conflict since the last strategy
change is greater that this, then we increment a "strategy_counter" that
can be use to change the search strategy used by the following restarts.

optional int32 num_conflicts_before_strategy_changes = 68 [default = 0];

Returns
The numConflictsBeforeStrategyChanges.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getNumSearchWorkers()

int com.google.ortools.sat.SatParametersOrBuilder.getNumSearchWorkers ( )

optional int32 num_search_workers = 100 [default = 0];

Returns
The numSearchWorkers.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getNumViolationLs()

int com.google.ortools.sat.SatParametersOrBuilder.getNumViolationLs ( )
This will create incomplete subsolvers (that are not LNS subsolvers)
that use the feasibility jump code to find improving solution, treating
the objective improvement as a hard constraint.

optional int32 num_violation_ls = 244 [default = 0];

Returns
The numViolationLs.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getNumWorkers()

int com.google.ortools.sat.SatParametersOrBuilder.getNumWorkers ( )
Specify the number of parallel workers (i.e. threads) to use during search.
This should usually be lower than your number of available cpus +
hyperthread in your machine.

A value of 0 means the solver will try to use all cores on the machine.
A number of 1 means no parallelism.

Note that 'num_workers' is the preferred name, but if it is set to zero,
we will still read the deprecated 'num_search_worker'.

As of 2020-04-10, if you're using SAT via MPSolver (to solve integer
programs) this field is overridden with a value of 8, if the field is not
set *explicitly*. Thus, always set this field explicitly or via
MPSolver::SetNumThreads().

optional int32 num_workers = 206 [default = 0];

Returns
The numWorkers.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getOnlyAddCutsAtLevelZero()

boolean com.google.ortools.sat.SatParametersOrBuilder.getOnlyAddCutsAtLevelZero ( )
For the cut that can be generated at any level, this control if we only
try to generate them at the root node.

optional bool only_add_cuts_at_level_zero = 92 [default = false];

Returns
The onlyAddCutsAtLevelZero.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getOnlySolveIp()

boolean com.google.ortools.sat.SatParametersOrBuilder.getOnlySolveIp ( )
If one try to solve a MIP model with CP-SAT, because we assume all variable
to be integer after scaling, we will not necessarily have the correct
optimal. Note however that all feasible solutions are valid since we will
just solve a more restricted version of the original problem.

This parameters is here to prevent user to think the solution is optimal
when it might not be. One will need to manually set this to false to solve
a MIP model where the optimal might be different.

Note that this is tested after some MIP presolve steps, so even if not
all original variable are integer, we might end up with a pure IP after
presolve and after implied integer detection.

optional bool only_solve_ip = 222 [default = false];

Returns
The onlySolveIp.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getOptimizeWithCore()

boolean com.google.ortools.sat.SatParametersOrBuilder.getOptimizeWithCore ( )
The default optimization method is a simple "linear scan", each time trying
to find a better solution than the previous one. If this is true, then we
use a core-based approach (like in max-SAT) when we try to increase the
lower bound instead.

optional bool optimize_with_core = 83 [default = false];

Returns
The optimizeWithCore.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getOptimizeWithLbTreeSearch()

boolean com.google.ortools.sat.SatParametersOrBuilder.getOptimizeWithLbTreeSearch ( )
Do a more conventional tree search (by opposition to SAT based one) where
we keep all the explored node in a tree. This is meant to be used in a
portfolio and focus on improving the objective lower bound. Keeping the
whole tree allow us to report a better objective lower bound coming from
the worst open node in the tree.

optional bool optimize_with_lb_tree_search = 188 [default = false];

Returns
The optimizeWithLbTreeSearch.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getOptimizeWithMaxHs()

boolean com.google.ortools.sat.SatParametersOrBuilder.getOptimizeWithMaxHs ( )
This has no effect if optimize_with_core is false. If true, use a different
core-based algorithm similar to the max-HS algo for max-SAT. This is a
hybrid MIP/CP approach and it uses a MIP solver in addition to the CP/SAT
one. This is also related to the PhD work of tobyodavies&#64;
"Automatic Logic-Based Benders Decomposition with MiniZinc"
http://aaai.org/ocs/index.php/AAAI/AAAI17/paper/view/14489

optional bool optimize_with_max_hs = 85 [default = false];

Returns
The optimizeWithMaxHs.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPbCleanupIncrement()

int com.google.ortools.sat.SatParametersOrBuilder.getPbCleanupIncrement ( )
Same as for the clauses, but for the learned pseudo-Boolean constraints.

optional int32 pb_cleanup_increment = 46 [default = 200];

Returns
The pbCleanupIncrement.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPbCleanupRatio()

double com.google.ortools.sat.SatParametersOrBuilder.getPbCleanupRatio ( )

optional double pb_cleanup_ratio = 47 [default = 0.5];

Returns
The pbCleanupRatio.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPermutePresolveConstraintOrder()

boolean com.google.ortools.sat.SatParametersOrBuilder.getPermutePresolveConstraintOrder ( )

optional bool permute_presolve_constraint_order = 179 [default = false];

Returns
The permutePresolveConstraintOrder.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPermuteVariableRandomly()

boolean com.google.ortools.sat.SatParametersOrBuilder.getPermuteVariableRandomly ( )
This is mainly here to test the solver variability. Note that in tests, if
not explicitly set to false, all 3 options will be set to true so that
clients do not rely on the solver returning a specific solution if they are
many equivalent optimal solutions.

optional bool permute_variable_randomly = 178 [default = false];

Returns
The permuteVariableRandomly.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPolarityRephaseIncrement()

int com.google.ortools.sat.SatParametersOrBuilder.getPolarityRephaseIncrement ( )
If non-zero, then we change the polarity heuristic after that many number
of conflicts in an arithmetically increasing fashion. So x the first time,
2 * x the second time, etc...

optional int32 polarity_rephase_increment = 168 [default = 1000];

Returns
The polarityRephaseIncrement.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPolishLpSolution()

boolean com.google.ortools.sat.SatParametersOrBuilder.getPolishLpSolution ( )
Whether we try to do a few degenerate iteration at the end of an LP solve
to minimize the fractionality of the integer variable in the basis. This
helps on some problems, but not so much on others. It also cost of bit of
time to do such polish step.

optional bool polish_lp_solution = 175 [default = false];

Returns
The polishLpSolution.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPreferredVariableOrder()

com.google.ortools.sat.SatParameters.VariableOrder com.google.ortools.sat.SatParametersOrBuilder.getPreferredVariableOrder ( )

optional .operations_research.sat.SatParameters.VariableOrder preferred_variable_order = 1 [default = IN_ORDER];

Returns
The preferredVariableOrder.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPresolveBlockedClause()

boolean com.google.ortools.sat.SatParametersOrBuilder.getPresolveBlockedClause ( )
Whether we use an heuristic to detect some basic case of blocked clause
in the SAT presolve.

optional bool presolve_blocked_clause = 88 [default = true];

Returns
The presolveBlockedClause.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPresolveBvaThreshold()

int com.google.ortools.sat.SatParametersOrBuilder.getPresolveBvaThreshold ( )
Apply Bounded Variable Addition (BVA) if the number of clauses is reduced
by stricly more than this threshold. The algorithm described in the paper
uses 0, but quick experiments showed that 1 is a good value. It may not be
worth it to add a new variable just to remove one clause.

optional int32 presolve_bva_threshold = 73 [default = 1];

Returns
The presolveBvaThreshold.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPresolveBveClauseWeight()

int com.google.ortools.sat.SatParametersOrBuilder.getPresolveBveClauseWeight ( )
During presolve, we apply BVE only if this weight times the number of
clauses plus the number of clause literals is not increased.

optional int32 presolve_bve_clause_weight = 55 [default = 3];

Returns
The presolveBveClauseWeight.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPresolveBveThreshold()

int com.google.ortools.sat.SatParametersOrBuilder.getPresolveBveThreshold ( )
During presolve, only try to perform the bounded variable elimination (BVE)
of a variable x if the number of occurrences of x times the number of
occurrences of not(x) is not greater than this parameter.

optional int32 presolve_bve_threshold = 54 [default = 500];

Returns
The presolveBveThreshold.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPresolveExtractIntegerEnforcement()

boolean com.google.ortools.sat.SatParametersOrBuilder.getPresolveExtractIntegerEnforcement ( )
If true, we will extract from linear constraints, enforcement literals of
the form "integer variable at bound =&gt; simplified constraint". This should
always be beneficial except that we don't always handle them as efficiently
as we could for now. This causes problem on manna81.mps (LP relaxation not
as tight it seems) and on neos-3354841-apure.mps.gz (too many literals
created this way).

optional bool presolve_extract_integer_enforcement = 174 [default = false];

Returns
The presolveExtractIntegerEnforcement.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPresolveInclusionWorkLimit()

long com.google.ortools.sat.SatParametersOrBuilder.getPresolveInclusionWorkLimit ( )
A few presolve operations involve detecting constraints included in other
constraint. Since there can be a quadratic number of such pairs, and
processing them usually involve scanning them, the complexity of these
operations can be big. This enforce a local deterministic limit on the
number of entries scanned. Default is 1e8.

A value of zero will disable these presolve rules completely.

optional int64 presolve_inclusion_work_limit = 201 [default = 100000000];

Returns
The presolveInclusionWorkLimit.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPresolveProbingDeterministicTimeLimit()

double com.google.ortools.sat.SatParametersOrBuilder.getPresolveProbingDeterministicTimeLimit ( )

optional double presolve_probing_deterministic_time_limit = 57 [default = 30];

Returns
The presolveProbingDeterministicTimeLimit.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPresolveSubstitutionLevel()

int com.google.ortools.sat.SatParametersOrBuilder.getPresolveSubstitutionLevel ( )
How much substitution (also called free variable aggregation in MIP
litterature) should we perform at presolve. This currently only concerns
variable appearing only in linear constraints. For now the value 0 turns it
off and any positive value performs substitution.

optional int32 presolve_substitution_level = 147 [default = 1];

Returns
The presolveSubstitutionLevel.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPresolveUseBva()

boolean com.google.ortools.sat.SatParametersOrBuilder.getPresolveUseBva ( )
Whether or not we use Bounded Variable Addition (BVA) in the presolve.

optional bool presolve_use_bva = 72 [default = true];

Returns
The presolveUseBva.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getProbingDeterministicTimeLimit()

double com.google.ortools.sat.SatParametersOrBuilder.getProbingDeterministicTimeLimit ( )
The maximum "deterministic" time limit to spend in probing. A value of
zero will disable the probing.

TODO(user): Clean up. The first one is used in CP-SAT, the other in pure
SAT presolve.

optional double probing_deterministic_time_limit = 226 [default = 1];

Returns
The probingDeterministicTimeLimit.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getProbingNumCombinationsLimit()

int com.google.ortools.sat.SatParametersOrBuilder.getProbingNumCombinationsLimit ( )
How many combinations of pairs or triplets of variables we want to scan.

optional int32 probing_num_combinations_limit = 272 [default = 20000];

Returns
The probingNumCombinationsLimit.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPropagationLoopDetectionFactor()

double com.google.ortools.sat.SatParametersOrBuilder.getPropagationLoopDetectionFactor ( )
Some search decisions might cause a really large number of propagations to
happen when integer variables with large domains are only reduced by 1 at
each step. If we propagate more than the number of variable times this
parameters we try to take counter-measure. Setting this to 0.0 disable this
feature.

TODO(user): Setting this to something like 10 helps in most cases, but the
code is currently buggy and can cause the solve to enter a bad state where
no progress is made.

optional double propagation_loop_detection_factor = 221 [default = 10];

Returns
The propagationLoopDetectionFactor.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPseudoCostReliabilityThreshold()

long com.google.ortools.sat.SatParametersOrBuilder.getPseudoCostReliabilityThreshold ( )
The solver ignores the pseudo costs of variables with number of recordings
less than this threshold.

optional int64 pseudo_cost_reliability_threshold = 123 [default = 100];

Returns
The pseudoCostReliabilityThreshold.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getPushAllTasksTowardStart()

boolean com.google.ortools.sat.SatParametersOrBuilder.getPushAllTasksTowardStart ( )
Experimental code: specify if the objective pushes all tasks toward the
start of the schedule.

optional bool push_all_tasks_toward_start = 262 [default = false];

Returns
The pushAllTasksTowardStart.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getRandomBranchesRatio()

double com.google.ortools.sat.SatParametersOrBuilder.getRandomBranchesRatio ( )
A number between 0 and 1 that indicates the proportion of branching
variables that are selected randomly instead of choosing the first variable
from the given variable_ordering strategy.

optional double random_branches_ratio = 32 [default = 0];

Returns
The randomBranchesRatio.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getRandomizeSearch()

boolean com.google.ortools.sat.SatParametersOrBuilder.getRandomizeSearch ( )
Randomize fixed search.

optional bool randomize_search = 103 [default = false];

Returns
The randomizeSearch.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getRandomPolarityRatio()

double com.google.ortools.sat.SatParametersOrBuilder.getRandomPolarityRatio ( )
The proportion of polarity chosen at random. Note that this take
precedence over the phase saving heuristic. This is different from
initial_polarity:POLARITY_RANDOM because it will select a new random
polarity each time the variable is branched upon instead of selecting one
initially and then always taking this choice.

optional double random_polarity_ratio = 45 [default = 0];

Returns
The randomPolarityRatio.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getRandomSeed()

int com.google.ortools.sat.SatParametersOrBuilder.getRandomSeed ( )
At the beginning of each solve, the random number generator used in some
part of the solver is reinitialized to this seed. If you change the random
seed, the solver may make different choices during the solving process.

For some problems, the running time may vary a lot depending on small
change in the solving algorithm. Running the solver with different seeds
enables to have more robust benchmarks when evaluating new features.

optional int32 random_seed = 31 [default = 1];

Returns
The randomSeed.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getRelativeGapLimit()

double com.google.ortools.sat.SatParametersOrBuilder.getRelativeGapLimit ( )

optional double relative_gap_limit = 160 [default = 0];

Returns
The relativeGapLimit.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getRepairHint()

boolean com.google.ortools.sat.SatParametersOrBuilder.getRepairHint ( )
If true, the solver tries to repair the solution given in the hint. This
search terminates after the 'hint_conflict_limit' is reached and the solver
switches to regular search. If false, then  we do a FIXED_SEARCH using the
hint until the hint_conflict_limit is reached.

optional bool repair_hint = 167 [default = false];

Returns
The repairHint.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getRestartAlgorithms()

com.google.ortools.sat.SatParameters.RestartAlgorithm com.google.ortools.sat.SatParametersOrBuilder.getRestartAlgorithms ( int index)
The restart strategies will change each time the strategy_counter is
increased. The current strategy will simply be the one at index
strategy_counter modulo the number of strategy. Note that if this list
includes a NO_RESTART, nothing will change when it is reached because the
strategy_counter will only increment after a restart.

The idea of switching of search strategy tailored for SAT/UNSAT comes from
Chanseok Oh with his COMiniSatPS solver, see http://cs.nyu.edu/~chanseok/.
But more generally, it seems REALLY beneficial to try different strategy.

repeated .operations_research.sat.SatParameters.RestartAlgorithm restart_algorithms = 61;

Parameters
indexThe index of the element to return.
Returns
The restartAlgorithms at the given index.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getRestartAlgorithmsCount()

int com.google.ortools.sat.SatParametersOrBuilder.getRestartAlgorithmsCount ( )
The restart strategies will change each time the strategy_counter is
increased. The current strategy will simply be the one at index
strategy_counter modulo the number of strategy. Note that if this list
includes a NO_RESTART, nothing will change when it is reached because the
strategy_counter will only increment after a restart.

The idea of switching of search strategy tailored for SAT/UNSAT comes from
Chanseok Oh with his COMiniSatPS solver, see http://cs.nyu.edu/~chanseok/.
But more generally, it seems REALLY beneficial to try different strategy.

repeated .operations_research.sat.SatParameters.RestartAlgorithm restart_algorithms = 61;

Returns
The count of restartAlgorithms.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getRestartAlgorithmsList()

java.util.List< com.google.ortools.sat.SatParameters.RestartAlgorithm > com.google.ortools.sat.SatParametersOrBuilder.getRestartAlgorithmsList ( )
The restart strategies will change each time the strategy_counter is
increased. The current strategy will simply be the one at index
strategy_counter modulo the number of strategy. Note that if this list
includes a NO_RESTART, nothing will change when it is reached because the
strategy_counter will only increment after a restart.

The idea of switching of search strategy tailored for SAT/UNSAT comes from
Chanseok Oh with his COMiniSatPS solver, see http://cs.nyu.edu/~chanseok/.
But more generally, it seems REALLY beneficial to try different strategy.

repeated .operations_research.sat.SatParameters.RestartAlgorithm restart_algorithms = 61;

Returns
A list containing the restartAlgorithms.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getRestartDlAverageRatio()

double com.google.ortools.sat.SatParametersOrBuilder.getRestartDlAverageRatio ( )
In the moving average restart algorithms, a restart is triggered if the
window average times this ratio is greater that the global average.

optional double restart_dl_average_ratio = 63 [default = 1];

Returns
The restartDlAverageRatio.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getRestartLbdAverageRatio()

double com.google.ortools.sat.SatParametersOrBuilder.getRestartLbdAverageRatio ( )

optional double restart_lbd_average_ratio = 71 [default = 1];

Returns
The restartLbdAverageRatio.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getRestartPeriod()

int com.google.ortools.sat.SatParametersOrBuilder.getRestartPeriod ( )
Restart period for the FIXED_RESTART strategy. This is also the multiplier
used by the LUBY_RESTART strategy.

optional int32 restart_period = 30 [default = 50];

Returns
The restartPeriod.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getRestartRunningWindowSize()

int com.google.ortools.sat.SatParametersOrBuilder.getRestartRunningWindowSize ( )
Size of the window for the moving average restarts.

optional int32 restart_running_window_size = 62 [default = 50];

Returns
The restartRunningWindowSize.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getRootLpIterations()

int com.google.ortools.sat.SatParametersOrBuilder.getRootLpIterations ( )
Even at the root node, we do not want to spend too much time on the LP if
it is "difficult". So we solve it in "chunks" of that many iterations. The
solve will be continued down in the tree or the next time we go back to the
root node.

optional int32 root_lp_iterations = 227 [default = 2000];

Returns
The rootLpIterations.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSearchBranching()

com.google.ortools.sat.SatParameters.SearchBranching com.google.ortools.sat.SatParametersOrBuilder.getSearchBranching ( )

optional .operations_research.sat.SatParameters.SearchBranching search_branching = 82 [default = AUTOMATIC_SEARCH];

Returns
The searchBranching.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSearchRandomVariablePoolSize()

long com.google.ortools.sat.SatParametersOrBuilder.getSearchRandomVariablePoolSize ( )
Search randomization will collect the top
'search_random_variable_pool_size' valued variables, and pick one randomly.
The value of the variable is specific to each strategy.

optional int64 search_random_variable_pool_size = 104 [default = 0];

Returns
The searchRandomVariablePoolSize.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getShareBinaryClauses()

boolean com.google.ortools.sat.SatParametersOrBuilder.getShareBinaryClauses ( )
Allows sharing of new learned binary clause between workers.

optional bool share_binary_clauses = 203 [default = true];

Returns
The shareBinaryClauses.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSharedTreeMaxNodesPerWorker()

int com.google.ortools.sat.SatParametersOrBuilder.getSharedTreeMaxNodesPerWorker ( )
In order to limit total shared memory and communication overhead, limit the
total number of nodes that may be generated in the shared tree. If the
shared tree runs out of unassigned leaves, workers act as portfolio
workers. Note: this limit includes interior nodes, not just leaves.

optional int32 shared_tree_max_nodes_per_worker = 238 [default = 128];

Returns
The sharedTreeMaxNodesPerWorker.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSharedTreeNumWorkers()

int com.google.ortools.sat.SatParametersOrBuilder.getSharedTreeNumWorkers ( )
Enables experimental workstealing-like shared tree search.
If non-zero, start this many complete worker threads to explore a shared
search tree. These workers communicate objective bounds and simple decision
nogoods relating to the shared prefix of the tree, and will avoid exploring
the same subtrees as one another.

optional int32 shared_tree_num_workers = 235 [default = 0];

Returns
The sharedTreeNumWorkers.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSharedTreeSplitStrategy()

com.google.ortools.sat.SatParameters.SharedTreeSplitStrategy com.google.ortools.sat.SatParametersOrBuilder.getSharedTreeSplitStrategy ( )

optional .operations_research.sat.SatParameters.SharedTreeSplitStrategy shared_tree_split_strategy = 239 [default = SPLIT_STRATEGY_AUTO];

Returns
The sharedTreeSplitStrategy.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSharedTreeWorkerObjectiveSplitProbability()

double com.google.ortools.sat.SatParametersOrBuilder.getSharedTreeWorkerObjectiveSplitProbability ( )
After their assigned prefix, shared tree workers will branch on the
objective with this probability. Higher numbers cause the shared tree
search to focus on improving the lower bound over finding primal solutions.

optional double shared_tree_worker_objective_split_probability = 237 [default = 0.5];

Returns
The sharedTreeWorkerObjectiveSplitProbability.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getShareLevelZeroBounds()

boolean com.google.ortools.sat.SatParametersOrBuilder.getShareLevelZeroBounds ( )
Allows sharing of the bounds of modified variables at level 0.

optional bool share_level_zero_bounds = 114 [default = true];

Returns
The shareLevelZeroBounds.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getShareObjectiveBounds()

boolean com.google.ortools.sat.SatParametersOrBuilder.getShareObjectiveBounds ( )
Allows objective sharing between workers.

optional bool share_objective_bounds = 113 [default = true];

Returns
The shareObjectiveBounds.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getShavingSearchDeterministicTime()

double com.google.ortools.sat.SatParametersOrBuilder.getShavingSearchDeterministicTime ( )
Specifies the amount of deterministic time spent of each try at shaving a
bound in the shaving search.

optional double shaving_search_deterministic_time = 205 [default = 0.001];

Returns
The shavingSearchDeterministicTime.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSolutionPoolSize()

int com.google.ortools.sat.SatParametersOrBuilder.getSolutionPoolSize ( )
Size of the top-n different solutions kept by the solver.
This parameter must be > 0.
Currently this only impact the "base" solution chosen for a LNS fragment.

optional int32 solution_pool_size = 193 [default = 3];

Returns
The solutionPoolSize.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getStopAfterFirstSolution()

boolean com.google.ortools.sat.SatParametersOrBuilder.getStopAfterFirstSolution ( )
For an optimization problem, stop the solver as soon as we have a solution.

optional bool stop_after_first_solution = 98 [default = false];

Returns
The stopAfterFirstSolution.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getStopAfterPresolve()

boolean com.google.ortools.sat.SatParametersOrBuilder.getStopAfterPresolve ( )
Mainly used when improving the presolver. When true, stops the solver after
the presolve is complete (or after loading and root level propagation).

optional bool stop_after_presolve = 149 [default = false];

Returns
The stopAfterPresolve.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getStopAfterRootPropagation()

boolean com.google.ortools.sat.SatParametersOrBuilder.getStopAfterRootPropagation ( )

optional bool stop_after_root_propagation = 252 [default = false];

Returns
The stopAfterRootPropagation.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getStrategyChangeIncreaseRatio()

double com.google.ortools.sat.SatParametersOrBuilder.getStrategyChangeIncreaseRatio ( )
The parameter num_conflicts_before_strategy_changes is increased by that
much after each strategy change.

optional double strategy_change_increase_ratio = 69 [default = 0];

Returns
The strategyChangeIncreaseRatio.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSubsolverParams()

com.google.ortools.sat.SatParameters com.google.ortools.sat.SatParametersOrBuilder.getSubsolverParams ( int index)
It is possible to specify additional subsolver configuration. These can be
referred by their params.name() in the fields above. Note that only the
specified field will "overwrite" the ones of the base parameter. If a
subsolver_params has the name of an existing subsolver configuration, the
named parameters will be merged into the subsolver configuration.

repeated .operations_research.sat.SatParameters subsolver_params = 210;

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSubsolverParamsCount()

int com.google.ortools.sat.SatParametersOrBuilder.getSubsolverParamsCount ( )
It is possible to specify additional subsolver configuration. These can be
referred by their params.name() in the fields above. Note that only the
specified field will "overwrite" the ones of the base parameter. If a
subsolver_params has the name of an existing subsolver configuration, the
named parameters will be merged into the subsolver configuration.

repeated .operations_research.sat.SatParameters subsolver_params = 210;

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSubsolverParamsList()

java.util.List< com.google.ortools.sat.SatParameters > com.google.ortools.sat.SatParametersOrBuilder.getSubsolverParamsList ( )
It is possible to specify additional subsolver configuration. These can be
referred by their params.name() in the fields above. Note that only the
specified field will "overwrite" the ones of the base parameter. If a
subsolver_params has the name of an existing subsolver configuration, the
named parameters will be merged into the subsolver configuration.

repeated .operations_research.sat.SatParameters subsolver_params = 210;

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSubsolverParamsOrBuilder()

com.google.ortools.sat.SatParametersOrBuilder com.google.ortools.sat.SatParametersOrBuilder.getSubsolverParamsOrBuilder ( int index)
It is possible to specify additional subsolver configuration. These can be
referred by their params.name() in the fields above. Note that only the
specified field will "overwrite" the ones of the base parameter. If a
subsolver_params has the name of an existing subsolver configuration, the
named parameters will be merged into the subsolver configuration.

repeated .operations_research.sat.SatParameters subsolver_params = 210;

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSubsolverParamsOrBuilderList()

java.util.List<? extends com.google.ortools.sat.SatParametersOrBuilder > com.google.ortools.sat.SatParametersOrBuilder.getSubsolverParamsOrBuilderList ( )
It is possible to specify additional subsolver configuration. These can be
referred by their params.name() in the fields above. Note that only the
specified field will "overwrite" the ones of the base parameter. If a
subsolver_params has the name of an existing subsolver configuration, the
named parameters will be merged into the subsolver configuration.

repeated .operations_research.sat.SatParameters subsolver_params = 210;

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSubsolvers()

java.lang.String com.google.ortools.sat.SatParametersOrBuilder.getSubsolvers ( int index)
In multi-thread, the solver can be mainly seen as a portfolio of solvers
with different parameters. This field indicates the names of the parameters
that are used in multithread.

See cp_model_search.cc to see a list of the names and the default value (if
left empty) that looks like:
- default_lp           (linearization_level:1)
- fixed                (only if fixed search specified or scheduling)
- no_lp                (linearization_level:0)
- max_lp               (linearization_level:2)
- pseudo_costs         (only if objective, change search heuristic)
- reduced_costs        (only if objective, change search heuristic)
- quick_restart        (kind of probing)
- quick_restart_no_lp  (kind of probing with linearization_level:0)
- lb_tree_search       (to improve lower bound, MIP like tree search)
- probing              (continuous probing and shaving)

Also, note that some set of parameters will be ignored if they do not make
sense. For instance if there is no objective, pseudo_cost or reduced_cost
search will be ignored. Core based search will only work if the objective
has many terms. If there is no fixed strategy fixed will be ignored. And so
on.

The order is important, as only the first usable "num_workers -
min_num_lns_workers" subsolvers will be scheduled. You can see in the log
which one are selected for a given run. All the others will be LNS if there
is an objective, or randomized SAT search for pure satisfiability problems.

repeated string subsolvers = 207;

Parameters
indexThe index of the element to return.
Returns
The subsolvers at the given index.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSubsolversBytes()

com.google.protobuf.ByteString com.google.ortools.sat.SatParametersOrBuilder.getSubsolversBytes ( int index)
In multi-thread, the solver can be mainly seen as a portfolio of solvers
with different parameters. This field indicates the names of the parameters
that are used in multithread.

See cp_model_search.cc to see a list of the names and the default value (if
left empty) that looks like:
- default_lp           (linearization_level:1)
- fixed                (only if fixed search specified or scheduling)
- no_lp                (linearization_level:0)
- max_lp               (linearization_level:2)
- pseudo_costs         (only if objective, change search heuristic)
- reduced_costs        (only if objective, change search heuristic)
- quick_restart        (kind of probing)
- quick_restart_no_lp  (kind of probing with linearization_level:0)
- lb_tree_search       (to improve lower bound, MIP like tree search)
- probing              (continuous probing and shaving)

Also, note that some set of parameters will be ignored if they do not make
sense. For instance if there is no objective, pseudo_cost or reduced_cost
search will be ignored. Core based search will only work if the objective
has many terms. If there is no fixed strategy fixed will be ignored. And so
on.

The order is important, as only the first usable "num_workers -
min_num_lns_workers" subsolvers will be scheduled. You can see in the log
which one are selected for a given run. All the others will be LNS if there
is an objective, or randomized SAT search for pure satisfiability problems.

repeated string subsolvers = 207;

Parameters
indexThe index of the value to return.
Returns
The bytes of the subsolvers at the given index.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSubsolversCount()

int com.google.ortools.sat.SatParametersOrBuilder.getSubsolversCount ( )
In multi-thread, the solver can be mainly seen as a portfolio of solvers
with different parameters. This field indicates the names of the parameters
that are used in multithread.

See cp_model_search.cc to see a list of the names and the default value (if
left empty) that looks like:
- default_lp           (linearization_level:1)
- fixed                (only if fixed search specified or scheduling)
- no_lp                (linearization_level:0)
- max_lp               (linearization_level:2)
- pseudo_costs         (only if objective, change search heuristic)
- reduced_costs        (only if objective, change search heuristic)
- quick_restart        (kind of probing)
- quick_restart_no_lp  (kind of probing with linearization_level:0)
- lb_tree_search       (to improve lower bound, MIP like tree search)
- probing              (continuous probing and shaving)

Also, note that some set of parameters will be ignored if they do not make
sense. For instance if there is no objective, pseudo_cost or reduced_cost
search will be ignored. Core based search will only work if the objective
has many terms. If there is no fixed strategy fixed will be ignored. And so
on.

The order is important, as only the first usable "num_workers -
min_num_lns_workers" subsolvers will be scheduled. You can see in the log
which one are selected for a given run. All the others will be LNS if there
is an objective, or randomized SAT search for pure satisfiability problems.

repeated string subsolvers = 207;

Returns
The count of subsolvers.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSubsolversList()

java.util.List< java.lang.String > com.google.ortools.sat.SatParametersOrBuilder.getSubsolversList ( )
In multi-thread, the solver can be mainly seen as a portfolio of solvers
with different parameters. This field indicates the names of the parameters
that are used in multithread.

See cp_model_search.cc to see a list of the names and the default value (if
left empty) that looks like:
- default_lp           (linearization_level:1)
- fixed                (only if fixed search specified or scheduling)
- no_lp                (linearization_level:0)
- max_lp               (linearization_level:2)
- pseudo_costs         (only if objective, change search heuristic)
- reduced_costs        (only if objective, change search heuristic)
- quick_restart        (kind of probing)
- quick_restart_no_lp  (kind of probing with linearization_level:0)
- lb_tree_search       (to improve lower bound, MIP like tree search)
- probing              (continuous probing and shaving)

Also, note that some set of parameters will be ignored if they do not make
sense. For instance if there is no objective, pseudo_cost or reduced_cost
search will be ignored. Core based search will only work if the objective
has many terms. If there is no fixed strategy fixed will be ignored. And so
on.

The order is important, as only the first usable "num_workers -
min_num_lns_workers" subsolvers will be scheduled. You can see in the log
which one are selected for a given run. All the others will be LNS if there
is an objective, or randomized SAT search for pure satisfiability problems.

repeated string subsolvers = 207;

Returns
A list containing the subsolvers.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSubsumptionDuringConflictAnalysis()

boolean com.google.ortools.sat.SatParametersOrBuilder.getSubsumptionDuringConflictAnalysis ( )
At a really low cost, during the 1-UIP conflict computation, it is easy to
detect if some of the involved reasons are subsumed by the current
conflict. When this is true, such clauses are detached and later removed
from the problem.

optional bool subsumption_during_conflict_analysis = 56 [default = true];

Returns
The subsumptionDuringConflictAnalysis.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getSymmetryLevel()

int com.google.ortools.sat.SatParametersOrBuilder.getSymmetryLevel ( )
Whether we try to automatically detect the symmetries in a model and
exploit them. Currently, at level 1 we detect them in presolve and try
to fix Booleans. At level 2, we also do some form of dynamic symmetry
breaking during search.

optional int32 symmetry_level = 183 [default = 2];

Returns
The symmetryLevel.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getTableCompressionLevel()

int com.google.ortools.sat.SatParametersOrBuilder.getTableCompressionLevel ( )
How much we try to "compress" a table constraint. Compressing more leads to
less Booleans and faster propagation but can reduced the quality of the lp
relaxation. Values goes from 0 to 3 where we always try to fully compress a
table. At 2, we try to automatically decide if it is worth it.

optional int32 table_compression_level = 217 [default = 2];

Returns
The tableCompressionLevel.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getTestFeasibilityJump()

boolean com.google.ortools.sat.SatParametersOrBuilder.getTestFeasibilityJump ( )
Disable every other type of subsolver, setting this turns CP-SAT into a
pure local-search solver.

optional bool test_feasibility_jump = 240 [default = false];

Returns
The testFeasibilityJump.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseAbslRandom()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseAbslRandom ( )

optional bool use_absl_random = 180 [default = false];

Returns
The useAbslRandom.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseAreaEnergeticReasoningInNoOverlap2D()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseAreaEnergeticReasoningInNoOverlap2D ( )
When this is true, the no_overlap_2d constraint is reinforced with
an energetic reasoning that uses an area-based energy. This can be combined
with the two other overlap heuristics above.

optional bool use_area_energetic_reasoning_in_no_overlap_2d = 271 [default = false];

Returns
The useAreaEnergeticReasoningInNoOverlap2d.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseBlockingRestart()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseBlockingRestart ( )
Block a moving restart algorithm if the trail size of the current conflict
is greater than the multiplier times the moving average of the trail size
at the previous conflicts.

optional bool use_blocking_restart = 64 [default = false];

Returns
The useBlockingRestart.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseCombinedNoOverlap()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseCombinedNoOverlap ( )
This can be beneficial if there is a lot of no-overlap constraints but a
relatively low number of different intervals in the problem. Like 1000
intervals, but 1M intervals in the no-overlap constraints covering them.

optional bool use_combined_no_overlap = 133 [default = false];

Returns
The useCombinedNoOverlap.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseDisjunctiveConstraintInCumulative()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseDisjunctiveConstraintInCumulative ( )
When this is true, the cumulative constraint is reinforced with propagators
from the disjunctive constraint to improve the inference on a set of tasks
that are disjunctive at the root of the problem. This additional level
supplements the default level of reasoning.

Propagators of the cumulative constraint will not be used at all if all the
tasks are disjunctive at root node.

This always result in better propagation, but it is usually slow, so
depending on the problem, turning this off may lead to a faster solution.

optional bool use_disjunctive_constraint_in_cumulative = 80 [default = true];

Returns
The useDisjunctiveConstraintInCumulative.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseDualSchedulingHeuristics()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseDualSchedulingHeuristics ( )
When set, it activates a few scheduling parameters to improve the lower
bound of scheduling problems. This is only effective with multiple workers
as it modifies the reduced_cost, lb_tree_search, and probing workers.

optional bool use_dual_scheduling_heuristics = 214 [default = true];

Returns
The useDualSchedulingHeuristics.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseDynamicPrecedenceInCumulative()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseDynamicPrecedenceInCumulative ( )

optional bool use_dynamic_precedence_in_cumulative = 268 [default = false];

Returns
The useDynamicPrecedenceInCumulative.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseDynamicPrecedenceInDisjunctive()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseDynamicPrecedenceInDisjunctive ( )
Whether we try to branch on decision "interval A before interval B" rather
than on intervals bounds. This usually works better, but slow down a bit
the time to find the first solution.

These parameters are still EXPERIMENTAL, the result should be correct, but
it some corner cases, they can cause some failing CHECK in the solver.

optional bool use_dynamic_precedence_in_disjunctive = 263 [default = false];

Returns
The useDynamicPrecedenceInDisjunctive.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseEnergeticReasoningInNoOverlap2D()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseEnergeticReasoningInNoOverlap2D ( )
When this is true, the no_overlap_2d constraint is reinforced with
energetic reasoning. This additional level supplements the default level of
reasoning.

optional bool use_energetic_reasoning_in_no_overlap_2d = 213 [default = false];

Returns
The useEnergeticReasoningInNoOverlap2d.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseErwaHeuristic()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseErwaHeuristic ( )
Whether we use the ERWA (Exponential Recency Weighted Average) heuristic as
described in "Learning Rate Based Branching Heuristic for SAT solvers",
J.H.Liang, V. Ganesh, P. Poupart, K.Czarnecki, SAT 2016.

optional bool use_erwa_heuristic = 75 [default = false];

Returns
The useErwaHeuristic.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseExactLpReason()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseExactLpReason ( )
The solver usually exploit the LP relaxation of a model. If this option is
true, then whatever is infered by the LP will be used like an heuristic to
compute EXACT propagation on the IP. So with this option, there is no
numerical imprecision issues.

optional bool use_exact_lp_reason = 109 [default = true];

Returns
The useExactLpReason.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseExtendedProbing()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseExtendedProbing ( )
Use extended probing (probe bool_or, at_most_one, exactly_one).

optional bool use_extended_probing = 269 [default = true];

Returns
The useExtendedProbing.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseFeasibilityJump()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseFeasibilityJump ( )
Parameters for an heuristic similar to the one described in the paper:
"Feasibility Jump: an LP-free Lagrangian MIP heuristic", Bjørnar
Luteberget, Giorgio Sartor, 2023, Mathematical Programming Computation.

optional bool use_feasibility_jump = 265 [default = true];

Returns
The useFeasibilityJump.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseFeasibilityPump()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseFeasibilityPump ( )
Adds a feasibility pump subsolver along with lns subsolvers.

optional bool use_feasibility_pump = 164 [default = true];

Returns
The useFeasibilityPump.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseHardPrecedencesInCumulative()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseHardPrecedencesInCumulative ( )
If true, detect and create constraint for integer variable that are "after"
a set of intervals in the same cumulative constraint.

Experimental: by default we just use "direct" precedences. If
exploit_all_precedences is true, we explore the full precedence graph. This
assumes we have a DAG otherwise it fails.

optional bool use_hard_precedences_in_cumulative = 215 [default = false];

Returns
The useHardPrecedencesInCumulative.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseImpliedBounds()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseImpliedBounds ( )
Stores and exploits "implied-bounds" in the solver. That is, relations of
the form literal => (var >= bound). This is currently used to derive
stronger cuts.

optional bool use_implied_bounds = 144 [default = true];

Returns
The useImpliedBounds.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseLbRelaxLns()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseLbRelaxLns ( )
Turns on neighborhood generator based on local branching LP. Based on Huang
et al., "Local Branching Relaxation Heuristics for Integer Linear
Programs", 2023.

optional bool use_lb_relax_lns = 255 [default = false];

Returns
The useLbRelaxLns.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseLnsOnly()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseLnsOnly ( )
LNS parameters.

optional bool use_lns_only = 101 [default = false];

Returns
The useLnsOnly.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseObjectiveLbSearch()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseObjectiveLbSearch ( )
If true, search will search in ascending max objective value (when
minimizing) starting from the lower bound of the objective.

optional bool use_objective_lb_search = 228 [default = false];

Returns
The useObjectiveLbSearch.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseObjectiveShavingSearch()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseObjectiveShavingSearch ( )
This search differs from the previous search as it will not use assumptions
to bound the objective, and it will recreate a full model with the
hardcoded objective value.

optional bool use_objective_shaving_search = 253 [default = false];

Returns
The useObjectiveShavingSearch.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseOptimizationHints()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseOptimizationHints ( )
For an optimization problem, whether we follow some hints in order to find
a better first solution. For a variable with hint, the solver will always
try to follow the hint. It will revert to the variable_branching default
otherwise.

optional bool use_optimization_hints = 35 [default = true];

Returns
The useOptimizationHints.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseOptionalVariables()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseOptionalVariables ( )
If true, we automatically detect variables whose constraint are always
enforced by the same literal and we mark them as optional. This allows
to propagate them as if they were present in some situation.

TODO(user): This is experimental and seems to lead to wrong optimal in
some situation. It should however gives correct solutions. Fix.

optional bool use_optional_variables = 108 [default = false];

Returns
The useOptionalVariables.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseOverloadCheckerInCumulative()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseOverloadCheckerInCumulative ( )
When this is true, the cumulative constraint is reinforced with overload
checking, i.e., an additional level of reasoning based on energy. This
additional level supplements the default level of reasoning as well as
timetable edge finding.

This always result in better propagation, but it is usually slow, so
depending on the problem, turning this off may lead to a faster solution.

optional bool use_overload_checker_in_cumulative = 78 [default = false];

Returns
The useOverloadCheckerInCumulative.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUsePbResolution()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUsePbResolution ( )
Whether to use pseudo-Boolean resolution to analyze a conflict. Note that
this option only make sense if your problem is modelized using
pseudo-Boolean constraints. If you only have clauses, this shouldn't change
anything (except slow the solver down).

optional bool use_pb_resolution = 43 [default = false];

Returns
The usePbResolution.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUsePhaseSaving()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUsePhaseSaving ( )
If this is true, then the polarity of a variable will be the last value it
was assigned to, or its default polarity if it was never assigned since the
call to ResetDecisionHeuristic().

Actually, we use a newer version where we follow the last value in the
longest non-conflicting partial assignment in the current phase.

This is called 'literal phase saving'. For details see 'A Lightweight
Component Caching Scheme for Satisfiability Solvers' K. Pipatsrisawat and
A.Darwiche, In 10th International Conference on Theory and Applications of
Satisfiability Testing, 2007.

optional bool use_phase_saving = 44 [default = true];

Returns
The usePhaseSaving.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUsePrecedencesInDisjunctiveConstraint()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUsePrecedencesInDisjunctiveConstraint ( )
When this is true, then a disjunctive constraint will try to use the
precedence relations between time intervals to propagate their bounds
further. For instance if task A and B are both before C and task A and B
are in disjunction, then we can deduce that task C must start after
duration(A) + duration(B) instead of simply max(duration(A), duration(B)),
provided that the start time for all task was currently zero.

This always result in better propagation, but it is usually slow, so
depending on the problem, turning this off may lead to a faster solution.

optional bool use_precedences_in_disjunctive_constraint = 74 [default = true];

Returns
The usePrecedencesInDisjunctiveConstraint.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseProbingSearch()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseProbingSearch ( )
If true, search will continuously probe Boolean variables, and integer
variable bounds. This parameter is set to true in parallel on the probing
worker.

optional bool use_probing_search = 176 [default = false];

Returns
The useProbingSearch.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseRinsLns()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseRinsLns ( )
Turns on relaxation induced neighborhood generator.

optional bool use_rins_lns = 129 [default = true];

Returns
The useRinsLns.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseSatInprocessing()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseSatInprocessing ( )
Enable or disable "inprocessing" which is some SAT presolving done at
each restart to the root level.

optional bool use_sat_inprocessing = 163 [default = true];

Returns
The useSatInprocessing.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseSharedTreeSearch()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseSharedTreeSearch ( )
Set on shared subtree workers. Users should not set this directly.

optional bool use_shared_tree_search = 236 [default = false];

Returns
The useSharedTreeSearch.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseShavingInProbingSearch()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseShavingInProbingSearch ( )
Add a shaving phase (where the solver tries to prove that the lower or
upper bound of a variable are infeasible) to the probing search.

optional bool use_shaving_in_probing_search = 204 [default = true];

Returns
The useShavingInProbingSearch.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseStrongPropagationInDisjunctive()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseStrongPropagationInDisjunctive ( )
Enable stronger and more expensive propagation on no_overlap constraint.

optional bool use_strong_propagation_in_disjunctive = 230 [default = false];

Returns
The useStrongPropagationInDisjunctive.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseTimetableEdgeFindingInCumulative()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseTimetableEdgeFindingInCumulative ( )
When this is true, the cumulative constraint is reinforced with timetable
edge finding, i.e., an additional level of reasoning based on the
conjunction of energy and mandatory parts. This additional level
supplements the default level of reasoning as well as overload_checker.

This always result in better propagation, but it is usually slow, so
depending on the problem, turning this off may lead to a faster solution.

optional bool use_timetable_edge_finding_in_cumulative = 79 [default = false];

Returns
The useTimetableEdgeFindingInCumulative.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getUseTimetablingInNoOverlap2D()

boolean com.google.ortools.sat.SatParametersOrBuilder.getUseTimetablingInNoOverlap2D ( )
When this is true, the no_overlap_2d constraint is reinforced with
propagators from the cumulative constraints. It consists of ignoring the
position of rectangles in one position and projecting the no_overlap_2d on
the other dimension to create a cumulative constraint. This is done on both
axis. This additional level supplements the default level of reasoning.

optional bool use_timetabling_in_no_overlap_2d = 200 [default = false];

Returns
The useTimetablingInNoOverlap2d.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getVariableActivityDecay()

double com.google.ortools.sat.SatParametersOrBuilder.getVariableActivityDecay ( )
Each time a conflict is found, the activities of some variables are
increased by one. Then, the activity of all variables are multiplied by
variable_activity_decay.

To implement this efficiently, the activity of all the variables is not
decayed at each conflict. Instead, the activity increment is multiplied by
1 / decay. When an activity reach max_variable_activity_value, all the
activity are multiplied by 1 / max_variable_activity_value.

optional double variable_activity_decay = 15 [default = 0.8];

Returns
The variableActivityDecay.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getViolationLsCompoundMoveProbability()

double com.google.ortools.sat.SatParametersOrBuilder.getViolationLsCompoundMoveProbability ( )
Probability of using compound move search each restart.
TODO(user): Add reference to paper when published.

optional double violation_ls_compound_move_probability = 259 [default = 0.5];

Returns
The violationLsCompoundMoveProbability.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ getViolationLsPerturbationPeriod()

int com.google.ortools.sat.SatParametersOrBuilder.getViolationLsPerturbationPeriod ( )
How long violation_ls should wait before perturbating a solution.

optional int32 violation_ls_perturbation_period = 249 [default = 100];

Returns
The violationLsPerturbationPeriod.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasAbsoluteGapLimit()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasAbsoluteGapLimit ( )
Stop the search when the gap between the best feasible objective (O) and
our best objective bound (B) is smaller than a limit.
The exact definition is:
- Absolute: abs(O - B)
- Relative: abs(O - B) / max(1, abs(O)).

Important: The relative gap depends on the objective offset! If you
artificially shift the objective, you will get widely different value of
the relative gap.

Note that if the gap is reached, the search status will be OPTIMAL. But
one can check the best objective bound to see the actual gap.

If the objective is integer, then any absolute gap < 1 will lead to a true
optimal. If the objective is floating point, a gap of zero make little
sense so is is why we use a non-zero default value. At the end of the
search, we will display a warning if OPTIMAL is reported yet the gap is
greater than this absolute gap.

optional double absolute_gap_limit = 159 [default = 0.0001];

Returns
Whether the absoluteGapLimit field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasAddCgCuts()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasAddCgCuts ( )
Whether we generate and add Chvatal-Gomory cuts to the LP at root node.
Note that for now, this is not heavily tuned.

optional bool add_cg_cuts = 117 [default = true];

Returns
Whether the addCgCuts field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasAddCliqueCuts()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasAddCliqueCuts ( )
Whether we generate clique cuts from the binary implication graph. Note
that as the search goes on, this graph will contains new binary clauses
learned by the SAT engine.

optional bool add_clique_cuts = 172 [default = true];

Returns
Whether the addCliqueCuts field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasAddLinMaxCuts()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasAddLinMaxCuts ( )
For the lin max constraints, generates the cuts described in "Strong
mixed-integer programming formulations for trained neural networks" by Ross
Anderson et. (https://arxiv.org/pdf/1811.01988.pdf)

optional bool add_lin_max_cuts = 152 [default = true];

Returns
Whether the addLinMaxCuts field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasAddLpConstraintsLazily()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasAddLpConstraintsLazily ( )
If true, we start by an empty LP, and only add constraints not satisfied
by the current LP solution batch by batch. A constraint that is only added
like this is known as a "lazy" constraint in the literature, except that we
currently consider all constraints as lazy here.

optional bool add_lp_constraints_lazily = 112 [default = true];

Returns
Whether the addLpConstraintsLazily field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasAddMirCuts()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasAddMirCuts ( )
Whether we generate MIR cuts at root node.
Note that for now, this is not heavily tuned.

optional bool add_mir_cuts = 120 [default = true];

Returns
Whether the addMirCuts field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasAddObjectiveCut()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasAddObjectiveCut ( )
When the LP objective is fractional, do we add the cut that forces the
linear objective expression to be greater or equal to this fractional value
rounded up? We can always do that since our objective is integer, and
combined with MIR heuristic to reduce the coefficient of such cut, it can
help.

optional bool add_objective_cut = 197 [default = false];

Returns
Whether the addObjectiveCut field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasAddRltCuts()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasAddRltCuts ( )
Whether we generate RLT cuts. This is still experimental but can help on
binary problem with a lot of clauses of size 3.

optional bool add_rlt_cuts = 279 [default = true];

Returns
Whether the addRltCuts field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasAddZeroHalfCuts()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasAddZeroHalfCuts ( )
Whether we generate Zero-Half cuts at root node.
Note that for now, this is not heavily tuned.

optional bool add_zero_half_cuts = 169 [default = true];

Returns
Whether the addZeroHalfCuts field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasAlsoBumpVariablesInConflictReasons()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasAlsoBumpVariablesInConflictReasons ( )
When this is true, then the variables that appear in any of the reason of
the variables in a conflict have their activity bumped. This is addition to
the variables in the conflict, and the one that were used during conflict
resolution.

optional bool also_bump_variables_in_conflict_reasons = 77 [default = false];

Returns
Whether the alsoBumpVariablesInConflictReasons field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasAtMostOneMaxExpansionSize()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasAtMostOneMaxExpansionSize ( )
All at_most_one constraints with a size <= param will be replaced by a
quadratic number of binary implications.

optional int32 at_most_one_max_expansion_size = 270 [default = 3];

Returns
Whether the atMostOneMaxExpansionSize field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasAutoDetectGreaterThanAtLeastOneOf()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasAutoDetectGreaterThanAtLeastOneOf ( )
If true, then the precedences propagator try to detect for each variable if
it has a set of "optional incoming arc" for which at least one of them is
present. This is usually useful to have but can be slow on model with a lot
of precedence.

optional bool auto_detect_greater_than_at_least_one_of = 95 [default = true];

Returns
Whether the autoDetectGreaterThanAtLeastOneOf field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasBinaryMinimizationAlgorithm()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasBinaryMinimizationAlgorithm ( )

optional .operations_research.sat.SatParameters.BinaryMinizationAlgorithm binary_minimization_algorithm = 34 [default = BINARY_MINIMIZATION_FIRST];

Returns
Whether the binaryMinimizationAlgorithm field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasBinarySearchNumConflicts()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasBinarySearchNumConflicts ( )
If non-negative, perform a binary search on the objective variable in order
to find an [min, max] interval outside of which the solver proved unsat/sat
under this amount of conflict. This can quickly reduce the objective domain
on some problems.

optional int32 binary_search_num_conflicts = 99 [default = -1];

Returns
Whether the binarySearchNumConflicts field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasBlockingRestartMultiplier()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasBlockingRestartMultiplier ( )

optional double blocking_restart_multiplier = 66 [default = 1.4];

Returns
Whether the blockingRestartMultiplier field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasBlockingRestartWindowSize()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasBlockingRestartWindowSize ( )

optional int32 blocking_restart_window_size = 65 [default = 5000];

Returns
Whether the blockingRestartWindowSize field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasBooleanEncodingLevel()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasBooleanEncodingLevel ( )
A non-negative level indicating how much we should try to fully encode
Integer variables as Boolean.

optional int32 boolean_encoding_level = 107 [default = 1];

Returns
Whether the booleanEncodingLevel field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasCatchSigintSignal()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasCatchSigintSignal ( )
Indicates if the CP-SAT layer should catch Control-C (SIGINT) signals
when calling solve. If set, catching the SIGINT signal will terminate the
search gracefully, as if a time limit was reached.

optional bool catch_sigint_signal = 135 [default = true];

Returns
Whether the catchSigintSignal field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasClauseActivityDecay()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasClauseActivityDecay ( )
Clause activity parameters (same effect as the one on the variables).

optional double clause_activity_decay = 17 [default = 0.999];

Returns
Whether the clauseActivityDecay field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasClauseCleanupLbdBound()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasClauseCleanupLbdBound ( )
All the clauses with a LBD (literal blocks distance) lower or equal to this
parameters will always be kept.

optional int32 clause_cleanup_lbd_bound = 59 [default = 5];

Returns
Whether the clauseCleanupLbdBound field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasClauseCleanupOrdering()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasClauseCleanupOrdering ( )

optional .operations_research.sat.SatParameters.ClauseOrdering clause_cleanup_ordering = 60 [default = CLAUSE_ACTIVITY];

Returns
Whether the clauseCleanupOrdering field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasClauseCleanupPeriod()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasClauseCleanupPeriod ( )
Trigger a cleanup when this number of "deletable" clauses is learned.

optional int32 clause_cleanup_period = 11 [default = 10000];

Returns
Whether the clauseCleanupPeriod field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasClauseCleanupProtection()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasClauseCleanupProtection ( )

optional .operations_research.sat.SatParameters.ClauseProtection clause_cleanup_protection = 58 [default = PROTECTION_NONE];

Returns
Whether the clauseCleanupProtection field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasClauseCleanupRatio()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasClauseCleanupRatio ( )
During a cleanup, if clause_cleanup_target is 0, we will delete the
clause_cleanup_ratio of "deletable" clauses instead of aiming for a fixed
target of clauses to keep.

optional double clause_cleanup_ratio = 190 [default = 0.5];

Returns
Whether the clauseCleanupRatio field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasClauseCleanupTarget()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasClauseCleanupTarget ( )
During a cleanup, we will always keep that number of "deletable" clauses.
Note that this doesn't include the "protected" clauses.

optional int32 clause_cleanup_target = 13 [default = 0];

Returns
Whether the clauseCleanupTarget field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasConvertIntervals()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasConvertIntervals ( )
Temporary flag util the feature is more mature. This convert intervals to
the newer proto format that support affine start/var/end instead of just
variables.

optional bool convert_intervals = 177 [default = true];

Returns
Whether the convertIntervals field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasCoreMinimizationLevel()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasCoreMinimizationLevel ( )
If positive, we spend some effort on each core:
- At level 1, we use a simple heuristic to try to minimize an UNSAT core.
- At level 2, we use propagation to minimize the core but also identify
  literal in at most one relationship in this core.

optional int32 core_minimization_level = 50 [default = 2];

Returns
Whether the coreMinimizationLevel field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasCountAssumptionLevelsInLbd()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasCountAssumptionLevelsInLbd ( )
Whether or not the assumption levels are taken into account during the LBD
computation. According to the reference below, not counting them improves
the solver in some situation. Note that this only impact solves under
assumptions.

Gilles Audemard, Jean-Marie Lagniez, Laurent Simon, "Improving Glucose for
Incremental SAT Solving with Assumptions: Application to MUS Extraction"
Theory and Applications of Satisfiability Testing - SAT 2013, Lecture Notes
in Computer Science Volume 7962, 2013, pp 309-317.

optional bool count_assumption_levels_in_lbd = 49 [default = true];

Returns
Whether the countAssumptionLevelsInLbd field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasCoverOptimization()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasCoverOptimization ( )
If true, when the max-sat algo find a core, we compute the minimal number
of literals in the core that needs to be true to have a feasible solution.
This is also called core exhaustion in more recent max-SAT papers.

optional bool cover_optimization = 89 [default = true];

Returns
Whether the coverOptimization field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasCpModelPresolve()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasCpModelPresolve ( )
Whether we presolve the cp_model before solving it.

optional bool cp_model_presolve = 86 [default = true];

Returns
Whether the cpModelPresolve field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasCpModelProbingLevel()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasCpModelProbingLevel ( )
How much effort do we spend on probing. 0 disables it completely.

optional int32 cp_model_probing_level = 110 [default = 2];

Returns
Whether the cpModelProbingLevel field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasCpModelUseSatPresolve()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasCpModelUseSatPresolve ( )
Whether we also use the sat presolve when cp_model_presolve is true.

optional bool cp_model_use_sat_presolve = 93 [default = true];

Returns
Whether the cpModelUseSatPresolve field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasCutActiveCountDecay()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasCutActiveCountDecay ( )

optional double cut_active_count_decay = 156 [default = 0.8];

Returns
Whether the cutActiveCountDecay field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasCutCleanupTarget()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasCutCleanupTarget ( )
Target number of constraints to remove during cleanup.

optional int32 cut_cleanup_target = 157 [default = 1000];

Returns
Whether the cutCleanupTarget field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasCutLevel()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasCutLevel ( )
Control the global cut effort. Zero will turn off all cut. For now we just
have one level. Note also that most cuts are only used at linearization
level >= 2.

optional int32 cut_level = 196 [default = 1];

Returns
Whether the cutLevel field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasCutMaxActiveCountValue()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasCutMaxActiveCountValue ( )
These parameters are similar to sat clause management activity parameters.
They are effective only if the number of generated cuts exceed the storage
limit. Default values are based on a few experiments on miplib instances.

optional double cut_max_active_count_value = 155 [default = 10000000000];

Returns
Whether the cutMaxActiveCountValue field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasDebugCrashOnBadHint()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasDebugCrashOnBadHint ( )
Crash if we do not manage to complete the hint into a full solution.

optional bool debug_crash_on_bad_hint = 195 [default = false];

Returns
Whether the debugCrashOnBadHint field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasDebugMaxNumPresolveOperations()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasDebugMaxNumPresolveOperations ( )
If positive, try to stop just after that many presolve rules have been
applied. This is mainly useful for debugging presolve.

optional int32 debug_max_num_presolve_operations = 151 [default = 0];

Returns
Whether the debugMaxNumPresolveOperations field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasDebugPostsolveWithFullSolver()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasDebugPostsolveWithFullSolver ( )
We have two different postsolve code. The default one should be better and
it allows for a more powerful presolve, but it can be useful to postsolve
using the full solver instead.

optional bool debug_postsolve_with_full_solver = 162 [default = false];

Returns
Whether the debugPostsolveWithFullSolver field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasDefaultRestartAlgorithms()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasDefaultRestartAlgorithms ( )

optional string default_restart_algorithms = 70 [default = "LUBY_RESTART,LBD_MOVING_AVERAGE_RESTART,DL_MOVING_AVERAGE_RESTART"];

Returns
Whether the defaultRestartAlgorithms field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasDetectLinearizedProduct()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasDetectLinearizedProduct ( )
Infer products of Boolean or of Boolean time IntegerVariable from the
linear constrainst in the problem. This can be used in some cuts, altough
for now we don't really exploit it.

optional bool detect_linearized_product = 277 [default = false];

Returns
Whether the detectLinearizedProduct field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasDetectTableWithCost()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasDetectTableWithCost ( )
If true, we detect variable that are unique to a table constraint and only
there to encode a cost on each tuple. This is usually the case when a WCSP
(weighted constraint program) is encoded into CP-SAT format.

This can lead to a dramatic speed-up for such problems but is still
experimental at this point.

optional bool detect_table_with_cost = 216 [default = false];

Returns
Whether the detectTableWithCost field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasDisableConstraintExpansion()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasDisableConstraintExpansion ( )
If true, it disable all constraint expansion.
This should only be used to test the presolve of expanded constraints.

optional bool disable_constraint_expansion = 181 [default = false];

Returns
Whether the disableConstraintExpansion field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasDiversifyLnsParams()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasDiversifyLnsParams ( )
If true, registers more lns subsolvers with different parameters.

optional bool diversify_lns_params = 137 [default = false];

Returns
Whether the diversifyLnsParams field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasEncodeComplexLinearConstraintWithInteger()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasEncodeComplexLinearConstraintWithInteger ( )
Linear constraint with a complex right hand side (more than a single
interval) need to be expanded, there is a couple of way to do that.

optional bool encode_complex_linear_constraint_with_integer = 223 [default = false];

Returns
Whether the encodeComplexLinearConstraintWithInteger field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasEnumerateAllSolutions()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasEnumerateAllSolutions ( )
Whether we enumerate all solutions of a problem without objective. Note
that setting this to true automatically disable some presolve reduction
that can remove feasible solution. That is it has the same effect as
setting keep_all_feasible_solutions_in_presolve.

TODO(user): Do not do that and let the user choose what behavior is best by
setting keep_all_feasible_solutions_in_presolve ?

optional bool enumerate_all_solutions = 87 [default = false];

Returns
Whether the enumerateAllSolutions field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasExpandAlldiffConstraints()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasExpandAlldiffConstraints ( )
If true, expand all_different constraints that are not permutations.
Permutations (#Variables = #Values) are always expanded.

optional bool expand_alldiff_constraints = 170 [default = false];

Returns
Whether the expandAlldiffConstraints field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasExpandReservoirConstraints()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasExpandReservoirConstraints ( )
If true, expand the reservoir constraints by creating booleans for all
possible precedences between event and encoding the constraint.

optional bool expand_reservoir_constraints = 182 [default = true];

Returns
Whether the expandReservoirConstraints field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasExploitAllLpSolution()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasExploitAllLpSolution ( )
If true and the Lp relaxation of the problem has a solution, try to exploit
it. This is same as above except in this case the lp solution might not be
an integer solution.

optional bool exploit_all_lp_solution = 116 [default = true];

Returns
Whether the exploitAllLpSolution field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasExploitAllPrecedences()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasExploitAllPrecedences ( )

optional bool exploit_all_precedences = 220 [default = false];

Returns
Whether the exploitAllPrecedences field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasExploitBestSolution()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasExploitBestSolution ( )
When branching on a variable, follow the last best solution value.

optional bool exploit_best_solution = 130 [default = false];

Returns
Whether the exploitBestSolution field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasExploitIntegerLpSolution()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasExploitIntegerLpSolution ( )
If true and the Lp relaxation of the problem has an integer optimal
solution, try to exploit it. Note that since the LP relaxation may not
contain all the constraints, such a solution is not necessarily a solution
of the full problem.

optional bool exploit_integer_lp_solution = 94 [default = true];

Returns
Whether the exploitIntegerLpSolution field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasExploitObjective()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasExploitObjective ( )
When branching an a variable that directly affect the objective,
branch on the value that lead to the best objective first.

optional bool exploit_objective = 131 [default = true];

Returns
Whether the exploitObjective field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasExploitRelaxationSolution()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasExploitRelaxationSolution ( )
When branching on a variable, follow the last best relaxation solution
value. We use the relaxation with the tightest bound on the objective as
the best relaxation solution.

optional bool exploit_relaxation_solution = 161 [default = false];

Returns
Whether the exploitRelaxationSolution field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasFeasibilityJumpDecay()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasFeasibilityJumpDecay ( )
On each restart, we randomly choose if we use decay (with this parameter)
or no decay.

optional double feasibility_jump_decay = 242 [default = 0.95];

Returns
Whether the feasibilityJumpDecay field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasFeasibilityJumpEnableRestarts()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasFeasibilityJumpEnableRestarts ( )
When stagnating, feasibility jump will either restart from a default
solution (with some possible randomization), or randomly pertubate the
current solution. This parameter selects the first option.

optional bool feasibility_jump_enable_restarts = 250 [default = true];

Returns
Whether the feasibilityJumpEnableRestarts field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasFeasibilityJumpLinearizationLevel()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasFeasibilityJumpLinearizationLevel ( )
How much do we linearize the problem in the local search code.

optional int32 feasibility_jump_linearization_level = 257 [default = 2];

Returns
Whether the feasibilityJumpLinearizationLevel field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasFeasibilityJumpMaxExpandedConstraintSize()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasFeasibilityJumpMaxExpandedConstraintSize ( )
Maximum size of no_overlap or no_overlap_2d constraint for a quadratic
expansion.

optional int32 feasibility_jump_max_expanded_constraint_size = 264 [default = 100];

Returns
Whether the feasibilityJumpMaxExpandedConstraintSize field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasFeasibilityJumpRestartFactor()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasFeasibilityJumpRestartFactor ( )
This is a factor that directly influence the work before each restart.
Setting this to zero disable restart, and increasing it lead to longer
restarts.

optional int32 feasibility_jump_restart_factor = 258 [default = 1];

Returns
Whether the feasibilityJumpRestartFactor field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasFeasibilityJumpVarPerburbationRangeRatio()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasFeasibilityJumpVarPerburbationRangeRatio ( )
Max distance between the default value and the pertubated value relative to
the range of the domain of the variable.

optional double feasibility_jump_var_perburbation_range_ratio = 248 [default = 0.2];

Returns
Whether the feasibilityJumpVarPerburbationRangeRatio field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasFeasibilityJumpVarRandomizationProbability()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasFeasibilityJumpVarRandomizationProbability ( )
Probability for a variable to have a non default value upon restarts or
perturbations.

optional double feasibility_jump_var_randomization_probability = 247 [default = 0];

Returns
Whether the feasibilityJumpVarRandomizationProbability field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasFillAdditionalSolutionsInResponse()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasFillAdditionalSolutionsInResponse ( )
If true, the final response addition_solutions field will be filled with
all solutions from our solutions pool.

Note that if both this field and enumerate_all_solutions is true, we will
copy to the pool all of the solution found. So if solution_pool_size is big
enough, you can get all solutions this way instead of using the solution
callback.

Note that this only affect the "final" solution, not the one passed to the
solution callbacks.

optional bool fill_additional_solutions_in_response = 194 [default = false];

Returns
Whether the fillAdditionalSolutionsInResponse field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasFillTightenedDomainsInResponse()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasFillTightenedDomainsInResponse ( )
If true, add information about the derived variable domains to the
CpSolverResponse. It is an option because it makes the response slighly
bigger and there is a bit more work involved during the postsolve to
construct it, but it should still have a low overhead. See the
tightened_variables field in CpSolverResponse for more details.

optional bool fill_tightened_domains_in_response = 132 [default = false];

Returns
Whether the fillTightenedDomainsInResponse field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasFindBigLinearOverlap()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasFindBigLinearOverlap ( )
Try to find large "rectangle" in the linear constraint matrix with
identical lines. If such rectangle is big enough, we can introduce a new
integer variable corresponding to the common expression and greatly reduce
the number of non-zero.

optional bool find_big_linear_overlap = 234 [default = true];

Returns
Whether the findBigLinearOverlap field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasFindMultipleCores()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasFindMultipleCores ( )
Whether we try to find more independent cores for a given set of
assumptions in the core based max-SAT algorithms.

optional bool find_multiple_cores = 84 [default = true];

Returns
Whether the findMultipleCores field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasFixVariablesToTheirHintedValue()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasFixVariablesToTheirHintedValue ( )
If true, variables appearing in the solution hints will be fixed to their
hinted value.

optional bool fix_variables_to_their_hinted_value = 192 [default = false];

Returns
Whether the fixVariablesToTheirHintedValue field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasFpRounding()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasFpRounding ( )

optional .operations_research.sat.SatParameters.FPRoundingMethod fp_rounding = 165 [default = PROPAGATION_ASSISTED];

Returns
Whether the fpRounding field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasGlucoseDecayIncrement()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasGlucoseDecayIncrement ( )

optional double glucose_decay_increment = 23 [default = 0.01];

Returns
Whether the glucoseDecayIncrement field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasGlucoseDecayIncrementPeriod()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasGlucoseDecayIncrementPeriod ( )

optional int32 glucose_decay_increment_period = 24 [default = 5000];

Returns
Whether the glucoseDecayIncrementPeriod field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasGlucoseMaxDecay()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasGlucoseMaxDecay ( )
The activity starts at 0.8 and increment by 0.01 every 5000 conflicts until
0.95. This "hack" seems to work well and comes from:

Glucose 2.3 in the SAT 2013 Competition - SAT Competition 2013
http://edacc4.informatik.uni-ulm.de/SC13/solver-description-download/136

optional double glucose_max_decay = 22 [default = 0.95];

Returns
Whether the glucoseMaxDecay field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasHintConflictLimit()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasHintConflictLimit ( )
Conflict limit used in the phase that exploit the solution hint.

optional int32 hint_conflict_limit = 153 [default = 10];

Returns
Whether the hintConflictLimit field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasIgnoreNames()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasIgnoreNames ( )
If true, we don't keep names in our internal copy of the user given model.

optional bool ignore_names = 202 [default = true];

Returns
Whether the ignoreNames field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasInferAllDiffs()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasInferAllDiffs ( )
Run a max-clique code amongst all the x != y we can find and try to infer
set of variables that are all different. This allows to close neos16.mps
for instance. Note that we only run this code if there is no all_diff
already in the model so that if a user want to add some all_diff, we assume
it is well done and do not try to add more.

optional bool infer_all_diffs = 233 [default = true];

Returns
Whether the inferAllDiffs field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasInitialPolarity()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasInitialPolarity ( )

optional .operations_research.sat.SatParameters.Polarity initial_polarity = 2 [default = POLARITY_FALSE];

Returns
Whether the initialPolarity field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasInitialVariablesActivity()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasInitialVariablesActivity ( )
The initial value of the variables activity. A non-zero value only make
sense when use_erwa_heuristic is true. Experiments with a value of 1e-2
together with the ERWA heuristic showed slighthly better result than simply
using zero. The idea is that when the "learning rate" of a variable becomes
lower than this value, then we prefer to branch on never explored before
variables. This is not in the ERWA paper.

optional double initial_variables_activity = 76 [default = 0];

Returns
Whether the initialVariablesActivity field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasInprocessingDtimeRatio()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasInprocessingDtimeRatio ( )
Proportion of deterministic time we should spend on inprocessing.
At each "restart", if the proportion is below this ratio, we will do some
inprocessing, otherwise, we skip it for this restart.

optional double inprocessing_dtime_ratio = 273 [default = 0.2];

Returns
Whether the inprocessingDtimeRatio field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasInprocessingMinimizationDtime()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasInprocessingMinimizationDtime ( )
Parameters for an heuristic similar to the one described in "An effective
learnt clause minimization approach for CDCL Sat Solvers",
https://www.ijcai.org/proceedings/2017/0098.pdf

This is the amount of dtime we should spend on this technique during each
inprocessing phase.

The minimization technique is the same as the one used to minimize core in
max-sat. We also minimize problem clauses and not just the learned clause
that we keep forever like in the paper.

optional double inprocessing_minimization_dtime = 275 [default = 1];

Returns
Whether the inprocessingMinimizationDtime field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasInprocessingProbingDtime()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasInprocessingProbingDtime ( )
The amount of dtime we should spend on probing for each inprocessing round.

optional double inprocessing_probing_dtime = 274 [default = 1];

Returns
Whether the inprocessingProbingDtime field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasInstantiateAllVariables()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasInstantiateAllVariables ( )
If true, the solver will add a default integer branching strategy to the
already defined search strategy. If not, some variable might still not be
fixed at the end of the search. For now we assume these variable can just
be set to their lower bound.

optional bool instantiate_all_variables = 106 [default = true];

Returns
Whether the instantiateAllVariables field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasInterleaveBatchSize()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasInterleaveBatchSize ( )

optional int32 interleave_batch_size = 134 [default = 0];

Returns
Whether the interleaveBatchSize field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasInterleaveSearch()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasInterleaveSearch ( )
Experimental. If this is true, then we interleave all our major search
strategy and distribute the work amongst num_workers.

The search is deterministic (independently of num_workers!), and we
schedule and wait for interleave_batch_size task to be completed before
synchronizing and scheduling the next batch of tasks.

optional bool interleave_search = 136 [default = false];

Returns
Whether the interleaveSearch field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasKeepAllFeasibleSolutionsInPresolve()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasKeepAllFeasibleSolutionsInPresolve ( )
If true, we disable the presolve reductions that remove feasible solutions
from the search space. Such solution are usually dominated by a "better"
solution that is kept, but depending on the situation, we might want to
keep all solutions.

A trivial example is when a variable is unused. If this is true, then the
presolve will not fix it to an arbitrary value and it will stay in the
search space.

optional bool keep_all_feasible_solutions_in_presolve = 173 [default = false];

Returns
Whether the keepAllFeasibleSolutionsInPresolve field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasLinearizationLevel()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasLinearizationLevel ( )
A non-negative level indicating the type of constraints we consider in the
LP relaxation. At level zero, no LP relaxation is used. At level 1, only
the linear constraint and full encoding are added. At level 2, we also add
all the Boolean constraints.

optional int32 linearization_level = 90 [default = 1];

Returns
Whether the linearizationLevel field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasLinearSplitSize()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasLinearSplitSize ( )
Linear constraints that are not pseudo-Boolean and that are longer than
this size will be split into sqrt(size) intermediate sums in order to have
faster propation in the CP engine.

optional int32 linear_split_size = 256 [default = 100];

Returns
Whether the linearSplitSize field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasLogPrefix()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasLogPrefix ( )
Add a prefix to all logs.

optional string log_prefix = 185 [default = ""];

Returns
Whether the logPrefix field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasLogSearchProgress()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasLogSearchProgress ( )
Whether the solver should log the search progress. This is the maing
logging parameter and if this is false, none of the logging (callbacks,
log_to_stdout, log_to_response, ...) will do anything.

optional bool log_search_progress = 41 [default = false];

Returns
Whether the logSearchProgress field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasLogSubsolverStatistics()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasLogSubsolverStatistics ( )
Whether the solver should display per sub-solver search statistics.
This is only useful is log_search_progress is set to true, and if the
number of search workers is > 1. Note that in all case we display a bit
of stats with one line per subsolver.

optional bool log_subsolver_statistics = 189 [default = false];

Returns
Whether the logSubsolverStatistics field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasLogToResponse()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasLogToResponse ( )
Log to response proto.

optional bool log_to_response = 187 [default = false];

Returns
Whether the logToResponse field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasLogToStdout()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasLogToStdout ( )
Log to stdout.

optional bool log_to_stdout = 186 [default = true];

Returns
Whether the logToStdout field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasLpDualTolerance()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasLpDualTolerance ( )

optional double lp_dual_tolerance = 267 [default = 1e-07];

Returns
Whether the lpDualTolerance field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasLpPrimalTolerance()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasLpPrimalTolerance ( )
The internal LP tolerances used by CP-SAT. These applies to the internal
and scaled problem. If the domains of your variables are large it might be
good to use lower tolerances. If your problem is binary with low
coefficients, it might be good to use higher ones to speed-up the lp
solves.

optional double lp_primal_tolerance = 266 [default = 1e-07];

Returns
Whether the lpPrimalTolerance field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxAllDiffCutSize()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxAllDiffCutSize ( )
Cut generator for all diffs can add too many cuts for large all_diff
constraints. This parameter restricts the large all_diff constraints to
have a cut generator.

optional int32 max_all_diff_cut_size = 148 [default = 64];

Returns
Whether the maxAllDiffCutSize field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxClauseActivityValue()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxClauseActivityValue ( )

optional double max_clause_activity_value = 18 [default = 1e+20];

Returns
Whether the maxClauseActivityValue field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxConsecutiveInactiveCount()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxConsecutiveInactiveCount ( )
If a constraint/cut in LP is not active for that many consecutive OPTIMAL
solves, remove it from the LP. Note that it might be added again later if
it become violated by the current LP solution.

optional int32 max_consecutive_inactive_count = 121 [default = 100];

Returns
Whether the maxConsecutiveInactiveCount field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxCutRoundsAtLevelZero()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxCutRoundsAtLevelZero ( )
Max number of time we perform cut generation and resolve the LP at level 0.

optional int32 max_cut_rounds_at_level_zero = 154 [default = 1];

Returns
Whether the maxCutRoundsAtLevelZero field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxDeterministicTime()

boolean com.google.ortools.sat.SatParametersOrBuilder.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 as close as possible to a second.

optional double max_deterministic_time = 67 [default = inf];

Returns
Whether the maxDeterministicTime field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxDomainSizeWhenEncodingEqNeqConstraints()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxDomainSizeWhenEncodingEqNeqConstraints ( )
When loading a*x + b*y ==/!= c when x and y are both fully encoded.
The solver may decide to replace the linear equation by a set of clauses.
This is triggered if the sizes of the domains of x and y are below the
threshold.

optional int32 max_domain_size_when_encoding_eq_neq_constraints = 191 [default = 16];

Returns
Whether the maxDomainSizeWhenEncodingEqNeqConstraints field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxIntegerRoundingScaling()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxIntegerRoundingScaling ( )
In the integer rounding procedure used for MIR and Gomory cut, the maximum
"scaling" we use (must be positive). The lower this is, the lower the
integer coefficients of the cut will be. Note that cut generated by lower
values are not necessarily worse than cut generated by larger value. There
is no strict dominance relationship.

Setting this to 2 result in the "strong fractional rouding" of Letchford
and Lodi.

optional int32 max_integer_rounding_scaling = 119 [default = 600];

Returns
Whether the maxIntegerRoundingScaling field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxMemoryInMb()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxMemoryInMb ( )
Maximum memory allowed for the whole thread containing the solver. The
solver will abort as soon as it detects that this limit is crossed. As a
result, this limit is approximative, but usually the solver will not go too
much over.

TODO(user): This is only used by the pure SAT solver, generalize to CP-SAT.

optional int64 max_memory_in_mb = 40 [default = 10000];

Returns
Whether the maxMemoryInMb field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxNumberOfConflicts()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxNumberOfConflicts ( )
Maximum number of conflicts allowed to solve a problem.

TODO(user): Maybe change the way the conflict limit is enforced?
currently it is enforced on each independent internal SAT solve, rather
than on the overall number of conflicts across all solves. So in the
context of an optimization problem, this is not really usable directly by a
client.

optional int64 max_number_of_conflicts = 37 [default = 9223372036854775807];

Returns
Whether the maxNumberOfConflicts field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxNumCuts()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxNumCuts ( )
The limit on the number of cuts in our cut pool. When this is reached we do
not generate cuts anymore.

TODO(user): We should probably remove this parameters, and just always
generate cuts but only keep the best n or something.

optional int32 max_num_cuts = 91 [default = 10000];

Returns
Whether the maxNumCuts field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxNumIntervalsForTimetableEdgeFinding()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxNumIntervalsForTimetableEdgeFinding ( )
Max number of intervals for the timetable_edge_finding algorithm to
propagate. A value of 0 disables the constraint.

optional int32 max_num_intervals_for_timetable_edge_finding = 260 [default = 100];

Returns
Whether the maxNumIntervalsForTimetableEdgeFinding field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxPairsPairwiseReasoningInNoOverlap2D()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxPairsPairwiseReasoningInNoOverlap2D ( )
If the number of pairs to look is below this threshold, do an extra step of
propagation in the no_overlap_2d constraint by looking at all pairs of
intervals.

optional int32 max_pairs_pairwise_reasoning_in_no_overlap_2d = 276 [default = 1250];

Returns
Whether the maxPairsPairwiseReasoningInNoOverlap2d field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxPresolveIterations()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxPresolveIterations ( )
In case of large reduction in a presolve iteration, we perform multiple
presolve iterations. This parameter controls the maximum number of such
presolve iterations.

optional int32 max_presolve_iterations = 138 [default = 3];

Returns
Whether the maxPresolveIterations field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxSatAssumptionOrder()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxSatAssumptionOrder ( )

optional .operations_research.sat.SatParameters.MaxSatAssumptionOrder max_sat_assumption_order = 51 [default = DEFAULT_ASSUMPTION_ORDER];

Returns
Whether the maxSatAssumptionOrder field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxSatReverseAssumptionOrder()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxSatReverseAssumptionOrder ( )
If true, adds the assumption in the reverse order of the one defined by
max_sat_assumption_order.

optional bool max_sat_reverse_assumption_order = 52 [default = false];

Returns
Whether the maxSatReverseAssumptionOrder field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxSatStratification()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxSatStratification ( )

optional .operations_research.sat.SatParameters.MaxSatStratificationAlgorithm max_sat_stratification = 53 [default = STRATIFICATION_DESCENT];

Returns
Whether the maxSatStratification field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxSizeToCreatePrecedenceLiteralsInDisjunctive()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxSizeToCreatePrecedenceLiteralsInDisjunctive ( )
Create one literal for each disjunction of two pairs of tasks. This slows
down the solve time, but improves the lower bound of the objective in the
makespan case. This will be triggered if the number of intervals is less or
equal than the parameter and if use_strong_propagation_in_disjunctive is
true.

optional int32 max_size_to_create_precedence_literals_in_disjunctive = 229 [default = 60];

Returns
Whether the maxSizeToCreatePrecedenceLiteralsInDisjunctive field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxTimeInSeconds()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxTimeInSeconds ( )
Maximum time allowed in seconds to solve a problem.
The counter will starts at the beginning of the Solve() call.

optional double max_time_in_seconds = 36 [default = inf];

Returns
Whether the maxTimeInSeconds field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMaxVariableActivityValue()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMaxVariableActivityValue ( )

optional double max_variable_activity_value = 16 [default = 1e+100];

Returns
Whether the maxVariableActivityValue field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMergeAtMostOneWorkLimit()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMergeAtMostOneWorkLimit ( )

optional double merge_at_most_one_work_limit = 146 [default = 100000000];

Returns
Whether the mergeAtMostOneWorkLimit field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMergeNoOverlapWorkLimit()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMergeNoOverlapWorkLimit ( )
During presolve, we use a maximum clique heuristic to merge together
no-overlap constraints or at most one constraints. This code can be slow,
so we have a limit in place on the number of explored nodes in the
underlying graph. The internal limit is an int64, but we use double here to
simplify manual input.

optional double merge_no_overlap_work_limit = 145 [default = 1000000000000];

Returns
Whether the mergeNoOverlapWorkLimit field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMinimizationAlgorithm()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMinimizationAlgorithm ( )

optional .operations_research.sat.SatParameters.ConflictMinimizationAlgorithm minimization_algorithm = 4 [default = RECURSIVE];

Returns
Whether the minimizationAlgorithm field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMinimizeReductionDuringPbResolution()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMinimizeReductionDuringPbResolution ( )
A different algorithm during PB resolution. It minimizes the number of
calls to ReduceCoefficients() which can be time consuming. However, the
search space will be different and if the coefficients are large, this may
lead to integer overflows that could otherwise be prevented.

optional bool minimize_reduction_during_pb_resolution = 48 [default = false];

Returns
Whether the minimizeReductionDuringPbResolution field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMinNumLnsWorkers()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMinNumLnsWorkers ( )
Obsolete parameter. No-op.

optional int32 min_num_lns_workers = 211 [default = 2];

Returns
Whether the minNumLnsWorkers field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMinOrthogonalityForLpConstraints()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMinOrthogonalityForLpConstraints ( )
While adding constraints, skip the constraints which have orthogonality
less than 'min_orthogonality_for_lp_constraints' with already added
constraints during current call. Orthogonality is defined as 1 -
cosine(vector angle between constraints). A value of zero disable this
feature.

optional double min_orthogonality_for_lp_constraints = 115 [default = 0.05];

Returns
Whether the minOrthogonalityForLpConstraints field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMipAutomaticallyScaleVariables()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMipAutomaticallyScaleVariables ( )
If true, some continuous variable might be automatically scaled. For now,
this is only the case where we detect that a variable is actually an
integer multiple of a constant. For instance, variables of the form k * 0.5
are quite frequent, and if we detect this, we will scale such variable
domain by 2 to make it implied integer.

optional bool mip_automatically_scale_variables = 166 [default = true];

Returns
Whether the mipAutomaticallyScaleVariables field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMipCheckPrecision()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMipCheckPrecision ( )
As explained in mip_precision and mip_max_activity_exponent, we cannot
always reach the wanted precision during scaling. We use this threshold to
enphasize in the logs when the precision seems bad.

optional double mip_check_precision = 128 [default = 0.0001];

Returns
Whether the mipCheckPrecision field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMipComputeTrueObjectiveBound()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMipComputeTrueObjectiveBound ( )
Even if we make big error when scaling the objective, we can always derive
a correct lower bound on the original objective by using the exact lower
bound on the scaled integer version of the objective. This should be fast,
but if you don't care about having a precise lower bound, you can turn it
off.

optional bool mip_compute_true_objective_bound = 198 [default = true];

Returns
Whether the mipComputeTrueObjectiveBound field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMipDropTolerance()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMipDropTolerance ( )
Any value in the input mip with a magnitude lower than this will be set to
zero. This is to avoid some issue in LP presolving.

optional double mip_drop_tolerance = 232 [default = 1e-16];

Returns
Whether the mipDropTolerance field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMipMaxActivityExponent()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMipMaxActivityExponent ( )
To avoid integer overflow, we always force the maximum possible constraint
activity (and objective value) according to the initial variable domain to
be smaller than 2 to this given power. Because of this, we cannot always
reach the "mip_wanted_precision" parameter above.

This can go as high as 62, but some internal algo currently abort early if
they might run into integer overflow, so it is better to keep it a bit
lower than this.

optional int32 mip_max_activity_exponent = 127 [default = 53];

Returns
Whether the mipMaxActivityExponent field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMipMaxBound()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMipMaxBound ( )
We need to bound the maximum magnitude of the variables for CP-SAT, and
that is the bound we use. If the MIP model expect larger variable value in
the solution, then the converted model will likely not be relevant.

optional double mip_max_bound = 124 [default = 10000000];

Returns
Whether the mipMaxBound field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMipMaxValidMagnitude()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMipMaxValidMagnitude ( )
Any finite values in the input MIP must be below this threshold, otherwise
the model will be reported invalid. This is needed to avoid floating point
overflow when evaluating bounds * coeff for instance. We are a bit more
defensive, but in practice, users shouldn't use super large values in a
MIP.

optional double mip_max_valid_magnitude = 199 [default = 1e+20];

Returns
Whether the mipMaxValidMagnitude field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMipPresolveLevel()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMipPresolveLevel ( )
When solving a MIP, we do some basic floating point presolving before
scaling the problem to integer to be handled by CP-SAT. This control how
much of that presolve we do. It can help to better scale floating point
model, but it is not always behaving nicely.

optional int32 mip_presolve_level = 261 [default = 2];

Returns
Whether the mipPresolveLevel field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMipScaleLargeDomain()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMipScaleLargeDomain ( )
If this is false, then mip_var_scaling is only applied to variables with
"small" domain. If it is true, we scale all floating point variable
independenlty of their domain.

optional bool mip_scale_large_domain = 225 [default = false];

Returns
Whether the mipScaleLargeDomain field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMipTreatHighMagnitudeBoundsAsInfinity()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMipTreatHighMagnitudeBoundsAsInfinity ( )
By default, any variable/constraint bound with a finite value and a
magnitude greater than the mip_max_valid_magnitude will result with a
invalid model. This flags change the behavior such that such bounds are
silently transformed to +∞ or -∞.

It is recommended to keep it at false, and create valid bounds.

optional bool mip_treat_high_magnitude_bounds_as_infinity = 278 [default = false];

Returns
Whether the mipTreatHighMagnitudeBoundsAsInfinity field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMipVarScaling()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMipVarScaling ( )
All continuous variable of the problem will be multiplied by this factor.
By default, we don't do any variable scaling and rely on the MIP model to
specify continuous variable domain with the wanted precision.

optional double mip_var_scaling = 125 [default = 1];

Returns
Whether the mipVarScaling field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasMipWantedPrecision()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasMipWantedPrecision ( )
When scaling constraint with double coefficients to integer coefficients,
we will multiply by a power of 2 and round the coefficients. We will choose
the lowest power such that we have no potential overflow (see
mip_max_activity_exponent) and the worst case constraint activity error
does not exceed this threshold.

Note that we also detect constraint with rational coefficients and scale
them accordingly when it seems better instead of using a power of 2.

We also relax all constraint bounds by this absolute value. For pure
integer constraint, if this value if lower than one, this will not change
anything. However it is needed when scaling MIP problems.

If we manage to scale a constraint correctly, the maximum error we can make
will be twice this value (once for the scaling error and once for the
relaxed bounds). If we are not able to scale that well, we will display
that fact but still scale as best as we can.

optional double mip_wanted_precision = 126 [default = 1e-06];

Returns
Whether the mipWantedPrecision field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasName()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasName ( )
In some context, like in a portfolio of search, it makes sense to name a
given parameters set for logging purpose.

optional string name = 171 [default = ""];

Returns
Whether the name field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasNewConstraintsBatchSize()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasNewConstraintsBatchSize ( )
Add that many lazy constraints (or cuts) at once in the LP. Note that at
the beginning of the solve, we do add more than this.

optional int32 new_constraints_batch_size = 122 [default = 50];

Returns
Whether the newConstraintsBatchSize field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasNewLinearPropagation()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasNewLinearPropagation ( )
Experimental. Use new code to propagate linear constraint.

optional bool new_linear_propagation = 224 [default = false];

Returns
Whether the newLinearPropagation field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasNumConflictsBeforeStrategyChanges()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasNumConflictsBeforeStrategyChanges ( )
After each restart, if the number of conflict since the last strategy
change is greater that this, then we increment a "strategy_counter" that
can be use to change the search strategy used by the following restarts.

optional int32 num_conflicts_before_strategy_changes = 68 [default = 0];

Returns
Whether the numConflictsBeforeStrategyChanges field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasNumSearchWorkers()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasNumSearchWorkers ( )

optional int32 num_search_workers = 100 [default = 0];

Returns
Whether the numSearchWorkers field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasNumViolationLs()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasNumViolationLs ( )
This will create incomplete subsolvers (that are not LNS subsolvers)
that use the feasibility jump code to find improving solution, treating
the objective improvement as a hard constraint.

optional int32 num_violation_ls = 244 [default = 0];

Returns
Whether the numViolationLs field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasNumWorkers()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasNumWorkers ( )
Specify the number of parallel workers (i.e. threads) to use during search.
This should usually be lower than your number of available cpus +
hyperthread in your machine.

A value of 0 means the solver will try to use all cores on the machine.
A number of 1 means no parallelism.

Note that 'num_workers' is the preferred name, but if it is set to zero,
we will still read the deprecated 'num_search_worker'.

As of 2020-04-10, if you're using SAT via MPSolver (to solve integer
programs) this field is overridden with a value of 8, if the field is not
set *explicitly*. Thus, always set this field explicitly or via
MPSolver::SetNumThreads().

optional int32 num_workers = 206 [default = 0];

Returns
Whether the numWorkers field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasOnlyAddCutsAtLevelZero()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasOnlyAddCutsAtLevelZero ( )
For the cut that can be generated at any level, this control if we only
try to generate them at the root node.

optional bool only_add_cuts_at_level_zero = 92 [default = false];

Returns
Whether the onlyAddCutsAtLevelZero field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasOnlySolveIp()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasOnlySolveIp ( )
If one try to solve a MIP model with CP-SAT, because we assume all variable
to be integer after scaling, we will not necessarily have the correct
optimal. Note however that all feasible solutions are valid since we will
just solve a more restricted version of the original problem.

This parameters is here to prevent user to think the solution is optimal
when it might not be. One will need to manually set this to false to solve
a MIP model where the optimal might be different.

Note that this is tested after some MIP presolve steps, so even if not
all original variable are integer, we might end up with a pure IP after
presolve and after implied integer detection.

optional bool only_solve_ip = 222 [default = false];

Returns
Whether the onlySolveIp field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasOptimizeWithCore()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasOptimizeWithCore ( )
The default optimization method is a simple "linear scan", each time trying
to find a better solution than the previous one. If this is true, then we
use a core-based approach (like in max-SAT) when we try to increase the
lower bound instead.

optional bool optimize_with_core = 83 [default = false];

Returns
Whether the optimizeWithCore field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasOptimizeWithLbTreeSearch()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasOptimizeWithLbTreeSearch ( )
Do a more conventional tree search (by opposition to SAT based one) where
we keep all the explored node in a tree. This is meant to be used in a
portfolio and focus on improving the objective lower bound. Keeping the
whole tree allow us to report a better objective lower bound coming from
the worst open node in the tree.

optional bool optimize_with_lb_tree_search = 188 [default = false];

Returns
Whether the optimizeWithLbTreeSearch field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasOptimizeWithMaxHs()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasOptimizeWithMaxHs ( )
This has no effect if optimize_with_core is false. If true, use a different
core-based algorithm similar to the max-HS algo for max-SAT. This is a
hybrid MIP/CP approach and it uses a MIP solver in addition to the CP/SAT
one. This is also related to the PhD work of tobyodavies&#64;
"Automatic Logic-Based Benders Decomposition with MiniZinc"
http://aaai.org/ocs/index.php/AAAI/AAAI17/paper/view/14489

optional bool optimize_with_max_hs = 85 [default = false];

Returns
Whether the optimizeWithMaxHs field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPbCleanupIncrement()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPbCleanupIncrement ( )
Same as for the clauses, but for the learned pseudo-Boolean constraints.

optional int32 pb_cleanup_increment = 46 [default = 200];

Returns
Whether the pbCleanupIncrement field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPbCleanupRatio()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPbCleanupRatio ( )

optional double pb_cleanup_ratio = 47 [default = 0.5];

Returns
Whether the pbCleanupRatio field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPermutePresolveConstraintOrder()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPermutePresolveConstraintOrder ( )

optional bool permute_presolve_constraint_order = 179 [default = false];

Returns
Whether the permutePresolveConstraintOrder field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPermuteVariableRandomly()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPermuteVariableRandomly ( )
This is mainly here to test the solver variability. Note that in tests, if
not explicitly set to false, all 3 options will be set to true so that
clients do not rely on the solver returning a specific solution if they are
many equivalent optimal solutions.

optional bool permute_variable_randomly = 178 [default = false];

Returns
Whether the permuteVariableRandomly field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPolarityRephaseIncrement()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPolarityRephaseIncrement ( )
If non-zero, then we change the polarity heuristic after that many number
of conflicts in an arithmetically increasing fashion. So x the first time,
2 * x the second time, etc...

optional int32 polarity_rephase_increment = 168 [default = 1000];

Returns
Whether the polarityRephaseIncrement field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPolishLpSolution()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPolishLpSolution ( )
Whether we try to do a few degenerate iteration at the end of an LP solve
to minimize the fractionality of the integer variable in the basis. This
helps on some problems, but not so much on others. It also cost of bit of
time to do such polish step.

optional bool polish_lp_solution = 175 [default = false];

Returns
Whether the polishLpSolution field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPreferredVariableOrder()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPreferredVariableOrder ( )

optional .operations_research.sat.SatParameters.VariableOrder preferred_variable_order = 1 [default = IN_ORDER];

Returns
Whether the preferredVariableOrder field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPresolveBlockedClause()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPresolveBlockedClause ( )
Whether we use an heuristic to detect some basic case of blocked clause
in the SAT presolve.

optional bool presolve_blocked_clause = 88 [default = true];

Returns
Whether the presolveBlockedClause field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPresolveBvaThreshold()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPresolveBvaThreshold ( )
Apply Bounded Variable Addition (BVA) if the number of clauses is reduced
by stricly more than this threshold. The algorithm described in the paper
uses 0, but quick experiments showed that 1 is a good value. It may not be
worth it to add a new variable just to remove one clause.

optional int32 presolve_bva_threshold = 73 [default = 1];

Returns
Whether the presolveBvaThreshold field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPresolveBveClauseWeight()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPresolveBveClauseWeight ( )
During presolve, we apply BVE only if this weight times the number of
clauses plus the number of clause literals is not increased.

optional int32 presolve_bve_clause_weight = 55 [default = 3];

Returns
Whether the presolveBveClauseWeight field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPresolveBveThreshold()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPresolveBveThreshold ( )
During presolve, only try to perform the bounded variable elimination (BVE)
of a variable x if the number of occurrences of x times the number of
occurrences of not(x) is not greater than this parameter.

optional int32 presolve_bve_threshold = 54 [default = 500];

Returns
Whether the presolveBveThreshold field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPresolveExtractIntegerEnforcement()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPresolveExtractIntegerEnforcement ( )
If true, we will extract from linear constraints, enforcement literals of
the form "integer variable at bound =&gt; simplified constraint". This should
always be beneficial except that we don't always handle them as efficiently
as we could for now. This causes problem on manna81.mps (LP relaxation not
as tight it seems) and on neos-3354841-apure.mps.gz (too many literals
created this way).

optional bool presolve_extract_integer_enforcement = 174 [default = false];

Returns
Whether the presolveExtractIntegerEnforcement field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPresolveInclusionWorkLimit()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPresolveInclusionWorkLimit ( )
A few presolve operations involve detecting constraints included in other
constraint. Since there can be a quadratic number of such pairs, and
processing them usually involve scanning them, the complexity of these
operations can be big. This enforce a local deterministic limit on the
number of entries scanned. Default is 1e8.

A value of zero will disable these presolve rules completely.

optional int64 presolve_inclusion_work_limit = 201 [default = 100000000];

Returns
Whether the presolveInclusionWorkLimit field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPresolveProbingDeterministicTimeLimit()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPresolveProbingDeterministicTimeLimit ( )

optional double presolve_probing_deterministic_time_limit = 57 [default = 30];

Returns
Whether the presolveProbingDeterministicTimeLimit field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPresolveSubstitutionLevel()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPresolveSubstitutionLevel ( )
How much substitution (also called free variable aggregation in MIP
litterature) should we perform at presolve. This currently only concerns
variable appearing only in linear constraints. For now the value 0 turns it
off and any positive value performs substitution.

optional int32 presolve_substitution_level = 147 [default = 1];

Returns
Whether the presolveSubstitutionLevel field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPresolveUseBva()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPresolveUseBva ( )
Whether or not we use Bounded Variable Addition (BVA) in the presolve.

optional bool presolve_use_bva = 72 [default = true];

Returns
Whether the presolveUseBva field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasProbingDeterministicTimeLimit()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasProbingDeterministicTimeLimit ( )
The maximum "deterministic" time limit to spend in probing. A value of
zero will disable the probing.

TODO(user): Clean up. The first one is used in CP-SAT, the other in pure
SAT presolve.

optional double probing_deterministic_time_limit = 226 [default = 1];

Returns
Whether the probingDeterministicTimeLimit field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasProbingNumCombinationsLimit()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasProbingNumCombinationsLimit ( )
How many combinations of pairs or triplets of variables we want to scan.

optional int32 probing_num_combinations_limit = 272 [default = 20000];

Returns
Whether the probingNumCombinationsLimit field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPropagationLoopDetectionFactor()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPropagationLoopDetectionFactor ( )
Some search decisions might cause a really large number of propagations to
happen when integer variables with large domains are only reduced by 1 at
each step. If we propagate more than the number of variable times this
parameters we try to take counter-measure. Setting this to 0.0 disable this
feature.

TODO(user): Setting this to something like 10 helps in most cases, but the
code is currently buggy and can cause the solve to enter a bad state where
no progress is made.

optional double propagation_loop_detection_factor = 221 [default = 10];

Returns
Whether the propagationLoopDetectionFactor field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPseudoCostReliabilityThreshold()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPseudoCostReliabilityThreshold ( )
The solver ignores the pseudo costs of variables with number of recordings
less than this threshold.

optional int64 pseudo_cost_reliability_threshold = 123 [default = 100];

Returns
Whether the pseudoCostReliabilityThreshold field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasPushAllTasksTowardStart()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasPushAllTasksTowardStart ( )
Experimental code: specify if the objective pushes all tasks toward the
start of the schedule.

optional bool push_all_tasks_toward_start = 262 [default = false];

Returns
Whether the pushAllTasksTowardStart field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasRandomBranchesRatio()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasRandomBranchesRatio ( )
A number between 0 and 1 that indicates the proportion of branching
variables that are selected randomly instead of choosing the first variable
from the given variable_ordering strategy.

optional double random_branches_ratio = 32 [default = 0];

Returns
Whether the randomBranchesRatio field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasRandomizeSearch()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasRandomizeSearch ( )
Randomize fixed search.

optional bool randomize_search = 103 [default = false];

Returns
Whether the randomizeSearch field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasRandomPolarityRatio()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasRandomPolarityRatio ( )
The proportion of polarity chosen at random. Note that this take
precedence over the phase saving heuristic. This is different from
initial_polarity:POLARITY_RANDOM because it will select a new random
polarity each time the variable is branched upon instead of selecting one
initially and then always taking this choice.

optional double random_polarity_ratio = 45 [default = 0];

Returns
Whether the randomPolarityRatio field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasRandomSeed()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasRandomSeed ( )
At the beginning of each solve, the random number generator used in some
part of the solver is reinitialized to this seed. If you change the random
seed, the solver may make different choices during the solving process.

For some problems, the running time may vary a lot depending on small
change in the solving algorithm. Running the solver with different seeds
enables to have more robust benchmarks when evaluating new features.

optional int32 random_seed = 31 [default = 1];

Returns
Whether the randomSeed field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasRelativeGapLimit()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasRelativeGapLimit ( )

optional double relative_gap_limit = 160 [default = 0];

Returns
Whether the relativeGapLimit field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasRepairHint()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasRepairHint ( )
If true, the solver tries to repair the solution given in the hint. This
search terminates after the 'hint_conflict_limit' is reached and the solver
switches to regular search. If false, then  we do a FIXED_SEARCH using the
hint until the hint_conflict_limit is reached.

optional bool repair_hint = 167 [default = false];

Returns
Whether the repairHint field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasRestartDlAverageRatio()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasRestartDlAverageRatio ( )
In the moving average restart algorithms, a restart is triggered if the
window average times this ratio is greater that the global average.

optional double restart_dl_average_ratio = 63 [default = 1];

Returns
Whether the restartDlAverageRatio field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasRestartLbdAverageRatio()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasRestartLbdAverageRatio ( )

optional double restart_lbd_average_ratio = 71 [default = 1];

Returns
Whether the restartLbdAverageRatio field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasRestartPeriod()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasRestartPeriod ( )
Restart period for the FIXED_RESTART strategy. This is also the multiplier
used by the LUBY_RESTART strategy.

optional int32 restart_period = 30 [default = 50];

Returns
Whether the restartPeriod field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasRestartRunningWindowSize()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasRestartRunningWindowSize ( )
Size of the window for the moving average restarts.

optional int32 restart_running_window_size = 62 [default = 50];

Returns
Whether the restartRunningWindowSize field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasRootLpIterations()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasRootLpIterations ( )
Even at the root node, we do not want to spend too much time on the LP if
it is "difficult". So we solve it in "chunks" of that many iterations. The
solve will be continued down in the tree or the next time we go back to the
root node.

optional int32 root_lp_iterations = 227 [default = 2000];

Returns
Whether the rootLpIterations field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasSearchBranching()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasSearchBranching ( )

optional .operations_research.sat.SatParameters.SearchBranching search_branching = 82 [default = AUTOMATIC_SEARCH];

Returns
Whether the searchBranching field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasSearchRandomVariablePoolSize()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasSearchRandomVariablePoolSize ( )
Search randomization will collect the top
'search_random_variable_pool_size' valued variables, and pick one randomly.
The value of the variable is specific to each strategy.

optional int64 search_random_variable_pool_size = 104 [default = 0];

Returns
Whether the searchRandomVariablePoolSize field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasShareBinaryClauses()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasShareBinaryClauses ( )
Allows sharing of new learned binary clause between workers.

optional bool share_binary_clauses = 203 [default = true];

Returns
Whether the shareBinaryClauses field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasSharedTreeMaxNodesPerWorker()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasSharedTreeMaxNodesPerWorker ( )
In order to limit total shared memory and communication overhead, limit the
total number of nodes that may be generated in the shared tree. If the
shared tree runs out of unassigned leaves, workers act as portfolio
workers. Note: this limit includes interior nodes, not just leaves.

optional int32 shared_tree_max_nodes_per_worker = 238 [default = 128];

Returns
Whether the sharedTreeMaxNodesPerWorker field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasSharedTreeNumWorkers()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasSharedTreeNumWorkers ( )
Enables experimental workstealing-like shared tree search.
If non-zero, start this many complete worker threads to explore a shared
search tree. These workers communicate objective bounds and simple decision
nogoods relating to the shared prefix of the tree, and will avoid exploring
the same subtrees as one another.

optional int32 shared_tree_num_workers = 235 [default = 0];

Returns
Whether the sharedTreeNumWorkers field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasSharedTreeSplitStrategy()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasSharedTreeSplitStrategy ( )

optional .operations_research.sat.SatParameters.SharedTreeSplitStrategy shared_tree_split_strategy = 239 [default = SPLIT_STRATEGY_AUTO];

Returns
Whether the sharedTreeSplitStrategy field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasSharedTreeWorkerObjectiveSplitProbability()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasSharedTreeWorkerObjectiveSplitProbability ( )
After their assigned prefix, shared tree workers will branch on the
objective with this probability. Higher numbers cause the shared tree
search to focus on improving the lower bound over finding primal solutions.

optional double shared_tree_worker_objective_split_probability = 237 [default = 0.5];

Returns
Whether the sharedTreeWorkerObjectiveSplitProbability field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasShareLevelZeroBounds()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasShareLevelZeroBounds ( )
Allows sharing of the bounds of modified variables at level 0.

optional bool share_level_zero_bounds = 114 [default = true];

Returns
Whether the shareLevelZeroBounds field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasShareObjectiveBounds()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasShareObjectiveBounds ( )
Allows objective sharing between workers.

optional bool share_objective_bounds = 113 [default = true];

Returns
Whether the shareObjectiveBounds field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasShavingSearchDeterministicTime()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasShavingSearchDeterministicTime ( )
Specifies the amount of deterministic time spent of each try at shaving a
bound in the shaving search.

optional double shaving_search_deterministic_time = 205 [default = 0.001];

Returns
Whether the shavingSearchDeterministicTime field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasSolutionPoolSize()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasSolutionPoolSize ( )
Size of the top-n different solutions kept by the solver.
This parameter must be > 0.
Currently this only impact the "base" solution chosen for a LNS fragment.

optional int32 solution_pool_size = 193 [default = 3];

Returns
Whether the solutionPoolSize field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasStopAfterFirstSolution()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasStopAfterFirstSolution ( )
For an optimization problem, stop the solver as soon as we have a solution.

optional bool stop_after_first_solution = 98 [default = false];

Returns
Whether the stopAfterFirstSolution field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasStopAfterPresolve()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasStopAfterPresolve ( )
Mainly used when improving the presolver. When true, stops the solver after
the presolve is complete (or after loading and root level propagation).

optional bool stop_after_presolve = 149 [default = false];

Returns
Whether the stopAfterPresolve field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasStopAfterRootPropagation()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasStopAfterRootPropagation ( )

optional bool stop_after_root_propagation = 252 [default = false];

Returns
Whether the stopAfterRootPropagation field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasStrategyChangeIncreaseRatio()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasStrategyChangeIncreaseRatio ( )
The parameter num_conflicts_before_strategy_changes is increased by that
much after each strategy change.

optional double strategy_change_increase_ratio = 69 [default = 0];

Returns
Whether the strategyChangeIncreaseRatio field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasSubsumptionDuringConflictAnalysis()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasSubsumptionDuringConflictAnalysis ( )
At a really low cost, during the 1-UIP conflict computation, it is easy to
detect if some of the involved reasons are subsumed by the current
conflict. When this is true, such clauses are detached and later removed
from the problem.

optional bool subsumption_during_conflict_analysis = 56 [default = true];

Returns
Whether the subsumptionDuringConflictAnalysis field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasSymmetryLevel()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasSymmetryLevel ( )
Whether we try to automatically detect the symmetries in a model and
exploit them. Currently, at level 1 we detect them in presolve and try
to fix Booleans. At level 2, we also do some form of dynamic symmetry
breaking during search.

optional int32 symmetry_level = 183 [default = 2];

Returns
Whether the symmetryLevel field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasTableCompressionLevel()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasTableCompressionLevel ( )
How much we try to "compress" a table constraint. Compressing more leads to
less Booleans and faster propagation but can reduced the quality of the lp
relaxation. Values goes from 0 to 3 where we always try to fully compress a
table. At 2, we try to automatically decide if it is worth it.

optional int32 table_compression_level = 217 [default = 2];

Returns
Whether the tableCompressionLevel field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasTestFeasibilityJump()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasTestFeasibilityJump ( )
Disable every other type of subsolver, setting this turns CP-SAT into a
pure local-search solver.

optional bool test_feasibility_jump = 240 [default = false];

Returns
Whether the testFeasibilityJump field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseAbslRandom()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseAbslRandom ( )

optional bool use_absl_random = 180 [default = false];

Returns
Whether the useAbslRandom field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseAreaEnergeticReasoningInNoOverlap2D()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseAreaEnergeticReasoningInNoOverlap2D ( )
When this is true, the no_overlap_2d constraint is reinforced with
an energetic reasoning that uses an area-based energy. This can be combined
with the two other overlap heuristics above.

optional bool use_area_energetic_reasoning_in_no_overlap_2d = 271 [default = false];

Returns
Whether the useAreaEnergeticReasoningInNoOverlap2d field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseBlockingRestart()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseBlockingRestart ( )
Block a moving restart algorithm if the trail size of the current conflict
is greater than the multiplier times the moving average of the trail size
at the previous conflicts.

optional bool use_blocking_restart = 64 [default = false];

Returns
Whether the useBlockingRestart field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseCombinedNoOverlap()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseCombinedNoOverlap ( )
This can be beneficial if there is a lot of no-overlap constraints but a
relatively low number of different intervals in the problem. Like 1000
intervals, but 1M intervals in the no-overlap constraints covering them.

optional bool use_combined_no_overlap = 133 [default = false];

Returns
Whether the useCombinedNoOverlap field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseDisjunctiveConstraintInCumulative()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseDisjunctiveConstraintInCumulative ( )
When this is true, the cumulative constraint is reinforced with propagators
from the disjunctive constraint to improve the inference on a set of tasks
that are disjunctive at the root of the problem. This additional level
supplements the default level of reasoning.

Propagators of the cumulative constraint will not be used at all if all the
tasks are disjunctive at root node.

This always result in better propagation, but it is usually slow, so
depending on the problem, turning this off may lead to a faster solution.

optional bool use_disjunctive_constraint_in_cumulative = 80 [default = true];

Returns
Whether the useDisjunctiveConstraintInCumulative field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseDualSchedulingHeuristics()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseDualSchedulingHeuristics ( )
When set, it activates a few scheduling parameters to improve the lower
bound of scheduling problems. This is only effective with multiple workers
as it modifies the reduced_cost, lb_tree_search, and probing workers.

optional bool use_dual_scheduling_heuristics = 214 [default = true];

Returns
Whether the useDualSchedulingHeuristics field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseDynamicPrecedenceInCumulative()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseDynamicPrecedenceInCumulative ( )

optional bool use_dynamic_precedence_in_cumulative = 268 [default = false];

Returns
Whether the useDynamicPrecedenceInCumulative field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseDynamicPrecedenceInDisjunctive()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseDynamicPrecedenceInDisjunctive ( )
Whether we try to branch on decision "interval A before interval B" rather
than on intervals bounds. This usually works better, but slow down a bit
the time to find the first solution.

These parameters are still EXPERIMENTAL, the result should be correct, but
it some corner cases, they can cause some failing CHECK in the solver.

optional bool use_dynamic_precedence_in_disjunctive = 263 [default = false];

Returns
Whether the useDynamicPrecedenceInDisjunctive field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseEnergeticReasoningInNoOverlap2D()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseEnergeticReasoningInNoOverlap2D ( )
When this is true, the no_overlap_2d constraint is reinforced with
energetic reasoning. This additional level supplements the default level of
reasoning.

optional bool use_energetic_reasoning_in_no_overlap_2d = 213 [default = false];

Returns
Whether the useEnergeticReasoningInNoOverlap2d field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseErwaHeuristic()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseErwaHeuristic ( )
Whether we use the ERWA (Exponential Recency Weighted Average) heuristic as
described in "Learning Rate Based Branching Heuristic for SAT solvers",
J.H.Liang, V. Ganesh, P. Poupart, K.Czarnecki, SAT 2016.

optional bool use_erwa_heuristic = 75 [default = false];

Returns
Whether the useErwaHeuristic field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseExactLpReason()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseExactLpReason ( )
The solver usually exploit the LP relaxation of a model. If this option is
true, then whatever is infered by the LP will be used like an heuristic to
compute EXACT propagation on the IP. So with this option, there is no
numerical imprecision issues.

optional bool use_exact_lp_reason = 109 [default = true];

Returns
Whether the useExactLpReason field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseExtendedProbing()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseExtendedProbing ( )
Use extended probing (probe bool_or, at_most_one, exactly_one).

optional bool use_extended_probing = 269 [default = true];

Returns
Whether the useExtendedProbing field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseFeasibilityJump()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseFeasibilityJump ( )
Parameters for an heuristic similar to the one described in the paper:
"Feasibility Jump: an LP-free Lagrangian MIP heuristic", Bjørnar
Luteberget, Giorgio Sartor, 2023, Mathematical Programming Computation.

optional bool use_feasibility_jump = 265 [default = true];

Returns
Whether the useFeasibilityJump field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseFeasibilityPump()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseFeasibilityPump ( )
Adds a feasibility pump subsolver along with lns subsolvers.

optional bool use_feasibility_pump = 164 [default = true];

Returns
Whether the useFeasibilityPump field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseHardPrecedencesInCumulative()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseHardPrecedencesInCumulative ( )
If true, detect and create constraint for integer variable that are "after"
a set of intervals in the same cumulative constraint.

Experimental: by default we just use "direct" precedences. If
exploit_all_precedences is true, we explore the full precedence graph. This
assumes we have a DAG otherwise it fails.

optional bool use_hard_precedences_in_cumulative = 215 [default = false];

Returns
Whether the useHardPrecedencesInCumulative field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseImpliedBounds()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseImpliedBounds ( )
Stores and exploits "implied-bounds" in the solver. That is, relations of
the form literal => (var >= bound). This is currently used to derive
stronger cuts.

optional bool use_implied_bounds = 144 [default = true];

Returns
Whether the useImpliedBounds field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseLbRelaxLns()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseLbRelaxLns ( )
Turns on neighborhood generator based on local branching LP. Based on Huang
et al., "Local Branching Relaxation Heuristics for Integer Linear
Programs", 2023.

optional bool use_lb_relax_lns = 255 [default = false];

Returns
Whether the useLbRelaxLns field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseLnsOnly()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseLnsOnly ( )
LNS parameters.

optional bool use_lns_only = 101 [default = false];

Returns
Whether the useLnsOnly field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseObjectiveLbSearch()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseObjectiveLbSearch ( )
If true, search will search in ascending max objective value (when
minimizing) starting from the lower bound of the objective.

optional bool use_objective_lb_search = 228 [default = false];

Returns
Whether the useObjectiveLbSearch field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseObjectiveShavingSearch()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseObjectiveShavingSearch ( )
This search differs from the previous search as it will not use assumptions
to bound the objective, and it will recreate a full model with the
hardcoded objective value.

optional bool use_objective_shaving_search = 253 [default = false];

Returns
Whether the useObjectiveShavingSearch field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseOptimizationHints()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseOptimizationHints ( )
For an optimization problem, whether we follow some hints in order to find
a better first solution. For a variable with hint, the solver will always
try to follow the hint. It will revert to the variable_branching default
otherwise.

optional bool use_optimization_hints = 35 [default = true];

Returns
Whether the useOptimizationHints field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseOptionalVariables()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseOptionalVariables ( )
If true, we automatically detect variables whose constraint are always
enforced by the same literal and we mark them as optional. This allows
to propagate them as if they were present in some situation.

TODO(user): This is experimental and seems to lead to wrong optimal in
some situation. It should however gives correct solutions. Fix.

optional bool use_optional_variables = 108 [default = false];

Returns
Whether the useOptionalVariables field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseOverloadCheckerInCumulative()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseOverloadCheckerInCumulative ( )
When this is true, the cumulative constraint is reinforced with overload
checking, i.e., an additional level of reasoning based on energy. This
additional level supplements the default level of reasoning as well as
timetable edge finding.

This always result in better propagation, but it is usually slow, so
depending on the problem, turning this off may lead to a faster solution.

optional bool use_overload_checker_in_cumulative = 78 [default = false];

Returns
Whether the useOverloadCheckerInCumulative field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUsePbResolution()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUsePbResolution ( )
Whether to use pseudo-Boolean resolution to analyze a conflict. Note that
this option only make sense if your problem is modelized using
pseudo-Boolean constraints. If you only have clauses, this shouldn't change
anything (except slow the solver down).

optional bool use_pb_resolution = 43 [default = false];

Returns
Whether the usePbResolution field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUsePhaseSaving()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUsePhaseSaving ( )
If this is true, then the polarity of a variable will be the last value it
was assigned to, or its default polarity if it was never assigned since the
call to ResetDecisionHeuristic().

Actually, we use a newer version where we follow the last value in the
longest non-conflicting partial assignment in the current phase.

This is called 'literal phase saving'. For details see 'A Lightweight
Component Caching Scheme for Satisfiability Solvers' K. Pipatsrisawat and
A.Darwiche, In 10th International Conference on Theory and Applications of
Satisfiability Testing, 2007.

optional bool use_phase_saving = 44 [default = true];

Returns
Whether the usePhaseSaving field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUsePrecedencesInDisjunctiveConstraint()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUsePrecedencesInDisjunctiveConstraint ( )
When this is true, then a disjunctive constraint will try to use the
precedence relations between time intervals to propagate their bounds
further. For instance if task A and B are both before C and task A and B
are in disjunction, then we can deduce that task C must start after
duration(A) + duration(B) instead of simply max(duration(A), duration(B)),
provided that the start time for all task was currently zero.

This always result in better propagation, but it is usually slow, so
depending on the problem, turning this off may lead to a faster solution.

optional bool use_precedences_in_disjunctive_constraint = 74 [default = true];

Returns
Whether the usePrecedencesInDisjunctiveConstraint field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseProbingSearch()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseProbingSearch ( )
If true, search will continuously probe Boolean variables, and integer
variable bounds. This parameter is set to true in parallel on the probing
worker.

optional bool use_probing_search = 176 [default = false];

Returns
Whether the useProbingSearch field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseRinsLns()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseRinsLns ( )
Turns on relaxation induced neighborhood generator.

optional bool use_rins_lns = 129 [default = true];

Returns
Whether the useRinsLns field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseSatInprocessing()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseSatInprocessing ( )
Enable or disable "inprocessing" which is some SAT presolving done at
each restart to the root level.

optional bool use_sat_inprocessing = 163 [default = true];

Returns
Whether the useSatInprocessing field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseSharedTreeSearch()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseSharedTreeSearch ( )
Set on shared subtree workers. Users should not set this directly.

optional bool use_shared_tree_search = 236 [default = false];

Returns
Whether the useSharedTreeSearch field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseShavingInProbingSearch()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseShavingInProbingSearch ( )
Add a shaving phase (where the solver tries to prove that the lower or
upper bound of a variable are infeasible) to the probing search.

optional bool use_shaving_in_probing_search = 204 [default = true];

Returns
Whether the useShavingInProbingSearch field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseStrongPropagationInDisjunctive()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseStrongPropagationInDisjunctive ( )
Enable stronger and more expensive propagation on no_overlap constraint.

optional bool use_strong_propagation_in_disjunctive = 230 [default = false];

Returns
Whether the useStrongPropagationInDisjunctive field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseTimetableEdgeFindingInCumulative()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseTimetableEdgeFindingInCumulative ( )
When this is true, the cumulative constraint is reinforced with timetable
edge finding, i.e., an additional level of reasoning based on the
conjunction of energy and mandatory parts. This additional level
supplements the default level of reasoning as well as overload_checker.

This always result in better propagation, but it is usually slow, so
depending on the problem, turning this off may lead to a faster solution.

optional bool use_timetable_edge_finding_in_cumulative = 79 [default = false];

Returns
Whether the useTimetableEdgeFindingInCumulative field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasUseTimetablingInNoOverlap2D()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasUseTimetablingInNoOverlap2D ( )
When this is true, the no_overlap_2d constraint is reinforced with
propagators from the cumulative constraints. It consists of ignoring the
position of rectangles in one position and projecting the no_overlap_2d on
the other dimension to create a cumulative constraint. This is done on both
axis. This additional level supplements the default level of reasoning.

optional bool use_timetabling_in_no_overlap_2d = 200 [default = false];

Returns
Whether the useTimetablingInNoOverlap2d field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasVariableActivityDecay()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasVariableActivityDecay ( )
Each time a conflict is found, the activities of some variables are
increased by one. Then, the activity of all variables are multiplied by
variable_activity_decay.

To implement this efficiently, the activity of all the variables is not
decayed at each conflict. Instead, the activity increment is multiplied by
1 / decay. When an activity reach max_variable_activity_value, all the
activity are multiplied by 1 / max_variable_activity_value.

optional double variable_activity_decay = 15 [default = 0.8];

Returns
Whether the variableActivityDecay field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasViolationLsCompoundMoveProbability()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasViolationLsCompoundMoveProbability ( )
Probability of using compound move search each restart.
TODO(user): Add reference to paper when published.

optional double violation_ls_compound_move_probability = 259 [default = 0.5];

Returns
Whether the violationLsCompoundMoveProbability field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.

◆ hasViolationLsPerturbationPeriod()

boolean com.google.ortools.sat.SatParametersOrBuilder.hasViolationLsPerturbationPeriod ( )
How long violation_ls should wait before perturbating a solution.

optional int32 violation_ls_perturbation_period = 249 [default = 100];

Returns
Whether the violationLsPerturbationPeriod field is set.

Implemented in com.google.ortools.sat.SatParameters, and com.google.ortools.sat.SatParameters.Builder.


The documentation for this interface was generated from the following file: