cpsat-js 0.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +165 -0
- package/build/cpsat.cjs +2 -0
- package/build/cpsat.wasm +0 -0
- package/dist/generated/cp_model_pb.d.ts +1625 -0
- package/dist/generated/cp_model_pb.d.ts.map +1 -0
- package/dist/generated/cp_model_pb.js +296 -0
- package/dist/generated/cp_model_pb.js.map +1 -0
- package/dist/generated/sat_parameters_pb.d.ts +2930 -0
- package/dist/generated/sat_parameters_pb.d.ts.map +1 -0
- package/dist/generated/sat_parameters_pb.js +427 -0
- package/dist/generated/sat_parameters_pb.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/model/constraint.d.ts +16 -0
- package/dist/model/constraint.d.ts.map +1 -0
- package/dist/model/constraint.js +20 -0
- package/dist/model/constraint.js.map +1 -0
- package/dist/model/cp-model.d.ts +35 -0
- package/dist/model/cp-model.d.ts.map +1 -0
- package/dist/model/cp-model.js +175 -0
- package/dist/model/cp-model.js.map +1 -0
- package/dist/model/domain.d.ts +13 -0
- package/dist/model/domain.d.ts.map +1 -0
- package/dist/model/domain.js +45 -0
- package/dist/model/domain.js.map +1 -0
- package/dist/model/int-var.d.ts +37 -0
- package/dist/model/int-var.d.ts.map +1 -0
- package/dist/model/int-var.js +87 -0
- package/dist/model/int-var.js.map +1 -0
- package/dist/model/interval-var.d.ts +14 -0
- package/dist/model/interval-var.d.ts.map +1 -0
- package/dist/model/interval-var.js +17 -0
- package/dist/model/interval-var.js.map +1 -0
- package/dist/model/linear-expr.d.ts +43 -0
- package/dist/model/linear-expr.d.ts.map +1 -0
- package/dist/model/linear-expr.js +129 -0
- package/dist/model/linear-expr.js.map +1 -0
- package/dist/solver/cp-solver.d.ts +36 -0
- package/dist/solver/cp-solver.d.ts.map +1 -0
- package/dist/solver/cp-solver.js +92 -0
- package/dist/solver/cp-solver.js.map +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,2930 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file sat_parameters.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_sat_parameters: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* Contains the definitions for all the sat algorithm parameters and their
|
|
9
|
+
* default values.
|
|
10
|
+
*
|
|
11
|
+
* NEXT TAG: 356
|
|
12
|
+
*
|
|
13
|
+
* @generated from message operations_research.sat.SatParameters
|
|
14
|
+
*/
|
|
15
|
+
export type SatParameters = Message<"operations_research.sat.SatParameters"> & {
|
|
16
|
+
/**
|
|
17
|
+
* In some context, like in a portfolio of search, it makes sense to name a
|
|
18
|
+
* given parameters set for logging purpose.
|
|
19
|
+
*
|
|
20
|
+
* @generated from field: optional string name = 171 [default = ""];
|
|
21
|
+
*/
|
|
22
|
+
name: string;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: optional operations_research.sat.SatParameters.VariableOrder preferred_variable_order = 1 [default = IN_ORDER];
|
|
25
|
+
*/
|
|
26
|
+
preferredVariableOrder: SatParameters_VariableOrder;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: optional operations_research.sat.SatParameters.Polarity initial_polarity = 2 [default = POLARITY_FALSE];
|
|
29
|
+
*/
|
|
30
|
+
initialPolarity: SatParameters_Polarity;
|
|
31
|
+
/**
|
|
32
|
+
* If this is true, then the polarity of a variable will be the last value it
|
|
33
|
+
* was assigned to, or its default polarity if it was never assigned since the
|
|
34
|
+
* call to ResetDecisionHeuristic().
|
|
35
|
+
*
|
|
36
|
+
* Actually, we use a newer version where we follow the last value in the
|
|
37
|
+
* longest non-conflicting partial assignment in the current phase.
|
|
38
|
+
*
|
|
39
|
+
* This is called 'literal phase saving'. For details see 'A Lightweight
|
|
40
|
+
* Component Caching Scheme for Satisfiability Solvers' K. Pipatsrisawat and
|
|
41
|
+
* A.Darwiche, In 10th International Conference on Theory and Applications of
|
|
42
|
+
* Satisfiability Testing, 2007.
|
|
43
|
+
*
|
|
44
|
+
* @generated from field: optional bool use_phase_saving = 44 [default = true];
|
|
45
|
+
*/
|
|
46
|
+
usePhaseSaving: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* If non-zero, then we change the polarity heuristic after that many number
|
|
49
|
+
* of conflicts in an arithmetically increasing fashion. So x the first time,
|
|
50
|
+
* 2 * x the second time, etc...
|
|
51
|
+
*
|
|
52
|
+
* @generated from field: optional int32 polarity_rephase_increment = 168 [default = 1000];
|
|
53
|
+
*/
|
|
54
|
+
polarityRephaseIncrement: number;
|
|
55
|
+
/**
|
|
56
|
+
* If true and we have first solution LS workers, tries in some phase to
|
|
57
|
+
* follow a LS solutions that violates has litle constraints as possible.
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: optional bool polarity_exploit_ls_hints = 309 [default = false];
|
|
60
|
+
*/
|
|
61
|
+
polarityExploitLsHints: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* The proportion of polarity chosen at random. Note that this take
|
|
64
|
+
* precedence over the phase saving heuristic. This is different from
|
|
65
|
+
* initial_polarity:POLARITY_RANDOM because it will select a new random
|
|
66
|
+
* polarity each time the variable is branched upon instead of selecting one
|
|
67
|
+
* initially and then always taking this choice.
|
|
68
|
+
*
|
|
69
|
+
* @generated from field: optional double random_polarity_ratio = 45 [default = 0];
|
|
70
|
+
*/
|
|
71
|
+
randomPolarityRatio: number;
|
|
72
|
+
/**
|
|
73
|
+
* A number between 0 and 1 that indicates the proportion of branching
|
|
74
|
+
* variables that are selected randomly instead of choosing the first variable
|
|
75
|
+
* from the given variable_ordering strategy.
|
|
76
|
+
*
|
|
77
|
+
* @generated from field: optional double random_branches_ratio = 32 [default = 0];
|
|
78
|
+
*/
|
|
79
|
+
randomBranchesRatio: number;
|
|
80
|
+
/**
|
|
81
|
+
* Whether we use the ERWA (Exponential Recency Weighted Average) heuristic as
|
|
82
|
+
* described in "Learning Rate Based Branching Heuristic for SAT solvers",
|
|
83
|
+
* J.H.Liang, V. Ganesh, P. Poupart, K.Czarnecki, SAT 2016.
|
|
84
|
+
*
|
|
85
|
+
* @generated from field: optional bool use_erwa_heuristic = 75 [default = false];
|
|
86
|
+
*/
|
|
87
|
+
useErwaHeuristic: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* The initial value of the variables activity. A non-zero value only make
|
|
90
|
+
* sense when use_erwa_heuristic is true. Experiments with a value of 1e-2
|
|
91
|
+
* together with the ERWA heuristic showed slighthly better result than simply
|
|
92
|
+
* using zero. The idea is that when the "learning rate" of a variable becomes
|
|
93
|
+
* lower than this value, then we prefer to branch on never explored before
|
|
94
|
+
* variables. This is not in the ERWA paper.
|
|
95
|
+
*
|
|
96
|
+
* @generated from field: optional double initial_variables_activity = 76 [default = 0];
|
|
97
|
+
*/
|
|
98
|
+
initialVariablesActivity: number;
|
|
99
|
+
/**
|
|
100
|
+
* When this is true, then the variables that appear in any of the reason of
|
|
101
|
+
* the variables in a conflict have their activity bumped. This is addition to
|
|
102
|
+
* the variables in the conflict, and the one that were used during conflict
|
|
103
|
+
* resolution.
|
|
104
|
+
*
|
|
105
|
+
* @generated from field: optional bool also_bump_variables_in_conflict_reasons = 77 [default = false];
|
|
106
|
+
*/
|
|
107
|
+
alsoBumpVariablesInConflictReasons: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* @generated from field: optional operations_research.sat.SatParameters.ConflictMinimizationAlgorithm minimization_algorithm = 4 [default = RECURSIVE];
|
|
110
|
+
*/
|
|
111
|
+
minimizationAlgorithm: SatParameters_ConflictMinimizationAlgorithm;
|
|
112
|
+
/**
|
|
113
|
+
* @generated from field: optional operations_research.sat.SatParameters.BinaryMinizationAlgorithm binary_minimization_algorithm = 34 [default = BINARY_MINIMIZATION_FROM_UIP_AND_DECISIONS];
|
|
114
|
+
*/
|
|
115
|
+
binaryMinimizationAlgorithm: SatParameters_BinaryMinizationAlgorithm;
|
|
116
|
+
/**
|
|
117
|
+
* At a really low cost, during the 1-UIP conflict computation, it is easy to
|
|
118
|
+
* detect if some of the involved reasons are subsumed by the current
|
|
119
|
+
* conflict. When this is true, such clauses are detached and later removed
|
|
120
|
+
* from the problem.
|
|
121
|
+
*
|
|
122
|
+
* @generated from field: optional bool subsumption_during_conflict_analysis = 56 [default = true];
|
|
123
|
+
*/
|
|
124
|
+
subsumptionDuringConflictAnalysis: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* It is possible that "intermediate" clauses during conflict resolution
|
|
127
|
+
* subsumes some of the clauses that propagated. This is quite cheap to detect
|
|
128
|
+
* and result in more subsumption/strengthening of clauses.
|
|
129
|
+
*
|
|
130
|
+
* @generated from field: optional bool extra_subsumption_during_conflict_analysis = 351 [default = true];
|
|
131
|
+
*/
|
|
132
|
+
extraSubsumptionDuringConflictAnalysis: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Try even more subsumption options during conflict analysis.
|
|
135
|
+
*
|
|
136
|
+
* @generated from field: optional bool decision_subsumption_during_conflict_analysis = 353 [default = true];
|
|
137
|
+
*/
|
|
138
|
+
decisionSubsumptionDuringConflictAnalysis: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* If >=0, each time we have a conflict, we try to subsume the last n learned
|
|
141
|
+
* clause with it.
|
|
142
|
+
*
|
|
143
|
+
* @generated from field: optional int32 eagerly_subsume_last_n_conflicts = 343 [default = 4];
|
|
144
|
+
*/
|
|
145
|
+
eagerlySubsumeLastNConflicts: number;
|
|
146
|
+
/**
|
|
147
|
+
* If we remove clause that we now are "implied" by others. Note that this
|
|
148
|
+
* might not always be good as we might loose some propagation power.
|
|
149
|
+
*
|
|
150
|
+
* @generated from field: optional bool subsume_during_vivification = 355 [default = true];
|
|
151
|
+
*/
|
|
152
|
+
subsumeDuringVivification: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* If true, try to backtrack as little as possible on conflict and re-imply
|
|
155
|
+
* the clauses later.
|
|
156
|
+
* This means we discard less propagation than traditional backjumping, but
|
|
157
|
+
* requites additional bookkeeping to handle reimplication.
|
|
158
|
+
* See: https://doi.org/10.1007/978-3-319-94144-8_7
|
|
159
|
+
*
|
|
160
|
+
* @generated from field: optional bool use_chronological_backtracking = 330 [default = false];
|
|
161
|
+
*/
|
|
162
|
+
useChronologicalBacktracking: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* If chronological backtracking is enabled, this is the maximum number of
|
|
165
|
+
* levels we will backjump over, otherwise we will backtrack.
|
|
166
|
+
*
|
|
167
|
+
* @generated from field: optional int32 max_backjump_levels = 331 [default = 50];
|
|
168
|
+
*/
|
|
169
|
+
maxBackjumpLevels: number;
|
|
170
|
+
/**
|
|
171
|
+
* If chronological backtracking is enabled, this is the minimum number of
|
|
172
|
+
* conflicts before we will consider backjumping.
|
|
173
|
+
*
|
|
174
|
+
* @generated from field: optional int32 chronological_backtrack_min_conflicts = 332 [default = 1000];
|
|
175
|
+
*/
|
|
176
|
+
chronologicalBacktrackMinConflicts: number;
|
|
177
|
+
/**
|
|
178
|
+
* Trigger a cleanup when this number of "deletable" clauses is learned.
|
|
179
|
+
*
|
|
180
|
+
* @generated from field: optional int32 clause_cleanup_period = 11 [default = 10000];
|
|
181
|
+
*/
|
|
182
|
+
clauseCleanupPeriod: number;
|
|
183
|
+
/**
|
|
184
|
+
* Increase clause_cleanup_period by this amount after each cleanup.
|
|
185
|
+
*
|
|
186
|
+
* @generated from field: optional int32 clause_cleanup_period_increment = 337 [default = 0];
|
|
187
|
+
*/
|
|
188
|
+
clauseCleanupPeriodIncrement: number;
|
|
189
|
+
/**
|
|
190
|
+
* During a cleanup, we will always keep that number of "deletable" clauses.
|
|
191
|
+
* Note that this doesn't include the "protected" clauses.
|
|
192
|
+
*
|
|
193
|
+
* @generated from field: optional int32 clause_cleanup_target = 13 [default = 0];
|
|
194
|
+
*/
|
|
195
|
+
clauseCleanupTarget: number;
|
|
196
|
+
/**
|
|
197
|
+
* During a cleanup, if clause_cleanup_target is 0, we will delete the
|
|
198
|
+
* clause_cleanup_ratio of "deletable" clauses instead of aiming for a fixed
|
|
199
|
+
* target of clauses to keep.
|
|
200
|
+
*
|
|
201
|
+
* @generated from field: optional double clause_cleanup_ratio = 190 [default = 0.5];
|
|
202
|
+
*/
|
|
203
|
+
clauseCleanupRatio: number;
|
|
204
|
+
/**
|
|
205
|
+
* All the clauses with a LBD (literal blocks distance) lower or equal to this
|
|
206
|
+
* parameters will always be kept.
|
|
207
|
+
*
|
|
208
|
+
* Note that the LBD of a clause that just propagated is 1 + number of
|
|
209
|
+
* different decision levels of its literals. So that the "classic" LBD of a
|
|
210
|
+
* learned conflict is the same as its LBD when we backjump and then propagate
|
|
211
|
+
* it.
|
|
212
|
+
*
|
|
213
|
+
* @generated from field: optional int32 clause_cleanup_lbd_bound = 59 [default = 5];
|
|
214
|
+
*/
|
|
215
|
+
clauseCleanupLbdBound: number;
|
|
216
|
+
/**
|
|
217
|
+
* All the clause with a LBD lower or equal to this will be kept except if
|
|
218
|
+
* its activity hasn't been bumped in the last 32 cleanup phase. Note that
|
|
219
|
+
* this has no effect if it is <= clause_cleanup_lbd_bound.
|
|
220
|
+
*
|
|
221
|
+
* @generated from field: optional int32 clause_cleanup_lbd_tier1 = 349 [default = 0];
|
|
222
|
+
*/
|
|
223
|
+
clauseCleanupLbdTier1: number;
|
|
224
|
+
/**
|
|
225
|
+
* All the clause with a LBD lower or equal to this will be kept except if its
|
|
226
|
+
* activity hasn't been bumped since the previous cleanup phase. Note that
|
|
227
|
+
* this has no effect if it is <= clause_cleanup_lbd_bound or <=
|
|
228
|
+
* clause_cleanup_lbd_tier1.
|
|
229
|
+
*
|
|
230
|
+
* @generated from field: optional int32 clause_cleanup_lbd_tier2 = 350 [default = 0];
|
|
231
|
+
*/
|
|
232
|
+
clauseCleanupLbdTier2: number;
|
|
233
|
+
/**
|
|
234
|
+
* @generated from field: optional operations_research.sat.SatParameters.ClauseOrdering clause_cleanup_ordering = 60 [default = CLAUSE_ACTIVITY];
|
|
235
|
+
*/
|
|
236
|
+
clauseCleanupOrdering: SatParameters_ClauseOrdering;
|
|
237
|
+
/**
|
|
238
|
+
* Same as for the clauses, but for the learned pseudo-Boolean constraints.
|
|
239
|
+
*
|
|
240
|
+
* @generated from field: optional int32 pb_cleanup_increment = 46 [default = 200];
|
|
241
|
+
*/
|
|
242
|
+
pbCleanupIncrement: number;
|
|
243
|
+
/**
|
|
244
|
+
* @generated from field: optional double pb_cleanup_ratio = 47 [default = 0.5];
|
|
245
|
+
*/
|
|
246
|
+
pbCleanupRatio: number;
|
|
247
|
+
/**
|
|
248
|
+
* Each time a conflict is found, the activities of some variables are
|
|
249
|
+
* increased by one. Then, the activity of all variables are multiplied by
|
|
250
|
+
* variable_activity_decay.
|
|
251
|
+
*
|
|
252
|
+
* To implement this efficiently, the activity of all the variables is not
|
|
253
|
+
* decayed at each conflict. Instead, the activity increment is multiplied by
|
|
254
|
+
* 1 / decay. When an activity reach max_variable_activity_value, all the
|
|
255
|
+
* activity are multiplied by 1 / max_variable_activity_value.
|
|
256
|
+
*
|
|
257
|
+
* @generated from field: optional double variable_activity_decay = 15 [default = 0.8];
|
|
258
|
+
*/
|
|
259
|
+
variableActivityDecay: number;
|
|
260
|
+
/**
|
|
261
|
+
* @generated from field: optional double max_variable_activity_value = 16 [default = 1e+100];
|
|
262
|
+
*/
|
|
263
|
+
maxVariableActivityValue: number;
|
|
264
|
+
/**
|
|
265
|
+
* The activity starts at 0.8 and increment by 0.01 every 5000 conflicts until
|
|
266
|
+
* 0.95. This "hack" seems to work well and comes from:
|
|
267
|
+
*
|
|
268
|
+
* Glucose 2.3 in the SAT 2013 Competition - SAT Competition 2013
|
|
269
|
+
* http://edacc4.informatik.uni-ulm.de/SC13/solver-description-download/136
|
|
270
|
+
*
|
|
271
|
+
* @generated from field: optional double glucose_max_decay = 22 [default = 0.95];
|
|
272
|
+
*/
|
|
273
|
+
glucoseMaxDecay: number;
|
|
274
|
+
/**
|
|
275
|
+
* @generated from field: optional double glucose_decay_increment = 23 [default = 0.01];
|
|
276
|
+
*/
|
|
277
|
+
glucoseDecayIncrement: number;
|
|
278
|
+
/**
|
|
279
|
+
* @generated from field: optional int32 glucose_decay_increment_period = 24 [default = 5000];
|
|
280
|
+
*/
|
|
281
|
+
glucoseDecayIncrementPeriod: number;
|
|
282
|
+
/**
|
|
283
|
+
* Clause activity parameters (same effect as the one on the variables).
|
|
284
|
+
*
|
|
285
|
+
* @generated from field: optional double clause_activity_decay = 17 [default = 0.999];
|
|
286
|
+
*/
|
|
287
|
+
clauseActivityDecay: number;
|
|
288
|
+
/**
|
|
289
|
+
* @generated from field: optional double max_clause_activity_value = 18 [default = 1e+20];
|
|
290
|
+
*/
|
|
291
|
+
maxClauseActivityValue: number;
|
|
292
|
+
/**
|
|
293
|
+
* The restart strategies will change each time the strategy_counter is
|
|
294
|
+
* increased. The current strategy will simply be the one at index
|
|
295
|
+
* strategy_counter modulo the number of strategy. Note that if this list
|
|
296
|
+
* includes a NO_RESTART, nothing will change when it is reached because the
|
|
297
|
+
* strategy_counter will only increment after a restart.
|
|
298
|
+
*
|
|
299
|
+
* The idea of switching of search strategy tailored for SAT/UNSAT comes from
|
|
300
|
+
* Chanseok Oh with his COMiniSatPS solver, see http://cs.nyu.edu/~chanseok/.
|
|
301
|
+
* But more generally, it seems REALLY beneficial to try different strategy.
|
|
302
|
+
*
|
|
303
|
+
* @generated from field: repeated operations_research.sat.SatParameters.RestartAlgorithm restart_algorithms = 61;
|
|
304
|
+
*/
|
|
305
|
+
restartAlgorithms: SatParameters_RestartAlgorithm[];
|
|
306
|
+
/**
|
|
307
|
+
* @generated from field: optional string default_restart_algorithms = 70 [default = "LUBY_RESTART,LBD_MOVING_AVERAGE_RESTART,DL_MOVING_AVERAGE_RESTART"];
|
|
308
|
+
*/
|
|
309
|
+
defaultRestartAlgorithms: string;
|
|
310
|
+
/**
|
|
311
|
+
* Restart period for the FIXED_RESTART strategy. This is also the multiplier
|
|
312
|
+
* used by the LUBY_RESTART strategy.
|
|
313
|
+
*
|
|
314
|
+
* @generated from field: optional int32 restart_period = 30 [default = 50];
|
|
315
|
+
*/
|
|
316
|
+
restartPeriod: number;
|
|
317
|
+
/**
|
|
318
|
+
* Size of the window for the moving average restarts.
|
|
319
|
+
*
|
|
320
|
+
* @generated from field: optional int32 restart_running_window_size = 62 [default = 50];
|
|
321
|
+
*/
|
|
322
|
+
restartRunningWindowSize: number;
|
|
323
|
+
/**
|
|
324
|
+
* In the moving average restart algorithms, a restart is triggered if the
|
|
325
|
+
* window average times this ratio is greater that the global average.
|
|
326
|
+
*
|
|
327
|
+
* @generated from field: optional double restart_dl_average_ratio = 63 [default = 1];
|
|
328
|
+
*/
|
|
329
|
+
restartDlAverageRatio: number;
|
|
330
|
+
/**
|
|
331
|
+
* @generated from field: optional double restart_lbd_average_ratio = 71 [default = 1];
|
|
332
|
+
*/
|
|
333
|
+
restartLbdAverageRatio: number;
|
|
334
|
+
/**
|
|
335
|
+
* Block a moving restart algorithm if the trail size of the current conflict
|
|
336
|
+
* is greater than the multiplier times the moving average of the trail size
|
|
337
|
+
* at the previous conflicts.
|
|
338
|
+
*
|
|
339
|
+
* @generated from field: optional bool use_blocking_restart = 64 [default = false];
|
|
340
|
+
*/
|
|
341
|
+
useBlockingRestart: boolean;
|
|
342
|
+
/**
|
|
343
|
+
* @generated from field: optional int32 blocking_restart_window_size = 65 [default = 5000];
|
|
344
|
+
*/
|
|
345
|
+
blockingRestartWindowSize: number;
|
|
346
|
+
/**
|
|
347
|
+
* @generated from field: optional double blocking_restart_multiplier = 66 [default = 1.4];
|
|
348
|
+
*/
|
|
349
|
+
blockingRestartMultiplier: number;
|
|
350
|
+
/**
|
|
351
|
+
* After each restart, if the number of conflict since the last strategy
|
|
352
|
+
* change is greater that this, then we increment a "strategy_counter" that
|
|
353
|
+
* can be use to change the search strategy used by the following restarts.
|
|
354
|
+
*
|
|
355
|
+
* @generated from field: optional int32 num_conflicts_before_strategy_changes = 68 [default = 0];
|
|
356
|
+
*/
|
|
357
|
+
numConflictsBeforeStrategyChanges: number;
|
|
358
|
+
/**
|
|
359
|
+
* The parameter num_conflicts_before_strategy_changes is increased by that
|
|
360
|
+
* much after each strategy change.
|
|
361
|
+
*
|
|
362
|
+
* @generated from field: optional double strategy_change_increase_ratio = 69 [default = 0];
|
|
363
|
+
*/
|
|
364
|
+
strategyChangeIncreaseRatio: number;
|
|
365
|
+
/**
|
|
366
|
+
* Maximum time allowed in seconds to solve a problem.
|
|
367
|
+
* The counter will starts at the beginning of the Solve() call.
|
|
368
|
+
*
|
|
369
|
+
* @generated from field: optional double max_time_in_seconds = 36 [default = inf];
|
|
370
|
+
*/
|
|
371
|
+
maxTimeInSeconds: number;
|
|
372
|
+
/**
|
|
373
|
+
* Maximum time allowed in deterministic time to solve a problem.
|
|
374
|
+
* The deterministic time should be correlated with the real time used by the
|
|
375
|
+
* solver, the time unit being as close as possible to a second.
|
|
376
|
+
*
|
|
377
|
+
* @generated from field: optional double max_deterministic_time = 67 [default = inf];
|
|
378
|
+
*/
|
|
379
|
+
maxDeterministicTime: number;
|
|
380
|
+
/**
|
|
381
|
+
* Stops after that number of batches has been scheduled. This only make sense
|
|
382
|
+
* when interleave_search is true.
|
|
383
|
+
*
|
|
384
|
+
* @generated from field: optional int32 max_num_deterministic_batches = 291 [default = 0];
|
|
385
|
+
*/
|
|
386
|
+
maxNumDeterministicBatches: number;
|
|
387
|
+
/**
|
|
388
|
+
* Maximum number of conflicts allowed to solve a problem.
|
|
389
|
+
*
|
|
390
|
+
* TODO(user): Maybe change the way the conflict limit is enforced?
|
|
391
|
+
* currently it is enforced on each independent internal SAT solve, rather
|
|
392
|
+
* than on the overall number of conflicts across all solves. So in the
|
|
393
|
+
* context of an optimization problem, this is not really usable directly by a
|
|
394
|
+
* client.
|
|
395
|
+
*
|
|
396
|
+
* kint64max
|
|
397
|
+
*
|
|
398
|
+
* @generated from field: optional int64 max_number_of_conflicts = 37 [default = 9223372036854775807];
|
|
399
|
+
*/
|
|
400
|
+
maxNumberOfConflicts: bigint;
|
|
401
|
+
/**
|
|
402
|
+
* Maximum memory allowed for the whole thread containing the solver. The
|
|
403
|
+
* solver will abort as soon as it detects that this limit is crossed. As a
|
|
404
|
+
* result, this limit is approximative, but usually the solver will not go too
|
|
405
|
+
* much over.
|
|
406
|
+
*
|
|
407
|
+
* TODO(user): This is only used by the pure SAT solver, generalize to CP-SAT.
|
|
408
|
+
*
|
|
409
|
+
* @generated from field: optional int64 max_memory_in_mb = 40 [default = 10000];
|
|
410
|
+
*/
|
|
411
|
+
maxMemoryInMb: bigint;
|
|
412
|
+
/**
|
|
413
|
+
* Stop the search when the gap between the best feasible objective (O) and
|
|
414
|
+
* our best objective bound (B) is smaller than a limit.
|
|
415
|
+
* The exact definition is:
|
|
416
|
+
* - Absolute: abs(O - B)
|
|
417
|
+
* - Relative: abs(O - B) / max(1, abs(O)).
|
|
418
|
+
*
|
|
419
|
+
* Important: The relative gap depends on the objective offset! If you
|
|
420
|
+
* artificially shift the objective, you will get widely different value of
|
|
421
|
+
* the relative gap.
|
|
422
|
+
*
|
|
423
|
+
* Note that if the gap is reached, the search status will be OPTIMAL. But
|
|
424
|
+
* one can check the best objective bound to see the actual gap.
|
|
425
|
+
*
|
|
426
|
+
* If the objective is integer, then any absolute gap < 1 will lead to a true
|
|
427
|
+
* optimal. If the objective is floating point, a gap of zero make little
|
|
428
|
+
* sense so is is why we use a non-zero default value. At the end of the
|
|
429
|
+
* search, we will display a warning if OPTIMAL is reported yet the gap is
|
|
430
|
+
* greater than this absolute gap.
|
|
431
|
+
*
|
|
432
|
+
* @generated from field: optional double absolute_gap_limit = 159 [default = 0.0001];
|
|
433
|
+
*/
|
|
434
|
+
absoluteGapLimit: number;
|
|
435
|
+
/**
|
|
436
|
+
* @generated from field: optional double relative_gap_limit = 160 [default = 0];
|
|
437
|
+
*/
|
|
438
|
+
relativeGapLimit: number;
|
|
439
|
+
/**
|
|
440
|
+
* At the beginning of each solve, the random number generator used in some
|
|
441
|
+
* part of the solver is reinitialized to this seed. If you change the random
|
|
442
|
+
* seed, the solver may make different choices during the solving process.
|
|
443
|
+
*
|
|
444
|
+
* For some problems, the running time may vary a lot depending on small
|
|
445
|
+
* change in the solving algorithm. Running the solver with different seeds
|
|
446
|
+
* enables to have more robust benchmarks when evaluating new features.
|
|
447
|
+
*
|
|
448
|
+
* @generated from field: optional int32 random_seed = 31 [default = 1];
|
|
449
|
+
*/
|
|
450
|
+
randomSeed: number;
|
|
451
|
+
/**
|
|
452
|
+
* This is mainly here to test the solver variability. Note that in tests, if
|
|
453
|
+
* not explicitly set to false, all 3 options will be set to true so that
|
|
454
|
+
* clients do not rely on the solver returning a specific solution if they are
|
|
455
|
+
* many equivalent optimal solutions.
|
|
456
|
+
*
|
|
457
|
+
* @generated from field: optional bool permute_variable_randomly = 178 [default = false];
|
|
458
|
+
*/
|
|
459
|
+
permuteVariableRandomly: boolean;
|
|
460
|
+
/**
|
|
461
|
+
* @generated from field: optional bool permute_presolve_constraint_order = 179 [default = false];
|
|
462
|
+
*/
|
|
463
|
+
permutePresolveConstraintOrder: boolean;
|
|
464
|
+
/**
|
|
465
|
+
* @generated from field: optional bool use_absl_random = 180 [default = false];
|
|
466
|
+
*/
|
|
467
|
+
useAbslRandom: boolean;
|
|
468
|
+
/**
|
|
469
|
+
* Whether the solver should log the search progress. This is the maing
|
|
470
|
+
* logging parameter and if this is false, none of the logging (callbacks,
|
|
471
|
+
* log_to_stdout, log_to_response, ...) will do anything.
|
|
472
|
+
*
|
|
473
|
+
* @generated from field: optional bool log_search_progress = 41 [default = false];
|
|
474
|
+
*/
|
|
475
|
+
logSearchProgress: boolean;
|
|
476
|
+
/**
|
|
477
|
+
* Whether the solver should display per sub-solver search statistics.
|
|
478
|
+
* This is only useful is log_search_progress is set to true, and if the
|
|
479
|
+
* number of search workers is > 1. Note that in all case we display a bit
|
|
480
|
+
* of stats with one line per subsolver.
|
|
481
|
+
*
|
|
482
|
+
* @generated from field: optional bool log_subsolver_statistics = 189 [default = false];
|
|
483
|
+
*/
|
|
484
|
+
logSubsolverStatistics: boolean;
|
|
485
|
+
/**
|
|
486
|
+
* Add a prefix to all logs.
|
|
487
|
+
*
|
|
488
|
+
* @generated from field: optional string log_prefix = 185 [default = ""];
|
|
489
|
+
*/
|
|
490
|
+
logPrefix: string;
|
|
491
|
+
/**
|
|
492
|
+
* Log to stdout.
|
|
493
|
+
*
|
|
494
|
+
* @generated from field: optional bool log_to_stdout = 186 [default = true];
|
|
495
|
+
*/
|
|
496
|
+
logToStdout: boolean;
|
|
497
|
+
/**
|
|
498
|
+
* Log to response proto.
|
|
499
|
+
*
|
|
500
|
+
* @generated from field: optional bool log_to_response = 187 [default = false];
|
|
501
|
+
*/
|
|
502
|
+
logToResponse: boolean;
|
|
503
|
+
/**
|
|
504
|
+
* Experimental.
|
|
505
|
+
*
|
|
506
|
+
* This is an old experiment, it might cause crashes in multi-thread and you
|
|
507
|
+
* should double check the solver result. It can still be used if you only
|
|
508
|
+
* care about feasible solutions (these are checked) and it gives good result
|
|
509
|
+
* on your problem. We might revive it at some point.
|
|
510
|
+
*
|
|
511
|
+
* Whether to use pseudo-Boolean resolution to analyze a conflict. Note that
|
|
512
|
+
* this option only make sense if your problem is modelized using
|
|
513
|
+
* pseudo-Boolean constraints. If you only have clauses, this shouldn't change
|
|
514
|
+
* anything (except slow the solver down).
|
|
515
|
+
*
|
|
516
|
+
* @generated from field: optional bool use_pb_resolution = 43 [default = false];
|
|
517
|
+
*/
|
|
518
|
+
usePbResolution: boolean;
|
|
519
|
+
/**
|
|
520
|
+
* A different algorithm during PB resolution. It minimizes the number of
|
|
521
|
+
* calls to ReduceCoefficients() which can be time consuming. However, the
|
|
522
|
+
* search space will be different and if the coefficients are large, this may
|
|
523
|
+
* lead to integer overflows that could otherwise be prevented.
|
|
524
|
+
*
|
|
525
|
+
* @generated from field: optional bool minimize_reduction_during_pb_resolution = 48 [default = false];
|
|
526
|
+
*/
|
|
527
|
+
minimizeReductionDuringPbResolution: boolean;
|
|
528
|
+
/**
|
|
529
|
+
* Whether or not the assumption levels are taken into account during the LBD
|
|
530
|
+
* computation. According to the reference below, not counting them improves
|
|
531
|
+
* the solver in some situation. Note that this only impact solves under
|
|
532
|
+
* assumptions.
|
|
533
|
+
*
|
|
534
|
+
* Gilles Audemard, Jean-Marie Lagniez, Laurent Simon, "Improving Glucose for
|
|
535
|
+
* Incremental SAT Solving with Assumptions: Application to MUS Extraction"
|
|
536
|
+
* Theory and Applications of Satisfiability Testing - SAT 2013, Lecture Notes
|
|
537
|
+
* in Computer Science Volume 7962, 2013, pp 309-317.
|
|
538
|
+
*
|
|
539
|
+
* @generated from field: optional bool count_assumption_levels_in_lbd = 49 [default = true];
|
|
540
|
+
*/
|
|
541
|
+
countAssumptionLevelsInLbd: boolean;
|
|
542
|
+
/**
|
|
543
|
+
* During presolve, only try to perform the bounded variable elimination (BVE)
|
|
544
|
+
* of a variable x if the number of occurrences of x times the number of
|
|
545
|
+
* occurrences of not(x) is not greater than this parameter.
|
|
546
|
+
*
|
|
547
|
+
* @generated from field: optional int32 presolve_bve_threshold = 54 [default = 500];
|
|
548
|
+
*/
|
|
549
|
+
presolveBveThreshold: number;
|
|
550
|
+
/**
|
|
551
|
+
* Internal parameter. During BVE, if we eliminate a variable x, by default we
|
|
552
|
+
* will push all clauses containing x and all clauses containing not(x) to the
|
|
553
|
+
* postsolve. However, it is possible to write the postsolve code so that only
|
|
554
|
+
* one such set is needed. The idea is that, if we push the set containing a
|
|
555
|
+
* literal l, is to set l to false except if it is needed to satisfy one of
|
|
556
|
+
* the clause in the set. This is always beneficial, but for historical
|
|
557
|
+
* reason, not all our postsolve algorithm support this.
|
|
558
|
+
*
|
|
559
|
+
* @generated from field: optional bool filter_sat_postsolve_clauses = 324 [default = false];
|
|
560
|
+
*/
|
|
561
|
+
filterSatPostsolveClauses: boolean;
|
|
562
|
+
/**
|
|
563
|
+
* During presolve, we apply BVE only if this weight times the number of
|
|
564
|
+
* clauses plus the number of clause literals is not increased.
|
|
565
|
+
*
|
|
566
|
+
* @generated from field: optional int32 presolve_bve_clause_weight = 55 [default = 3];
|
|
567
|
+
*/
|
|
568
|
+
presolveBveClauseWeight: number;
|
|
569
|
+
/**
|
|
570
|
+
* The maximum "deterministic" time limit to spend in probing. A value of
|
|
571
|
+
* zero will disable the probing.
|
|
572
|
+
*
|
|
573
|
+
* TODO(user): Clean up. The first one is used in CP-SAT, the other in pure
|
|
574
|
+
* SAT presolve.
|
|
575
|
+
*
|
|
576
|
+
* @generated from field: optional double probing_deterministic_time_limit = 226 [default = 1];
|
|
577
|
+
*/
|
|
578
|
+
probingDeterministicTimeLimit: number;
|
|
579
|
+
/**
|
|
580
|
+
* @generated from field: optional double presolve_probing_deterministic_time_limit = 57 [default = 30];
|
|
581
|
+
*/
|
|
582
|
+
presolveProbingDeterministicTimeLimit: number;
|
|
583
|
+
/**
|
|
584
|
+
* Whether we use an heuristic to detect some basic case of blocked clause
|
|
585
|
+
* in the SAT presolve.
|
|
586
|
+
*
|
|
587
|
+
* @generated from field: optional bool presolve_blocked_clause = 88 [default = true];
|
|
588
|
+
*/
|
|
589
|
+
presolveBlockedClause: boolean;
|
|
590
|
+
/**
|
|
591
|
+
* Whether or not we use Bounded Variable Addition (BVA) in the presolve.
|
|
592
|
+
*
|
|
593
|
+
* @generated from field: optional bool presolve_use_bva = 72 [default = true];
|
|
594
|
+
*/
|
|
595
|
+
presolveUseBva: boolean;
|
|
596
|
+
/**
|
|
597
|
+
* Apply Bounded Variable Addition (BVA) if the number of clauses is reduced
|
|
598
|
+
* by stricly more than this threshold. The algorithm described in the paper
|
|
599
|
+
* uses 0, but quick experiments showed that 1 is a good value. It may not be
|
|
600
|
+
* worth it to add a new variable just to remove one clause.
|
|
601
|
+
*
|
|
602
|
+
* @generated from field: optional int32 presolve_bva_threshold = 73 [default = 1];
|
|
603
|
+
*/
|
|
604
|
+
presolveBvaThreshold: number;
|
|
605
|
+
/**
|
|
606
|
+
* In case of large reduction in a presolve iteration, we perform multiple
|
|
607
|
+
* presolve iterations. This parameter controls the maximum number of such
|
|
608
|
+
* presolve iterations.
|
|
609
|
+
*
|
|
610
|
+
* @generated from field: optional int32 max_presolve_iterations = 138 [default = 3];
|
|
611
|
+
*/
|
|
612
|
+
maxPresolveIterations: number;
|
|
613
|
+
/**
|
|
614
|
+
* Whether we presolve the cp_model before solving it.
|
|
615
|
+
*
|
|
616
|
+
* @generated from field: optional bool cp_model_presolve = 86 [default = true];
|
|
617
|
+
*/
|
|
618
|
+
cpModelPresolve: boolean;
|
|
619
|
+
/**
|
|
620
|
+
* How much effort do we spend on probing. 0 disables it completely.
|
|
621
|
+
*
|
|
622
|
+
* @generated from field: optional int32 cp_model_probing_level = 110 [default = 2];
|
|
623
|
+
*/
|
|
624
|
+
cpModelProbingLevel: number;
|
|
625
|
+
/**
|
|
626
|
+
* Whether we also use the sat presolve when cp_model_presolve is true.
|
|
627
|
+
*
|
|
628
|
+
* @generated from field: optional bool cp_model_use_sat_presolve = 93 [default = true];
|
|
629
|
+
*/
|
|
630
|
+
cpModelUseSatPresolve: boolean;
|
|
631
|
+
/**
|
|
632
|
+
* If we try to load at most ones and exactly ones constraints when running
|
|
633
|
+
* the pure SAT presolve. Or if we just ignore them.
|
|
634
|
+
*
|
|
635
|
+
* If one detects at_most_one via merge_at_most_one_work_limit or exactly one
|
|
636
|
+
* with find_clauses_that_are_exactly_one, it might be good to also set this
|
|
637
|
+
* to true.
|
|
638
|
+
*
|
|
639
|
+
* @generated from field: optional bool load_at_most_ones_in_sat_presolve = 335 [default = false];
|
|
640
|
+
*/
|
|
641
|
+
loadAtMostOnesInSatPresolve: boolean;
|
|
642
|
+
/**
|
|
643
|
+
* If cp_model_presolve is true and there is a large proportion of fixed
|
|
644
|
+
* variable after the first model copy, remap all the model to a dense set of
|
|
645
|
+
* variable before the full presolve even starts. This should help for LNS on
|
|
646
|
+
* large models.
|
|
647
|
+
*
|
|
648
|
+
* @generated from field: optional bool remove_fixed_variables_early = 310 [default = true];
|
|
649
|
+
*/
|
|
650
|
+
removeFixedVariablesEarly: boolean;
|
|
651
|
+
/**
|
|
652
|
+
* If true, we detect variable that are unique to a table constraint and only
|
|
653
|
+
* there to encode a cost on each tuple. This is usually the case when a WCSP
|
|
654
|
+
* (weighted constraint program) is encoded into CP-SAT format.
|
|
655
|
+
*
|
|
656
|
+
* This can lead to a dramatic speed-up for such problems but is still
|
|
657
|
+
* experimental at this point.
|
|
658
|
+
*
|
|
659
|
+
* @generated from field: optional bool detect_table_with_cost = 216 [default = false];
|
|
660
|
+
*/
|
|
661
|
+
detectTableWithCost: boolean;
|
|
662
|
+
/**
|
|
663
|
+
* How much we try to "compress" a table constraint. Compressing more leads to
|
|
664
|
+
* less Booleans and faster propagation but can reduced the quality of the lp
|
|
665
|
+
* relaxation. Values goes from 0 to 3 where we always try to fully compress a
|
|
666
|
+
* table. At 2, we try to automatically decide if it is worth it.
|
|
667
|
+
*
|
|
668
|
+
* @generated from field: optional int32 table_compression_level = 217 [default = 2];
|
|
669
|
+
*/
|
|
670
|
+
tableCompressionLevel: number;
|
|
671
|
+
/**
|
|
672
|
+
* If true, expand all_different constraints that are not permutations.
|
|
673
|
+
* Permutations (#Variables = #Values) are always expanded.
|
|
674
|
+
*
|
|
675
|
+
* @generated from field: optional bool expand_alldiff_constraints = 170 [default = false];
|
|
676
|
+
*/
|
|
677
|
+
expandAlldiffConstraints: boolean;
|
|
678
|
+
/**
|
|
679
|
+
* Max domain size for all_different constraints to be expanded.
|
|
680
|
+
*
|
|
681
|
+
* @generated from field: optional int32 max_alldiff_domain_size = 320 [default = 256];
|
|
682
|
+
*/
|
|
683
|
+
maxAlldiffDomainSize: number;
|
|
684
|
+
/**
|
|
685
|
+
* If true, expand the reservoir constraints by creating booleans for all
|
|
686
|
+
* possible precedences between event and encoding the constraint.
|
|
687
|
+
*
|
|
688
|
+
* @generated from field: optional bool expand_reservoir_constraints = 182 [default = true];
|
|
689
|
+
*/
|
|
690
|
+
expandReservoirConstraints: boolean;
|
|
691
|
+
/**
|
|
692
|
+
* Max domain size for expanding linear2 constraints (ax + by ==/!= c).
|
|
693
|
+
*
|
|
694
|
+
* @generated from field: optional int32 max_domain_size_for_linear2_expansion = 340 [default = 8];
|
|
695
|
+
*/
|
|
696
|
+
maxDomainSizeForLinear2Expansion: number;
|
|
697
|
+
/**
|
|
698
|
+
* Mainly useful for testing.
|
|
699
|
+
*
|
|
700
|
+
* If this and expand_reservoir_constraints is true, we use a different
|
|
701
|
+
* encoding of the reservoir constraint using circuit instead of precedences.
|
|
702
|
+
* Note that this is usually slower, but can exercise different part of the
|
|
703
|
+
* solver. Note that contrary to the precedence encoding, this easily support
|
|
704
|
+
* variable demands.
|
|
705
|
+
*
|
|
706
|
+
* WARNING: with this encoding, the constraint takes a slightly different
|
|
707
|
+
* meaning. There must exist a permutation of the events occurring at the same
|
|
708
|
+
* time such that the level is within the reservoir after each of these events
|
|
709
|
+
* (in this permuted order). So we cannot have +100 and -100 at the same time
|
|
710
|
+
* if the level must be between 0 and 10 (as authorized by the reservoir
|
|
711
|
+
* constraint).
|
|
712
|
+
*
|
|
713
|
+
* @generated from field: optional bool expand_reservoir_using_circuit = 288 [default = false];
|
|
714
|
+
*/
|
|
715
|
+
expandReservoirUsingCircuit: boolean;
|
|
716
|
+
/**
|
|
717
|
+
* Encore cumulative with fixed demands and capacity as a reservoir
|
|
718
|
+
* constraint. The only reason you might want to do that is to test the
|
|
719
|
+
* reservoir propagation code!
|
|
720
|
+
*
|
|
721
|
+
* @generated from field: optional bool encode_cumulative_as_reservoir = 287 [default = false];
|
|
722
|
+
*/
|
|
723
|
+
encodeCumulativeAsReservoir: boolean;
|
|
724
|
+
/**
|
|
725
|
+
* If the number of expressions in the lin_max is less that the max size
|
|
726
|
+
* parameter, model expansion replaces target = max(xi) by linear constraint
|
|
727
|
+
* with the introduction of new booleans bi such that bi => target == xi.
|
|
728
|
+
*
|
|
729
|
+
* This is mainly for experimenting compared to a custom lin_max propagator.
|
|
730
|
+
*
|
|
731
|
+
* @generated from field: optional int32 max_lin_max_size_for_expansion = 280 [default = 0];
|
|
732
|
+
*/
|
|
733
|
+
maxLinMaxSizeForExpansion: number;
|
|
734
|
+
/**
|
|
735
|
+
* If true, it disable all constraint expansion.
|
|
736
|
+
* This should only be used to test the presolve of expanded constraints.
|
|
737
|
+
*
|
|
738
|
+
* @generated from field: optional bool disable_constraint_expansion = 181 [default = false];
|
|
739
|
+
*/
|
|
740
|
+
disableConstraintExpansion: boolean;
|
|
741
|
+
/**
|
|
742
|
+
* Linear constraint with a complex right hand side (more than a single
|
|
743
|
+
* interval) need to be expanded, there is a couple of way to do that.
|
|
744
|
+
*
|
|
745
|
+
* @generated from field: optional bool encode_complex_linear_constraint_with_integer = 223 [default = false];
|
|
746
|
+
*/
|
|
747
|
+
encodeComplexLinearConstraintWithInteger: boolean;
|
|
748
|
+
/**
|
|
749
|
+
* During presolve, we use a maximum clique heuristic to merge together
|
|
750
|
+
* no-overlap constraints or at most one constraints. This code can be slow,
|
|
751
|
+
* so we have a limit in place on the number of explored nodes in the
|
|
752
|
+
* underlying graph. The internal limit is an int64, but we use double here to
|
|
753
|
+
* simplify manual input.
|
|
754
|
+
*
|
|
755
|
+
* @generated from field: optional double merge_no_overlap_work_limit = 145 [default = 1e+12];
|
|
756
|
+
*/
|
|
757
|
+
mergeNoOverlapWorkLimit: number;
|
|
758
|
+
/**
|
|
759
|
+
* @generated from field: optional double merge_at_most_one_work_limit = 146 [default = 1e+08];
|
|
760
|
+
*/
|
|
761
|
+
mergeAtMostOneWorkLimit: number;
|
|
762
|
+
/**
|
|
763
|
+
* How much substitution (also called free variable aggregation in MIP
|
|
764
|
+
* litterature) should we perform at presolve. This currently only concerns
|
|
765
|
+
* variable appearing only in linear constraints. For now the value 0 turns it
|
|
766
|
+
* off and any positive value performs substitution.
|
|
767
|
+
*
|
|
768
|
+
* @generated from field: optional int32 presolve_substitution_level = 147 [default = 1];
|
|
769
|
+
*/
|
|
770
|
+
presolveSubstitutionLevel: number;
|
|
771
|
+
/**
|
|
772
|
+
* If true, we will extract from linear constraints, enforcement literals of
|
|
773
|
+
* the form "integer variable at bound => simplified constraint". This should
|
|
774
|
+
* always be beneficial except that we don't always handle them as efficiently
|
|
775
|
+
* as we could for now. This causes problem on manna81.mps (LP relaxation not
|
|
776
|
+
* as tight it seems) and on neos-3354841-apure.mps.gz (too many literals
|
|
777
|
+
* created this way).
|
|
778
|
+
*
|
|
779
|
+
* @generated from field: optional bool presolve_extract_integer_enforcement = 174 [default = false];
|
|
780
|
+
*/
|
|
781
|
+
presolveExtractIntegerEnforcement: boolean;
|
|
782
|
+
/**
|
|
783
|
+
* A few presolve operations involve detecting constraints included in other
|
|
784
|
+
* constraint. Since there can be a quadratic number of such pairs, and
|
|
785
|
+
* processing them usually involve scanning them, the complexity of these
|
|
786
|
+
* operations can be big. This enforce a local deterministic limit on the
|
|
787
|
+
* number of entries scanned. Default is 1e8.
|
|
788
|
+
*
|
|
789
|
+
* A value of zero will disable these presolve rules completely.
|
|
790
|
+
*
|
|
791
|
+
* @generated from field: optional int64 presolve_inclusion_work_limit = 201 [default = 100000000];
|
|
792
|
+
*/
|
|
793
|
+
presolveInclusionWorkLimit: bigint;
|
|
794
|
+
/**
|
|
795
|
+
* If true, we don't keep names in our internal copy of the user given model.
|
|
796
|
+
*
|
|
797
|
+
* @generated from field: optional bool ignore_names = 202 [default = true];
|
|
798
|
+
*/
|
|
799
|
+
ignoreNames: boolean;
|
|
800
|
+
/**
|
|
801
|
+
* Run a max-clique code amongst all the x != y we can find and try to infer
|
|
802
|
+
* set of variables that are all different. This allows to close neos16.mps
|
|
803
|
+
* for instance. Note that we only run this code if there is no all_diff
|
|
804
|
+
* already in the model so that if a user want to add some all_diff, we assume
|
|
805
|
+
* it is well done and do not try to add more.
|
|
806
|
+
*
|
|
807
|
+
* This will also detect and add no_overlap constraints, if all the relations
|
|
808
|
+
* x != y have "offsets" between them. I.e. x > y + offset.
|
|
809
|
+
*
|
|
810
|
+
* @generated from field: optional bool infer_all_diffs = 233 [default = true];
|
|
811
|
+
*/
|
|
812
|
+
inferAllDiffs: boolean;
|
|
813
|
+
/**
|
|
814
|
+
* Try to find large "rectangle" in the linear constraint matrix with
|
|
815
|
+
* identical lines. If such rectangle is big enough, we can introduce a new
|
|
816
|
+
* integer variable corresponding to the common expression and greatly reduce
|
|
817
|
+
* the number of non-zero.
|
|
818
|
+
*
|
|
819
|
+
* @generated from field: optional bool find_big_linear_overlap = 234 [default = true];
|
|
820
|
+
*/
|
|
821
|
+
findBigLinearOverlap: boolean;
|
|
822
|
+
/**
|
|
823
|
+
* By propagating (or just using binary clauses), one can detect that all
|
|
824
|
+
* literal of a clause are actually in at most one relationship. Thus this
|
|
825
|
+
* constraint can be promoted to an exactly one constraints. This should help
|
|
826
|
+
* as it convey more structure. Note that this is expensive, so we have a
|
|
827
|
+
* deterministic limit in place.
|
|
828
|
+
*
|
|
829
|
+
* @generated from field: optional bool find_clauses_that_are_exactly_one = 333 [default = true];
|
|
830
|
+
*/
|
|
831
|
+
findClausesThatAreExactlyOne: boolean;
|
|
832
|
+
/**
|
|
833
|
+
* Enable or disable "inprocessing" which is some SAT presolving done at
|
|
834
|
+
* each restart to the root level.
|
|
835
|
+
*
|
|
836
|
+
* @generated from field: optional bool use_sat_inprocessing = 163 [default = true];
|
|
837
|
+
*/
|
|
838
|
+
useSatInprocessing: boolean;
|
|
839
|
+
/**
|
|
840
|
+
* Proportion of deterministic time we should spend on inprocessing.
|
|
841
|
+
* At each "restart", if the proportion is below this ratio, we will do some
|
|
842
|
+
* inprocessing, otherwise, we skip it for this restart.
|
|
843
|
+
*
|
|
844
|
+
* @generated from field: optional double inprocessing_dtime_ratio = 273 [default = 0.2];
|
|
845
|
+
*/
|
|
846
|
+
inprocessingDtimeRatio: number;
|
|
847
|
+
/**
|
|
848
|
+
* The amount of dtime we should spend on probing for each inprocessing round.
|
|
849
|
+
*
|
|
850
|
+
* @generated from field: optional double inprocessing_probing_dtime = 274 [default = 1];
|
|
851
|
+
*/
|
|
852
|
+
inprocessingProbingDtime: number;
|
|
853
|
+
/**
|
|
854
|
+
* Parameters for an heuristic similar to the one described in "An effective
|
|
855
|
+
* learnt clause minimization approach for CDCL Sat Solvers",
|
|
856
|
+
* https://www.ijcai.org/proceedings/2017/0098.pdf
|
|
857
|
+
*
|
|
858
|
+
* This is the amount of dtime we should spend on this technique during each
|
|
859
|
+
* inprocessing phase.
|
|
860
|
+
*
|
|
861
|
+
* The minimization technique is the same as the one used to minimize core in
|
|
862
|
+
* max-sat. We also minimize problem clauses and not just the learned clause
|
|
863
|
+
* that we keep forever like in the paper.
|
|
864
|
+
*
|
|
865
|
+
* @generated from field: optional double inprocessing_minimization_dtime = 275 [default = 1];
|
|
866
|
+
*/
|
|
867
|
+
inprocessingMinimizationDtime: number;
|
|
868
|
+
/**
|
|
869
|
+
* @generated from field: optional bool inprocessing_minimization_use_conflict_analysis = 297 [default = true];
|
|
870
|
+
*/
|
|
871
|
+
inprocessingMinimizationUseConflictAnalysis: boolean;
|
|
872
|
+
/**
|
|
873
|
+
* @generated from field: optional bool inprocessing_minimization_use_all_orderings = 298 [default = false];
|
|
874
|
+
*/
|
|
875
|
+
inprocessingMinimizationUseAllOrderings: boolean;
|
|
876
|
+
/**
|
|
877
|
+
* Whether we use the algorithm described in "Clausal Congruence closure",
|
|
878
|
+
* Armin Biere, Katalin Fazekas, Mathias Fleury, Nils Froleyks, 2024.
|
|
879
|
+
*
|
|
880
|
+
* Note that we only have a basic version currently.
|
|
881
|
+
*
|
|
882
|
+
* @generated from field: optional bool inprocessing_use_congruence_closure = 342 [default = true];
|
|
883
|
+
*/
|
|
884
|
+
inprocessingUseCongruenceClosure: boolean;
|
|
885
|
+
/**
|
|
886
|
+
* Whether we use the SAT sweeping algorithm described in "Clausal Equivalence
|
|
887
|
+
* Sweeping", Armin Biere, Katalin Fazekas, Mathias Fleury, Nils Froleyks,
|
|
888
|
+
* 2025.
|
|
889
|
+
*
|
|
890
|
+
* @generated from field: optional bool inprocessing_use_sat_sweeping = 354 [default = false];
|
|
891
|
+
*/
|
|
892
|
+
inprocessingUseSatSweeping: boolean;
|
|
893
|
+
/**
|
|
894
|
+
* Specify the number of parallel workers (i.e. threads) to use during search.
|
|
895
|
+
* This should usually be lower than your number of available cpus +
|
|
896
|
+
* hyperthread in your machine.
|
|
897
|
+
*
|
|
898
|
+
* A value of 0 means the solver will try to use all cores on the machine.
|
|
899
|
+
* A number of 1 means no parallelism.
|
|
900
|
+
*
|
|
901
|
+
* Note that 'num_workers' is the preferred name, but if it is set to zero,
|
|
902
|
+
* we will still read the deprecated 'num_search_workers'.
|
|
903
|
+
*
|
|
904
|
+
* As of 2020-04-10, if you're using SAT via MPSolver (to solve integer
|
|
905
|
+
* programs) this field is overridden with a value of 8, if the field is not
|
|
906
|
+
* set *explicitly*. Thus, always set this field explicitly or via
|
|
907
|
+
* MPSolver::SetNumThreads().
|
|
908
|
+
*
|
|
909
|
+
* @generated from field: optional int32 num_workers = 206 [default = 0];
|
|
910
|
+
*/
|
|
911
|
+
numWorkers: number;
|
|
912
|
+
/**
|
|
913
|
+
* @generated from field: optional int32 num_search_workers = 100 [default = 0];
|
|
914
|
+
*/
|
|
915
|
+
numSearchWorkers: number;
|
|
916
|
+
/**
|
|
917
|
+
* We distinguish subsolvers that consume a full thread, and the ones that are
|
|
918
|
+
* always interleaved. If left at zero, we will fix this with a default
|
|
919
|
+
* formula that depends on num_workers. But if you start modifying what runs,
|
|
920
|
+
* you might want to fix that to a given value depending on the num_workers
|
|
921
|
+
* you use.
|
|
922
|
+
*
|
|
923
|
+
* @generated from field: optional int32 num_full_subsolvers = 294 [default = 0];
|
|
924
|
+
*/
|
|
925
|
+
numFullSubsolvers: number;
|
|
926
|
+
/**
|
|
927
|
+
* In multi-thread, the solver can be mainly seen as a portfolio of solvers
|
|
928
|
+
* with different parameters. This field indicates the names of the parameters
|
|
929
|
+
* that are used in multithread. This only applies to "full" subsolvers.
|
|
930
|
+
*
|
|
931
|
+
* See cp_model_search.cc to see a list of the names and the default value (if
|
|
932
|
+
* left empty) that looks like:
|
|
933
|
+
* - default_lp (linearization_level:1)
|
|
934
|
+
* - fixed (only if fixed search specified or scheduling)
|
|
935
|
+
* - no_lp (linearization_level:0)
|
|
936
|
+
* - max_lp (linearization_level:2)
|
|
937
|
+
* - pseudo_costs (only if objective, change search heuristic)
|
|
938
|
+
* - reduced_costs (only if objective, change search heuristic)
|
|
939
|
+
* - quick_restart (kind of probing)
|
|
940
|
+
* - quick_restart_no_lp (kind of probing with linearization_level:0)
|
|
941
|
+
* - lb_tree_search (to improve lower bound, MIP like tree search)
|
|
942
|
+
* - probing (continuous probing and shaving)
|
|
943
|
+
*
|
|
944
|
+
* Also, note that some set of parameters will be ignored if they do not make
|
|
945
|
+
* sense. For instance if there is no objective, pseudo_cost or reduced_cost
|
|
946
|
+
* search will be ignored. Core based search will only work if the objective
|
|
947
|
+
* has many terms. If there is no fixed strategy fixed will be ignored. And so
|
|
948
|
+
* on.
|
|
949
|
+
*
|
|
950
|
+
* The order is important, as only the first num_full_subsolvers will be
|
|
951
|
+
* scheduled. You can see in the log which one are selected for a given run.
|
|
952
|
+
*
|
|
953
|
+
* @generated from field: repeated string subsolvers = 207;
|
|
954
|
+
*/
|
|
955
|
+
subsolvers: string[];
|
|
956
|
+
/**
|
|
957
|
+
* A convenient way to add more workers types.
|
|
958
|
+
* These will be added at the beginning of the list.
|
|
959
|
+
*
|
|
960
|
+
* @generated from field: repeated string extra_subsolvers = 219;
|
|
961
|
+
*/
|
|
962
|
+
extraSubsolvers: string[];
|
|
963
|
+
/**
|
|
964
|
+
* Rather than fully specifying subsolvers, it is often convenient to just
|
|
965
|
+
* remove the ones that are not useful on a given problem or only keep
|
|
966
|
+
* specific ones for testing. Each string is interpreted as a "glob", so we
|
|
967
|
+
* support '*' and '?'.
|
|
968
|
+
*
|
|
969
|
+
* The way this work is that we will only accept a name that match a filter
|
|
970
|
+
* pattern (if non-empty) and do not match an ignore pattern. Note also that
|
|
971
|
+
* these fields work on LNS or LS names even if these are currently not
|
|
972
|
+
* specified via the subsolvers field.
|
|
973
|
+
*
|
|
974
|
+
* @generated from field: repeated string ignore_subsolvers = 209;
|
|
975
|
+
*/
|
|
976
|
+
ignoreSubsolvers: string[];
|
|
977
|
+
/**
|
|
978
|
+
* @generated from field: repeated string filter_subsolvers = 293;
|
|
979
|
+
*/
|
|
980
|
+
filterSubsolvers: string[];
|
|
981
|
+
/**
|
|
982
|
+
* It is possible to specify additional subsolver configuration. These can be
|
|
983
|
+
* referred by their params.name() in the fields above. Note that only the
|
|
984
|
+
* specified field will "overwrite" the ones of the base parameter. If a
|
|
985
|
+
* subsolver_params has the name of an existing subsolver configuration, the
|
|
986
|
+
* named parameters will be merged into the subsolver configuration.
|
|
987
|
+
*
|
|
988
|
+
* @generated from field: repeated operations_research.sat.SatParameters subsolver_params = 210;
|
|
989
|
+
*/
|
|
990
|
+
subsolverParams: SatParameters[];
|
|
991
|
+
/**
|
|
992
|
+
* Experimental. If this is true, then we interleave all our major search
|
|
993
|
+
* strategy and distribute the work amongst num_workers.
|
|
994
|
+
*
|
|
995
|
+
* The search is deterministic (independently of num_workers!), and we
|
|
996
|
+
* schedule and wait for interleave_batch_size task to be completed before
|
|
997
|
+
* synchronizing and scheduling the next batch of tasks.
|
|
998
|
+
*
|
|
999
|
+
* @generated from field: optional bool interleave_search = 136 [default = false];
|
|
1000
|
+
*/
|
|
1001
|
+
interleaveSearch: boolean;
|
|
1002
|
+
/**
|
|
1003
|
+
* @generated from field: optional int32 interleave_batch_size = 134 [default = 0];
|
|
1004
|
+
*/
|
|
1005
|
+
interleaveBatchSize: number;
|
|
1006
|
+
/**
|
|
1007
|
+
* Allows objective sharing between workers.
|
|
1008
|
+
*
|
|
1009
|
+
* @generated from field: optional bool share_objective_bounds = 113 [default = true];
|
|
1010
|
+
*/
|
|
1011
|
+
shareObjectiveBounds: boolean;
|
|
1012
|
+
/**
|
|
1013
|
+
* Allows sharing of the bounds of modified variables at level 0.
|
|
1014
|
+
*
|
|
1015
|
+
* @generated from field: optional bool share_level_zero_bounds = 114 [default = true];
|
|
1016
|
+
*/
|
|
1017
|
+
shareLevelZeroBounds: boolean;
|
|
1018
|
+
/**
|
|
1019
|
+
* Allows sharing of the bounds on linear2 discovered at level 0. This is
|
|
1020
|
+
* mainly interesting on scheduling type of problems when we branch on
|
|
1021
|
+
* precedences.
|
|
1022
|
+
*
|
|
1023
|
+
* Warning: This currently non-deterministic.
|
|
1024
|
+
*
|
|
1025
|
+
* @generated from field: optional bool share_linear2_bounds = 326 [default = false];
|
|
1026
|
+
*/
|
|
1027
|
+
shareLinear2Bounds: boolean;
|
|
1028
|
+
/**
|
|
1029
|
+
* Allows sharing of new learned binary clause between workers.
|
|
1030
|
+
*
|
|
1031
|
+
* @generated from field: optional bool share_binary_clauses = 203 [default = true];
|
|
1032
|
+
*/
|
|
1033
|
+
shareBinaryClauses: boolean;
|
|
1034
|
+
/**
|
|
1035
|
+
* Allows sharing of short glue clauses between workers.
|
|
1036
|
+
* Implicitly disabled if share_binary_clauses is false.
|
|
1037
|
+
*
|
|
1038
|
+
* @generated from field: optional bool share_glue_clauses = 285 [default = true];
|
|
1039
|
+
*/
|
|
1040
|
+
shareGlueClauses: boolean;
|
|
1041
|
+
/**
|
|
1042
|
+
* Minimize and detect subsumption of shared clauses immediately after they
|
|
1043
|
+
* are imported.
|
|
1044
|
+
*
|
|
1045
|
+
* @generated from field: optional bool minimize_shared_clauses = 300 [default = true];
|
|
1046
|
+
*/
|
|
1047
|
+
minimizeSharedClauses: boolean;
|
|
1048
|
+
/**
|
|
1049
|
+
* The amount of dtime between each export of shared glue clauses.
|
|
1050
|
+
*
|
|
1051
|
+
* @generated from field: optional double share_glue_clauses_dtime = 322 [default = 1];
|
|
1052
|
+
*/
|
|
1053
|
+
shareGlueClausesDtime: number;
|
|
1054
|
+
/**
|
|
1055
|
+
* If true, inferred clauses are checked with an LRAT checker as they are
|
|
1056
|
+
* learned, in presolve (reduced to trivial simplifications if
|
|
1057
|
+
* cp_model_presolve is false), and in each worker. As of December 2025, this
|
|
1058
|
+
* only works with pure SAT problems, with
|
|
1059
|
+
* - cp_model_presolve = false,
|
|
1060
|
+
* - linearization_level <= 1,
|
|
1061
|
+
* - symmetry_level <= 1.
|
|
1062
|
+
*
|
|
1063
|
+
* @generated from field: optional bool check_lrat_proof = 344 [default = false];
|
|
1064
|
+
*/
|
|
1065
|
+
checkLratProof: boolean;
|
|
1066
|
+
/**
|
|
1067
|
+
* If true, and if output_lrat_proof is true and the problem is UNSAT, check
|
|
1068
|
+
* that the merged proof file is valid, i.e., that clause sharing between
|
|
1069
|
+
* workers is correct. This checks each inferred clause, so you might want to
|
|
1070
|
+
* disable check_lrat_proof to avoid redundant work. As of November 2025, this
|
|
1071
|
+
* only works for pure SAT problems, with num_workers = 1.
|
|
1072
|
+
*
|
|
1073
|
+
* @generated from field: optional bool check_merged_lrat_proof = 352 [default = false];
|
|
1074
|
+
*/
|
|
1075
|
+
checkMergedLratProof: boolean;
|
|
1076
|
+
/**
|
|
1077
|
+
* If true, an LRAT proof that all the clauses inferred by the solver are
|
|
1078
|
+
* valid is output to several files (one for presolve -- reduced to trivial
|
|
1079
|
+
* simplifications if cp_model_presolve is false, one per worker, and one for
|
|
1080
|
+
* the merged proof). As of December 2025, this only works for pure SAT
|
|
1081
|
+
* problems, with
|
|
1082
|
+
* - cp_model_presolve = false,
|
|
1083
|
+
* - linearization_level <= 1,
|
|
1084
|
+
* - symmetry_level <= 1.
|
|
1085
|
+
*
|
|
1086
|
+
* @generated from field: optional bool output_lrat_proof = 345 [default = false];
|
|
1087
|
+
*/
|
|
1088
|
+
outputLratProof: boolean;
|
|
1089
|
+
/**
|
|
1090
|
+
* If true, and if the problem is UNSAT, a DRAT proof of this UNSAT property
|
|
1091
|
+
* is checked after the solver has finished. As of November 2025, this only
|
|
1092
|
+
* works for pure SAT problems, with
|
|
1093
|
+
* - num_workers = 1,
|
|
1094
|
+
* - cp_model_presolve = false,
|
|
1095
|
+
* - linearization_level <= 1,
|
|
1096
|
+
* - symmetry_level <= 1.
|
|
1097
|
+
*
|
|
1098
|
+
* @generated from field: optional bool check_drat_proof = 346 [default = false];
|
|
1099
|
+
*/
|
|
1100
|
+
checkDratProof: boolean;
|
|
1101
|
+
/**
|
|
1102
|
+
* If true, a DRAT proof that all the clauses inferred by the solver are valid
|
|
1103
|
+
* is output to a file. As of December 2025, this only works for pure SAT
|
|
1104
|
+
* problems, with
|
|
1105
|
+
* - num_workers = 1,
|
|
1106
|
+
* - cp_model_presolve = false,
|
|
1107
|
+
* - linearization_level <= 1,
|
|
1108
|
+
* - symmetry_level <= 1.
|
|
1109
|
+
*
|
|
1110
|
+
* @generated from field: optional bool output_drat_proof = 347 [default = false];
|
|
1111
|
+
*/
|
|
1112
|
+
outputDratProof: boolean;
|
|
1113
|
+
/**
|
|
1114
|
+
* The maximum time allowed to check the DRAT proof (this can take more time
|
|
1115
|
+
* than the solve itself). Only used if check_drat_proof is true.
|
|
1116
|
+
*
|
|
1117
|
+
* @generated from field: optional double max_drat_time_in_seconds = 348 [default = inf];
|
|
1118
|
+
*/
|
|
1119
|
+
maxDratTimeInSeconds: number;
|
|
1120
|
+
/**
|
|
1121
|
+
* We have two different postsolve code. The default one should be better and
|
|
1122
|
+
* it allows for a more powerful presolve, but it can be useful to postsolve
|
|
1123
|
+
* using the full solver instead.
|
|
1124
|
+
*
|
|
1125
|
+
* @generated from field: optional bool debug_postsolve_with_full_solver = 162 [default = false];
|
|
1126
|
+
*/
|
|
1127
|
+
debugPostsolveWithFullSolver: boolean;
|
|
1128
|
+
/**
|
|
1129
|
+
* If positive, try to stop just after that many presolve rules have been
|
|
1130
|
+
* applied. This is mainly useful for debugging presolve.
|
|
1131
|
+
*
|
|
1132
|
+
* @generated from field: optional int32 debug_max_num_presolve_operations = 151 [default = 0];
|
|
1133
|
+
*/
|
|
1134
|
+
debugMaxNumPresolveOperations: number;
|
|
1135
|
+
/**
|
|
1136
|
+
* Crash if we do not manage to complete the hint into a full solution.
|
|
1137
|
+
*
|
|
1138
|
+
* @generated from field: optional bool debug_crash_on_bad_hint = 195 [default = false];
|
|
1139
|
+
*/
|
|
1140
|
+
debugCrashOnBadHint: boolean;
|
|
1141
|
+
/**
|
|
1142
|
+
* Crash if presolve breaks a feasible hint.
|
|
1143
|
+
*
|
|
1144
|
+
* @generated from field: optional bool debug_crash_if_presolve_breaks_hint = 306 [default = false];
|
|
1145
|
+
*/
|
|
1146
|
+
debugCrashIfPresolveBreaksHint: boolean;
|
|
1147
|
+
/**
|
|
1148
|
+
* Crash if the LRAT UNSAT proof is invalid.
|
|
1149
|
+
*
|
|
1150
|
+
* @generated from field: optional bool debug_crash_if_lrat_check_fails = 339 [default = false];
|
|
1151
|
+
*/
|
|
1152
|
+
debugCrashIfLratCheckFails: boolean;
|
|
1153
|
+
/**
|
|
1154
|
+
* For an optimization problem, whether we follow some hints in order to find
|
|
1155
|
+
* a better first solution. For a variable with hint, the solver will always
|
|
1156
|
+
* try to follow the hint. It will revert to the variable_branching default
|
|
1157
|
+
* otherwise.
|
|
1158
|
+
*
|
|
1159
|
+
* @generated from field: optional bool use_optimization_hints = 35 [default = true];
|
|
1160
|
+
*/
|
|
1161
|
+
useOptimizationHints: boolean;
|
|
1162
|
+
/**
|
|
1163
|
+
* If positive, we spend some effort on each core:
|
|
1164
|
+
* - At level 1, we use a simple heuristic to try to minimize an UNSAT core.
|
|
1165
|
+
* - At level 2, we use propagation to minimize the core but also identify
|
|
1166
|
+
* literal in at most one relationship in this core.
|
|
1167
|
+
*
|
|
1168
|
+
* @generated from field: optional int32 core_minimization_level = 50 [default = 2];
|
|
1169
|
+
*/
|
|
1170
|
+
coreMinimizationLevel: number;
|
|
1171
|
+
/**
|
|
1172
|
+
* Whether we try to find more independent cores for a given set of
|
|
1173
|
+
* assumptions in the core based max-SAT algorithms.
|
|
1174
|
+
*
|
|
1175
|
+
* @generated from field: optional bool find_multiple_cores = 84 [default = true];
|
|
1176
|
+
*/
|
|
1177
|
+
findMultipleCores: boolean;
|
|
1178
|
+
/**
|
|
1179
|
+
* If true, when the max-sat algo find a core, we compute the minimal number
|
|
1180
|
+
* of literals in the core that needs to be true to have a feasible solution.
|
|
1181
|
+
* This is also called core exhaustion in more recent max-SAT papers.
|
|
1182
|
+
*
|
|
1183
|
+
* @generated from field: optional bool cover_optimization = 89 [default = true];
|
|
1184
|
+
*/
|
|
1185
|
+
coverOptimization: boolean;
|
|
1186
|
+
/**
|
|
1187
|
+
* @generated from field: optional operations_research.sat.SatParameters.MaxSatAssumptionOrder max_sat_assumption_order = 51 [default = DEFAULT_ASSUMPTION_ORDER];
|
|
1188
|
+
*/
|
|
1189
|
+
maxSatAssumptionOrder: SatParameters_MaxSatAssumptionOrder;
|
|
1190
|
+
/**
|
|
1191
|
+
* If true, adds the assumption in the reverse order of the one defined by
|
|
1192
|
+
* max_sat_assumption_order.
|
|
1193
|
+
*
|
|
1194
|
+
* @generated from field: optional bool max_sat_reverse_assumption_order = 52 [default = false];
|
|
1195
|
+
*/
|
|
1196
|
+
maxSatReverseAssumptionOrder: boolean;
|
|
1197
|
+
/**
|
|
1198
|
+
* @generated from field: optional operations_research.sat.SatParameters.MaxSatStratificationAlgorithm max_sat_stratification = 53 [default = STRATIFICATION_DESCENT];
|
|
1199
|
+
*/
|
|
1200
|
+
maxSatStratification: SatParameters_MaxSatStratificationAlgorithm;
|
|
1201
|
+
/**
|
|
1202
|
+
* Some search decisions might cause a really large number of propagations to
|
|
1203
|
+
* happen when integer variables with large domains are only reduced by 1 at
|
|
1204
|
+
* each step. If we propagate more than the number of variable times this
|
|
1205
|
+
* parameters we try to take counter-measure. Setting this to 0.0 disable this
|
|
1206
|
+
* feature.
|
|
1207
|
+
*
|
|
1208
|
+
* TODO(user): Setting this to something like 10 helps in most cases, but the
|
|
1209
|
+
* code is currently buggy and can cause the solve to enter a bad state where
|
|
1210
|
+
* no progress is made.
|
|
1211
|
+
*
|
|
1212
|
+
* @generated from field: optional double propagation_loop_detection_factor = 221 [default = 10];
|
|
1213
|
+
*/
|
|
1214
|
+
propagationLoopDetectionFactor: number;
|
|
1215
|
+
/**
|
|
1216
|
+
* When this is true, then a disjunctive constraint will try to use the
|
|
1217
|
+
* precedence relations between time intervals to propagate their bounds
|
|
1218
|
+
* further. For instance if task A and B are both before C and task A and B
|
|
1219
|
+
* are in disjunction, then we can deduce that task C must start after
|
|
1220
|
+
* duration(A) + duration(B) instead of simply max(duration(A), duration(B)),
|
|
1221
|
+
* provided that the start time for all task was currently zero.
|
|
1222
|
+
*
|
|
1223
|
+
* This always result in better propagation, but it is usually slow, so
|
|
1224
|
+
* depending on the problem, turning this off may lead to a faster solution.
|
|
1225
|
+
*
|
|
1226
|
+
* @generated from field: optional bool use_precedences_in_disjunctive_constraint = 74 [default = true];
|
|
1227
|
+
*/
|
|
1228
|
+
usePrecedencesInDisjunctiveConstraint: boolean;
|
|
1229
|
+
/**
|
|
1230
|
+
* At root level, we might compute the transitive closure of "precedences"
|
|
1231
|
+
* relations so that we can exploit that in scheduling problems. Setting this
|
|
1232
|
+
* to zero disable the feature.
|
|
1233
|
+
*
|
|
1234
|
+
* @generated from field: optional int32 transitive_precedences_work_limit = 327 [default = 1000000];
|
|
1235
|
+
*/
|
|
1236
|
+
transitivePrecedencesWorkLimit: number;
|
|
1237
|
+
/**
|
|
1238
|
+
* Create one literal for each disjunction of two pairs of tasks. This slows
|
|
1239
|
+
* down the solve time, but improves the lower bound of the objective in the
|
|
1240
|
+
* makespan case. This will be triggered if the number of intervals is less or
|
|
1241
|
+
* equal than the parameter and if use_strong_propagation_in_disjunctive is
|
|
1242
|
+
* true.
|
|
1243
|
+
*
|
|
1244
|
+
* @generated from field: optional int32 max_size_to_create_precedence_literals_in_disjunctive = 229 [default = 60];
|
|
1245
|
+
*/
|
|
1246
|
+
maxSizeToCreatePrecedenceLiteralsInDisjunctive: number;
|
|
1247
|
+
/**
|
|
1248
|
+
* Enable stronger and more expensive propagation on no_overlap constraint.
|
|
1249
|
+
*
|
|
1250
|
+
* @generated from field: optional bool use_strong_propagation_in_disjunctive = 230 [default = false];
|
|
1251
|
+
*/
|
|
1252
|
+
useStrongPropagationInDisjunctive: boolean;
|
|
1253
|
+
/**
|
|
1254
|
+
* Whether we try to branch on decision "interval A before interval B" rather
|
|
1255
|
+
* than on intervals bounds. This usually works better, but slow down a bit
|
|
1256
|
+
* the time to find the first solution.
|
|
1257
|
+
*
|
|
1258
|
+
* These parameters are still EXPERIMENTAL, the result should be correct, but
|
|
1259
|
+
* it some corner cases, they can cause some failing CHECK in the solver.
|
|
1260
|
+
*
|
|
1261
|
+
* @generated from field: optional bool use_dynamic_precedence_in_disjunctive = 263 [default = false];
|
|
1262
|
+
*/
|
|
1263
|
+
useDynamicPrecedenceInDisjunctive: boolean;
|
|
1264
|
+
/**
|
|
1265
|
+
* @generated from field: optional bool use_dynamic_precedence_in_cumulative = 268 [default = false];
|
|
1266
|
+
*/
|
|
1267
|
+
useDynamicPrecedenceInCumulative: boolean;
|
|
1268
|
+
/**
|
|
1269
|
+
* When this is true, the cumulative constraint is reinforced with overload
|
|
1270
|
+
* checking, i.e., an additional level of reasoning based on energy. This
|
|
1271
|
+
* additional level supplements the default level of reasoning as well as
|
|
1272
|
+
* timetable edge finding.
|
|
1273
|
+
*
|
|
1274
|
+
* This always result in better propagation, but it is usually slow, so
|
|
1275
|
+
* depending on the problem, turning this off may lead to a faster solution.
|
|
1276
|
+
*
|
|
1277
|
+
* @generated from field: optional bool use_overload_checker_in_cumulative = 78 [default = false];
|
|
1278
|
+
*/
|
|
1279
|
+
useOverloadCheckerInCumulative: boolean;
|
|
1280
|
+
/**
|
|
1281
|
+
* Enable a heuristic to solve cumulative constraints using a modified energy
|
|
1282
|
+
* constraint. We modify the usual energy definition by applying a
|
|
1283
|
+
* super-additive function (also called "conservative scale" or "dual-feasible
|
|
1284
|
+
* function") to the demand and the durations of the tasks.
|
|
1285
|
+
*
|
|
1286
|
+
* This heuristic is fast but for most problems it does not help much to find
|
|
1287
|
+
* a solution.
|
|
1288
|
+
*
|
|
1289
|
+
* @generated from field: optional bool use_conservative_scale_overload_checker = 286 [default = false];
|
|
1290
|
+
*/
|
|
1291
|
+
useConservativeScaleOverloadChecker: boolean;
|
|
1292
|
+
/**
|
|
1293
|
+
* When this is true, the cumulative constraint is reinforced with timetable
|
|
1294
|
+
* edge finding, i.e., an additional level of reasoning based on the
|
|
1295
|
+
* conjunction of energy and mandatory parts. This additional level
|
|
1296
|
+
* supplements the default level of reasoning as well as overload_checker.
|
|
1297
|
+
*
|
|
1298
|
+
* This always result in better propagation, but it is usually slow, so
|
|
1299
|
+
* depending on the problem, turning this off may lead to a faster solution.
|
|
1300
|
+
*
|
|
1301
|
+
* @generated from field: optional bool use_timetable_edge_finding_in_cumulative = 79 [default = false];
|
|
1302
|
+
*/
|
|
1303
|
+
useTimetableEdgeFindingInCumulative: boolean;
|
|
1304
|
+
/**
|
|
1305
|
+
* Max number of intervals for the timetable_edge_finding algorithm to
|
|
1306
|
+
* propagate. A value of 0 disables the constraint.
|
|
1307
|
+
*
|
|
1308
|
+
* @generated from field: optional int32 max_num_intervals_for_timetable_edge_finding = 260 [default = 100];
|
|
1309
|
+
*/
|
|
1310
|
+
maxNumIntervalsForTimetableEdgeFinding: number;
|
|
1311
|
+
/**
|
|
1312
|
+
* If true, detect and create constraint for integer variable that are "after"
|
|
1313
|
+
* a set of intervals in the same cumulative constraint.
|
|
1314
|
+
*
|
|
1315
|
+
* Experimental: by default we just use "direct" precedences. If
|
|
1316
|
+
* exploit_all_precedences is true, we explore the full precedence graph. This
|
|
1317
|
+
* assumes we have a DAG otherwise it fails.
|
|
1318
|
+
*
|
|
1319
|
+
* @generated from field: optional bool use_hard_precedences_in_cumulative = 215 [default = false];
|
|
1320
|
+
*/
|
|
1321
|
+
useHardPrecedencesInCumulative: boolean;
|
|
1322
|
+
/**
|
|
1323
|
+
* @generated from field: optional bool exploit_all_precedences = 220 [default = false];
|
|
1324
|
+
*/
|
|
1325
|
+
exploitAllPrecedences: boolean;
|
|
1326
|
+
/**
|
|
1327
|
+
* When this is true, the cumulative constraint is reinforced with propagators
|
|
1328
|
+
* from the disjunctive constraint to improve the inference on a set of tasks
|
|
1329
|
+
* that are disjunctive at the root of the problem. This additional level
|
|
1330
|
+
* supplements the default level of reasoning.
|
|
1331
|
+
*
|
|
1332
|
+
* Propagators of the cumulative constraint will not be used at all if all the
|
|
1333
|
+
* tasks are disjunctive at root node.
|
|
1334
|
+
*
|
|
1335
|
+
* This always result in better propagation, but it is usually slow, so
|
|
1336
|
+
* depending on the problem, turning this off may lead to a faster solution.
|
|
1337
|
+
*
|
|
1338
|
+
* @generated from field: optional bool use_disjunctive_constraint_in_cumulative = 80 [default = true];
|
|
1339
|
+
*/
|
|
1340
|
+
useDisjunctiveConstraintInCumulative: boolean;
|
|
1341
|
+
/**
|
|
1342
|
+
* If less than this number of boxes are present in a no-overlap 2d, we
|
|
1343
|
+
* create 4 Booleans per pair of boxes:
|
|
1344
|
+
* - Box 2 is after Box 1 on x.
|
|
1345
|
+
* - Box 1 is after Box 2 on x.
|
|
1346
|
+
* - Box 2 is after Box 1 on y.
|
|
1347
|
+
* - Box 1 is after Box 2 on y.
|
|
1348
|
+
*
|
|
1349
|
+
* Note that at least one of them must be true, and at most one on x and one
|
|
1350
|
+
* on y can be true.
|
|
1351
|
+
*
|
|
1352
|
+
* This can significantly help in closing small problem. The SAT reasoning
|
|
1353
|
+
* can be a lot more powerful when we take decision on such positional
|
|
1354
|
+
* relations.
|
|
1355
|
+
*
|
|
1356
|
+
* @generated from field: optional int32 no_overlap_2d_boolean_relations_limit = 321 [default = 10];
|
|
1357
|
+
*/
|
|
1358
|
+
noOverlap2dBooleanRelationsLimit: number;
|
|
1359
|
+
/**
|
|
1360
|
+
* When this is true, the no_overlap_2d constraint is reinforced with
|
|
1361
|
+
* propagators from the cumulative constraints. It consists of ignoring the
|
|
1362
|
+
* position of rectangles in one position and projecting the no_overlap_2d on
|
|
1363
|
+
* the other dimension to create a cumulative constraint. This is done on both
|
|
1364
|
+
* axis. This additional level supplements the default level of reasoning.
|
|
1365
|
+
*
|
|
1366
|
+
* @generated from field: optional bool use_timetabling_in_no_overlap_2d = 200 [default = false];
|
|
1367
|
+
*/
|
|
1368
|
+
useTimetablingInNoOverlap2d: boolean;
|
|
1369
|
+
/**
|
|
1370
|
+
* When this is true, the no_overlap_2d constraint is reinforced with
|
|
1371
|
+
* energetic reasoning. This additional level supplements the default level of
|
|
1372
|
+
* reasoning.
|
|
1373
|
+
*
|
|
1374
|
+
* @generated from field: optional bool use_energetic_reasoning_in_no_overlap_2d = 213 [default = false];
|
|
1375
|
+
*/
|
|
1376
|
+
useEnergeticReasoningInNoOverlap2d: boolean;
|
|
1377
|
+
/**
|
|
1378
|
+
* When this is true, the no_overlap_2d constraint is reinforced with
|
|
1379
|
+
* an energetic reasoning that uses an area-based energy. This can be combined
|
|
1380
|
+
* with the two other overlap heuristics above.
|
|
1381
|
+
*
|
|
1382
|
+
* @generated from field: optional bool use_area_energetic_reasoning_in_no_overlap_2d = 271 [default = false];
|
|
1383
|
+
*/
|
|
1384
|
+
useAreaEnergeticReasoningInNoOverlap2d: boolean;
|
|
1385
|
+
/**
|
|
1386
|
+
* @generated from field: optional bool use_try_edge_reasoning_in_no_overlap_2d = 299 [default = false];
|
|
1387
|
+
*/
|
|
1388
|
+
useTryEdgeReasoningInNoOverlap2d: boolean;
|
|
1389
|
+
/**
|
|
1390
|
+
* If the number of pairs to look is below this threshold, do an extra step of
|
|
1391
|
+
* propagation in the no_overlap_2d constraint by looking at all pairs of
|
|
1392
|
+
* intervals.
|
|
1393
|
+
*
|
|
1394
|
+
* @generated from field: optional int32 max_pairs_pairwise_reasoning_in_no_overlap_2d = 276 [default = 1250];
|
|
1395
|
+
*/
|
|
1396
|
+
maxPairsPairwiseReasoningInNoOverlap2d: number;
|
|
1397
|
+
/**
|
|
1398
|
+
* Detects when the space where items of a no_overlap_2d constraint can placed
|
|
1399
|
+
* is disjoint (ie., fixed boxes split the domain). When it is the case, we
|
|
1400
|
+
* can introduce a boolean for each pair <item, component> encoding whether
|
|
1401
|
+
* the item is in the component or not. Then we replace the original
|
|
1402
|
+
* no_overlap_2d constraint by one no_overlap_2d constraint for each
|
|
1403
|
+
* component, with the new booleans as the enforcement_literal of the
|
|
1404
|
+
* intervals. This is equivalent to expanding the original no_overlap_2d
|
|
1405
|
+
* constraint into a bin packing problem with each connected component being a
|
|
1406
|
+
* bin. This heuristic is only done when the number of regions to split
|
|
1407
|
+
* is less than this parameter and <= 1 disables it.
|
|
1408
|
+
*
|
|
1409
|
+
* @generated from field: optional int32 maximum_regions_to_split_in_disconnected_no_overlap_2d = 315 [default = 0];
|
|
1410
|
+
*/
|
|
1411
|
+
maximumRegionsToSplitInDisconnectedNoOverlap2d: number;
|
|
1412
|
+
/**
|
|
1413
|
+
* When set, this activates a propagator for the no_overlap_2d constraint that
|
|
1414
|
+
* uses any eventual linear constraints of the model in the form
|
|
1415
|
+
* `{start interval 1} - {end interval 2} + c*w <= ub` to detect that two
|
|
1416
|
+
* intervals must overlap in one dimension for some values of `w`. This is
|
|
1417
|
+
* particularly useful for problems where the distance between two boxes is
|
|
1418
|
+
* part of the model.
|
|
1419
|
+
*
|
|
1420
|
+
* @generated from field: optional bool use_linear3_for_no_overlap_2d_precedences = 323 [default = true];
|
|
1421
|
+
*/
|
|
1422
|
+
useLinear3ForNoOverlap2dPrecedences: boolean;
|
|
1423
|
+
/**
|
|
1424
|
+
* When set, it activates a few scheduling parameters to improve the lower
|
|
1425
|
+
* bound of scheduling problems. This is only effective with multiple workers
|
|
1426
|
+
* as it modifies the reduced_cost, lb_tree_search, and probing workers.
|
|
1427
|
+
*
|
|
1428
|
+
* @generated from field: optional bool use_dual_scheduling_heuristics = 214 [default = true];
|
|
1429
|
+
*/
|
|
1430
|
+
useDualSchedulingHeuristics: boolean;
|
|
1431
|
+
/**
|
|
1432
|
+
* Turn on extra propagation for the circuit constraint.
|
|
1433
|
+
* This can be quite slow.
|
|
1434
|
+
*
|
|
1435
|
+
* @generated from field: optional bool use_all_different_for_circuit = 311 [default = false];
|
|
1436
|
+
*/
|
|
1437
|
+
useAllDifferentForCircuit: boolean;
|
|
1438
|
+
/**
|
|
1439
|
+
* If the size of a subset of nodes of a RoutesConstraint is less than this
|
|
1440
|
+
* value, use linear constraints of size 1 and 2 (such as capacity and time
|
|
1441
|
+
* window constraints) enforced by the arc literals to compute cuts for this
|
|
1442
|
+
* subset (unless the subset size is less than
|
|
1443
|
+
* routing_cut_subset_size_for_tight_binary_relation_bound, in which case the
|
|
1444
|
+
* corresponding algorithm is used instead). The algorithm for these cuts has
|
|
1445
|
+
* a O(n^3) complexity, where n is the subset size. Hence the value of this
|
|
1446
|
+
* parameter should not be too large (e.g. 10 or 20).
|
|
1447
|
+
*
|
|
1448
|
+
* @generated from field: optional int32 routing_cut_subset_size_for_binary_relation_bound = 312 [default = 0];
|
|
1449
|
+
*/
|
|
1450
|
+
routingCutSubsetSizeForBinaryRelationBound: number;
|
|
1451
|
+
/**
|
|
1452
|
+
* Similar to above, but with a different algorithm producing better cuts, at
|
|
1453
|
+
* the price of a higher O(2^n) complexity, where n is the subset size. Hence
|
|
1454
|
+
* the value of this parameter should be small (e.g. less than 10).
|
|
1455
|
+
*
|
|
1456
|
+
* @generated from field: optional int32 routing_cut_subset_size_for_tight_binary_relation_bound = 313 [default = 0];
|
|
1457
|
+
*/
|
|
1458
|
+
routingCutSubsetSizeForTightBinaryRelationBound: number;
|
|
1459
|
+
/**
|
|
1460
|
+
* Similar to above, but with an even stronger algorithm in O(n!). We try to
|
|
1461
|
+
* be defensive and abort early or not run that often. Still the value of
|
|
1462
|
+
* that parameter shouldn't really be much more than 10.
|
|
1463
|
+
*
|
|
1464
|
+
* @generated from field: optional int32 routing_cut_subset_size_for_exact_binary_relation_bound = 316 [default = 8];
|
|
1465
|
+
*/
|
|
1466
|
+
routingCutSubsetSizeForExactBinaryRelationBound: number;
|
|
1467
|
+
/**
|
|
1468
|
+
* Similar to routing_cut_subset_size_for_exact_binary_relation_bound but
|
|
1469
|
+
* use a bound based on shortest path distances (which respect triangular
|
|
1470
|
+
* inequality). This allows to derive bounds that are valid for any superset
|
|
1471
|
+
* of a given subset. This is slow, so it shouldn't really be larger than 10.
|
|
1472
|
+
*
|
|
1473
|
+
* @generated from field: optional int32 routing_cut_subset_size_for_shortest_paths_bound = 318 [default = 8];
|
|
1474
|
+
*/
|
|
1475
|
+
routingCutSubsetSizeForShortestPathsBound: number;
|
|
1476
|
+
/**
|
|
1477
|
+
* The amount of "effort" to spend in dynamic programming for computing
|
|
1478
|
+
* routing cuts. This is in term of basic operations needed by the algorithm
|
|
1479
|
+
* in the worst case, so a value like 1e8 should take less than a second to
|
|
1480
|
+
* compute.
|
|
1481
|
+
*
|
|
1482
|
+
* @generated from field: optional double routing_cut_dp_effort = 314 [default = 1e+07];
|
|
1483
|
+
*/
|
|
1484
|
+
routingCutDpEffort: number;
|
|
1485
|
+
/**
|
|
1486
|
+
* If the length of an infeasible path is less than this value, a cut will be
|
|
1487
|
+
* added to exclude it.
|
|
1488
|
+
*
|
|
1489
|
+
* @generated from field: optional int32 routing_cut_max_infeasible_path_length = 317 [default = 6];
|
|
1490
|
+
*/
|
|
1491
|
+
routingCutMaxInfeasiblePathLength: number;
|
|
1492
|
+
/**
|
|
1493
|
+
* @generated from field: optional operations_research.sat.SatParameters.SearchBranching search_branching = 82 [default = AUTOMATIC_SEARCH];
|
|
1494
|
+
*/
|
|
1495
|
+
searchBranching: SatParameters_SearchBranching;
|
|
1496
|
+
/**
|
|
1497
|
+
* Conflict limit used in the phase that exploit the solution hint.
|
|
1498
|
+
*
|
|
1499
|
+
* @generated from field: optional int32 hint_conflict_limit = 153 [default = 10];
|
|
1500
|
+
*/
|
|
1501
|
+
hintConflictLimit: number;
|
|
1502
|
+
/**
|
|
1503
|
+
* If true, the solver tries to repair the solution given in the hint. This
|
|
1504
|
+
* search terminates after the 'hint_conflict_limit' is reached and the solver
|
|
1505
|
+
* switches to regular search. If false, then we do a FIXED_SEARCH using the
|
|
1506
|
+
* hint until the hint_conflict_limit is reached.
|
|
1507
|
+
*
|
|
1508
|
+
* @generated from field: optional bool repair_hint = 167 [default = false];
|
|
1509
|
+
*/
|
|
1510
|
+
repairHint: boolean;
|
|
1511
|
+
/**
|
|
1512
|
+
* If true, variables appearing in the solution hints will be fixed to their
|
|
1513
|
+
* hinted value.
|
|
1514
|
+
*
|
|
1515
|
+
* @generated from field: optional bool fix_variables_to_their_hinted_value = 192 [default = false];
|
|
1516
|
+
*/
|
|
1517
|
+
fixVariablesToTheirHintedValue: boolean;
|
|
1518
|
+
/**
|
|
1519
|
+
* If true, search will continuously probe Boolean variables, and integer
|
|
1520
|
+
* variable bounds. This parameter is set to true in parallel on the probing
|
|
1521
|
+
* worker.
|
|
1522
|
+
*
|
|
1523
|
+
* @generated from field: optional bool use_probing_search = 176 [default = false];
|
|
1524
|
+
*/
|
|
1525
|
+
useProbingSearch: boolean;
|
|
1526
|
+
/**
|
|
1527
|
+
* Use extended probing (probe bool_or, at_most_one, exactly_one).
|
|
1528
|
+
*
|
|
1529
|
+
* @generated from field: optional bool use_extended_probing = 269 [default = true];
|
|
1530
|
+
*/
|
|
1531
|
+
useExtendedProbing: boolean;
|
|
1532
|
+
/**
|
|
1533
|
+
* How many combinations of pairs or triplets of variables we want to scan.
|
|
1534
|
+
*
|
|
1535
|
+
* @generated from field: optional int32 probing_num_combinations_limit = 272 [default = 20000];
|
|
1536
|
+
*/
|
|
1537
|
+
probingNumCombinationsLimit: number;
|
|
1538
|
+
/**
|
|
1539
|
+
* Add a shaving phase (where the solver tries to prove that the lower or
|
|
1540
|
+
* upper bound of a variable are infeasible) to the probing search. (<= 0
|
|
1541
|
+
* disables it).
|
|
1542
|
+
*
|
|
1543
|
+
* @generated from field: optional double shaving_deterministic_time_in_probing_search = 204 [default = 0.001];
|
|
1544
|
+
*/
|
|
1545
|
+
shavingDeterministicTimeInProbingSearch: number;
|
|
1546
|
+
/**
|
|
1547
|
+
* Specifies the amount of deterministic time spent of each try at shaving a
|
|
1548
|
+
* bound in the shaving search.
|
|
1549
|
+
*
|
|
1550
|
+
* @generated from field: optional double shaving_search_deterministic_time = 205 [default = 0.1];
|
|
1551
|
+
*/
|
|
1552
|
+
shavingSearchDeterministicTime: number;
|
|
1553
|
+
/**
|
|
1554
|
+
* Specifies the threshold between two modes in the shaving procedure.
|
|
1555
|
+
* If the range of the variable/objective is less than this threshold, then
|
|
1556
|
+
* the shaving procedure will try to remove values one by one. Otherwise, it
|
|
1557
|
+
* will try to remove one range at a time.
|
|
1558
|
+
*
|
|
1559
|
+
* @generated from field: optional int64 shaving_search_threshold = 290 [default = 64];
|
|
1560
|
+
*/
|
|
1561
|
+
shavingSearchThreshold: bigint;
|
|
1562
|
+
/**
|
|
1563
|
+
* If true, search will search in ascending max objective value (when
|
|
1564
|
+
* minimizing) starting from the lower bound of the objective.
|
|
1565
|
+
*
|
|
1566
|
+
* @generated from field: optional bool use_objective_lb_search = 228 [default = false];
|
|
1567
|
+
*/
|
|
1568
|
+
useObjectiveLbSearch: boolean;
|
|
1569
|
+
/**
|
|
1570
|
+
* This search differs from the previous search as it will not use assumptions
|
|
1571
|
+
* to bound the objective, and it will recreate a full model with the
|
|
1572
|
+
* hardcoded objective value.
|
|
1573
|
+
*
|
|
1574
|
+
* @generated from field: optional bool use_objective_shaving_search = 253 [default = false];
|
|
1575
|
+
*/
|
|
1576
|
+
useObjectiveShavingSearch: boolean;
|
|
1577
|
+
/**
|
|
1578
|
+
* This search takes all Boolean or integer variables, and maximize or
|
|
1579
|
+
* minimize them in order to reduce their domain. -1 is automatic, otherwise
|
|
1580
|
+
* value 0 disables it, and 1, 2, or 3 changes something.
|
|
1581
|
+
*
|
|
1582
|
+
* @generated from field: optional int32 variables_shaving_level = 289 [default = -1];
|
|
1583
|
+
*/
|
|
1584
|
+
variablesShavingLevel: number;
|
|
1585
|
+
/**
|
|
1586
|
+
* The solver ignores the pseudo costs of variables with number of recordings
|
|
1587
|
+
* less than this threshold.
|
|
1588
|
+
*
|
|
1589
|
+
* @generated from field: optional int64 pseudo_cost_reliability_threshold = 123 [default = 100];
|
|
1590
|
+
*/
|
|
1591
|
+
pseudoCostReliabilityThreshold: bigint;
|
|
1592
|
+
/**
|
|
1593
|
+
* The default optimization method is a simple "linear scan", each time trying
|
|
1594
|
+
* to find a better solution than the previous one. If this is true, then we
|
|
1595
|
+
* use a core-based approach (like in max-SAT) when we try to increase the
|
|
1596
|
+
* lower bound instead.
|
|
1597
|
+
*
|
|
1598
|
+
* @generated from field: optional bool optimize_with_core = 83 [default = false];
|
|
1599
|
+
*/
|
|
1600
|
+
optimizeWithCore: boolean;
|
|
1601
|
+
/**
|
|
1602
|
+
* Do a more conventional tree search (by opposition to SAT based one) where
|
|
1603
|
+
* we keep all the explored node in a tree. This is meant to be used in a
|
|
1604
|
+
* portfolio and focus on improving the objective lower bound. Keeping the
|
|
1605
|
+
* whole tree allow us to report a better objective lower bound coming from
|
|
1606
|
+
* the worst open node in the tree.
|
|
1607
|
+
*
|
|
1608
|
+
* @generated from field: optional bool optimize_with_lb_tree_search = 188 [default = false];
|
|
1609
|
+
*/
|
|
1610
|
+
optimizeWithLbTreeSearch: boolean;
|
|
1611
|
+
/**
|
|
1612
|
+
* Experimental. Save the current LP basis at each node of the search tree so
|
|
1613
|
+
* that when we jump around, we can load it and reduce the number of LP
|
|
1614
|
+
* iterations needed.
|
|
1615
|
+
*
|
|
1616
|
+
* It currently works okay if we do not change the lp with cuts or
|
|
1617
|
+
* simplification... More work is needed to make it robust in all cases.
|
|
1618
|
+
*
|
|
1619
|
+
* @generated from field: optional bool save_lp_basis_in_lb_tree_search = 284 [default = false];
|
|
1620
|
+
*/
|
|
1621
|
+
saveLpBasisInLbTreeSearch: boolean;
|
|
1622
|
+
/**
|
|
1623
|
+
* If non-negative, perform a binary search on the objective variable in order
|
|
1624
|
+
* to find an [min, max] interval outside of which the solver proved unsat/sat
|
|
1625
|
+
* under this amount of conflict. This can quickly reduce the objective domain
|
|
1626
|
+
* on some problems.
|
|
1627
|
+
*
|
|
1628
|
+
* @generated from field: optional int32 binary_search_num_conflicts = 99 [default = -1];
|
|
1629
|
+
*/
|
|
1630
|
+
binarySearchNumConflicts: number;
|
|
1631
|
+
/**
|
|
1632
|
+
* This has no effect if optimize_with_core is false. If true, use a different
|
|
1633
|
+
* core-based algorithm similar to the max-HS algo for max-SAT. This is a
|
|
1634
|
+
* hybrid MIP/CP approach and it uses a MIP solver in addition to the CP/SAT
|
|
1635
|
+
* one. This is also related to the PhD work of tobyodavies@
|
|
1636
|
+
* "Automatic Logic-Based Benders Decomposition with MiniZinc"
|
|
1637
|
+
* http://aaai.org/ocs/index.php/AAAI/AAAI17/paper/view/14489
|
|
1638
|
+
*
|
|
1639
|
+
* @generated from field: optional bool optimize_with_max_hs = 85 [default = false];
|
|
1640
|
+
*/
|
|
1641
|
+
optimizeWithMaxHs: boolean;
|
|
1642
|
+
/**
|
|
1643
|
+
* Parameters for an heuristic similar to the one described in the paper:
|
|
1644
|
+
* "Feasibility Jump: an LP-free Lagrangian MIP heuristic", Bjørnar
|
|
1645
|
+
* Luteberget, Giorgio Sartor, 2023, Mathematical Programming Computation.
|
|
1646
|
+
*
|
|
1647
|
+
* @generated from field: optional bool use_feasibility_jump = 265 [default = true];
|
|
1648
|
+
*/
|
|
1649
|
+
useFeasibilityJump: boolean;
|
|
1650
|
+
/**
|
|
1651
|
+
* Disable every other type of subsolver, setting this turns CP-SAT into a
|
|
1652
|
+
* pure local-search solver.
|
|
1653
|
+
*
|
|
1654
|
+
* @generated from field: optional bool use_ls_only = 240 [default = false];
|
|
1655
|
+
*/
|
|
1656
|
+
useLsOnly: boolean;
|
|
1657
|
+
/**
|
|
1658
|
+
* On each restart, we randomly choose if we use decay (with this parameter)
|
|
1659
|
+
* or no decay.
|
|
1660
|
+
*
|
|
1661
|
+
* @generated from field: optional double feasibility_jump_decay = 242 [default = 0.95];
|
|
1662
|
+
*/
|
|
1663
|
+
feasibilityJumpDecay: number;
|
|
1664
|
+
/**
|
|
1665
|
+
* How much do we linearize the problem in the local search code.
|
|
1666
|
+
*
|
|
1667
|
+
* @generated from field: optional int32 feasibility_jump_linearization_level = 257 [default = 2];
|
|
1668
|
+
*/
|
|
1669
|
+
feasibilityJumpLinearizationLevel: number;
|
|
1670
|
+
/**
|
|
1671
|
+
* This is a factor that directly influence the work before each restart.
|
|
1672
|
+
* Increasing it leads to longer restart.
|
|
1673
|
+
*
|
|
1674
|
+
* @generated from field: optional int32 feasibility_jump_restart_factor = 258 [default = 1];
|
|
1675
|
+
*/
|
|
1676
|
+
feasibilityJumpRestartFactor: number;
|
|
1677
|
+
/**
|
|
1678
|
+
* How much dtime for each LS batch.
|
|
1679
|
+
*
|
|
1680
|
+
* @generated from field: optional double feasibility_jump_batch_dtime = 292 [default = 0.1];
|
|
1681
|
+
*/
|
|
1682
|
+
feasibilityJumpBatchDtime: number;
|
|
1683
|
+
/**
|
|
1684
|
+
* Probability for a variable to have a non default value upon restarts or
|
|
1685
|
+
* perturbations.
|
|
1686
|
+
*
|
|
1687
|
+
* @generated from field: optional double feasibility_jump_var_randomization_probability = 247 [default = 0.05];
|
|
1688
|
+
*/
|
|
1689
|
+
feasibilityJumpVarRandomizationProbability: number;
|
|
1690
|
+
/**
|
|
1691
|
+
* Max distance between the default value and the pertubated value relative to
|
|
1692
|
+
* the range of the domain of the variable.
|
|
1693
|
+
*
|
|
1694
|
+
* @generated from field: optional double feasibility_jump_var_perburbation_range_ratio = 248 [default = 0.2];
|
|
1695
|
+
*/
|
|
1696
|
+
feasibilityJumpVarPerburbationRangeRatio: number;
|
|
1697
|
+
/**
|
|
1698
|
+
* When stagnating, feasibility jump will either restart from a default
|
|
1699
|
+
* solution (with some possible randomization), or randomly pertubate the
|
|
1700
|
+
* current solution. This parameter selects the first option.
|
|
1701
|
+
*
|
|
1702
|
+
* @generated from field: optional bool feasibility_jump_enable_restarts = 250 [default = true];
|
|
1703
|
+
*/
|
|
1704
|
+
feasibilityJumpEnableRestarts: boolean;
|
|
1705
|
+
/**
|
|
1706
|
+
* Maximum size of no_overlap or no_overlap_2d constraint for a quadratic
|
|
1707
|
+
* expansion. This might look a lot, but by expanding such constraint, we get
|
|
1708
|
+
* a linear time evaluation per single variable moves instead of a slow O(n
|
|
1709
|
+
* log n) one.
|
|
1710
|
+
*
|
|
1711
|
+
* @generated from field: optional int32 feasibility_jump_max_expanded_constraint_size = 264 [default = 500];
|
|
1712
|
+
*/
|
|
1713
|
+
feasibilityJumpMaxExpandedConstraintSize: number;
|
|
1714
|
+
/**
|
|
1715
|
+
* This will create incomplete subsolvers (that are not LNS subsolvers)
|
|
1716
|
+
* that use the feasibility jump code to find improving solution, treating
|
|
1717
|
+
* the objective improvement as a hard constraint.
|
|
1718
|
+
*
|
|
1719
|
+
* @generated from field: optional int32 num_violation_ls = 244 [default = 0];
|
|
1720
|
+
*/
|
|
1721
|
+
numViolationLs: number;
|
|
1722
|
+
/**
|
|
1723
|
+
* How long violation_ls should wait before perturbating a solution.
|
|
1724
|
+
*
|
|
1725
|
+
* @generated from field: optional int32 violation_ls_perturbation_period = 249 [default = 100];
|
|
1726
|
+
*/
|
|
1727
|
+
violationLsPerturbationPeriod: number;
|
|
1728
|
+
/**
|
|
1729
|
+
* Probability of using compound move search each restart.
|
|
1730
|
+
* TODO(user): Add reference to paper when published.
|
|
1731
|
+
*
|
|
1732
|
+
* @generated from field: optional double violation_ls_compound_move_probability = 259 [default = 0.5];
|
|
1733
|
+
*/
|
|
1734
|
+
violationLsCompoundMoveProbability: number;
|
|
1735
|
+
/**
|
|
1736
|
+
* Enables shared tree search.
|
|
1737
|
+
* If positive, start this many complete worker threads to explore a shared
|
|
1738
|
+
* search tree. These workers communicate objective bounds and simple decision
|
|
1739
|
+
* nogoods relating to the shared prefix of the tree, and will avoid exploring
|
|
1740
|
+
* the same subtrees as one another.
|
|
1741
|
+
* Specifying a negative number uses a heuristic to select an appropriate
|
|
1742
|
+
* number of shared tree workeres based on the total number of workers.
|
|
1743
|
+
*
|
|
1744
|
+
* @generated from field: optional int32 shared_tree_num_workers = 235 [default = -1];
|
|
1745
|
+
*/
|
|
1746
|
+
sharedTreeNumWorkers: number;
|
|
1747
|
+
/**
|
|
1748
|
+
* Set on shared subtree workers. Users should not set this directly.
|
|
1749
|
+
*
|
|
1750
|
+
* @generated from field: optional bool use_shared_tree_search = 236 [default = false];
|
|
1751
|
+
*/
|
|
1752
|
+
useSharedTreeSearch: boolean;
|
|
1753
|
+
/**
|
|
1754
|
+
* Minimum restarts before a worker will replace a subtree
|
|
1755
|
+
* that looks "bad" based on the average LBD of learned clauses.
|
|
1756
|
+
*
|
|
1757
|
+
* @generated from field: optional int32 shared_tree_worker_min_restarts_per_subtree = 282 [default = 1];
|
|
1758
|
+
*/
|
|
1759
|
+
sharedTreeWorkerMinRestartsPerSubtree: number;
|
|
1760
|
+
/**
|
|
1761
|
+
* If true, workers share more of the information from their local trail.
|
|
1762
|
+
* Specifically, literals implied by the shared tree decisions.
|
|
1763
|
+
*
|
|
1764
|
+
* @generated from field: optional bool shared_tree_worker_enable_trail_sharing = 295 [default = true];
|
|
1765
|
+
*/
|
|
1766
|
+
sharedTreeWorkerEnableTrailSharing: boolean;
|
|
1767
|
+
/**
|
|
1768
|
+
* If true, shared tree workers share their target phase when returning an
|
|
1769
|
+
* assigned subtree for the next worker to use.
|
|
1770
|
+
*
|
|
1771
|
+
* @generated from field: optional bool shared_tree_worker_enable_phase_sharing = 304 [default = true];
|
|
1772
|
+
*/
|
|
1773
|
+
sharedTreeWorkerEnablePhaseSharing: boolean;
|
|
1774
|
+
/**
|
|
1775
|
+
* How many open leaf nodes should the shared tree maintain per worker.
|
|
1776
|
+
*
|
|
1777
|
+
* @generated from field: optional double shared_tree_open_leaves_per_worker = 281 [default = 2];
|
|
1778
|
+
*/
|
|
1779
|
+
sharedTreeOpenLeavesPerWorker: number;
|
|
1780
|
+
/**
|
|
1781
|
+
* In order to limit total shared memory and communication overhead, limit the
|
|
1782
|
+
* total number of nodes that may be generated in the shared tree. If the
|
|
1783
|
+
* shared tree runs out of unassigned leaves, workers act as portfolio
|
|
1784
|
+
* workers. Note: this limit includes interior nodes, not just leaves.
|
|
1785
|
+
*
|
|
1786
|
+
* @generated from field: optional int32 shared_tree_max_nodes_per_worker = 238 [default = 10000];
|
|
1787
|
+
*/
|
|
1788
|
+
sharedTreeMaxNodesPerWorker: number;
|
|
1789
|
+
/**
|
|
1790
|
+
* @generated from field: optional operations_research.sat.SatParameters.SharedTreeSplitStrategy shared_tree_split_strategy = 239 [default = SPLIT_STRATEGY_AUTO];
|
|
1791
|
+
*/
|
|
1792
|
+
sharedTreeSplitStrategy: SatParameters_SharedTreeSplitStrategy;
|
|
1793
|
+
/**
|
|
1794
|
+
* How much deeper compared to the ideal max depth of the tree is considered
|
|
1795
|
+
* "balanced" enough to still accept a split. Without such a tolerance,
|
|
1796
|
+
* sometimes the tree can only be split by a single worker, and they may not
|
|
1797
|
+
* generate a split for some time. In contrast, with a tolerance of 1, at
|
|
1798
|
+
* least half of all workers should be able to split the tree as soon as a
|
|
1799
|
+
* split becomes required. This only has an effect on
|
|
1800
|
+
* SPLIT_STRATEGY_BALANCED_TREE and SPLIT_STRATEGY_DISCREPANCY.
|
|
1801
|
+
*
|
|
1802
|
+
* @generated from field: optional int32 shared_tree_balance_tolerance = 305 [default = 1];
|
|
1803
|
+
*/
|
|
1804
|
+
sharedTreeBalanceTolerance: number;
|
|
1805
|
+
/**
|
|
1806
|
+
* How much dtime a worker will wait between proposing splits.
|
|
1807
|
+
* This limits the contention in splitting the shared tree, and also reduces
|
|
1808
|
+
* the number of too-easy subtrees that are generates.
|
|
1809
|
+
*
|
|
1810
|
+
* @generated from field: optional double shared_tree_split_min_dtime = 328 [default = 0.1];
|
|
1811
|
+
*/
|
|
1812
|
+
sharedTreeSplitMinDtime: number;
|
|
1813
|
+
/**
|
|
1814
|
+
* Whether we enumerate all solutions of a problem without objective.
|
|
1815
|
+
*
|
|
1816
|
+
* WARNING:
|
|
1817
|
+
* - This can be used with num_workers > 1 but then each solutions can be
|
|
1818
|
+
* found more than once, so it is up to the client to deduplicate them.
|
|
1819
|
+
* - If keep_all_feasible_solutions_in_presolve is unset, we will set it to
|
|
1820
|
+
* true as otherwise, many feasible solution can just be removed by the
|
|
1821
|
+
* presolve. It is still possible to manually set this to false if one only
|
|
1822
|
+
* wants to enumerate all solutions of the presolved model.
|
|
1823
|
+
*
|
|
1824
|
+
* @generated from field: optional bool enumerate_all_solutions = 87 [default = false];
|
|
1825
|
+
*/
|
|
1826
|
+
enumerateAllSolutions: boolean;
|
|
1827
|
+
/**
|
|
1828
|
+
* If true, we disable the presolve reductions that remove feasible solutions
|
|
1829
|
+
* from the search space. Such solution are usually dominated by a "better"
|
|
1830
|
+
* solution that is kept, but depending on the situation, we might want to
|
|
1831
|
+
* keep all solutions.
|
|
1832
|
+
*
|
|
1833
|
+
* A trivial example is when a variable is unused. If this is true, then the
|
|
1834
|
+
* presolve will not fix it to an arbitrary value and it will stay in the
|
|
1835
|
+
* search space.
|
|
1836
|
+
*
|
|
1837
|
+
* @generated from field: optional bool keep_all_feasible_solutions_in_presolve = 173 [default = false];
|
|
1838
|
+
*/
|
|
1839
|
+
keepAllFeasibleSolutionsInPresolve: boolean;
|
|
1840
|
+
/**
|
|
1841
|
+
* If true, add information about the derived variable domains to the
|
|
1842
|
+
* CpSolverResponse. It is an option because it makes the response slighly
|
|
1843
|
+
* bigger and there is a bit more work involved during the postsolve to
|
|
1844
|
+
* construct it, but it should still have a low overhead. See the
|
|
1845
|
+
* tightened_variables field in CpSolverResponse for more details.
|
|
1846
|
+
*
|
|
1847
|
+
* @generated from field: optional bool fill_tightened_domains_in_response = 132 [default = false];
|
|
1848
|
+
*/
|
|
1849
|
+
fillTightenedDomainsInResponse: boolean;
|
|
1850
|
+
/**
|
|
1851
|
+
* If true, the final response addition_solutions field will be filled with
|
|
1852
|
+
* all solutions from our solutions pool.
|
|
1853
|
+
*
|
|
1854
|
+
* Note that if both this field and enumerate_all_solutions is true, we will
|
|
1855
|
+
* copy to the pool all of the solution found. So if solution_pool_size is big
|
|
1856
|
+
* enough, you can get all solutions this way instead of using the solution
|
|
1857
|
+
* callback.
|
|
1858
|
+
*
|
|
1859
|
+
* Note that this only affect the "final" solution, not the one passed to the
|
|
1860
|
+
* solution callbacks.
|
|
1861
|
+
*
|
|
1862
|
+
* @generated from field: optional bool fill_additional_solutions_in_response = 194 [default = false];
|
|
1863
|
+
*/
|
|
1864
|
+
fillAdditionalSolutionsInResponse: boolean;
|
|
1865
|
+
/**
|
|
1866
|
+
* If true, the solver will add a default integer branching strategy to the
|
|
1867
|
+
* already defined search strategy. If not, some variable might still not be
|
|
1868
|
+
* fixed at the end of the search. For now we assume these variable can just
|
|
1869
|
+
* be set to their lower bound.
|
|
1870
|
+
*
|
|
1871
|
+
* @generated from field: optional bool instantiate_all_variables = 106 [default = true];
|
|
1872
|
+
*/
|
|
1873
|
+
instantiateAllVariables: boolean;
|
|
1874
|
+
/**
|
|
1875
|
+
* If true, then the precedences propagator try to detect for each variable if
|
|
1876
|
+
* it has a set of "optional incoming arc" for which at least one of them is
|
|
1877
|
+
* present. This is usually useful to have but can be slow on model with a lot
|
|
1878
|
+
* of precedence.
|
|
1879
|
+
*
|
|
1880
|
+
* @generated from field: optional bool auto_detect_greater_than_at_least_one_of = 95 [default = true];
|
|
1881
|
+
*/
|
|
1882
|
+
autoDetectGreaterThanAtLeastOneOf: boolean;
|
|
1883
|
+
/**
|
|
1884
|
+
* For an optimization problem, stop the solver as soon as we have a solution.
|
|
1885
|
+
*
|
|
1886
|
+
* @generated from field: optional bool stop_after_first_solution = 98 [default = false];
|
|
1887
|
+
*/
|
|
1888
|
+
stopAfterFirstSolution: boolean;
|
|
1889
|
+
/**
|
|
1890
|
+
* Mainly used when improving the presolver. When true, stops the solver after
|
|
1891
|
+
* the presolve is complete (or after loading and root level propagation).
|
|
1892
|
+
*
|
|
1893
|
+
* @generated from field: optional bool stop_after_presolve = 149 [default = false];
|
|
1894
|
+
*/
|
|
1895
|
+
stopAfterPresolve: boolean;
|
|
1896
|
+
/**
|
|
1897
|
+
* @generated from field: optional bool stop_after_root_propagation = 252 [default = false];
|
|
1898
|
+
*/
|
|
1899
|
+
stopAfterRootPropagation: boolean;
|
|
1900
|
+
/**
|
|
1901
|
+
* Initial parameters for neighborhood generation.
|
|
1902
|
+
*
|
|
1903
|
+
* @generated from field: optional double lns_initial_difficulty = 307 [default = 0.5];
|
|
1904
|
+
*/
|
|
1905
|
+
lnsInitialDifficulty: number;
|
|
1906
|
+
/**
|
|
1907
|
+
* @generated from field: optional double lns_initial_deterministic_limit = 308 [default = 0.1];
|
|
1908
|
+
*/
|
|
1909
|
+
lnsInitialDeterministicLimit: number;
|
|
1910
|
+
/**
|
|
1911
|
+
* Testing parameters used to disable all lns workers.
|
|
1912
|
+
*
|
|
1913
|
+
* @generated from field: optional bool use_lns = 283 [default = true];
|
|
1914
|
+
*/
|
|
1915
|
+
useLns: boolean;
|
|
1916
|
+
/**
|
|
1917
|
+
* Experimental parameters to disable everything but lns.
|
|
1918
|
+
*
|
|
1919
|
+
* @generated from field: optional bool use_lns_only = 101 [default = false];
|
|
1920
|
+
*/
|
|
1921
|
+
useLnsOnly: boolean;
|
|
1922
|
+
/**
|
|
1923
|
+
* Size of the top-n different solutions kept by the solver.
|
|
1924
|
+
* This parameter must be > 0. Currently, having this larger than one mainly
|
|
1925
|
+
* impact the "base" solution chosen for a LNS/LS fragment.
|
|
1926
|
+
*
|
|
1927
|
+
* @generated from field: optional int32 solution_pool_size = 193 [default = 3];
|
|
1928
|
+
*/
|
|
1929
|
+
solutionPoolSize: number;
|
|
1930
|
+
/**
|
|
1931
|
+
* If solution_pool_size is <= this, we will use DP to keep a "diverse" set
|
|
1932
|
+
* of solutions (the one further apart via hamming distance) in the pool.
|
|
1933
|
+
* Setting this to large value might be slow, especially if your solution are
|
|
1934
|
+
* large.
|
|
1935
|
+
*
|
|
1936
|
+
* @generated from field: optional int32 solution_pool_diversity_limit = 329 [default = 10];
|
|
1937
|
+
*/
|
|
1938
|
+
solutionPoolDiversityLimit: number;
|
|
1939
|
+
/**
|
|
1940
|
+
* In order to not get stuck in local optima, when this is non-zero, we try to
|
|
1941
|
+
* also work on "older" solutions with a worse objective value so we get a
|
|
1942
|
+
* chance to follow a different LS/LNS trajectory.
|
|
1943
|
+
*
|
|
1944
|
+
* @generated from field: optional int32 alternative_pool_size = 325 [default = 1];
|
|
1945
|
+
*/
|
|
1946
|
+
alternativePoolSize: number;
|
|
1947
|
+
/**
|
|
1948
|
+
* Turns on relaxation induced neighborhood generator.
|
|
1949
|
+
*
|
|
1950
|
+
* @generated from field: optional bool use_rins_lns = 129 [default = true];
|
|
1951
|
+
*/
|
|
1952
|
+
useRinsLns: boolean;
|
|
1953
|
+
/**
|
|
1954
|
+
* Adds a feasibility pump subsolver along with lns subsolvers.
|
|
1955
|
+
*
|
|
1956
|
+
* @generated from field: optional bool use_feasibility_pump = 164 [default = true];
|
|
1957
|
+
*/
|
|
1958
|
+
useFeasibilityPump: boolean;
|
|
1959
|
+
/**
|
|
1960
|
+
* Turns on neighborhood generator based on local branching LP. Based on Huang
|
|
1961
|
+
* et al., "Local Branching Relaxation Heuristics for Integer Linear
|
|
1962
|
+
* Programs", 2023.
|
|
1963
|
+
*
|
|
1964
|
+
* @generated from field: optional bool use_lb_relax_lns = 255 [default = true];
|
|
1965
|
+
*/
|
|
1966
|
+
useLbRelaxLns: boolean;
|
|
1967
|
+
/**
|
|
1968
|
+
* Only use lb-relax if we have at least that many workers.
|
|
1969
|
+
*
|
|
1970
|
+
* @generated from field: optional int32 lb_relax_num_workers_threshold = 296 [default = 16];
|
|
1971
|
+
*/
|
|
1972
|
+
lbRelaxNumWorkersThreshold: number;
|
|
1973
|
+
/**
|
|
1974
|
+
* @generated from field: optional operations_research.sat.SatParameters.FPRoundingMethod fp_rounding = 165 [default = PROPAGATION_ASSISTED];
|
|
1975
|
+
*/
|
|
1976
|
+
fpRounding: SatParameters_FPRoundingMethod;
|
|
1977
|
+
/**
|
|
1978
|
+
* If true, registers more lns subsolvers with different parameters.
|
|
1979
|
+
*
|
|
1980
|
+
* @generated from field: optional bool diversify_lns_params = 137 [default = false];
|
|
1981
|
+
*/
|
|
1982
|
+
diversifyLnsParams: boolean;
|
|
1983
|
+
/**
|
|
1984
|
+
* Randomize fixed search.
|
|
1985
|
+
*
|
|
1986
|
+
* @generated from field: optional bool randomize_search = 103 [default = false];
|
|
1987
|
+
*/
|
|
1988
|
+
randomizeSearch: boolean;
|
|
1989
|
+
/**
|
|
1990
|
+
* Search randomization will collect the top
|
|
1991
|
+
* 'search_random_variable_pool_size' valued variables, and pick one randomly.
|
|
1992
|
+
* The value of the variable is specific to each strategy.
|
|
1993
|
+
*
|
|
1994
|
+
* @generated from field: optional int64 search_random_variable_pool_size = 104 [default = 0];
|
|
1995
|
+
*/
|
|
1996
|
+
searchRandomVariablePoolSize: bigint;
|
|
1997
|
+
/**
|
|
1998
|
+
* Experimental code: specify if the objective pushes all tasks toward the
|
|
1999
|
+
* start of the schedule.
|
|
2000
|
+
*
|
|
2001
|
+
* @generated from field: optional bool push_all_tasks_toward_start = 262 [default = false];
|
|
2002
|
+
*/
|
|
2003
|
+
pushAllTasksTowardStart: boolean;
|
|
2004
|
+
/**
|
|
2005
|
+
* If true, we automatically detect variables whose constraint are always
|
|
2006
|
+
* enforced by the same literal and we mark them as optional. This allows
|
|
2007
|
+
* to propagate them as if they were present in some situation.
|
|
2008
|
+
*
|
|
2009
|
+
* TODO(user): This is experimental and seems to lead to wrong optimal in
|
|
2010
|
+
* some situation. It should however gives correct solutions. Fix.
|
|
2011
|
+
*
|
|
2012
|
+
* @generated from field: optional bool use_optional_variables = 108 [default = false];
|
|
2013
|
+
*/
|
|
2014
|
+
useOptionalVariables: boolean;
|
|
2015
|
+
/**
|
|
2016
|
+
* The solver usually exploit the LP relaxation of a model. If this option is
|
|
2017
|
+
* true, then whatever is infered by the LP will be used like an heuristic to
|
|
2018
|
+
* compute EXACT propagation on the IP. So with this option, there is no
|
|
2019
|
+
* numerical imprecision issues.
|
|
2020
|
+
*
|
|
2021
|
+
* @generated from field: optional bool use_exact_lp_reason = 109 [default = true];
|
|
2022
|
+
*/
|
|
2023
|
+
useExactLpReason: boolean;
|
|
2024
|
+
/**
|
|
2025
|
+
* This can be beneficial if there is a lot of no-overlap constraints but a
|
|
2026
|
+
* relatively low number of different intervals in the problem. Like 1000
|
|
2027
|
+
* intervals, but 1M intervals in the no-overlap constraints covering them.
|
|
2028
|
+
*
|
|
2029
|
+
* @generated from field: optional bool use_combined_no_overlap = 133 [default = false];
|
|
2030
|
+
*/
|
|
2031
|
+
useCombinedNoOverlap: boolean;
|
|
2032
|
+
/**
|
|
2033
|
+
* All at_most_one constraints with a size <= param will be replaced by a
|
|
2034
|
+
* quadratic number of binary implications.
|
|
2035
|
+
*
|
|
2036
|
+
* @generated from field: optional int32 at_most_one_max_expansion_size = 270 [default = 3];
|
|
2037
|
+
*/
|
|
2038
|
+
atMostOneMaxExpansionSize: number;
|
|
2039
|
+
/**
|
|
2040
|
+
* Indicates if the CP-SAT layer should catch Control-C (SIGINT) signals
|
|
2041
|
+
* when calling solve. If set, catching the SIGINT signal will terminate the
|
|
2042
|
+
* search gracefully, as if a time limit was reached.
|
|
2043
|
+
*
|
|
2044
|
+
* @generated from field: optional bool catch_sigint_signal = 135 [default = true];
|
|
2045
|
+
*/
|
|
2046
|
+
catchSigintSignal: boolean;
|
|
2047
|
+
/**
|
|
2048
|
+
* Stores and exploits "implied-bounds" in the solver. That is, relations of
|
|
2049
|
+
* the form literal => (var >= bound). This is currently used to derive
|
|
2050
|
+
* stronger cuts.
|
|
2051
|
+
*
|
|
2052
|
+
* @generated from field: optional bool use_implied_bounds = 144 [default = true];
|
|
2053
|
+
*/
|
|
2054
|
+
useImpliedBounds: boolean;
|
|
2055
|
+
/**
|
|
2056
|
+
* Whether we try to do a few degenerate iteration at the end of an LP solve
|
|
2057
|
+
* to minimize the fractionality of the integer variable in the basis. This
|
|
2058
|
+
* helps on some problems, but not so much on others. It also cost of bit of
|
|
2059
|
+
* time to do such polish step.
|
|
2060
|
+
*
|
|
2061
|
+
* @generated from field: optional bool polish_lp_solution = 175 [default = false];
|
|
2062
|
+
*/
|
|
2063
|
+
polishLpSolution: boolean;
|
|
2064
|
+
/**
|
|
2065
|
+
* The internal LP tolerances used by CP-SAT. These applies to the internal
|
|
2066
|
+
* and scaled problem. If the domains of your variables are large it might be
|
|
2067
|
+
* good to use lower tolerances. If your problem is binary with low
|
|
2068
|
+
* coefficients, it might be good to use higher ones to speed-up the lp
|
|
2069
|
+
* solves.
|
|
2070
|
+
*
|
|
2071
|
+
* @generated from field: optional double lp_primal_tolerance = 266 [default = 1e-07];
|
|
2072
|
+
*/
|
|
2073
|
+
lpPrimalTolerance: number;
|
|
2074
|
+
/**
|
|
2075
|
+
* @generated from field: optional double lp_dual_tolerance = 267 [default = 1e-07];
|
|
2076
|
+
*/
|
|
2077
|
+
lpDualTolerance: number;
|
|
2078
|
+
/**
|
|
2079
|
+
* Temporary flag util the feature is more mature. This convert intervals to
|
|
2080
|
+
* the newer proto format that support affine start/var/end instead of just
|
|
2081
|
+
* variables.
|
|
2082
|
+
*
|
|
2083
|
+
* @generated from field: optional bool convert_intervals = 177 [default = true];
|
|
2084
|
+
*/
|
|
2085
|
+
convertIntervals: boolean;
|
|
2086
|
+
/**
|
|
2087
|
+
* Whether we try to automatically detect the symmetries in a model and
|
|
2088
|
+
* exploit them. Currently, at level 1 we detect them in presolve and try
|
|
2089
|
+
* to fix Booleans. At level 2, we also do some form of dynamic symmetry
|
|
2090
|
+
* breaking during search. At level 3, we also detect symmetries for very
|
|
2091
|
+
* large models, which can be slow. At level 4, we try to break as much
|
|
2092
|
+
* symmetry as possible in presolve.
|
|
2093
|
+
*
|
|
2094
|
+
* @generated from field: optional int32 symmetry_level = 183 [default = 2];
|
|
2095
|
+
*/
|
|
2096
|
+
symmetryLevel: number;
|
|
2097
|
+
/**
|
|
2098
|
+
* When we have symmetry, it is possible to "fold" all variables from the same
|
|
2099
|
+
* orbit into a single variable, while having the same power of LP relaxation.
|
|
2100
|
+
* This can help significantly on symmetric problem. However there is
|
|
2101
|
+
* currently a bit of overhead as the rest of the solver need to do some
|
|
2102
|
+
* translation between the folded LP and the rest of the problem.
|
|
2103
|
+
*
|
|
2104
|
+
* @generated from field: optional bool use_symmetry_in_lp = 301 [default = false];
|
|
2105
|
+
*/
|
|
2106
|
+
useSymmetryInLp: boolean;
|
|
2107
|
+
/**
|
|
2108
|
+
* Experimental. This will compute the symmetry of the problem once and for
|
|
2109
|
+
* all. All presolve operations we do should keep the symmetry group intact
|
|
2110
|
+
* or modify it properly. For now we have really little support for this. We
|
|
2111
|
+
* will disable a bunch of presolve operations that could be supported.
|
|
2112
|
+
*
|
|
2113
|
+
* @generated from field: optional bool keep_symmetry_in_presolve = 303 [default = false];
|
|
2114
|
+
*/
|
|
2115
|
+
keepSymmetryInPresolve: boolean;
|
|
2116
|
+
/**
|
|
2117
|
+
* Deterministic time limit for symmetry detection.
|
|
2118
|
+
*
|
|
2119
|
+
* @generated from field: optional double symmetry_detection_deterministic_time_limit = 302 [default = 1];
|
|
2120
|
+
*/
|
|
2121
|
+
symmetryDetectionDeterministicTimeLimit: number;
|
|
2122
|
+
/**
|
|
2123
|
+
* The new linear propagation code treat all constraints at once and use
|
|
2124
|
+
* an adaptation of Bellman-Ford-Tarjan to propagate constraint in a smarter
|
|
2125
|
+
* order and potentially detect propagation cycle earlier.
|
|
2126
|
+
*
|
|
2127
|
+
* @generated from field: optional bool new_linear_propagation = 224 [default = true];
|
|
2128
|
+
*/
|
|
2129
|
+
newLinearPropagation: boolean;
|
|
2130
|
+
/**
|
|
2131
|
+
* Linear constraints that are not pseudo-Boolean and that are longer than
|
|
2132
|
+
* this size will be split into sqrt(size) intermediate sums in order to have
|
|
2133
|
+
* faster propation in the CP engine.
|
|
2134
|
+
*
|
|
2135
|
+
* @generated from field: optional int32 linear_split_size = 256 [default = 100];
|
|
2136
|
+
*/
|
|
2137
|
+
linearSplitSize: number;
|
|
2138
|
+
/**
|
|
2139
|
+
* A non-negative level indicating the type of constraints we consider in the
|
|
2140
|
+
* LP relaxation. At level zero, no LP relaxation is used. At level 1, only
|
|
2141
|
+
* the linear constraint and full encoding are added. At level 2, we also add
|
|
2142
|
+
* all the Boolean constraints.
|
|
2143
|
+
*
|
|
2144
|
+
* @generated from field: optional int32 linearization_level = 90 [default = 1];
|
|
2145
|
+
*/
|
|
2146
|
+
linearizationLevel: number;
|
|
2147
|
+
/**
|
|
2148
|
+
* A non-negative level indicating how much we should try to fully encode
|
|
2149
|
+
* Integer variables as Boolean.
|
|
2150
|
+
*
|
|
2151
|
+
* @generated from field: optional int32 boolean_encoding_level = 107 [default = 1];
|
|
2152
|
+
*/
|
|
2153
|
+
booleanEncodingLevel: number;
|
|
2154
|
+
/**
|
|
2155
|
+
* When loading a*x + b*y ==/!= c when x and y are both fully encoded.
|
|
2156
|
+
* The solver may decide to replace the linear equation by a set of clauses.
|
|
2157
|
+
* This is triggered if the sizes of the domains of x and y are below the
|
|
2158
|
+
* threshold.
|
|
2159
|
+
*
|
|
2160
|
+
* @generated from field: optional int32 max_domain_size_when_encoding_eq_neq_constraints = 191 [default = 16];
|
|
2161
|
+
*/
|
|
2162
|
+
maxDomainSizeWhenEncodingEqNeqConstraints: number;
|
|
2163
|
+
/**
|
|
2164
|
+
* The limit on the number of cuts in our cut pool. When this is reached we do
|
|
2165
|
+
* not generate cuts anymore.
|
|
2166
|
+
*
|
|
2167
|
+
* TODO(user): We should probably remove this parameters, and just always
|
|
2168
|
+
* generate cuts but only keep the best n or something.
|
|
2169
|
+
*
|
|
2170
|
+
* @generated from field: optional int32 max_num_cuts = 91 [default = 10000];
|
|
2171
|
+
*/
|
|
2172
|
+
maxNumCuts: number;
|
|
2173
|
+
/**
|
|
2174
|
+
* Control the global cut effort. Zero will turn off all cut. For now we just
|
|
2175
|
+
* have one level. Note also that most cuts are only used at linearization
|
|
2176
|
+
* level >= 2.
|
|
2177
|
+
*
|
|
2178
|
+
* @generated from field: optional int32 cut_level = 196 [default = 1];
|
|
2179
|
+
*/
|
|
2180
|
+
cutLevel: number;
|
|
2181
|
+
/**
|
|
2182
|
+
* For the cut that can be generated at any level, this control if we only
|
|
2183
|
+
* try to generate them at the root node.
|
|
2184
|
+
*
|
|
2185
|
+
* @generated from field: optional bool only_add_cuts_at_level_zero = 92 [default = false];
|
|
2186
|
+
*/
|
|
2187
|
+
onlyAddCutsAtLevelZero: boolean;
|
|
2188
|
+
/**
|
|
2189
|
+
* When the LP objective is fractional, do we add the cut that forces the
|
|
2190
|
+
* linear objective expression to be greater or equal to this fractional value
|
|
2191
|
+
* rounded up? We can always do that since our objective is integer, and
|
|
2192
|
+
* combined with MIR heuristic to reduce the coefficient of such cut, it can
|
|
2193
|
+
* help.
|
|
2194
|
+
*
|
|
2195
|
+
* @generated from field: optional bool add_objective_cut = 197 [default = false];
|
|
2196
|
+
*/
|
|
2197
|
+
addObjectiveCut: boolean;
|
|
2198
|
+
/**
|
|
2199
|
+
* Whether we generate and add Chvatal-Gomory cuts to the LP at root node.
|
|
2200
|
+
* Note that for now, this is not heavily tuned.
|
|
2201
|
+
*
|
|
2202
|
+
* @generated from field: optional bool add_cg_cuts = 117 [default = true];
|
|
2203
|
+
*/
|
|
2204
|
+
addCgCuts: boolean;
|
|
2205
|
+
/**
|
|
2206
|
+
* Whether we generate MIR cuts at root node.
|
|
2207
|
+
* Note that for now, this is not heavily tuned.
|
|
2208
|
+
*
|
|
2209
|
+
* @generated from field: optional bool add_mir_cuts = 120 [default = true];
|
|
2210
|
+
*/
|
|
2211
|
+
addMirCuts: boolean;
|
|
2212
|
+
/**
|
|
2213
|
+
* Whether we generate Zero-Half cuts at root node.
|
|
2214
|
+
* Note that for now, this is not heavily tuned.
|
|
2215
|
+
*
|
|
2216
|
+
* @generated from field: optional bool add_zero_half_cuts = 169 [default = true];
|
|
2217
|
+
*/
|
|
2218
|
+
addZeroHalfCuts: boolean;
|
|
2219
|
+
/**
|
|
2220
|
+
* Whether we generate clique cuts from the binary implication graph. Note
|
|
2221
|
+
* that as the search goes on, this graph will contains new binary clauses
|
|
2222
|
+
* learned by the SAT engine.
|
|
2223
|
+
*
|
|
2224
|
+
* @generated from field: optional bool add_clique_cuts = 172 [default = true];
|
|
2225
|
+
*/
|
|
2226
|
+
addCliqueCuts: boolean;
|
|
2227
|
+
/**
|
|
2228
|
+
* Whether we generate RLT cuts. This is still experimental but can help on
|
|
2229
|
+
* binary problem with a lot of clauses of size 3.
|
|
2230
|
+
*
|
|
2231
|
+
* @generated from field: optional bool add_rlt_cuts = 279 [default = true];
|
|
2232
|
+
*/
|
|
2233
|
+
addRltCuts: boolean;
|
|
2234
|
+
/**
|
|
2235
|
+
* Cut generator for all diffs can add too many cuts for large all_diff
|
|
2236
|
+
* constraints. This parameter restricts the large all_diff constraints to
|
|
2237
|
+
* have a cut generator.
|
|
2238
|
+
*
|
|
2239
|
+
* @generated from field: optional int32 max_all_diff_cut_size = 148 [default = 64];
|
|
2240
|
+
*/
|
|
2241
|
+
maxAllDiffCutSize: number;
|
|
2242
|
+
/**
|
|
2243
|
+
* For the lin max constraints, generates the cuts described in "Strong
|
|
2244
|
+
* mixed-integer programming formulations for trained neural networks" by Ross
|
|
2245
|
+
* Anderson et. (https://arxiv.org/pdf/1811.01988.pdf)
|
|
2246
|
+
*
|
|
2247
|
+
* @generated from field: optional bool add_lin_max_cuts = 152 [default = true];
|
|
2248
|
+
*/
|
|
2249
|
+
addLinMaxCuts: boolean;
|
|
2250
|
+
/**
|
|
2251
|
+
* In the integer rounding procedure used for MIR and Gomory cut, the maximum
|
|
2252
|
+
* "scaling" we use (must be positive). The lower this is, the lower the
|
|
2253
|
+
* integer coefficients of the cut will be. Note that cut generated by lower
|
|
2254
|
+
* values are not necessarily worse than cut generated by larger value. There
|
|
2255
|
+
* is no strict dominance relationship.
|
|
2256
|
+
*
|
|
2257
|
+
* Setting this to 2 result in the "strong fractional rouding" of Letchford
|
|
2258
|
+
* and Lodi.
|
|
2259
|
+
*
|
|
2260
|
+
* @generated from field: optional int32 max_integer_rounding_scaling = 119 [default = 600];
|
|
2261
|
+
*/
|
|
2262
|
+
maxIntegerRoundingScaling: number;
|
|
2263
|
+
/**
|
|
2264
|
+
* If true, we start by an empty LP, and only add constraints not satisfied
|
|
2265
|
+
* by the current LP solution batch by batch. A constraint that is only added
|
|
2266
|
+
* like this is known as a "lazy" constraint in the literature, except that we
|
|
2267
|
+
* currently consider all constraints as lazy here.
|
|
2268
|
+
*
|
|
2269
|
+
* @generated from field: optional bool add_lp_constraints_lazily = 112 [default = true];
|
|
2270
|
+
*/
|
|
2271
|
+
addLpConstraintsLazily: boolean;
|
|
2272
|
+
/**
|
|
2273
|
+
* Even at the root node, we do not want to spend too much time on the LP if
|
|
2274
|
+
* it is "difficult". So we solve it in "chunks" of that many iterations. The
|
|
2275
|
+
* solve will be continued down in the tree or the next time we go back to the
|
|
2276
|
+
* root node.
|
|
2277
|
+
*
|
|
2278
|
+
* @generated from field: optional int32 root_lp_iterations = 227 [default = 2000];
|
|
2279
|
+
*/
|
|
2280
|
+
rootLpIterations: number;
|
|
2281
|
+
/**
|
|
2282
|
+
* While adding constraints, skip the constraints which have orthogonality
|
|
2283
|
+
* less than 'min_orthogonality_for_lp_constraints' with already added
|
|
2284
|
+
* constraints during current call. Orthogonality is defined as 1 -
|
|
2285
|
+
* cosine(vector angle between constraints). A value of zero disable this
|
|
2286
|
+
* feature.
|
|
2287
|
+
*
|
|
2288
|
+
* @generated from field: optional double min_orthogonality_for_lp_constraints = 115 [default = 0.05];
|
|
2289
|
+
*/
|
|
2290
|
+
minOrthogonalityForLpConstraints: number;
|
|
2291
|
+
/**
|
|
2292
|
+
* Max number of time we perform cut generation and resolve the LP at level 0.
|
|
2293
|
+
*
|
|
2294
|
+
* @generated from field: optional int32 max_cut_rounds_at_level_zero = 154 [default = 1];
|
|
2295
|
+
*/
|
|
2296
|
+
maxCutRoundsAtLevelZero: number;
|
|
2297
|
+
/**
|
|
2298
|
+
* If a constraint/cut in LP is not active for that many consecutive OPTIMAL
|
|
2299
|
+
* solves, remove it from the LP. Note that it might be added again later if
|
|
2300
|
+
* it become violated by the current LP solution.
|
|
2301
|
+
*
|
|
2302
|
+
* @generated from field: optional int32 max_consecutive_inactive_count = 121 [default = 100];
|
|
2303
|
+
*/
|
|
2304
|
+
maxConsecutiveInactiveCount: number;
|
|
2305
|
+
/**
|
|
2306
|
+
* These parameters are similar to sat clause management activity parameters.
|
|
2307
|
+
* They are effective only if the number of generated cuts exceed the storage
|
|
2308
|
+
* limit. Default values are based on a few experiments on miplib instances.
|
|
2309
|
+
*
|
|
2310
|
+
* @generated from field: optional double cut_max_active_count_value = 155 [default = 1e+10];
|
|
2311
|
+
*/
|
|
2312
|
+
cutMaxActiveCountValue: number;
|
|
2313
|
+
/**
|
|
2314
|
+
* @generated from field: optional double cut_active_count_decay = 156 [default = 0.8];
|
|
2315
|
+
*/
|
|
2316
|
+
cutActiveCountDecay: number;
|
|
2317
|
+
/**
|
|
2318
|
+
* Target number of constraints to remove during cleanup.
|
|
2319
|
+
*
|
|
2320
|
+
* @generated from field: optional int32 cut_cleanup_target = 157 [default = 1000];
|
|
2321
|
+
*/
|
|
2322
|
+
cutCleanupTarget: number;
|
|
2323
|
+
/**
|
|
2324
|
+
* Add that many lazy constraints (or cuts) at once in the LP. Note that at
|
|
2325
|
+
* the beginning of the solve, we do add more than this.
|
|
2326
|
+
*
|
|
2327
|
+
* @generated from field: optional int32 new_constraints_batch_size = 122 [default = 50];
|
|
2328
|
+
*/
|
|
2329
|
+
newConstraintsBatchSize: number;
|
|
2330
|
+
/**
|
|
2331
|
+
* If true and the Lp relaxation of the problem has an integer optimal
|
|
2332
|
+
* solution, try to exploit it. Note that since the LP relaxation may not
|
|
2333
|
+
* contain all the constraints, such a solution is not necessarily a solution
|
|
2334
|
+
* of the full problem.
|
|
2335
|
+
*
|
|
2336
|
+
* @generated from field: optional bool exploit_integer_lp_solution = 94 [default = true];
|
|
2337
|
+
*/
|
|
2338
|
+
exploitIntegerLpSolution: boolean;
|
|
2339
|
+
/**
|
|
2340
|
+
* If true and the Lp relaxation of the problem has a solution, try to exploit
|
|
2341
|
+
* it. This is same as above except in this case the lp solution might not be
|
|
2342
|
+
* an integer solution.
|
|
2343
|
+
*
|
|
2344
|
+
* @generated from field: optional bool exploit_all_lp_solution = 116 [default = true];
|
|
2345
|
+
*/
|
|
2346
|
+
exploitAllLpSolution: boolean;
|
|
2347
|
+
/**
|
|
2348
|
+
* When branching on a variable, follow the last best solution value.
|
|
2349
|
+
*
|
|
2350
|
+
* @generated from field: optional bool exploit_best_solution = 130 [default = false];
|
|
2351
|
+
*/
|
|
2352
|
+
exploitBestSolution: boolean;
|
|
2353
|
+
/**
|
|
2354
|
+
* When branching on a variable, follow the last best relaxation solution
|
|
2355
|
+
* value. We use the relaxation with the tightest bound on the objective as
|
|
2356
|
+
* the best relaxation solution.
|
|
2357
|
+
*
|
|
2358
|
+
* @generated from field: optional bool exploit_relaxation_solution = 161 [default = false];
|
|
2359
|
+
*/
|
|
2360
|
+
exploitRelaxationSolution: boolean;
|
|
2361
|
+
/**
|
|
2362
|
+
* When branching an a variable that directly affect the objective,
|
|
2363
|
+
* branch on the value that lead to the best objective first.
|
|
2364
|
+
*
|
|
2365
|
+
* @generated from field: optional bool exploit_objective = 131 [default = true];
|
|
2366
|
+
*/
|
|
2367
|
+
exploitObjective: boolean;
|
|
2368
|
+
/**
|
|
2369
|
+
* Infer products of Boolean or of Boolean time IntegerVariable from the
|
|
2370
|
+
* linear constrainst in the problem. This can be used in some cuts, altough
|
|
2371
|
+
* for now we don't really exploit it.
|
|
2372
|
+
*
|
|
2373
|
+
* @generated from field: optional bool detect_linearized_product = 277 [default = false];
|
|
2374
|
+
*/
|
|
2375
|
+
detectLinearizedProduct: boolean;
|
|
2376
|
+
/**
|
|
2377
|
+
* This should be better on integer problems.
|
|
2378
|
+
* But it is still work in progress.
|
|
2379
|
+
*
|
|
2380
|
+
* @generated from field: optional bool use_new_integer_conflict_resolution = 336 [default = false];
|
|
2381
|
+
*/
|
|
2382
|
+
useNewIntegerConflictResolution: boolean;
|
|
2383
|
+
/**
|
|
2384
|
+
* If true, and during integer conflict resolution (icr) the 1-UIP is an
|
|
2385
|
+
* integer literal for which we do not have an associated Boolean. Create one.
|
|
2386
|
+
*
|
|
2387
|
+
* @generated from field: optional bool create_1uip_boolean_during_icr = 341 [default = true];
|
|
2388
|
+
*/
|
|
2389
|
+
create1uipBooleanDuringIcr: boolean;
|
|
2390
|
+
/**
|
|
2391
|
+
* We need to bound the maximum magnitude of the variables for CP-SAT, and
|
|
2392
|
+
* that is the bound we use. If the MIP model expect larger variable value in
|
|
2393
|
+
* the solution, then the converted model will likely not be relevant.
|
|
2394
|
+
*
|
|
2395
|
+
* @generated from field: optional double mip_max_bound = 124 [default = 1e+07];
|
|
2396
|
+
*/
|
|
2397
|
+
mipMaxBound: number;
|
|
2398
|
+
/**
|
|
2399
|
+
* All continuous variable of the problem will be multiplied by this factor.
|
|
2400
|
+
* By default, we don't do any variable scaling and rely on the MIP model to
|
|
2401
|
+
* specify continuous variable domain with the wanted precision.
|
|
2402
|
+
*
|
|
2403
|
+
* @generated from field: optional double mip_var_scaling = 125 [default = 1];
|
|
2404
|
+
*/
|
|
2405
|
+
mipVarScaling: number;
|
|
2406
|
+
/**
|
|
2407
|
+
* If this is false, then mip_var_scaling is only applied to variables with
|
|
2408
|
+
* "small" domain. If it is true, we scale all floating point variable
|
|
2409
|
+
* independenlty of their domain.
|
|
2410
|
+
*
|
|
2411
|
+
* @generated from field: optional bool mip_scale_large_domain = 225 [default = false];
|
|
2412
|
+
*/
|
|
2413
|
+
mipScaleLargeDomain: boolean;
|
|
2414
|
+
/**
|
|
2415
|
+
* If true, some continuous variable might be automatically scaled. For now,
|
|
2416
|
+
* this is only the case where we detect that a variable is actually an
|
|
2417
|
+
* integer multiple of a constant. For instance, variables of the form k * 0.5
|
|
2418
|
+
* are quite frequent, and if we detect this, we will scale such variable
|
|
2419
|
+
* domain by 2 to make it implied integer.
|
|
2420
|
+
*
|
|
2421
|
+
* @generated from field: optional bool mip_automatically_scale_variables = 166 [default = true];
|
|
2422
|
+
*/
|
|
2423
|
+
mipAutomaticallyScaleVariables: boolean;
|
|
2424
|
+
/**
|
|
2425
|
+
* If one try to solve a MIP model with CP-SAT, because we assume all variable
|
|
2426
|
+
* to be integer after scaling, we will not necessarily have the correct
|
|
2427
|
+
* optimal. Note however that all feasible solutions are valid since we will
|
|
2428
|
+
* just solve a more restricted version of the original problem.
|
|
2429
|
+
*
|
|
2430
|
+
* This parameters is here to prevent user to think the solution is optimal
|
|
2431
|
+
* when it might not be. One will need to manually set this to false to solve
|
|
2432
|
+
* a MIP model where the optimal might be different.
|
|
2433
|
+
*
|
|
2434
|
+
* Note that this is tested after some MIP presolve steps, so even if not
|
|
2435
|
+
* all original variable are integer, we might end up with a pure IP after
|
|
2436
|
+
* presolve and after implied integer detection.
|
|
2437
|
+
*
|
|
2438
|
+
* @generated from field: optional bool only_solve_ip = 222 [default = false];
|
|
2439
|
+
*/
|
|
2440
|
+
onlySolveIp: boolean;
|
|
2441
|
+
/**
|
|
2442
|
+
* When scaling constraint with double coefficients to integer coefficients,
|
|
2443
|
+
* we will multiply by a power of 2 and round the coefficients. We will choose
|
|
2444
|
+
* the lowest power such that we have no potential overflow (see
|
|
2445
|
+
* mip_max_activity_exponent) and the worst case constraint activity error
|
|
2446
|
+
* does not exceed this threshold.
|
|
2447
|
+
*
|
|
2448
|
+
* Note that we also detect constraint with rational coefficients and scale
|
|
2449
|
+
* them accordingly when it seems better instead of using a power of 2.
|
|
2450
|
+
*
|
|
2451
|
+
* We also relax all constraint bounds by this absolute value. For pure
|
|
2452
|
+
* integer constraint, if this value if lower than one, this will not change
|
|
2453
|
+
* anything. However it is needed when scaling MIP problems.
|
|
2454
|
+
*
|
|
2455
|
+
* If we manage to scale a constraint correctly, the maximum error we can make
|
|
2456
|
+
* will be twice this value (once for the scaling error and once for the
|
|
2457
|
+
* relaxed bounds). If we are not able to scale that well, we will display
|
|
2458
|
+
* that fact but still scale as best as we can.
|
|
2459
|
+
*
|
|
2460
|
+
* @generated from field: optional double mip_wanted_precision = 126 [default = 1e-06];
|
|
2461
|
+
*/
|
|
2462
|
+
mipWantedPrecision: number;
|
|
2463
|
+
/**
|
|
2464
|
+
* To avoid integer overflow, we always force the maximum possible constraint
|
|
2465
|
+
* activity (and objective value) according to the initial variable domain to
|
|
2466
|
+
* be smaller than 2 to this given power. Because of this, we cannot always
|
|
2467
|
+
* reach the "mip_wanted_precision" parameter above.
|
|
2468
|
+
*
|
|
2469
|
+
* This can go as high as 62, but some internal algo currently abort early if
|
|
2470
|
+
* they might run into integer overflow, so it is better to keep it a bit
|
|
2471
|
+
* lower than this.
|
|
2472
|
+
*
|
|
2473
|
+
* @generated from field: optional int32 mip_max_activity_exponent = 127 [default = 53];
|
|
2474
|
+
*/
|
|
2475
|
+
mipMaxActivityExponent: number;
|
|
2476
|
+
/**
|
|
2477
|
+
* As explained in mip_precision and mip_max_activity_exponent, we cannot
|
|
2478
|
+
* always reach the wanted precision during scaling. We use this threshold to
|
|
2479
|
+
* enphasize in the logs when the precision seems bad.
|
|
2480
|
+
*
|
|
2481
|
+
* @generated from field: optional double mip_check_precision = 128 [default = 0.0001];
|
|
2482
|
+
*/
|
|
2483
|
+
mipCheckPrecision: number;
|
|
2484
|
+
/**
|
|
2485
|
+
* Even if we make big error when scaling the objective, we can always derive
|
|
2486
|
+
* a correct lower bound on the original objective by using the exact lower
|
|
2487
|
+
* bound on the scaled integer version of the objective. This should be fast,
|
|
2488
|
+
* but if you don't care about having a precise lower bound, you can turn it
|
|
2489
|
+
* off.
|
|
2490
|
+
*
|
|
2491
|
+
* @generated from field: optional bool mip_compute_true_objective_bound = 198 [default = true];
|
|
2492
|
+
*/
|
|
2493
|
+
mipComputeTrueObjectiveBound: boolean;
|
|
2494
|
+
/**
|
|
2495
|
+
* Any finite values in the input MIP must be below this threshold, otherwise
|
|
2496
|
+
* the model will be reported invalid. This is needed to avoid floating point
|
|
2497
|
+
* overflow when evaluating bounds * coeff for instance. We are a bit more
|
|
2498
|
+
* defensive, but in practice, users shouldn't use super large values in a
|
|
2499
|
+
* MIP.
|
|
2500
|
+
*
|
|
2501
|
+
* @generated from field: optional double mip_max_valid_magnitude = 199 [default = 1e+20];
|
|
2502
|
+
*/
|
|
2503
|
+
mipMaxValidMagnitude: number;
|
|
2504
|
+
/**
|
|
2505
|
+
* By default, any variable/constraint bound with a finite value and a
|
|
2506
|
+
* magnitude greater than the mip_max_valid_magnitude will result with a
|
|
2507
|
+
* invalid model. This flags change the behavior such that such bounds are
|
|
2508
|
+
* silently transformed to +∞ or -∞.
|
|
2509
|
+
*
|
|
2510
|
+
* It is recommended to keep it at false, and create valid bounds.
|
|
2511
|
+
*
|
|
2512
|
+
* @generated from field: optional bool mip_treat_high_magnitude_bounds_as_infinity = 278 [default = false];
|
|
2513
|
+
*/
|
|
2514
|
+
mipTreatHighMagnitudeBoundsAsInfinity: boolean;
|
|
2515
|
+
/**
|
|
2516
|
+
* Any value in the input mip with a magnitude lower than this will be set to
|
|
2517
|
+
* zero. This is to avoid some issue in LP presolving.
|
|
2518
|
+
*
|
|
2519
|
+
* @generated from field: optional double mip_drop_tolerance = 232 [default = 1e-16];
|
|
2520
|
+
*/
|
|
2521
|
+
mipDropTolerance: number;
|
|
2522
|
+
/**
|
|
2523
|
+
* When solving a MIP, we do some basic floating point presolving before
|
|
2524
|
+
* scaling the problem to integer to be handled by CP-SAT. This control how
|
|
2525
|
+
* much of that presolve we do. It can help to better scale floating point
|
|
2526
|
+
* model, but it is not always behaving nicely.
|
|
2527
|
+
*
|
|
2528
|
+
* @generated from field: optional int32 mip_presolve_level = 261 [default = 2];
|
|
2529
|
+
*/
|
|
2530
|
+
mipPresolveLevel: number;
|
|
2531
|
+
};
|
|
2532
|
+
/**
|
|
2533
|
+
* Describes the message operations_research.sat.SatParameters.
|
|
2534
|
+
* Use `create(SatParametersSchema)` to create a new message.
|
|
2535
|
+
*/
|
|
2536
|
+
export declare const SatParametersSchema: GenMessage<SatParameters>;
|
|
2537
|
+
/**
|
|
2538
|
+
* Variables without activity (i.e. at the beginning of the search) will be
|
|
2539
|
+
* tried in this preferred order.
|
|
2540
|
+
*
|
|
2541
|
+
* @generated from enum operations_research.sat.SatParameters.VariableOrder
|
|
2542
|
+
*/
|
|
2543
|
+
export declare enum SatParameters_VariableOrder {
|
|
2544
|
+
/**
|
|
2545
|
+
* As specified by the problem.
|
|
2546
|
+
*
|
|
2547
|
+
* @generated from enum value: IN_ORDER = 0;
|
|
2548
|
+
*/
|
|
2549
|
+
IN_ORDER = 0,
|
|
2550
|
+
/**
|
|
2551
|
+
* @generated from enum value: IN_REVERSE_ORDER = 1;
|
|
2552
|
+
*/
|
|
2553
|
+
IN_REVERSE_ORDER = 1,
|
|
2554
|
+
/**
|
|
2555
|
+
* @generated from enum value: IN_RANDOM_ORDER = 2;
|
|
2556
|
+
*/
|
|
2557
|
+
IN_RANDOM_ORDER = 2
|
|
2558
|
+
}
|
|
2559
|
+
/**
|
|
2560
|
+
* Describes the enum operations_research.sat.SatParameters.VariableOrder.
|
|
2561
|
+
*/
|
|
2562
|
+
export declare const SatParameters_VariableOrderSchema: GenEnum<SatParameters_VariableOrder>;
|
|
2563
|
+
/**
|
|
2564
|
+
* Specifies the initial polarity (true/false) when the solver branches on a
|
|
2565
|
+
* variable. This can be modified later by the user, or the phase saving
|
|
2566
|
+
* heuristic.
|
|
2567
|
+
*
|
|
2568
|
+
* Note(user): POLARITY_FALSE is usually a good choice because of the
|
|
2569
|
+
* "natural" way to express a linear boolean problem.
|
|
2570
|
+
*
|
|
2571
|
+
* @generated from enum operations_research.sat.SatParameters.Polarity
|
|
2572
|
+
*/
|
|
2573
|
+
export declare enum SatParameters_Polarity {
|
|
2574
|
+
/**
|
|
2575
|
+
* @generated from enum value: POLARITY_TRUE = 0;
|
|
2576
|
+
*/
|
|
2577
|
+
TRUE = 0,
|
|
2578
|
+
/**
|
|
2579
|
+
* @generated from enum value: POLARITY_FALSE = 1;
|
|
2580
|
+
*/
|
|
2581
|
+
FALSE = 1,
|
|
2582
|
+
/**
|
|
2583
|
+
* @generated from enum value: POLARITY_RANDOM = 2;
|
|
2584
|
+
*/
|
|
2585
|
+
RANDOM = 2
|
|
2586
|
+
}
|
|
2587
|
+
/**
|
|
2588
|
+
* Describes the enum operations_research.sat.SatParameters.Polarity.
|
|
2589
|
+
*/
|
|
2590
|
+
export declare const SatParameters_PolaritySchema: GenEnum<SatParameters_Polarity>;
|
|
2591
|
+
/**
|
|
2592
|
+
* Do we try to minimize conflicts (greedily) when creating them.
|
|
2593
|
+
*
|
|
2594
|
+
* @generated from enum operations_research.sat.SatParameters.ConflictMinimizationAlgorithm
|
|
2595
|
+
*/
|
|
2596
|
+
export declare enum SatParameters_ConflictMinimizationAlgorithm {
|
|
2597
|
+
/**
|
|
2598
|
+
* @generated from enum value: NONE = 0;
|
|
2599
|
+
*/
|
|
2600
|
+
NONE = 0,
|
|
2601
|
+
/**
|
|
2602
|
+
* @generated from enum value: SIMPLE = 1;
|
|
2603
|
+
*/
|
|
2604
|
+
SIMPLE = 1,
|
|
2605
|
+
/**
|
|
2606
|
+
* @generated from enum value: RECURSIVE = 2;
|
|
2607
|
+
*/
|
|
2608
|
+
RECURSIVE = 2
|
|
2609
|
+
}
|
|
2610
|
+
/**
|
|
2611
|
+
* Describes the enum operations_research.sat.SatParameters.ConflictMinimizationAlgorithm.
|
|
2612
|
+
*/
|
|
2613
|
+
export declare const SatParameters_ConflictMinimizationAlgorithmSchema: GenEnum<SatParameters_ConflictMinimizationAlgorithm>;
|
|
2614
|
+
/**
|
|
2615
|
+
* Whether to expoit the binary clause to minimize learned clauses further.
|
|
2616
|
+
*
|
|
2617
|
+
* @generated from enum operations_research.sat.SatParameters.BinaryMinizationAlgorithm
|
|
2618
|
+
*/
|
|
2619
|
+
export declare enum SatParameters_BinaryMinizationAlgorithm {
|
|
2620
|
+
/**
|
|
2621
|
+
* @generated from enum value: NO_BINARY_MINIMIZATION = 0;
|
|
2622
|
+
*/
|
|
2623
|
+
NO_BINARY_MINIMIZATION = 0,
|
|
2624
|
+
/**
|
|
2625
|
+
* @generated from enum value: BINARY_MINIMIZATION_FROM_UIP = 1;
|
|
2626
|
+
*/
|
|
2627
|
+
BINARY_MINIMIZATION_FROM_UIP = 1,
|
|
2628
|
+
/**
|
|
2629
|
+
* @generated from enum value: BINARY_MINIMIZATION_FROM_UIP_AND_DECISIONS = 5;
|
|
2630
|
+
*/
|
|
2631
|
+
BINARY_MINIMIZATION_FROM_UIP_AND_DECISIONS = 5
|
|
2632
|
+
}
|
|
2633
|
+
/**
|
|
2634
|
+
* Describes the enum operations_research.sat.SatParameters.BinaryMinizationAlgorithm.
|
|
2635
|
+
*/
|
|
2636
|
+
export declare const SatParameters_BinaryMinizationAlgorithmSchema: GenEnum<SatParameters_BinaryMinizationAlgorithm>;
|
|
2637
|
+
/**
|
|
2638
|
+
* The clauses that will be kept during a cleanup are the ones that come
|
|
2639
|
+
* first under this order. We always keep or exclude ties together.
|
|
2640
|
+
*
|
|
2641
|
+
* @generated from enum operations_research.sat.SatParameters.ClauseOrdering
|
|
2642
|
+
*/
|
|
2643
|
+
export declare enum SatParameters_ClauseOrdering {
|
|
2644
|
+
/**
|
|
2645
|
+
* Order clause by decreasing activity, then by increasing LBD.
|
|
2646
|
+
*
|
|
2647
|
+
* @generated from enum value: CLAUSE_ACTIVITY = 0;
|
|
2648
|
+
*/
|
|
2649
|
+
CLAUSE_ACTIVITY = 0,
|
|
2650
|
+
/**
|
|
2651
|
+
* Order clause by increasing LBD, then by decreasing activity.
|
|
2652
|
+
*
|
|
2653
|
+
* @generated from enum value: CLAUSE_LBD = 1;
|
|
2654
|
+
*/
|
|
2655
|
+
CLAUSE_LBD = 1
|
|
2656
|
+
}
|
|
2657
|
+
/**
|
|
2658
|
+
* Describes the enum operations_research.sat.SatParameters.ClauseOrdering.
|
|
2659
|
+
*/
|
|
2660
|
+
export declare const SatParameters_ClauseOrderingSchema: GenEnum<SatParameters_ClauseOrdering>;
|
|
2661
|
+
/**
|
|
2662
|
+
* Restart algorithms.
|
|
2663
|
+
*
|
|
2664
|
+
* A reference for the more advanced ones is:
|
|
2665
|
+
* Gilles Audemard, Laurent Simon, "Refining Restarts Strategies for SAT
|
|
2666
|
+
* and UNSAT", Principles and Practice of Constraint Programming Lecture
|
|
2667
|
+
* Notes in Computer Science 2012, pp 118-126
|
|
2668
|
+
*
|
|
2669
|
+
* @generated from enum operations_research.sat.SatParameters.RestartAlgorithm
|
|
2670
|
+
*/
|
|
2671
|
+
export declare enum SatParameters_RestartAlgorithm {
|
|
2672
|
+
/**
|
|
2673
|
+
* @generated from enum value: NO_RESTART = 0;
|
|
2674
|
+
*/
|
|
2675
|
+
NO_RESTART = 0,
|
|
2676
|
+
/**
|
|
2677
|
+
* Just follow a Luby sequence times restart_period.
|
|
2678
|
+
*
|
|
2679
|
+
* @generated from enum value: LUBY_RESTART = 1;
|
|
2680
|
+
*/
|
|
2681
|
+
LUBY_RESTART = 1,
|
|
2682
|
+
/**
|
|
2683
|
+
* Moving average restart based on the decision level of conflicts.
|
|
2684
|
+
*
|
|
2685
|
+
* @generated from enum value: DL_MOVING_AVERAGE_RESTART = 2;
|
|
2686
|
+
*/
|
|
2687
|
+
DL_MOVING_AVERAGE_RESTART = 2,
|
|
2688
|
+
/**
|
|
2689
|
+
* Moving average restart based on the LBD of conflicts.
|
|
2690
|
+
*
|
|
2691
|
+
* @generated from enum value: LBD_MOVING_AVERAGE_RESTART = 3;
|
|
2692
|
+
*/
|
|
2693
|
+
LBD_MOVING_AVERAGE_RESTART = 3,
|
|
2694
|
+
/**
|
|
2695
|
+
* Fixed period restart every restart period.
|
|
2696
|
+
*
|
|
2697
|
+
* @generated from enum value: FIXED_RESTART = 4;
|
|
2698
|
+
*/
|
|
2699
|
+
FIXED_RESTART = 4
|
|
2700
|
+
}
|
|
2701
|
+
/**
|
|
2702
|
+
* Describes the enum operations_research.sat.SatParameters.RestartAlgorithm.
|
|
2703
|
+
*/
|
|
2704
|
+
export declare const SatParameters_RestartAlgorithmSchema: GenEnum<SatParameters_RestartAlgorithm>;
|
|
2705
|
+
/**
|
|
2706
|
+
* In what order do we add the assumptions in a core-based max-sat algorithm
|
|
2707
|
+
*
|
|
2708
|
+
* @generated from enum operations_research.sat.SatParameters.MaxSatAssumptionOrder
|
|
2709
|
+
*/
|
|
2710
|
+
export declare enum SatParameters_MaxSatAssumptionOrder {
|
|
2711
|
+
/**
|
|
2712
|
+
* @generated from enum value: DEFAULT_ASSUMPTION_ORDER = 0;
|
|
2713
|
+
*/
|
|
2714
|
+
DEFAULT_ASSUMPTION_ORDER = 0,
|
|
2715
|
+
/**
|
|
2716
|
+
* @generated from enum value: ORDER_ASSUMPTION_BY_DEPTH = 1;
|
|
2717
|
+
*/
|
|
2718
|
+
ORDER_ASSUMPTION_BY_DEPTH = 1,
|
|
2719
|
+
/**
|
|
2720
|
+
* @generated from enum value: ORDER_ASSUMPTION_BY_WEIGHT = 2;
|
|
2721
|
+
*/
|
|
2722
|
+
ORDER_ASSUMPTION_BY_WEIGHT = 2
|
|
2723
|
+
}
|
|
2724
|
+
/**
|
|
2725
|
+
* Describes the enum operations_research.sat.SatParameters.MaxSatAssumptionOrder.
|
|
2726
|
+
*/
|
|
2727
|
+
export declare const SatParameters_MaxSatAssumptionOrderSchema: GenEnum<SatParameters_MaxSatAssumptionOrder>;
|
|
2728
|
+
/**
|
|
2729
|
+
* What stratification algorithm we use in the presence of weight.
|
|
2730
|
+
*
|
|
2731
|
+
* @generated from enum operations_research.sat.SatParameters.MaxSatStratificationAlgorithm
|
|
2732
|
+
*/
|
|
2733
|
+
export declare enum SatParameters_MaxSatStratificationAlgorithm {
|
|
2734
|
+
/**
|
|
2735
|
+
* No stratification of the problem.
|
|
2736
|
+
*
|
|
2737
|
+
* @generated from enum value: STRATIFICATION_NONE = 0;
|
|
2738
|
+
*/
|
|
2739
|
+
STRATIFICATION_NONE = 0,
|
|
2740
|
+
/**
|
|
2741
|
+
* Start with literals with the highest weight, and when SAT, add the
|
|
2742
|
+
* literals with the next highest weight and so on.
|
|
2743
|
+
*
|
|
2744
|
+
* @generated from enum value: STRATIFICATION_DESCENT = 1;
|
|
2745
|
+
*/
|
|
2746
|
+
STRATIFICATION_DESCENT = 1,
|
|
2747
|
+
/**
|
|
2748
|
+
* Start with all literals. Each time a core is found with a given minimum
|
|
2749
|
+
* weight, do not consider literals with a lower weight for the next core
|
|
2750
|
+
* computation. If the subproblem is SAT, do like in STRATIFICATION_DESCENT
|
|
2751
|
+
* and just add the literals with the next highest weight.
|
|
2752
|
+
*
|
|
2753
|
+
* @generated from enum value: STRATIFICATION_ASCENT = 2;
|
|
2754
|
+
*/
|
|
2755
|
+
STRATIFICATION_ASCENT = 2
|
|
2756
|
+
}
|
|
2757
|
+
/**
|
|
2758
|
+
* Describes the enum operations_research.sat.SatParameters.MaxSatStratificationAlgorithm.
|
|
2759
|
+
*/
|
|
2760
|
+
export declare const SatParameters_MaxSatStratificationAlgorithmSchema: GenEnum<SatParameters_MaxSatStratificationAlgorithm>;
|
|
2761
|
+
/**
|
|
2762
|
+
* The search branching will be used to decide how to branch on unfixed nodes.
|
|
2763
|
+
*
|
|
2764
|
+
* @generated from enum operations_research.sat.SatParameters.SearchBranching
|
|
2765
|
+
*/
|
|
2766
|
+
export declare enum SatParameters_SearchBranching {
|
|
2767
|
+
/**
|
|
2768
|
+
* Try to fix all literals using the underlying SAT solver's heuristics,
|
|
2769
|
+
* then generate and fix literals until integer variables are fixed. New
|
|
2770
|
+
* literals on integer variables are generated using the fixed search
|
|
2771
|
+
* specified by the user or our default one.
|
|
2772
|
+
*
|
|
2773
|
+
* @generated from enum value: AUTOMATIC_SEARCH = 0;
|
|
2774
|
+
*/
|
|
2775
|
+
AUTOMATIC_SEARCH = 0,
|
|
2776
|
+
/**
|
|
2777
|
+
* If used then all decisions taken by the solver are made using a fixed
|
|
2778
|
+
* order as specified in the API or in the CpModelProto search_strategy
|
|
2779
|
+
* field.
|
|
2780
|
+
*
|
|
2781
|
+
* @generated from enum value: FIXED_SEARCH = 1;
|
|
2782
|
+
*/
|
|
2783
|
+
FIXED_SEARCH = 1,
|
|
2784
|
+
/**
|
|
2785
|
+
* Simple portfolio search used by LNS workers.
|
|
2786
|
+
*
|
|
2787
|
+
* @generated from enum value: PORTFOLIO_SEARCH = 2;
|
|
2788
|
+
*/
|
|
2789
|
+
PORTFOLIO_SEARCH = 2,
|
|
2790
|
+
/**
|
|
2791
|
+
* If used, the solver will use heuristics from the LP relaxation. This
|
|
2792
|
+
* exploit the reduced costs of the variables in the relaxation.
|
|
2793
|
+
*
|
|
2794
|
+
* @generated from enum value: LP_SEARCH = 3;
|
|
2795
|
+
*/
|
|
2796
|
+
LP_SEARCH = 3,
|
|
2797
|
+
/**
|
|
2798
|
+
* If used, the solver uses the pseudo costs for branching. Pseudo costs
|
|
2799
|
+
* are computed using the historical change in objective bounds when some
|
|
2800
|
+
* decision are taken. Note that this works whether we use an LP or not.
|
|
2801
|
+
*
|
|
2802
|
+
* @generated from enum value: PSEUDO_COST_SEARCH = 4;
|
|
2803
|
+
*/
|
|
2804
|
+
PSEUDO_COST_SEARCH = 4,
|
|
2805
|
+
/**
|
|
2806
|
+
* Mainly exposed here for testing. This quickly tries a lot of randomized
|
|
2807
|
+
* heuristics with a low conflict limit. It usually provides a good first
|
|
2808
|
+
* solution.
|
|
2809
|
+
*
|
|
2810
|
+
* @generated from enum value: PORTFOLIO_WITH_QUICK_RESTART_SEARCH = 5;
|
|
2811
|
+
*/
|
|
2812
|
+
PORTFOLIO_WITH_QUICK_RESTART_SEARCH = 5,
|
|
2813
|
+
/**
|
|
2814
|
+
* Mainly used internally. This is like FIXED_SEARCH, except we follow the
|
|
2815
|
+
* solution_hint field of the CpModelProto rather than using the information
|
|
2816
|
+
* provided in the search_strategy.
|
|
2817
|
+
*
|
|
2818
|
+
* @generated from enum value: HINT_SEARCH = 6;
|
|
2819
|
+
*/
|
|
2820
|
+
HINT_SEARCH = 6,
|
|
2821
|
+
/**
|
|
2822
|
+
* Similar to FIXED_SEARCH, but differ in how the variable not listed into
|
|
2823
|
+
* the fixed search heuristics are branched on. This will always start the
|
|
2824
|
+
* search tree according to the specified fixed search strategy, but will
|
|
2825
|
+
* complete it using the default automatic search.
|
|
2826
|
+
*
|
|
2827
|
+
* @generated from enum value: PARTIAL_FIXED_SEARCH = 7;
|
|
2828
|
+
*/
|
|
2829
|
+
PARTIAL_FIXED_SEARCH = 7,
|
|
2830
|
+
/**
|
|
2831
|
+
* Randomized search. Used to increase entropy in the search.
|
|
2832
|
+
*
|
|
2833
|
+
* @generated from enum value: RANDOMIZED_SEARCH = 8;
|
|
2834
|
+
*/
|
|
2835
|
+
RANDOMIZED_SEARCH = 8
|
|
2836
|
+
}
|
|
2837
|
+
/**
|
|
2838
|
+
* Describes the enum operations_research.sat.SatParameters.SearchBranching.
|
|
2839
|
+
*/
|
|
2840
|
+
export declare const SatParameters_SearchBranchingSchema: GenEnum<SatParameters_SearchBranching>;
|
|
2841
|
+
/**
|
|
2842
|
+
* @generated from enum operations_research.sat.SatParameters.SharedTreeSplitStrategy
|
|
2843
|
+
*/
|
|
2844
|
+
export declare enum SatParameters_SharedTreeSplitStrategy {
|
|
2845
|
+
/**
|
|
2846
|
+
* Uses the default strategy, currently equivalent to
|
|
2847
|
+
* SPLIT_STRATEGY_DISCREPANCY.
|
|
2848
|
+
*
|
|
2849
|
+
* @generated from enum value: SPLIT_STRATEGY_AUTO = 0;
|
|
2850
|
+
*/
|
|
2851
|
+
SPLIT_STRATEGY_AUTO = 0,
|
|
2852
|
+
/**
|
|
2853
|
+
* Only accept splits if the node to be split's depth+discrepancy is minimal
|
|
2854
|
+
* for the desired number of leaves.
|
|
2855
|
+
* The preferred child for discrepancy calculation is the one with the
|
|
2856
|
+
* lowest objective lower bound or the original branch direction if the
|
|
2857
|
+
* bounds are equal. This rule allows twice as many workers to work in the
|
|
2858
|
+
* preferred subtree as non-preferred.
|
|
2859
|
+
*
|
|
2860
|
+
* @generated from enum value: SPLIT_STRATEGY_DISCREPANCY = 1;
|
|
2861
|
+
*/
|
|
2862
|
+
SPLIT_STRATEGY_DISCREPANCY = 1,
|
|
2863
|
+
/**
|
|
2864
|
+
* Only split nodes with an objective lb equal to the global lb. If there is
|
|
2865
|
+
* no objective, this is equivalent to SPLIT_STRATEGY_FIRST_PROPOSAL.
|
|
2866
|
+
*
|
|
2867
|
+
* @generated from enum value: SPLIT_STRATEGY_OBJECTIVE_LB = 2;
|
|
2868
|
+
*/
|
|
2869
|
+
SPLIT_STRATEGY_OBJECTIVE_LB = 2,
|
|
2870
|
+
/**
|
|
2871
|
+
* Attempt to keep the shared tree balanced.
|
|
2872
|
+
*
|
|
2873
|
+
* @generated from enum value: SPLIT_STRATEGY_BALANCED_TREE = 3;
|
|
2874
|
+
*/
|
|
2875
|
+
SPLIT_STRATEGY_BALANCED_TREE = 3,
|
|
2876
|
+
/**
|
|
2877
|
+
* Workers race to split their subtree, the winner's proposal is accepted.
|
|
2878
|
+
*
|
|
2879
|
+
* @generated from enum value: SPLIT_STRATEGY_FIRST_PROPOSAL = 4;
|
|
2880
|
+
*/
|
|
2881
|
+
SPLIT_STRATEGY_FIRST_PROPOSAL = 4
|
|
2882
|
+
}
|
|
2883
|
+
/**
|
|
2884
|
+
* Describes the enum operations_research.sat.SatParameters.SharedTreeSplitStrategy.
|
|
2885
|
+
*/
|
|
2886
|
+
export declare const SatParameters_SharedTreeSplitStrategySchema: GenEnum<SatParameters_SharedTreeSplitStrategy>;
|
|
2887
|
+
/**
|
|
2888
|
+
* Rounding method to use for feasibility pump.
|
|
2889
|
+
*
|
|
2890
|
+
* @generated from enum operations_research.sat.SatParameters.FPRoundingMethod
|
|
2891
|
+
*/
|
|
2892
|
+
export declare enum SatParameters_FPRoundingMethod {
|
|
2893
|
+
/**
|
|
2894
|
+
* Rounds to the nearest integer value.
|
|
2895
|
+
*
|
|
2896
|
+
* @generated from enum value: NEAREST_INTEGER = 0;
|
|
2897
|
+
*/
|
|
2898
|
+
NEAREST_INTEGER = 0,
|
|
2899
|
+
/**
|
|
2900
|
+
* Counts the number of linear constraints restricting the variable in the
|
|
2901
|
+
* increasing values (up locks) and decreasing values (down locks). Rounds
|
|
2902
|
+
* the variable in the direction of lesser locks.
|
|
2903
|
+
*
|
|
2904
|
+
* @generated from enum value: LOCK_BASED = 1;
|
|
2905
|
+
*/
|
|
2906
|
+
LOCK_BASED = 1,
|
|
2907
|
+
/**
|
|
2908
|
+
* Similar to lock based rounding except this only considers locks of active
|
|
2909
|
+
* constraints from the last lp solve.
|
|
2910
|
+
*
|
|
2911
|
+
* @generated from enum value: ACTIVE_LOCK_BASED = 3;
|
|
2912
|
+
*/
|
|
2913
|
+
ACTIVE_LOCK_BASED = 3,
|
|
2914
|
+
/**
|
|
2915
|
+
* This is expensive rounding algorithm. We round variables one by one and
|
|
2916
|
+
* propagate the bounds in between. If none of the rounded values fall in
|
|
2917
|
+
* the continuous domain specified by lower and upper bound, we use the
|
|
2918
|
+
* current lower/upper bound (whichever one is closest) instead of rounding
|
|
2919
|
+
* the fractional lp solution value. If both the rounded values are in the
|
|
2920
|
+
* domain, we round to nearest integer.
|
|
2921
|
+
*
|
|
2922
|
+
* @generated from enum value: PROPAGATION_ASSISTED = 2;
|
|
2923
|
+
*/
|
|
2924
|
+
PROPAGATION_ASSISTED = 2
|
|
2925
|
+
}
|
|
2926
|
+
/**
|
|
2927
|
+
* Describes the enum operations_research.sat.SatParameters.FPRoundingMethod.
|
|
2928
|
+
*/
|
|
2929
|
+
export declare const SatParameters_FPRoundingMethodSchema: GenEnum<SatParameters_FPRoundingMethod>;
|
|
2930
|
+
//# sourceMappingURL=sat_parameters_pb.d.ts.map
|