17using System.Collections.Generic;
19public partial class Solver : IDisposable
24 for (
int i = 0; i < count; ++i)
34 for (
int i = 0; i < count; ++i)
36 string var_name = name + i;
45 for (
int i = 0; i < count; ++i)
55 for (
int i = 0; i < count; ++i)
57 string var_name = name + i;
66 for (
int i = 0; i < count; ++i)
76 for (
int i = 0; i < count; ++i)
78 string var_name = name + i;
87 for (
int i = 0; i < count; ++i)
97 for (
int i = 0; i < count; ++i)
99 string var_name = name + i;
108 for (
int i = 0; i < rows; ++i)
110 for (
int j = 0; j < cols; ++j)
121 for (
int i = 0; i < rows; ++i)
123 for (
int j = 0; j < cols; ++j)
125 string var_name = name +
"[" + i +
", " + j +
"]";
135 for (
int i = 0; i < rows; ++i)
137 for (
int j = 0; j < cols; ++j)
148 for (
int i = 0; i < rows; ++i)
150 for (
int j = 0; j < cols; ++j)
152 string var_name = name +
"[" + i +
", " + j +
"]";
162 for (
int i = 0; i < rows; ++i)
164 for (
int j = 0; j < cols; ++j)
175 for (
int i = 0; i < rows; ++i)
177 for (
int j = 0; j < cols; ++j)
179 string var_name = name +
"[" + i +
", " + j +
"]";
189 for (
int i = 0; i < rows; ++i)
191 for (
int j = 0; j < cols; ++j)
202 for (
int i = 0; i < rows; ++i)
204 for (
int j = 0; j < cols; ++j)
206 string var_name = name +
"[" + i +
", " + j +
"]";
217 for (
int i = 0; i < count; ++i)
225 bool optional,
string name)
228 for (
int i = 0; i < count; ++i)
236 long[] duration,
bool optional,
string name)
239 for (
int i = 0; i < count; ++i)
247 bool optional,
string name)
250 for (
int i = 0; i < count; ++i)
258 int count = starts.Length;
260 for (
int i = 0; i < count; ++i)
268 int count = starts.Length;
270 for (
int i = 0; i < count; ++i)
278 pinned_decision_builder_ = db;
279 pinned_search_monitors_.Clear();
285 pinned_decision_builder_ = db;
286 pinned_search_monitors_.Clear();
287 pinned_search_monitors_.Add(sm1);
293 pinned_decision_builder_ = db;
294 pinned_search_monitors_.Clear();
295 pinned_search_monitors_.Add(sm1);
296 pinned_search_monitors_.Add(sm2);
302 pinned_decision_builder_ = db;
303 pinned_search_monitors_.Clear();
304 pinned_search_monitors_.Add(sm1);
305 pinned_search_monitors_.Add(sm2);
306 pinned_search_monitors_.Add(sm3);
313 pinned_decision_builder_ = db;
314 pinned_search_monitors_.Clear();
315 pinned_search_monitors_.Add(sm1);
316 pinned_search_monitors_.Add(sm2);
317 pinned_search_monitors_.Add(sm3);
318 pinned_search_monitors_.Add(sm4);
324 pinned_decision_builder_ = db;
325 pinned_search_monitors_.Clear();
326 pinned_search_monitors_.AddRange(monitors);
332 pinned_decision_builder_ =
null;
333 pinned_search_monitors_.Clear();
337 private System.Collections.Generic.List<
SearchMonitor> pinned_search_monitors_ =
342public partial class IntExpr : PropagationBaseObject
346 return a.solver().MakeSum(a, b);
350 return a.solver().MakeSum(a, v);
354 return a.solver().MakeSum(a, v);
358 return a.solver().MakeDifference(a, b);
362 return a.solver().MakeSum(a, -v);
366 return a.solver().MakeDifference(v, a);
370 return a.solver().MakeProd(a, b);
374 return a.solver().MakeProd(a, v);
378 return a.solver().MakeProd(a, v);
382 return a.solver().MakeDiv(a, v);
386 return a.solver().MakeModulo(a, v);
390 return a.solver().MakeOpposite(a);
450public partial class Constraint : PropagationBaseObject, IConstraintWithStatus
463 return a.solver().MakeSum(a.Var(), b.Var());
467 return a.solver().MakeSum(a.Var(), v);
471 return a.solver().MakeSum(a.Var(), v);
475 return a.solver().MakeDifference(a.Var(), b.Var());
479 return a.solver().MakeSum(a.Var(), -v);
483 return a.solver().MakeDifference(v, a.Var());
487 return a.solver().MakeProd(a.Var(), b.Var());
491 return a.solver().MakeProd(a.Var(), v);
495 return a.solver().MakeProd(a.Var(), v);
499 return a.solver().MakeDiv(a.Var(), v);
503 return a.solver().MakeOpposite(a.Var());