<!doctype html> <html lang="en"> <head> <meta charset="iso-8859-1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Module docplex.cp.parameters — DOcplex.CP: Constraint Programming Modeling for Python V2.30 documentation</title> <link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" /> <link rel="stylesheet" type="text/css" href="_static/bizstyle.css?v=c92c1228" /> <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js?v=dd09d6e6"></script> <script src="_static/doctools.js?v=888ff710"></script> <script src="_static/sphinx_highlight.js?v=4825356b"></script> <script src="_static/bizstyle.js"></script> <link rel="index" title="Index" href="genindex.html" /> <link rel="search" title="Search" href="search.html" /> <link rel="next" title="Module docplex.cp.solution" href="docplex.cp.solution.py.html" /> <link rel="prev" title="Module docplex.cp.function" href="docplex.cp.function.py.html" /> <meta name="viewport" content="width=device-width,initial-scale=1.0" /> <!--[if lt IE 9]> <script src="_static/css3-mediaqueries.js"></script> <![endif]--> </head><body> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="docplex.cp.solution.py.html" title="Module docplex.cp.solution" accesskey="N">next</a> |</li> <li class="right" > <a href="docplex.cp.function.py.html" title="Module docplex.cp.function" accesskey="P">previous</a> |</li> <li class="nav-item nav-item-0"><a href="index.html">DOcplex.CP: Constraint Programming Modeling for Python V2.30 documentation</a> »</li> <li class="nav-item nav-item-1"><a href="refman.html" accesskey="U"><strong>docplex.cp</strong> reference manual</a> »</li> <li class="nav-item nav-item-this"><a href="">Module <strong>docplex.cp.parameters</strong></a></li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <section id="module-docplex-cp-parameters"> <h1>Module <strong>docplex.cp.parameters</strong><a class="headerlink" href="#module-docplex-cp-parameters" title="Permalink to this heading">¶</a></h1> <div class="toctree-wrapper compound"> </div> <span class="target" id="module-docplex.cp.parameters"></span><p>This module handles the public parameters that can be assigned to CP Optimizer to configure the solving of a model.</p> <p>The class <cite>CpoParameters</cite> contains the list of modifiable parameters expressed as properties with getters and setters. For the parameters that require special values, those values are given as constants.</p> <p>Changing the value of a parameter can be done in multiple ways. For example, the <cite>TimeLimit</cite> can be set to 60s with:</p> <blockquote> <div><ul class="simple"> <li><p><cite>params.TimeLimit = 60</cite></p></li> <li><p><cite>params.set_TimeLimit(60)</cite></p></li> <li><p><cite>params[‘TimeLimit’] = 60</cite></p></li> <li><p><cite>params.set_attribute(‘TimeLimit’, 60)</cite></p></li> </ul> </div></blockquote> <p>Retrieving the value of a parameter can be done in the same way using:</p> <blockquote> <div><ul class="simple"> <li><p><cite>v = params.TimeLimit</cite></p></li> <li><p><cite>v = params.get_TimeLimit()</cite></p></li> <li><p><cite>v = params[‘TimeLimit’]</cite></p></li> <li><p><cite>v = params.get_attribute(‘TimeLimit’)</cite></p></li> </ul> </div></blockquote> <p>If a parameter is not set, the value returned by the first two access forms is None. The last access form (element of a dictionary) raises an exception.</p> <p>Setting a parameter value to None is equivalent to force its default value. This may be for example useful to reset at solve time a parameter that has been set at model level.</p> <p>Getting the list of all parameters that have been changed can be done by calling the method <cite>keys()</cite>.</p> <p>Note that the <em>PEP8</em> naming convention is not applied here, to keep parameter names as they are in the solver, so that they can be referenced in solver logs.</p> <section id="summary-of-parameters"> <h2>Summary of parameters<a class="headerlink" href="#summary-of-parameters" title="Permalink to this heading">¶</a></h2> <p>The following list gives the summary of all public parameters.</p> <p><strong>Display and output</strong></p> <blockquote> <div><ul class="simple"> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.LogVerbosity" title="docplex.cp.parameters.CpoParameters.LogVerbosity"><code class="xref py py-attr docutils literal notranslate"><span class="pre">LogVerbosity</span></code></a>: Determines the verbosity of the search log. The value is a symbol in [‘Quiet’, ‘Terse’, ‘Normal’, ‘Verbose’]. Default value is ‘Normal’.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.LogPeriod" title="docplex.cp.parameters.CpoParameters.LogPeriod"><code class="xref py py-attr docutils literal notranslate"><span class="pre">LogPeriod</span></code></a>: Controls how often the log information is displayed. The value is an integer strictly greater than 0. Default value is 1000.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.WarningLevel" title="docplex.cp.parameters.CpoParameters.WarningLevel"><code class="xref py py-attr docutils literal notranslate"><span class="pre">WarningLevel</span></code></a>: Level of warnings issued by CP Optimizer when a solve is launched. The value is an integer in [0..3]. Default value is 2.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.PrintModelDetailsInMessages" title="docplex.cp.parameters.CpoParameters.PrintModelDetailsInMessages"><code class="xref py py-attr docutils literal notranslate"><span class="pre">PrintModelDetailsInMessages</span></code></a>: Controls printing of additional information on error and warning messages. The value is a symbol in [‘On’, ‘Off’]. Default value is ‘On’.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.ModelAnonymizer" title="docplex.cp.parameters.CpoParameters.ModelAnonymizer"><code class="xref py py-attr docutils literal notranslate"><span class="pre">ModelAnonymizer</span></code></a>: Controls anonymization of a model dumped via dumpModel. The value is a symbol in [‘On’, ‘Off’]. Default value is ‘Off’.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.UseFileLocations" title="docplex.cp.parameters.CpoParameters.UseFileLocations"><code class="xref py py-attr docutils literal notranslate"><span class="pre">UseFileLocations</span></code></a>: Controls whether location information (file, line) is added to the model. The value is a symbol in [‘On’, ‘Off’]. Default value is ‘On’.</p></li> <li><p><code class="xref py py-attr docutils literal notranslate"><span class="pre">LogSearchTags</span></code>: Controls the activation of search failure tags. The value is a symbol in [‘On’, ‘Off’]. Default value is ‘Off’.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.KPIDisplay" title="docplex.cp.parameters.CpoParameters.KPIDisplay"><code class="xref py py-attr docutils literal notranslate"><span class="pre">KPIDisplay</span></code></a>: Controls the display of the KPI values in the log. The value is a symbol in [‘SingleLine’, ‘MultipleLines’]. Default value is ‘SingleLine’.</p></li> </ul> </div></blockquote> <p><strong>Presolve</strong></p> <blockquote> <div><ul class="simple"> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.Presolve" title="docplex.cp.parameters.CpoParameters.Presolve"><code class="xref py py-attr docutils literal notranslate"><span class="pre">Presolve</span></code></a>: Controls the presolve of the model to produce more compact formulations and to achieve more domain reduction.</p></li> </ul> </div></blockquote> <p><strong>Optimality tolerances</strong></p> <blockquote> <div><ul class="simple"> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.OptimalityTolerance" title="docplex.cp.parameters.CpoParameters.OptimalityTolerance"><code class="xref py py-attr docutils literal notranslate"><span class="pre">OptimalityTolerance</span></code></a>: Absolute tolerance on the objective value for optimization models. The value is a positive float. Default value is 1e-09.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.RelativeOptimalityTolerance" title="docplex.cp.parameters.CpoParameters.RelativeOptimalityTolerance"><code class="xref py py-attr docutils literal notranslate"><span class="pre">RelativeOptimalityTolerance</span></code></a>: Relative tolerance on the objective value for optimization models. The value is a non-negative float. Default value is 0.0001.</p></li> </ul> </div></blockquote> <p><strong>Search control</strong></p> <blockquote> <div><ul class="simple"> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.Workers" title="docplex.cp.parameters.CpoParameters.Workers"><code class="xref py py-attr docutils literal notranslate"><span class="pre">Workers</span></code></a>: Number of workers to run in parallel to solve the model. The value is a positive integer. Default value is Auto.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.SearchType" title="docplex.cp.parameters.CpoParameters.SearchType"><code class="xref py py-attr docutils literal notranslate"><span class="pre">SearchType</span></code></a>: Type of search that is applied when solving a problem. The value is a symbol in [‘DepthFirst’, ‘Restart’, ‘MultiPoint’, ‘IterativeDiving’, ‘Neighborhood’, ‘Auto’]. Default value is ‘Auto’.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.RandomSeed" title="docplex.cp.parameters.CpoParameters.RandomSeed"><code class="xref py py-attr docutils literal notranslate"><span class="pre">RandomSeed</span></code></a>: Seed of the random generator used by search strategies. The value is a non-negative integer. Default value is 0.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.RestartFailLimit" title="docplex.cp.parameters.CpoParameters.RestartFailLimit"><code class="xref py py-attr docutils literal notranslate"><span class="pre">RestartFailLimit</span></code></a>: Controls the number of failures that must occur before restarting search. The value is an integer greater than 0. Default value is 100.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.RestartGrowthFactor" title="docplex.cp.parameters.CpoParameters.RestartGrowthFactor"><code class="xref py py-attr docutils literal notranslate"><span class="pre">RestartGrowthFactor</span></code></a>: Controls the increase of the number of failures between restarts. The value is a float greater or equal to 1. Default value is 1.15.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.DynamicProbing" title="docplex.cp.parameters.CpoParameters.DynamicProbing"><code class="xref py py-attr docutils literal notranslate"><span class="pre">DynamicProbing</span></code></a>: Controls probing carried out during search. The value is a symbol in [‘On’, ‘Off’, ‘Auto’]. Default value is ‘Auto’.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.DynamicProbingStrength" title="docplex.cp.parameters.CpoParameters.DynamicProbingStrength"><code class="xref py py-attr docutils literal notranslate"><span class="pre">DynamicProbingStrength</span></code></a>: Controls the effort which is dedicated to dynamic probing. The value is a float in [0.001..1000]. Default value is 0.03.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.MultiPointNumberOfSearchPoints" title="docplex.cp.parameters.CpoParameters.MultiPointNumberOfSearchPoints"><code class="xref py py-attr docutils literal notranslate"><span class="pre">MultiPointNumberOfSearchPoints</span></code></a>: Controls the number of solutions manipulated by the multi-point search algorithm. The value is an integer strictly greater than 1. Default value is 30.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.TemporalRelaxation" title="docplex.cp.parameters.CpoParameters.TemporalRelaxation"><code class="xref py py-attr docutils literal notranslate"><span class="pre">TemporalRelaxation</span></code></a>: Advanced parameter can be used to control the usage of a temporal relaxation. Possible values are ‘On’ or ‘Off’.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.FailureDirectedSearch" title="docplex.cp.parameters.CpoParameters.FailureDirectedSearch"><code class="xref py py-attr docutils literal notranslate"><span class="pre">FailureDirectedSearch</span></code></a>: Controls usage of failure-directed search. Possible values are ‘On’ or ‘Off’.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.FailureDirectedSearchEmphasis" title="docplex.cp.parameters.CpoParameters.FailureDirectedSearchEmphasis"><code class="xref py py-attr docutils literal notranslate"><span class="pre">FailureDirectedSearchEmphasis</span></code></a>: Controls how much time CP Optimizer invests into failure-directed search once it is started. The value is a non-negative integer, or None (default) that does not set any limit.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.FailureDirectedSearchMaxMemory" title="docplex.cp.parameters.CpoParameters.FailureDirectedSearchMaxMemory"><code class="xref py py-attr docutils literal notranslate"><span class="pre">FailureDirectedSearchMaxMemory</span></code></a>: Controls the maximum amount of memory available to failure-directed search The value is a non-negative integer, or None that does not set any limit. Default value is 104857600.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.AutomaticReplay" title="docplex.cp.parameters.CpoParameters.AutomaticReplay"><code class="xref py py-attr docutils literal notranslate"><span class="pre">AutomaticReplay</span></code></a>: Low-level control of the behavior of <em>solve()</em> and <em>next()</em>. Possible values are ‘On’ or ‘Off’.</p></li> </ul> </div></blockquote> <p><strong>Search limits</strong></p> <blockquote> <div><ul class="simple"> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.TimeLimit" title="docplex.cp.parameters.CpoParameters.TimeLimit"><code class="xref py py-attr docutils literal notranslate"><span class="pre">TimeLimit</span></code></a>: Limits the CPU or elapsed time spent solving before terminating a search. The value is a non-negative float, or None (default) that does not set any limit.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.TimeMode" title="docplex.cp.parameters.CpoParameters.TimeMode"><code class="xref py py-attr docutils literal notranslate"><span class="pre">TimeMode</span></code></a>: Defines how time is measured in CP Optimizer. The value is a symbol in [‘CPUTime’, ‘ElapsedTime’]. Default value is ‘ElapsedTime’.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.FailLimit" title="docplex.cp.parameters.CpoParameters.FailLimit"><code class="xref py py-attr docutils literal notranslate"><span class="pre">FailLimit</span></code></a>: Limits the number of failures that can occur before terminating the search. The value is a non-negative integer, or None (default) that does not set any limit.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.ChoicePointLimit" title="docplex.cp.parameters.CpoParameters.ChoicePointLimit"><code class="xref py py-attr docutils literal notranslate"><span class="pre">ChoicePointLimit</span></code></a>: Limits the number of choice points that are created before terminating a search. The value is a non-negative integer, or None (default) that does not set any limit.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.BranchLimit" title="docplex.cp.parameters.CpoParameters.BranchLimit"><code class="xref py py-attr docutils literal notranslate"><span class="pre">BranchLimit</span></code></a>: Limits the number of branches that are made before terminating a search. The value is a non-negative integer, or None (default) that does not set any limit.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.SolutionLimit" title="docplex.cp.parameters.CpoParameters.SolutionLimit"><code class="xref py py-attr docutils literal notranslate"><span class="pre">SolutionLimit</span></code></a>: Limits the number of feasible solutions that are found before terminating a search. The value is a non-negative integer, or None (default) that does not set any limit.</p></li> </ul> </div></blockquote> <p><strong>Inference levels for constraint propagation</strong></p> <p>For all following attributes, possible values are ‘Default’, ‘Low’, ‘Basic’, Medium’ or ‘Extended’. Default value is ‘Default’.</p> <blockquote> <div><ul class="simple"> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.DefaultInferenceLevel" title="docplex.cp.parameters.CpoParameters.DefaultInferenceLevel"><code class="xref py py-attr docutils literal notranslate"><span class="pre">DefaultInferenceLevel</span></code></a>: General inference level for constraints whose particular inference level is Default.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.AllDiffInferenceLevel" title="docplex.cp.parameters.CpoParameters.AllDiffInferenceLevel"><code class="xref py py-attr docutils literal notranslate"><span class="pre">AllDiffInferenceLevel</span></code></a>: Inference level for every constraint <em>allDiff</em>.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.DistributeInferenceLevel" title="docplex.cp.parameters.CpoParameters.DistributeInferenceLevel"><code class="xref py py-attr docutils literal notranslate"><span class="pre">DistributeInferenceLevel</span></code></a>: Inference level for every constraint <em>Distribute</em>.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.CountInferenceLevel" title="docplex.cp.parameters.CpoParameters.CountInferenceLevel"><code class="xref py py-attr docutils literal notranslate"><span class="pre">CountInferenceLevel</span></code></a>: Inference level for every constraint <em>Count</em> extracted to the invoked CP instance.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.CountDifferentInferenceLevel" title="docplex.cp.parameters.CpoParameters.CountDifferentInferenceLevel"><code class="xref py py-attr docutils literal notranslate"><span class="pre">CountDifferentInferenceLevel</span></code></a>: Inference level for every constraint <em>CountDifferent</em>.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.SequenceInferenceLevel" title="docplex.cp.parameters.CpoParameters.SequenceInferenceLevel"><code class="xref py py-attr docutils literal notranslate"><span class="pre">SequenceInferenceLevel</span></code></a>: Inference level for every constraint <em>Sequence</em>.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.AllMinDistanceInferenceLevel" title="docplex.cp.parameters.CpoParameters.AllMinDistanceInferenceLevel"><code class="xref py py-attr docutils literal notranslate"><span class="pre">AllMinDistanceInferenceLevel</span></code></a>: Inference level for every constraint <em>allMinDistance</em>.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.ElementInferenceLevel" title="docplex.cp.parameters.CpoParameters.ElementInferenceLevel"><code class="xref py py-attr docutils literal notranslate"><span class="pre">ElementInferenceLevel</span></code></a>: Inference level for every <em>element</em> constraint.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.PrecedenceInferenceLevel" title="docplex.cp.parameters.CpoParameters.PrecedenceInferenceLevel"><code class="xref py py-attr docutils literal notranslate"><span class="pre">PrecedenceInferenceLevel</span></code></a>: Inference level for precedence constraints between interval variables.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.IntervalSequenceInferenceLevel" title="docplex.cp.parameters.CpoParameters.IntervalSequenceInferenceLevel"><code class="xref py py-attr docutils literal notranslate"><span class="pre">IntervalSequenceInferenceLevel</span></code></a>: Inference level for the maintenance of the domain of every interval sequence variable.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.NoOverlapInferenceLevel" title="docplex.cp.parameters.CpoParameters.NoOverlapInferenceLevel"><code class="xref py py-attr docutils literal notranslate"><span class="pre">NoOverlapInferenceLevel</span></code></a>: Inference level for every constraint NoOverlap extracted.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.CumulFunctionInferenceLevel" title="docplex.cp.parameters.CpoParameters.CumulFunctionInferenceLevel"><code class="xref py py-attr docutils literal notranslate"><span class="pre">CumulFunctionInferenceLevel</span></code></a>: Inference level for constraints on expression <em>CumulFunctionExpr</em>.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.StateFunctionInferenceLevel" title="docplex.cp.parameters.CpoParameters.StateFunctionInferenceLevel"><code class="xref py py-attr docutils literal notranslate"><span class="pre">StateFunctionInferenceLevel</span></code></a>: Inference level for constraints on state functions <em>StateFunction</em>.</p></li> </ul> </div></blockquote> <p><strong>Conflict refiner</strong></p> <blockquote> <div><ul class="simple"> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.ConflictRefinerTimeLimit" title="docplex.cp.parameters.CpoParameters.ConflictRefinerTimeLimit"><code class="xref py py-attr docutils literal notranslate"><span class="pre">ConflictRefinerTimeLimit</span></code></a>: Limits the CPU time spent before terminating the conflict refiner. The value is a non-negative float, or None (default) that does not set any limit.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.ConflictRefinerIterationLimit" title="docplex.cp.parameters.CpoParameters.ConflictRefinerIterationLimit"><code class="xref py py-attr docutils literal notranslate"><span class="pre">ConflictRefinerIterationLimit</span></code></a>: Limits the number of iterations that are made before terminating the conflict refiner. The value is a non-negative integer, or None (default) that does not set any limit.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.ConflictRefinerBranchLimit" title="docplex.cp.parameters.CpoParameters.ConflictRefinerBranchLimit"><code class="xref py py-attr docutils literal notranslate"><span class="pre">ConflictRefinerBranchLimit</span></code></a>: Limits the total number of branches that are made before terminating the conflict refiner. The value is a non-negative integer, or None (default) that does not set any limit.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.ConflictRefinerFailLimit" title="docplex.cp.parameters.CpoParameters.ConflictRefinerFailLimit"><code class="xref py py-attr docutils literal notranslate"><span class="pre">ConflictRefinerFailLimit</span></code></a>: Limits the total number of failures that can occur before terminating the conflict refiner. The value is a non-negative integer, or None (default) that does not set any limit.</p></li> <li><p><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.ConflictRefinerOnVariables" title="docplex.cp.parameters.CpoParameters.ConflictRefinerOnVariables"><code class="xref py py-attr docutils literal notranslate"><span class="pre">ConflictRefinerOnVariables</span></code></a>: Specifies whether the conflict refiner should refine variables domains. The value is a symbol in [‘On’, ‘Off’]. Default value is ‘Off’.</p></li> </ul> </div></blockquote> </section> <section id="private-parameters"> <h2>Private parameters<a class="headerlink" href="#private-parameters" title="Permalink to this heading">¶</a></h2> <p>A private parameter can only be set using the method <code class="xref py py-meth docutils literal notranslate"><span class="pre">set_attribute()</span></code>, giving its name as a string and its value. In this case, there is no local checking of the validity of the parameter or its value at modeling time. If there is any error, it is detected only at solve time.</p> </section> <section id="detailed-description"> <h2>Detailed description<a class="headerlink" href="#detailed-description" title="Permalink to this heading">¶</a></h2> </section> <dl class="py class"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters"> <em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">docplex.cp.parameters.</span></span><span class="sig-name descname"><span class="pre">CpoParameters</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="docplex.cp.utils.py.html#docplex.cp.utils.Context" title="docplex.cp.utils.Context"><code class="xref py py-class docutils literal notranslate"><span class="pre">Context</span></code></a></p> <p>Class handling solving parameters</p> <p><strong>Constructor</strong></p> <p>This constructor takes a variable number of optional arguments that allow to set parameters directly. For example:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">myparams</span> <span class="o">=</span> <span class="n">CpoParameters</span><span class="p">(</span><span class="n">TimeLimit</span><span class="o">=</span><span class="mi">20</span><span class="p">,</span> <span class="n">LogPeriod</span><span class="o">=</span><span class="mi">5000</span><span class="p">))</span> </pre></div> </div> <dl class="field-list simple"> <dt class="field-odd">Parameters<span class="colon">:</span></dt> <dd class="field-odd"><p><strong>kwargs</strong> – (Optional) Any individual parameter as defined in this class.</p> </dd> </dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.AllDiffInferenceLevel"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">AllDiffInferenceLevel</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.AllDiffInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for every constraint AllDiff extracted to the invoking CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all AllDiff constraints to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.AllMinDistanceInferenceLevel"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">AllMinDistanceInferenceLevel</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.AllMinDistanceInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for every constraint AllMinDistance extracted to the invoked CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all AllMinDistance constraints to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.AutomaticReplay"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">AutomaticReplay</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.AutomaticReplay" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter is an advanced, low-level one for controlling the behavior of solve() and next(). When the model being solved has an objective and solve is used, or when startNewSearch and next are used to produce multiple solutions, the solver may have a need to replay the last (or best) solution found. This can, in some cases, involve re-invoking the strategy which produced the solution. Normally this is only necessary if you use low level “Ilc” interfaces to specify problem elements not in the model (instance of Model). This parameter can take the values On or Off. The default value is On. A typical reason for setting this parameter to Off is, for instance, if you use your own custom goal (instance of IlcGoal), and this goal is not deterministic (does not do the same thing when executed twice). In this instance, the replay will not work correctly, and you can use this parameter to disable replay.</p> <p>This parameter is deprecated since release 2.3.</p> <p>The value is a symbol in [‘On’, ‘Off’]. Default value is ‘On’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.BranchLimit"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">BranchLimit</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.BranchLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the number of branches that are made before terminating a search. A branch is a decision made at a choice point in the search, a typical node being made up of two branches, for example: x == value and x != value. A branch is only counted at the moment a decision is executed, not when the two branches of the choice point are decided. A branch is counted even if the decision leads to an inconsistency (failure).</p> <p>The value is a non-negative integer, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.ChoicePointLimit"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">ChoicePointLimit</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.ChoicePointLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the number of choice points that are created before terminating a search.</p> <p>The value is a non-negative integer, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.ConflictRefinerBranchLimit"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">ConflictRefinerBranchLimit</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.ConflictRefinerBranchLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the total number of branches that are made before terminating the conflict refiner.</p> <p>The value is a non-negative integer, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.ConflictRefinerFailLimit"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">ConflictRefinerFailLimit</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.ConflictRefinerFailLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the total number of failures that can occur before terminating the conflict refiner.</p> <p>The value is a non-negative integer, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.ConflictRefinerIterationLimit"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">ConflictRefinerIterationLimit</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.ConflictRefinerIterationLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the number of iterations that are made before terminating the conflict refiner.</p> <p>The value is a non-negative integer, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.ConflictRefinerOnVariables"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">ConflictRefinerOnVariables</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.ConflictRefinerOnVariables" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies whether the conflict refiner should refine variables domains. Possible values for this parameter are On (conflict refiner will refine both constraints and variables domains) and Off (conflict refiner will only refine constraints).</p> <p>The value is a symbol in [‘On’, ‘Off’]. Default value is ‘Off’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.ConflictRefinerTimeLimit"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">ConflictRefinerTimeLimit</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.ConflictRefinerTimeLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the CPU time spent before terminating the conflict refiner.</p> <p>The value is a non-negative float, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.CountDifferentInferenceLevel"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">CountDifferentInferenceLevel</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.CountDifferentInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for every constraint CountDifferent extracted to the invoking CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all CountDifferent constraints to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.CountInferenceLevel"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">CountInferenceLevel</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.CountInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for every constraint Count extracted to the invoked CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all Count constraints to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.CumulFunctionInferenceLevel"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">CumulFunctionInferenceLevel</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.CumulFunctionInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for constraints on expressions CumulFunctionExpr extracted to the invoked CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all constraints on CumulFunctionExpr to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.DefaultInferenceLevel"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">DefaultInferenceLevel</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.DefaultInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><dl class="simple"> <dt>This parameter specifies the general inference level for constraints whose particular inference</dt><dd><p>level is Default. Possible values for this parameter (in increasing order of inference strength) are Low, Basic, Medium, and Extended.</p> </dd> </dl> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.DistributeInferenceLevel"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">DistributeInferenceLevel</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.DistributeInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for every constraint Distribute extracted to the invoked CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all Distribute constraints to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.DynamicProbing"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">DynamicProbing</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.DynamicProbing" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls probing carried out during search. Probing can be useful on some problems as it can make stronger inferences on combinations of constraints. Possible values for this parameter are On (dynamic probing is activated with a constant strength), Auto (dynamic probing is activated and its strength is adjusted adaptively) and Off (dynamic probing is deactivated). The strength of probing can be defined by parameter DynamicProbingStrength. Dynamic probing only has an effect when using the “Restart” (Restart) search type, on problems without interval variables.</p> <p>The value is a symbol in [‘On’, ‘Off’, ‘Auto’]. Default value is ‘Auto’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.DynamicProbingStrength"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">DynamicProbingStrength</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.DynamicProbingStrength" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls the effort which is dedicated to dynamic probing. It is expressed as a factor of the total search effort: changing this parameter has no effect unless the DynamicProbing parameter is set to Auto or On. When DynamicProbing has value On, the probing strength is held constant throughout the search process. When DynamicProbing has value Auto, the probing strength starts off at the specified value and is thereafter adjusted automatically. Possible values for this parameter range from 0.001 to 1000. A value of 1.0 indicates that dynamic probing will consume a roughly equal amount of effort as the rest of the search. The default value of this parameter is 0.03, meaning that around 3% of total search time is dedicated to dynamic probing.</p> <p>The value is a float in [0.001..1000]. Default value is 0.03.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.ElementInferenceLevel"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">ElementInferenceLevel</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.ElementInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for every element constraint extracted to the invoked CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all element constraints to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.FailLimit"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">FailLimit</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.FailLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the number of failures that can occur before terminating the search.</p> <p>The value is a non-negative integer, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.FailureDirectedSearch"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">FailureDirectedSearch</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.FailureDirectedSearch" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls usage of failure-directed search. Failure-directed search assumes that there is no (better) solution or that such a solution is very hard to find. Therefore it focuses on a systematic exploration of search space, first eliminating assignments that are most likely to fail. Failure-directed search is used only for scheduling problems (i.e. models containing interval variables) and only when the parameter SearchType is set to Restart or Auto. Legal values for the FailureDirectedSearch parameter are On (the default) and Off. When the value is On then CP Optimizer starts failure-directed search when other search strategies are (no longer) successful and when the memory necessary for the search does not exceed the value set by the FailureDirectedSearchMaxMemory parameter.</p> <p>The value is a symbol in [‘On’, ‘Off’]. Default value is ‘On’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.FailureDirectedSearchEmphasis"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">FailureDirectedSearchEmphasis</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.FailureDirectedSearchEmphasis" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls how much time CP Optimizer invests into failure-directed search once it is started. The default value Auto means that CP Optimizer observes the actual performance of failure-directed search and decides automatically how much time is invested. Any other value means that once failure-directed search has started, it is used by given number of workers. The value does not have to be integer. For example, value 1.5 means that first worker spends 100% of the time by failure-directed search, second worker 50% and remaining workers 0%. See also Workers For more information about failure-directed search see parameter FailureDirectedSearch.</p> <p>The value is a non-negative integer, or None or Auto (default) that does not set any limit.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.FailureDirectedSearchMaxMemory"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">FailureDirectedSearchMaxMemory</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.FailureDirectedSearchMaxMemory" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls the maximum amount of memory (in bytes) available to failure-directed search (see FailureDirectedSearchMaxMemory). The default value is 104,857,600 (100MB). Failure-directed search can sometimes consume a lot of memory, especially when end times of interval variables are not bounded. Therefore it is usually not started immediately, but only when the effective horizon (time period over which CP Optimizer must reason) becomes small enough for failure-directed search to operate inside the memory limit specified by this parameter. For many types of scheduling problems, the effective horizon tends to reduce when CP Optimizer finds a better solution (often most significantly when the initial solution is found). Therefore, when each new solution is found, CP Optimizer decides whether or not to turn on failure-directed search. Note that this parameter does not influence the effectiveness of failure-directed search, once started. Its purpose is only to control the point at which failure-directed search will begin to function.</p> <p>The value is a non-negative integer, or None that does not set any limit. Default value is 104857600.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.IntervalSequenceInferenceLevel"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">IntervalSequenceInferenceLevel</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.IntervalSequenceInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for the maintenance of the domain of every interval sequence variable IntervalSequenceVar extracted to the invoking CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all IntervalSequenceVar to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. default value is ‘Default’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.KPIDisplay"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">KPIDisplay</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.KPIDisplay" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter determines how KPIs are displayed in the log during the search.</p> <p>The value is a symbol in [‘SingleLine’, ‘MultipleLines’]. Default value is ‘SingleLine’.</p> <p><em>New in version 2.8, for CPO solver version 12.9.0 and higher.</em></p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.LogPeriod"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">LogPeriod</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.LogPeriod" title="Permalink to this definition">¶</a></dt> <dd><p>The CP Optimizer search log includes information that is displayed periodically. This parameter controls how often that information is displayed. By setting this parameter to a value of k, the log is displayed every k branches (search decisions).</p> <p>The value is an integer strictly greater than 0. Default value is 1000.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.LogVerbosity"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">LogVerbosity</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.LogVerbosity" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter determines the verbosity of the search log. The possible values are Quiet, Terse, Normal, and Verbose. Mode Quiet does not display any information, the other modes display progressively more information. The default value is Normal. The CP Optimizer search log is meant for visual inspection only, not for mechanized parsing. In particular, the log may change from version to version of CP Optimizer in order to improve the quality of information displayed in the log. Any code based on the log output for correct functioning may have to be updated when a new version of CP Optimizer is released.</p> <p>The value is a symbol in [‘Quiet’, ‘Terse’, ‘Normal’, ‘Verbose’]. Default value is ‘Normal’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.ModelAnonymizer"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">ModelAnonymizer</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.ModelAnonymizer" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls anonymization of a model dumped in CPO file format. The legal values of this parameter are Off and On. The default is Off. When the anonymizer is off, then names of variables and constraints in the model may be found in the output file. When the anonymizer is on, names given to variables or constraints in the model will not be reflected in the output file and standard anonymized names will be used.</p> <p>The value is a symbol in [‘On’, ‘Off’]. Default value is ‘Off’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.MultiPointNumberOfSearchPoints"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">MultiPointNumberOfSearchPoints</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.MultiPointNumberOfSearchPoints" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls the number of (possibly partial) solutions manipulated by the multi-point search algorithm. The default value is 30. A larger value will diversify the search, with possible improvement in solution quality at the expense of a longer run time. A smaller value will intensify the search, resulting in faster convergence at the expense of solution quality. Note that memory consumption increases proportionally to this parameter, for each search point must store each decision variable domain.</p> <p>The value is an integer strictly greater than 1. Default value is 30.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.NoOverlapInferenceLevel"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">NoOverlapInferenceLevel</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.NoOverlapInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for every constraint NoOverlap extracted to the invoked CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all NoOverlap constraints to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.OptimalityTolerance"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">OptimalityTolerance</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.OptimalityTolerance" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter sets an absolute tolerance on the objective value for optimization models. This means that when CP Optimizer reports an optimal solution found, then there is no solution which improves the objective by more than the value of this parameter. This parameter is used in conjunction with RelativeOptimalityTolerance. The optimality of a solution is proven if either of the two parameters’ criteria is fulfilled.</p> <p>The value is a positive float. Default value is 1e-09.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.PrecedenceInferenceLevel"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">PrecedenceInferenceLevel</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.PrecedenceInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for precedence constraints between interval variables extracted to the invoking CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength for precedence constraints between interval variables to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.Presolve"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">Presolve</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.Presolve" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls the presolve of the model to produce more compact formulations and to achieve more domain reduction. Possible values for this parameter are On (presolve is activated) and Off (presolve is deactivated).</p> <p>The value is a symbol in [‘On’, ‘Off’]. Default value is ‘On’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.PrintModelDetailsInMessages"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">PrintModelDetailsInMessages</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.PrintModelDetailsInMessages" title="Permalink to this definition">¶</a></dt> <dd><p>Whenever CP Optimizer prints an error or warning message, it can also print concerning part of the input model (in cpo file format). This parameter controls printing of this additional information. Possible values are On and Off, the Default value is ‘On’. See also WarningLevel.</p> <p>The value is a symbol in [‘On’, ‘Off’]. Default value is ‘On’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.RandomSeed"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">RandomSeed</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.RandomSeed" title="Permalink to this definition">¶</a></dt> <dd><p>The search uses some randomization in some strategies. This parameter sets the seed of the random generator used by these strategies.</p> <p>The value is a non-negative integer. Default value is 0.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.RelativeOptimalityTolerance"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">RelativeOptimalityTolerance</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.RelativeOptimalityTolerance" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter sets a relative tolerance on the objective value for optimization models. This means that when CP Optimizer reports an optimal solution found, then there is no solution which improves the objective by more than the absolute value of the objective times the value of this parameter. The default value of this parameter is 1e-4. This parameter is used in conjunction with OptimalityTolerance. The optimality of a solution is proven if either of the two parameters’ criteria are fulfilled.</p> <p>The value is a non-negative float. Default value is 0.0001.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.RestartFailLimit"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">RestartFailLimit</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.RestartFailLimit" title="Permalink to this definition">¶</a></dt> <dd><p>When SearchType is set to Restart, a depth-first search is restarted after a certain number of failures. This parameter controls the number of failures that must occur before restarting search. Possible values range from 0 to Infinity. The default value is 100. This value can increase after each restart: see the parameter RestartGrowthFactor.</p> <p>The value is an integer greater than 0. Default value is 100.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.RestartGrowthFactor"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">RestartGrowthFactor</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.RestartGrowthFactor" title="Permalink to this definition">¶</a></dt> <dd><p>When SearchType is set to Restart, a depth-first search is restarted after a certain number of failures. This parameter controls the increase of this number between restarts. If the last fail limit was f after a restart, for next run, the new fail limit will be f times the value of this parameter. Possible values of this parameter range from 1.0 to Infinity. The default value is 1.05. The initial fail limit can be controlled with the parameter RestartFailLimit.</p> <p>The value is a float greater or equal to 1. Default value is 1.15.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.SearchType"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">SearchType</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.SearchType" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter determines the type of search that is applied when solving a problem.</p> <blockquote> <div><ul class="simple"> <li><p>When set to <em>DepthFirst</em>, a regular depth-first search is applied.</p></li> <li><p>When set to <em>Restart</em>, a depth-first search that restarts from time to time is applied.</p></li> <li><p>When set to <em>MultiPoint</em>, a method that combines a set of - possibly partial - solutions is applied.</p></li> <li><p>When set to <em>IterativeDiving</em> on scheduling problems (ones with at least one interval variable), a more aggressive diving technique is applied in order to find solutions to large problems more quickly.</p></li> <li><p>When set to <em>Neighborhood</em>, a search based on a solution neighborhood exploration should be used (feature in beta).</p></li> <li><p>When set to <em>Auto</em> in sequential mode, this value chooses the appropriate search method to be used. In general Auto will be the Restart search. The default value is Auto.</p></li> </ul> </div></blockquote> <p>In parallel mode (i.e, when the number of workers is greater than one - see the Workers parameter), the different searches described above are spread over the workers. When the value of SearchType is Auto, then the decision of choosing the search type for a worker is automatically made; otherwise, all workers execute the same type of search. Note that in the latter case, the workers will not do the same exploration due to some randomness introduced to break ties in decision making.</p> <p>The value is a symbol in [‘DepthFirst’, ‘Restart’, ‘MultiPoint’, ‘IterativeDiving’, ‘Neighborhood’, ‘Auto’]. Default value is ‘Auto’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.SequenceInferenceLevel"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">SequenceInferenceLevel</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.SequenceInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for every constraint Sequence extracted to the invoked CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all Sequence constraints to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.SolutionLimit"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">SolutionLimit</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.SolutionLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the number of feasible solutions that are found before terminating a search.</p> <p>The value is a non-negative integer, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.StateFunctionInferenceLevel"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">StateFunctionInferenceLevel</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.StateFunctionInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for constraints on state functions StateFunction extracted to the invoked CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all constraints on state functions StateFunction to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.TemporalRelaxation"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">TemporalRelaxation</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.TemporalRelaxation" title="Permalink to this definition">¶</a></dt> <dd><p>This advanced parameter can be used to control the usage of a temporal relaxation internal to the invoking CP engine. This parameter can take values On or Off, with On being the default, meaning the relaxation is used in the engine when needed. For some models, using the relaxation becomes inefficient, and you may deactivate the use of the temporal relaxation using value Off.</p> <p>The value is a symbol in [‘On’, ‘Off’]. Default value is ‘On’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.TimeLimit"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">TimeLimit</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.TimeLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the CPU time spent solving before terminating a search. The time is given in seconds.</p> <p>The value is a non-negative float, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.TimeMode"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">TimeMode</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.TimeMode" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter defines how time is measured in CP Optimizer, the two legal values being ElapsedTime and CPUTime. CP Optimizer uses time for both display purposes and for limiting the search via TimeLimit. Note that when multiple processors are available and the number of workers (Workers) is greater than one, then the CPU time can be greater than the elapsed time by a factor up to the number of workers.</p> <p>The value is a symbol in [‘CPUTime’, ‘ElapsedTime’]. Default value is ‘ElapsedTime’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.UseFileLocations"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">UseFileLocations</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.UseFileLocations" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls whether CP Optimizer processes file locations. With each constraint, variable or expression it is possible to associate a source file location (file name and line number). CP Optimizer can use locations later for reporting errors and conflicts. Locations are also included in exported/dumped models (#line directives). Legal values for this parameter are On (the default) and Off. When the value is Off then CP Optimizer ignores locations in the input model and also does not export them in CPO file format (functions dumpModel and exportModel).</p> <p>The value is a symbol in [‘On’, ‘Off’]. Default value is ‘On’.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.WarningLevel"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">WarningLevel</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.WarningLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls the level of warnings issued by CP Optimizer when a solve is launched. Specifically, all warnings of level higher than this parameter are masked. Since CP Optimizer warning levels run from 1 to 3, setting this parameter to 0 turns off all warnings. Warnings issued may indicate potential errors or inefficiencies in your model. The default value of this parameter is 2. See also PrintModelDetailsInMessages.</p> <p>The value is an integer in [0..3]. Default value is 2.</p> </dd></dl> <dl class="py property"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.Workers"> <em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">Workers</span></span><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.Workers" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter sets the number of workers to run in parallel to solve your model. If the number of workers is set to n (with n greater than one), the CP optimizer will create n workers, each in their own thread, that will work together to solve the problem. The emphasis of these workers is more to find better feasible solutions and then to speed up the proof of optimality. The default value is Auto. This amounts to using as many workers as there are CPU cores available on the machine. Note that the memory required by CP Optimizer grows roughly linearly as the number of workers is increased. If you are solving a very large model on a multi-core processor and memory usage is an issue, it is advisable to specify a reduced number of workers, or even one worker, rather than use the default value.</p> <p>The value is a positive integer. Default value is Auto.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.add"> <span class="sig-name descname"><span class="pre">add</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">ctx</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.add"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.add" title="Permalink to this definition">¶</a></dt> <dd><p>Add another parameters object to this one.</p> <p>All attributes of given parameters are set in this one, except if there value is None. If one value is another context, it is cloned before being set.</p> <dl class="field-list simple"> <dt class="field-odd">Parameters<span class="colon">:</span></dt> <dd class="field-odd"><p><strong>ctx</strong> – Other parameters to add to this one.</p> </dd> </dl> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_AllDiffInferenceLevel"> <span class="sig-name descname"><span class="pre">get_AllDiffInferenceLevel</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_AllDiffInferenceLevel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_AllDiffInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for every constraint AllDiff extracted to the invoking CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all AllDiff constraints to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_AllMinDistanceInferenceLevel"> <span class="sig-name descname"><span class="pre">get_AllMinDistanceInferenceLevel</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_AllMinDistanceInferenceLevel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_AllMinDistanceInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for every constraint AllMinDistance extracted to the invoked CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all AllMinDistance constraints to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_AutomaticReplay"> <span class="sig-name descname"><span class="pre">get_AutomaticReplay</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_AutomaticReplay"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_AutomaticReplay" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter is an advanced, low-level one for controlling the behavior of solve() and next(). When the model being solved has an objective and solve is used, or when startNewSearch and next are used to produce multiple solutions, the solver may have a need to replay the last (or best) solution found. This can, in some cases, involve re-invoking the strategy which produced the solution. Normally this is only necessary if you use low level “Ilc” interfaces to specify problem elements not in the model (instance of Model). This parameter can take the values On or Off. The default value is On. A typical reason for setting this parameter to Off is, for instance, if you use your own custom goal (instance of IlcGoal), and this goal is not deterministic (does not do the same thing when executed twice). In this instance, the replay will not work correctly, and you can use this parameter to disable replay.</p> <p>This parameter is deprecated since release 2.3.</p> <p>The value is a symbol in [‘On’, ‘Off’]. Default value is ‘On’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_BranchLimit"> <span class="sig-name descname"><span class="pre">get_BranchLimit</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_BranchLimit"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_BranchLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the number of branches that are made before terminating a search. A branch is a decision made at a choice point in the search, a typical node being made up of two branches, for example: x == value and x != value. A branch is only counted at the moment a decision is executed, not when the two branches of the choice point are decided. A branch is counted even if the decision leads to an inconsistency (failure).</p> <p>The value is a non-negative integer, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_ChoicePointLimit"> <span class="sig-name descname"><span class="pre">get_ChoicePointLimit</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_ChoicePointLimit"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_ChoicePointLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the number of choice points that are created before terminating a search.</p> <p>The value is a non-negative integer, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_ConflictRefinerBranchLimit"> <span class="sig-name descname"><span class="pre">get_ConflictRefinerBranchLimit</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_ConflictRefinerBranchLimit"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_ConflictRefinerBranchLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the total number of branches that are made before terminating the conflict refiner.</p> <p>The value is a non-negative integer, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_ConflictRefinerFailLimit"> <span class="sig-name descname"><span class="pre">get_ConflictRefinerFailLimit</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_ConflictRefinerFailLimit"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_ConflictRefinerFailLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the total number of failures that can occur before terminating the conflict refiner.</p> <p>The value is a non-negative integer, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_ConflictRefinerIterationLimit"> <span class="sig-name descname"><span class="pre">get_ConflictRefinerIterationLimit</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_ConflictRefinerIterationLimit"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_ConflictRefinerIterationLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the number of iterations that are made before terminating the conflict refiner.</p> <p>The value is a non-negative integer, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_ConflictRefinerOnVariables"> <span class="sig-name descname"><span class="pre">get_ConflictRefinerOnVariables</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_ConflictRefinerOnVariables"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_ConflictRefinerOnVariables" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies whether the conflict refiner should refine variables domains. Possible values for this parameter are On (conflict refiner will refine both constraints and variables domains) and Off (conflict refiner will only refine constraints).</p> <p>The value is a symbol in [‘On’, ‘Off’]. Default value is ‘Off’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_ConflictRefinerTimeLimit"> <span class="sig-name descname"><span class="pre">get_ConflictRefinerTimeLimit</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_ConflictRefinerTimeLimit"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_ConflictRefinerTimeLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the CPU time spent before terminating the conflict refiner.</p> <p>The value is a non-negative float, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_CountDifferentInferenceLevel"> <span class="sig-name descname"><span class="pre">get_CountDifferentInferenceLevel</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_CountDifferentInferenceLevel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_CountDifferentInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for every constraint CountDifferent extracted to the invoking CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all CountDifferent constraints to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_CountInferenceLevel"> <span class="sig-name descname"><span class="pre">get_CountInferenceLevel</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_CountInferenceLevel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_CountInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for every constraint Count extracted to the invoked CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all Count constraints to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_CumulFunctionInferenceLevel"> <span class="sig-name descname"><span class="pre">get_CumulFunctionInferenceLevel</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_CumulFunctionInferenceLevel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_CumulFunctionInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for constraints on expressions CumulFunctionExpr extracted to the invoked CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all constraints on CumulFunctionExpr to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_DefaultInferenceLevel"> <span class="sig-name descname"><span class="pre">get_DefaultInferenceLevel</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_DefaultInferenceLevel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_DefaultInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><blockquote> <div><p>This parameter specifies the general inference level for constraints whose particular inference level is Default. Possible values for this parameter (in increasing order of inference strength) are Low, Basic, Medium, and Extended.</p> </div></blockquote> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_DistributeInferenceLevel"> <span class="sig-name descname"><span class="pre">get_DistributeInferenceLevel</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_DistributeInferenceLevel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_DistributeInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for every constraint Distribute extracted to the invoked CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all Distribute constraints to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_DynamicProbing"> <span class="sig-name descname"><span class="pre">get_DynamicProbing</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_DynamicProbing"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_DynamicProbing" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls probing carried out during search. Probing can be useful on some problems as it can make stronger inferences on combinations of constraints. Possible values for this parameter are On (dynamic probing is activated with a constant strength), Auto (dynamic probing is activated and its strength is adjusted adaptively) and Off (dynamic probing is deactivated). The strength of probing can be defined by parameter DynamicProbingStrength. Dynamic probing only has an effect when using the “Restart” (Restart) search type, on problems without interval variables.</p> <p>The value is a symbol in [‘On’, ‘Off’, ‘Auto’]. Default value is ‘Auto’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_DynamicProbingStrength"> <span class="sig-name descname"><span class="pre">get_DynamicProbingStrength</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_DynamicProbingStrength"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_DynamicProbingStrength" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls the effort which is dedicated to dynamic probing. It is expressed as a factor of the total search effort: changing this parameter has no effect unless the DynamicProbing parameter is set to Auto or On. When DynamicProbing has value On, the probing strength is held constant throughout the search process. When DynamicProbing has value Auto, the probing strength starts off at the specified value and is thereafter adjusted automatically. Possible values for this parameter range from 0.001 to 1000. A value of 1.0 indicates that dynamic probing will consume a roughly equal amount of effort as the rest of the search. The default value of this parameter is 0.03, meaning that around 3% of total search time is dedicated to dynamic probing.</p> <p>The value is a float in [0.001..1000]. Default value is 0.03.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_ElementInferenceLevel"> <span class="sig-name descname"><span class="pre">get_ElementInferenceLevel</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_ElementInferenceLevel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_ElementInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for every element constraint extracted to the invoked CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all element constraints to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_FailLimit"> <span class="sig-name descname"><span class="pre">get_FailLimit</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_FailLimit"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_FailLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the number of failures that can occur before terminating the search.</p> <p>The value is a non-negative integer, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_FailureDirectedSearch"> <span class="sig-name descname"><span class="pre">get_FailureDirectedSearch</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_FailureDirectedSearch"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_FailureDirectedSearch" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls usage of failure-directed search. Failure-directed search assumes that there is no (better) solution or that such a solution is very hard to find. Therefore it focuses on a systematic exploration of search space, first eliminating assignments that are most likely to fail. Failure-directed search is used only for scheduling problems (i.e. models containing interval variables) and only when the parameter SearchType is set to Restart or Auto. Legal values for the FailureDirectedSearch parameter are On (the default) and Off. When the value is On then CP Optimizer starts failure-directed search when other search strategies are (no longer) successful and when the memory necessary for the search does not exceed the value set by the FailureDirectedSearchMaxMemory parameter.</p> <p>The value is a symbol in [‘On’, ‘Off’]. Default value is ‘On’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_FailureDirectedSearchEmphasis"> <span class="sig-name descname"><span class="pre">get_FailureDirectedSearchEmphasis</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_FailureDirectedSearchEmphasis"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_FailureDirectedSearchEmphasis" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls how much time CP Optimizer invests into failure-directed search once it is started. The default value Auto means that CP Optimizer observes the actual performance of failure-directed search and decides automatically how much time is invested. Any other value means that once failure-directed search has started, it is used by given number of workers. The value does not have to be integer. For example, value 1.5 means that first worker spends 100% of the time by failure-directed search, second worker 50% and remaining workers 0%. See also Workers For more information about failure-directed search see parameter FailureDirectedSearch.</p> <p>The value is a non-negative integer, or None or Auto (default) that does not set any limit.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_FailureDirectedSearchMaxMemory"> <span class="sig-name descname"><span class="pre">get_FailureDirectedSearchMaxMemory</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_FailureDirectedSearchMaxMemory"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_FailureDirectedSearchMaxMemory" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls the maximum amount of memory (in bytes) available to failure-directed search (see FailureDirectedSearchMaxMemory). The default value is 104,857,600 (100MB). Failure-directed search can sometimes consume a lot of memory, especially when end times of interval variables are not bounded. Therefore it is usually not started immediately, but only when the effective horizon (time period over which CP Optimizer must reason) becomes small enough for failure-directed search to operate inside the memory limit specified by this parameter. For many types of scheduling problems, the effective horizon tends to reduce when CP Optimizer finds a better solution (often most significantly when the initial solution is found). Therefore, when each new solution is found, CP Optimizer decides whether or not to turn on failure-directed search. Note that this parameter does not influence the effectiveness of failure-directed search, once started. Its purpose is only to control the point at which failure-directed search will begin to function.</p> <p>The value is a non-negative integer, or None that does not set any limit. Default value is 104857600.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_IntervalSequenceInferenceLevel"> <span class="sig-name descname"><span class="pre">get_IntervalSequenceInferenceLevel</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_IntervalSequenceInferenceLevel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_IntervalSequenceInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for the maintenance of the domain of every interval sequence variable IntervalSequenceVar extracted to the invoking CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all IntervalSequenceVar to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. default value is ‘Default’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_KPIDisplay"> <span class="sig-name descname"><span class="pre">get_KPIDisplay</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_KPIDisplay"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_KPIDisplay" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter determines how KPIs are displayed in the log during the search.</p> <p>The value is a symbol in [‘SingleLine’, ‘MultipleLines’]. Default value is ‘SingleLine’.</p> <p><em>New in version 2.8, for CPO solver version 12.9.0 and higher.</em></p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_LogPeriod"> <span class="sig-name descname"><span class="pre">get_LogPeriod</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_LogPeriod"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_LogPeriod" title="Permalink to this definition">¶</a></dt> <dd><p>The CP Optimizer search log includes information that is displayed periodically. This parameter controls how often that information is displayed. By setting this parameter to a value of k, the log is displayed every k branches (search decisions).</p> <p>The value is an integer strictly greater than 0. Default value is 1000.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_LogVerbosity"> <span class="sig-name descname"><span class="pre">get_LogVerbosity</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_LogVerbosity"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_LogVerbosity" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter determines the verbosity of the search log. The possible values are Quiet, Terse, Normal, and Verbose. Mode Quiet does not display any information, the other modes display progressively more information. The default value is Normal. The CP Optimizer search log is meant for visual inspection only, not for mechanized parsing. In particular, the log may change from version to version of CP Optimizer in order to improve the quality of information displayed in the log. Any code based on the log output for correct functioning may have to be updated when a new version of CP Optimizer is released.</p> <p>The value is a symbol in [‘Quiet’, ‘Terse’, ‘Normal’, ‘Verbose’]. Default value is ‘Normal’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_ModelAnonymizer"> <span class="sig-name descname"><span class="pre">get_ModelAnonymizer</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_ModelAnonymizer"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_ModelAnonymizer" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls anonymization of a model dumped in CPO file format. The legal values of this parameter are Off and On. The default is Off. When the anonymizer is off, then names of variables and constraints in the model may be found in the output file. When the anonymizer is on, names given to variables or constraints in the model will not be reflected in the output file and standard anonymized names will be used.</p> <p>The value is a symbol in [‘On’, ‘Off’]. Default value is ‘Off’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_MultiPointNumberOfSearchPoints"> <span class="sig-name descname"><span class="pre">get_MultiPointNumberOfSearchPoints</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_MultiPointNumberOfSearchPoints"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_MultiPointNumberOfSearchPoints" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls the number of (possibly partial) solutions manipulated by the multi-point search algorithm. The default value is 30. A larger value will diversify the search, with possible improvement in solution quality at the expense of a longer run time. A smaller value will intensify the search, resulting in faster convergence at the expense of solution quality. Note that memory consumption increases proportionally to this parameter, for each search point must store each decision variable domain.</p> <p>The value is an integer strictly greater than 1. Default value is 30.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_NoOverlapInferenceLevel"> <span class="sig-name descname"><span class="pre">get_NoOverlapInferenceLevel</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_NoOverlapInferenceLevel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_NoOverlapInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for every constraint NoOverlap extracted to the invoked CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all NoOverlap constraints to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_OptimalityTolerance"> <span class="sig-name descname"><span class="pre">get_OptimalityTolerance</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_OptimalityTolerance"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_OptimalityTolerance" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter sets an absolute tolerance on the objective value for optimization models. This means that when CP Optimizer reports an optimal solution found, then there is no solution which improves the objective by more than the value of this parameter. This parameter is used in conjunction with RelativeOptimalityTolerance. The optimality of a solution is proven if either of the two parameters’ criteria is fulfilled.</p> <p>The value is a positive float. Default value is 1e-09.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_PrecedenceInferenceLevel"> <span class="sig-name descname"><span class="pre">get_PrecedenceInferenceLevel</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_PrecedenceInferenceLevel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_PrecedenceInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for precedence constraints between interval variables extracted to the invoking CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength for precedence constraints between interval variables to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_Presolve"> <span class="sig-name descname"><span class="pre">get_Presolve</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_Presolve"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_Presolve" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls the presolve of the model to produce more compact formulations and to achieve more domain reduction. Possible values for this parameter are On (presolve is activated) and Off (presolve is deactivated).</p> <p>The value is a symbol in [‘On’, ‘Off’]. Default value is ‘On’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_PrintModelDetailsInMessages"> <span class="sig-name descname"><span class="pre">get_PrintModelDetailsInMessages</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_PrintModelDetailsInMessages"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_PrintModelDetailsInMessages" title="Permalink to this definition">¶</a></dt> <dd><p>Whenever CP Optimizer prints an error or warning message, it can also print concerning part of the input model (in cpo file format). This parameter controls printing of this additional information. Possible values are On and Off, the Default value is ‘On’. See also WarningLevel.</p> <p>The value is a symbol in [‘On’, ‘Off’]. Default value is ‘On’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_RandomSeed"> <span class="sig-name descname"><span class="pre">get_RandomSeed</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_RandomSeed"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_RandomSeed" title="Permalink to this definition">¶</a></dt> <dd><p>The search uses some randomization in some strategies. This parameter sets the seed of the random generator used by these strategies.</p> <p>The value is a non-negative integer. Default value is 0.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_RelativeOptimalityTolerance"> <span class="sig-name descname"><span class="pre">get_RelativeOptimalityTolerance</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_RelativeOptimalityTolerance"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_RelativeOptimalityTolerance" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter sets a relative tolerance on the objective value for optimization models. This means that when CP Optimizer reports an optimal solution found, then there is no solution which improves the objective by more than the absolute value of the objective times the value of this parameter. The default value of this parameter is 1e-4. This parameter is used in conjunction with OptimalityTolerance. The optimality of a solution is proven if either of the two parameters’ criteria are fulfilled.</p> <p>The value is a non-negative float. Default value is 0.0001.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_RestartFailLimit"> <span class="sig-name descname"><span class="pre">get_RestartFailLimit</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_RestartFailLimit"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_RestartFailLimit" title="Permalink to this definition">¶</a></dt> <dd><p>When SearchType is set to Restart, a depth-first search is restarted after a certain number of failures. This parameter controls the number of failures that must occur before restarting search. Possible values range from 0 to Infinity. The default value is 100. This value can increase after each restart: see the parameter RestartGrowthFactor.</p> <p>The value is an integer greater than 0. Default value is 100.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_RestartGrowthFactor"> <span class="sig-name descname"><span class="pre">get_RestartGrowthFactor</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_RestartGrowthFactor"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_RestartGrowthFactor" title="Permalink to this definition">¶</a></dt> <dd><p>When SearchType is set to Restart, a depth-first search is restarted after a certain number of failures. This parameter controls the increase of this number between restarts. If the last fail limit was f after a restart, for next run, the new fail limit will be f times the value of this parameter. Possible values of this parameter range from 1.0 to Infinity. The default value is 1.05. The initial fail limit can be controlled with the parameter RestartFailLimit.</p> <p>The value is a float greater or equal to 1. Default value is 1.15.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_SearchType"> <span class="sig-name descname"><span class="pre">get_SearchType</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_SearchType"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_SearchType" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter determines the type of search that is applied when solving a problem.</p> <blockquote> <div><ul class="simple"> <li><p>When set to <em>DepthFirst</em>, a regular depth-first search is applied.</p></li> <li><p>When set to <em>Restart</em>, a depth-first search that restarts from time to time is applied.</p></li> <li><p>When set to <em>MultiPoint</em>, a method that combines a set of - possibly partial - solutions is applied.</p></li> <li><p>When set to <em>IterativeDiving</em> on scheduling problems (ones with at least one interval variable), a more aggressive diving technique is applied in order to find solutions to large problems more quickly.</p></li> <li><p>When set to <em>Neighborhood</em>, a search based on a solution neighborhood exploration should be used (feature in beta).</p></li> <li><p>When set to <em>Auto</em> in sequential mode, this value chooses the appropriate search method to be used. In general Auto will be the Restart search. The default value is Auto.</p></li> </ul> </div></blockquote> <p>In parallel mode (i.e, when the number of workers is greater than one - see the Workers parameter), the different searches described above are spread over the workers. When the value of SearchType is Auto, then the decision of choosing the search type for a worker is automatically made; otherwise, all workers execute the same type of search. Note that in the latter case, the workers will not do the same exploration due to some randomness introduced to break ties in decision making.</p> <p>The value is a symbol in [‘DepthFirst’, ‘Restart’, ‘MultiPoint’, ‘IterativeDiving’, ‘Neighborhood’, ‘Auto’]. Default value is ‘Auto’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_SequenceInferenceLevel"> <span class="sig-name descname"><span class="pre">get_SequenceInferenceLevel</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_SequenceInferenceLevel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_SequenceInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for every constraint Sequence extracted to the invoked CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all Sequence constraints to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_SolutionLimit"> <span class="sig-name descname"><span class="pre">get_SolutionLimit</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_SolutionLimit"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_SolutionLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the number of feasible solutions that are found before terminating a search.</p> <p>The value is a non-negative integer, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_StateFunctionInferenceLevel"> <span class="sig-name descname"><span class="pre">get_StateFunctionInferenceLevel</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_StateFunctionInferenceLevel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_StateFunctionInferenceLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter specifies the inference level for constraints on state functions StateFunction extracted to the invoked CP instance. Possible values for this parameter are Default, Low, Basic, Medium, and Extended. The default value is Default, which allows the inference strength of all constraints on state functions StateFunction to be controlled via DefaultInferenceLevel.</p> <p>The value is a symbol in [‘Default’, ‘Low’, ‘Basic’, ‘Medium’, ‘Extended’]. Default value is ‘Default’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_TemporalRelaxation"> <span class="sig-name descname"><span class="pre">get_TemporalRelaxation</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_TemporalRelaxation"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_TemporalRelaxation" title="Permalink to this definition">¶</a></dt> <dd><p>This advanced parameter can be used to control the usage of a temporal relaxation internal to the invoking CP engine. This parameter can take values On or Off, with On being the default, meaning the relaxation is used in the engine when needed. For some models, using the relaxation becomes inefficient, and you may deactivate the use of the temporal relaxation using value Off.</p> <p>The value is a symbol in [‘On’, ‘Off’]. Default value is ‘On’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_TimeLimit"> <span class="sig-name descname"><span class="pre">get_TimeLimit</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_TimeLimit"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_TimeLimit" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter limits the CPU time spent solving before terminating a search. The time is given in seconds.</p> <p>The value is a non-negative float, or None (default) that does not set any limit.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_TimeMode"> <span class="sig-name descname"><span class="pre">get_TimeMode</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_TimeMode"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_TimeMode" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter defines how time is measured in CP Optimizer, the two legal values being ElapsedTime and CPUTime. CP Optimizer uses time for both display purposes and for limiting the search via TimeLimit. Note that when multiple processors are available and the number of workers (Workers) is greater than one, then the CPU time can be greater than the elapsed time by a factor up to the number of workers.</p> <p>The value is a symbol in [‘CPUTime’, ‘ElapsedTime’]. Default value is ‘ElapsedTime’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_UseFileLocations"> <span class="sig-name descname"><span class="pre">get_UseFileLocations</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_UseFileLocations"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_UseFileLocations" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls whether CP Optimizer processes file locations. With each constraint, variable or expression it is possible to associate a source file location (file name and line number). CP Optimizer can use locations later for reporting errors and conflicts. Locations are also included in exported/dumped models (#line directives). Legal values for this parameter are On (the default) and Off. When the value is Off then CP Optimizer ignores locations in the input model and also does not export them in CPO file format (functions dumpModel and exportModel).</p> <p>The value is a symbol in [‘On’, ‘Off’]. Default value is ‘On’.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_WarningLevel"> <span class="sig-name descname"><span class="pre">get_WarningLevel</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_WarningLevel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_WarningLevel" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter controls the level of warnings issued by CP Optimizer when a solve is launched. Specifically, all warnings of level higher than this parameter are masked. Since CP Optimizer warning levels run from 1 to 3, setting this parameter to 0 turns off all warnings. Warnings issued may indicate potential errors or inefficiencies in your model. The default value of this parameter is 2. See also PrintModelDetailsInMessages.</p> <p>The value is an integer in [0..3]. Default value is 2.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_Workers"> <span class="sig-name descname"><span class="pre">get_Workers</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_Workers"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_Workers" title="Permalink to this definition">¶</a></dt> <dd><p>This parameter sets the number of workers to run in parallel to solve your model. If the number of workers is set to n (with n greater than one), the CP optimizer will create n workers, each in their own thread, that will work together to solve the problem. The emphasis of these workers is more to find better feasible solutions and then to speed up the proof of optimality. The default value is Auto. This amounts to using as many workers as there are CPU cores available on the machine. Note that the memory required by CP Optimizer grows roughly linearly as the number of workers is increased. If you are solving a very large model on a multi-core processor and memory usage is an issue, it is advisable to specify a reduced number of workers, or even one worker, rather than use the default value.</p> <p>The value is a positive integer. Default value is Auto.</p> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.get_default_value"> <span class="sig-name descname"><span class="pre">get_default_value</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">name</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.get_default_value"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.get_default_value" title="Permalink to this definition">¶</a></dt> <dd><p>Get the default value of a given parameter name.</p> <dl class="field-list simple"> <dt class="field-odd">Parameters<span class="colon">:</span></dt> <dd class="field-odd"><p><strong>name</strong> – Parameter name</p> </dd> <dt class="field-even">Returns<span class="colon">:</span></dt> <dd class="field-even"><p>Default parameter value, None if unknown</p> </dd> </dl> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.read_ops_file"> <em class="property"><span class="pre">classmethod</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">read_ops_file</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">infile</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.read_ops_file"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.read_ops_file" title="Permalink to this definition">¶</a></dt> <dd><p>Read an OPL-style .ops file, generating a parameter set. :param infile: Either a file name or an open file object.</p> <dl class="field-list simple"> <dt class="field-odd">Returns<span class="colon">:</span></dt> <dd class="field-odd"><p>An instance of this class, containing the parameter settings.</p> </dd> </dl> </dd></dl> <dl class="py method"> <dt class="sig sig-object py" id="docplex.cp.parameters.CpoParameters.reset_to_default"> <span class="sig-name descname"><span class="pre">reset_to_default</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#CpoParameters.reset_to_default"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.CpoParameters.reset_to_default" title="Permalink to this definition">¶</a></dt> <dd><p>Reset all the parameters to their default value.</p> <p>Parameters are reset to their default value by being removed from this object.</p> </dd></dl> </dd></dl> <dl class="py class"> <dt class="sig sig-object py" id="docplex.cp.parameters.ParameterDescriptor"> <em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">docplex.cp.parameters.</span></span><span class="sig-name descname"><span class="pre">ParameterDescriptor</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">name</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">type</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">deflt</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/docplex/cp/parameters.html#ParameterDescriptor"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#docplex.cp.parameters.ParameterDescriptor" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <p>Parameter descriptor</p> </dd></dl> </section> <div class="clearer"></div> </div> </div> </div> <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> <div class="sphinxsidebarwrapper"> <div> <h3><a href="index.html">Table of Contents</a></h3> <ul> <li><a class="reference internal" href="#">Module <strong>docplex.cp.parameters</strong></a><ul> <li><a class="reference internal" href="#summary-of-parameters">Summary of parameters</a></li> <li><a class="reference internal" href="#private-parameters">Private parameters</a></li> <li><a class="reference internal" href="#detailed-description">Detailed description</a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters"><code class="docutils literal notranslate"><span class="pre">CpoParameters</span></code></a><ul> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.AllDiffInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.AllDiffInferenceLevel</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.AllMinDistanceInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.AllMinDistanceInferenceLevel</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.AutomaticReplay"><code class="docutils literal notranslate"><span class="pre">CpoParameters.AutomaticReplay</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.BranchLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.BranchLimit</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.ChoicePointLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.ChoicePointLimit</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.ConflictRefinerBranchLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.ConflictRefinerBranchLimit</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.ConflictRefinerFailLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.ConflictRefinerFailLimit</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.ConflictRefinerIterationLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.ConflictRefinerIterationLimit</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.ConflictRefinerOnVariables"><code class="docutils literal notranslate"><span class="pre">CpoParameters.ConflictRefinerOnVariables</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.ConflictRefinerTimeLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.ConflictRefinerTimeLimit</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.CountDifferentInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.CountDifferentInferenceLevel</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.CountInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.CountInferenceLevel</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.CumulFunctionInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.CumulFunctionInferenceLevel</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.DefaultInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.DefaultInferenceLevel</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.DistributeInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.DistributeInferenceLevel</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.DynamicProbing"><code class="docutils literal notranslate"><span class="pre">CpoParameters.DynamicProbing</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.DynamicProbingStrength"><code class="docutils literal notranslate"><span class="pre">CpoParameters.DynamicProbingStrength</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.ElementInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.ElementInferenceLevel</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.FailLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.FailLimit</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.FailureDirectedSearch"><code class="docutils literal notranslate"><span class="pre">CpoParameters.FailureDirectedSearch</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.FailureDirectedSearchEmphasis"><code class="docutils literal notranslate"><span class="pre">CpoParameters.FailureDirectedSearchEmphasis</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.FailureDirectedSearchMaxMemory"><code class="docutils literal notranslate"><span class="pre">CpoParameters.FailureDirectedSearchMaxMemory</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.IntervalSequenceInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.IntervalSequenceInferenceLevel</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.KPIDisplay"><code class="docutils literal notranslate"><span class="pre">CpoParameters.KPIDisplay</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.LogPeriod"><code class="docutils literal notranslate"><span class="pre">CpoParameters.LogPeriod</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.LogVerbosity"><code class="docutils literal notranslate"><span class="pre">CpoParameters.LogVerbosity</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.ModelAnonymizer"><code class="docutils literal notranslate"><span class="pre">CpoParameters.ModelAnonymizer</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.MultiPointNumberOfSearchPoints"><code class="docutils literal notranslate"><span class="pre">CpoParameters.MultiPointNumberOfSearchPoints</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.NoOverlapInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.NoOverlapInferenceLevel</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.OptimalityTolerance"><code class="docutils literal notranslate"><span class="pre">CpoParameters.OptimalityTolerance</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.PrecedenceInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.PrecedenceInferenceLevel</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.Presolve"><code class="docutils literal notranslate"><span class="pre">CpoParameters.Presolve</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.PrintModelDetailsInMessages"><code class="docutils literal notranslate"><span class="pre">CpoParameters.PrintModelDetailsInMessages</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.RandomSeed"><code class="docutils literal notranslate"><span class="pre">CpoParameters.RandomSeed</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.RelativeOptimalityTolerance"><code class="docutils literal notranslate"><span class="pre">CpoParameters.RelativeOptimalityTolerance</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.RestartFailLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.RestartFailLimit</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.RestartGrowthFactor"><code class="docutils literal notranslate"><span class="pre">CpoParameters.RestartGrowthFactor</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.SearchType"><code class="docutils literal notranslate"><span class="pre">CpoParameters.SearchType</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.SequenceInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.SequenceInferenceLevel</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.SolutionLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.SolutionLimit</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.StateFunctionInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.StateFunctionInferenceLevel</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.TemporalRelaxation"><code class="docutils literal notranslate"><span class="pre">CpoParameters.TemporalRelaxation</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.TimeLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.TimeLimit</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.TimeMode"><code class="docutils literal notranslate"><span class="pre">CpoParameters.TimeMode</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.UseFileLocations"><code class="docutils literal notranslate"><span class="pre">CpoParameters.UseFileLocations</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.WarningLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.WarningLevel</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.Workers"><code class="docutils literal notranslate"><span class="pre">CpoParameters.Workers</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.add"><code class="docutils literal notranslate"><span class="pre">CpoParameters.add()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_AllDiffInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_AllDiffInferenceLevel()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_AllMinDistanceInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_AllMinDistanceInferenceLevel()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_AutomaticReplay"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_AutomaticReplay()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_BranchLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_BranchLimit()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_ChoicePointLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_ChoicePointLimit()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_ConflictRefinerBranchLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_ConflictRefinerBranchLimit()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_ConflictRefinerFailLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_ConflictRefinerFailLimit()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_ConflictRefinerIterationLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_ConflictRefinerIterationLimit()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_ConflictRefinerOnVariables"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_ConflictRefinerOnVariables()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_ConflictRefinerTimeLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_ConflictRefinerTimeLimit()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_CountDifferentInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_CountDifferentInferenceLevel()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_CountInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_CountInferenceLevel()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_CumulFunctionInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_CumulFunctionInferenceLevel()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_DefaultInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_DefaultInferenceLevel()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_DistributeInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_DistributeInferenceLevel()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_DynamicProbing"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_DynamicProbing()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_DynamicProbingStrength"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_DynamicProbingStrength()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_ElementInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_ElementInferenceLevel()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_FailLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_FailLimit()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_FailureDirectedSearch"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_FailureDirectedSearch()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_FailureDirectedSearchEmphasis"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_FailureDirectedSearchEmphasis()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_FailureDirectedSearchMaxMemory"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_FailureDirectedSearchMaxMemory()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_IntervalSequenceInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_IntervalSequenceInferenceLevel()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_KPIDisplay"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_KPIDisplay()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_LogPeriod"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_LogPeriod()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_LogVerbosity"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_LogVerbosity()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_ModelAnonymizer"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_ModelAnonymizer()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_MultiPointNumberOfSearchPoints"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_MultiPointNumberOfSearchPoints()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_NoOverlapInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_NoOverlapInferenceLevel()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_OptimalityTolerance"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_OptimalityTolerance()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_PrecedenceInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_PrecedenceInferenceLevel()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_Presolve"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_Presolve()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_PrintModelDetailsInMessages"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_PrintModelDetailsInMessages()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_RandomSeed"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_RandomSeed()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_RelativeOptimalityTolerance"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_RelativeOptimalityTolerance()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_RestartFailLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_RestartFailLimit()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_RestartGrowthFactor"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_RestartGrowthFactor()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_SearchType"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_SearchType()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_SequenceInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_SequenceInferenceLevel()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_SolutionLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_SolutionLimit()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_StateFunctionInferenceLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_StateFunctionInferenceLevel()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_TemporalRelaxation"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_TemporalRelaxation()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_TimeLimit"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_TimeLimit()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_TimeMode"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_TimeMode()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_UseFileLocations"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_UseFileLocations()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_WarningLevel"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_WarningLevel()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_Workers"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_Workers()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.get_default_value"><code class="docutils literal notranslate"><span class="pre">CpoParameters.get_default_value()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.read_ops_file"><code class="docutils literal notranslate"><span class="pre">CpoParameters.read_ops_file()</span></code></a></li> <li><a class="reference internal" href="#docplex.cp.parameters.CpoParameters.reset_to_default"><code class="docutils literal notranslate"><span class="pre">CpoParameters.reset_to_default()</span></code></a></li> </ul> </li> <li><a class="reference internal" href="#docplex.cp.parameters.ParameterDescriptor"><code class="docutils literal notranslate"><span class="pre">ParameterDescriptor</span></code></a></li> </ul> </li> </ul> </div> <div> <h4>Previous topic</h4> <p class="topless"><a href="docplex.cp.function.py.html" title="previous chapter">Module <strong>docplex.cp.function</strong></a></p> </div> <div> <h4>Next topic</h4> <p class="topless"><a href="docplex.cp.solution.py.html" title="next chapter">Module <strong>docplex.cp.solution</strong></a></p> </div> <div id="searchbox" style="display: none" role="search"> <h3 id="searchlabel">Quick search</h3> <div class="searchformwrapper"> <form class="search" action="search.html" method="get"> <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/> <input type="submit" value="Go" /> </form> </div> </div> <script>document.getElementById('searchbox').style.display = "block"</script> </div> </div> <div class="clearer"></div> </div> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="docplex.cp.solution.py.html" title="Module docplex.cp.solution" >next</a> |</li> <li class="right" > <a href="docplex.cp.function.py.html" title="Module docplex.cp.function" >previous</a> |</li> <li class="nav-item nav-item-0"><a href="index.html">DOcplex.CP: Constraint Programming Modeling for Python V2.30 documentation</a> »</li> <li class="nav-item nav-item-1"><a href="refman.html" ><strong>docplex.cp</strong> reference manual</a> »</li> <li class="nav-item nav-item-this"><a href="">Module <strong>docplex.cp.parameters</strong></a></li> </ul> </div> <div class="footer" role="contentinfo"> © Copyright 2022, IBM. </div> </body> </html>