OR-Tools  9.1
constraint_solver_python_wrap.cc
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 4.0.2
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11
12#ifndef SWIGPYTHON
13#define SWIGPYTHON
14#endif
15
16#define SWIG_DIRECTORS
17#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
18
19
20#ifdef __cplusplus
21/* SwigValueWrapper is described in swig.swg */
22template<typename T> class SwigValueWrapper {
23 struct SwigMovePointer {
24 T *ptr;
25 SwigMovePointer(T *p) : ptr(p) { }
26 ~SwigMovePointer() { delete ptr; }
27 SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
28 } pointer;
29 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
30 SwigValueWrapper(const SwigValueWrapper<T>& rhs);
31public:
32 SwigValueWrapper() : pointer(0) { }
33 SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
34 operator T&() const { return *pointer.ptr; }
35 T *operator&() { return pointer.ptr; }
36};
37
38template <typename T> T SwigValueInit() {
39 return T();
40}
41#endif
42
43/* -----------------------------------------------------------------------------
44 * This section contains generic SWIG labels for method/variable
45 * declarations/attributes, and other compiler dependent labels.
46 * ----------------------------------------------------------------------------- */
47
48/* template workaround for compilers that cannot correctly implement the C++ standard */
49#ifndef SWIGTEMPLATEDISAMBIGUATOR
50# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
51# define SWIGTEMPLATEDISAMBIGUATOR template
52# elif defined(__HP_aCC)
53/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
54/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
55# define SWIGTEMPLATEDISAMBIGUATOR template
56# else
57# define SWIGTEMPLATEDISAMBIGUATOR
58# endif
59#endif
60
61/* inline attribute */
62#ifndef SWIGINLINE
63# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
64# define SWIGINLINE inline
65# else
66# define SWIGINLINE
67# endif
68#endif
69
70/* attribute recognised by some compilers to avoid 'unused' warnings */
71#ifndef SWIGUNUSED
72# if defined(__GNUC__)
73# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
74# define SWIGUNUSED __attribute__ ((__unused__))
75# else
76# define SWIGUNUSED
77# endif
78# elif defined(__ICC)
79# define SWIGUNUSED __attribute__ ((__unused__))
80# else
81# define SWIGUNUSED
82# endif
83#endif
84
85#ifndef SWIG_MSC_UNSUPPRESS_4505
86# if defined(_MSC_VER)
87# pragma warning(disable : 4505) /* unreferenced local function has been removed */
88# endif
89#endif
90
91#ifndef SWIGUNUSEDPARM
92# ifdef __cplusplus
93# define SWIGUNUSEDPARM(p)
94# else
95# define SWIGUNUSEDPARM(p) p SWIGUNUSED
96# endif
97#endif
98
99/* internal SWIG method */
100#ifndef SWIGINTERN
101# define SWIGINTERN static SWIGUNUSED
102#endif
103
104/* internal inline SWIG method */
105#ifndef SWIGINTERNINLINE
106# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
107#endif
108
109/* exporting methods */
110#if defined(__GNUC__)
111# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
112# ifndef GCC_HASCLASSVISIBILITY
113# define GCC_HASCLASSVISIBILITY
114# endif
115# endif
116#endif
117
118#ifndef SWIGEXPORT
119# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
120# if defined(STATIC_LINKED)
121# define SWIGEXPORT
122# else
123# define SWIGEXPORT __declspec(dllexport)
124# endif
125# else
126# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
127# define SWIGEXPORT __attribute__ ((visibility("default")))
128# else
129# define SWIGEXPORT
130# endif
131# endif
132#endif
133
134/* calling conventions for Windows */
135#ifndef SWIGSTDCALL
136# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
137# define SWIGSTDCALL __stdcall
138# else
139# define SWIGSTDCALL
140# endif
141#endif
142
143/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
144#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
145# define _CRT_SECURE_NO_DEPRECATE
146#endif
147
148/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
149#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
150# define _SCL_SECURE_NO_DEPRECATE
151#endif
152
153/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
154#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
155# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
156#endif
157
158/* Intel's compiler complains if a variable which was never initialised is
159 * cast to void, which is a common idiom which we use to indicate that we
160 * are aware a variable isn't used. So we just silence that warning.
161 * See: https://github.com/swig/swig/issues/192 for more discussion.
162 */
163#ifdef __INTEL_COMPILER
164# pragma warning disable 592
165#endif
166
167
168#if defined(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND)
169/* Workaround for '::hypot' has not been declared', see https://bugs.python.org/issue11566 */
170# include <math.h>
171#endif
172
173#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
174/* Use debug wrappers with the Python release dll */
175# undef _DEBUG
176# include <Python.h>
177# define _DEBUG 1
178#else
179# include <Python.h>
180#endif
181
182/* -----------------------------------------------------------------------------
183 * swigrun.swg
184 *
185 * This file contains generic C API SWIG runtime support for pointer
186 * type checking.
187 * ----------------------------------------------------------------------------- */
188
189/* This should only be incremented when either the layout of swig_type_info changes,
190 or for whatever reason, the runtime changes incompatibly */
191#define SWIG_RUNTIME_VERSION "4"
192
193/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
194#ifdef SWIG_TYPE_TABLE
195# define SWIG_QUOTE_STRING(x) #x
196# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
197# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
198#else
199# define SWIG_TYPE_TABLE_NAME
200#endif
201
202/*
203 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
204 creating a static or dynamic library from the SWIG runtime code.
205 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
206
207 But only do this if strictly necessary, ie, if you have problems
208 with your compiler or suchlike.
209*/
210
211#ifndef SWIGRUNTIME
212# define SWIGRUNTIME SWIGINTERN
213#endif
214
215#ifndef SWIGRUNTIMEINLINE
216# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
217#endif
218
219/* Generic buffer size */
220#ifndef SWIG_BUFFER_SIZE
221# define SWIG_BUFFER_SIZE 1024
222#endif
223
224/* Flags for pointer conversions */
225#define SWIG_POINTER_DISOWN 0x1
226#define SWIG_CAST_NEW_MEMORY 0x2
227#define SWIG_POINTER_NO_NULL 0x4
228
229/* Flags for new pointer objects */
230#define SWIG_POINTER_OWN 0x1
231
232
233/*
234 Flags/methods for returning states.
235
236 The SWIG conversion methods, as ConvertPtr, return an integer
237 that tells if the conversion was successful or not. And if not,
238 an error code can be returned (see swigerrors.swg for the codes).
239
240 Use the following macros/flags to set or process the returning
241 states.
242
243 In old versions of SWIG, code such as the following was usually written:
244
245 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
246 // success code
247 } else {
248 //fail code
249 }
250
251 Now you can be more explicit:
252
253 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
254 if (SWIG_IsOK(res)) {
255 // success code
256 } else {
257 // fail code
258 }
259
260 which is the same really, but now you can also do
261
262 Type *ptr;
263 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
264 if (SWIG_IsOK(res)) {
265 // success code
266 if (SWIG_IsNewObj(res) {
267 ...
268 delete *ptr;
269 } else {
270 ...
271 }
272 } else {
273 // fail code
274 }
275
276 I.e., now SWIG_ConvertPtr can return new objects and you can
277 identify the case and take care of the deallocation. Of course that
278 also requires SWIG_ConvertPtr to return new result values, such as
279
280 int SWIG_ConvertPtr(obj, ptr,...) {
281 if (<obj is ok>) {
282 if (<need new object>) {
283 *ptr = <ptr to new allocated object>;
284 return SWIG_NEWOBJ;
285 } else {
286 *ptr = <ptr to old object>;
287 return SWIG_OLDOBJ;
288 }
289 } else {
290 return SWIG_BADOBJ;
291 }
292 }
293
294 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
295 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
296 SWIG errors code.
297
298 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
299 allows to return the 'cast rank', for example, if you have this
300
301 int food(double)
302 int fooi(int);
303
304 and you call
305
306 food(1) // cast rank '1' (1 -> 1.0)
307 fooi(1) // cast rank '0'
308
309 just use the SWIG_AddCast()/SWIG_CheckState()
310*/
311
312#define SWIG_OK (0)
313#define SWIG_ERROR (-1)
314#define SWIG_IsOK(r) (r >= 0)
315#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
316
317/* The CastRankLimit says how many bits are used for the cast rank */
318#define SWIG_CASTRANKLIMIT (1 << 8)
319/* The NewMask denotes the object was created (using new/malloc) */
320#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
321/* The TmpMask is for in/out typemaps that use temporal objects */
322#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
323/* Simple returning values */
324#define SWIG_BADOBJ (SWIG_ERROR)
325#define SWIG_OLDOBJ (SWIG_OK)
326#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
327#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
328/* Check, add and del mask methods */
329#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
330#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
331#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
332#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
333#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
334#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
335
336/* Cast-Rank Mode */
337#if defined(SWIG_CASTRANK_MODE)
338# ifndef SWIG_TypeRank
339# define SWIG_TypeRank unsigned long
340# endif
341# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
342# define SWIG_MAXCASTRANK (2)
343# endif
344# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
345# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
347 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
348}
350 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
351}
352#else /* no cast-rank mode */
353# define SWIG_AddCast(r) (r)
354# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
355#endif
356
357
358#include <string.h>
359
360#ifdef __cplusplus
361extern "C" {
362#endif
363
364typedef void *(*swig_converter_func)(void *, int *);
365typedef struct swig_type_info *(*swig_dycast_func)(void **);
366
367/* Structure to store information on one type */
368typedef struct swig_type_info {
369 const char *name; /* mangled name of this type */
370 const char *str; /* human readable name of this type */
371 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
372 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
373 void *clientdata; /* language specific type data */
374 int owndata; /* flag if the structure owns the clientdata */
376
377/* Structure to store a type and conversion function used for casting */
378typedef struct swig_cast_info {
379 swig_type_info *type; /* pointer to type that is equivalent to this type */
380 swig_converter_func converter; /* function to cast the void pointers */
381 struct swig_cast_info *next; /* pointer to next cast in linked list */
382 struct swig_cast_info *prev; /* pointer to the previous cast */
384
385/* Structure used to store module information
386 * Each module generates one structure like this, and the runtime collects
387 * all of these structures and stores them in a circularly linked list.*/
388typedef struct swig_module_info {
389 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
390 size_t size; /* Number of types in this module */
391 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
392 swig_type_info **type_initial; /* Array of initially generated type structures */
393 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
394 void *clientdata; /* Language specific module data */
396
397/*
398 Compare two type names skipping the space characters, therefore
399 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
400
401 Return 0 when the two name types are equivalent, as in
402 strncmp, but skipping ' '.
403*/
404SWIGRUNTIME int
405SWIG_TypeNameComp(const char *f1, const char *l1,
406 const char *f2, const char *l2) {
407 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
408 while ((*f1 == ' ') && (f1 != l1)) ++f1;
409 while ((*f2 == ' ') && (f2 != l2)) ++f2;
410 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
411 }
412 return (int)((l1 - f1) - (l2 - f2));
413}
414
415/*
416 Check type equivalence in a name list like <name1>|<name2>|...
417 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
418*/
419SWIGRUNTIME int
420SWIG_TypeCmp(const char *nb, const char *tb) {
421 int equiv = 1;
422 const char* te = tb + strlen(tb);
423 const char* ne = nb;
424 while (equiv != 0 && *ne) {
425 for (nb = ne; *ne; ++ne) {
426 if (*ne == '|') break;
427 }
428 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
429 if (*ne) ++ne;
430 }
431 return equiv;
432}
433
434/*
435 Check type equivalence in a name list like <name1>|<name2>|...
436 Return 0 if not equal, 1 if equal
437*/
438SWIGRUNTIME int
439SWIG_TypeEquiv(const char *nb, const char *tb) {
440 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
441}
442
443/*
444 Check the typename
445*/
447SWIG_TypeCheck(const char *c, swig_type_info *ty) {
448 if (ty) {
449 swig_cast_info *iter = ty->cast;
450 while (iter) {
451 if (strcmp(iter->type->name, c) == 0) {
452 if (iter == ty->cast)
453 return iter;
454 /* Move iter to the top of the linked list */
455 iter->prev->next = iter->next;
456 if (iter->next)
457 iter->next->prev = iter->prev;
458 iter->next = ty->cast;
459 iter->prev = 0;
460 if (ty->cast) ty->cast->prev = iter;
461 ty->cast = iter;
462 return iter;
463 }
464 iter = iter->next;
465 }
466 }
467 return 0;
468}
469
470/*
471 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
472*/
475 if (ty) {
476 swig_cast_info *iter = ty->cast;
477 while (iter) {
478 if (iter->type == from) {
479 if (iter == ty->cast)
480 return iter;
481 /* Move iter to the top of the linked list */
482 iter->prev->next = iter->next;
483 if (iter->next)
484 iter->next->prev = iter->prev;
485 iter->next = ty->cast;
486 iter->prev = 0;
487 if (ty->cast) ty->cast->prev = iter;
488 ty->cast = iter;
489 return iter;
490 }
491 iter = iter->next;
492 }
493 }
494 return 0;
495}
496
497/*
498 Cast a pointer up an inheritance hierarchy
499*/
501SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
502 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
503}
504
505/*
506 Dynamic pointer casting. Down an inheritance hierarchy
507*/
510 swig_type_info *lastty = ty;
511 if (!ty || !ty->dcast) return ty;
512 while (ty && (ty->dcast)) {
513 ty = (*ty->dcast)(ptr);
514 if (ty) lastty = ty;
515 }
516 return lastty;
517}
518
519/*
520 Return the name associated with this type
521*/
522SWIGRUNTIMEINLINE const char *
524 return ty->name;
525}
526
527/*
528 Return the pretty name associated with this type,
529 that is an unmangled type name in a form presentable to the user.
530*/
531SWIGRUNTIME const char *
533 /* The "str" field contains the equivalent pretty names of the
534 type, separated by vertical-bar characters. We choose
535 to print the last name, as it is often (?) the most
536 specific. */
537 if (!type) return NULL;
538 if (type->str != NULL) {
539 const char *last_name = type->str;
540 const char *s;
541 for (s = type->str; *s; s++)
542 if (*s == '|') last_name = s+1;
543 return last_name;
544 }
545 else
546 return type->name;
547}
548
549/*
550 Set the clientdata field for a type
551*/
552SWIGRUNTIME void
554 swig_cast_info *cast = ti->cast;
555 /* if (ti->clientdata == clientdata) return; */
557
558 while (cast) {
559 if (!cast->converter) {
560 swig_type_info *tc = cast->type;
561 if (!tc->clientdata) {
563 }
564 }
565 cast = cast->next;
566 }
567}
568SWIGRUNTIME void
571 ti->owndata = 1;
572}
573
574/*
575 Search for a swig_type_info structure only by mangled name
576 Search is a O(log #types)
577
578 We start searching at module start, and finish searching when start == end.
579 Note: if start == end at the beginning of the function, we go all the way around
580 the circular list.
581*/
584 swig_module_info *end,
585 const char *name) {
586 swig_module_info *iter = start;
587 do {
588 if (iter->size) {
589 size_t l = 0;
590 size_t r = iter->size - 1;
591 do {
592 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
593 size_t i = (l + r) >> 1;
594 const char *iname = iter->types[i]->name;
595 if (iname) {
596 int compare = strcmp(name, iname);
597 if (compare == 0) {
598 return iter->types[i];
599 } else if (compare < 0) {
600 if (i) {
601 r = i - 1;
602 } else {
603 break;
604 }
605 } else if (compare > 0) {
606 l = i + 1;
607 }
608 } else {
609 break; /* should never happen */
610 }
611 } while (l <= r);
612 }
613 iter = iter->next;
614 } while (iter != end);
615 return 0;
616}
617
618/*
619 Search for a swig_type_info structure for either a mangled name or a human readable name.
620 It first searches the mangled names of the types, which is a O(log #types)
621 If a type is not found it then searches the human readable names, which is O(#types).
622
623 We start searching at module start, and finish searching when start == end.
624 Note: if start == end at the beginning of the function, we go all the way around
625 the circular list.
626*/
629 swig_module_info *end,
630 const char *name) {
631 /* STEP 1: Search the name field using binary search */
633 if (ret) {
634 return ret;
635 } else {
636 /* STEP 2: If the type hasn't been found, do a complete search
637 of the str field (the human readable name) */
638 swig_module_info *iter = start;
639 do {
640 size_t i = 0;
641 for (; i < iter->size; ++i) {
642 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
643 return iter->types[i];
644 }
645 iter = iter->next;
646 } while (iter != end);
647 }
648
649 /* neither found a match */
650 return 0;
651}
652
653/*
654 Pack binary data into a string
655*/
656SWIGRUNTIME char *
657SWIG_PackData(char *c, void *ptr, size_t sz) {
658 static const char hex[17] = "0123456789abcdef";
659 const unsigned char *u = (unsigned char *) ptr;
660 const unsigned char *eu = u + sz;
661 for (; u != eu; ++u) {
662 unsigned char uu = *u;
663 *(c++) = hex[(uu & 0xf0) >> 4];
664 *(c++) = hex[uu & 0xf];
665 }
666 return c;
667}
668
669/*
670 Unpack binary data from a string
671*/
672SWIGRUNTIME const char *
673SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
674 unsigned char *u = (unsigned char *) ptr;
675 const unsigned char *eu = u + sz;
676 for (; u != eu; ++u) {
677 char d = *(c++);
678 unsigned char uu;
679 if ((d >= '0') && (d <= '9'))
680 uu = (unsigned char)((d - '0') << 4);
681 else if ((d >= 'a') && (d <= 'f'))
682 uu = (unsigned char)((d - ('a'-10)) << 4);
683 else
684 return (char *) 0;
685 d = *(c++);
686 if ((d >= '0') && (d <= '9'))
687 uu |= (unsigned char)(d - '0');
688 else if ((d >= 'a') && (d <= 'f'))
689 uu |= (unsigned char)(d - ('a'-10));
690 else
691 return (char *) 0;
692 *u = uu;
693 }
694 return c;
695}
696
697/*
698 Pack 'void *' into a string buffer.
699*/
700SWIGRUNTIME char *
701SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
702 char *r = buff;
703 if ((2*sizeof(void *) + 2) > bsz) return 0;
704 *(r++) = '_';
705 r = SWIG_PackData(r,&ptr,sizeof(void *));
706 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
707 strcpy(r,name);
708 return buff;
709}
710
711SWIGRUNTIME const char *
712SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
713 if (*c != '_') {
714 if (strcmp(c,"NULL") == 0) {
715 *ptr = (void *) 0;
716 return name;
717 } else {
718 return 0;
719 }
720 }
721 return SWIG_UnpackData(++c,ptr,sizeof(void *));
722}
723
724SWIGRUNTIME char *
725SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
726 char *r = buff;
727 size_t lname = (name ? strlen(name) : 0);
728 if ((2*sz + 2 + lname) > bsz) return 0;
729 *(r++) = '_';
730 r = SWIG_PackData(r,ptr,sz);
731 if (lname) {
732 strncpy(r,name,lname+1);
733 } else {
734 *r = 0;
735 }
736 return buff;
737}
738
739SWIGRUNTIME const char *
740SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
741 if (*c != '_') {
742 if (strcmp(c,"NULL") == 0) {
743 memset(ptr,0,sz);
744 return name;
745 } else {
746 return 0;
747 }
748 }
749 return SWIG_UnpackData(++c,ptr,sz);
750}
751
752#ifdef __cplusplus
753}
754#endif
755
756/* Errors in SWIG */
757#define SWIG_UnknownError -1
758#define SWIG_IOError -2
759#define SWIG_RuntimeError -3
760#define SWIG_IndexError -4
761#define SWIG_TypeError -5
762#define SWIG_DivisionByZero -6
763#define SWIG_OverflowError -7
764#define SWIG_SyntaxError -8
765#define SWIG_ValueError -9
766#define SWIG_SystemError -10
767#define SWIG_AttributeError -11
768#define SWIG_MemoryError -12
769#define SWIG_NullReferenceError -13
770
771
772
773/* Compatibility macros for Python 3 */
774#if PY_VERSION_HEX >= 0x03000000
775
776#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
777#define PyInt_Check(x) PyLong_Check(x)
778#define PyInt_AsLong(x) PyLong_AsLong(x)
779#define PyInt_FromLong(x) PyLong_FromLong(x)
780#define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
781#define PyString_Check(name) PyBytes_Check(name)
782#define PyString_FromString(x) PyUnicode_FromString(x)
783#define PyString_Format(fmt, args) PyUnicode_Format(fmt, args)
784#define PyString_AsString(str) PyBytes_AsString(str)
785#define PyString_Size(str) PyBytes_Size(str)
786#define PyString_InternFromString(key) PyUnicode_InternFromString(key)
787#define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
788#define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
789#define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
790
791#endif
792
793#ifndef Py_TYPE
794# define Py_TYPE(op) ((op)->ob_type)
795#endif
796
797/* SWIG APIs for compatibility of both Python 2 & 3 */
798
799#if PY_VERSION_HEX >= 0x03000000
800# define SWIG_Python_str_FromFormat PyUnicode_FromFormat
801#else
802# define SWIG_Python_str_FromFormat PyString_FromFormat
803#endif
804
805
806/* Warning: This function will allocate a new string in Python 3,
807 * so please call SWIG_Python_str_DelForPy3(x) to free the space.
808 */
809SWIGINTERN char*
811{
812#if PY_VERSION_HEX >= 0x03030000
813 return (char *)PyUnicode_AsUTF8(str);
814#elif PY_VERSION_HEX >= 0x03000000
815 char *newstr = 0;
816 str = PyUnicode_AsUTF8String(str);
817 if (str) {
818 char *cstr;
819 Py_ssize_t len;
820 if (PyBytes_AsStringAndSize(str, &cstr, &len) != -1) {
821 newstr = (char *) malloc(len+1);
822 if (newstr)
823 memcpy(newstr, cstr, len+1);
824 }
825 Py_XDECREF(str);
826 }
827 return newstr;
828#else
829 return PyString_AsString(str);
830#endif
831}
832
833#if PY_VERSION_HEX >= 0x03030000 || PY_VERSION_HEX < 0x03000000
834# define SWIG_Python_str_DelForPy3(x)
835#else
836# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
837#endif
838
839
840SWIGINTERN PyObject*
842{
843#if PY_VERSION_HEX >= 0x03000000
844 return PyUnicode_FromString(c);
845#else
846 return PyString_FromString(c);
847#endif
848}
849
850#ifndef PyObject_DEL
851# define PyObject_DEL PyObject_Del
852#endif
853
854// SWIGPY_USE_CAPSULE is no longer used within SWIG itself, but some user
855// interface files check for it.
856# define SWIGPY_USE_CAPSULE
857# define SWIGPY_CAPSULE_NAME ("swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
858
859#if PY_VERSION_HEX < 0x03020000
860#define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
861#define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
862#define Py_hash_t long
863#endif
864
865/* -----------------------------------------------------------------------------
866 * error manipulation
867 * ----------------------------------------------------------------------------- */
868
869SWIGRUNTIME PyObject*
871 PyObject* type = 0;
872 switch(code) {
873 case SWIG_MemoryError:
874 type = PyExc_MemoryError;
875 break;
876 case SWIG_IOError:
877 type = PyExc_IOError;
878 break;
880 type = PyExc_RuntimeError;
881 break;
882 case SWIG_IndexError:
883 type = PyExc_IndexError;
884 break;
885 case SWIG_TypeError:
886 type = PyExc_TypeError;
887 break;
889 type = PyExc_ZeroDivisionError;
890 break;
892 type = PyExc_OverflowError;
893 break;
894 case SWIG_SyntaxError:
895 type = PyExc_SyntaxError;
896 break;
897 case SWIG_ValueError:
898 type = PyExc_ValueError;
899 break;
900 case SWIG_SystemError:
901 type = PyExc_SystemError;
902 break;
904 type = PyExc_AttributeError;
905 break;
906 default:
907 type = PyExc_RuntimeError;
908 }
909 return type;
910}
911
912
913SWIGRUNTIME void
914SWIG_Python_AddErrorMsg(const char* mesg)
915{
916 PyObject *type = 0;
917 PyObject *value = 0;
918 PyObject *traceback = 0;
919
920 if (PyErr_Occurred())
921 PyErr_Fetch(&type, &value, &traceback);
922 if (value) {
923 PyObject *old_str = PyObject_Str(value);
924 const char *tmp = SWIG_Python_str_AsChar(old_str);
925 PyErr_Clear();
926 Py_XINCREF(type);
927 if (tmp)
928 PyErr_Format(type, "%s %s", tmp, mesg);
929 else
930 PyErr_Format(type, "%s", mesg);
932 Py_DECREF(old_str);
933 Py_DECREF(value);
934 } else {
935 PyErr_SetString(PyExc_RuntimeError, mesg);
936 }
937}
938
939SWIGRUNTIME int
941{
942 PyObject *error;
943 if (obj)
944 return 0;
945 error = PyErr_Occurred();
946 return error && PyErr_GivenExceptionMatches(error, PyExc_TypeError);
947}
948
949SWIGRUNTIME void
951{
953 /* Use existing TypeError to preserve stacktrace and enhance with given message */
954 PyObject *newvalue;
955 PyObject *type = NULL, *value = NULL, *traceback = NULL;
956 PyErr_Fetch(&type, &value, &traceback);
957#if PY_VERSION_HEX >= 0x03000000
958 newvalue = PyUnicode_FromFormat("%S\nAdditional information:\n%s", value, message);
959#else
960 newvalue = PyString_FromFormat("%s\nAdditional information:\n%s", PyString_AsString(value), message);
961#endif
962 Py_XDECREF(value);
963 PyErr_Restore(type, newvalue, traceback);
964 } else {
965 /* Raise TypeError using given message */
966 PyErr_SetString(PyExc_TypeError, message);
967 }
968}
969
970#if defined(SWIG_PYTHON_NO_THREADS)
971# if defined(SWIG_PYTHON_THREADS)
972# undef SWIG_PYTHON_THREADS
973# endif
974#endif
975#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
976# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
977# define SWIG_PYTHON_USE_GIL
978# endif
979# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
980# ifndef SWIG_PYTHON_INITIALIZE_THREADS
981# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
982# endif
983# ifdef __cplusplus /* C++ code */
984 class SWIG_Python_Thread_Block {
985 bool status;
986 PyGILState_STATE state;
987 public:
988 void end() { if (status) { PyGILState_Release(state); status = false;} }
989 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
990 ~SWIG_Python_Thread_Block() { end(); }
991 };
992 class SWIG_Python_Thread_Allow {
993 bool status;
994 PyThreadState *save;
995 public:
996 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
997 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
998 ~SWIG_Python_Thread_Allow() { end(); }
999 };
1000# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
1001# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
1002# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
1003# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
1004# else /* C code */
1005# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
1006# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
1007# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
1008# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
1009# endif
1010# else /* Old thread way, not implemented, user must provide it */
1011# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1012# define SWIG_PYTHON_INITIALIZE_THREADS
1013# endif
1014# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
1015# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1016# endif
1017# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
1018# define SWIG_PYTHON_THREAD_END_BLOCK
1019# endif
1020# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
1021# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1022# endif
1023# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1024# define SWIG_PYTHON_THREAD_END_ALLOW
1025# endif
1026# endif
1027#else /* No thread support */
1028# define SWIG_PYTHON_INITIALIZE_THREADS
1029# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1030# define SWIG_PYTHON_THREAD_END_BLOCK
1031# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1032# define SWIG_PYTHON_THREAD_END_ALLOW
1033#endif
1034
1035/* -----------------------------------------------------------------------------
1036 * Python API portion that goes into the runtime
1037 * ----------------------------------------------------------------------------- */
1038
1039#ifdef __cplusplus
1040extern "C" {
1041#endif
1042
1043/* -----------------------------------------------------------------------------
1044 * Constant declarations
1045 * ----------------------------------------------------------------------------- */
1046
1047/* Constant Types */
1048#define SWIG_PY_POINTER 4
1049#define SWIG_PY_BINARY 5
1050
1051/* Constant information structure */
1052typedef struct swig_const_info {
1053 int type;
1054 const char *name;
1055 long lvalue;
1056 double dvalue;
1057 void *pvalue;
1060
1061#ifdef __cplusplus
1062}
1063#endif
1064
1065
1066/* -----------------------------------------------------------------------------
1067 * pyrun.swg
1068 *
1069 * This file contains the runtime support for Python modules
1070 * and includes code for managing global variables and pointer
1071 * type checking.
1072 *
1073 * ----------------------------------------------------------------------------- */
1074
1075#if PY_VERSION_HEX < 0x02070000 /* 2.7.0 */
1076# error "This version of SWIG only supports Python >= 2.7"
1077#endif
1078
1079#if PY_VERSION_HEX >= 0x03000000 && PY_VERSION_HEX < 0x03020000
1080# error "This version of SWIG only supports Python 3 >= 3.2"
1081#endif
1082
1083/* Common SWIG API */
1084
1085/* for raw pointers */
1086#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1087#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
1088#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1089
1090#ifdef SWIGPYTHON_BUILTIN
1091#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
1092#else
1093#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1094#endif
1095
1096#define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1097
1098#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
1099#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
1100#define swig_owntype int
1101
1102/* for raw packed data */
1103#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1104#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1105
1106/* for class or struct pointers */
1107#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1108#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1109
1110/* for C or C++ function pointers */
1111#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1112#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
1113
1114/* for C++ member pointers, ie, member methods */
1115#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1116#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1117
1118
1119/* Runtime API */
1120
1121#define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata)
1122#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1123#define SWIG_NewClientData(obj) SwigPyClientData_New(obj)
1124
1125#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1126#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1127#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1128#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1129#define SWIG_fail goto fail
1130
1131
1132/* Runtime API implementation */
1133
1134/* Error manipulation */
1135
1136SWIGINTERN void
1137SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1139 PyErr_SetObject(errtype, obj);
1140 Py_DECREF(obj);
1142}
1143
1144SWIGINTERN void
1145SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1147 PyErr_SetString(errtype, msg);
1149}
1150
1151#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1152
1153/* Set a constant value */
1154
1155#if defined(SWIGPYTHON_BUILTIN)
1156
1157SWIGINTERN void
1158SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1159 PyObject *s = PyString_InternFromString(key);
1160 PyList_Append(seq, s);
1161 Py_DECREF(s);
1162}
1163
1164SWIGINTERN void
1165SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1166 PyDict_SetItemString(d, name, obj);
1167 Py_DECREF(obj);
1168 if (public_interface)
1169 SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1170}
1171
1172#else
1173
1174SWIGINTERN void
1175SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1176 PyDict_SetItemString(d, name, obj);
1177 Py_DECREF(obj);
1178}
1179
1180#endif
1181
1182/* Append a value to the result obj */
1183
1184SWIGINTERN PyObject*
1185SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1186 if (!result) {
1187 result = obj;
1188 } else if (result == Py_None) {
1189 Py_DECREF(result);
1190 result = obj;
1191 } else {
1192 if (!PyList_Check(result)) {
1193 PyObject *o2 = result;
1194 result = PyList_New(1);
1195 PyList_SetItem(result, 0, o2);
1196 }
1197 PyList_Append(result,obj);
1198 Py_DECREF(obj);
1199 }
1200 return result;
1201}
1202
1203/* Unpack the argument tuple */
1204
1205SWIGINTERN Py_ssize_t
1206SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1207{
1208 if (!args) {
1209 if (!min && !max) {
1210 return 1;
1211 } else {
1212 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1213 name, (min == max ? "" : "at least "), (int)min);
1214 return 0;
1215 }
1216 }
1217 if (!PyTuple_Check(args)) {
1218 if (min <= 1 && max >= 1) {
1219 Py_ssize_t i;
1220 objs[0] = args;
1221 for (i = 1; i < max; ++i) {
1222 objs[i] = 0;
1223 }
1224 return 2;
1225 }
1226 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1227 return 0;
1228 } else {
1229 Py_ssize_t l = PyTuple_GET_SIZE(args);
1230 if (l < min) {
1231 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1232 name, (min == max ? "" : "at least "), (int)min, (int)l);
1233 return 0;
1234 } else if (l > max) {
1235 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1236 name, (min == max ? "" : "at most "), (int)max, (int)l);
1237 return 0;
1238 } else {
1239 Py_ssize_t i;
1240 for (i = 0; i < l; ++i) {
1241 objs[i] = PyTuple_GET_ITEM(args, i);
1242 }
1243 for (; l < max; ++l) {
1244 objs[l] = 0;
1245 }
1246 return i + 1;
1247 }
1248 }
1249}
1250
1251SWIGINTERN int
1252SWIG_Python_CheckNoKeywords(PyObject *kwargs, const char *name) {
1253 int no_kwargs = 1;
1254 if (kwargs) {
1255 assert(PyDict_Check(kwargs));
1256 if (PyDict_Size(kwargs) > 0) {
1257 PyErr_Format(PyExc_TypeError, "%s() does not take keyword arguments", name);
1258 no_kwargs = 0;
1259 }
1260 }
1261 return no_kwargs;
1262}
1263
1264/* A functor is a function object with one single object argument */
1265#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1266
1267/*
1268 Helper for static pointer initialization for both C and C++ code, for example
1269 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1270*/
1271#ifdef __cplusplus
1272#define SWIG_STATIC_POINTER(var) var
1273#else
1274#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1275#endif
1276
1277/* -----------------------------------------------------------------------------
1278 * Pointer declarations
1279 * ----------------------------------------------------------------------------- */
1280
1281/* Flags for new pointer objects */
1282#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1283#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1284
1285#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1286
1287#define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2)
1288#define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
1289
1290#ifdef __cplusplus
1291extern "C" {
1292#endif
1293
1294/* The python void return value */
1295
1296SWIGRUNTIMEINLINE PyObject *
1298{
1299 PyObject *none = Py_None;
1300 Py_INCREF(none);
1301 return none;
1302}
1303
1304/* SwigPyClientData */
1305
1306typedef struct {
1307 PyObject *klass;
1308 PyObject *newraw;
1309 PyObject *newargs;
1310 PyObject *destroy;
1311 int delargs;
1312 int implicitconv;
1313 PyTypeObject *pytype;
1315
1318{
1320 int fail = data ? data->implicitconv : 0;
1321 if (fail)
1322 PyErr_SetString(PyExc_TypeError, "Implicit conversion is prohibited for explicit constructors.");
1323 return fail;
1324}
1325
1326SWIGRUNTIMEINLINE PyObject *
1328 SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1329 PyObject *klass = data ? data->klass : 0;
1330 return (klass ? klass : PyExc_RuntimeError);
1331}
1332
1333
1336{
1337 if (!obj) {
1338 return 0;
1339 } else {
1341 /* the klass element */
1342 data->klass = obj;
1343 Py_INCREF(data->klass);
1344 /* the newraw method and newargs arguments used to create a new raw instance */
1345 if (PyClass_Check(obj)) {
1346 data->newraw = 0;
1347 data->newargs = obj;
1348 Py_INCREF(obj);
1349 } else {
1350 data->newraw = PyObject_GetAttrString(data->klass, "__new__");
1351 if (data->newraw) {
1352 Py_INCREF(data->newraw);
1353 data->newargs = PyTuple_New(1);
1354 PyTuple_SetItem(data->newargs, 0, obj);
1355 } else {
1356 data->newargs = obj;
1357 }
1358 Py_INCREF(data->newargs);
1359 }
1360 /* the destroy method, aka as the C++ delete method */
1361 data->destroy = PyObject_GetAttrString(data->klass, "__swig_destroy__");
1362 if (PyErr_Occurred()) {
1363 PyErr_Clear();
1364 data->destroy = 0;
1365 }
1366 if (data->destroy) {
1367 int flags;
1368 Py_INCREF(data->destroy);
1369 flags = PyCFunction_GET_FLAGS(data->destroy);
1370 data->delargs = !(flags & (METH_O));
1371 } else {
1372 data->delargs = 0;
1373 }
1374 data->implicitconv = 0;
1375 data->pytype = 0;
1376 return data;
1377 }
1378}
1379
1380SWIGRUNTIME void
1382 Py_XDECREF(data->newraw);
1383 Py_XDECREF(data->newargs);
1384 Py_XDECREF(data->destroy);
1385}
1386
1387/* =============== SwigPyObject =====================*/
1388
1389typedef struct {
1390 PyObject_HEAD
1391 void *ptr;
1392 swig_type_info *ty;
1393 int own;
1394 PyObject *next;
1395#ifdef SWIGPYTHON_BUILTIN
1396 PyObject *dict;
1397#endif
1398} SwigPyObject;
1399
1400
1401#ifdef SWIGPYTHON_BUILTIN
1402
1403SWIGRUNTIME PyObject *
1404SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1405{
1406 SwigPyObject *sobj = (SwigPyObject *)v;
1407
1408 if (!sobj->dict)
1409 sobj->dict = PyDict_New();
1410
1411 Py_INCREF(sobj->dict);
1412 return sobj->dict;
1413}
1414
1415#endif
1416
1417SWIGRUNTIME PyObject *
1419{
1420 return PyLong_FromVoidPtr(v->ptr);
1421}
1422
1423SWIGRUNTIME PyObject *
1425{
1426 PyObject *res = NULL;
1427 PyObject *args = PyTuple_New(1);
1428 if (args) {
1429 if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1430 PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1431 if (ofmt) {
1432#if PY_VERSION_HEX >= 0x03000000
1433 res = PyUnicode_Format(ofmt,args);
1434#else
1435 res = PyString_Format(ofmt,args);
1436#endif
1437 Py_DECREF(ofmt);
1438 }
1439 Py_DECREF(args);
1440 }
1441 }
1442 return res;
1443}
1444
1445SWIGRUNTIME PyObject *
1447{
1448 return SwigPyObject_format("%o",v);
1449}
1450
1451SWIGRUNTIME PyObject *
1453{
1454 return SwigPyObject_format("%x",v);
1455}
1456
1457SWIGRUNTIME PyObject *
1459{
1460 const char *name = SWIG_TypePrettyName(v->ty);
1461 PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1462 if (v->next) {
1463 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1464# if PY_VERSION_HEX >= 0x03000000
1465 PyObject *joined = PyUnicode_Concat(repr, nrep);
1466 Py_DecRef(repr);
1467 Py_DecRef(nrep);
1468 repr = joined;
1469# else
1470 PyString_ConcatAndDel(&repr,nrep);
1471# endif
1472 }
1473 return repr;
1474}
1475
1476/* We need a version taking two PyObject* parameters so it's a valid
1477 * PyCFunction to use in swigobject_methods[]. */
1478SWIGRUNTIME PyObject *
1479SwigPyObject_repr2(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1480{
1481 return SwigPyObject_repr((SwigPyObject*)v);
1482}
1483
1484SWIGRUNTIME int
1486{
1487 void *i = v->ptr;
1488 void *j = w->ptr;
1489 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1490}
1491
1492/* Added for Python 3.x, would it also be useful for Python 2.x? */
1493SWIGRUNTIME PyObject*
1495{
1496 PyObject* res;
1497 if( op != Py_EQ && op != Py_NE ) {
1498 Py_INCREF(Py_NotImplemented);
1499 return Py_NotImplemented;
1500 }
1501 res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
1502 return res;
1503}
1504
1505
1506SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void);
1507
1508#ifdef SWIGPYTHON_BUILTIN
1509static swig_type_info *SwigPyObject_stype = 0;
1510SWIGRUNTIME PyTypeObject*
1511SwigPyObject_type(void) {
1512 SwigPyClientData *cd;
1513 assert(SwigPyObject_stype);
1514 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1515 assert(cd);
1516 assert(cd->pytype);
1517 return cd->pytype;
1518}
1519#else
1520SWIGRUNTIME PyTypeObject*
1522 static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
1523 return type;
1524}
1525#endif
1526
1528SwigPyObject_Check(PyObject *op) {
1529#ifdef SWIGPYTHON_BUILTIN
1530 PyTypeObject *target_tp = SwigPyObject_type();
1531 if (PyType_IsSubtype(op->ob_type, target_tp))
1532 return 1;
1533 return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
1534#else
1535 return (Py_TYPE(op) == SwigPyObject_type())
1536 || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
1537#endif
1538}
1539
1540SWIGRUNTIME PyObject *
1541SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1542
1543SWIGRUNTIME void
1545{
1546 SwigPyObject *sobj = (SwigPyObject *) v;
1547 PyObject *next = sobj->next;
1548 if (sobj->own == SWIG_POINTER_OWN) {
1549 swig_type_info *ty = sobj->ty;
1550 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1551 PyObject *destroy = data ? data->destroy : 0;
1552 if (destroy) {
1553 /* destroy is always a VARARGS method */
1554 PyObject *res;
1555
1556 /* PyObject_CallFunction() has the potential to silently drop
1557 the active exception. In cases of unnamed temporary
1558 variable or where we just finished iterating over a generator
1559 StopIteration will be active right now, and this needs to
1560 remain true upon return from SwigPyObject_dealloc. So save
1561 and restore. */
1562
1563 PyObject *type = NULL, *value = NULL, *traceback = NULL;
1564 PyErr_Fetch(&type, &value, &traceback);
1565
1566 if (data->delargs) {
1567 /* we need to create a temporary object to carry the destroy operation */
1568 PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1569 res = SWIG_Python_CallFunctor(destroy, tmp);
1570 Py_DECREF(tmp);
1571 } else {
1572 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1573 PyObject *mself = PyCFunction_GET_SELF(destroy);
1574 res = ((*meth)(mself, v));
1575 }
1576 if (!res)
1577 PyErr_WriteUnraisable(destroy);
1578
1579 PyErr_Restore(type, value, traceback);
1580
1581 Py_XDECREF(res);
1582 }
1583#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1584 else {
1585 const char *name = SWIG_TypePrettyName(ty);
1586 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1587 }
1588#endif
1589 }
1590 Py_XDECREF(next);
1591 PyObject_DEL(v);
1592}
1593
1594SWIGRUNTIME PyObject*
1595SwigPyObject_append(PyObject* v, PyObject* next)
1596{
1597 SwigPyObject *sobj = (SwigPyObject *) v;
1598 if (!SwigPyObject_Check(next)) {
1599 PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject");
1600 return NULL;
1601 }
1602 sobj->next = next;
1603 Py_INCREF(next);
1604 return SWIG_Py_Void();
1605}
1606
1607SWIGRUNTIME PyObject*
1608SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1609{
1610 SwigPyObject *sobj = (SwigPyObject *) v;
1611 if (sobj->next) {
1612 Py_INCREF(sobj->next);
1613 return sobj->next;
1614 } else {
1615 return SWIG_Py_Void();
1616 }
1617}
1618
1619SWIGINTERN PyObject*
1620SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1621{
1622 SwigPyObject *sobj = (SwigPyObject *)v;
1623 sobj->own = 0;
1624 return SWIG_Py_Void();
1625}
1626
1627SWIGINTERN PyObject*
1628SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1629{
1630 SwigPyObject *sobj = (SwigPyObject *)v;
1631 sobj->own = SWIG_POINTER_OWN;
1632 return SWIG_Py_Void();
1633}
1634
1635SWIGINTERN PyObject*
1636SwigPyObject_own(PyObject *v, PyObject *args)
1637{
1638 PyObject *val = 0;
1639 if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) {
1640 return NULL;
1641 } else {
1642 SwigPyObject *sobj = (SwigPyObject *)v;
1643 PyObject *obj = PyBool_FromLong(sobj->own);
1644 if (val) {
1645 if (PyObject_IsTrue(val)) {
1646 SwigPyObject_acquire(v,args);
1647 } else {
1648 SwigPyObject_disown(v,args);
1649 }
1650 }
1651 return obj;
1652 }
1653}
1654
1655static PyMethodDef
1657 {"disown", SwigPyObject_disown, METH_NOARGS, "releases ownership of the pointer"},
1658 {"acquire", SwigPyObject_acquire, METH_NOARGS, "acquires ownership of the pointer"},
1659 {"own", SwigPyObject_own, METH_VARARGS, "returns/sets ownership of the pointer"},
1660 {"append", SwigPyObject_append, METH_O, "appends another 'this' object"},
1661 {"next", SwigPyObject_next, METH_NOARGS, "returns the next 'this' object"},
1662 {"__repr__",SwigPyObject_repr2, METH_NOARGS, "returns object representation"},
1663 {0, 0, 0, 0}
1664};
1665
1666SWIGRUNTIME PyTypeObject*
1668 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1669
1670 static PyNumberMethods SwigPyObject_as_number = {
1671 (binaryfunc)0, /*nb_add*/
1672 (binaryfunc)0, /*nb_subtract*/
1673 (binaryfunc)0, /*nb_multiply*/
1674 /* nb_divide removed in Python 3 */
1675#if PY_VERSION_HEX < 0x03000000
1676 (binaryfunc)0, /*nb_divide*/
1677#endif
1678 (binaryfunc)0, /*nb_remainder*/
1679 (binaryfunc)0, /*nb_divmod*/
1680 (ternaryfunc)0,/*nb_power*/
1681 (unaryfunc)0, /*nb_negative*/
1682 (unaryfunc)0, /*nb_positive*/
1683 (unaryfunc)0, /*nb_absolute*/
1684 (inquiry)0, /*nb_nonzero*/
1685 0, /*nb_invert*/
1686 0, /*nb_lshift*/
1687 0, /*nb_rshift*/
1688 0, /*nb_and*/
1689 0, /*nb_xor*/
1690 0, /*nb_or*/
1691#if PY_VERSION_HEX < 0x03000000
1692 0, /*nb_coerce*/
1693#endif
1694 (unaryfunc)SwigPyObject_long, /*nb_int*/
1695#if PY_VERSION_HEX < 0x03000000
1696 (unaryfunc)SwigPyObject_long, /*nb_long*/
1697#else
1698 0, /*nb_reserved*/
1699#endif
1700 (unaryfunc)0, /*nb_float*/
1701#if PY_VERSION_HEX < 0x03000000
1702 (unaryfunc)SwigPyObject_oct, /*nb_oct*/
1703 (unaryfunc)SwigPyObject_hex, /*nb_hex*/
1704#endif
1705#if PY_VERSION_HEX >= 0x03050000 /* 3.5 */
1706 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */
1707#elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */
1708 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
1709#else
1710 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
1711#endif
1712 };
1713
1714 static PyTypeObject swigpyobject_type;
1715 static int type_init = 0;
1716 if (!type_init) {
1717 const PyTypeObject tmp = {
1718#if PY_VERSION_HEX >= 0x03000000
1719 PyVarObject_HEAD_INIT(NULL, 0)
1720#else
1721 PyObject_HEAD_INIT(NULL)
1722 0, /* ob_size */
1723#endif
1724 "SwigPyObject", /* tp_name */
1725 sizeof(SwigPyObject), /* tp_basicsize */
1726 0, /* tp_itemsize */
1727 (destructor)SwigPyObject_dealloc, /* tp_dealloc */
1728 0, /* tp_print */
1729 (getattrfunc)0, /* tp_getattr */
1730 (setattrfunc)0, /* tp_setattr */
1731#if PY_VERSION_HEX >= 0x03000000
1732 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
1733#else
1734 (cmpfunc)SwigPyObject_compare, /* tp_compare */
1735#endif
1736 (reprfunc)SwigPyObject_repr, /* tp_repr */
1737 &SwigPyObject_as_number, /* tp_as_number */
1738 0, /* tp_as_sequence */
1739 0, /* tp_as_mapping */
1740 (hashfunc)0, /* tp_hash */
1741 (ternaryfunc)0, /* tp_call */
1742 0, /* tp_str */
1743 PyObject_GenericGetAttr, /* tp_getattro */
1744 0, /* tp_setattro */
1745 0, /* tp_as_buffer */
1746 Py_TPFLAGS_DEFAULT, /* tp_flags */
1747 swigobject_doc, /* tp_doc */
1748 0, /* tp_traverse */
1749 0, /* tp_clear */
1750 (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
1751 0, /* tp_weaklistoffset */
1752 0, /* tp_iter */
1753 0, /* tp_iternext */
1754 swigobject_methods, /* tp_methods */
1755 0, /* tp_members */
1756 0, /* tp_getset */
1757 0, /* tp_base */
1758 0, /* tp_dict */
1759 0, /* tp_descr_get */
1760 0, /* tp_descr_set */
1761 0, /* tp_dictoffset */
1762 0, /* tp_init */
1763 0, /* tp_alloc */
1764 0, /* tp_new */
1765 0, /* tp_free */
1766 0, /* tp_is_gc */
1767 0, /* tp_bases */
1768 0, /* tp_mro */
1769 0, /* tp_cache */
1770 0, /* tp_subclasses */
1771 0, /* tp_weaklist */
1772 0, /* tp_del */
1773 0, /* tp_version_tag */
1774#if PY_VERSION_HEX >= 0x03040000
1775 0, /* tp_finalize */
1776#endif
1777#if PY_VERSION_HEX >= 0x03080000
1778 0, /* tp_vectorcall */
1779#endif
1780#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
1781 0, /* tp_print */
1782#endif
1783#ifdef COUNT_ALLOCS
1784 0, /* tp_allocs */
1785 0, /* tp_frees */
1786 0, /* tp_maxalloc */
1787 0, /* tp_prev */
1788 0 /* tp_next */
1789#endif
1790 };
1791 swigpyobject_type = tmp;
1792 type_init = 1;
1793 if (PyType_Ready(&swigpyobject_type) < 0)
1794 return NULL;
1795 }
1796 return &swigpyobject_type;
1797}
1798
1799SWIGRUNTIME PyObject *
1800SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
1801{
1802 SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
1803 if (sobj) {
1804 sobj->ptr = ptr;
1805 sobj->ty = ty;
1806 sobj->own = own;
1807 sobj->next = 0;
1808 }
1809 return (PyObject *)sobj;
1810}
1811
1812/* -----------------------------------------------------------------------------
1813 * Implements a simple Swig Packed type, and use it instead of string
1814 * ----------------------------------------------------------------------------- */
1815
1816typedef struct {
1817 PyObject_HEAD
1818 void *pack;
1819 swig_type_info *ty;
1820 size_t size;
1821} SwigPyPacked;
1822
1823SWIGRUNTIME PyObject *
1825{
1826 char result[SWIG_BUFFER_SIZE];
1827 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1828 return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1829 } else {
1830 return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
1831 }
1832}
1833
1834SWIGRUNTIME PyObject *
1836{
1837 char result[SWIG_BUFFER_SIZE];
1838 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1839 return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
1840 } else {
1841 return SWIG_Python_str_FromChar(v->ty->name);
1842 }
1843}
1844
1845SWIGRUNTIME int
1847{
1848 size_t i = v->size;
1849 size_t j = w->size;
1850 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1851 return s ? s : strncmp((const char *)v->pack, (const char *)w->pack, 2*v->size);
1852}
1853
1854SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);
1855
1856SWIGRUNTIME PyTypeObject*
1858 static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
1859 return type;
1860}
1861
1863SwigPyPacked_Check(PyObject *op) {
1864 return ((op)->ob_type == SwigPyPacked_TypeOnce())
1865 || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
1866}
1867
1868SWIGRUNTIME void
1870{
1871 if (SwigPyPacked_Check(v)) {
1872 SwigPyPacked *sobj = (SwigPyPacked *) v;
1873 free(sobj->pack);
1874 }
1875 PyObject_DEL(v);
1876}
1877
1878SWIGRUNTIME PyTypeObject*
1880 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1881 static PyTypeObject swigpypacked_type;
1882 static int type_init = 0;
1883 if (!type_init) {
1884 const PyTypeObject tmp = {
1885#if PY_VERSION_HEX>=0x03000000
1886 PyVarObject_HEAD_INIT(NULL, 0)
1887#else
1888 PyObject_HEAD_INIT(NULL)
1889 0, /* ob_size */
1890#endif
1891 "SwigPyPacked", /* tp_name */
1892 sizeof(SwigPyPacked), /* tp_basicsize */
1893 0, /* tp_itemsize */
1894 (destructor)SwigPyPacked_dealloc, /* tp_dealloc */
1895 0, /* tp_print */
1896 (getattrfunc)0, /* tp_getattr */
1897 (setattrfunc)0, /* tp_setattr */
1898#if PY_VERSION_HEX>=0x03000000
1899 0, /* tp_reserved in 3.0.1 */
1900#else
1901 (cmpfunc)SwigPyPacked_compare, /* tp_compare */
1902#endif
1903 (reprfunc)SwigPyPacked_repr, /* tp_repr */
1904 0, /* tp_as_number */
1905 0, /* tp_as_sequence */
1906 0, /* tp_as_mapping */
1907 (hashfunc)0, /* tp_hash */
1908 (ternaryfunc)0, /* tp_call */
1909 (reprfunc)SwigPyPacked_str, /* tp_str */
1910 PyObject_GenericGetAttr, /* tp_getattro */
1911 0, /* tp_setattro */
1912 0, /* tp_as_buffer */
1913 Py_TPFLAGS_DEFAULT, /* tp_flags */
1914 swigpacked_doc, /* tp_doc */
1915 0, /* tp_traverse */
1916 0, /* tp_clear */
1917 0, /* tp_richcompare */
1918 0, /* tp_weaklistoffset */
1919 0, /* tp_iter */
1920 0, /* tp_iternext */
1921 0, /* tp_methods */
1922 0, /* tp_members */
1923 0, /* tp_getset */
1924 0, /* tp_base */
1925 0, /* tp_dict */
1926 0, /* tp_descr_get */
1927 0, /* tp_descr_set */
1928 0, /* tp_dictoffset */
1929 0, /* tp_init */
1930 0, /* tp_alloc */
1931 0, /* tp_new */
1932 0, /* tp_free */
1933 0, /* tp_is_gc */
1934 0, /* tp_bases */
1935 0, /* tp_mro */
1936 0, /* tp_cache */
1937 0, /* tp_subclasses */
1938 0, /* tp_weaklist */
1939 0, /* tp_del */
1940 0, /* tp_version_tag */
1941#if PY_VERSION_HEX >= 0x03040000
1942 0, /* tp_finalize */
1943#endif
1944#if PY_VERSION_HEX >= 0x03080000
1945 0, /* tp_vectorcall */
1946#endif
1947#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
1948 0, /* tp_print */
1949#endif
1950#ifdef COUNT_ALLOCS
1951 0, /* tp_allocs */
1952 0, /* tp_frees */
1953 0, /* tp_maxalloc */
1954 0, /* tp_prev */
1955 0 /* tp_next */
1956#endif
1957 };
1958 swigpypacked_type = tmp;
1959 type_init = 1;
1960 if (PyType_Ready(&swigpypacked_type) < 0)
1961 return NULL;
1962 }
1963 return &swigpypacked_type;
1964}
1965
1966SWIGRUNTIME PyObject *
1967SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
1968{
1969 SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type());
1970 if (sobj) {
1971 void *pack = malloc(size);
1972 if (pack) {
1973 memcpy(pack, ptr, size);
1974 sobj->pack = pack;
1975 sobj->ty = ty;
1976 sobj->size = size;
1977 } else {
1978 PyObject_DEL((PyObject *) sobj);
1979 sobj = 0;
1980 }
1981 }
1982 return (PyObject *) sobj;
1983}
1984
1986SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1987{
1988 if (SwigPyPacked_Check(obj)) {
1989 SwigPyPacked *sobj = (SwigPyPacked *)obj;
1990 if (sobj->size != size) return 0;
1991 memcpy(ptr, sobj->pack, size);
1992 return sobj->ty;
1993 } else {
1994 return 0;
1995 }
1996}
1997
1998/* -----------------------------------------------------------------------------
1999 * pointers/data manipulation
2000 * ----------------------------------------------------------------------------- */
2001
2002static PyObject *Swig_This_global = NULL;
2003
2004SWIGRUNTIME PyObject *
2006{
2007 if (Swig_This_global == NULL)
2009 return Swig_This_global;
2010}
2011
2012/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
2013
2014/* TODO: I don't know how to implement the fast getset in Python 3 right now */
2015#if PY_VERSION_HEX>=0x03000000
2016#define SWIG_PYTHON_SLOW_GETSET_THIS
2017#endif
2018
2021{
2022 PyObject *obj;
2023
2024 if (SwigPyObject_Check(pyobj))
2025 return (SwigPyObject *) pyobj;
2026
2027#ifdef SWIGPYTHON_BUILTIN
2028 (void)obj;
2029# ifdef PyWeakref_CheckProxy
2030 if (PyWeakref_CheckProxy(pyobj)) {
2031 pyobj = PyWeakref_GET_OBJECT(pyobj);
2032 if (pyobj && SwigPyObject_Check(pyobj))
2033 return (SwigPyObject*) pyobj;
2034 }
2035# endif
2036 return NULL;
2037#else
2038
2039 obj = 0;
2040
2041#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2042 if (PyInstance_Check(pyobj)) {
2043 obj = _PyInstance_Lookup(pyobj, SWIG_This());
2044 } else {
2045 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2046 if (dictptr != NULL) {
2047 PyObject *dict = *dictptr;
2048 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2049 } else {
2050#ifdef PyWeakref_CheckProxy
2051 if (PyWeakref_CheckProxy(pyobj)) {
2052 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2053 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2054 }
2055#endif
2056 obj = PyObject_GetAttr(pyobj,SWIG_This());
2057 if (obj) {
2058 Py_DECREF(obj);
2059 } else {
2060 if (PyErr_Occurred()) PyErr_Clear();
2061 return 0;
2062 }
2063 }
2064 }
2065#else
2066 obj = PyObject_GetAttr(pyobj,SWIG_This());
2067 if (obj) {
2068 Py_DECREF(obj);
2069 } else {
2070 if (PyErr_Occurred()) PyErr_Clear();
2071 return 0;
2072 }
2073#endif
2074 if (obj && !SwigPyObject_Check(obj)) {
2075 /* a PyObject is called 'this', try to get the 'real this'
2076 SwigPyObject from it */
2077 return SWIG_Python_GetSwigThis(obj);
2078 }
2079 return (SwigPyObject *)obj;
2080#endif
2081}
2082
2083/* Acquire a pointer value */
2084
2085SWIGRUNTIME int
2086SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2087 if (own == SWIG_POINTER_OWN) {
2089 if (sobj) {
2090 int oldown = sobj->own;
2091 sobj->own = own;
2092 return oldown;
2093 }
2094 }
2095 return 0;
2096}
2097
2098/* Convert a pointer value */
2099
2100SWIGRUNTIME int
2101SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2102 int res;
2103 SwigPyObject *sobj;
2104 int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0;
2105
2106 if (!obj)
2107 return SWIG_ERROR;
2108 if (obj == Py_None && !implicit_conv) {
2109 if (ptr)
2110 *ptr = 0;
2112 }
2113
2114 res = SWIG_ERROR;
2115
2116 sobj = SWIG_Python_GetSwigThis(obj);
2117 if (own)
2118 *own = 0;
2119 while (sobj) {
2120 void *vptr = sobj->ptr;
2121 if (ty) {
2122 swig_type_info *to = sobj->ty;
2123 if (to == ty) {
2124 /* no type cast needed */
2125 if (ptr) *ptr = vptr;
2126 break;
2127 } else {
2128 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2129 if (!tc) {
2130 sobj = (SwigPyObject *)sobj->next;
2131 } else {
2132 if (ptr) {
2133 int newmemory = 0;
2134 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2135 if (newmemory == SWIG_CAST_NEW_MEMORY) {
2136 assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2137 if (own)
2138 *own = *own | SWIG_CAST_NEW_MEMORY;
2139 }
2140 }
2141 break;
2142 }
2143 }
2144 } else {
2145 if (ptr) *ptr = vptr;
2146 break;
2147 }
2148 }
2149 if (sobj) {
2150 if (own)
2151 *own = *own | sobj->own;
2152 if (flags & SWIG_POINTER_DISOWN) {
2153 sobj->own = 0;
2154 }
2155 res = SWIG_OK;
2156 } else {
2157 if (implicit_conv) {
2158 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2159 if (data && !data->implicitconv) {
2160 PyObject *klass = data->klass;
2161 if (klass) {
2162 PyObject *impconv;
2163 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2164 impconv = SWIG_Python_CallFunctor(klass, obj);
2165 data->implicitconv = 0;
2166 if (PyErr_Occurred()) {
2167 PyErr_Clear();
2168 impconv = 0;
2169 }
2170 if (impconv) {
2171 SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2172 if (iobj) {
2173 void *vptr;
2174 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2175 if (SWIG_IsOK(res)) {
2176 if (ptr) {
2177 *ptr = vptr;
2178 /* transfer the ownership to 'ptr' */
2179 iobj->own = 0;
2180 res = SWIG_AddCast(res);
2181 res = SWIG_AddNewMask(res);
2182 } else {
2183 res = SWIG_AddCast(res);
2184 }
2185 }
2186 }
2187 Py_DECREF(impconv);
2188 }
2189 }
2190 }
2191 if (!SWIG_IsOK(res) && obj == Py_None) {
2192 if (ptr)
2193 *ptr = 0;
2194 if (PyErr_Occurred())
2195 PyErr_Clear();
2196 res = SWIG_OK;
2197 }
2198 }
2199 }
2200 return res;
2201}
2202
2203/* Convert a function ptr value */
2204
2205SWIGRUNTIME int
2206SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2207 if (!PyCFunction_Check(obj)) {
2208 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2209 } else {
2210 void *vptr = 0;
2211 swig_cast_info *tc;
2212
2213 /* here we get the method pointer for callbacks */
2214 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2215 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2216 if (desc)
2217 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2218 if (!desc)
2219 return SWIG_ERROR;
2220 tc = SWIG_TypeCheck(desc,ty);
2221 if (tc) {
2222 int newmemory = 0;
2223 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2224 assert(!newmemory); /* newmemory handling not yet implemented */
2225 } else {
2226 return SWIG_ERROR;
2227 }
2228 return SWIG_OK;
2229 }
2230}
2231
2232/* Convert a packed pointer value */
2233
2234SWIGRUNTIME int
2235SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2236 swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2237 if (!to) return SWIG_ERROR;
2238 if (ty) {
2239 if (to != ty) {
2240 /* check type cast? */
2241 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2242 if (!tc) return SWIG_ERROR;
2243 }
2244 }
2245 return SWIG_OK;
2246}
2247
2248/* -----------------------------------------------------------------------------
2249 * Create a new pointer object
2250 * ----------------------------------------------------------------------------- */
2251
2252/*
2253 Create a new instance object, without calling __init__, and set the
2254 'this' attribute.
2255*/
2256
2257SWIGRUNTIME PyObject*
2259{
2260 PyObject *inst = 0;
2261 PyObject *newraw = data->newraw;
2262 if (newraw) {
2263 inst = PyObject_Call(newraw, data->newargs, NULL);
2264 if (inst) {
2265#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2266 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2267 if (dictptr != NULL) {
2268 PyObject *dict = *dictptr;
2269 if (dict == NULL) {
2270 dict = PyDict_New();
2271 *dictptr = dict;
2272 PyDict_SetItem(dict, SWIG_This(), swig_this);
2273 }
2274 }
2275#else
2276 if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) {
2277 Py_DECREF(inst);
2278 inst = 0;
2279 }
2280#endif
2281 }
2282 } else {
2283#if PY_VERSION_HEX >= 0x03000000
2284 PyObject *empty_args = PyTuple_New(0);
2285 if (empty_args) {
2286 PyObject *empty_kwargs = PyDict_New();
2287 if (empty_kwargs) {
2288 inst = ((PyTypeObject *)data->newargs)->tp_new((PyTypeObject *)data->newargs, empty_args, empty_kwargs);
2289 Py_DECREF(empty_kwargs);
2290 if (inst) {
2291 if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) {
2292 Py_DECREF(inst);
2293 inst = 0;
2294 } else {
2295 Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
2296 }
2297 }
2298 }
2299 Py_DECREF(empty_args);
2300 }
2301#else
2302 PyObject *dict = PyDict_New();
2303 if (dict) {
2304 PyDict_SetItem(dict, SWIG_This(), swig_this);
2305 inst = PyInstance_NewRaw(data->newargs, dict);
2306 Py_DECREF(dict);
2307 }
2308#endif
2309 }
2310 return inst;
2311}
2312
2313SWIGRUNTIME int
2314SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2315{
2316#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2317 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2318 if (dictptr != NULL) {
2319 PyObject *dict = *dictptr;
2320 if (dict == NULL) {
2321 dict = PyDict_New();
2322 *dictptr = dict;
2323 }
2324 return PyDict_SetItem(dict, SWIG_This(), swig_this);
2325 }
2326#endif
2327 return PyObject_SetAttr(inst, SWIG_This(), swig_this);
2328}
2329
2330
2331SWIGINTERN PyObject *
2333 PyObject *obj[2];
2334 if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2335 return NULL;
2336 } else {
2337 SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2338 if (sthis) {
2339 SwigPyObject_append((PyObject*) sthis, obj[1]);
2340 } else {
2341 if (SWIG_Python_SetSwigThis(obj[0], obj[1]) != 0)
2342 return NULL;
2343 }
2344 return SWIG_Py_Void();
2345 }
2346}
2347
2348/* Create a new pointer object */
2349
2350SWIGRUNTIME PyObject *
2351SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2352 SwigPyClientData *clientdata;
2353 PyObject * robj;
2354 int own;
2355
2356 if (!ptr)
2357 return SWIG_Py_Void();
2358
2359 clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2360 own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2361 if (clientdata && clientdata->pytype) {
2362 SwigPyObject *newobj;
2363 if (flags & SWIG_BUILTIN_TP_INIT) {
2364 newobj = (SwigPyObject*) self;
2365 if (newobj->ptr) {
2366 PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2367 while (newobj->next)
2368 newobj = (SwigPyObject *) newobj->next;
2369 newobj->next = next_self;
2370 newobj = (SwigPyObject *)next_self;
2371#ifdef SWIGPYTHON_BUILTIN
2372 newobj->dict = 0;
2373#endif
2374 }
2375 } else {
2376 newobj = PyObject_New(SwigPyObject, clientdata->pytype);
2377#ifdef SWIGPYTHON_BUILTIN
2378 newobj->dict = 0;
2379#endif
2380 }
2381 if (newobj) {
2382 newobj->ptr = ptr;
2383 newobj->ty = type;
2384 newobj->own = own;
2385 newobj->next = 0;
2386 return (PyObject*) newobj;
2387 }
2388 return SWIG_Py_Void();
2389 }
2390
2391 assert(!(flags & SWIG_BUILTIN_TP_INIT));
2392
2393 robj = SwigPyObject_New(ptr, type, own);
2394 if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2395 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2396 Py_DECREF(robj);
2397 robj = inst;
2398 }
2399 return robj;
2400}
2401
2402/* Create a new packed object */
2403
2404SWIGRUNTIMEINLINE PyObject *
2405SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2406 return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2407}
2408
2409/* -----------------------------------------------------------------------------*
2410 * Get type list
2411 * -----------------------------------------------------------------------------*/
2412
2413#ifdef SWIG_LINK_RUNTIME
2414void *SWIG_ReturnGlobalTypeList(void *);
2415#endif
2416
2419 static void *type_pointer = (void *)0;
2420 /* first check if module already created */
2421 if (!type_pointer) {
2422#ifdef SWIG_LINK_RUNTIME
2423 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2424#else
2425 type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
2426 if (PyErr_Occurred()) {
2427 PyErr_Clear();
2428 type_pointer = (void *)0;
2429 }
2430#endif
2431 }
2432 return (swig_module_info *) type_pointer;
2433}
2434
2435SWIGRUNTIME void
2437{
2438 swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
2439 swig_type_info **types = swig_module->types;
2440 size_t i;
2441 for (i =0; i < swig_module->size; ++i) {
2442 swig_type_info *ty = types[i];
2443 if (ty->owndata) {
2445 if (data) SwigPyClientData_Del(data);
2446 }
2447 }
2448 Py_DECREF(SWIG_This());
2449 Swig_This_global = NULL;
2450}
2451
2452SWIGRUNTIME void
2454#if PY_VERSION_HEX >= 0x03000000
2455 /* Add a dummy module object into sys.modules */
2456 PyObject *module = PyImport_AddModule("swig_runtime_data" SWIG_RUNTIME_VERSION);
2457#else
2458 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
2459 PyObject *module = Py_InitModule("swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
2460#endif
2461 PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
2462 if (pointer && module) {
2463 PyModule_AddObject(module, "type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2464 } else {
2465 Py_XDECREF(pointer);
2466 }
2467}
2468
2469/* The python cached type query */
2470SWIGRUNTIME PyObject *
2472 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2473 return cache;
2474}
2475
2477SWIG_Python_TypeQuery(const char *type)
2478{
2479 PyObject *cache = SWIG_Python_TypeCache();
2480 PyObject *key = SWIG_Python_str_FromChar(type);
2481 PyObject *obj = PyDict_GetItem(cache, key);
2482 swig_type_info *descriptor;
2483 if (obj) {
2484 descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
2485 } else {
2487 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2488 if (descriptor) {
2489 obj = PyCapsule_New((void*) descriptor, NULL, NULL);
2490 PyDict_SetItem(cache, key, obj);
2491 Py_DECREF(obj);
2492 }
2493 }
2494 Py_DECREF(key);
2495 return descriptor;
2496}
2497
2498/*
2499 For backward compatibility only
2500*/
2501#define SWIG_POINTER_EXCEPTION 0
2502#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2503#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2504
2505SWIGRUNTIME int
2506SWIG_Python_AddErrMesg(const char* mesg, int infront)
2507{
2508 if (PyErr_Occurred()) {
2509 PyObject *type = 0;
2510 PyObject *value = 0;
2511 PyObject *traceback = 0;
2512 PyErr_Fetch(&type, &value, &traceback);
2513 if (value) {
2514 PyObject *old_str = PyObject_Str(value);
2515 const char *tmp = SWIG_Python_str_AsChar(old_str);
2516 const char *errmesg = tmp ? tmp : "Invalid error message";
2517 Py_XINCREF(type);
2518 PyErr_Clear();
2519 if (infront) {
2520 PyErr_Format(type, "%s %s", mesg, errmesg);
2521 } else {
2522 PyErr_Format(type, "%s %s", errmesg, mesg);
2523 }
2525 Py_DECREF(old_str);
2526 }
2527 return 1;
2528 } else {
2529 return 0;
2530 }
2531}
2532
2533SWIGRUNTIME int
2535{
2536 if (PyErr_Occurred()) {
2537 /* add information about failing argument */
2538 char mesg[256];
2539 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2540 return SWIG_Python_AddErrMesg(mesg, 1);
2541 } else {
2542 return 0;
2543 }
2544}
2545
2546SWIGRUNTIMEINLINE const char *
2548{
2549 SwigPyObject *v = (SwigPyObject *)self;
2550 swig_type_info *ty = v ? v->ty : 0;
2551 return ty ? ty->str : "";
2552}
2553
2554SWIGRUNTIME void
2555SWIG_Python_TypeError(const char *type, PyObject *obj)
2556{
2557 if (type) {
2558#if defined(SWIG_COBJECT_TYPES)
2559 if (obj && SwigPyObject_Check(obj)) {
2560 const char *otype = (const char *) SwigPyObject_GetDesc(obj);
2561 if (otype) {
2562 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
2563 type, otype);
2564 return;
2565 }
2566 } else
2567#endif
2568 {
2569 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2570 if (otype) {
2571 PyObject *str = PyObject_Str(obj);
2572 const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2573 if (cstr) {
2574 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2575 type, otype, cstr);
2577 } else {
2578 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2579 type, otype);
2580 }
2581 Py_XDECREF(str);
2582 return;
2583 }
2584 }
2585 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2586 } else {
2587 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2588 }
2589}
2590
2591
2592/* Convert a pointer value, signal an exception on a type mismatch */
2593SWIGRUNTIME void *
2594SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
2595 void *result;
2596 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2597 PyErr_Clear();
2598#if SWIG_POINTER_EXCEPTION
2599 if (flags) {
2601 SWIG_Python_ArgFail(argnum);
2602 }
2603#endif
2604 }
2605 return result;
2606}
2607
2608#ifdef SWIGPYTHON_BUILTIN
2609SWIGRUNTIME int
2610SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2611 PyTypeObject *tp = obj->ob_type;
2612 PyObject *descr;
2613 PyObject *encoded_name;
2614 descrsetfunc f;
2615 int res = -1;
2616
2617# ifdef Py_USING_UNICODE
2618 if (PyString_Check(name)) {
2619 name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
2620 if (!name)
2621 return -1;
2622 } else if (!PyUnicode_Check(name))
2623# else
2624 if (!PyString_Check(name))
2625# endif
2626 {
2627 PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2628 return -1;
2629 } else {
2630 Py_INCREF(name);
2631 }
2632
2633 if (!tp->tp_dict) {
2634 if (PyType_Ready(tp) < 0)
2635 goto done;
2636 }
2637
2638 descr = _PyType_Lookup(tp, name);
2639 f = NULL;
2640 if (descr != NULL)
2641 f = descr->ob_type->tp_descr_set;
2642 if (!f) {
2643 if (PyString_Check(name)) {
2644 encoded_name = name;
2645 Py_INCREF(name);
2646 } else {
2647 encoded_name = PyUnicode_AsUTF8String(name);
2648 if (!encoded_name)
2649 return -1;
2650 }
2651 PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2652 Py_DECREF(encoded_name);
2653 } else {
2654 res = f(descr, obj, value);
2655 }
2656
2657 done:
2658 Py_DECREF(name);
2659 return res;
2660}
2661#endif
2662
2663
2664#ifdef __cplusplus
2665}
2666#endif
2667
2668
2669
2670#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2671
2672#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2673
2674
2675
2676#ifdef __cplusplus
2677extern "C" {
2678#endif
2679
2680/* Method creation and docstring support functions */
2681
2682SWIGINTERN PyMethodDef *SWIG_PythonGetProxyDoc(const char *name);
2683SWIGINTERN PyObject *SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func);
2684SWIGINTERN PyObject *SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func);
2685
2686#ifdef __cplusplus
2687}
2688#endif
2689
2690
2691 #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0)
2692
2693/* -----------------------------------------------------------------------------
2694 * director_common.swg
2695 *
2696 * This file contains support for director classes which is common between
2697 * languages.
2698 * ----------------------------------------------------------------------------- */
2699
2700/*
2701 Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the
2702 'Swig' namespace. This could be useful for multi-modules projects.
2703*/
2704#ifdef SWIG_DIRECTOR_STATIC
2705/* Force anonymous (static) namespace */
2706#define Swig
2707#endif
2708/* -----------------------------------------------------------------------------
2709 * director.swg
2710 *
2711 * This file contains support for director classes so that Python proxy
2712 * methods can be called from C++.
2713 * ----------------------------------------------------------------------------- */
2714
2715#ifndef SWIG_DIRECTOR_PYTHON_HEADER_
2716#define SWIG_DIRECTOR_PYTHON_HEADER_
2717
2718#include <string>
2719#include <iostream>
2720#include <exception>
2721#include <vector>
2722#include <map>
2723
2724
2725/*
2726 Use -DSWIG_PYTHON_DIRECTOR_NO_VTABLE if you don't want to generate a 'virtual
2727 table', and avoid multiple GetAttr calls to retrieve the python
2728 methods.
2729*/
2730
2731#ifndef SWIG_PYTHON_DIRECTOR_NO_VTABLE
2732#ifndef SWIG_PYTHON_DIRECTOR_VTABLE
2733#define SWIG_PYTHON_DIRECTOR_VTABLE
2734#endif
2735#endif
2736
2737
2738
2739/*
2740 Use -DSWIG_DIRECTOR_NO_UEH if you prefer to avoid the use of the
2741 Undefined Exception Handler provided by swig.
2742*/
2743#ifndef SWIG_DIRECTOR_NO_UEH
2744#ifndef SWIG_DIRECTOR_UEH
2745#define SWIG_DIRECTOR_UEH
2746#endif
2747#endif
2748
2749
2750/*
2751 Use -DSWIG_DIRECTOR_NORTTI if you prefer to avoid the use of the
2752 native C++ RTTI and dynamic_cast<>. But be aware that directors
2753 could stop working when using this option.
2754*/
2755#ifdef SWIG_DIRECTOR_NORTTI
2756/*
2757 When we don't use the native C++ RTTI, we implement a minimal one
2758 only for Directors.
2759*/
2760# ifndef SWIG_DIRECTOR_RTDIR
2761# define SWIG_DIRECTOR_RTDIR
2762
2763namespace Swig {
2764 class Director;
2765 SWIGINTERN std::map<void *, Director *>& get_rtdir_map() {
2766 static std::map<void *, Director *> rtdir_map;
2767 return rtdir_map;
2768 }
2769
2770 SWIGINTERNINLINE void set_rtdir(void *vptr, Director *rtdir) {
2771 get_rtdir_map()[vptr] = rtdir;
2772 }
2773
2774 SWIGINTERNINLINE Director *get_rtdir(void *vptr) {
2775 std::map<void *, Director *>::const_iterator pos = get_rtdir_map().find(vptr);
2776 Director *rtdir = (pos != get_rtdir_map().end()) ? pos->second : 0;
2777 return rtdir;
2778 }
2779}
2780# endif /* SWIG_DIRECTOR_RTDIR */
2781
2782# define SWIG_DIRECTOR_CAST(ARG) Swig::get_rtdir(static_cast<void *>(ARG))
2783# define SWIG_DIRECTOR_RGTR(ARG1, ARG2) Swig::set_rtdir(static_cast<void *>(ARG1), ARG2)
2784
2785#else
2786
2787# define SWIG_DIRECTOR_CAST(ARG) dynamic_cast<Swig::Director *>(ARG)
2788# define SWIG_DIRECTOR_RGTR(ARG1, ARG2)
2789
2790#endif /* SWIG_DIRECTOR_NORTTI */
2791
2792extern "C" {
2793 struct swig_type_info;
2794}
2795
2796namespace Swig {
2797
2798 /* memory handler */
2799 struct GCItem {
2800 virtual ~GCItem() {}
2801
2802 virtual int get_own() const {
2803 return 0;
2804 }
2805 };
2806
2807 struct GCItem_var {
2808 GCItem_var(GCItem *item = 0) : _item(item) {
2809 }
2810
2812 GCItem *tmp = _item;
2813 _item = item;
2814 delete tmp;
2815 return *this;
2816 }
2817
2819 delete _item;
2820 }
2821
2822 GCItem * operator->() const {
2823 return _item;
2824 }
2825
2826 private:
2827 GCItem *_item;
2828 };
2829
2831 GCItem_Object(int own) : _own(own) {
2832 }
2833
2834 virtual ~GCItem_Object() {
2835 }
2836
2837 int get_own() const {
2838 return _own;
2839 }
2840
2841 private:
2842 int _own;
2843 };
2844
2845 template <typename Type>
2846 struct GCItem_T : GCItem {
2847 GCItem_T(Type *ptr) : _ptr(ptr) {
2848 }
2849
2850 virtual ~GCItem_T() {
2851 delete _ptr;
2852 }
2853
2854 private:
2855 Type *_ptr;
2856 };
2857
2858 template <typename Type>
2860 GCArray_T(Type *ptr) : _ptr(ptr) {
2861 }
2862
2863 virtual ~GCArray_T() {
2864 delete[] _ptr;
2865 }
2866
2867 private:
2868 Type *_ptr;
2869 };
2870
2871 /* base class for director exceptions */
2872 class DirectorException : public std::exception {
2873 protected:
2874 std::string swig_msg;
2875 public:
2876 DirectorException(PyObject *error, const char *hdr ="", const char *msg ="") : swig_msg(hdr) {
2878 if (msg[0]) {
2879 swig_msg += " ";
2880 swig_msg += msg;
2881 }
2882 if (!PyErr_Occurred()) {
2883 PyErr_SetString(error, what());
2884 }
2886 }
2887
2888 virtual ~DirectorException() throw() {
2889 }
2890
2891 /* Deprecated, use what() instead */
2892 const char *getMessage() const {
2893 return what();
2894 }
2895
2896 const char *what() const throw() {
2897 return swig_msg.c_str();
2898 }
2899
2900 static void raise(PyObject *error, const char *msg) {
2901 throw DirectorException(error, msg);
2902 }
2903
2904 static void raise(const char *msg) {
2905 raise(PyExc_RuntimeError, msg);
2906 }
2907 };
2908
2909 /* type mismatch in the return value from a python method call */
2911 public:
2912 DirectorTypeMismatchException(PyObject *error, const char *msg="")
2913 : DirectorException(error, "SWIG director type mismatch", msg) {
2914 }
2915
2917 : DirectorException(PyExc_TypeError, "SWIG director type mismatch", msg) {
2918 }
2919
2920 static void raise(PyObject *error, const char *msg) {
2921 throw DirectorTypeMismatchException(error, msg);
2922 }
2923
2924 static void raise(const char *msg) {
2926 }
2927 };
2928
2929 /* any python exception that occurs during a director method call */
2931 public:
2932 DirectorMethodException(const char *msg = "")
2933 : DirectorException(PyExc_RuntimeError, "SWIG director method error.", msg) {
2934 }
2935
2936 static void raise(const char *msg) {
2937 throw DirectorMethodException(msg);
2938 }
2939 };
2940
2941 /* attempt to call a pure virtual method via a director method */
2942 class DirectorPureVirtualException : public DirectorException {
2943 public:
2944 DirectorPureVirtualException(const char *msg = "")
2945 : DirectorException(PyExc_RuntimeError, "SWIG director pure virtual method called", msg) {
2946 }
2947
2948 static void raise(const char *msg) {
2950 }
2951 };
2952
2953
2954#if defined(SWIG_PYTHON_THREADS)
2955/* __THREAD__ is the old macro to activate some thread support */
2956# if !defined(__THREAD__)
2957# define __THREAD__ 1
2958# endif
2959#endif
2960
2961#ifdef __THREAD__
2962# include "pythread.h"
2963 class Guard {
2964 PyThread_type_lock &mutex_;
2965
2966 public:
2967 Guard(PyThread_type_lock & mutex) : mutex_(mutex) {
2968 PyThread_acquire_lock(mutex_, WAIT_LOCK);
2969 }
2970
2971 ~Guard() {
2972 PyThread_release_lock(mutex_);
2973 }
2974 };
2975# define SWIG_GUARD(mutex) Guard _guard(mutex)
2976#else
2977# define SWIG_GUARD(mutex)
2978#endif
2979
2980 /* director base class */
2981 class Director {
2982 private:
2983 /* pointer to the wrapped python object */
2984 PyObject *swig_self;
2985 /* flag indicating whether the object is owned by python or c++ */
2986 mutable bool swig_disown_flag;
2987
2988 /* decrement the reference count of the wrapped python object */
2989 void swig_decref() const {
2990 if (swig_disown_flag) {
2992 Py_DECREF(swig_self);
2994 }
2995 }
2996
2997 public:
2998 /* wrap a python object. */
2999 Director(PyObject *self) : swig_self(self), swig_disown_flag(false) {
3000 }
3001
3002 /* discard our reference at destruction */
3003 virtual ~Director() {
3004 swig_decref();
3005 }
3006
3007 /* return a pointer to the wrapped python object */
3008 PyObject *swig_get_self() const {
3009 return swig_self;
3010 }
3011
3012 /* acquire ownership of the wrapped python object (the sense of "disown" is from python) */
3013 void swig_disown() const {
3014 if (!swig_disown_flag) {
3015 swig_disown_flag=true;
3016 swig_incref();
3017 }
3018 }
3019
3020 /* increase the reference count of the wrapped python object */
3021 void swig_incref() const {
3022 if (swig_disown_flag) {
3023 Py_INCREF(swig_self);
3024 }
3025 }
3026
3027 /* methods to implement pseudo protected director members */
3028 virtual bool swig_get_inner(const char * /* swig_protected_method_name */) const {
3029 return true;
3030 }
3031
3032 virtual void swig_set_inner(const char * /* swig_protected_method_name */, bool /* swig_val */) const {
3033 }
3034
3035 /* ownership management */
3036 private:
3037 typedef std::map<void *, GCItem_var> swig_ownership_map;
3038 mutable swig_ownership_map swig_owner;
3039#ifdef __THREAD__
3040 static PyThread_type_lock swig_mutex_own;
3041#endif
3042
3043 public:
3044 template <typename Type>
3045 void swig_acquire_ownership_array(Type *vptr) const {
3046 if (vptr) {
3047 SWIG_GUARD(swig_mutex_own);
3048 swig_owner[vptr] = new GCArray_T<Type>(vptr);
3049 }
3050 }
3051
3052 template <typename Type>
3053 void swig_acquire_ownership(Type *vptr) const {
3054 if (vptr) {
3055 SWIG_GUARD(swig_mutex_own);
3056 swig_owner[vptr] = new GCItem_T<Type>(vptr);
3057 }
3058 }
3059
3060 void swig_acquire_ownership_obj(void *vptr, int own) const {
3061 if (vptr && own) {
3062 SWIG_GUARD(swig_mutex_own);
3063 swig_owner[vptr] = new GCItem_Object(own);
3064 }
3065 }
3066
3067 int swig_release_ownership(void *vptr) const {
3068 int own = 0;
3069 if (vptr) {
3070 SWIG_GUARD(swig_mutex_own);
3071 swig_ownership_map::iterator iter = swig_owner.find(vptr);
3072 if (iter != swig_owner.end()) {
3073 own = iter->second->get_own();
3074 swig_owner.erase(iter);
3075 }
3076 }
3077 return own;
3078 }
3079
3080 template <typename Type>
3081 static PyObject *swig_pyobj_disown(PyObject *pyobj, PyObject *SWIGUNUSEDPARM(args)) {
3082 SwigPyObject *sobj = (SwigPyObject *)pyobj;
3083 sobj->own = 0;
3084 Director *d = SWIG_DIRECTOR_CAST(reinterpret_cast<Type *>(sobj->ptr));
3085 if (d)
3086 d->swig_disown();
3087 return PyWeakref_NewProxy(pyobj, NULL);
3088 }
3089 };
3090
3091#ifdef __THREAD__
3092 PyThread_type_lock Director::swig_mutex_own = PyThread_allocate_lock();
3093#endif
3094}
3095
3096#endif
3097
3098/* -------- TYPES TABLE (BEGIN) -------- */
3099
3100#define SWIGTYPE_p_CostClassIndex swig_types[0]
3101#define SWIGTYPE_p_DimensionIndex swig_types[1]
3102#define SWIGTYPE_p_DisjunctionIndex swig_types[2]
3103#define SWIGTYPE_p_PickupToDeliveryLimitFunction swig_types[3]
3104#define SWIGTYPE_p_RoutingDimensionIndex swig_types[4]
3105#define SWIGTYPE_p_RoutingDisjunctionIndex swig_types[5]
3106#define SWIGTYPE_p_TransitCallback1 swig_types[6]
3107#define SWIGTYPE_p_TransitCallback2 swig_types[7]
3108#define SWIGTYPE_p_VehicleClassIndex swig_types[8]
3109#define SWIGTYPE_p_absl__Duration swig_types[9]
3110#define SWIGTYPE_p_absl__flat_hash_setT_int_t swig_types[10]
3111#define SWIGTYPE_p_char swig_types[11]
3112#define SWIGTYPE_p_int swig_types[12]
3113#define SWIGTYPE_p_long swig_types[13]
3114#define SWIGTYPE_p_operations_research__Assignment swig_types[14]
3115#define SWIGTYPE_p_operations_research__AssignmentContainerT_operations_research__IntVar_operations_research__IntVarElement_t swig_types[15]
3116#define SWIGTYPE_p_operations_research__AssignmentContainerT_operations_research__IntervalVar_operations_research__IntervalVarElement_t swig_types[16]
3117#define SWIGTYPE_p_operations_research__AssignmentContainerT_operations_research__SequenceVar_operations_research__SequenceVarElement_t swig_types[17]
3118#define SWIGTYPE_p_operations_research__AssignmentElement swig_types[18]
3119#define SWIGTYPE_p_operations_research__BaseIntExpr swig_types[19]
3120#define SWIGTYPE_p_operations_research__BaseLns swig_types[20]
3121#define SWIGTYPE_p_operations_research__BaseObject swig_types[21]
3122#define SWIGTYPE_p_operations_research__BooleanVar swig_types[22]
3123#define SWIGTYPE_p_operations_research__CastConstraint swig_types[23]
3124#define SWIGTYPE_p_operations_research__ChangeValue swig_types[24]
3125#define SWIGTYPE_p_operations_research__Constraint swig_types[25]
3126#define SWIGTYPE_p_operations_research__Decision swig_types[26]
3127#define SWIGTYPE_p_operations_research__DecisionBuilder swig_types[27]
3128#define SWIGTYPE_p_operations_research__DecisionVisitor swig_types[28]
3129#define SWIGTYPE_p_operations_research__DefaultPhaseParameters swig_types[29]
3130#define SWIGTYPE_p_operations_research__Demon swig_types[30]
3131#define SWIGTYPE_p_operations_research__DisjunctiveConstraint swig_types[31]
3132#define SWIGTYPE_p_operations_research__FirstSolutionStrategy__Value swig_types[32]
3133#define SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer swig_types[33]
3134#define SWIGTYPE_p_operations_research__GlobalVehicleBreaksConstraint swig_types[34]
3135#define SWIGTYPE_p_operations_research__ImprovementSearchLimit swig_types[35]
3136#define SWIGTYPE_p_operations_research__IntExpr swig_types[36]
3137#define SWIGTYPE_p_operations_research__IntTupleSet swig_types[37]
3138#define SWIGTYPE_p_operations_research__IntVar swig_types[38]
3139#define SWIGTYPE_p_operations_research__IntVarElement swig_types[39]
3140#define SWIGTYPE_p_operations_research__IntVarIterator swig_types[40]
3141#define SWIGTYPE_p_operations_research__IntVarLocalSearchFilter swig_types[41]
3142#define SWIGTYPE_p_operations_research__IntVarLocalSearchOperator swig_types[42]
3143#define SWIGTYPE_p_operations_research__IntervalVar swig_types[43]
3144#define SWIGTYPE_p_operations_research__IntervalVarElement swig_types[44]
3145#define SWIGTYPE_p_operations_research__LocalDimensionCumulOptimizer swig_types[45]
3146#define SWIGTYPE_p_operations_research__LocalSearchFilter swig_types[46]
3147#define SWIGTYPE_p_operations_research__LocalSearchFilterManager swig_types[47]
3148#define SWIGTYPE_p_operations_research__LocalSearchMonitor swig_types[48]
3149#define SWIGTYPE_p_operations_research__LocalSearchOperator swig_types[49]
3150#define SWIGTYPE_p_operations_research__LocalSearchPhaseParameters swig_types[50]
3151#define SWIGTYPE_p_operations_research__ModelVisitor swig_types[51]
3152#define SWIGTYPE_p_operations_research__NumericalRevT_long_t swig_types[52]
3153#define SWIGTYPE_p_operations_research__OptimizeVar swig_types[53]
3154#define SWIGTYPE_p_operations_research__Pack swig_types[54]
3155#define SWIGTYPE_p_operations_research__PathOperator swig_types[55]
3156#define SWIGTYPE_p_operations_research__PropagationBaseObject swig_types[56]
3157#define SWIGTYPE_p_operations_research__PropagationMonitor swig_types[57]
3158#define SWIGTYPE_p_operations_research__RegularLimit swig_types[58]
3159#define SWIGTYPE_p_operations_research__RevT_bool_t swig_types[59]
3160#define SWIGTYPE_p_operations_research__RevT_long_t swig_types[60]
3161#define SWIGTYPE_p_operations_research__RoutingDimension swig_types[61]
3162#define SWIGTYPE_p_operations_research__RoutingIndexManager swig_types[62]
3163#define SWIGTYPE_p_operations_research__RoutingModel swig_types[63]
3164#define SWIGTYPE_p_operations_research__RoutingModelVisitor swig_types[64]
3165#define SWIGTYPE_p_operations_research__RoutingModel__VehicleTypeContainer swig_types[65]
3166#define SWIGTYPE_p_operations_research__SearchLimit swig_types[66]
3167#define SWIGTYPE_p_operations_research__SearchLog swig_types[67]
3168#define SWIGTYPE_p_operations_research__SearchMonitor swig_types[68]
3169#define SWIGTYPE_p_operations_research__SequenceVar swig_types[69]
3170#define SWIGTYPE_p_operations_research__SequenceVarElement swig_types[70]
3171#define SWIGTYPE_p_operations_research__SequenceVarLocalSearchOperator swig_types[71]
3172#define SWIGTYPE_p_operations_research__SolutionCollector swig_types[72]
3173#define SWIGTYPE_p_operations_research__SolutionPool swig_types[73]
3174#define SWIGTYPE_p_operations_research__Solver swig_types[74]
3175#define SWIGTYPE_p_operations_research__Solver__SearchLogParameters swig_types[75]
3176#define SWIGTYPE_p_operations_research__SymmetryBreaker swig_types[76]
3177#define SWIGTYPE_p_operations_research__TypeIncompatibilityChecker swig_types[77]
3178#define SWIGTYPE_p_operations_research__TypeRegulationsChecker swig_types[78]
3179#define SWIGTYPE_p_operations_research__TypeRegulationsConstraint swig_types[79]
3180#define SWIGTYPE_p_operations_research__TypeRequirementChecker swig_types[80]
3181#define SWIGTYPE_p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t swig_types[81]
3182#define SWIGTYPE_p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_t swig_types[82]
3183#define SWIGTYPE_p_short swig_types[83]
3184#define SWIGTYPE_p_signed_char swig_types[84]
3185#define SWIGTYPE_p_std__functionT_long_flongF_t swig_types[85]
3186#define SWIGTYPE_p_std__functionT_long_flong_longF_t swig_types[86]
3187#define SWIGTYPE_p_std__ostream swig_types[87]
3188#define SWIGTYPE_p_std__pairT_std__vectorT_long_t_std__vectorT_long_t_t swig_types[88]
3189#define SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t swig_types[89]
3190#define SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t swig_types[90]
3191#define SWIGTYPE_p_std__vectorT_operations_research__LocalSearchFilterManager__FilterEvent_t swig_types[91]
3192#define SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_p_t swig_types[92]
3193#define SWIGTYPE_p_std__vectorT_std__pairT_int_int_t_t swig_types[93]
3194#define SWIGTYPE_p_std__vectorT_std__pairT_long_long_t_t swig_types[94]
3195#define SWIGTYPE_p_std__vectorT_std__pairT_std__vectorT_long_t_std__vectorT_long_t_t_t swig_types[95]
3196#define SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__GlobalDimensionCumulOptimizer_t_t swig_types[96]
3197#define SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__LocalDimensionCumulOptimizer_t_t swig_types[97]
3198#define SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t swig_types[98]
3199#define SWIGTYPE_p_unsigned_char swig_types[99]
3200#define SWIGTYPE_p_unsigned_int swig_types[100]
3201#define SWIGTYPE_p_unsigned_long swig_types[101]
3202#define SWIGTYPE_p_unsigned_short swig_types[102]
3204static swig_module_info swig_module = {swig_types, 103, 0, 0, 0, 0};
3205#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
3206#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
3207
3208/* -------- TYPES TABLE (END) -------- */
3209
3210#ifdef SWIG_TypeQuery
3211# undef SWIG_TypeQuery
3212#endif
3213#define SWIG_TypeQuery SWIG_Python_TypeQuery
3214
3215/*-----------------------------------------------
3216 @(target):= _pywrapcp.so
3217 ------------------------------------------------*/
3218#if PY_VERSION_HEX >= 0x03000000
3219# define SWIG_init PyInit__pywrapcp
3220
3221#else
3222# define SWIG_init init_pywrapcp
3223
3224#endif
3225#define SWIG_name "_pywrapcp"
3226
3227#define SWIGVERSION 0x040002
3228#define SWIG_VERSION SWIGVERSION
3229
3230
3231#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
3232#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
3233
3234
3235#include <stdexcept>
3236
3237
3238namespace swig {
3239 class SwigPtr_PyObject {
3240 protected:
3241 PyObject *_obj;
3242
3243 public:
3245 {
3246 }
3247
3249 {
3251 Py_XINCREF(_obj);
3253 }
3254
3255 SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
3256 {
3257 if (initial_ref) {
3259 Py_XINCREF(_obj);
3261 }
3262 }
3263
3265 {
3267 Py_XINCREF(item._obj);
3268 Py_XDECREF(_obj);
3269 _obj = item._obj;
3271 return *this;
3272 }
3273
3275 {
3277 Py_XDECREF(_obj);
3279 }
3280
3281 operator PyObject *() const
3282 {
3283 return _obj;
3284 }
3285
3286 PyObject *operator->() const
3287 {
3288 return _obj;
3289 }
3290 };
3291}
3292
3293
3294namespace swig {
3295 struct SwigVar_PyObject : SwigPtr_PyObject {
3296 SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
3297
3299 {
3300 Py_XDECREF(_obj);
3301 _obj = obj;
3302 return *this;
3303 }
3304 };
3305}
3306
3307
3308#include <cstdint>
3309#include <string>
3310#include <vector>
3311
3313
3314
3315#include <stdint.h> // Use the C99 official header
3316
3317
3318#define SWIGWORDSIZE64
3319#ifndef LONG_MAX
3320#include <limits.h>
3321#endif
3322#if (__WORDSIZE == 32) || (LONG_MAX == INT_MAX)
3323# error "SWIG wrapped code invalid in 32 bit architecture, regenerate code using -DSWIGWORDSIZE32"
3324#endif
3325
3326
3327#include <string>
3328
3329
3330#include "ortools/base/python-swig.h"
3331
3332
3333template<>
3334PyObject* PyObjFrom<int64_t>(const int64_t& c) { return PyLong_FromLongLong(c); }
3335
3336
3337#include <functional>
3338
3339// A copyable, ref-counted python pointer.
3340// TODO(user): Make it movable-only when we support generalized lambda
3341// capture.
3343 public:
3344 explicit SharedPyPtr(PyObject* obj) : obj_(obj) { Py_INCREF(obj_); }
3345 SharedPyPtr(const SharedPyPtr& other) : obj_(other.obj_) { Py_INCREF(obj_); }
3346
3347 ~SharedPyPtr() { Py_DECREF(obj_); }
3348
3349 PyObject* get() const { return obj_; }
3350
3351 private:
3352 // We do not follow the rule of three as we only want to copy construct.
3353 SharedPyPtr& operator=(const SharedPyPtr&);
3354
3355 PyObject* const obj_;
3356};
3357
3358template <typename ReturnT>
3359static ReturnT HandleResult(PyObject* pyresult) {
3360 // This zero-initializes builtin types.
3361 ReturnT result = ReturnT();
3362 if (!pyresult) {
3363 if (!PyErr_Occurred()) {
3364 PyErr_SetString(PyExc_RuntimeError,
3365 "SWIG std::function invocation failed.");
3366 }
3367 return result;
3368 } else {
3369 if (!PyObjAs<ReturnT>(pyresult, &result)) {
3370 if (!PyErr_Occurred()) {
3371 PyErr_SetString(PyExc_RuntimeError,
3372 "SWIG std::function invocation failed.");
3373 }
3374 }
3375 Py_DECREF(pyresult);
3376 }
3377 return result;
3378}
3379
3380template <>
3381void HandleResult<void>(PyObject * pyresult) {
3382 if (!pyresult) {
3383 if (!PyErr_Occurred()) {
3384 PyErr_SetString(PyExc_RuntimeError,
3385 "SWIG std::function invocation failed.");
3386 }
3387 } else {
3388 Py_DECREF(pyresult);
3389 }
3390}
3391
3392template <typename ReturnT, typename... Args>
3393static ReturnT InvokePythonCallableReturning(PyObject* pyfunc,
3394 const char* format, Args... args) {
3395 // The const_cast is safe (it's here only because the python API is not
3396 // const-correct).
3397 return HandleResult<ReturnT>(
3398 PyObject_CallFunction(pyfunc, const_cast<char*>(format), args...));
3399}
3400
3401template <typename ReturnT>
3402static ReturnT InvokePythonCallableReturning(PyObject* pyfunc) {
3403 return HandleResult<ReturnT>(PyObject_CallFunctionObjArgs(pyfunc, nullptr));
3404}
3405
3406
3407
3408#include <setjmp.h> // For FailureProtect. See below.
3409
3410// Used in the PROTECT_FROM_FAILURE macro. See below.
3411struct FailureProtect {
3412 jmp_buf exception_buffer;
3413 void JumpBack() { longjmp(exception_buffer, 1); }
3414};
3415
3416// This #includes constraint_solver.h, and inlines some C++ helpers.
3417#include "ortools/constraint_solver/python/pywrapcp_util.h"
3421
3422
3423template<>
3424bool PyObjAs(PyObject *py_obj, operations_research::Decision** b) {
3425 return SWIG_ConvertPtr(py_obj, reinterpret_cast<void**>(b),
3428}
3429
3430
3431template<>
3433 return SWIG_ConvertPtr(py_obj, reinterpret_cast<void**>(b),
3436}
3437
3438
3439template<>
3441 return SWIG_ConvertPtr(py_obj, reinterpret_cast<void**>(b),
3444}
3445
3446
3447template<>
3448bool PyObjAs(PyObject *py_obj, operations_research::IntervalVar** b) {
3449 return SWIG_ConvertPtr(py_obj, reinterpret_cast<void**>(b),
3452}
3453
3454
3455template<>
3456bool PyObjAs(PyObject *py_obj, operations_research::SequenceVar** b) {
3457 return SWIG_ConvertPtr(py_obj, reinterpret_cast<void**>(b),
3460}
3461
3462
3463template<>
3465 return SWIG_ConvertPtr(py_obj, reinterpret_cast<void**>(b),
3468}
3469
3470
3471template<>
3473 return SWIG_ConvertPtr(py_obj, reinterpret_cast<void**>(b),
3476}
3477
3478
3479template<>
3481 return SWIG_ConvertPtr(py_obj, reinterpret_cast<void**>(b),
3484}
3485
3486
3487template<>
3488bool PyObjAs(PyObject *py_obj, operations_research::IntVar** var) {
3489 // First, try to interpret the python object as an IntExpr.
3491 if (SWIG_ConvertPtr(py_obj, reinterpret_cast<void**>(&t),
3493 SWIG_POINTER_EXCEPTION) >= 0) {
3494 if (t == nullptr) return false;
3495 *var = t->Var();
3496 return true;
3497 }
3498 // Then, try to interpret it as a Constraint.
3500 if (SWIG_ConvertPtr(py_obj, reinterpret_cast<void**>(&c),
3502 SWIG_POINTER_EXCEPTION) >= 0) {
3503 if (c == nullptr || c->Var() == nullptr) return false;
3504 *var = c->Var();
3505 return true;
3506 }
3507 // Give up.
3508 return false;
3509}
3510
3511
3512template<>
3513bool PyObjAs(PyObject *py_obj, operations_research::IntExpr** var) {
3514 // First, try to interpret the python object as an IntExpr.
3516 if (SWIG_ConvertPtr(py_obj, reinterpret_cast<void**>(&t),
3518 SWIG_POINTER_EXCEPTION) >= 0) {
3519 if (t == nullptr) return false;
3520 *var = t->Var();
3521 return true;
3522 }
3523 // Then, try to interpret it as a Constraint.
3525 if (SWIG_ConvertPtr(py_obj, reinterpret_cast<void**>(&c),
3527 SWIG_POINTER_EXCEPTION) >= 0) {
3528 if (c == nullptr || c->Var() == nullptr) return false;
3529 *var = c->Var();
3530 return true;
3531 }
3532 // Give up.
3533 return false;
3534}
3535
3536
3540 0 | 0);
3541}
3542
3543bool CanConvertToIntVar(PyObject *py_obj) {
3545 return PyObjAs(py_obj, &tmp);
3546}
3547
3548
3552 0 | 0);
3553}
3554
3555bool CanConvertToIntExpr(PyObject *py_obj) {
3557 return PyObjAs(py_obj, &tmp);
3558}
3559
3560
3564 0 | 0);
3565}
3566
3567bool CanConvertToDecision(PyObject *py_obj) {
3569 return PyObjAs(py_obj, &tmp);
3570}
3571
3572
3576 0 | 0);
3577}
3578
3579bool CanConvertToDecisionBuilder(PyObject *py_obj) {
3581 return PyObjAs(py_obj, &tmp);
3582}
3583
3584
3588 0 | 0);
3589}
3590
3591bool CanConvertToSearchMonitor(PyObject *py_obj) {
3593 return PyObjAs(py_obj, &tmp);
3594}
3595
3596
3600 0 | 0);
3601}
3602
3603bool CanConvertToIntervalVar(PyObject *py_obj) {
3605 return PyObjAs(py_obj, &tmp);
3606}
3607
3608
3612 0 | 0);
3613}
3614
3615bool CanConvertToSequenceVar(PyObject *py_obj) {
3617 return PyObjAs(py_obj, &tmp);
3618}
3619
3620
3624 0 | 0);
3625}
3626
3627bool CanConvertToLocalSearchOperator(PyObject *py_obj) {
3629 return PyObjAs(py_obj, &tmp);
3630}
3631
3632
3636 0 | 0);
3637}
3638
3639bool CanConvertToLocalSearchFilter(PyObject *py_obj) {
3641 return PyObjAs(py_obj, &tmp);
3642}
3643
3644
3648 0 | 0);
3649}
3650
3653 return PyObjAs(py_obj, &tmp);
3654}
3655
3656
3657static void PyFunctionSolverToVoid(PyObject* pyfunc,
3659 // () needed to force creation of one-element tuple
3660 PyObject* const pysolver =
3663 PyObject* const pyresult = PyEval_CallFunction(pyfunc, "(O)", pysolver);
3664 if (!pyresult) {
3665 PyErr_SetString(PyExc_RuntimeError,
3666 "std::function<void(Solver*)> invocation failed.");
3667 } else {
3668 Py_DECREF(pyresult);
3669 }
3670}
3671
3672
3673SWIGINTERNINLINE PyObject*
3675{
3676 return PyInt_FromLong((long) value);
3677}
3678
3679
3680#include <limits.h>
3681#if !defined(SWIG_NO_LLONG_MAX)
3682# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
3683# define LLONG_MAX __LONG_LONG_MAX__
3684# define LLONG_MIN (-LLONG_MAX - 1LL)
3685# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
3686# endif
3687#endif
3688
3689
3690SWIGINTERN int
3691SWIG_AsVal_double (PyObject *obj, double *val)
3692{
3693 int res = SWIG_TypeError;
3694 if (PyFloat_Check(obj)) {
3695 if (val) *val = PyFloat_AsDouble(obj);
3696 return SWIG_OK;
3697#if PY_VERSION_HEX < 0x03000000
3698 } else if (PyInt_Check(obj)) {
3699 if (val) *val = (double) PyInt_AsLong(obj);
3700 return SWIG_OK;
3701#endif
3702 } else if (PyLong_Check(obj)) {
3703 double v = PyLong_AsDouble(obj);
3704 if (!PyErr_Occurred()) {
3705 if (val) *val = v;
3706 return SWIG_OK;
3707 } else {
3708 PyErr_Clear();
3709 }
3710 }
3711#ifdef SWIG_PYTHON_CAST_MODE
3712 {
3713 int dispatch = 0;
3714 double d = PyFloat_AsDouble(obj);
3715 if (!PyErr_Occurred()) {
3716 if (val) *val = d;
3717 return SWIG_AddCast(SWIG_OK);
3718 } else {
3719 PyErr_Clear();
3720 }
3721 if (!dispatch) {
3722 long v = PyLong_AsLong(obj);
3723 if (!PyErr_Occurred()) {
3724 if (val) *val = v;
3726 } else {
3727 PyErr_Clear();
3728 }
3729 }
3730 }
3731#endif
3732 return res;
3733}
3734
3735
3736#include <float.h>
3737
3738
3739#include <math.h>
3740
3741
3743SWIG_CanCastAsInteger(double *d, double min, double max) {
3744 double x = *d;
3745 if ((min <= x && x <= max)) {
3746 double fx = floor(x);
3747 double cx = ceil(x);
3748 double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3749 if ((errno == EDOM) || (errno == ERANGE)) {
3750 errno = 0;
3751 } else {
3752 double summ, reps, diff;
3753 if (rd < x) {
3754 diff = x - rd;
3755 } else if (rd > x) {
3756 diff = rd - x;
3757 } else {
3758 return 1;
3759 }
3760 summ = rd + x;
3761 reps = diff/summ;
3762 if (reps < 8*DBL_EPSILON) {
3763 *d = rd;
3764 return 1;
3765 }
3766 }
3767 }
3768 return 0;
3769}
3770
3771
3772SWIGINTERN int
3773SWIG_AsVal_long (PyObject *obj, long* val)
3774{
3775#if PY_VERSION_HEX < 0x03000000
3776 if (PyInt_Check(obj)) {
3777 if (val) *val = PyInt_AsLong(obj);
3778 return SWIG_OK;
3779 } else
3780#endif
3781 if (PyLong_Check(obj)) {
3782 long v = PyLong_AsLong(obj);
3783 if (!PyErr_Occurred()) {
3784 if (val) *val = v;
3785 return SWIG_OK;
3786 } else {
3787 PyErr_Clear();
3788 return SWIG_OverflowError;
3789 }
3790 }
3791#ifdef SWIG_PYTHON_CAST_MODE
3792 {
3793 int dispatch = 0;
3794 long v = PyInt_AsLong(obj);
3795 if (!PyErr_Occurred()) {
3796 if (val) *val = v;
3797 return SWIG_AddCast(SWIG_OK);
3798 } else {
3799 PyErr_Clear();
3800 }
3801 if (!dispatch) {
3802 double d;
3803 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3804 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
3805 if (val) *val = (long)(d);
3806 return res;
3807 }
3808 }
3809 }
3810#endif
3811 return SWIG_TypeError;
3812}
3813
3814
3815SWIGINTERN int
3816SWIG_AsVal_int (PyObject * obj, int *val)
3817{
3818 long v;
3819 int res = SWIG_AsVal_long (obj, &v);
3820 if (SWIG_IsOK(res)) {
3821 if ((v < INT_MIN || v > INT_MAX)) {
3822 return SWIG_OverflowError;
3823 } else {
3824 if (val) *val = static_cast< int >(v);
3825 }
3826 }
3827 return res;
3828}
3829
3830
3831SWIGINTERN int
3832SWIG_AsVal_bool (PyObject *obj, bool *val)
3833{
3834 int r;
3835 if (!PyBool_Check(obj))
3836 return SWIG_ERROR;
3837 r = PyObject_IsTrue(obj);
3838 if (r == -1)
3839 return SWIG_ERROR;
3840 if (val) *val = r ? true : false;
3841 return SWIG_OK;
3842}
3843
3844
3845SWIGINTERNINLINE PyObject*
3847{
3848 return PyBool_FromLong(value ? 1 : 0);
3849}
3850
3851
3854{
3855 static int init = 0;
3856 static swig_type_info* info = 0;
3857 if (!init) {
3858 info = SWIG_TypeQuery("_p_char");
3859 init = 1;
3860 }
3861 return info;
3862}
3863
3864
3865SWIGINTERN int
3866SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
3867{
3868#if PY_VERSION_HEX>=0x03000000
3869#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3870 if (PyBytes_Check(obj))
3871#else
3872 if (PyUnicode_Check(obj))
3873#endif
3874#else
3875 if (PyString_Check(obj))
3876#endif
3877 {
3878 char *cstr; Py_ssize_t len;
3879 int ret = SWIG_OK;
3880#if PY_VERSION_HEX>=0x03000000
3881#if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3882 if (!alloc && cptr) {
3883 /* We can't allow converting without allocation, since the internal
3884 representation of string in Python 3 is UCS-2/UCS-4 but we require
3885 a UTF-8 representation.
3886 TODO(bhy) More detailed explanation */
3887 return SWIG_RuntimeError;
3888 }
3889 obj = PyUnicode_AsUTF8String(obj);
3890 if (!obj)
3891 return SWIG_TypeError;
3892 if (alloc)
3893 *alloc = SWIG_NEWOBJ;
3894#endif
3895 if (PyBytes_AsStringAndSize(obj, &cstr, &len) == -1)
3896 return SWIG_TypeError;
3897#else
3898 if (PyString_AsStringAndSize(obj, &cstr, &len) == -1)
3899 return SWIG_TypeError;
3900#endif
3901 if (cptr) {
3902 if (alloc) {
3903 if (*alloc == SWIG_NEWOBJ) {
3904 *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
3905 *alloc = SWIG_NEWOBJ;
3906 } else {
3907 *cptr = cstr;
3908 *alloc = SWIG_OLDOBJ;
3909 }
3910 } else {
3911#if PY_VERSION_HEX>=0x03000000
3912#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3913 *cptr = PyBytes_AsString(obj);
3914#else
3915 assert(0); /* Should never reach here with Unicode strings in Python 3 */
3916#endif
3917#else
3918 *cptr = SWIG_Python_str_AsChar(obj);
3919 if (!*cptr)
3920 ret = SWIG_TypeError;
3921#endif
3922 }
3923 }
3924 if (psize) *psize = len + 1;
3925#if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3926 Py_XDECREF(obj);
3927#endif
3928 return ret;
3929 } else {
3930#if defined(SWIG_PYTHON_2_UNICODE)
3931#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3932#error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
3933#endif
3934#if PY_VERSION_HEX<0x03000000
3935 if (PyUnicode_Check(obj)) {
3936 char *cstr; Py_ssize_t len;
3937 if (!alloc && cptr) {
3938 return SWIG_RuntimeError;
3939 }
3940 obj = PyUnicode_AsUTF8String(obj);
3941 if (!obj)
3942 return SWIG_TypeError;
3943 if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
3944 if (cptr) {
3945 if (alloc) *alloc = SWIG_NEWOBJ;
3946 *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
3947 }
3948 if (psize) *psize = len + 1;
3949
3950 Py_XDECREF(obj);
3951 return SWIG_OK;
3952 } else {
3953 Py_XDECREF(obj);
3954 }
3955 }
3956#endif
3957#endif
3958
3959 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3960 if (pchar_descriptor) {
3961 void* vptr = 0;
3962 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
3963 if (cptr) *cptr = (char *) vptr;
3964 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3965 if (alloc) *alloc = SWIG_OLDOBJ;
3966 return SWIG_OK;
3967 }
3968 }
3969 }
3970 return SWIG_TypeError;
3971}
3972
3973
3974SWIGINTERN int
3975SWIG_AsPtr_std_string (PyObject * obj, std::string **val)
3976{
3977 char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ;
3978 if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) {
3979 if (buf) {
3980 if (val) *val = new std::string(buf, size - 1);
3981 if (alloc == SWIG_NEWOBJ) delete[] buf;
3982 return SWIG_NEWOBJ;
3983 } else {
3984 if (val) *val = 0;
3985 return SWIG_OLDOBJ;
3986 }
3987 } else {
3988 static int init = 0;
3989 static swig_type_info* descriptor = 0;
3990 if (!init) {
3991 descriptor = SWIG_TypeQuery("std::string" " *");
3992 init = 1;
3993 }
3994 if (descriptor) {
3995 std::string *vptr;
3996 int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0);
3997 if (SWIG_IsOK(res) && val) *val = vptr;
3998 return res;
3999 }
4000 }
4001 return SWIG_ERROR;
4002}
4003
4004
4005 #define SWIG_From_long PyInt_FromLong
4006
4007
4008SWIGINTERNINLINE PyObject*
4010{
4011 return (value > LONG_MAX) ?
4012 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
4013}
4014
4015
4016SWIGINTERNINLINE PyObject *
4017SWIG_FromCharPtrAndSize(const char* carray, size_t size)
4018{
4019 if (carray) {
4020 if (size > INT_MAX) {
4021 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
4022 return pchar_descriptor ?
4023 SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void();
4024 } else {
4025#if PY_VERSION_HEX >= 0x03000000
4026#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
4027 return PyBytes_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
4028#else
4029 return PyUnicode_DecodeUTF8(carray, static_cast< Py_ssize_t >(size), "surrogateescape");
4030#endif
4031#else
4032 return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
4033#endif
4034 }
4035 } else {
4036 return SWIG_Py_Void();
4037 }
4038}
4039
4040
4041SWIGINTERNINLINE PyObject *
4042SWIG_From_std_string (const std::string& s)
4043{
4044 return SWIG_FromCharPtrAndSize(s.data(), s.size());
4045}
4046
4048 return self->DebugString();
4049 }
4050SWIGINTERN operations_research::Constraint *operations_research_Solver_TreeNoCycle__SWIG_0(operations_research::Solver *self,std::vector< operations_research::IntVar * > const &nexts,std::vector< operations_research::IntVar * > const &active,operations_research::Solver::IndexFilter1 callback=nullptr){
4051 return self->MakeNoCycle(nexts, active, callback, false);
4052 }
4054 return self->MakeSearchLog(period, callback);
4055 }
4057 return self->MakeElement(values, index);
4058 }
4059SWIGINTERN operations_research::DecisionBuilder *operations_research_Solver_VarEvalValStrPhase(operations_research::Solver *self,std::vector< operations_research::IntVar * > const &vars,std::function< int64_t (int64_t) > var_evaluator,operations_research::Solver::IntValueStrategy val_str){
4060 return self->MakePhase(vars, var_evaluator, val_str);
4061 }
4063 return self->MakePhase(vars, var_str, val_eval);
4064 }
4065SWIGINTERN operations_research::DecisionBuilder *operations_research_Solver_VarEvalValEvalPhase(operations_research::Solver *self,std::vector< operations_research::IntVar * > const &vars,std::function< int64_t (int64_t) > var_eval,operations_research::Solver::IndexEvaluator2 val_eval){
4066 return self->MakePhase(vars, var_eval, val_eval);
4067 }
4069 return self->MakePhase(vars, var_str, val_eval, tie_breaker);
4070 }
4071SWIGINTERN operations_research::DecisionBuilder *operations_research_Solver_VarEvalValEvalTieBreakPhase(operations_research::Solver *self,std::vector< operations_research::IntVar * > const &vars,std::function< int64_t (int64_t) > var_eval,operations_research::Solver::IndexEvaluator2 val_eval,std::function< int64_t (int64_t) > tie_breaker){
4072 return self->MakePhase(vars, var_eval, val_eval, tie_breaker);
4073 }
4075 return self->MakePhase(vars, evaluator, str);
4076 }
4078 return self->MakePhase(vars, evaluator, tie_breaker, str);
4079 }
4080SWIGINTERN operations_research::SearchMonitor *operations_research_Solver_GuidedLocalSearch__SWIG_2(operations_research::Solver *self,bool maximize,operations_research::IntVar *const objective,operations_research::Solver::IndexEvaluator2 objective_function,int64_t step,std::vector< operations_research::IntVar * > const &vars,double penalty_factor){
4081 return self->MakeGuidedLocalSearch(maximize,
4082 objective,
4083 objective_function,
4084 step,
4085 vars,
4086 penalty_factor);
4087 }
4089 return self->MakeSumObjectiveFilter(vars,
4090 values,
4091 filter_enum);
4092 }
4094 return self->DebugString();
4095 }
4097 return self->DebugString();
4098 }
4100 return self->DebugString();
4101 }
4103 return self->DebugString();
4104 }
4106 return self->DebugString();
4107 }
4109 return self->DebugString();
4110 }
4112 return self->DebugString();
4113 }
4115 return self->DebugString();
4116 }
4118 return self->solver()->MakeSum(self->Var(), other);
4119 }
4121 return self->solver()->MakeSum(self->Var(), other->Var());
4122 }
4124 return self->solver()->MakeSum(self->Var(), v);
4125 }
4127 return self->solver()->MakeSum(self->Var(), v);
4128 }
4130 return self->solver()->MakeDifference(self->Var(), other);
4131 }
4133 return self->solver()->MakeDifference(self->Var(), other->Var());
4134 }
4136 return self->solver()->MakeSum(self->Var(), -v);
4137 }
4139 return self->solver()->MakeDifference(v, self->Var());
4140 }
4142 return self->solver()->MakeProd(self->Var(), other);
4143 }
4145 return self->solver()->MakeProd(self->Var(), other->Var());
4146 }
4148 return self->solver()->MakeProd(self->Var(), v);
4149 }
4151 return self->solver()->MakeProd(self->Var(), v);
4152 }
4154 return self->solver()->MakeDiv(self->Var(), v);
4155 }
4157 return self->solver()->MakeOpposite(self->Var());
4158 }
4160 return self->solver()->MakeAbs(self->Var());
4161 }
4163 return self->solver()->MakeSquare(self->Var());
4164 }
4166 return self->solver()->MakeEquality(self->Var(), v);
4167 }
4169 return self->solver()->MakeNonEquality(self->Var(), v);
4170 }
4172 return self->solver()->MakeGreaterOrEqual(self->Var(), v);
4173 }
4175 return self->solver()->MakeGreater(self->Var(), v);
4176 }
4178 return self->solver()->MakeLessOrEqual(self->Var(), v);
4179 }
4181 return self->solver()->MakeLess(self->Var(), v);
4182 }
4184 return self->solver()->MakeEquality(self->Var(), other->Var());
4185 }
4187 return self->solver()->MakeNonEquality(self->Var(), other->Var());
4188 }
4190 return self->solver()->MakeGreaterOrEqual(self->Var(), other->Var());
4191 }
4193 return self->solver()->MakeGreater(self->Var(), other->Var());
4194 }
4196 return self->solver()->MakeLessOrEqual(self->Var(), other->Var());
4197 }
4199 return self->solver()->MakeLess(self->Var(), other->Var());
4200 }
4202 return self->solver()->MakeEquality(self->Var(), other->Var());
4203 }
4205 return self->solver()->MakeNonEquality(self->Var(), other->Var());
4206 }
4208 return self->solver()->MakeGreaterOrEqual(self->Var(), other->Var());
4209 }
4211 return self->solver()->MakeGreater(self->Var(), other->Var());
4212 }
4214 return self->solver()->MakeLessOrEqual(self->Var(), other->Var());
4215 }
4217 return self->solver()->MakeLess(self->Var(), other->Var());
4218 }
4220 return self->solver()->MakeMapDomain(self->Var(), vars);
4221 }
4223 return self->solver()->MakeElement(vars, self->Var());
4224 }
4226 return self->solver()->MakeElement(vars, self->Var());
4227 }
4229 return self->DebugString();
4230 }
4232 return self->DebugString();
4233 }
4235 return self->DebugString();
4236 }
4238 return self->DebugString();
4239 }
4241 return self->solver()->MakeSum(self, other);
4242 }
4244 return self->solver()->MakeSum(self, other->Var());
4245 }
4247 return self->solver()->MakeSum(self, v);
4248 }
4250 return self->solver()->MakeSum(self, v);
4251 }
4253 return self->solver()->MakeDifference(self, other);
4254 }
4256 return self->solver()->MakeDifference(self, other->Var());
4257 }
4259 return self->solver()->MakeSum(self, -v);
4260 }
4262 return self->solver()->MakeDifference(v, self);
4263 }
4265 return self->solver()->MakeProd(self, other);
4266 }
4268 return self->solver()->MakeProd(self, other->Var());
4269 }
4271 return self->solver()->MakeProd(self, v);
4272 }
4274 return self->solver()->MakeProd(self, v);
4275 }
4277 return self->solver()->MakeDiv(self, v);
4278 }
4280 return self->solver()->MakeDiv(self, e);
4281 }
4283 return self->solver()->MakeModulo(self, v);
4284 }
4286 return self->solver()->MakeModulo(self, e);
4287 }
4289 return self->solver()->MakeOpposite(self);
4290 }
4292 return self->solver()->MakeAbs(self);
4293 }
4295 return self->solver()->MakeSquare(self);
4296 }
4298 return self->solver()->MakeEquality(self, v);
4299 }
4301 return self->solver()->MakeNonEquality(self->Var(), v);
4302 }
4304 return self->solver()->MakeGreaterOrEqual(self, v);
4305 }
4307 return self->solver()->MakeGreater(self, v);
4308 }
4310 return self->solver()->MakeLessOrEqual(self, v);
4311 }
4313 return self->solver()->MakeLess(self, v);
4314 }
4316 return self->solver()->MakeEquality(self->Var(), other->Var());
4317 }
4319 return self->solver()->MakeNonEquality(self->Var(), other->Var());
4320 }
4322 return self->solver()->MakeGreaterOrEqual(self->Var(), other->Var());
4323 }
4325 return self->solver()->MakeGreater(self->Var(), other->Var());
4326 }
4328 return self->solver()->MakeLessOrEqual(self->Var(), other->Var());
4329 }
4331 return self->solver()->MakeLess(self->Var(), other->Var());
4332 }
4334 return self->solver()->MakeEquality(self->Var(), other->Var());
4335 }
4337 return self->solver()->MakeNonEquality(self->Var(), other->Var());
4338 }
4340 return self->solver()->MakeGreaterOrEqual(self->Var(), other->Var());
4341 }
4343 return self->solver()->MakeGreater(self->Var(), other->Var());
4344 }
4346 return self->solver()->MakeLessOrEqual(self->Var(), other->Var());
4347 }
4349 return self->solver()->MakeLess(self->Var(), other->Var());
4350 }
4352 return self->solver()->MakeMapDomain(self->Var(), vars);
4353 }
4355 return self->solver()->MakeElement(vars, self->Var());
4356 }
4358 return self->solver()->MakeElement(vars, self->Var());
4359 }
4361 return self->solver()->MakeIsMemberVar(self->Var(), values);
4362 }
4364 return self->solver()->MakeMemberCt(self->Var(), values);
4365 }
4366SWIGINTERN operations_research::Constraint *operations_research_IntExpr_NotMember(operations_research::IntExpr *self,std::vector< int64_t > const &starts,std::vector< int64_t > const &ends){
4367 return self->solver()->MakeNotMemberCt(self, starts, ends);
4368 }
4370 return self->DebugString();
4371 }
4373 return self->DebugString();
4374 }
4376 return self->solver()->MakeIntervalVarRelation(
4378}
4382}
4384 return self->solver()->MakeIntervalVarRelation(
4386}
4390}
4392 return self->solver()->MakeIntervalVarRelation(
4394}
4397 self, operations_research::Solver::ENDS_AT_END, other, delay);
4398}
4400 return self->solver()->MakeIntervalVarRelation(
4402}
4405 self, operations_research::Solver::ENDS_AT_START, other, delay);
4406}
4408 return self->solver()->MakeIntervalVarRelation(
4410}
4414}
4416 return self->solver()->MakeIntervalVarRelation(
4418}
4422}
4424 return self->solver()->MakeIntervalVarRelation(
4426}
4429 self, operations_research::Solver::STARTS_AT_END, other, delay);
4430}
4432 return self->solver()->MakeIntervalVarRelation(
4434}
4438}
4440 return self->solver()->MakeIntervalVarRelation(
4442}
4445 self, operations_research::Solver::STAYS_IN_SYNC, other, delay);
4446}
4448 return self->solver()->MakeIntervalVarRelation(
4450}
4452 return self->solver()->MakeIntervalVarRelation(
4454}
4456 return self->solver()->MakeIntervalVarRelation(
4458}
4460 return self->solver()->MakeIntervalVarRelation(
4462}
4464 return self->solver()->MakeIntervalVarRelation(
4466}
4468 return self->solver()->MakeIntervalVarRelation(
4470}
4472 return self->solver()->MakeIntervalVarRelation(
4474}
4476 return self->solver()->MakeIntervalVarRelation(
4478}
4480 return self->DebugString();
4481 }
4483 return self->DebugString();
4484 }
4486 return self->DebugString();
4487 }
4489 return self->DebugString();
4490 }
4492 return self->Value(index);
4493 }
4495 return self->Size();
4496 }
4498 int64_t index = -1;
4499 self->FindIndex(var, &index);
4500 return index;
4501 }
4502
4504
4505template<typename IndexT>
4506inline PyObject* PyInt_FromIndexT(const IndexT i) {
4507 return PyInt_FromLong(i.value());
4508}
4509
4510
4511template<>
4512bool PyObjAs(PyObject *py, operations_research::RoutingNodeIndex* i) {
4513 int temp;
4514 if (!PyObjAs(py, &temp)) return false;
4515 *i = operations_research::RoutingNodeIndex(temp);
4516 return true;
4517}
4518
4519
4520template<>
4521bool PyObjAs(PyObject *py, operations_research::RoutingCostClassIndex* i) {
4522 int temp;
4523 if (!PyObjAs(py, &temp)) return false;
4524 *i = operations_research::RoutingCostClassIndex(temp);
4525 return true;
4526}
4527
4528
4529template<>
4530bool PyObjAs(PyObject *py, operations_research::RoutingDimensionIndex* i) {
4531 int temp;
4532 if (!PyObjAs(py, &temp)) return false;
4533 *i = operations_research::RoutingDimensionIndex(temp);
4534 return true;
4535}
4536
4537
4538template<>
4539bool PyObjAs(PyObject *py, operations_research::RoutingDisjunctionIndex* i) {
4540 int temp;
4541 if (!PyObjAs(py, &temp)) return false;
4542 *i = operations_research::RoutingDisjunctionIndex(temp);
4543 return true;
4544}
4545
4546
4547template<>
4548bool PyObjAs(PyObject *py, operations_research::RoutingVehicleClassIndex* i) {
4549 int temp;
4550 if (!PyObjAs(py, &temp)) return false;
4551 *i = operations_research::RoutingVehicleClassIndex(temp);
4552 return true;
4553}
4554
4555
4557
4558
4564
4565
4566SWIGINTERNINLINE PyObject *
4567SWIG_FromCharPtr(const char *cptr)
4568{
4569 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
4570}
4571
4572
4573
4574/* ---------------------------------------------------
4575 * C++ director class methods
4576 * --------------------------------------------------- */
4577
4579
4580SwigDirector_BaseObject::SwigDirector_BaseObject(PyObject *self): operations_research::BaseObject(), Swig::Director(self) {
4582}
4583
4584
4585
4586
4588}
4589
4591 std::string c_result;
4592 if (!swig_get_self()) {
4593 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call BaseObject.__init__.");
4594 }
4595#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
4596 const size_t swig_method_index = 0;
4597 const char *const swig_method_name = "DebugString";
4598 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4599 swig::SwigVar_PyObject args = PyTuple_New(0);
4600 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
4601#else
4602 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("DebugString");
4603 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
4604#endif
4605 if (!result) {
4606 PyObject *error = PyErr_Occurred();
4607 {
4608 if (error != NULL) {
4610 }
4611 }
4612 }
4613 std::string *swig_optr = 0;
4614 int swig_ores = SWIG_AsPtr_std_string(result, &swig_optr);
4615 if (!SWIG_IsOK(swig_ores) || !swig_optr) {
4616 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
4617 }
4618 c_result = *swig_optr;
4619 if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
4620 return (std::string) c_result;
4621}
4622
4623
4626}
4627
4628
4629
4630
4632}
4633
4635 std::string c_result;
4636 if (!swig_get_self()) {
4637 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PropagationBaseObject.__init__.");
4638 }
4639#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
4640 const size_t swig_method_index = 0;
4641 const char *const swig_method_name = "DebugString";
4642 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4643 swig::SwigVar_PyObject args = PyTuple_New(0);
4644 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
4645#else
4646 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("DebugString");
4647 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
4648#endif
4649 if (!result) {
4650 PyObject *error = PyErr_Occurred();
4651 {
4652 if (error != NULL) {
4654 }
4655 }
4656 }
4657 std::string *swig_optr = 0;
4658 int swig_ores = SWIG_AsPtr_std_string(result, &swig_optr);
4659 if (!SWIG_IsOK(swig_ores) || !swig_optr) {
4660 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
4661 }
4662 c_result = *swig_optr;
4663 if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
4664 return (std::string) c_result;
4665}
4666
4667
4669 std::string c_result;
4670 if (!swig_get_self()) {
4671 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PropagationBaseObject.__init__.");
4672 }
4673#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
4674 const size_t swig_method_index = 1;
4675 const char *const swig_method_name = "Name";
4676 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4677 swig::SwigVar_PyObject args = PyTuple_New(0);
4678 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
4679#else
4680 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("Name");
4681 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
4682#endif
4683 if (!result) {
4684 PyObject *error = PyErr_Occurred();
4685 {
4686 if (error != NULL) {
4688 }
4689 }
4690 }
4691 std::string *swig_optr = 0;
4692 int swig_ores = SWIG_AsPtr_std_string(result, &swig_optr);
4693 if (!SWIG_IsOK(swig_ores) || !swig_optr) {
4694 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
4695 }
4696 c_result = *swig_optr;
4697 if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
4698 return (std::string) c_result;
4699}
4700
4701
4702SwigDirector_Decision::SwigDirector_Decision(PyObject *self): operations_research::Decision(), Swig::Director(self) {
4704}
4705
4706
4707
4708
4710}
4711
4712std::string SwigDirector_Decision::DebugString() const {
4713 std::string c_result;
4714 if (!swig_get_self()) {
4715 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Decision.__init__.");
4716 }
4717#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
4718 const size_t swig_method_index = 0;
4719 const char *const swig_method_name = "DebugString";
4720 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4721 swig::SwigVar_PyObject args = PyTuple_New(0);
4722 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
4723#else
4724 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("DebugString");
4725 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
4726#endif
4727 if (!result) {
4728 PyObject *error = PyErr_Occurred();
4729 {
4730 if (error != NULL) {
4732 }
4733 }
4734 }
4735 std::string *swig_optr = 0;
4736 int swig_ores = SWIG_AsPtr_std_string(result, &swig_optr);
4737 if (!SWIG_IsOK(swig_ores) || !swig_optr) {
4738 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
4739 }
4740 c_result = *swig_optr;
4741 if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
4742 return (std::string) c_result;
4743}
4744
4745
4749 if (!swig_get_self()) {
4750 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Decision.__init__.");
4751 }
4752#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
4753 const size_t swig_method_index = 1;
4754 const char *const swig_method_name = "ApplyWrapper";
4755 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4756 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
4757#else
4758 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("ApplyWrapper");
4759 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
4760#endif
4761 if (!result) {
4762 PyObject *error = PyErr_Occurred();
4763 {
4764 if (error != NULL) {
4766 }
4767 }
4768 }
4769}
4770
4771
4775 if (!swig_get_self()) {
4776 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Decision.__init__.");
4777 }
4778#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
4779 const size_t swig_method_index = 2;
4780 const char *const swig_method_name = "RefuteWrapper";
4781 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4782 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
4783#else
4784 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("RefuteWrapper");
4785 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
4786#endif
4787 if (!result) {
4788 PyObject *error = PyErr_Occurred();
4789 {
4790 if (error != NULL) {
4792 }
4793 }
4794 }
4795}
4796
4797
4800}
4801
4802
4803
4804
4806}
4807
4809 std::string c_result;
4810 if (!swig_get_self()) {
4811 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call DecisionBuilder.__init__.");
4812 }
4813#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
4814 const size_t swig_method_index = 0;
4815 const char *const swig_method_name = "DebugString";
4816 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4817 swig::SwigVar_PyObject args = PyTuple_New(0);
4818 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
4819#else
4820 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("DebugString");
4821 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
4822#endif
4823 if (!result) {
4824 PyObject *error = PyErr_Occurred();
4825 {
4826 if (error != NULL) {
4828 }
4829 }
4830 }
4831 std::string *swig_optr = 0;
4832 int swig_ores = SWIG_AsPtr_std_string(result, &swig_optr);
4833 if (!SWIG_IsOK(swig_ores) || !swig_optr) {
4834 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
4835 }
4836 c_result = *swig_optr;
4837 if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
4838 return (std::string) c_result;
4839}
4840
4841
4843 operations_research::Decision *c_result = 0 ;
4844 void *swig_argp ;
4845 int swig_res ;
4846 swig_owntype own ;
4847
4850 if (!swig_get_self()) {
4851 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call DecisionBuilder.__init__.");
4852 }
4853#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
4854 const size_t swig_method_index = 1;
4855 const char *const swig_method_name = "NextWrapper";
4856 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4857 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
4858#else
4859 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("NextWrapper");
4860 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
4861#endif
4862 if (!result) {
4863 PyObject *error = PyErr_Occurred();
4864 {
4865 if (error != NULL) {
4867 }
4868 }
4869 }
4871 if (!SWIG_IsOK(swig_res)) {
4872 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""operations_research::Decision *""'");
4873 }
4874 c_result = reinterpret_cast< operations_research::Decision * >(swig_argp);
4875 swig_acquire_ownership_obj(SWIG_as_voidptr(c_result), own /* & TODO: SWIG_POINTER_OWN */);
4876 return (operations_research::Decision *) c_result;
4877}
4878
4879
4880SwigDirector_Demon::SwigDirector_Demon(PyObject *self): operations_research::Demon(), Swig::Director(self) {
4882}
4883
4884
4885
4886
4888}
4889
4890std::string SwigDirector_Demon::DebugString() const {
4891 std::string c_result;
4892 if (!swig_get_self()) {
4893 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Demon.__init__.");
4894 }
4895#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
4896 const size_t swig_method_index = 0;
4897 const char *const swig_method_name = "DebugString";
4898 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4899 swig::SwigVar_PyObject args = PyTuple_New(0);
4900 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
4901#else
4902 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("DebugString");
4903 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
4904#endif
4905 if (!result) {
4906 PyObject *error = PyErr_Occurred();
4907 {
4908 if (error != NULL) {
4910 }
4911 }
4912 }
4913 std::string *swig_optr = 0;
4914 int swig_ores = SWIG_AsPtr_std_string(result, &swig_optr);
4915 if (!SWIG_IsOK(swig_ores) || !swig_optr) {
4916 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
4917 }
4918 c_result = *swig_optr;
4919 if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
4920 return (std::string) c_result;
4921}
4922
4923
4927 if (!swig_get_self()) {
4928 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Demon.__init__.");
4929 }
4930#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
4931 const size_t swig_method_index = 1;
4932 const char *const swig_method_name = "RunWrapper";
4933 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4934 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
4935#else
4936 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("RunWrapper");
4937 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
4938#endif
4939 if (!result) {
4940 PyObject *error = PyErr_Occurred();
4941 {
4942 if (error != NULL) {
4944 }
4945 }
4946 }
4947}
4948
4949
4951 operations_research::Solver::DemonPriority c_result = SwigValueInit< operations_research::Solver::DemonPriority >() ;
4952
4953 if (!swig_get_self()) {
4954 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Demon.__init__.");
4955 }
4956#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
4957 const size_t swig_method_index = 2;
4958 const char *const swig_method_name = "Priority";
4959 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4960 swig::SwigVar_PyObject args = PyTuple_New(0);
4961 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
4962#else
4963 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("Priority");
4964 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
4965#endif
4966 if (!result) {
4967 PyObject *error = PyErr_Occurred();
4968 {
4969 if (error != NULL) {
4971 }
4972 }
4973 }
4974 int swig_val;
4975 int swig_res = SWIG_AsVal_int(result, &swig_val);
4976 if (!SWIG_IsOK(swig_res)) {
4977 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""operations_research::Solver::DemonPriority""'");
4978 }
4979 c_result = static_cast< operations_research::Solver::DemonPriority >(swig_val);
4981}
4982
4983
4984SwigDirector_Constraint::SwigDirector_Constraint(PyObject *self, operations_research::Solver *const solver): operations_research::Constraint(solver), Swig::Director(self) {
4986}
4987
4988
4989
4990
4992}
4993
4994std::string SwigDirector_Constraint::DebugString() const {
4995 std::string c_result;
4996 if (!swig_get_self()) {
4997 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Constraint.__init__.");
4998 }
4999#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5000 const size_t swig_method_index = 0;
5001 const char *const swig_method_name = "DebugString";
5002 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5003 swig::SwigVar_PyObject args = PyTuple_New(0);
5004 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5005#else
5006 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("DebugString");
5007 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5008#endif
5009 if (!result) {
5010 PyObject *error = PyErr_Occurred();
5011 {
5012 if (error != NULL) {
5014 }
5015 }
5016 }
5017 std::string *swig_optr = 0;
5018 int swig_ores = SWIG_AsPtr_std_string(result, &swig_optr);
5019 if (!SWIG_IsOK(swig_ores) || !swig_optr) {
5020 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
5021 }
5022 c_result = *swig_optr;
5023 if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
5024 return (std::string) c_result;
5025}
5026
5027
5028std::string SwigDirector_Constraint::name() const {
5029 std::string c_result;
5030 if (!swig_get_self()) {
5031 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Constraint.__init__.");
5032 }
5033#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5034 const size_t swig_method_index = 1;
5035 const char *const swig_method_name = "Name";
5036 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5037 swig::SwigVar_PyObject args = PyTuple_New(0);
5038 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5039#else
5040 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("Name");
5041 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5042#endif
5043 if (!result) {
5044 PyObject *error = PyErr_Occurred();
5045 {
5046 if (error != NULL) {
5048 }
5049 }
5050 }
5051 std::string *swig_optr = 0;
5052 int swig_ores = SWIG_AsPtr_std_string(result, &swig_optr);
5053 if (!SWIG_IsOK(swig_ores) || !swig_optr) {
5054 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
5055 }
5056 c_result = *swig_optr;
5057 if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
5058 return (std::string) c_result;
5059}
5060
5061
5063 if (!swig_get_self()) {
5064 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Constraint.__init__.");
5065 }
5066#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5067 const size_t swig_method_index = 2;
5068 const char *const swig_method_name = "Post";
5069 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5070 swig::SwigVar_PyObject args = PyTuple_New(0);
5071 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5072#else
5073 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("Post");
5074 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5075#endif
5076 if (!result) {
5077 PyObject *error = PyErr_Occurred();
5078 {
5079 if (error != NULL) {
5081 }
5082 }
5083 }
5084}
5085
5086
5088 if (!swig_get_self()) {
5089 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Constraint.__init__.");
5090 }
5091#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5092 const size_t swig_method_index = 3;
5093 const char *const swig_method_name = "InitialPropagateWrapper";
5094 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5095 swig::SwigVar_PyObject args = PyTuple_New(0);
5096 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5097#else
5098 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("InitialPropagateWrapper");
5099 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5100#endif
5101 if (!result) {
5102 PyObject *error = PyErr_Occurred();
5103 {
5104 if (error != NULL) {
5106 }
5107 }
5108 }
5109}
5110
5111
5114}
5115
5116
5118 operations_research::IntVar *c_result = 0 ;
5119 void *swig_argp ;
5120 int swig_res ;
5121 swig_owntype own ;
5122
5123 if (!swig_get_self()) {
5124 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Constraint.__init__.");
5125 }
5126#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5127 const size_t swig_method_index = 4;
5128 const char *const swig_method_name = "Var";
5129 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5130 swig::SwigVar_PyObject args = PyTuple_New(0);
5131 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5132#else
5133 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("Var");
5134 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5135#endif
5136 if (!result) {
5137 PyObject *error = PyErr_Occurred();
5138 {
5139 if (error != NULL) {
5141 }
5142 }
5143 }
5144 swig_res = SWIG_ConvertPtrAndOwn(result, &swig_argp, SWIGTYPE_p_operations_research__IntVar, 0 | SWIG_POINTER_DISOWN, &own);
5145 if (!SWIG_IsOK(swig_res)) {
5146 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""operations_research::IntVar *""'");
5147 }
5148 c_result = reinterpret_cast< operations_research::IntVar * >(swig_argp);
5149 swig_acquire_ownership_obj(SWIG_as_voidptr(c_result), own /* & TODO: SWIG_POINTER_OWN */);
5150 return (operations_research::IntVar *) c_result;
5151}
5152
5153
5156}
5157
5158
5159
5160
5162}
5163
5164std::string SwigDirector_SearchMonitor::DebugString() const {
5165 std::string c_result;
5166 if (!swig_get_self()) {
5167 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5168 }
5169#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5170 const size_t swig_method_index = 0;
5171 const char *const swig_method_name = "DebugString";
5172 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5173 swig::SwigVar_PyObject args = PyTuple_New(0);
5174 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5175#else
5176 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("DebugString");
5177 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5178#endif
5179 if (!result) {
5180 PyObject *error = PyErr_Occurred();
5181 {
5182 if (error != NULL) {
5184 }
5185 }
5186 }
5187 std::string *swig_optr = 0;
5188 int swig_ores = SWIG_AsPtr_std_string(result, &swig_optr);
5189 if (!SWIG_IsOK(swig_ores) || !swig_optr) {
5190 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
5191 }
5192 c_result = *swig_optr;
5193 if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
5194 return (std::string) c_result;
5195}
5196
5197
5199 if (!swig_get_self()) {
5200 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5201 }
5202#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5203 const size_t swig_method_index = 1;
5204 const char *const swig_method_name = "EnterSearch";
5205 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5206 swig::SwigVar_PyObject args = PyTuple_New(0);
5207 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5208#else
5209 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("EnterSearch");
5210 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5211#endif
5212 if (!result) {
5213 PyObject *error = PyErr_Occurred();
5214 {
5215 if (error != NULL) {
5217 }
5218 }
5219 }
5220}
5221
5222
5224 if (!swig_get_self()) {
5225 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5226 }
5227#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5228 const size_t swig_method_index = 2;
5229 const char *const swig_method_name = "RestartSearch";
5230 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5231 swig::SwigVar_PyObject args = PyTuple_New(0);
5232 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5233#else
5234 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("RestartSearch");
5235 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5236#endif
5237 if (!result) {
5238 PyObject *error = PyErr_Occurred();
5239 {
5240 if (error != NULL) {
5242 }
5243 }
5244 }
5245}
5246
5247
5249 if (!swig_get_self()) {
5250 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5251 }
5252#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5253 const size_t swig_method_index = 3;
5254 const char *const swig_method_name = "ExitSearch";
5255 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5256 swig::SwigVar_PyObject args = PyTuple_New(0);
5257 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5258#else
5259 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("ExitSearch");
5260 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5261#endif
5262 if (!result) {
5263 PyObject *error = PyErr_Occurred();
5264 {
5265 if (error != NULL) {
5267 }
5268 }
5269 }
5270}
5271
5272
5276 if (!swig_get_self()) {
5277 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5278 }
5279#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5280 const size_t swig_method_index = 4;
5281 const char *const swig_method_name = "BeginNextDecision";
5282 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5283 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
5284#else
5285 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("BeginNextDecision");
5286 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
5287#endif
5288 if (!result) {
5289 PyObject *error = PyErr_Occurred();
5290 {
5291 if (error != NULL) {
5293 }
5294 }
5295 }
5296}
5297
5298
5304 if (!swig_get_self()) {
5305 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5306 }
5307#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5308 const size_t swig_method_index = 5;
5309 const char *const swig_method_name = "EndNextDecision";
5310 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5311 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5312#else
5313 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("EndNextDecision");
5314 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5315#endif
5316 if (!result) {
5317 PyObject *error = PyErr_Occurred();
5318 {
5319 if (error != NULL) {
5321 }
5322 }
5323 }
5324}
5325
5326
5330 if (!swig_get_self()) {
5331 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5332 }
5333#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5334 const size_t swig_method_index = 6;
5335 const char *const swig_method_name = "ApplyDecision";
5336 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5337 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
5338#else
5339 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("ApplyDecision");
5340 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
5341#endif
5342 if (!result) {
5343 PyObject *error = PyErr_Occurred();
5344 {
5345 if (error != NULL) {
5347 }
5348 }
5349 }
5350}
5351
5352
5356 if (!swig_get_self()) {
5357 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5358 }
5359#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5360 const size_t swig_method_index = 7;
5361 const char *const swig_method_name = "RefuteDecision";
5362 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5363 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
5364#else
5365 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("RefuteDecision");
5366 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
5367#endif
5368 if (!result) {
5369 PyObject *error = PyErr_Occurred();
5370 {
5371 if (error != NULL) {
5373 }
5374 }
5375 }
5376}
5377
5378
5383 obj1 = SWIG_From_bool(static_cast< bool >(apply));
5384 if (!swig_get_self()) {
5385 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5386 }
5387#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5388 const size_t swig_method_index = 8;
5389 const char *const swig_method_name = "AfterDecision";
5390 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5391 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5392#else
5393 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("AfterDecision");
5394 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5395#endif
5396 if (!result) {
5397 PyObject *error = PyErr_Occurred();
5398 {
5399 if (error != NULL) {
5401 }
5402 }
5403 }
5404}
5405
5406
5408 if (!swig_get_self()) {
5409 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5410 }
5411#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5412 const size_t swig_method_index = 9;
5413 const char *const swig_method_name = "BeginFail";
5414 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5415 swig::SwigVar_PyObject args = PyTuple_New(0);
5416 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5417#else
5418 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("BeginFail");
5419 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5420#endif
5421 if (!result) {
5422 PyObject *error = PyErr_Occurred();
5423 {
5424 if (error != NULL) {
5426 }
5427 }
5428 }
5429}
5430
5431
5433 if (!swig_get_self()) {
5434 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5435 }
5436#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5437 const size_t swig_method_index = 10;
5438 const char *const swig_method_name = "EndFail";
5439 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5440 swig::SwigVar_PyObject args = PyTuple_New(0);
5441 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5442#else
5443 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("EndFail");
5444 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5445#endif
5446 if (!result) {
5447 PyObject *error = PyErr_Occurred();
5448 {
5449 if (error != NULL) {
5451 }
5452 }
5453 }
5454}
5455
5456
5458 if (!swig_get_self()) {
5459 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5460 }
5461#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5462 const size_t swig_method_index = 11;
5463 const char *const swig_method_name = "BeginInitialPropagation";
5464 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5465 swig::SwigVar_PyObject args = PyTuple_New(0);
5466 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5467#else
5468 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("BeginInitialPropagation");
5469 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5470#endif
5471 if (!result) {
5472 PyObject *error = PyErr_Occurred();
5473 {
5474 if (error != NULL) {
5476 }
5477 }
5478 }
5479}
5480
5481
5483 if (!swig_get_self()) {
5484 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5485 }
5486#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5487 const size_t swig_method_index = 12;
5488 const char *const swig_method_name = "EndInitialPropagation";
5489 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5490 swig::SwigVar_PyObject args = PyTuple_New(0);
5491 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5492#else
5493 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("EndInitialPropagation");
5494 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5495#endif
5496 if (!result) {
5497 PyObject *error = PyErr_Occurred();
5498 {
5499 if (error != NULL) {
5501 }
5502 }
5503 }
5504}
5505
5506
5508 bool c_result = SwigValueInit< bool >() ;
5509
5510 if (!swig_get_self()) {
5511 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5512 }
5513#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5514 const size_t swig_method_index = 13;
5515 const char *const swig_method_name = "AcceptSolution";
5516 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5517 swig::SwigVar_PyObject args = PyTuple_New(0);
5518 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5519#else
5520 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("AcceptSolution");
5521 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5522#endif
5523 if (!result) {
5524 PyObject *error = PyErr_Occurred();
5525 {
5526 if (error != NULL) {
5528 }
5529 }
5530 }
5531 bool swig_val;
5532 int swig_res = SWIG_AsVal_bool(result, &swig_val);
5533 if (!SWIG_IsOK(swig_res)) {
5534 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
5535 }
5536 c_result = static_cast< bool >(swig_val);
5537 return (bool) c_result;
5538}
5539
5540
5542 bool c_result = SwigValueInit< bool >() ;
5543
5544 if (!swig_get_self()) {
5545 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5546 }
5547#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5548 const size_t swig_method_index = 14;
5549 const char *const swig_method_name = "AtSolution";
5550 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5551 swig::SwigVar_PyObject args = PyTuple_New(0);
5552 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5553#else
5554 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("AtSolution");
5555 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5556#endif
5557 if (!result) {
5558 PyObject *error = PyErr_Occurred();
5559 {
5560 if (error != NULL) {
5562 }
5563 }
5564 }
5565 bool swig_val;
5566 int swig_res = SWIG_AsVal_bool(result, &swig_val);
5567 if (!SWIG_IsOK(swig_res)) {
5568 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
5569 }
5570 c_result = static_cast< bool >(swig_val);
5571 return (bool) c_result;
5572}
5573
5574
5576 if (!swig_get_self()) {
5577 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5578 }
5579#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5580 const size_t swig_method_index = 15;
5581 const char *const swig_method_name = "NoMoreSolutions";
5582 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5583 swig::SwigVar_PyObject args = PyTuple_New(0);
5584 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5585#else
5586 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("NoMoreSolutions");
5587 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5588#endif
5589 if (!result) {
5590 PyObject *error = PyErr_Occurred();
5591 {
5592 if (error != NULL) {
5594 }
5595 }
5596 }
5597}
5598
5599
5601 bool c_result = SwigValueInit< bool >() ;
5602
5603 if (!swig_get_self()) {
5604 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5605 }
5606#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5607 const size_t swig_method_index = 16;
5608 const char *const swig_method_name = "LocalOptimum";
5609 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5610 swig::SwigVar_PyObject args = PyTuple_New(0);
5611 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5612#else
5613 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("LocalOptimum");
5614 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5615#endif
5616 if (!result) {
5617 PyObject *error = PyErr_Occurred();
5618 {
5619 if (error != NULL) {
5621 }
5622 }
5623 }
5624 bool swig_val;
5625 int swig_res = SWIG_AsVal_bool(result, &swig_val);
5626 if (!SWIG_IsOK(swig_res)) {
5627 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
5628 }
5629 c_result = static_cast< bool >(swig_val);
5630 return (bool) c_result;
5631}
5632
5633
5635 bool c_result = SwigValueInit< bool >() ;
5636
5641 if (!swig_get_self()) {
5642 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5643 }
5644#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5645 const size_t swig_method_index = 17;
5646 const char *const swig_method_name = "AcceptDelta";
5647 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5648 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5649#else
5650 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("AcceptDelta");
5651 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5652#endif
5653 if (!result) {
5654 PyObject *error = PyErr_Occurred();
5655 {
5656 if (error != NULL) {
5658 }
5659 }
5660 }
5661 bool swig_val;
5662 int swig_res = SWIG_AsVal_bool(result, &swig_val);
5663 if (!SWIG_IsOK(swig_res)) {
5664 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
5665 }
5666 c_result = static_cast< bool >(swig_val);
5667 return (bool) c_result;
5668}
5669
5670
5672 if (!swig_get_self()) {
5673 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SearchMonitor.__init__.");
5674 }
5675#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5676 const size_t swig_method_index = 18;
5677 const char *const swig_method_name = "AcceptNeighbor";
5678 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5679 swig::SwigVar_PyObject args = PyTuple_New(0);
5680 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5681#else
5682 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("AcceptNeighbor");
5683 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5684#endif
5685 if (!result) {
5686 PyObject *error = PyErr_Occurred();
5687 {
5688 if (error != NULL) {
5690 }
5691 }
5692 }
5693}
5694
5695
5698}
5699
5700
5703}
5704
5705
5708}
5709
5710
5713}
5714
5715
5718}
5719
5720
5723}
5724
5725
5728}
5729
5730
5731
5732
5734}
5735
5737 std::string c_result;
5738 if (!swig_get_self()) {
5739 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call LocalSearchOperator.__init__.");
5740 }
5741#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5742 const size_t swig_method_index = 0;
5743 const char *const swig_method_name = "DebugString";
5744 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5745 swig::SwigVar_PyObject args = PyTuple_New(0);
5746 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5747#else
5748 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("DebugString");
5749 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5750#endif
5751 if (!result) {
5752 PyObject *error = PyErr_Occurred();
5753 {
5754 if (error != NULL) {
5756 }
5757 }
5758 }
5759 std::string *swig_optr = 0;
5760 int swig_ores = SWIG_AsPtr_std_string(result, &swig_optr);
5761 if (!SWIG_IsOK(swig_ores) || !swig_optr) {
5762 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
5763 }
5764 c_result = *swig_optr;
5765 if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
5766 return (std::string) c_result;
5767}
5768
5769
5771 bool c_result = SwigValueInit< bool >() ;
5772
5777 if (!swig_get_self()) {
5778 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call LocalSearchOperator.__init__.");
5779 }
5780#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5781 const size_t swig_method_index = 1;
5782 const char *const swig_method_name = "NextNeighbor";
5783 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5784 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5785#else
5786 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("NextNeighbor");
5787 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5788#endif
5789 if (!result) {
5790 PyObject *error = PyErr_Occurred();
5791 {
5792 if (error != NULL) {
5794 }
5795 }
5796 }
5797 bool swig_val;
5798 int swig_res = SWIG_AsVal_bool(result, &swig_val);
5799 if (!SWIG_IsOK(swig_res)) {
5800 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
5801 }
5802 c_result = static_cast< bool >(swig_val);
5803 return (bool) c_result;
5804}
5805
5806
5810 if (!swig_get_self()) {
5811 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call LocalSearchOperator.__init__.");
5812 }
5813#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5814 const size_t swig_method_index = 2;
5815 const char *const swig_method_name = "Start";
5816 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5817 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
5818#else
5819 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("Start");
5820 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
5821#endif
5822 if (!result) {
5823 PyObject *error = PyErr_Occurred();
5824 {
5825 if (error != NULL) {
5827 }
5828 }
5829 }
5830}
5831
5832
5835}
5836
5837
5840}
5841
5842
5845}
5846
5847
5850}
5851
5852
5853
5854
5855SwigDirector_IntVarLocalSearchOperator::SwigDirector_IntVarLocalSearchOperator(PyObject *self, std::vector< operations_research::IntVar * > const &vars, bool keep_inverse_values): operations_research::IntVarLocalSearchOperator(vars, keep_inverse_values), Swig::Director(self) {
5857}
5858
5859
5860
5861
5863}
5864
5866 std::string c_result;
5867 if (!swig_get_self()) {
5868 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call IntVarLocalSearchOperator.__init__.");
5869 }
5870#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5871 const size_t swig_method_index = 0;
5872 const char *const swig_method_name = "DebugString";
5873 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5874 swig::SwigVar_PyObject args = PyTuple_New(0);
5875 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5876#else
5877 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("DebugString");
5878 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5879#endif
5880 if (!result) {
5881 PyObject *error = PyErr_Occurred();
5882 {
5883 if (error != NULL) {
5885 }
5886 }
5887 }
5888 std::string *swig_optr = 0;
5889 int swig_ores = SWIG_AsPtr_std_string(result, &swig_optr);
5890 if (!SWIG_IsOK(swig_ores) || !swig_optr) {
5891 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
5892 }
5893 c_result = *swig_optr;
5894 if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
5895 return (std::string) c_result;
5896}
5897
5898
5900 bool c_result = SwigValueInit< bool >() ;
5901
5906 if (!swig_get_self()) {
5907 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call IntVarLocalSearchOperator.__init__.");
5908 }
5909#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5910 const size_t swig_method_index = 1;
5911 const char *const swig_method_name = "NextNeighbor";
5912 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5913 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5914#else
5915 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("NextNeighbor");
5916 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5917#endif
5918 if (!result) {
5919 PyObject *error = PyErr_Occurred();
5920 {
5921 if (error != NULL) {
5923 }
5924 }
5925 }
5926 bool swig_val;
5927 int swig_res = SWIG_AsVal_bool(result, &swig_val);
5928 if (!SWIG_IsOK(swig_res)) {
5929 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
5930 }
5931 c_result = static_cast< bool >(swig_val);
5932 return (bool) c_result;
5933}
5934
5935
5938}
5939
5940
5943}
5944
5945
5948}
5949
5950
5952 bool c_result = SwigValueInit< bool >() ;
5953
5954 if (!swig_get_self()) {
5955 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call IntVarLocalSearchOperator.__init__.");
5956 }
5957#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5958 const size_t swig_method_index = 2;
5959 const char *const swig_method_name = "IsIncremental";
5960 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5961 swig::SwigVar_PyObject args = PyTuple_New(0);
5962 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5963#else
5964 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("IsIncremental");
5965 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5966#endif
5967 if (!result) {
5968 PyObject *error = PyErr_Occurred();
5969 {
5970 if (error != NULL) {
5972 }
5973 }
5974 }
5975 bool swig_val;
5976 int swig_res = SWIG_AsVal_bool(result, &swig_val);
5977 if (!SWIG_IsOK(swig_res)) {
5978 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
5979 }
5980 c_result = static_cast< bool >(swig_val);
5981 return (bool) c_result;
5982}
5983
5984
5987}
5988
5989
5991 if (!swig_get_self()) {
5992 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call IntVarLocalSearchOperator.__init__.");
5993 }
5994#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5995 const size_t swig_method_index = 3;
5996 const char *const swig_method_name = "OnStart";
5997 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5998 swig::SwigVar_PyObject args = PyTuple_New(0);
5999 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6000#else
6001 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("OnStart");
6002 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6003#endif
6004 if (!result) {
6005 PyObject *error = PyErr_Occurred();
6006 {
6007 if (error != NULL) {
6009 }
6010 }
6011 }
6012}
6013
6014
6016 bool c_result = SwigValueInit< bool >() ;
6017
6018 swig_set_inner("MakeOneNeighbor", true);
6019 if (!swig_get_self()) {
6020 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call IntVarLocalSearchOperator.__init__.");
6021 }
6022#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6023 const size_t swig_method_index = 4;
6024 const char *const swig_method_name = "OneNeighbor";
6025 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6026 swig::SwigVar_PyObject args = PyTuple_New(0);
6027 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6028#else
6029 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("OneNeighbor");
6030 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6031#endif
6032 swig_set_inner("MakeOneNeighbor", false);
6033 if (!result) {
6034 PyObject *error = PyErr_Occurred();
6035 {
6036 if (error != NULL) {
6038 }
6039 }
6040 }
6041 bool swig_val;
6042 int swig_res = SWIG_AsVal_bool(result, &swig_val);
6043 if (!SWIG_IsOK(swig_res)) {
6044 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
6045 }
6046 c_result = static_cast< bool >(swig_val);
6047 return (bool) c_result;
6048}
6049
6050
6051SwigDirector_BaseLns::SwigDirector_BaseLns(PyObject *self, std::vector< operations_research::IntVar * > const &vars): operations_research::BaseLns(vars), Swig::Director(self) {
6053}
6054
6055
6056
6057
6059}
6060
6061std::string SwigDirector_BaseLns::DebugString() const {
6062 std::string c_result;
6063 if (!swig_get_self()) {
6064 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call BaseLns.__init__.");
6065 }
6066#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6067 const size_t swig_method_index = 0;
6068 const char *const swig_method_name = "DebugString";
6069 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6070 swig::SwigVar_PyObject args = PyTuple_New(0);
6071 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6072#else
6073 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("DebugString");
6074 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6075#endif
6076 if (!result) {
6077 PyObject *error = PyErr_Occurred();
6078 {
6079 if (error != NULL) {
6081 }
6082 }
6083 }
6084 std::string *swig_optr = 0;
6085 int swig_ores = SWIG_AsPtr_std_string(result, &swig_optr);
6086 if (!SWIG_IsOK(swig_ores) || !swig_optr) {
6087 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
6088 }
6089 c_result = *swig_optr;
6090 if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
6091 return (std::string) c_result;
6092}
6093
6094
6096 bool c_result = SwigValueInit< bool >() ;
6097
6102 if (!swig_get_self()) {
6103 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call BaseLns.__init__.");
6104 }
6105#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6106 const size_t swig_method_index = 1;
6107 const char *const swig_method_name = "NextNeighbor";
6108 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6109 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6110#else
6111 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("NextNeighbor");
6112 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6113#endif
6114 if (!result) {
6115 PyObject *error = PyErr_Occurred();
6116 {
6117 if (error != NULL) {
6119 }
6120 }
6121 }
6122 bool swig_val;
6123 int swig_res = SWIG_AsVal_bool(result, &swig_val);
6124 if (!SWIG_IsOK(swig_res)) {
6125 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
6126 }
6127 c_result = static_cast< bool >(swig_val);
6128 return (bool) c_result;
6129}
6130
6131
6134}
6135
6136
6139}
6140
6141
6144}
6145
6146
6148 bool c_result = SwigValueInit< bool >() ;
6149
6150 if (!swig_get_self()) {
6151 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call BaseLns.__init__.");
6152 }
6153#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6154 const size_t swig_method_index = 2;
6155 const char *const swig_method_name = "IsIncremental";
6156 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6157 swig::SwigVar_PyObject args = PyTuple_New(0);
6158 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6159#else
6160 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("IsIncremental");
6161 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6162#endif
6163 if (!result) {
6164 PyObject *error = PyErr_Occurred();
6165 {
6166 if (error != NULL) {
6168 }
6169 }
6170 }
6171 bool swig_val;
6172 int swig_res = SWIG_AsVal_bool(result, &swig_val);
6173 if (!SWIG_IsOK(swig_res)) {
6174 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
6175 }
6176 c_result = static_cast< bool >(swig_val);
6177 return (bool) c_result;
6178}
6179
6180
6182 if (!swig_get_self()) {
6183 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call BaseLns.__init__.");
6184 }
6185#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6186 const size_t swig_method_index = 3;
6187 const char *const swig_method_name = "InitFragments";
6188 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6189 swig::SwigVar_PyObject args = PyTuple_New(0);
6190 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6191#else
6192 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("InitFragments");
6193 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6194#endif
6195 if (!result) {
6196 PyObject *error = PyErr_Occurred();
6197 {
6198 if (error != NULL) {
6200 }
6201 }
6202 }
6203}
6204
6205
6207 bool c_result = SwigValueInit< bool >() ;
6208
6209 if (!swig_get_self()) {
6210 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call BaseLns.__init__.");
6211 }
6212#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6213 const size_t swig_method_index = 4;
6214 const char *const swig_method_name = "NextFragment";
6215 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6216 swig::SwigVar_PyObject args = PyTuple_New(0);
6217 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6218#else
6219 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("NextFragment");
6220 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6221#endif
6222 if (!result) {
6223 PyObject *error = PyErr_Occurred();
6224 {
6225 if (error != NULL) {
6227 }
6228 }
6229 }
6230 bool swig_val;
6231 int swig_res = SWIG_AsVal_bool(result, &swig_val);
6232 if (!SWIG_IsOK(swig_res)) {
6233 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
6234 }
6235 c_result = static_cast< bool >(swig_val);
6236 return (bool) c_result;
6237}
6238
6239
6240SwigDirector_ChangeValue::SwigDirector_ChangeValue(PyObject *self, std::vector< operations_research::IntVar * > const &vars): operations_research::ChangeValue(vars), Swig::Director(self) {
6242}
6243
6244
6245
6246
6248}
6249
6250std::string SwigDirector_ChangeValue::DebugString() const {
6251 std::string c_result;
6252 if (!swig_get_self()) {
6253 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ChangeValue.__init__.");
6254 }
6255#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6256 const size_t swig_method_index = 0;
6257 const char *const swig_method_name = "DebugString";
6258 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6259 swig::SwigVar_PyObject args = PyTuple_New(0);
6260 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6261#else
6262 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("DebugString");
6263 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6264#endif
6265 if (!result) {
6266 PyObject *error = PyErr_Occurred();
6267 {
6268 if (error != NULL) {
6270 }
6271 }
6272 }
6273 std::string *swig_optr = 0;
6274 int swig_ores = SWIG_AsPtr_std_string(result, &swig_optr);
6275 if (!SWIG_IsOK(swig_ores) || !swig_optr) {
6276 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
6277 }
6278 c_result = *swig_optr;
6279 if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
6280 return (std::string) c_result;
6281}
6282
6283
6285 bool c_result = SwigValueInit< bool >() ;
6286
6291 if (!swig_get_self()) {
6292 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ChangeValue.__init__.");
6293 }
6294#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6295 const size_t swig_method_index = 1;
6296 const char *const swig_method_name = "NextNeighbor";
6297 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6298 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6299#else
6300 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("NextNeighbor");
6301 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6302#endif
6303 if (!result) {
6304 PyObject *error = PyErr_Occurred();
6305 {
6306 if (error != NULL) {
6308 }
6309 }
6310 }
6311 bool swig_val;
6312 int swig_res = SWIG_AsVal_bool(result, &swig_val);
6313 if (!SWIG_IsOK(swig_res)) {
6314 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
6315 }
6316 c_result = static_cast< bool >(swig_val);
6317 return (bool) c_result;
6318}
6319
6320
6323}
6324
6325
6328}
6329
6330
6333}
6334
6335
6337 bool c_result = SwigValueInit< bool >() ;
6338
6339 if (!swig_get_self()) {
6340 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ChangeValue.__init__.");
6341 }
6342#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6343 const size_t swig_method_index = 2;
6344 const char *const swig_method_name = "IsIncremental";
6345 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6346 swig::SwigVar_PyObject args = PyTuple_New(0);
6347 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6348#else
6349 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("IsIncremental");
6350 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6351#endif
6352 if (!result) {
6353 PyObject *error = PyErr_Occurred();
6354 {
6355 if (error != NULL) {
6357 }
6358 }
6359 }
6360 bool swig_val;
6361 int swig_res = SWIG_AsVal_bool(result, &swig_val);
6362 if (!SWIG_IsOK(swig_res)) {
6363 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
6364 }
6365 c_result = static_cast< bool >(swig_val);
6366 return (bool) c_result;
6367}
6368
6369
6372}
6373
6374
6376 if (!swig_get_self()) {
6377 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ChangeValue.__init__.");
6378 }
6379#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6380 const size_t swig_method_index = 3;
6381 const char *const swig_method_name = "OnStart";
6382 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6383 swig::SwigVar_PyObject args = PyTuple_New(0);
6384 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6385#else
6386 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("OnStart");
6387 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6388#endif
6389 if (!result) {
6390 PyObject *error = PyErr_Occurred();
6391 {
6392 if (error != NULL) {
6394 }
6395 }
6396 }
6397}
6398
6399
6401 bool c_result = SwigValueInit< bool >() ;
6402
6403 swig_set_inner("MakeOneNeighbor", true);
6404 if (!swig_get_self()) {
6405 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ChangeValue.__init__.");
6406 }
6407#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6408 const size_t swig_method_index = 4;
6409 const char *const swig_method_name = "OneNeighbor";
6410 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6411 swig::SwigVar_PyObject args = PyTuple_New(0);
6412 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6413#else
6414 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("OneNeighbor");
6415 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6416#endif
6417 swig_set_inner("MakeOneNeighbor", false);
6418 if (!result) {
6419 PyObject *error = PyErr_Occurred();
6420 {
6421 if (error != NULL) {
6423 }
6424 }
6425 }
6426 bool swig_val;
6427 int swig_res = SWIG_AsVal_bool(result, &swig_val);
6428 if (!SWIG_IsOK(swig_res)) {
6429 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
6430 }
6431 c_result = static_cast< bool >(swig_val);
6432 return (bool) c_result;
6433}
6434
6435
6436int64_t SwigDirector_ChangeValue::ModifyValue(int64_t index, int64_t value) {
6437 int64_t c_result = SwigValueInit< int64_t >() ;
6438
6440 obj0 = SWIG_From_long(static_cast< long >(index));
6442 obj1 = SWIG_From_long(static_cast< long >(value));
6443 if (!swig_get_self()) {
6444 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ChangeValue.__init__.");
6445 }
6446#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6447 const size_t swig_method_index = 5;
6448 const char *const swig_method_name = "ModifyValue";
6449 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6450 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6451#else
6452 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("ModifyValue");
6453 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6454#endif
6455 if (!result) {
6456 PyObject *error = PyErr_Occurred();
6457 {
6458 if (error != NULL) {
6460 }
6461 }
6462 }
6463 long swig_val;
6464 int swig_res = SWIG_AsVal_long(result, &swig_val);
6465 if (!SWIG_IsOK(swig_res)) {
6466 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int64_t""'");
6467 }
6468 c_result = static_cast< int64_t >(swig_val);
6469 return (int64_t) c_result;
6470}
6471
6472
6473SwigDirector_IntVarLocalSearchFilter::SwigDirector_IntVarLocalSearchFilter(PyObject *self, std::vector< operations_research::IntVar * > const &vars): operations_research::IntVarLocalSearchFilter(vars), Swig::Director(self) {
6475}
6476
6477
6478
6479
6481}
6482
6484 std::string c_result;
6485 if (!swig_get_self()) {
6486 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call IntVarLocalSearchFilter.__init__.");
6487 }
6488#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6489 const size_t swig_method_index = 0;
6490 const char *const swig_method_name = "DebugString";
6491 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6492 swig::SwigVar_PyObject args = PyTuple_New(0);
6493 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6494#else
6495 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("DebugString");
6496 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6497#endif
6498 if (!result) {
6499 PyObject *error = PyErr_Occurred();
6500 {
6501 if (error != NULL) {
6503 }
6504 }
6505 }
6506 std::string *swig_optr = 0;
6507 int swig_ores = SWIG_AsPtr_std_string(result, &swig_optr);
6508 if (!SWIG_IsOK(swig_ores) || !swig_optr) {
6509 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
6510 }
6511 c_result = *swig_optr;
6512 if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
6513 return (std::string) c_result;
6514}
6515
6516
6519}
6520
6521
6524}
6525
6526
6527bool SwigDirector_IntVarLocalSearchFilter::Accept(operations_research::Assignment const *delta, operations_research::Assignment const *deltadelta, int64_t objective_min, int64_t objective_max) {
6528 bool c_result = SwigValueInit< bool >() ;
6529
6535 obj2 = SWIG_From_long(static_cast< long >(objective_min));
6537 obj3 = SWIG_From_long(static_cast< long >(objective_max));
6538 if (!swig_get_self()) {
6539 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call IntVarLocalSearchFilter.__init__.");
6540 }
6541#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6542 const size_t swig_method_index = 1;
6543 const char *const swig_method_name = "Accept";
6544 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6545 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2,(PyObject *)obj3, NULL);
6546#else
6547 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("Accept");
6548 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2,(PyObject *)obj3, NULL);
6549#endif
6550 if (!result) {
6551 PyObject *error = PyErr_Occurred();
6552 {
6553 if (error != NULL) {
6555 }
6556 }
6557 }
6558 bool swig_val;
6559 int swig_res = SWIG_AsVal_bool(result, &swig_val);
6560 if (!SWIG_IsOK(swig_res)) {
6561 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
6562 }
6563 c_result = static_cast< bool >(swig_val);
6564 return (bool) c_result;
6565}
6566
6567
6569 bool c_result = SwigValueInit< bool >() ;
6570
6571 if (!swig_get_self()) {
6572 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call IntVarLocalSearchFilter.__init__.");
6573 }
6574#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6575 const size_t swig_method_index = 2;
6576 const char *const swig_method_name = "IsIncremental";
6577 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6578 swig::SwigVar_PyObject args = PyTuple_New(0);
6579 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6580#else
6581 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("IsIncremental");
6582 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6583#endif
6584 if (!result) {
6585 PyObject *error = PyErr_Occurred();
6586 {
6587 if (error != NULL) {
6589 }
6590 }
6591 }
6592 bool swig_val;
6593 int swig_res = SWIG_AsVal_bool(result, &swig_val);
6594 if (!SWIG_IsOK(swig_res)) {
6595 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
6596 }
6597 c_result = static_cast< bool >(swig_val);
6598 return (bool) c_result;
6599}
6600
6601
6607 if (!swig_get_self()) {
6608 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call IntVarLocalSearchFilter.__init__.");
6609 }
6610#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6611 const size_t swig_method_index = 3;
6612 const char *const swig_method_name = "Synchronize";
6613 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6614 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6615#else
6616 swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("Synchronize");
6617 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6618#endif
6619 if (!result) {
6620 PyObject *error = PyErr_Occurred();
6621 {
6622 if (error != NULL) {
6624 }
6625 }
6626 }
6627}
6628
6629
6632}
6633
6634
6637}
6638
6639
6642}
6643
6644
6647}
6648
6649
6652}
6653
6654
6655#ifdef __cplusplus
6656extern "C" {
6657#endif
6659 PyObject *resultobj = 0;
6662 void *argp1 = 0 ;
6663 int res1 = 0 ;
6664 int val2 ;
6665 int ecode2 = 0 ;
6666 PyObject * obj0 = 0 ;
6667 PyObject * obj1 = 0 ;
6668
6669 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_var_selection_schema_set", 2, 2, &obj0, &obj1)) SWIG_fail;
6671 if (!SWIG_IsOK(res1)) {
6672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_var_selection_schema_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6673 }
6674 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6675 ecode2 = SWIG_AsVal_int(obj1, &val2);
6676 if (!SWIG_IsOK(ecode2)) {
6677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultPhaseParameters_var_selection_schema_set" "', argument " "2"" of type '" "operations_research::DefaultPhaseParameters::VariableSelection""'");
6678 }
6680 if (arg1) (arg1)->var_selection_schema = arg2;
6681 resultobj = SWIG_Py_Void();
6682 return resultobj;
6683fail:
6684 return NULL;
6685}
6686
6687
6689 PyObject *resultobj = 0;
6691 void *argp1 = 0 ;
6692 int res1 = 0 ;
6693 PyObject * obj0 = 0 ;
6695
6696 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_var_selection_schema_get", 1, 1, &obj0)) SWIG_fail;
6698 if (!SWIG_IsOK(res1)) {
6699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_var_selection_schema_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6700 }
6701 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6702 result = (operations_research::DefaultPhaseParameters::VariableSelection) ((arg1)->var_selection_schema);
6703 resultobj = SWIG_From_int(static_cast< int >(result));
6704 return resultobj;
6705fail:
6706 return NULL;
6707}
6708
6709
6711 PyObject *resultobj = 0;
6714 void *argp1 = 0 ;
6715 int res1 = 0 ;
6716 int val2 ;
6717 int ecode2 = 0 ;
6718 PyObject * obj0 = 0 ;
6719 PyObject * obj1 = 0 ;
6720
6721 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_value_selection_schema_set", 2, 2, &obj0, &obj1)) SWIG_fail;
6723 if (!SWIG_IsOK(res1)) {
6724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_value_selection_schema_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6725 }
6726 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6727 ecode2 = SWIG_AsVal_int(obj1, &val2);
6728 if (!SWIG_IsOK(ecode2)) {
6729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultPhaseParameters_value_selection_schema_set" "', argument " "2"" of type '" "operations_research::DefaultPhaseParameters::ValueSelection""'");
6730 }
6732 if (arg1) (arg1)->value_selection_schema = arg2;
6733 resultobj = SWIG_Py_Void();
6734 return resultobj;
6735fail:
6736 return NULL;
6737}
6738
6739
6741 PyObject *resultobj = 0;
6743 void *argp1 = 0 ;
6744 int res1 = 0 ;
6745 PyObject * obj0 = 0 ;
6747
6748 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_value_selection_schema_get", 1, 1, &obj0)) SWIG_fail;
6750 if (!SWIG_IsOK(res1)) {
6751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_value_selection_schema_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6752 }
6753 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6754 result = (operations_research::DefaultPhaseParameters::ValueSelection) ((arg1)->value_selection_schema);
6755 resultobj = SWIG_From_int(static_cast< int >(result));
6756 return resultobj;
6757fail:
6758 return NULL;
6759}
6760
6761
6763 PyObject *resultobj = 0;
6765 int arg2 ;
6766 void *argp1 = 0 ;
6767 int res1 = 0 ;
6768 int val2 ;
6769 int ecode2 = 0 ;
6770 PyObject * obj0 = 0 ;
6771 PyObject * obj1 = 0 ;
6772
6773 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_initialization_splits_set", 2, 2, &obj0, &obj1)) SWIG_fail;
6775 if (!SWIG_IsOK(res1)) {
6776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_initialization_splits_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6777 }
6778 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6779 ecode2 = SWIG_AsVal_int(obj1, &val2);
6780 if (!SWIG_IsOK(ecode2)) {
6781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultPhaseParameters_initialization_splits_set" "', argument " "2"" of type '" "int""'");
6782 }
6783 arg2 = static_cast< int >(val2);
6784 if (arg1) (arg1)->initialization_splits = arg2;
6785 resultobj = SWIG_Py_Void();
6786 return resultobj;
6787fail:
6788 return NULL;
6789}
6790
6791
6793 PyObject *resultobj = 0;
6795 void *argp1 = 0 ;
6796 int res1 = 0 ;
6797 PyObject * obj0 = 0 ;
6798 int result;
6799
6800 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_initialization_splits_get", 1, 1, &obj0)) SWIG_fail;
6802 if (!SWIG_IsOK(res1)) {
6803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_initialization_splits_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6804 }
6805 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6806 result = (int) ((arg1)->initialization_splits);
6807 resultobj = SWIG_From_int(static_cast< int >(result));
6808 return resultobj;
6809fail:
6810 return NULL;
6811}
6812
6813
6815 PyObject *resultobj = 0;
6817 bool arg2 ;
6818 void *argp1 = 0 ;
6819 int res1 = 0 ;
6820 bool val2 ;
6821 int ecode2 = 0 ;
6822 PyObject * obj0 = 0 ;
6823 PyObject * obj1 = 0 ;
6824
6825 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_run_all_heuristics_set", 2, 2, &obj0, &obj1)) SWIG_fail;
6827 if (!SWIG_IsOK(res1)) {
6828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_run_all_heuristics_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6829 }
6830 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6831 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6832 if (!SWIG_IsOK(ecode2)) {
6833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultPhaseParameters_run_all_heuristics_set" "', argument " "2"" of type '" "bool""'");
6834 }
6835 arg2 = static_cast< bool >(val2);
6836 if (arg1) (arg1)->run_all_heuristics = arg2;
6837 resultobj = SWIG_Py_Void();
6838 return resultobj;
6839fail:
6840 return NULL;
6841}
6842
6843
6845 PyObject *resultobj = 0;
6847 void *argp1 = 0 ;
6848 int res1 = 0 ;
6849 PyObject * obj0 = 0 ;
6850 bool result;
6851
6852 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_run_all_heuristics_get", 1, 1, &obj0)) SWIG_fail;
6854 if (!SWIG_IsOK(res1)) {
6855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_run_all_heuristics_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6856 }
6857 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6858 result = (bool) ((arg1)->run_all_heuristics);
6859 resultobj = SWIG_From_bool(static_cast< bool >(result));
6860 return resultobj;
6861fail:
6862 return NULL;
6863}
6864
6865
6867 PyObject *resultobj = 0;
6869 int arg2 ;
6870 void *argp1 = 0 ;
6871 int res1 = 0 ;
6872 int val2 ;
6873 int ecode2 = 0 ;
6874 PyObject * obj0 = 0 ;
6875 PyObject * obj1 = 0 ;
6876
6877 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_heuristic_period_set", 2, 2, &obj0, &obj1)) SWIG_fail;
6879 if (!SWIG_IsOK(res1)) {
6880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_heuristic_period_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6881 }
6882 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6883 ecode2 = SWIG_AsVal_int(obj1, &val2);
6884 if (!SWIG_IsOK(ecode2)) {
6885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultPhaseParameters_heuristic_period_set" "', argument " "2"" of type '" "int""'");
6886 }
6887 arg2 = static_cast< int >(val2);
6888 if (arg1) (arg1)->heuristic_period = arg2;
6889 resultobj = SWIG_Py_Void();
6890 return resultobj;
6891fail:
6892 return NULL;
6893}
6894
6895
6897 PyObject *resultobj = 0;
6899 void *argp1 = 0 ;
6900 int res1 = 0 ;
6901 PyObject * obj0 = 0 ;
6902 int result;
6903
6904 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_heuristic_period_get", 1, 1, &obj0)) SWIG_fail;
6906 if (!SWIG_IsOK(res1)) {
6907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_heuristic_period_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6908 }
6909 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6910 result = (int) ((arg1)->heuristic_period);
6911 resultobj = SWIG_From_int(static_cast< int >(result));
6912 return resultobj;
6913fail:
6914 return NULL;
6915}
6916
6917
6919 PyObject *resultobj = 0;
6921 int arg2 ;
6922 void *argp1 = 0 ;
6923 int res1 = 0 ;
6924 int val2 ;
6925 int ecode2 = 0 ;
6926 PyObject * obj0 = 0 ;
6927 PyObject * obj1 = 0 ;
6928
6929 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_heuristic_num_failures_limit_set", 2, 2, &obj0, &obj1)) SWIG_fail;
6931 if (!SWIG_IsOK(res1)) {
6932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_heuristic_num_failures_limit_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6933 }
6934 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6935 ecode2 = SWIG_AsVal_int(obj1, &val2);
6936 if (!SWIG_IsOK(ecode2)) {
6937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultPhaseParameters_heuristic_num_failures_limit_set" "', argument " "2"" of type '" "int""'");
6938 }
6939 arg2 = static_cast< int >(val2);
6940 if (arg1) (arg1)->heuristic_num_failures_limit = arg2;
6941 resultobj = SWIG_Py_Void();
6942 return resultobj;
6943fail:
6944 return NULL;
6945}
6946
6947
6949 PyObject *resultobj = 0;
6951 void *argp1 = 0 ;
6952 int res1 = 0 ;
6953 PyObject * obj0 = 0 ;
6954 int result;
6955
6956 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_heuristic_num_failures_limit_get", 1, 1, &obj0)) SWIG_fail;
6958 if (!SWIG_IsOK(res1)) {
6959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_heuristic_num_failures_limit_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6960 }
6961 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6962 result = (int) ((arg1)->heuristic_num_failures_limit);
6963 resultobj = SWIG_From_int(static_cast< int >(result));
6964 return resultobj;
6965fail:
6966 return NULL;
6967}
6968
6969
6971 PyObject *resultobj = 0;
6973 bool arg2 ;
6974 void *argp1 = 0 ;
6975 int res1 = 0 ;
6976 bool val2 ;
6977 int ecode2 = 0 ;
6978 PyObject * obj0 = 0 ;
6979 PyObject * obj1 = 0 ;
6980
6981 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_persistent_impact_set", 2, 2, &obj0, &obj1)) SWIG_fail;
6983 if (!SWIG_IsOK(res1)) {
6984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_persistent_impact_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6985 }
6986 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6987 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6988 if (!SWIG_IsOK(ecode2)) {
6989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultPhaseParameters_persistent_impact_set" "', argument " "2"" of type '" "bool""'");
6990 }
6991 arg2 = static_cast< bool >(val2);
6992 if (arg1) (arg1)->persistent_impact = arg2;
6993 resultobj = SWIG_Py_Void();
6994 return resultobj;
6995fail:
6996 return NULL;
6997}
6998
6999
7001 PyObject *resultobj = 0;
7003 void *argp1 = 0 ;
7004 int res1 = 0 ;
7005 PyObject * obj0 = 0 ;
7006 bool result;
7007
7008 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_persistent_impact_get", 1, 1, &obj0)) SWIG_fail;
7010 if (!SWIG_IsOK(res1)) {
7011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_persistent_impact_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7012 }
7013 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
7014 result = (bool) ((arg1)->persistent_impact);
7015 resultobj = SWIG_From_bool(static_cast< bool >(result));
7016 return resultobj;
7017fail:
7018 return NULL;
7019}
7020
7021
7023 PyObject *resultobj = 0;
7025 int arg2 ;
7026 void *argp1 = 0 ;
7027 int res1 = 0 ;
7028 int val2 ;
7029 int ecode2 = 0 ;
7030 PyObject * obj0 = 0 ;
7031 PyObject * obj1 = 0 ;
7032
7033 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_random_seed_set", 2, 2, &obj0, &obj1)) SWIG_fail;
7035 if (!SWIG_IsOK(res1)) {
7036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_random_seed_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7037 }
7038 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
7039 ecode2 = SWIG_AsVal_int(obj1, &val2);
7040 if (!SWIG_IsOK(ecode2)) {
7041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultPhaseParameters_random_seed_set" "', argument " "2"" of type '" "int""'");
7042 }
7043 arg2 = static_cast< int >(val2);
7044 if (arg1) (arg1)->random_seed = arg2;
7045 resultobj = SWIG_Py_Void();
7046 return resultobj;
7047fail:
7048 return NULL;
7049}
7050
7051
7053 PyObject *resultobj = 0;
7055 void *argp1 = 0 ;
7056 int res1 = 0 ;
7057 PyObject * obj0 = 0 ;
7058 int result;
7059
7060 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_random_seed_get", 1, 1, &obj0)) SWIG_fail;
7062 if (!SWIG_IsOK(res1)) {
7063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_random_seed_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7064 }
7065 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
7066 result = (int) ((arg1)->random_seed);
7067 resultobj = SWIG_From_int(static_cast< int >(result));
7068 return resultobj;
7069fail:
7070 return NULL;
7071}
7072
7073
7075 PyObject *resultobj = 0;
7078 void *argp1 = 0 ;
7079 int res1 = 0 ;
7080 int val2 ;
7081 int ecode2 = 0 ;
7082 PyObject * obj0 = 0 ;
7083 PyObject * obj1 = 0 ;
7084
7085 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_display_level_set", 2, 2, &obj0, &obj1)) SWIG_fail;
7087 if (!SWIG_IsOK(res1)) {
7088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_display_level_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7089 }
7090 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
7091 ecode2 = SWIG_AsVal_int(obj1, &val2);
7092 if (!SWIG_IsOK(ecode2)) {
7093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultPhaseParameters_display_level_set" "', argument " "2"" of type '" "operations_research::DefaultPhaseParameters::DisplayLevel""'");
7094 }
7096 if (arg1) (arg1)->display_level = arg2;
7097 resultobj = SWIG_Py_Void();
7098 return resultobj;
7099fail:
7100 return NULL;
7101}
7102
7103
7105 PyObject *resultobj = 0;
7107 void *argp1 = 0 ;
7108 int res1 = 0 ;
7109 PyObject * obj0 = 0 ;
7111
7112 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_display_level_get", 1, 1, &obj0)) SWIG_fail;
7114 if (!SWIG_IsOK(res1)) {
7115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_display_level_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7116 }
7117 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
7118 result = (operations_research::DefaultPhaseParameters::DisplayLevel) ((arg1)->display_level);
7119 resultobj = SWIG_From_int(static_cast< int >(result));
7120 return resultobj;
7121fail:
7122 return NULL;
7123}
7124
7125
7127 PyObject *resultobj = 0;
7130 void *argp1 = 0 ;
7131 int res1 = 0 ;
7132 void *argp2 = 0 ;
7133 int res2 = 0 ;
7134 PyObject * obj0 = 0 ;
7135 PyObject * obj1 = 0 ;
7136
7137 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_decision_builder_set", 2, 2, &obj0, &obj1)) SWIG_fail;
7139 if (!SWIG_IsOK(res1)) {
7140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_decision_builder_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7141 }
7142 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
7144 if (!SWIG_IsOK(res2)) {
7145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultPhaseParameters_decision_builder_set" "', argument " "2"" of type '" "operations_research::DecisionBuilder *""'");
7146 }
7147 arg2 = reinterpret_cast< operations_research::DecisionBuilder * >(argp2);
7148 if (arg1) (arg1)->decision_builder = arg2;
7149 resultobj = SWIG_Py_Void();
7150 return resultobj;
7151fail:
7152 return NULL;
7153}
7154
7155
7157 PyObject *resultobj = 0;
7159 void *argp1 = 0 ;
7160 int res1 = 0 ;
7161 PyObject * obj0 = 0 ;
7163
7164 if (!PyArg_UnpackTuple(args, "DefaultPhaseParameters_decision_builder_get", 1, 1, &obj0)) SWIG_fail;
7166 if (!SWIG_IsOK(res1)) {
7167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultPhaseParameters_decision_builder_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7168 }
7169 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
7170 result = (operations_research::DecisionBuilder *) ((arg1)->decision_builder);
7172 return resultobj;
7173fail:
7174 return NULL;
7175}
7176
7177
7178SWIGINTERN PyObject *_wrap_new_DefaultPhaseParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7179 PyObject *resultobj = 0;
7181
7182 if (!PyArg_UnpackTuple(args, "new_DefaultPhaseParameters", 0, 0)) SWIG_fail;
7183 {
7184 try {
7186 }
7187 catch (Swig::DirectorException &e) {
7188 SWIG_fail;
7189 }
7190 }
7192 return resultobj;
7193fail:
7194 return NULL;
7195}
7196
7197
7198SWIGINTERN PyObject *_wrap_delete_DefaultPhaseParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7199 PyObject *resultobj = 0;
7201 void *argp1 = 0 ;
7202 int res1 = 0 ;
7203 PyObject * obj0 = 0 ;
7204
7205 if (!PyArg_UnpackTuple(args, "delete_DefaultPhaseParameters", 1, 1, &obj0)) SWIG_fail;
7207 if (!SWIG_IsOK(res1)) {
7208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DefaultPhaseParameters" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7209 }
7210 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
7211 {
7212 try {
7213 delete arg1;
7214 }
7215 catch (Swig::DirectorException &e) {
7216 SWIG_fail;
7217 }
7218 }
7219 resultobj = SWIG_Py_Void();
7220 return resultobj;
7221fail:
7222 return NULL;
7223}
7224
7225
7226SWIGINTERN PyObject *DefaultPhaseParameters_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7227 PyObject *obj;
7228 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
7230 return SWIG_Py_Void();
7231}
7232
7233SWIGINTERN PyObject *DefaultPhaseParameters_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7234 return SWIG_Python_InitShadowInstance(args);
7235}
7236
7237SWIGINTERN PyObject *_wrap_new_Solver__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7238 PyObject *resultobj = 0;
7239 std::string *arg1 = 0 ;
7240 int res1 = SWIG_OLDOBJ ;
7241 PyObject * obj0 = 0 ;
7242 operations_research::Solver *result = 0 ;
7243
7244 if (!PyArg_UnpackTuple(args, "new_Solver", 1, 1, &obj0)) SWIG_fail;
7245 {
7246 std::string *ptr = (std::string *)0;
7247 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
7248 if (!SWIG_IsOK(res1)) {
7249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Solver" "', argument " "1"" of type '" "std::string const &""'");
7250 }
7251 if (!ptr) {
7252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Solver" "', argument " "1"" of type '" "std::string const &""'");
7253 }
7254 arg1 = ptr;
7255 }
7256 {
7257 try {
7258 result = (operations_research::Solver *)new operations_research::Solver((std::string const &)*arg1);
7259 }
7260 catch (Swig::DirectorException &e) {
7261 SWIG_fail;
7262 }
7263 }
7265 if (SWIG_IsNewObj(res1)) delete arg1;
7266 return resultobj;
7267fail:
7268 if (SWIG_IsNewObj(res1)) delete arg1;
7269 return NULL;
7270}
7271
7272
7273SWIGINTERN PyObject *_wrap_new_Solver__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7274 PyObject *resultobj = 0;
7275 std::string *arg1 = 0 ;
7277 int res1 = SWIG_OLDOBJ ;
7278 PyObject * obj0 = 0 ;
7279 PyObject * obj1 = 0 ;
7280 operations_research::Solver *result = 0 ;
7281
7282 if (!PyArg_UnpackTuple(args, "new_Solver", 2, 2, &obj0, &obj1)) SWIG_fail;
7283 {
7284 std::string *ptr = (std::string *)0;
7285 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
7286 if (!SWIG_IsOK(res1)) {
7287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Solver" "', argument " "1"" of type '" "std::string const &""'");
7288 }
7289 if (!ptr) {
7290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Solver" "', argument " "1"" of type '" "std::string const &""'");
7291 }
7292 arg1 = ptr;
7293 }
7294 {
7296 PyObject* const pyresult = PyObject_CallMethod(
7297 obj1, const_cast<char*>("SerializeToString"), nullptr);
7298 if (pyresult != nullptr) {
7299 char* buffer = nullptr;
7300 Py_ssize_t length = 0;
7301 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
7302 if (buffer != nullptr) {
7303 arg2->ParseFromArray(buffer, length);
7304 }
7305 Py_DECREF(pyresult);
7306 }
7307 }
7308 {
7309 try {
7310 result = (operations_research::Solver *)new operations_research::Solver((std::string const &)*arg1,(operations_research::ConstraintSolverParameters const &)*arg2);
7311 }
7312 catch (Swig::DirectorException &e) {
7313 SWIG_fail;
7314 }
7315 }
7317 if (SWIG_IsNewObj(res1)) delete arg1;
7318 {
7319 delete arg2;
7320 }
7321 return resultobj;
7322fail:
7323 if (SWIG_IsNewObj(res1)) delete arg1;
7324 {
7325 delete arg2;
7326 }
7327 return NULL;
7328}
7329
7330
7331SWIGINTERN PyObject *_wrap_new_Solver(PyObject *self, PyObject *args) {
7332 Py_ssize_t argc;
7333 PyObject *argv[3] = {
7334 0
7335 };
7336 Py_ssize_t ii;
7337
7338 if (!PyTuple_Check(args)) SWIG_fail;
7339 argc = PyObject_Length(args);
7340 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
7341 argv[ii] = PyTuple_GET_ITEM(args,ii);
7342 }
7343 if (argc == 1) {
7344 int _v;
7345 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
7346 _v = SWIG_CheckState(res);
7347 if (_v) {
7348 return _wrap_new_Solver__SWIG_0(self, args);
7349 }
7350 }
7351 if (argc == 2) {
7352 int _v;
7353 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
7354 _v = SWIG_CheckState(res);
7355 if (_v) {
7356 {
7357 bool ok = false;
7358 PyObject* const module = PyImport_ImportModule("ortools.constraint_solver.solver_parameters_pb2");
7359 if (module != nullptr) {
7360 PyObject* const dict = PyModule_GetDict(module);
7361 if (dict != nullptr) {
7362 PyObject* const clss = PyDict_GetItemString(dict, "ConstraintSolverParameters");
7363 if (clss != nullptr) {
7364 if (PyObject_IsInstance(argv[1], clss)) {
7365 ok = true;
7366 }
7367 }
7368 }
7369 Py_DECREF(module);
7370 }
7371 _v = ok ? 1 : 0;
7372 }
7373 if (_v) {
7374 return _wrap_new_Solver__SWIG_1(self, args);
7375 }
7376 }
7377 }
7378
7379fail:
7380 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_Solver'.\n"
7381 " Possible C/C++ prototypes are:\n"
7382 " operations_research::Solver::Solver(std::string const &)\n"
7383 " operations_research::Solver::Solver(std::string const &,operations_research::ConstraintSolverParameters const &)\n");
7384 return 0;
7385}
7386
7387
7388SWIGINTERN PyObject *_wrap_delete_Solver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7389 PyObject *resultobj = 0;
7391 void *argp1 = 0 ;
7392 int res1 = 0 ;
7393 PyObject * obj0 = 0 ;
7394
7395 if (!PyArg_UnpackTuple(args, "delete_Solver", 1, 1, &obj0)) SWIG_fail;
7397 if (!SWIG_IsOK(res1)) {
7398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Solver" "', argument " "1"" of type '" "operations_research::Solver *""'");
7399 }
7400 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7401 {
7402 try {
7403 delete arg1;
7404 }
7405 catch (Swig::DirectorException &e) {
7406 SWIG_fail;
7407 }
7408 }
7409 resultobj = SWIG_Py_Void();
7410 return resultobj;
7411fail:
7412 return NULL;
7413}
7414
7415
7416SWIGINTERN PyObject *_wrap_Solver_Parameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7417 PyObject *resultobj = 0;
7419 void *argp1 = 0 ;
7420 int res1 = 0 ;
7421 PyObject * obj0 = 0 ;
7423
7424 if (!PyArg_UnpackTuple(args, "Solver_Parameters", 1, 1, &obj0)) SWIG_fail;
7425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
7426 if (!SWIG_IsOK(res1)) {
7427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Parameters" "', argument " "1"" of type '" "operations_research::Solver const *""'");
7428 }
7429 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7430 {
7431 try {
7432 result = ((operations_research::Solver const *)arg1)->parameters();
7433 }
7434 catch (Swig::DirectorException &e) {
7435 SWIG_fail;
7436 }
7437 }
7438 {
7439 PyObject* const module = PyImport_ImportModule("ortools.constraint_solver.solver_parameters_pb2");
7440 if (module != nullptr) {
7441 PyObject* const dict = PyModule_GetDict(module);
7442 if (dict != nullptr) {
7443 PyObject* const clss = PyDict_GetItemString(dict, "ConstraintSolverParameters");
7444 if (clss != nullptr) {
7445 std::string encoded_protobuf;
7446 (&result)->SerializeToString(&encoded_protobuf);
7447
7448 PyObject* const python_encoded_protobuf = PyBytes_FromStringAndSize(
7449 encoded_protobuf.c_str(), encoded_protobuf.size());
7450
7451
7452
7453
7454 PyObject* const result = PyObject_CallMethod(
7455 clss, const_cast<char*>("FromString"),
7456 const_cast<char*>("(O)"),
7457 python_encoded_protobuf);
7458 Py_DECREF(python_encoded_protobuf);
7459 resultobj = result;
7460 }
7461 }
7462 Py_DECREF(module);
7463 }
7464 }
7465 return resultobj;
7466fail:
7467 return NULL;
7468}
7469
7470
7471SWIGINTERN PyObject *_wrap_Solver_DefaultSolverParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7472 PyObject *resultobj = 0;
7474
7475 if (!PyArg_UnpackTuple(args, "Solver_DefaultSolverParameters", 0, 0)) SWIG_fail;
7476 {
7477 try {
7479 }
7480 catch (Swig::DirectorException &e) {
7481 SWIG_fail;
7482 }
7483 }
7484 {
7485 PyObject* const module = PyImport_ImportModule("ortools.constraint_solver.solver_parameters_pb2");
7486 if (module != nullptr) {
7487 PyObject* const dict = PyModule_GetDict(module);
7488 if (dict != nullptr) {
7489 PyObject* const clss = PyDict_GetItemString(dict, "ConstraintSolverParameters");
7490 if (clss != nullptr) {
7491 std::string encoded_protobuf;
7492 (&result)->SerializeToString(&encoded_protobuf);
7493
7494 PyObject* const python_encoded_protobuf = PyBytes_FromStringAndSize(
7495 encoded_protobuf.c_str(), encoded_protobuf.size());
7496
7497
7498
7499
7500 PyObject* const result = PyObject_CallMethod(
7501 clss, const_cast<char*>("FromString"),
7502 const_cast<char*>("(O)"),
7503 python_encoded_protobuf);
7504 Py_DECREF(python_encoded_protobuf);
7505 resultobj = result;
7506 }
7507 }
7508 Py_DECREF(module);
7509 }
7510 }
7511 return resultobj;
7512fail:
7513 return NULL;
7514}
7515
7516
7517SWIGINTERN PyObject *_wrap_Solver_AddConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7518 PyObject *resultobj = 0;
7521 void *argp1 = 0 ;
7522 int res1 = 0 ;
7523 void *argp2 = 0 ;
7524 int res2 = 0 ;
7525 PyObject * obj0 = 0 ;
7526 PyObject * obj1 = 0 ;
7527
7528 if (!PyArg_UnpackTuple(args, "Solver_AddConstraint", 2, 2, &obj0, &obj1)) SWIG_fail;
7529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
7530 if (!SWIG_IsOK(res1)) {
7531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_AddConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
7532 }
7533 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7535 if (!SWIG_IsOK(res2)) {
7536 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_AddConstraint" "', argument " "2"" of type '" "operations_research::Constraint *const""'");
7537 }
7538 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
7539 {
7540 operations_research::Solver* const solver = arg1;
7541 FailureProtect protect;
7542 solver->set_fail_intercept([&protect]() {
7543 protect.JumpBack();
7544 });
7545 if (setjmp(protect.exception_buffer) == 0) {
7546 (arg1)->AddConstraint(arg2);
7547 solver->clear_fail_intercept();
7548 } else {
7549 solver->clear_fail_intercept();
7550 // IMPORTANT: the type and message of the exception raised matter,
7551 // because they are caught by the python overrides of some CP classes.
7552 // See the occurrences of the "PyExc_Exception" string below.
7553 PyErr_SetString(PyExc_Exception, "CP Solver fail");
7554 SWIG_fail;
7555 }
7556 }
7557 resultobj = SWIG_Py_Void();
7558 return resultobj;
7559fail:
7560 return NULL;
7561}
7562
7563
7564SWIGINTERN PyObject *_wrap_Solver_Solve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7565 PyObject *resultobj = 0;
7568 std::vector< operations_research::SearchMonitor * > *arg3 = 0 ;
7569 void *argp1 = 0 ;
7570 int res1 = 0 ;
7571 std::vector< operations_research::SearchMonitor * > temp3 ;
7572 PyObject * obj0 = 0 ;
7573 PyObject * obj1 = 0 ;
7574 PyObject * obj2 = 0 ;
7575 bool result;
7576
7577 if (!PyArg_UnpackTuple(args, "Solver_Solve", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
7578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
7579 if (!SWIG_IsOK(res1)) {
7580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Solve" "', argument " "1"" of type '" "operations_research::Solver *""'");
7581 }
7582 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7583 {
7584 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
7585 }
7586 {
7587 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::SearchMonitor*>)) {
7588 if (!PyErr_Occurred())
7589 SWIG_Error(SWIG_TypeError, "sequence(operations_research::SearchMonitor*) expected");
7590 return NULL;
7591 }
7592 arg3 = &temp3;
7593 }
7594 {
7595 try {
7596 result = (bool)(arg1)->Solve(arg2,(std::vector< operations_research::SearchMonitor * > const &)*arg3);
7597 }
7598 catch (Swig::DirectorException &e) {
7599 SWIG_fail;
7600 }
7601 }
7602 resultobj = SWIG_From_bool(static_cast< bool >(result));
7603 return resultobj;
7604fail:
7605 return NULL;
7606}
7607
7608
7609SWIGINTERN PyObject *_wrap_Solver_Solve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7610 PyObject *resultobj = 0;
7613 void *argp1 = 0 ;
7614 int res1 = 0 ;
7615 PyObject * obj0 = 0 ;
7616 PyObject * obj1 = 0 ;
7617 bool result;
7618
7619 if (!PyArg_UnpackTuple(args, "Solver_Solve", 2, 2, &obj0, &obj1)) SWIG_fail;
7620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
7621 if (!SWIG_IsOK(res1)) {
7622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Solve" "', argument " "1"" of type '" "operations_research::Solver *""'");
7623 }
7624 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7625 {
7626 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
7627 }
7628 {
7629 try {
7630 result = (bool)(arg1)->Solve(arg2);
7631 }
7632 catch (Swig::DirectorException &e) {
7633 SWIG_fail;
7634 }
7635 }
7636 resultobj = SWIG_From_bool(static_cast< bool >(result));
7637 return resultobj;
7638fail:
7639 return NULL;
7640}
7641
7642
7643SWIGINTERN PyObject *_wrap_Solver_Solve__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7644 PyObject *resultobj = 0;
7648 void *argp1 = 0 ;
7649 int res1 = 0 ;
7650 PyObject * obj0 = 0 ;
7651 PyObject * obj1 = 0 ;
7652 PyObject * obj2 = 0 ;
7653 bool result;
7654
7655 if (!PyArg_UnpackTuple(args, "Solver_Solve", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
7656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
7657 if (!SWIG_IsOK(res1)) {
7658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Solve" "', argument " "1"" of type '" "operations_research::Solver *""'");
7659 }
7660 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7661 {
7662 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
7663 }
7664 {
7665 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
7666 }
7667 {
7668 try {
7669 result = (bool)(arg1)->Solve(arg2,arg3);
7670 }
7671 catch (Swig::DirectorException &e) {
7672 SWIG_fail;
7673 }
7674 }
7675 resultobj = SWIG_From_bool(static_cast< bool >(result));
7676 return resultobj;
7677fail:
7678 return NULL;
7679}
7680
7681
7682SWIGINTERN PyObject *_wrap_Solver_Solve__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7683 PyObject *resultobj = 0;
7688 void *argp1 = 0 ;
7689 int res1 = 0 ;
7690 PyObject * obj0 = 0 ;
7691 PyObject * obj1 = 0 ;
7692 PyObject * obj2 = 0 ;
7693 PyObject * obj3 = 0 ;
7694 bool result;
7695
7696 if (!PyArg_UnpackTuple(args, "Solver_Solve", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
7697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
7698 if (!SWIG_IsOK(res1)) {
7699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Solve" "', argument " "1"" of type '" "operations_research::Solver *""'");
7700 }
7701 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7702 {
7703 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
7704 }
7705 {
7706 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
7707 }
7708 {
7709 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
7710 }
7711 {
7712 try {
7713 result = (bool)(arg1)->Solve(arg2,arg3,arg4);
7714 }
7715 catch (Swig::DirectorException &e) {
7716 SWIG_fail;
7717 }
7718 }
7719 resultobj = SWIG_From_bool(static_cast< bool >(result));
7720 return resultobj;
7721fail:
7722 return NULL;
7723}
7724
7725
7726SWIGINTERN PyObject *_wrap_Solver_Solve__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7727 PyObject *resultobj = 0;
7733 void *argp1 = 0 ;
7734 int res1 = 0 ;
7735 PyObject * obj0 = 0 ;
7736 PyObject * obj1 = 0 ;
7737 PyObject * obj2 = 0 ;
7738 PyObject * obj3 = 0 ;
7739 PyObject * obj4 = 0 ;
7740 bool result;
7741
7742 if (!PyArg_UnpackTuple(args, "Solver_Solve", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
7743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
7744 if (!SWIG_IsOK(res1)) {
7745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Solve" "', argument " "1"" of type '" "operations_research::Solver *""'");
7746 }
7747 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7748 {
7749 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
7750 }
7751 {
7752 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
7753 }
7754 {
7755 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
7756 }
7757 {
7758 if (!PyObjAs(obj4, &arg5)) SWIG_fail;
7759 }
7760 {
7761 try {
7762 result = (bool)(arg1)->Solve(arg2,arg3,arg4,arg5);
7763 }
7764 catch (Swig::DirectorException &e) {
7765 SWIG_fail;
7766 }
7767 }
7768 resultobj = SWIG_From_bool(static_cast< bool >(result));
7769 return resultobj;
7770fail:
7771 return NULL;
7772}
7773
7774
7775SWIGINTERN PyObject *_wrap_Solver_Solve__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7776 PyObject *resultobj = 0;
7783 void *argp1 = 0 ;
7784 int res1 = 0 ;
7785 PyObject * obj0 = 0 ;
7786 PyObject * obj1 = 0 ;
7787 PyObject * obj2 = 0 ;
7788 PyObject * obj3 = 0 ;
7789 PyObject * obj4 = 0 ;
7790 PyObject * obj5 = 0 ;
7791 bool result;
7792
7793 if (!PyArg_UnpackTuple(args, "Solver_Solve", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
7794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
7795 if (!SWIG_IsOK(res1)) {
7796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Solve" "', argument " "1"" of type '" "operations_research::Solver *""'");
7797 }
7798 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7799 {
7800 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
7801 }
7802 {
7803 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
7804 }
7805 {
7806 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
7807 }
7808 {
7809 if (!PyObjAs(obj4, &arg5)) SWIG_fail;
7810 }
7811 {
7812 if (!PyObjAs(obj5, &arg6)) SWIG_fail;
7813 }
7814 {
7815 try {
7816 result = (bool)(arg1)->Solve(arg2,arg3,arg4,arg5,arg6);
7817 }
7818 catch (Swig::DirectorException &e) {
7819 SWIG_fail;
7820 }
7821 }
7822 resultobj = SWIG_From_bool(static_cast< bool >(result));
7823 return resultobj;
7824fail:
7825 return NULL;
7826}
7827
7828
7829SWIGINTERN PyObject *_wrap_Solver_Solve(PyObject *self, PyObject *args) {
7830 Py_ssize_t argc;
7831 PyObject *argv[7] = {
7832 0
7833 };
7834 Py_ssize_t ii;
7835
7836 if (!PyTuple_Check(args)) SWIG_fail;
7837 argc = PyObject_Length(args);
7838 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
7839 argv[ii] = PyTuple_GET_ITEM(args,ii);
7840 }
7841 if (argc == 2) {
7842 int _v;
7843 void *vptr = 0;
7844 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
7845 _v = SWIG_CheckState(res);
7846 if (_v) {
7847 {
7848 _v = CanConvertToDecisionBuilder(argv[1]);
7849 if (_v == 0) PyErr_Clear();
7850 }
7851 if (_v) {
7852 return _wrap_Solver_Solve__SWIG_1(self, args);
7853 }
7854 }
7855 }
7856 if (argc == 3) {
7857 int _v;
7858 void *vptr = 0;
7859 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
7860 _v = SWIG_CheckState(res);
7861 if (_v) {
7862 {
7863 _v = CanConvertToDecisionBuilder(argv[1]);
7864 if (_v == 0) PyErr_Clear();
7865 }
7866 if (_v) {
7867 {
7868 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
7869 _v = 0;
7870 } else {
7871 const bool is_tuple = PyTuple_Check(argv[2]);
7872 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
7873 size_t i = 0;
7874 while (i < size && CanConvertToSearchMonitor(is_tuple ? PyTuple_GetItem(argv[2], i)
7875 :PyList_GetItem(argv[2], i))) {
7876 ++i;
7877 }
7878 _v = i == size;
7879 }
7880 }
7881 if (_v) {
7882 return _wrap_Solver_Solve__SWIG_0(self, args);
7883 }
7884 }
7885 }
7886 }
7887 if (argc == 3) {
7888 int _v;
7889 void *vptr = 0;
7890 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
7891 _v = SWIG_CheckState(res);
7892 if (_v) {
7893 {
7894 _v = CanConvertToDecisionBuilder(argv[1]);
7895 if (_v == 0) PyErr_Clear();
7896 }
7897 if (_v) {
7898 {
7899 _v = CanConvertToSearchMonitor(argv[2]);
7900 if (_v == 0) PyErr_Clear();
7901 }
7902 if (_v) {
7903 return _wrap_Solver_Solve__SWIG_2(self, args);
7904 }
7905 }
7906 }
7907 }
7908 if (argc == 4) {
7909 int _v;
7910 void *vptr = 0;
7911 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
7912 _v = SWIG_CheckState(res);
7913 if (_v) {
7914 {
7915 _v = CanConvertToDecisionBuilder(argv[1]);
7916 if (_v == 0) PyErr_Clear();
7917 }
7918 if (_v) {
7919 {
7920 _v = CanConvertToSearchMonitor(argv[2]);
7921 if (_v == 0) PyErr_Clear();
7922 }
7923 if (_v) {
7924 {
7925 _v = CanConvertToSearchMonitor(argv[3]);
7926 if (_v == 0) PyErr_Clear();
7927 }
7928 if (_v) {
7929 return _wrap_Solver_Solve__SWIG_3(self, args);
7930 }
7931 }
7932 }
7933 }
7934 }
7935 if (argc == 5) {
7936 int _v;
7937 void *vptr = 0;
7938 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
7939 _v = SWIG_CheckState(res);
7940 if (_v) {
7941 {
7942 _v = CanConvertToDecisionBuilder(argv[1]);
7943 if (_v == 0) PyErr_Clear();
7944 }
7945 if (_v) {
7946 {
7947 _v = CanConvertToSearchMonitor(argv[2]);
7948 if (_v == 0) PyErr_Clear();
7949 }
7950 if (_v) {
7951 {
7952 _v = CanConvertToSearchMonitor(argv[3]);
7953 if (_v == 0) PyErr_Clear();
7954 }
7955 if (_v) {
7956 {
7957 _v = CanConvertToSearchMonitor(argv[4]);
7958 if (_v == 0) PyErr_Clear();
7959 }
7960 if (_v) {
7961 return _wrap_Solver_Solve__SWIG_4(self, args);
7962 }
7963 }
7964 }
7965 }
7966 }
7967 }
7968 if (argc == 6) {
7969 int _v;
7970 void *vptr = 0;
7971 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
7972 _v = SWIG_CheckState(res);
7973 if (_v) {
7974 {
7975 _v = CanConvertToDecisionBuilder(argv[1]);
7976 if (_v == 0) PyErr_Clear();
7977 }
7978 if (_v) {
7979 {
7980 _v = CanConvertToSearchMonitor(argv[2]);
7981 if (_v == 0) PyErr_Clear();
7982 }
7983 if (_v) {
7984 {
7985 _v = CanConvertToSearchMonitor(argv[3]);
7986 if (_v == 0) PyErr_Clear();
7987 }
7988 if (_v) {
7989 {
7990 _v = CanConvertToSearchMonitor(argv[4]);
7991 if (_v == 0) PyErr_Clear();
7992 }
7993 if (_v) {
7994 {
7995 _v = CanConvertToSearchMonitor(argv[5]);
7996 if (_v == 0) PyErr_Clear();
7997 }
7998 if (_v) {
7999 return _wrap_Solver_Solve__SWIG_5(self, args);
8000 }
8001 }
8002 }
8003 }
8004 }
8005 }
8006 }
8007
8008fail:
8009 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_Solve'.\n"
8010 " Possible C/C++ prototypes are:\n"
8011 " operations_research::Solver::Solve(operations_research::DecisionBuilder *const,std::vector< operations_research::SearchMonitor * > const &)\n"
8012 " operations_research::Solver::Solve(operations_research::DecisionBuilder *const)\n"
8013 " operations_research::Solver::Solve(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const)\n"
8014 " operations_research::Solver::Solve(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n"
8015 " operations_research::Solver::Solve(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n"
8016 " operations_research::Solver::Solve(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n");
8017 return 0;
8018}
8019
8020
8021SWIGINTERN PyObject *_wrap_Solver_NewSearch__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8022 PyObject *resultobj = 0;
8025 std::vector< operations_research::SearchMonitor * > *arg3 = 0 ;
8026 void *argp1 = 0 ;
8027 int res1 = 0 ;
8028 std::vector< operations_research::SearchMonitor * > temp3 ;
8029 PyObject * obj0 = 0 ;
8030 PyObject * obj1 = 0 ;
8031 PyObject * obj2 = 0 ;
8032
8033 if (!PyArg_UnpackTuple(args, "Solver_NewSearch", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
8034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
8035 if (!SWIG_IsOK(res1)) {
8036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NewSearch" "', argument " "1"" of type '" "operations_research::Solver *""'");
8037 }
8038 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8039 {
8040 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
8041 }
8042 {
8043 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::SearchMonitor*>)) {
8044 if (!PyErr_Occurred())
8045 SWIG_Error(SWIG_TypeError, "sequence(operations_research::SearchMonitor*) expected");
8046 return NULL;
8047 }
8048 arg3 = &temp3;
8049 }
8050 {
8051 try {
8052 (arg1)->NewSearch(arg2,(std::vector< operations_research::SearchMonitor * > const &)*arg3);
8053 }
8054 catch (Swig::DirectorException &e) {
8055 SWIG_fail;
8056 }
8057 }
8058 resultobj = SWIG_Py_Void();
8059 return resultobj;
8060fail:
8061 return NULL;
8062}
8063
8064
8065SWIGINTERN PyObject *_wrap_Solver_NewSearch__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8066 PyObject *resultobj = 0;
8069 void *argp1 = 0 ;
8070 int res1 = 0 ;
8071 PyObject * obj0 = 0 ;
8072 PyObject * obj1 = 0 ;
8073
8074 if (!PyArg_UnpackTuple(args, "Solver_NewSearch", 2, 2, &obj0, &obj1)) SWIG_fail;
8075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
8076 if (!SWIG_IsOK(res1)) {
8077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NewSearch" "', argument " "1"" of type '" "operations_research::Solver *""'");
8078 }
8079 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8080 {
8081 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
8082 }
8083 {
8084 try {
8085 (arg1)->NewSearch(arg2);
8086 }
8087 catch (Swig::DirectorException &e) {
8088 SWIG_fail;
8089 }
8090 }
8091 resultobj = SWIG_Py_Void();
8092 return resultobj;
8093fail:
8094 return NULL;
8095}
8096
8097
8098SWIGINTERN PyObject *_wrap_Solver_NewSearch__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8099 PyObject *resultobj = 0;
8103 void *argp1 = 0 ;
8104 int res1 = 0 ;
8105 PyObject * obj0 = 0 ;
8106 PyObject * obj1 = 0 ;
8107 PyObject * obj2 = 0 ;
8108
8109 if (!PyArg_UnpackTuple(args, "Solver_NewSearch", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
8110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
8111 if (!SWIG_IsOK(res1)) {
8112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NewSearch" "', argument " "1"" of type '" "operations_research::Solver *""'");
8113 }
8114 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8115 {
8116 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
8117 }
8118 {
8119 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
8120 }
8121 {
8122 try {
8123 (arg1)->NewSearch(arg2,arg3);
8124 }
8125 catch (Swig::DirectorException &e) {
8126 SWIG_fail;
8127 }
8128 }
8129 resultobj = SWIG_Py_Void();
8130 return resultobj;
8131fail:
8132 return NULL;
8133}
8134
8135
8136SWIGINTERN PyObject *_wrap_Solver_NewSearch__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8137 PyObject *resultobj = 0;
8142 void *argp1 = 0 ;
8143 int res1 = 0 ;
8144 PyObject * obj0 = 0 ;
8145 PyObject * obj1 = 0 ;
8146 PyObject * obj2 = 0 ;
8147 PyObject * obj3 = 0 ;
8148
8149 if (!PyArg_UnpackTuple(args, "Solver_NewSearch", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
8150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
8151 if (!SWIG_IsOK(res1)) {
8152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NewSearch" "', argument " "1"" of type '" "operations_research::Solver *""'");
8153 }
8154 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8155 {
8156 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
8157 }
8158 {
8159 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
8160 }
8161 {
8162 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
8163 }
8164 {
8165 try {
8166 (arg1)->NewSearch(arg2,arg3,arg4);
8167 }
8168 catch (Swig::DirectorException &e) {
8169 SWIG_fail;
8170 }
8171 }
8172 resultobj = SWIG_Py_Void();
8173 return resultobj;
8174fail:
8175 return NULL;
8176}
8177
8178
8179SWIGINTERN PyObject *_wrap_Solver_NewSearch__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8180 PyObject *resultobj = 0;
8186 void *argp1 = 0 ;
8187 int res1 = 0 ;
8188 PyObject * obj0 = 0 ;
8189 PyObject * obj1 = 0 ;
8190 PyObject * obj2 = 0 ;
8191 PyObject * obj3 = 0 ;
8192 PyObject * obj4 = 0 ;
8193
8194 if (!PyArg_UnpackTuple(args, "Solver_NewSearch", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
8195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
8196 if (!SWIG_IsOK(res1)) {
8197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NewSearch" "', argument " "1"" of type '" "operations_research::Solver *""'");
8198 }
8199 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8200 {
8201 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
8202 }
8203 {
8204 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
8205 }
8206 {
8207 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
8208 }
8209 {
8210 if (!PyObjAs(obj4, &arg5)) SWIG_fail;
8211 }
8212 {
8213 try {
8214 (arg1)->NewSearch(arg2,arg3,arg4,arg5);
8215 }
8216 catch (Swig::DirectorException &e) {
8217 SWIG_fail;
8218 }
8219 }
8220 resultobj = SWIG_Py_Void();
8221 return resultobj;
8222fail:
8223 return NULL;
8224}
8225
8226
8227SWIGINTERN PyObject *_wrap_Solver_NewSearch__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8228 PyObject *resultobj = 0;
8235 void *argp1 = 0 ;
8236 int res1 = 0 ;
8237 PyObject * obj0 = 0 ;
8238 PyObject * obj1 = 0 ;
8239 PyObject * obj2 = 0 ;
8240 PyObject * obj3 = 0 ;
8241 PyObject * obj4 = 0 ;
8242 PyObject * obj5 = 0 ;
8243
8244 if (!PyArg_UnpackTuple(args, "Solver_NewSearch", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
8245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
8246 if (!SWIG_IsOK(res1)) {
8247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NewSearch" "', argument " "1"" of type '" "operations_research::Solver *""'");
8248 }
8249 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8250 {
8251 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
8252 }
8253 {
8254 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
8255 }
8256 {
8257 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
8258 }
8259 {
8260 if (!PyObjAs(obj4, &arg5)) SWIG_fail;
8261 }
8262 {
8263 if (!PyObjAs(obj5, &arg6)) SWIG_fail;
8264 }
8265 {
8266 try {
8267 (arg1)->NewSearch(arg2,arg3,arg4,arg5,arg6);
8268 }
8269 catch (Swig::DirectorException &e) {
8270 SWIG_fail;
8271 }
8272 }
8273 resultobj = SWIG_Py_Void();
8274 return resultobj;
8275fail:
8276 return NULL;
8277}
8278
8279
8280SWIGINTERN PyObject *_wrap_Solver_NewSearch(PyObject *self, PyObject *args) {
8281 Py_ssize_t argc;
8282 PyObject *argv[7] = {
8283 0
8284 };
8285 Py_ssize_t ii;
8286
8287 if (!PyTuple_Check(args)) SWIG_fail;
8288 argc = PyObject_Length(args);
8289 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
8290 argv[ii] = PyTuple_GET_ITEM(args,ii);
8291 }
8292 if (argc == 2) {
8293 int _v;
8294 void *vptr = 0;
8295 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
8296 _v = SWIG_CheckState(res);
8297 if (_v) {
8298 {
8299 _v = CanConvertToDecisionBuilder(argv[1]);
8300 if (_v == 0) PyErr_Clear();
8301 }
8302 if (_v) {
8303 return _wrap_Solver_NewSearch__SWIG_1(self, args);
8304 }
8305 }
8306 }
8307 if (argc == 3) {
8308 int _v;
8309 void *vptr = 0;
8310 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
8311 _v = SWIG_CheckState(res);
8312 if (_v) {
8313 {
8314 _v = CanConvertToDecisionBuilder(argv[1]);
8315 if (_v == 0) PyErr_Clear();
8316 }
8317 if (_v) {
8318 {
8319 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
8320 _v = 0;
8321 } else {
8322 const bool is_tuple = PyTuple_Check(argv[2]);
8323 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
8324 size_t i = 0;
8325 while (i < size && CanConvertToSearchMonitor(is_tuple ? PyTuple_GetItem(argv[2], i)
8326 :PyList_GetItem(argv[2], i))) {
8327 ++i;
8328 }
8329 _v = i == size;
8330 }
8331 }
8332 if (_v) {
8333 return _wrap_Solver_NewSearch__SWIG_0(self, args);
8334 }
8335 }
8336 }
8337 }
8338 if (argc == 3) {
8339 int _v;
8340 void *vptr = 0;
8341 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
8342 _v = SWIG_CheckState(res);
8343 if (_v) {
8344 {
8345 _v = CanConvertToDecisionBuilder(argv[1]);
8346 if (_v == 0) PyErr_Clear();
8347 }
8348 if (_v) {
8349 {
8350 _v = CanConvertToSearchMonitor(argv[2]);
8351 if (_v == 0) PyErr_Clear();
8352 }
8353 if (_v) {
8354 return _wrap_Solver_NewSearch__SWIG_2(self, args);
8355 }
8356 }
8357 }
8358 }
8359 if (argc == 4) {
8360 int _v;
8361 void *vptr = 0;
8362 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
8363 _v = SWIG_CheckState(res);
8364 if (_v) {
8365 {
8366 _v = CanConvertToDecisionBuilder(argv[1]);
8367 if (_v == 0) PyErr_Clear();
8368 }
8369 if (_v) {
8370 {
8371 _v = CanConvertToSearchMonitor(argv[2]);
8372 if (_v == 0) PyErr_Clear();
8373 }
8374 if (_v) {
8375 {
8376 _v = CanConvertToSearchMonitor(argv[3]);
8377 if (_v == 0) PyErr_Clear();
8378 }
8379 if (_v) {
8380 return _wrap_Solver_NewSearch__SWIG_3(self, args);
8381 }
8382 }
8383 }
8384 }
8385 }
8386 if (argc == 5) {
8387 int _v;
8388 void *vptr = 0;
8389 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
8390 _v = SWIG_CheckState(res);
8391 if (_v) {
8392 {
8393 _v = CanConvertToDecisionBuilder(argv[1]);
8394 if (_v == 0) PyErr_Clear();
8395 }
8396 if (_v) {
8397 {
8398 _v = CanConvertToSearchMonitor(argv[2]);
8399 if (_v == 0) PyErr_Clear();
8400 }
8401 if (_v) {
8402 {
8403 _v = CanConvertToSearchMonitor(argv[3]);
8404 if (_v == 0) PyErr_Clear();
8405 }
8406 if (_v) {
8407 {
8408 _v = CanConvertToSearchMonitor(argv[4]);
8409 if (_v == 0) PyErr_Clear();
8410 }
8411 if (_v) {
8412 return _wrap_Solver_NewSearch__SWIG_4(self, args);
8413 }
8414 }
8415 }
8416 }
8417 }
8418 }
8419 if (argc == 6) {
8420 int _v;
8421 void *vptr = 0;
8422 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
8423 _v = SWIG_CheckState(res);
8424 if (_v) {
8425 {
8426 _v = CanConvertToDecisionBuilder(argv[1]);
8427 if (_v == 0) PyErr_Clear();
8428 }
8429 if (_v) {
8430 {
8431 _v = CanConvertToSearchMonitor(argv[2]);
8432 if (_v == 0) PyErr_Clear();
8433 }
8434 if (_v) {
8435 {
8436 _v = CanConvertToSearchMonitor(argv[3]);
8437 if (_v == 0) PyErr_Clear();
8438 }
8439 if (_v) {
8440 {
8441 _v = CanConvertToSearchMonitor(argv[4]);
8442 if (_v == 0) PyErr_Clear();
8443 }
8444 if (_v) {
8445 {
8446 _v = CanConvertToSearchMonitor(argv[5]);
8447 if (_v == 0) PyErr_Clear();
8448 }
8449 if (_v) {
8450 return _wrap_Solver_NewSearch__SWIG_5(self, args);
8451 }
8452 }
8453 }
8454 }
8455 }
8456 }
8457 }
8458
8459fail:
8460 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_NewSearch'.\n"
8461 " Possible C/C++ prototypes are:\n"
8462 " operations_research::Solver::NewSearch(operations_research::DecisionBuilder *const,std::vector< operations_research::SearchMonitor * > const &)\n"
8463 " operations_research::Solver::NewSearch(operations_research::DecisionBuilder *const)\n"
8464 " operations_research::Solver::NewSearch(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const)\n"
8465 " operations_research::Solver::NewSearch(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n"
8466 " operations_research::Solver::NewSearch(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n"
8467 " operations_research::Solver::NewSearch(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n");
8468 return 0;
8469}
8470
8471
8472SWIGINTERN PyObject *_wrap_Solver_NextSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8473 PyObject *resultobj = 0;
8475 void *argp1 = 0 ;
8476 int res1 = 0 ;
8477 PyObject * obj0 = 0 ;
8478 bool result;
8479
8480 if (!PyArg_UnpackTuple(args, "Solver_NextSolution", 1, 1, &obj0)) SWIG_fail;
8481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
8482 if (!SWIG_IsOK(res1)) {
8483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NextSolution" "', argument " "1"" of type '" "operations_research::Solver *""'");
8484 }
8485 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8486 {
8487 try {
8488 result = (bool)(arg1)->NextSolution();
8489 }
8490 catch (Swig::DirectorException &e) {
8491 SWIG_fail;
8492 }
8493 }
8494 resultobj = SWIG_From_bool(static_cast< bool >(result));
8495 return resultobj;
8496fail:
8497 return NULL;
8498}
8499
8500
8501SWIGINTERN PyObject *_wrap_Solver_RestartSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8502 PyObject *resultobj = 0;
8504 void *argp1 = 0 ;
8505 int res1 = 0 ;
8506 PyObject * obj0 = 0 ;
8507
8508 if (!PyArg_UnpackTuple(args, "Solver_RestartSearch", 1, 1, &obj0)) SWIG_fail;
8509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
8510 if (!SWIG_IsOK(res1)) {
8511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_RestartSearch" "', argument " "1"" of type '" "operations_research::Solver *""'");
8512 }
8513 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8514 {
8515 try {
8516 (arg1)->RestartSearch();
8517 }
8518 catch (Swig::DirectorException &e) {
8519 SWIG_fail;
8520 }
8521 }
8522 resultobj = SWIG_Py_Void();
8523 return resultobj;
8524fail:
8525 return NULL;
8526}
8527
8528
8529SWIGINTERN PyObject *_wrap_Solver_EndSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8530 PyObject *resultobj = 0;
8532 void *argp1 = 0 ;
8533 int res1 = 0 ;
8534 PyObject * obj0 = 0 ;
8535
8536 if (!PyArg_UnpackTuple(args, "Solver_EndSearch", 1, 1, &obj0)) SWIG_fail;
8537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
8538 if (!SWIG_IsOK(res1)) {
8539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_EndSearch" "', argument " "1"" of type '" "operations_research::Solver *""'");
8540 }
8541 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8542 {
8543 try {
8544 (arg1)->EndSearch();
8545 }
8546 catch (Swig::DirectorException &e) {
8547 SWIG_fail;
8548 }
8549 }
8550 resultobj = SWIG_Py_Void();
8551 return resultobj;
8552fail:
8553 return NULL;
8554}
8555
8556
8557SWIGINTERN PyObject *_wrap_Solver_SolveAndCommit__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8558 PyObject *resultobj = 0;
8561 std::vector< operations_research::SearchMonitor * > *arg3 = 0 ;
8562 void *argp1 = 0 ;
8563 int res1 = 0 ;
8564 std::vector< operations_research::SearchMonitor * > temp3 ;
8565 PyObject * obj0 = 0 ;
8566 PyObject * obj1 = 0 ;
8567 PyObject * obj2 = 0 ;
8568 bool result;
8569
8570 if (!PyArg_UnpackTuple(args, "Solver_SolveAndCommit", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
8571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
8572 if (!SWIG_IsOK(res1)) {
8573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SolveAndCommit" "', argument " "1"" of type '" "operations_research::Solver *""'");
8574 }
8575 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8576 {
8577 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
8578 }
8579 {
8580 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::SearchMonitor*>)) {
8581 if (!PyErr_Occurred())
8582 SWIG_Error(SWIG_TypeError, "sequence(operations_research::SearchMonitor*) expected");
8583 return NULL;
8584 }
8585 arg3 = &temp3;
8586 }
8587 {
8588 try {
8589 result = (bool)(arg1)->SolveAndCommit(arg2,(std::vector< operations_research::SearchMonitor * > const &)*arg3);
8590 }
8591 catch (Swig::DirectorException &e) {
8592 SWIG_fail;
8593 }
8594 }
8595 resultobj = SWIG_From_bool(static_cast< bool >(result));
8596 return resultobj;
8597fail:
8598 return NULL;
8599}
8600
8601
8602SWIGINTERN PyObject *_wrap_Solver_SolveAndCommit__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8603 PyObject *resultobj = 0;
8606 void *argp1 = 0 ;
8607 int res1 = 0 ;
8608 PyObject * obj0 = 0 ;
8609 PyObject * obj1 = 0 ;
8610 bool result;
8611
8612 if (!PyArg_UnpackTuple(args, "Solver_SolveAndCommit", 2, 2, &obj0, &obj1)) SWIG_fail;
8613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
8614 if (!SWIG_IsOK(res1)) {
8615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SolveAndCommit" "', argument " "1"" of type '" "operations_research::Solver *""'");
8616 }
8617 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8618 {
8619 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
8620 }
8621 {
8622 try {
8623 result = (bool)(arg1)->SolveAndCommit(arg2);
8624 }
8625 catch (Swig::DirectorException &e) {
8626 SWIG_fail;
8627 }
8628 }
8629 resultobj = SWIG_From_bool(static_cast< bool >(result));
8630 return resultobj;
8631fail:
8632 return NULL;
8633}
8634
8635
8636SWIGINTERN PyObject *_wrap_Solver_SolveAndCommit__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8637 PyObject *resultobj = 0;
8641 void *argp1 = 0 ;
8642 int res1 = 0 ;
8643 PyObject * obj0 = 0 ;
8644 PyObject * obj1 = 0 ;
8645 PyObject * obj2 = 0 ;
8646 bool result;
8647
8648 if (!PyArg_UnpackTuple(args, "Solver_SolveAndCommit", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
8649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
8650 if (!SWIG_IsOK(res1)) {
8651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SolveAndCommit" "', argument " "1"" of type '" "operations_research::Solver *""'");
8652 }
8653 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8654 {
8655 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
8656 }
8657 {
8658 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
8659 }
8660 {
8661 try {
8662 result = (bool)(arg1)->SolveAndCommit(arg2,arg3);
8663 }
8664 catch (Swig::DirectorException &e) {
8665 SWIG_fail;
8666 }
8667 }
8668 resultobj = SWIG_From_bool(static_cast< bool >(result));
8669 return resultobj;
8670fail:
8671 return NULL;
8672}
8673
8674
8675SWIGINTERN PyObject *_wrap_Solver_SolveAndCommit__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8676 PyObject *resultobj = 0;
8681 void *argp1 = 0 ;
8682 int res1 = 0 ;
8683 PyObject * obj0 = 0 ;
8684 PyObject * obj1 = 0 ;
8685 PyObject * obj2 = 0 ;
8686 PyObject * obj3 = 0 ;
8687 bool result;
8688
8689 if (!PyArg_UnpackTuple(args, "Solver_SolveAndCommit", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
8690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
8691 if (!SWIG_IsOK(res1)) {
8692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SolveAndCommit" "', argument " "1"" of type '" "operations_research::Solver *""'");
8693 }
8694 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8695 {
8696 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
8697 }
8698 {
8699 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
8700 }
8701 {
8702 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
8703 }
8704 {
8705 try {
8706 result = (bool)(arg1)->SolveAndCommit(arg2,arg3,arg4);
8707 }
8708 catch (Swig::DirectorException &e) {
8709 SWIG_fail;
8710 }
8711 }
8712 resultobj = SWIG_From_bool(static_cast< bool >(result));
8713 return resultobj;
8714fail:
8715 return NULL;
8716}
8717
8718
8719SWIGINTERN PyObject *_wrap_Solver_SolveAndCommit__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8720 PyObject *resultobj = 0;
8726 void *argp1 = 0 ;
8727 int res1 = 0 ;
8728 PyObject * obj0 = 0 ;
8729 PyObject * obj1 = 0 ;
8730 PyObject * obj2 = 0 ;
8731 PyObject * obj3 = 0 ;
8732 PyObject * obj4 = 0 ;
8733 bool result;
8734
8735 if (!PyArg_UnpackTuple(args, "Solver_SolveAndCommit", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
8736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
8737 if (!SWIG_IsOK(res1)) {
8738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SolveAndCommit" "', argument " "1"" of type '" "operations_research::Solver *""'");
8739 }
8740 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8741 {
8742 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
8743 }
8744 {
8745 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
8746 }
8747 {
8748 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
8749 }
8750 {
8751 if (!PyObjAs(obj4, &arg5)) SWIG_fail;
8752 }
8753 {
8754 try {
8755 result = (bool)(arg1)->SolveAndCommit(arg2,arg3,arg4,arg5);
8756 }
8757 catch (Swig::DirectorException &e) {
8758 SWIG_fail;
8759 }
8760 }
8761 resultobj = SWIG_From_bool(static_cast< bool >(result));
8762 return resultobj;
8763fail:
8764 return NULL;
8765}
8766
8767
8768SWIGINTERN PyObject *_wrap_Solver_SolveAndCommit(PyObject *self, PyObject *args) {
8769 Py_ssize_t argc;
8770 PyObject *argv[6] = {
8771 0
8772 };
8773 Py_ssize_t ii;
8774
8775 if (!PyTuple_Check(args)) SWIG_fail;
8776 argc = PyObject_Length(args);
8777 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
8778 argv[ii] = PyTuple_GET_ITEM(args,ii);
8779 }
8780 if (argc == 2) {
8781 int _v;
8782 void *vptr = 0;
8783 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
8784 _v = SWIG_CheckState(res);
8785 if (_v) {
8786 {
8787 _v = CanConvertToDecisionBuilder(argv[1]);
8788 if (_v == 0) PyErr_Clear();
8789 }
8790 if (_v) {
8791 return _wrap_Solver_SolveAndCommit__SWIG_1(self, args);
8792 }
8793 }
8794 }
8795 if (argc == 3) {
8796 int _v;
8797 void *vptr = 0;
8798 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
8799 _v = SWIG_CheckState(res);
8800 if (_v) {
8801 {
8802 _v = CanConvertToDecisionBuilder(argv[1]);
8803 if (_v == 0) PyErr_Clear();
8804 }
8805 if (_v) {
8806 {
8807 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
8808 _v = 0;
8809 } else {
8810 const bool is_tuple = PyTuple_Check(argv[2]);
8811 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
8812 size_t i = 0;
8813 while (i < size && CanConvertToSearchMonitor(is_tuple ? PyTuple_GetItem(argv[2], i)
8814 :PyList_GetItem(argv[2], i))) {
8815 ++i;
8816 }
8817 _v = i == size;
8818 }
8819 }
8820 if (_v) {
8821 return _wrap_Solver_SolveAndCommit__SWIG_0(self, args);
8822 }
8823 }
8824 }
8825 }
8826 if (argc == 3) {
8827 int _v;
8828 void *vptr = 0;
8829 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
8830 _v = SWIG_CheckState(res);
8831 if (_v) {
8832 {
8833 _v = CanConvertToDecisionBuilder(argv[1]);
8834 if (_v == 0) PyErr_Clear();
8835 }
8836 if (_v) {
8837 {
8838 _v = CanConvertToSearchMonitor(argv[2]);
8839 if (_v == 0) PyErr_Clear();
8840 }
8841 if (_v) {
8842 return _wrap_Solver_SolveAndCommit__SWIG_2(self, args);
8843 }
8844 }
8845 }
8846 }
8847 if (argc == 4) {
8848 int _v;
8849 void *vptr = 0;
8850 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
8851 _v = SWIG_CheckState(res);
8852 if (_v) {
8853 {
8854 _v = CanConvertToDecisionBuilder(argv[1]);
8855 if (_v == 0) PyErr_Clear();
8856 }
8857 if (_v) {
8858 {
8859 _v = CanConvertToSearchMonitor(argv[2]);
8860 if (_v == 0) PyErr_Clear();
8861 }
8862 if (_v) {
8863 {
8864 _v = CanConvertToSearchMonitor(argv[3]);
8865 if (_v == 0) PyErr_Clear();
8866 }
8867 if (_v) {
8868 return _wrap_Solver_SolveAndCommit__SWIG_3(self, args);
8869 }
8870 }
8871 }
8872 }
8873 }
8874 if (argc == 5) {
8875 int _v;
8876 void *vptr = 0;
8877 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
8878 _v = SWIG_CheckState(res);
8879 if (_v) {
8880 {
8881 _v = CanConvertToDecisionBuilder(argv[1]);
8882 if (_v == 0) PyErr_Clear();
8883 }
8884 if (_v) {
8885 {
8886 _v = CanConvertToSearchMonitor(argv[2]);
8887 if (_v == 0) PyErr_Clear();
8888 }
8889 if (_v) {
8890 {
8891 _v = CanConvertToSearchMonitor(argv[3]);
8892 if (_v == 0) PyErr_Clear();
8893 }
8894 if (_v) {
8895 {
8896 _v = CanConvertToSearchMonitor(argv[4]);
8897 if (_v == 0) PyErr_Clear();
8898 }
8899 if (_v) {
8900 return _wrap_Solver_SolveAndCommit__SWIG_4(self, args);
8901 }
8902 }
8903 }
8904 }
8905 }
8906 }
8907
8908fail:
8909 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_SolveAndCommit'.\n"
8910 " Possible C/C++ prototypes are:\n"
8911 " operations_research::Solver::SolveAndCommit(operations_research::DecisionBuilder *const,std::vector< operations_research::SearchMonitor * > const &)\n"
8912 " operations_research::Solver::SolveAndCommit(operations_research::DecisionBuilder *const)\n"
8913 " operations_research::Solver::SolveAndCommit(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const)\n"
8914 " operations_research::Solver::SolveAndCommit(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n"
8915 " operations_research::Solver::SolveAndCommit(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n");
8916 return 0;
8917}
8918
8919
8920SWIGINTERN PyObject *_wrap_Solver_CheckAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8921 PyObject *resultobj = 0;
8924 void *argp1 = 0 ;
8925 int res1 = 0 ;
8926 void *argp2 = 0 ;
8927 int res2 = 0 ;
8928 PyObject * obj0 = 0 ;
8929 PyObject * obj1 = 0 ;
8930 bool result;
8931
8932 if (!PyArg_UnpackTuple(args, "Solver_CheckAssignment", 2, 2, &obj0, &obj1)) SWIG_fail;
8933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
8934 if (!SWIG_IsOK(res1)) {
8935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_CheckAssignment" "', argument " "1"" of type '" "operations_research::Solver *""'");
8936 }
8937 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8939 if (!SWIG_IsOK(res2)) {
8940 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_CheckAssignment" "', argument " "2"" of type '" "operations_research::Assignment *const""'");
8941 }
8942 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
8943 {
8944 try {
8945 result = (bool)(arg1)->CheckAssignment(arg2);
8946 }
8947 catch (Swig::DirectorException &e) {
8948 SWIG_fail;
8949 }
8950 }
8951 resultobj = SWIG_From_bool(static_cast< bool >(result));
8952 return resultobj;
8953fail:
8954 return NULL;
8955}
8956
8957
8958SWIGINTERN PyObject *_wrap_Solver_CheckConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8959 PyObject *resultobj = 0;
8962 void *argp1 = 0 ;
8963 int res1 = 0 ;
8964 void *argp2 = 0 ;
8965 int res2 = 0 ;
8966 PyObject * obj0 = 0 ;
8967 PyObject * obj1 = 0 ;
8968 bool result;
8969
8970 if (!PyArg_UnpackTuple(args, "Solver_CheckConstraint", 2, 2, &obj0, &obj1)) SWIG_fail;
8971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
8972 if (!SWIG_IsOK(res1)) {
8973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_CheckConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
8974 }
8975 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8977 if (!SWIG_IsOK(res2)) {
8978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_CheckConstraint" "', argument " "2"" of type '" "operations_research::Constraint *const""'");
8979 }
8980 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
8981 {
8982 try {
8983 result = (bool)(arg1)->CheckConstraint(arg2);
8984 }
8985 catch (Swig::DirectorException &e) {
8986 SWIG_fail;
8987 }
8988 }
8989 resultobj = SWIG_From_bool(static_cast< bool >(result));
8990 return resultobj;
8991fail:
8992 return NULL;
8993}
8994
8995
8996SWIGINTERN PyObject *_wrap_Solver_Fail(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8997 PyObject *resultobj = 0;
8999 void *argp1 = 0 ;
9000 int res1 = 0 ;
9001 PyObject * obj0 = 0 ;
9002
9003 if (!PyArg_UnpackTuple(args, "Solver_Fail", 1, 1, &obj0)) SWIG_fail;
9004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9005 if (!SWIG_IsOK(res1)) {
9006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Fail" "', argument " "1"" of type '" "operations_research::Solver *""'");
9007 }
9008 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9009 {
9010 operations_research::Solver* const solver = arg1;
9011 FailureProtect protect;
9012 solver->set_fail_intercept([&protect]() {
9013 protect.JumpBack();
9014 });
9015 if (setjmp(protect.exception_buffer) == 0) {
9016 (arg1)->Fail();
9017 solver->clear_fail_intercept();
9018 } else {
9019 solver->clear_fail_intercept();
9020 // IMPORTANT: the type and message of the exception raised matter,
9021 // because they are caught by the python overrides of some CP classes.
9022 // See the occurrences of the "PyExc_Exception" string below.
9023 PyErr_SetString(PyExc_Exception, "CP Solver fail");
9024 SWIG_fail;
9025 }
9026 }
9027 resultobj = SWIG_Py_Void();
9028 return resultobj;
9029fail:
9030 return NULL;
9031}
9032
9033
9034SWIGINTERN PyObject *_wrap_Solver_MemoryUsage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9035 PyObject *resultobj = 0;
9036 int64_t result;
9037
9038 if (!PyArg_UnpackTuple(args, "Solver_MemoryUsage", 0, 0)) SWIG_fail;
9039 {
9040 try {
9041 result = (int64_t)operations_research::Solver::MemoryUsage();
9042 }
9043 catch (Swig::DirectorException &e) {
9044 SWIG_fail;
9045 }
9046 }
9047 resultobj = SWIG_From_long(static_cast< long >(result));
9048 return resultobj;
9049fail:
9050 return NULL;
9051}
9052
9053
9054SWIGINTERN PyObject *_wrap_Solver_WallTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9055 PyObject *resultobj = 0;
9057 void *argp1 = 0 ;
9058 int res1 = 0 ;
9059 PyObject * obj0 = 0 ;
9060 int64_t result;
9061
9062 if (!PyArg_UnpackTuple(args, "Solver_WallTime", 1, 1, &obj0)) SWIG_fail;
9063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9064 if (!SWIG_IsOK(res1)) {
9065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_WallTime" "', argument " "1"" of type '" "operations_research::Solver const *""'");
9066 }
9067 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9068 {
9069 try {
9070 result = (int64_t)((operations_research::Solver const *)arg1)->wall_time();
9071 }
9072 catch (Swig::DirectorException &e) {
9073 SWIG_fail;
9074 }
9075 }
9076 resultobj = SWIG_From_long(static_cast< long >(result));
9077 return resultobj;
9078fail:
9079 return NULL;
9080}
9081
9082
9083SWIGINTERN PyObject *_wrap_Solver_Branches(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9084 PyObject *resultobj = 0;
9086 void *argp1 = 0 ;
9087 int res1 = 0 ;
9088 PyObject * obj0 = 0 ;
9089 int64_t result;
9090
9091 if (!PyArg_UnpackTuple(args, "Solver_Branches", 1, 1, &obj0)) SWIG_fail;
9092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9093 if (!SWIG_IsOK(res1)) {
9094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Branches" "', argument " "1"" of type '" "operations_research::Solver const *""'");
9095 }
9096 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9097 {
9098 try {
9099 result = (int64_t)((operations_research::Solver const *)arg1)->branches();
9100 }
9101 catch (Swig::DirectorException &e) {
9102 SWIG_fail;
9103 }
9104 }
9105 resultobj = SWIG_From_long(static_cast< long >(result));
9106 return resultobj;
9107fail:
9108 return NULL;
9109}
9110
9111
9112SWIGINTERN PyObject *_wrap_Solver_Solutions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9113 PyObject *resultobj = 0;
9115 void *argp1 = 0 ;
9116 int res1 = 0 ;
9117 PyObject * obj0 = 0 ;
9118 int64_t result;
9119
9120 if (!PyArg_UnpackTuple(args, "Solver_Solutions", 1, 1, &obj0)) SWIG_fail;
9121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9122 if (!SWIG_IsOK(res1)) {
9123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Solutions" "', argument " "1"" of type '" "operations_research::Solver const *""'");
9124 }
9125 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9126 {
9127 try {
9128 result = (int64_t)((operations_research::Solver const *)arg1)->solutions();
9129 }
9130 catch (Swig::DirectorException &e) {
9131 SWIG_fail;
9132 }
9133 }
9134 resultobj = SWIG_From_long(static_cast< long >(result));
9135 return resultobj;
9136fail:
9137 return NULL;
9138}
9139
9140
9141SWIGINTERN PyObject *_wrap_Solver_Failures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9142 PyObject *resultobj = 0;
9144 void *argp1 = 0 ;
9145 int res1 = 0 ;
9146 PyObject * obj0 = 0 ;
9147 int64_t result;
9148
9149 if (!PyArg_UnpackTuple(args, "Solver_Failures", 1, 1, &obj0)) SWIG_fail;
9150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9151 if (!SWIG_IsOK(res1)) {
9152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Failures" "', argument " "1"" of type '" "operations_research::Solver const *""'");
9153 }
9154 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9155 {
9156 try {
9157 result = (int64_t)((operations_research::Solver const *)arg1)->failures();
9158 }
9159 catch (Swig::DirectorException &e) {
9160 SWIG_fail;
9161 }
9162 }
9163 resultobj = SWIG_From_long(static_cast< long >(result));
9164 return resultobj;
9165fail:
9166 return NULL;
9167}
9168
9169
9170SWIGINTERN PyObject *_wrap_Solver_AcceptedNeighbors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9171 PyObject *resultobj = 0;
9173 void *argp1 = 0 ;
9174 int res1 = 0 ;
9175 PyObject * obj0 = 0 ;
9176 int64_t result;
9177
9178 if (!PyArg_UnpackTuple(args, "Solver_AcceptedNeighbors", 1, 1, &obj0)) SWIG_fail;
9179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9180 if (!SWIG_IsOK(res1)) {
9181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_AcceptedNeighbors" "', argument " "1"" of type '" "operations_research::Solver const *""'");
9182 }
9183 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9184 {
9185 try {
9186 result = (int64_t)((operations_research::Solver const *)arg1)->accepted_neighbors();
9187 }
9188 catch (Swig::DirectorException &e) {
9189 SWIG_fail;
9190 }
9191 }
9192 resultobj = SWIG_From_long(static_cast< long >(result));
9193 return resultobj;
9194fail:
9195 return NULL;
9196}
9197
9198
9199SWIGINTERN PyObject *_wrap_Solver_Stamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9200 PyObject *resultobj = 0;
9202 void *argp1 = 0 ;
9203 int res1 = 0 ;
9204 PyObject * obj0 = 0 ;
9205 uint64_t result;
9206
9207 if (!PyArg_UnpackTuple(args, "Solver_Stamp", 1, 1, &obj0)) SWIG_fail;
9208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9209 if (!SWIG_IsOK(res1)) {
9210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Stamp" "', argument " "1"" of type '" "operations_research::Solver const *""'");
9211 }
9212 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9213 {
9214 try {
9215 result = (uint64_t)((operations_research::Solver const *)arg1)->stamp();
9216 }
9217 catch (Swig::DirectorException &e) {
9218 SWIG_fail;
9219 }
9220 }
9221 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9222 return resultobj;
9223fail:
9224 return NULL;
9225}
9226
9227
9228SWIGINTERN PyObject *_wrap_Solver_FailStamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9229 PyObject *resultobj = 0;
9231 void *argp1 = 0 ;
9232 int res1 = 0 ;
9233 PyObject * obj0 = 0 ;
9234 uint64_t result;
9235
9236 if (!PyArg_UnpackTuple(args, "Solver_FailStamp", 1, 1, &obj0)) SWIG_fail;
9237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9238 if (!SWIG_IsOK(res1)) {
9239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_FailStamp" "', argument " "1"" of type '" "operations_research::Solver const *""'");
9240 }
9241 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9242 {
9243 try {
9244 result = (uint64_t)((operations_research::Solver const *)arg1)->fail_stamp();
9245 }
9246 catch (Swig::DirectorException &e) {
9247 SWIG_fail;
9248 }
9249 }
9250 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
9251 return resultobj;
9252fail:
9253 return NULL;
9254}
9255
9256
9257SWIGINTERN PyObject *_wrap_Solver_IntVar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9258 PyObject *resultobj = 0;
9260 int64_t arg2 ;
9261 int64_t arg3 ;
9262 std::string *arg4 = 0 ;
9263 void *argp1 = 0 ;
9264 int res1 = 0 ;
9265 long val2 ;
9266 int ecode2 = 0 ;
9267 long val3 ;
9268 int ecode3 = 0 ;
9269 int res4 = SWIG_OLDOBJ ;
9270 PyObject * obj0 = 0 ;
9271 PyObject * obj1 = 0 ;
9272 PyObject * obj2 = 0 ;
9273 PyObject * obj3 = 0 ;
9274 operations_research::IntVar *result = 0 ;
9275
9276 if (!PyArg_UnpackTuple(args, "Solver_IntVar", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
9277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9278 if (!SWIG_IsOK(res1)) {
9279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IntVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
9280 }
9281 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9282 ecode2 = SWIG_AsVal_long(obj1, &val2);
9283 if (!SWIG_IsOK(ecode2)) {
9284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_IntVar" "', argument " "2"" of type '" "int64_t""'");
9285 }
9286 arg2 = static_cast< int64_t >(val2);
9287 ecode3 = SWIG_AsVal_long(obj2, &val3);
9288 if (!SWIG_IsOK(ecode3)) {
9289 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IntVar" "', argument " "3"" of type '" "int64_t""'");
9290 }
9291 arg3 = static_cast< int64_t >(val3);
9292 {
9293 std::string *ptr = (std::string *)0;
9294 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
9295 if (!SWIG_IsOK(res4)) {
9296 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Solver_IntVar" "', argument " "4"" of type '" "std::string const &""'");
9297 }
9298 if (!ptr) {
9299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_IntVar" "', argument " "4"" of type '" "std::string const &""'");
9300 }
9301 arg4 = ptr;
9302 }
9303 {
9304 try {
9305 result = (operations_research::IntVar *)(arg1)->MakeIntVar(arg2,arg3,(std::string const &)*arg4);
9306 }
9307 catch (Swig::DirectorException &e) {
9308 SWIG_fail;
9309 }
9310 }
9312 if (SWIG_IsNewObj(res4)) delete arg4;
9313 return resultobj;
9314fail:
9315 if (SWIG_IsNewObj(res4)) delete arg4;
9316 return NULL;
9317}
9318
9319
9320SWIGINTERN PyObject *_wrap_Solver_IntVar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9321 PyObject *resultobj = 0;
9323 std::vector< int64_t > *arg2 = 0 ;
9324 std::string *arg3 = 0 ;
9325 void *argp1 = 0 ;
9326 int res1 = 0 ;
9327 std::vector< int64_t > temp2 ;
9328 int res3 = SWIG_OLDOBJ ;
9329 PyObject * obj0 = 0 ;
9330 PyObject * obj1 = 0 ;
9331 PyObject * obj2 = 0 ;
9332 operations_research::IntVar *result = 0 ;
9333
9334 if (!PyArg_UnpackTuple(args, "Solver_IntVar", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
9335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9336 if (!SWIG_IsOK(res1)) {
9337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IntVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
9338 }
9339 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9340 {
9341 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
9342 if (!PyErr_Occurred())
9343 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
9344 return NULL;
9345 }
9346 arg2 = &temp2;
9347 }
9348 {
9349 std::string *ptr = (std::string *)0;
9350 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
9351 if (!SWIG_IsOK(res3)) {
9352 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_IntVar" "', argument " "3"" of type '" "std::string const &""'");
9353 }
9354 if (!ptr) {
9355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_IntVar" "', argument " "3"" of type '" "std::string const &""'");
9356 }
9357 arg3 = ptr;
9358 }
9359 {
9360 try {
9361 result = (operations_research::IntVar *)(arg1)->MakeIntVar((std::vector< int64_t > const &)*arg2,(std::string const &)*arg3);
9362 }
9363 catch (Swig::DirectorException &e) {
9364 SWIG_fail;
9365 }
9366 }
9368 if (SWIG_IsNewObj(res3)) delete arg3;
9369 return resultobj;
9370fail:
9371 if (SWIG_IsNewObj(res3)) delete arg3;
9372 return NULL;
9373}
9374
9375
9376SWIGINTERN PyObject *_wrap_Solver_IntVar__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9377 PyObject *resultobj = 0;
9379 std::vector< int > *arg2 = 0 ;
9380 std::string *arg3 = 0 ;
9381 void *argp1 = 0 ;
9382 int res1 = 0 ;
9383 std::vector< int > temp2 ;
9384 int res3 = SWIG_OLDOBJ ;
9385 PyObject * obj0 = 0 ;
9386 PyObject * obj1 = 0 ;
9387 PyObject * obj2 = 0 ;
9388 operations_research::IntVar *result = 0 ;
9389
9390 if (!PyArg_UnpackTuple(args, "Solver_IntVar", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
9391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9392 if (!SWIG_IsOK(res1)) {
9393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IntVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
9394 }
9395 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9396 {
9397 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
9398 if (!PyErr_Occurred())
9399 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
9400 return NULL;
9401 }
9402 arg2 = &temp2;
9403 }
9404 {
9405 std::string *ptr = (std::string *)0;
9406 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
9407 if (!SWIG_IsOK(res3)) {
9408 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_IntVar" "', argument " "3"" of type '" "std::string const &""'");
9409 }
9410 if (!ptr) {
9411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_IntVar" "', argument " "3"" of type '" "std::string const &""'");
9412 }
9413 arg3 = ptr;
9414 }
9415 {
9416 try {
9417 result = (operations_research::IntVar *)(arg1)->MakeIntVar((std::vector< int > const &)*arg2,(std::string const &)*arg3);
9418 }
9419 catch (Swig::DirectorException &e) {
9420 SWIG_fail;
9421 }
9422 }
9424 if (SWIG_IsNewObj(res3)) delete arg3;
9425 return resultobj;
9426fail:
9427 if (SWIG_IsNewObj(res3)) delete arg3;
9428 return NULL;
9429}
9430
9431
9432SWIGINTERN PyObject *_wrap_Solver_IntVar__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9433 PyObject *resultobj = 0;
9435 int64_t arg2 ;
9436 int64_t arg3 ;
9437 void *argp1 = 0 ;
9438 int res1 = 0 ;
9439 long val2 ;
9440 int ecode2 = 0 ;
9441 long val3 ;
9442 int ecode3 = 0 ;
9443 PyObject * obj0 = 0 ;
9444 PyObject * obj1 = 0 ;
9445 PyObject * obj2 = 0 ;
9446 operations_research::IntVar *result = 0 ;
9447
9448 if (!PyArg_UnpackTuple(args, "Solver_IntVar", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
9449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9450 if (!SWIG_IsOK(res1)) {
9451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IntVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
9452 }
9453 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9454 ecode2 = SWIG_AsVal_long(obj1, &val2);
9455 if (!SWIG_IsOK(ecode2)) {
9456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_IntVar" "', argument " "2"" of type '" "int64_t""'");
9457 }
9458 arg2 = static_cast< int64_t >(val2);
9459 ecode3 = SWIG_AsVal_long(obj2, &val3);
9460 if (!SWIG_IsOK(ecode3)) {
9461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IntVar" "', argument " "3"" of type '" "int64_t""'");
9462 }
9463 arg3 = static_cast< int64_t >(val3);
9464 {
9465 try {
9466 result = (operations_research::IntVar *)(arg1)->MakeIntVar(arg2,arg3);
9467 }
9468 catch (Swig::DirectorException &e) {
9469 SWIG_fail;
9470 }
9471 }
9473 return resultobj;
9474fail:
9475 return NULL;
9476}
9477
9478
9479SWIGINTERN PyObject *_wrap_Solver_IntVar__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9480 PyObject *resultobj = 0;
9482 std::vector< int64_t > *arg2 = 0 ;
9483 void *argp1 = 0 ;
9484 int res1 = 0 ;
9485 std::vector< int64_t > temp2 ;
9486 PyObject * obj0 = 0 ;
9487 PyObject * obj1 = 0 ;
9488 operations_research::IntVar *result = 0 ;
9489
9490 if (!PyArg_UnpackTuple(args, "Solver_IntVar", 2, 2, &obj0, &obj1)) SWIG_fail;
9491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9492 if (!SWIG_IsOK(res1)) {
9493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IntVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
9494 }
9495 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9496 {
9497 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
9498 if (!PyErr_Occurred())
9499 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
9500 return NULL;
9501 }
9502 arg2 = &temp2;
9503 }
9504 {
9505 try {
9506 result = (operations_research::IntVar *)(arg1)->MakeIntVar((std::vector< int64_t > const &)*arg2);
9507 }
9508 catch (Swig::DirectorException &e) {
9509 SWIG_fail;
9510 }
9511 }
9513 return resultobj;
9514fail:
9515 return NULL;
9516}
9517
9518
9519SWIGINTERN PyObject *_wrap_Solver_IntVar__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9520 PyObject *resultobj = 0;
9522 std::vector< int > *arg2 = 0 ;
9523 void *argp1 = 0 ;
9524 int res1 = 0 ;
9525 std::vector< int > temp2 ;
9526 PyObject * obj0 = 0 ;
9527 PyObject * obj1 = 0 ;
9528 operations_research::IntVar *result = 0 ;
9529
9530 if (!PyArg_UnpackTuple(args, "Solver_IntVar", 2, 2, &obj0, &obj1)) SWIG_fail;
9531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9532 if (!SWIG_IsOK(res1)) {
9533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IntVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
9534 }
9535 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9536 {
9537 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
9538 if (!PyErr_Occurred())
9539 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
9540 return NULL;
9541 }
9542 arg2 = &temp2;
9543 }
9544 {
9545 try {
9546 result = (operations_research::IntVar *)(arg1)->MakeIntVar((std::vector< int > const &)*arg2);
9547 }
9548 catch (Swig::DirectorException &e) {
9549 SWIG_fail;
9550 }
9551 }
9553 return resultobj;
9554fail:
9555 return NULL;
9556}
9557
9558
9559SWIGINTERN PyObject *_wrap_Solver_IntVar(PyObject *self, PyObject *args) {
9560 Py_ssize_t argc;
9561 PyObject *argv[5] = {
9562 0
9563 };
9564 Py_ssize_t ii;
9565
9566 if (!PyTuple_Check(args)) SWIG_fail;
9567 argc = PyObject_Length(args);
9568 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
9569 argv[ii] = PyTuple_GET_ITEM(args,ii);
9570 }
9571 if (argc == 2) {
9572 int _v;
9573 void *vptr = 0;
9574 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
9575 _v = SWIG_CheckState(res);
9576 if (_v) {
9577 {
9578 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
9579 _v = 0;
9580 } else {
9581 const bool is_tuple = PyTuple_Check(argv[1]);
9582 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
9583 size_t i = 0;
9584 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
9585 :PyList_GetItem(argv[1], i))) {
9586 ++i;
9587 }
9588 _v = i == size;
9589 }
9590 }
9591 if (_v) {
9592 return _wrap_Solver_IntVar__SWIG_4(self, args);
9593 }
9594 }
9595 }
9596 if (argc == 2) {
9597 int _v;
9598 void *vptr = 0;
9599 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
9600 _v = SWIG_CheckState(res);
9601 if (_v) {
9602 {
9603 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
9604 _v = 0;
9605 } else {
9606 const bool is_tuple = PyTuple_Check(argv[1]);
9607 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
9608 size_t i = 0;
9609 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
9610 :PyList_GetItem(argv[1], i))) {
9611 ++i;
9612 }
9613 _v = i == size;
9614 }
9615 }
9616 if (_v) {
9617 return _wrap_Solver_IntVar__SWIG_5(self, args);
9618 }
9619 }
9620 }
9621 if (argc == 3) {
9622 int _v;
9623 void *vptr = 0;
9624 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
9625 _v = SWIG_CheckState(res);
9626 if (_v) {
9627 {
9628 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
9629 _v = 0;
9630 } else {
9631 const bool is_tuple = PyTuple_Check(argv[1]);
9632 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
9633 size_t i = 0;
9634 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
9635 :PyList_GetItem(argv[1], i))) {
9636 ++i;
9637 }
9638 _v = i == size;
9639 }
9640 }
9641 if (_v) {
9642 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
9643 _v = SWIG_CheckState(res);
9644 if (_v) {
9645 return _wrap_Solver_IntVar__SWIG_1(self, args);
9646 }
9647 }
9648 }
9649 }
9650 if (argc == 3) {
9651 int _v;
9652 void *vptr = 0;
9653 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
9654 _v = SWIG_CheckState(res);
9655 if (_v) {
9656 {
9657 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
9658 _v = 0;
9659 } else {
9660 const bool is_tuple = PyTuple_Check(argv[1]);
9661 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
9662 size_t i = 0;
9663 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
9664 :PyList_GetItem(argv[1], i))) {
9665 ++i;
9666 }
9667 _v = i == size;
9668 }
9669 }
9670 if (_v) {
9671 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
9672 _v = SWIG_CheckState(res);
9673 if (_v) {
9674 return _wrap_Solver_IntVar__SWIG_2(self, args);
9675 }
9676 }
9677 }
9678 }
9679 if (argc == 3) {
9680 int _v;
9681 void *vptr = 0;
9682 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
9683 _v = SWIG_CheckState(res);
9684 if (_v) {
9685 {
9686 int res = SWIG_AsVal_long(argv[1], NULL);
9687 _v = SWIG_CheckState(res);
9688 }
9689 if (_v) {
9690 {
9691 int res = SWIG_AsVal_long(argv[2], NULL);
9692 _v = SWIG_CheckState(res);
9693 }
9694 if (_v) {
9695 return _wrap_Solver_IntVar__SWIG_3(self, args);
9696 }
9697 }
9698 }
9699 }
9700 if (argc == 4) {
9701 int _v;
9702 void *vptr = 0;
9703 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
9704 _v = SWIG_CheckState(res);
9705 if (_v) {
9706 {
9707 int res = SWIG_AsVal_long(argv[1], NULL);
9708 _v = SWIG_CheckState(res);
9709 }
9710 if (_v) {
9711 {
9712 int res = SWIG_AsVal_long(argv[2], NULL);
9713 _v = SWIG_CheckState(res);
9714 }
9715 if (_v) {
9716 int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
9717 _v = SWIG_CheckState(res);
9718 if (_v) {
9719 return _wrap_Solver_IntVar__SWIG_0(self, args);
9720 }
9721 }
9722 }
9723 }
9724 }
9725
9726fail:
9727 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_IntVar'.\n"
9728 " Possible C/C++ prototypes are:\n"
9729 " operations_research::Solver::MakeIntVar(int64_t,int64_t,std::string const &)\n"
9730 " operations_research::Solver::MakeIntVar(std::vector< int64_t > const &,std::string const &)\n"
9731 " operations_research::Solver::MakeIntVar(std::vector< int > const &,std::string const &)\n"
9732 " operations_research::Solver::MakeIntVar(int64_t,int64_t)\n"
9733 " operations_research::Solver::MakeIntVar(std::vector< int64_t > const &)\n"
9734 " operations_research::Solver::MakeIntVar(std::vector< int > const &)\n");
9735 return 0;
9736}
9737
9738
9739SWIGINTERN PyObject *_wrap_Solver_BoolVar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9740 PyObject *resultobj = 0;
9742 std::string *arg2 = 0 ;
9743 void *argp1 = 0 ;
9744 int res1 = 0 ;
9745 int res2 = SWIG_OLDOBJ ;
9746 PyObject * obj0 = 0 ;
9747 PyObject * obj1 = 0 ;
9748 operations_research::IntVar *result = 0 ;
9749
9750 if (!PyArg_UnpackTuple(args, "Solver_BoolVar", 2, 2, &obj0, &obj1)) SWIG_fail;
9751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9752 if (!SWIG_IsOK(res1)) {
9753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_BoolVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
9754 }
9755 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9756 {
9757 std::string *ptr = (std::string *)0;
9758 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
9759 if (!SWIG_IsOK(res2)) {
9760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_BoolVar" "', argument " "2"" of type '" "std::string const &""'");
9761 }
9762 if (!ptr) {
9763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_BoolVar" "', argument " "2"" of type '" "std::string const &""'");
9764 }
9765 arg2 = ptr;
9766 }
9767 {
9768 try {
9769 result = (operations_research::IntVar *)(arg1)->MakeBoolVar((std::string const &)*arg2);
9770 }
9771 catch (Swig::DirectorException &e) {
9772 SWIG_fail;
9773 }
9774 }
9776 if (SWIG_IsNewObj(res2)) delete arg2;
9777 return resultobj;
9778fail:
9779 if (SWIG_IsNewObj(res2)) delete arg2;
9780 return NULL;
9781}
9782
9783
9784SWIGINTERN PyObject *_wrap_Solver_BoolVar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9785 PyObject *resultobj = 0;
9787 void *argp1 = 0 ;
9788 int res1 = 0 ;
9789 PyObject * obj0 = 0 ;
9790 operations_research::IntVar *result = 0 ;
9791
9792 if (!PyArg_UnpackTuple(args, "Solver_BoolVar", 1, 1, &obj0)) SWIG_fail;
9793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9794 if (!SWIG_IsOK(res1)) {
9795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_BoolVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
9796 }
9797 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9798 {
9799 try {
9800 result = (operations_research::IntVar *)(arg1)->MakeBoolVar();
9801 }
9802 catch (Swig::DirectorException &e) {
9803 SWIG_fail;
9804 }
9805 }
9807 return resultobj;
9808fail:
9809 return NULL;
9810}
9811
9812
9813SWIGINTERN PyObject *_wrap_Solver_BoolVar(PyObject *self, PyObject *args) {
9814 Py_ssize_t argc;
9815 PyObject *argv[3] = {
9816 0
9817 };
9818 Py_ssize_t ii;
9819
9820 if (!PyTuple_Check(args)) SWIG_fail;
9821 argc = PyObject_Length(args);
9822 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
9823 argv[ii] = PyTuple_GET_ITEM(args,ii);
9824 }
9825 if (argc == 1) {
9826 int _v;
9827 void *vptr = 0;
9828 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
9829 _v = SWIG_CheckState(res);
9830 if (_v) {
9831 return _wrap_Solver_BoolVar__SWIG_1(self, args);
9832 }
9833 }
9834 if (argc == 2) {
9835 int _v;
9836 void *vptr = 0;
9837 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
9838 _v = SWIG_CheckState(res);
9839 if (_v) {
9840 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
9841 _v = SWIG_CheckState(res);
9842 if (_v) {
9843 return _wrap_Solver_BoolVar__SWIG_0(self, args);
9844 }
9845 }
9846 }
9847
9848fail:
9849 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_BoolVar'.\n"
9850 " Possible C/C++ prototypes are:\n"
9851 " operations_research::Solver::MakeBoolVar(std::string const &)\n"
9852 " operations_research::Solver::MakeBoolVar()\n");
9853 return 0;
9854}
9855
9856
9857SWIGINTERN PyObject *_wrap_Solver_IntConst__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9858 PyObject *resultobj = 0;
9860 int64_t arg2 ;
9861 std::string *arg3 = 0 ;
9862 void *argp1 = 0 ;
9863 int res1 = 0 ;
9864 long val2 ;
9865 int ecode2 = 0 ;
9866 int res3 = SWIG_OLDOBJ ;
9867 PyObject * obj0 = 0 ;
9868 PyObject * obj1 = 0 ;
9869 PyObject * obj2 = 0 ;
9870 operations_research::IntVar *result = 0 ;
9871
9872 if (!PyArg_UnpackTuple(args, "Solver_IntConst", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
9873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9874 if (!SWIG_IsOK(res1)) {
9875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IntConst" "', argument " "1"" of type '" "operations_research::Solver *""'");
9876 }
9877 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9878 ecode2 = SWIG_AsVal_long(obj1, &val2);
9879 if (!SWIG_IsOK(ecode2)) {
9880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_IntConst" "', argument " "2"" of type '" "int64_t""'");
9881 }
9882 arg2 = static_cast< int64_t >(val2);
9883 {
9884 std::string *ptr = (std::string *)0;
9885 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
9886 if (!SWIG_IsOK(res3)) {
9887 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_IntConst" "', argument " "3"" of type '" "std::string const &""'");
9888 }
9889 if (!ptr) {
9890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_IntConst" "', argument " "3"" of type '" "std::string const &""'");
9891 }
9892 arg3 = ptr;
9893 }
9894 {
9895 try {
9896 result = (operations_research::IntVar *)(arg1)->MakeIntConst(arg2,(std::string const &)*arg3);
9897 }
9898 catch (Swig::DirectorException &e) {
9899 SWIG_fail;
9900 }
9901 }
9903 if (SWIG_IsNewObj(res3)) delete arg3;
9904 return resultobj;
9905fail:
9906 if (SWIG_IsNewObj(res3)) delete arg3;
9907 return NULL;
9908}
9909
9910
9911SWIGINTERN PyObject *_wrap_Solver_IntConst__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9912 PyObject *resultobj = 0;
9914 int64_t arg2 ;
9915 void *argp1 = 0 ;
9916 int res1 = 0 ;
9917 long val2 ;
9918 int ecode2 = 0 ;
9919 PyObject * obj0 = 0 ;
9920 PyObject * obj1 = 0 ;
9921 operations_research::IntVar *result = 0 ;
9922
9923 if (!PyArg_UnpackTuple(args, "Solver_IntConst", 2, 2, &obj0, &obj1)) SWIG_fail;
9924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
9925 if (!SWIG_IsOK(res1)) {
9926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IntConst" "', argument " "1"" of type '" "operations_research::Solver *""'");
9927 }
9928 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9929 ecode2 = SWIG_AsVal_long(obj1, &val2);
9930 if (!SWIG_IsOK(ecode2)) {
9931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_IntConst" "', argument " "2"" of type '" "int64_t""'");
9932 }
9933 arg2 = static_cast< int64_t >(val2);
9934 {
9935 try {
9936 result = (operations_research::IntVar *)(arg1)->MakeIntConst(arg2);
9937 }
9938 catch (Swig::DirectorException &e) {
9939 SWIG_fail;
9940 }
9941 }
9943 return resultobj;
9944fail:
9945 return NULL;
9946}
9947
9948
9949SWIGINTERN PyObject *_wrap_Solver_IntConst(PyObject *self, PyObject *args) {
9950 Py_ssize_t argc;
9951 PyObject *argv[4] = {
9952 0
9953 };
9954 Py_ssize_t ii;
9955
9956 if (!PyTuple_Check(args)) SWIG_fail;
9957 argc = PyObject_Length(args);
9958 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
9959 argv[ii] = PyTuple_GET_ITEM(args,ii);
9960 }
9961 if (argc == 2) {
9962 int _v;
9963 void *vptr = 0;
9964 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
9965 _v = SWIG_CheckState(res);
9966 if (_v) {
9967 {
9968 int res = SWIG_AsVal_long(argv[1], NULL);
9969 _v = SWIG_CheckState(res);
9970 }
9971 if (_v) {
9972 return _wrap_Solver_IntConst__SWIG_1(self, args);
9973 }
9974 }
9975 }
9976 if (argc == 3) {
9977 int _v;
9978 void *vptr = 0;
9979 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
9980 _v = SWIG_CheckState(res);
9981 if (_v) {
9982 {
9983 int res = SWIG_AsVal_long(argv[1], NULL);
9984 _v = SWIG_CheckState(res);
9985 }
9986 if (_v) {
9987 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
9988 _v = SWIG_CheckState(res);
9989 if (_v) {
9990 return _wrap_Solver_IntConst__SWIG_0(self, args);
9991 }
9992 }
9993 }
9994 }
9995
9996fail:
9997 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_IntConst'.\n"
9998 " Possible C/C++ prototypes are:\n"
9999 " operations_research::Solver::MakeIntConst(int64_t,std::string const &)\n"
10000 " operations_research::Solver::MakeIntConst(int64_t)\n");
10001 return 0;
10002}
10003
10004
10005SWIGINTERN PyObject *_wrap_Solver_Sum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10006 PyObject *resultobj = 0;
10008 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10009 void *argp1 = 0 ;
10010 int res1 = 0 ;
10011 std::vector< operations_research::IntVar * > temp2 ;
10012 PyObject * obj0 = 0 ;
10013 PyObject * obj1 = 0 ;
10014 operations_research::IntExpr *result = 0 ;
10015
10016 if (!PyArg_UnpackTuple(args, "Solver_Sum", 2, 2, &obj0, &obj1)) SWIG_fail;
10017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
10018 if (!SWIG_IsOK(res1)) {
10019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Sum" "', argument " "1"" of type '" "operations_research::Solver *""'");
10020 }
10021 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10022 {
10023 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
10024 if (!PyErr_Occurred())
10025 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
10026 return NULL;
10027 }
10028 arg2 = &temp2;
10029 }
10030 {
10031 try {
10032 result = (operations_research::IntExpr *)(arg1)->MakeSum((std::vector< operations_research::IntVar * > const &)*arg2);
10033 }
10034 catch (Swig::DirectorException &e) {
10035 SWIG_fail;
10036 }
10037 }
10039 return resultobj;
10040fail:
10041 return NULL;
10042}
10043
10044
10045SWIGINTERN PyObject *_wrap_Solver_ScalProd__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10046 PyObject *resultobj = 0;
10048 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10049 std::vector< int64_t > *arg3 = 0 ;
10050 void *argp1 = 0 ;
10051 int res1 = 0 ;
10052 std::vector< operations_research::IntVar * > temp2 ;
10053 std::vector< int64_t > temp3 ;
10054 PyObject * obj0 = 0 ;
10055 PyObject * obj1 = 0 ;
10056 PyObject * obj2 = 0 ;
10057 operations_research::IntExpr *result = 0 ;
10058
10059 if (!PyArg_UnpackTuple(args, "Solver_ScalProd", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
10060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
10061 if (!SWIG_IsOK(res1)) {
10062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ScalProd" "', argument " "1"" of type '" "operations_research::Solver *""'");
10063 }
10064 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10065 {
10066 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
10067 if (!PyErr_Occurred())
10068 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
10069 return NULL;
10070 }
10071 arg2 = &temp2;
10072 }
10073 {
10074 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
10075 if (!PyErr_Occurred())
10076 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
10077 return NULL;
10078 }
10079 arg3 = &temp3;
10080 }
10081 {
10082 try {
10083 result = (operations_research::IntExpr *)(arg1)->MakeScalProd((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int64_t > const &)*arg3);
10084 }
10085 catch (Swig::DirectorException &e) {
10086 SWIG_fail;
10087 }
10088 }
10090 return resultobj;
10091fail:
10092 return NULL;
10093}
10094
10095
10096SWIGINTERN PyObject *_wrap_Solver_ScalProd__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10097 PyObject *resultobj = 0;
10099 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10100 std::vector< int > *arg3 = 0 ;
10101 void *argp1 = 0 ;
10102 int res1 = 0 ;
10103 std::vector< operations_research::IntVar * > temp2 ;
10104 std::vector< int > temp3 ;
10105 PyObject * obj0 = 0 ;
10106 PyObject * obj1 = 0 ;
10107 PyObject * obj2 = 0 ;
10108 operations_research::IntExpr *result = 0 ;
10109
10110 if (!PyArg_UnpackTuple(args, "Solver_ScalProd", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
10111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
10112 if (!SWIG_IsOK(res1)) {
10113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ScalProd" "', argument " "1"" of type '" "operations_research::Solver *""'");
10114 }
10115 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10116 {
10117 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
10118 if (!PyErr_Occurred())
10119 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
10120 return NULL;
10121 }
10122 arg2 = &temp2;
10123 }
10124 {
10125 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
10126 if (!PyErr_Occurred())
10127 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
10128 return NULL;
10129 }
10130 arg3 = &temp3;
10131 }
10132 {
10133 try {
10134 result = (operations_research::IntExpr *)(arg1)->MakeScalProd((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int > const &)*arg3);
10135 }
10136 catch (Swig::DirectorException &e) {
10137 SWIG_fail;
10138 }
10139 }
10141 return resultobj;
10142fail:
10143 return NULL;
10144}
10145
10146
10147SWIGINTERN PyObject *_wrap_Solver_ScalProd(PyObject *self, PyObject *args) {
10148 Py_ssize_t argc;
10149 PyObject *argv[4] = {
10150 0
10151 };
10152 Py_ssize_t ii;
10153
10154 if (!PyTuple_Check(args)) SWIG_fail;
10155 argc = PyObject_Length(args);
10156 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
10157 argv[ii] = PyTuple_GET_ITEM(args,ii);
10158 }
10159 if (argc == 3) {
10160 int _v;
10161 void *vptr = 0;
10162 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
10163 _v = SWIG_CheckState(res);
10164 if (_v) {
10165 {
10166 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10167 _v = 0;
10168 } else {
10169 const bool is_tuple = PyTuple_Check(argv[1]);
10170 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10171 size_t i = 0;
10172 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
10173 :PyList_GetItem(argv[1], i))) {
10174 ++i;
10175 }
10176 _v = i == size;
10177 }
10178 }
10179 if (_v) {
10180 {
10181 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
10182 _v = 0;
10183 } else {
10184 const bool is_tuple = PyTuple_Check(argv[2]);
10185 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
10186 size_t i = 0;
10187 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
10188 :PyList_GetItem(argv[2], i))) {
10189 ++i;
10190 }
10191 _v = i == size;
10192 }
10193 }
10194 if (_v) {
10195 return _wrap_Solver_ScalProd__SWIG_0(self, args);
10196 }
10197 }
10198 }
10199 }
10200 if (argc == 3) {
10201 int _v;
10202 void *vptr = 0;
10203 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
10204 _v = SWIG_CheckState(res);
10205 if (_v) {
10206 {
10207 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10208 _v = 0;
10209 } else {
10210 const bool is_tuple = PyTuple_Check(argv[1]);
10211 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10212 size_t i = 0;
10213 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
10214 :PyList_GetItem(argv[1], i))) {
10215 ++i;
10216 }
10217 _v = i == size;
10218 }
10219 }
10220 if (_v) {
10221 {
10222 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
10223 _v = 0;
10224 } else {
10225 const bool is_tuple = PyTuple_Check(argv[2]);
10226 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
10227 size_t i = 0;
10228 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
10229 :PyList_GetItem(argv[2], i))) {
10230 ++i;
10231 }
10232 _v = i == size;
10233 }
10234 }
10235 if (_v) {
10236 return _wrap_Solver_ScalProd__SWIG_1(self, args);
10237 }
10238 }
10239 }
10240 }
10241
10242fail:
10243 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_ScalProd'.\n"
10244 " Possible C/C++ prototypes are:\n"
10245 " operations_research::Solver::MakeScalProd(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &)\n"
10246 " operations_research::Solver::MakeScalProd(std::vector< operations_research::IntVar * > const &,std::vector< int > const &)\n");
10247 return 0;
10248}
10249
10250
10251SWIGINTERN PyObject *_wrap_Solver_Element__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10252 PyObject *resultobj = 0;
10254 std::vector< int64_t > *arg2 = 0 ;
10256 void *argp1 = 0 ;
10257 int res1 = 0 ;
10258 std::vector< int64_t > temp2 ;
10259 PyObject * obj0 = 0 ;
10260 PyObject * obj1 = 0 ;
10261 PyObject * obj2 = 0 ;
10262 operations_research::IntExpr *result = 0 ;
10263
10264 if (!PyArg_UnpackTuple(args, "Solver_Element", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
10265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
10266 if (!SWIG_IsOK(res1)) {
10267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Element" "', argument " "1"" of type '" "operations_research::Solver *""'");
10268 }
10269 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10270 {
10271 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
10272 if (!PyErr_Occurred())
10273 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
10274 return NULL;
10275 }
10276 arg2 = &temp2;
10277 }
10278 {
10279 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
10280 }
10281 {
10282 try {
10283 result = (operations_research::IntExpr *)(arg1)->MakeElement((std::vector< int64_t > const &)*arg2,arg3);
10284 }
10285 catch (Swig::DirectorException &e) {
10286 SWIG_fail;
10287 }
10288 }
10290 return resultobj;
10291fail:
10292 return NULL;
10293}
10294
10295
10296SWIGINTERN PyObject *_wrap_Solver_Element__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10297 PyObject *resultobj = 0;
10299 std::vector< int > *arg2 = 0 ;
10301 void *argp1 = 0 ;
10302 int res1 = 0 ;
10303 std::vector< int > temp2 ;
10304 PyObject * obj0 = 0 ;
10305 PyObject * obj1 = 0 ;
10306 PyObject * obj2 = 0 ;
10307 operations_research::IntExpr *result = 0 ;
10308
10309 if (!PyArg_UnpackTuple(args, "Solver_Element", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
10310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
10311 if (!SWIG_IsOK(res1)) {
10312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Element" "', argument " "1"" of type '" "operations_research::Solver *""'");
10313 }
10314 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10315 {
10316 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
10317 if (!PyErr_Occurred())
10318 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
10319 return NULL;
10320 }
10321 arg2 = &temp2;
10322 }
10323 {
10324 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
10325 }
10326 {
10327 try {
10328 result = (operations_research::IntExpr *)(arg1)->MakeElement((std::vector< int > const &)*arg2,arg3);
10329 }
10330 catch (Swig::DirectorException &e) {
10331 SWIG_fail;
10332 }
10333 }
10335 return resultobj;
10336fail:
10337 return NULL;
10338}
10339
10340
10341SWIGINTERN PyObject *_wrap_Solver_Element__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10342 PyObject *resultobj = 0;
10346 void *argp1 = 0 ;
10347 int res1 = 0 ;
10348 PyObject * obj0 = 0 ;
10349 PyObject * obj1 = 0 ;
10350 PyObject * obj2 = 0 ;
10351 operations_research::IntExpr *result = 0 ;
10352
10353 if (!PyArg_UnpackTuple(args, "Solver_Element", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
10354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
10355 if (!SWIG_IsOK(res1)) {
10356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Element" "', argument " "1"" of type '" "operations_research::Solver *""'");
10357 }
10358 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10359 {
10360 SharedPyPtr input(obj1);
10361 arg2 = [input](int64_t index) {
10362 return InvokePythonCallableReturning<int64_t>(input.get(), "(L)", index);
10363 };
10364 }
10365 {
10366 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
10367 }
10368 {
10369 try {
10370 result = (operations_research::IntExpr *)(arg1)->MakeElement(arg2,arg3);
10371 }
10372 catch (Swig::DirectorException &e) {
10373 SWIG_fail;
10374 }
10375 }
10377 return resultobj;
10378fail:
10379 return NULL;
10380}
10381
10382
10383SWIGINTERN PyObject *_wrap_Solver_MonotonicElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10384 PyObject *resultobj = 0;
10387 bool arg3 ;
10389 void *argp1 = 0 ;
10390 int res1 = 0 ;
10391 bool val3 ;
10392 int ecode3 = 0 ;
10393 PyObject * obj0 = 0 ;
10394 PyObject * obj1 = 0 ;
10395 PyObject * obj2 = 0 ;
10396 PyObject * obj3 = 0 ;
10397 operations_research::IntExpr *result = 0 ;
10398
10399 if (!PyArg_UnpackTuple(args, "Solver_MonotonicElement", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
10400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
10401 if (!SWIG_IsOK(res1)) {
10402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_MonotonicElement" "', argument " "1"" of type '" "operations_research::Solver *""'");
10403 }
10404 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10405 {
10406 SharedPyPtr input(obj1);
10407 arg2 = [input](int64_t index) {
10408 return InvokePythonCallableReturning<int64_t>(input.get(), "(L)", index);
10409 };
10410 }
10411 ecode3 = SWIG_AsVal_bool(obj2, &val3);
10412 if (!SWIG_IsOK(ecode3)) {
10413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_MonotonicElement" "', argument " "3"" of type '" "bool""'");
10414 }
10415 arg3 = static_cast< bool >(val3);
10416 {
10417 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
10418 }
10419 {
10420 try {
10421 result = (operations_research::IntExpr *)(arg1)->MakeMonotonicElement(arg2,arg3,arg4);
10422 }
10423 catch (Swig::DirectorException &e) {
10424 SWIG_fail;
10425 }
10426 }
10428 return resultobj;
10429fail:
10430 return NULL;
10431}
10432
10433
10434SWIGINTERN PyObject *_wrap_Solver_Element__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10435 PyObject *resultobj = 0;
10440 void *argp1 = 0 ;
10441 int res1 = 0 ;
10442 PyObject * obj0 = 0 ;
10443 PyObject * obj1 = 0 ;
10444 PyObject * obj2 = 0 ;
10445 PyObject * obj3 = 0 ;
10446 operations_research::IntExpr *result = 0 ;
10447
10448 if (!PyArg_UnpackTuple(args, "Solver_Element", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
10449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
10450 if (!SWIG_IsOK(res1)) {
10451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Element" "', argument " "1"" of type '" "operations_research::Solver *""'");
10452 }
10453 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10454 {
10455 SharedPyPtr input(obj1);
10456 arg2 = [input](int64_t i, int64_t j) {
10457 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
10458 };
10459 }
10460 {
10461 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
10462 }
10463 {
10464 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
10465 }
10466 {
10467 try {
10468 result = (operations_research::IntExpr *)(arg1)->MakeElement(arg2,arg3,arg4);
10469 }
10470 catch (Swig::DirectorException &e) {
10471 SWIG_fail;
10472 }
10473 }
10475 return resultobj;
10476fail:
10477 return NULL;
10478}
10479
10480
10481SWIGINTERN PyObject *_wrap_Solver_Element__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10482 PyObject *resultobj = 0;
10484 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10486 void *argp1 = 0 ;
10487 int res1 = 0 ;
10488 std::vector< operations_research::IntVar * > temp2 ;
10489 PyObject * obj0 = 0 ;
10490 PyObject * obj1 = 0 ;
10491 PyObject * obj2 = 0 ;
10492 operations_research::IntExpr *result = 0 ;
10493
10494 if (!PyArg_UnpackTuple(args, "Solver_Element", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
10495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
10496 if (!SWIG_IsOK(res1)) {
10497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Element" "', argument " "1"" of type '" "operations_research::Solver *""'");
10498 }
10499 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10500 {
10501 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
10502 if (!PyErr_Occurred())
10503 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
10504 return NULL;
10505 }
10506 arg2 = &temp2;
10507 }
10508 {
10509 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
10510 }
10511 {
10512 try {
10513 result = (operations_research::IntExpr *)(arg1)->MakeElement((std::vector< operations_research::IntVar * > const &)*arg2,arg3);
10514 }
10515 catch (Swig::DirectorException &e) {
10516 SWIG_fail;
10517 }
10518 }
10520 return resultobj;
10521fail:
10522 return NULL;
10523}
10524
10525
10526SWIGINTERN PyObject *_wrap_Solver_Element(PyObject *self, PyObject *args) {
10527 Py_ssize_t argc;
10528 PyObject *argv[5] = {
10529 0
10530 };
10531 Py_ssize_t ii;
10532
10533 if (!PyTuple_Check(args)) SWIG_fail;
10534 argc = PyObject_Length(args);
10535 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
10536 argv[ii] = PyTuple_GET_ITEM(args,ii);
10537 }
10538 if (argc == 3) {
10539 int _v;
10540 void *vptr = 0;
10541 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
10542 _v = SWIG_CheckState(res);
10543 if (_v) {
10544 {
10545 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10546 _v = 0;
10547 } else {
10548 const bool is_tuple = PyTuple_Check(argv[1]);
10549 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10550 size_t i = 0;
10551 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
10552 :PyList_GetItem(argv[1], i))) {
10553 ++i;
10554 }
10555 _v = i == size;
10556 }
10557 }
10558 if (_v) {
10559 {
10560 _v = CanConvertToIntVar(argv[2]);
10561 if (_v == 0) PyErr_Clear();
10562 }
10563 if (_v) {
10564 return _wrap_Solver_Element__SWIG_0(self, args);
10565 }
10566 }
10567 }
10568 }
10569 if (argc == 3) {
10570 int _v;
10571 void *vptr = 0;
10572 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
10573 _v = SWIG_CheckState(res);
10574 if (_v) {
10575 {
10576 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10577 _v = 0;
10578 } else {
10579 const bool is_tuple = PyTuple_Check(argv[1]);
10580 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10581 size_t i = 0;
10582 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
10583 :PyList_GetItem(argv[1], i))) {
10584 ++i;
10585 }
10586 _v = i == size;
10587 }
10588 }
10589 if (_v) {
10590 {
10591 _v = CanConvertToIntVar(argv[2]);
10592 if (_v == 0) PyErr_Clear();
10593 }
10594 if (_v) {
10595 return _wrap_Solver_Element__SWIG_1(self, args);
10596 }
10597 }
10598 }
10599 }
10600 if (argc == 3) {
10601 int _v;
10602 void *vptr = 0;
10603 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
10604 _v = SWIG_CheckState(res);
10605 if (_v) {
10606 {
10607 _v = PyCallable_Check(argv[1]);
10608 }
10609 if (_v) {
10610 {
10611 _v = CanConvertToIntVar(argv[2]);
10612 if (_v == 0) PyErr_Clear();
10613 }
10614 if (_v) {
10615 return _wrap_Solver_Element__SWIG_2(self, args);
10616 }
10617 }
10618 }
10619 }
10620 if (argc == 3) {
10621 int _v;
10622 void *vptr = 0;
10623 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
10624 _v = SWIG_CheckState(res);
10625 if (_v) {
10626 {
10627 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10628 _v = 0;
10629 } else {
10630 const bool is_tuple = PyTuple_Check(argv[1]);
10631 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10632 size_t i = 0;
10633 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
10634 :PyList_GetItem(argv[1], i))) {
10635 ++i;
10636 }
10637 _v = i == size;
10638 }
10639 }
10640 if (_v) {
10641 {
10642 _v = CanConvertToIntVar(argv[2]);
10643 if (_v == 0) PyErr_Clear();
10644 }
10645 if (_v) {
10646 return _wrap_Solver_Element__SWIG_4(self, args);
10647 }
10648 }
10649 }
10650 }
10651 if (argc == 4) {
10652 int _v;
10653 void *vptr = 0;
10654 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
10655 _v = SWIG_CheckState(res);
10656 if (_v) {
10657 {
10658 _v = PyCallable_Check(argv[1]);
10659 }
10660 if (_v) {
10661 {
10662 _v = CanConvertToIntVar(argv[2]);
10663 if (_v == 0) PyErr_Clear();
10664 }
10665 if (_v) {
10666 {
10667 _v = CanConvertToIntVar(argv[3]);
10668 if (_v == 0) PyErr_Clear();
10669 }
10670 if (_v) {
10671 return _wrap_Solver_Element__SWIG_3(self, args);
10672 }
10673 }
10674 }
10675 }
10676 }
10677
10678fail:
10679 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_Element'.\n"
10680 " Possible C/C++ prototypes are:\n"
10681 " operations_research::Solver::MakeElement(std::vector< int64_t > const &,operations_research::IntVar *const)\n"
10682 " operations_research::Solver::MakeElement(std::vector< int > const &,operations_research::IntVar *const)\n"
10683 " operations_research::Solver::MakeElement(operations_research::Solver::IndexEvaluator1,operations_research::IntVar *const)\n"
10684 " operations_research::Solver::MakeElement(operations_research::Solver::IndexEvaluator2,operations_research::IntVar *const,operations_research::IntVar *const)\n"
10685 " operations_research::Solver::MakeElement(std::vector< operations_research::IntVar * > const &,operations_research::IntVar *const)\n");
10686 return 0;
10687}
10688
10689
10690SWIGINTERN PyObject *_wrap_Solver_IndexExpression(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10691 PyObject *resultobj = 0;
10693 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10694 int64_t arg3 ;
10695 void *argp1 = 0 ;
10696 int res1 = 0 ;
10697 std::vector< operations_research::IntVar * > temp2 ;
10698 long val3 ;
10699 int ecode3 = 0 ;
10700 PyObject * obj0 = 0 ;
10701 PyObject * obj1 = 0 ;
10702 PyObject * obj2 = 0 ;
10703 operations_research::IntExpr *result = 0 ;
10704
10705 if (!PyArg_UnpackTuple(args, "Solver_IndexExpression", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
10706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
10707 if (!SWIG_IsOK(res1)) {
10708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IndexExpression" "', argument " "1"" of type '" "operations_research::Solver *""'");
10709 }
10710 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10711 {
10712 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
10713 if (!PyErr_Occurred())
10714 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
10715 return NULL;
10716 }
10717 arg2 = &temp2;
10718 }
10719 ecode3 = SWIG_AsVal_long(obj2, &val3);
10720 if (!SWIG_IsOK(ecode3)) {
10721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IndexExpression" "', argument " "3"" of type '" "int64_t""'");
10722 }
10723 arg3 = static_cast< int64_t >(val3);
10724 {
10725 try {
10726 result = (operations_research::IntExpr *)(arg1)->MakeIndexExpression((std::vector< operations_research::IntVar * > const &)*arg2,arg3);
10727 }
10728 catch (Swig::DirectorException &e) {
10729 SWIG_fail;
10730 }
10731 }
10733 return resultobj;
10734fail:
10735 return NULL;
10736}
10737
10738
10739SWIGINTERN PyObject *_wrap_Solver_Min__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10740 PyObject *resultobj = 0;
10742 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10743 void *argp1 = 0 ;
10744 int res1 = 0 ;
10745 std::vector< operations_research::IntVar * > temp2 ;
10746 PyObject * obj0 = 0 ;
10747 PyObject * obj1 = 0 ;
10748 operations_research::IntExpr *result = 0 ;
10749
10750 if (!PyArg_UnpackTuple(args, "Solver_Min", 2, 2, &obj0, &obj1)) SWIG_fail;
10751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
10752 if (!SWIG_IsOK(res1)) {
10753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Min" "', argument " "1"" of type '" "operations_research::Solver *""'");
10754 }
10755 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10756 {
10757 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
10758 if (!PyErr_Occurred())
10759 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
10760 return NULL;
10761 }
10762 arg2 = &temp2;
10763 }
10764 {
10765 try {
10766 result = (operations_research::IntExpr *)(arg1)->MakeMin((std::vector< operations_research::IntVar * > const &)*arg2);
10767 }
10768 catch (Swig::DirectorException &e) {
10769 SWIG_fail;
10770 }
10771 }
10773 return resultobj;
10774fail:
10775 return NULL;
10776}
10777
10778
10779SWIGINTERN PyObject *_wrap_Solver_Min__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10780 PyObject *resultobj = 0;
10784 void *argp1 = 0 ;
10785 int res1 = 0 ;
10786 PyObject * obj0 = 0 ;
10787 PyObject * obj1 = 0 ;
10788 PyObject * obj2 = 0 ;
10789 operations_research::IntExpr *result = 0 ;
10790
10791 if (!PyArg_UnpackTuple(args, "Solver_Min", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
10792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
10793 if (!SWIG_IsOK(res1)) {
10794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Min" "', argument " "1"" of type '" "operations_research::Solver *""'");
10795 }
10796 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10797 {
10798 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
10799 }
10800 {
10801 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
10802 }
10803 {
10804 try {
10805 result = (operations_research::IntExpr *)(arg1)->MakeMin(arg2,arg3);
10806 }
10807 catch (Swig::DirectorException &e) {
10808 SWIG_fail;
10809 }
10810 }
10812 return resultobj;
10813fail:
10814 return NULL;
10815}
10816
10817
10818SWIGINTERN PyObject *_wrap_Solver_Min__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10819 PyObject *resultobj = 0;
10822 int64_t arg3 ;
10823 void *argp1 = 0 ;
10824 int res1 = 0 ;
10825 long val3 ;
10826 int ecode3 = 0 ;
10827 PyObject * obj0 = 0 ;
10828 PyObject * obj1 = 0 ;
10829 PyObject * obj2 = 0 ;
10830 operations_research::IntExpr *result = 0 ;
10831
10832 if (!PyArg_UnpackTuple(args, "Solver_Min", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
10833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
10834 if (!SWIG_IsOK(res1)) {
10835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Min" "', argument " "1"" of type '" "operations_research::Solver *""'");
10836 }
10837 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10838 {
10839 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
10840 }
10841 ecode3 = SWIG_AsVal_long(obj2, &val3);
10842 if (!SWIG_IsOK(ecode3)) {
10843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Min" "', argument " "3"" of type '" "int64_t""'");
10844 }
10845 arg3 = static_cast< int64_t >(val3);
10846 {
10847 try {
10848 result = (operations_research::IntExpr *)(arg1)->MakeMin(arg2,arg3);
10849 }
10850 catch (Swig::DirectorException &e) {
10851 SWIG_fail;
10852 }
10853 }
10855 return resultobj;
10856fail:
10857 return NULL;
10858}
10859
10860
10861SWIGINTERN PyObject *_wrap_Solver_Min__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10862 PyObject *resultobj = 0;
10865 int arg3 ;
10866 void *argp1 = 0 ;
10867 int res1 = 0 ;
10868 int val3 ;
10869 int ecode3 = 0 ;
10870 PyObject * obj0 = 0 ;
10871 PyObject * obj1 = 0 ;
10872 PyObject * obj2 = 0 ;
10873 operations_research::IntExpr *result = 0 ;
10874
10875 if (!PyArg_UnpackTuple(args, "Solver_Min", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
10876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
10877 if (!SWIG_IsOK(res1)) {
10878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Min" "', argument " "1"" of type '" "operations_research::Solver *""'");
10879 }
10880 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10881 {
10882 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
10883 }
10884 ecode3 = SWIG_AsVal_int(obj2, &val3);
10885 if (!SWIG_IsOK(ecode3)) {
10886 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Min" "', argument " "3"" of type '" "int""'");
10887 }
10888 arg3 = static_cast< int >(val3);
10889 {
10890 try {
10891 result = (operations_research::IntExpr *)(arg1)->MakeMin(arg2,arg3);
10892 }
10893 catch (Swig::DirectorException &e) {
10894 SWIG_fail;
10895 }
10896 }
10898 return resultobj;
10899fail:
10900 return NULL;
10901}
10902
10903
10904SWIGINTERN PyObject *_wrap_Solver_Min(PyObject *self, PyObject *args) {
10905 Py_ssize_t argc;
10906 PyObject *argv[4] = {
10907 0
10908 };
10909 Py_ssize_t ii;
10910
10911 if (!PyTuple_Check(args)) SWIG_fail;
10912 argc = PyObject_Length(args);
10913 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
10914 argv[ii] = PyTuple_GET_ITEM(args,ii);
10915 }
10916 if (argc == 2) {
10917 int _v;
10918 void *vptr = 0;
10919 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
10920 _v = SWIG_CheckState(res);
10921 if (_v) {
10922 {
10923 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10924 _v = 0;
10925 } else {
10926 const bool is_tuple = PyTuple_Check(argv[1]);
10927 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10928 size_t i = 0;
10929 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
10930 :PyList_GetItem(argv[1], i))) {
10931 ++i;
10932 }
10933 _v = i == size;
10934 }
10935 }
10936 if (_v) {
10937 return _wrap_Solver_Min__SWIG_0(self, args);
10938 }
10939 }
10940 }
10941 if (argc == 3) {
10942 int _v;
10943 void *vptr = 0;
10944 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
10945 _v = SWIG_CheckState(res);
10946 if (_v) {
10947 {
10948 _v = CanConvertToIntExpr(argv[1]);
10949 if (_v == 0) PyErr_Clear();
10950 }
10951 if (_v) {
10952 {
10953 _v = CanConvertToIntExpr(argv[2]);
10954 if (_v == 0) PyErr_Clear();
10955 }
10956 if (_v) {
10957 return _wrap_Solver_Min__SWIG_1(self, args);
10958 }
10959 }
10960 }
10961 }
10962 if (argc == 3) {
10963 int _v;
10964 void *vptr = 0;
10965 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
10966 _v = SWIG_CheckState(res);
10967 if (_v) {
10968 {
10969 _v = CanConvertToIntExpr(argv[1]);
10970 if (_v == 0) PyErr_Clear();
10971 }
10972 if (_v) {
10973 {
10974 int res = SWIG_AsVal_int(argv[2], NULL);
10975 _v = SWIG_CheckState(res);
10976 }
10977 if (_v) {
10978 return _wrap_Solver_Min__SWIG_3(self, args);
10979 }
10980 }
10981 }
10982 }
10983 if (argc == 3) {
10984 int _v;
10985 void *vptr = 0;
10986 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
10987 _v = SWIG_CheckState(res);
10988 if (_v) {
10989 {
10990 _v = CanConvertToIntExpr(argv[1]);
10991 if (_v == 0) PyErr_Clear();
10992 }
10993 if (_v) {
10994 {
10995 int res = SWIG_AsVal_long(argv[2], NULL);
10996 _v = SWIG_CheckState(res);
10997 }
10998 if (_v) {
10999 return _wrap_Solver_Min__SWIG_2(self, args);
11000 }
11001 }
11002 }
11003 }
11004
11005fail:
11006 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_Min'.\n"
11007 " Possible C/C++ prototypes are:\n"
11008 " operations_research::Solver::MakeMin(std::vector< operations_research::IntVar * > const &)\n"
11009 " operations_research::Solver::MakeMin(operations_research::IntExpr *const,operations_research::IntExpr *const)\n"
11010 " operations_research::Solver::MakeMin(operations_research::IntExpr *const,int64_t)\n"
11011 " operations_research::Solver::MakeMin(operations_research::IntExpr *const,int)\n");
11012 return 0;
11013}
11014
11015
11016SWIGINTERN PyObject *_wrap_Solver_Max__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11017 PyObject *resultobj = 0;
11019 std::vector< operations_research::IntVar * > *arg2 = 0 ;
11020 void *argp1 = 0 ;
11021 int res1 = 0 ;
11022 std::vector< operations_research::IntVar * > temp2 ;
11023 PyObject * obj0 = 0 ;
11024 PyObject * obj1 = 0 ;
11025 operations_research::IntExpr *result = 0 ;
11026
11027 if (!PyArg_UnpackTuple(args, "Solver_Max", 2, 2, &obj0, &obj1)) SWIG_fail;
11028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11029 if (!SWIG_IsOK(res1)) {
11030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Max" "', argument " "1"" of type '" "operations_research::Solver *""'");
11031 }
11032 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11033 {
11034 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
11035 if (!PyErr_Occurred())
11036 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
11037 return NULL;
11038 }
11039 arg2 = &temp2;
11040 }
11041 {
11042 try {
11043 result = (operations_research::IntExpr *)(arg1)->MakeMax((std::vector< operations_research::IntVar * > const &)*arg2);
11044 }
11045 catch (Swig::DirectorException &e) {
11046 SWIG_fail;
11047 }
11048 }
11050 return resultobj;
11051fail:
11052 return NULL;
11053}
11054
11055
11056SWIGINTERN PyObject *_wrap_Solver_Max__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11057 PyObject *resultobj = 0;
11061 void *argp1 = 0 ;
11062 int res1 = 0 ;
11063 PyObject * obj0 = 0 ;
11064 PyObject * obj1 = 0 ;
11065 PyObject * obj2 = 0 ;
11066 operations_research::IntExpr *result = 0 ;
11067
11068 if (!PyArg_UnpackTuple(args, "Solver_Max", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
11069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11070 if (!SWIG_IsOK(res1)) {
11071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Max" "', argument " "1"" of type '" "operations_research::Solver *""'");
11072 }
11073 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11074 {
11075 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
11076 }
11077 {
11078 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
11079 }
11080 {
11081 try {
11082 result = (operations_research::IntExpr *)(arg1)->MakeMax(arg2,arg3);
11083 }
11084 catch (Swig::DirectorException &e) {
11085 SWIG_fail;
11086 }
11087 }
11089 return resultobj;
11090fail:
11091 return NULL;
11092}
11093
11094
11095SWIGINTERN PyObject *_wrap_Solver_Max__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11096 PyObject *resultobj = 0;
11099 int64_t arg3 ;
11100 void *argp1 = 0 ;
11101 int res1 = 0 ;
11102 long val3 ;
11103 int ecode3 = 0 ;
11104 PyObject * obj0 = 0 ;
11105 PyObject * obj1 = 0 ;
11106 PyObject * obj2 = 0 ;
11107 operations_research::IntExpr *result = 0 ;
11108
11109 if (!PyArg_UnpackTuple(args, "Solver_Max", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
11110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11111 if (!SWIG_IsOK(res1)) {
11112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Max" "', argument " "1"" of type '" "operations_research::Solver *""'");
11113 }
11114 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11115 {
11116 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
11117 }
11118 ecode3 = SWIG_AsVal_long(obj2, &val3);
11119 if (!SWIG_IsOK(ecode3)) {
11120 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Max" "', argument " "3"" of type '" "int64_t""'");
11121 }
11122 arg3 = static_cast< int64_t >(val3);
11123 {
11124 try {
11125 result = (operations_research::IntExpr *)(arg1)->MakeMax(arg2,arg3);
11126 }
11127 catch (Swig::DirectorException &e) {
11128 SWIG_fail;
11129 }
11130 }
11132 return resultobj;
11133fail:
11134 return NULL;
11135}
11136
11137
11138SWIGINTERN PyObject *_wrap_Solver_Max__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11139 PyObject *resultobj = 0;
11142 int arg3 ;
11143 void *argp1 = 0 ;
11144 int res1 = 0 ;
11145 int val3 ;
11146 int ecode3 = 0 ;
11147 PyObject * obj0 = 0 ;
11148 PyObject * obj1 = 0 ;
11149 PyObject * obj2 = 0 ;
11150 operations_research::IntExpr *result = 0 ;
11151
11152 if (!PyArg_UnpackTuple(args, "Solver_Max", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
11153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11154 if (!SWIG_IsOK(res1)) {
11155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Max" "', argument " "1"" of type '" "operations_research::Solver *""'");
11156 }
11157 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11158 {
11159 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
11160 }
11161 ecode3 = SWIG_AsVal_int(obj2, &val3);
11162 if (!SWIG_IsOK(ecode3)) {
11163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Max" "', argument " "3"" of type '" "int""'");
11164 }
11165 arg3 = static_cast< int >(val3);
11166 {
11167 try {
11168 result = (operations_research::IntExpr *)(arg1)->MakeMax(arg2,arg3);
11169 }
11170 catch (Swig::DirectorException &e) {
11171 SWIG_fail;
11172 }
11173 }
11175 return resultobj;
11176fail:
11177 return NULL;
11178}
11179
11180
11181SWIGINTERN PyObject *_wrap_Solver_Max(PyObject *self, PyObject *args) {
11182 Py_ssize_t argc;
11183 PyObject *argv[4] = {
11184 0
11185 };
11186 Py_ssize_t ii;
11187
11188 if (!PyTuple_Check(args)) SWIG_fail;
11189 argc = PyObject_Length(args);
11190 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
11191 argv[ii] = PyTuple_GET_ITEM(args,ii);
11192 }
11193 if (argc == 2) {
11194 int _v;
11195 void *vptr = 0;
11196 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
11197 _v = SWIG_CheckState(res);
11198 if (_v) {
11199 {
11200 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
11201 _v = 0;
11202 } else {
11203 const bool is_tuple = PyTuple_Check(argv[1]);
11204 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
11205 size_t i = 0;
11206 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
11207 :PyList_GetItem(argv[1], i))) {
11208 ++i;
11209 }
11210 _v = i == size;
11211 }
11212 }
11213 if (_v) {
11214 return _wrap_Solver_Max__SWIG_0(self, args);
11215 }
11216 }
11217 }
11218 if (argc == 3) {
11219 int _v;
11220 void *vptr = 0;
11221 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
11222 _v = SWIG_CheckState(res);
11223 if (_v) {
11224 {
11225 _v = CanConvertToIntExpr(argv[1]);
11226 if (_v == 0) PyErr_Clear();
11227 }
11228 if (_v) {
11229 {
11230 _v = CanConvertToIntExpr(argv[2]);
11231 if (_v == 0) PyErr_Clear();
11232 }
11233 if (_v) {
11234 return _wrap_Solver_Max__SWIG_1(self, args);
11235 }
11236 }
11237 }
11238 }
11239 if (argc == 3) {
11240 int _v;
11241 void *vptr = 0;
11242 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
11243 _v = SWIG_CheckState(res);
11244 if (_v) {
11245 {
11246 _v = CanConvertToIntExpr(argv[1]);
11247 if (_v == 0) PyErr_Clear();
11248 }
11249 if (_v) {
11250 {
11251 int res = SWIG_AsVal_int(argv[2], NULL);
11252 _v = SWIG_CheckState(res);
11253 }
11254 if (_v) {
11255 return _wrap_Solver_Max__SWIG_3(self, args);
11256 }
11257 }
11258 }
11259 }
11260 if (argc == 3) {
11261 int _v;
11262 void *vptr = 0;
11263 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
11264 _v = SWIG_CheckState(res);
11265 if (_v) {
11266 {
11267 _v = CanConvertToIntExpr(argv[1]);
11268 if (_v == 0) PyErr_Clear();
11269 }
11270 if (_v) {
11271 {
11272 int res = SWIG_AsVal_long(argv[2], NULL);
11273 _v = SWIG_CheckState(res);
11274 }
11275 if (_v) {
11276 return _wrap_Solver_Max__SWIG_2(self, args);
11277 }
11278 }
11279 }
11280 }
11281
11282fail:
11283 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_Max'.\n"
11284 " Possible C/C++ prototypes are:\n"
11285 " operations_research::Solver::MakeMax(std::vector< operations_research::IntVar * > const &)\n"
11286 " operations_research::Solver::MakeMax(operations_research::IntExpr *const,operations_research::IntExpr *const)\n"
11287 " operations_research::Solver::MakeMax(operations_research::IntExpr *const,int64_t)\n"
11288 " operations_research::Solver::MakeMax(operations_research::IntExpr *const,int)\n");
11289 return 0;
11290}
11291
11292
11293SWIGINTERN PyObject *_wrap_Solver_ConvexPiecewiseExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11294 PyObject *resultobj = 0;
11297 int64_t arg3 ;
11298 int64_t arg4 ;
11299 int64_t arg5 ;
11300 int64_t arg6 ;
11301 void *argp1 = 0 ;
11302 int res1 = 0 ;
11303 void *argp2 = 0 ;
11304 int res2 = 0 ;
11305 long val3 ;
11306 int ecode3 = 0 ;
11307 long val4 ;
11308 int ecode4 = 0 ;
11309 long val5 ;
11310 int ecode5 = 0 ;
11311 long val6 ;
11312 int ecode6 = 0 ;
11313 PyObject * obj0 = 0 ;
11314 PyObject * obj1 = 0 ;
11315 PyObject * obj2 = 0 ;
11316 PyObject * obj3 = 0 ;
11317 PyObject * obj4 = 0 ;
11318 PyObject * obj5 = 0 ;
11319 operations_research::IntExpr *result = 0 ;
11320
11321 if (!PyArg_UnpackTuple(args, "Solver_ConvexPiecewiseExpr", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
11322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11323 if (!SWIG_IsOK(res1)) {
11324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ConvexPiecewiseExpr" "', argument " "1"" of type '" "operations_research::Solver *""'");
11325 }
11326 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11327 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
11328 if (!SWIG_IsOK(res2)) {
11329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_ConvexPiecewiseExpr" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
11330 }
11331 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
11332 ecode3 = SWIG_AsVal_long(obj2, &val3);
11333 if (!SWIG_IsOK(ecode3)) {
11334 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_ConvexPiecewiseExpr" "', argument " "3"" of type '" "int64_t""'");
11335 }
11336 arg3 = static_cast< int64_t >(val3);
11337 ecode4 = SWIG_AsVal_long(obj3, &val4);
11338 if (!SWIG_IsOK(ecode4)) {
11339 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_ConvexPiecewiseExpr" "', argument " "4"" of type '" "int64_t""'");
11340 }
11341 arg4 = static_cast< int64_t >(val4);
11342 ecode5 = SWIG_AsVal_long(obj4, &val5);
11343 if (!SWIG_IsOK(ecode5)) {
11344 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_ConvexPiecewiseExpr" "', argument " "5"" of type '" "int64_t""'");
11345 }
11346 arg5 = static_cast< int64_t >(val5);
11347 ecode6 = SWIG_AsVal_long(obj5, &val6);
11348 if (!SWIG_IsOK(ecode6)) {
11349 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Solver_ConvexPiecewiseExpr" "', argument " "6"" of type '" "int64_t""'");
11350 }
11351 arg6 = static_cast< int64_t >(val6);
11352 {
11353 try {
11354 result = (operations_research::IntExpr *)(arg1)->MakeConvexPiecewiseExpr(arg2,arg3,arg4,arg5,arg6);
11355 }
11356 catch (Swig::DirectorException &e) {
11357 SWIG_fail;
11358 }
11359 }
11361 return resultobj;
11362fail:
11363 return NULL;
11364}
11365
11366
11367SWIGINTERN PyObject *_wrap_Solver_SemiContinuousExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11368 PyObject *resultobj = 0;
11371 int64_t arg3 ;
11372 int64_t arg4 ;
11373 void *argp1 = 0 ;
11374 int res1 = 0 ;
11375 long val3 ;
11376 int ecode3 = 0 ;
11377 long val4 ;
11378 int ecode4 = 0 ;
11379 PyObject * obj0 = 0 ;
11380 PyObject * obj1 = 0 ;
11381 PyObject * obj2 = 0 ;
11382 PyObject * obj3 = 0 ;
11383 operations_research::IntExpr *result = 0 ;
11384
11385 if (!PyArg_UnpackTuple(args, "Solver_SemiContinuousExpr", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
11386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11387 if (!SWIG_IsOK(res1)) {
11388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SemiContinuousExpr" "', argument " "1"" of type '" "operations_research::Solver *""'");
11389 }
11390 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11391 {
11392 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
11393 }
11394 ecode3 = SWIG_AsVal_long(obj2, &val3);
11395 if (!SWIG_IsOK(ecode3)) {
11396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_SemiContinuousExpr" "', argument " "3"" of type '" "int64_t""'");
11397 }
11398 arg3 = static_cast< int64_t >(val3);
11399 ecode4 = SWIG_AsVal_long(obj3, &val4);
11400 if (!SWIG_IsOK(ecode4)) {
11401 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_SemiContinuousExpr" "', argument " "4"" of type '" "int64_t""'");
11402 }
11403 arg4 = static_cast< int64_t >(val4);
11404 {
11405 try {
11406 result = (operations_research::IntExpr *)(arg1)->MakeSemiContinuousExpr(arg2,arg3,arg4);
11407 }
11408 catch (Swig::DirectorException &e) {
11409 SWIG_fail;
11410 }
11411 }
11413 return resultobj;
11414fail:
11415 return NULL;
11416}
11417
11418
11419SWIGINTERN PyObject *_wrap_Solver_ConditionalExpression(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11420 PyObject *resultobj = 0;
11424 int64_t arg4 ;
11425 void *argp1 = 0 ;
11426 int res1 = 0 ;
11427 long val4 ;
11428 int ecode4 = 0 ;
11429 PyObject * obj0 = 0 ;
11430 PyObject * obj1 = 0 ;
11431 PyObject * obj2 = 0 ;
11432 PyObject * obj3 = 0 ;
11433 operations_research::IntExpr *result = 0 ;
11434
11435 if (!PyArg_UnpackTuple(args, "Solver_ConditionalExpression", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
11436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11437 if (!SWIG_IsOK(res1)) {
11438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ConditionalExpression" "', argument " "1"" of type '" "operations_research::Solver *""'");
11439 }
11440 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11441 {
11442 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
11443 }
11444 {
11445 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
11446 }
11447 ecode4 = SWIG_AsVal_long(obj3, &val4);
11448 if (!SWIG_IsOK(ecode4)) {
11449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_ConditionalExpression" "', argument " "4"" of type '" "int64_t""'");
11450 }
11451 arg4 = static_cast< int64_t >(val4);
11452 {
11453 try {
11454 result = (operations_research::IntExpr *)(arg1)->MakeConditionalExpression(arg2,arg3,arg4);
11455 }
11456 catch (Swig::DirectorException &e) {
11457 SWIG_fail;
11458 }
11459 }
11461 return resultobj;
11462fail:
11463 return NULL;
11464}
11465
11466
11467SWIGINTERN PyObject *_wrap_Solver_TrueConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11468 PyObject *resultobj = 0;
11470 void *argp1 = 0 ;
11471 int res1 = 0 ;
11472 PyObject * obj0 = 0 ;
11474
11475 if (!PyArg_UnpackTuple(args, "Solver_TrueConstraint", 1, 1, &obj0)) SWIG_fail;
11476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11477 if (!SWIG_IsOK(res1)) {
11478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_TrueConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
11479 }
11480 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11481 {
11482 try {
11483 result = (operations_research::Constraint *)(arg1)->MakeTrueConstraint();
11484 }
11485 catch (Swig::DirectorException &e) {
11486 SWIG_fail;
11487 }
11488 }
11490 return resultobj;
11491fail:
11492 return NULL;
11493}
11494
11495
11496SWIGINTERN PyObject *_wrap_Solver_FalseConstraint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11497 PyObject *resultobj = 0;
11499 void *argp1 = 0 ;
11500 int res1 = 0 ;
11501 PyObject * obj0 = 0 ;
11503
11504 if (!PyArg_UnpackTuple(args, "Solver_FalseConstraint", 1, 1, &obj0)) SWIG_fail;
11505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11506 if (!SWIG_IsOK(res1)) {
11507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_FalseConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
11508 }
11509 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11510 {
11511 try {
11512 result = (operations_research::Constraint *)(arg1)->MakeFalseConstraint();
11513 }
11514 catch (Swig::DirectorException &e) {
11515 SWIG_fail;
11516 }
11517 }
11519 return resultobj;
11520fail:
11521 return NULL;
11522}
11523
11524
11525SWIGINTERN PyObject *_wrap_Solver_FalseConstraint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11526 PyObject *resultobj = 0;
11528 std::string *arg2 = 0 ;
11529 void *argp1 = 0 ;
11530 int res1 = 0 ;
11531 int res2 = SWIG_OLDOBJ ;
11532 PyObject * obj0 = 0 ;
11533 PyObject * obj1 = 0 ;
11535
11536 if (!PyArg_UnpackTuple(args, "Solver_FalseConstraint", 2, 2, &obj0, &obj1)) SWIG_fail;
11537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11538 if (!SWIG_IsOK(res1)) {
11539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_FalseConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
11540 }
11541 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11542 {
11543 std::string *ptr = (std::string *)0;
11544 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
11545 if (!SWIG_IsOK(res2)) {
11546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_FalseConstraint" "', argument " "2"" of type '" "std::string const &""'");
11547 }
11548 if (!ptr) {
11549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_FalseConstraint" "', argument " "2"" of type '" "std::string const &""'");
11550 }
11551 arg2 = ptr;
11552 }
11553 {
11554 try {
11555 result = (operations_research::Constraint *)(arg1)->MakeFalseConstraint((std::string const &)*arg2);
11556 }
11557 catch (Swig::DirectorException &e) {
11558 SWIG_fail;
11559 }
11560 }
11562 if (SWIG_IsNewObj(res2)) delete arg2;
11563 return resultobj;
11564fail:
11565 if (SWIG_IsNewObj(res2)) delete arg2;
11566 return NULL;
11567}
11568
11569
11570SWIGINTERN PyObject *_wrap_Solver_FalseConstraint(PyObject *self, PyObject *args) {
11571 Py_ssize_t argc;
11572 PyObject *argv[3] = {
11573 0
11574 };
11575 Py_ssize_t ii;
11576
11577 if (!PyTuple_Check(args)) SWIG_fail;
11578 argc = PyObject_Length(args);
11579 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
11580 argv[ii] = PyTuple_GET_ITEM(args,ii);
11581 }
11582 if (argc == 1) {
11583 int _v;
11584 void *vptr = 0;
11585 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
11586 _v = SWIG_CheckState(res);
11587 if (_v) {
11588 return _wrap_Solver_FalseConstraint__SWIG_0(self, args);
11589 }
11590 }
11591 if (argc == 2) {
11592 int _v;
11593 void *vptr = 0;
11594 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
11595 _v = SWIG_CheckState(res);
11596 if (_v) {
11597 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
11598 _v = SWIG_CheckState(res);
11599 if (_v) {
11600 return _wrap_Solver_FalseConstraint__SWIG_1(self, args);
11601 }
11602 }
11603 }
11604
11605fail:
11606 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_FalseConstraint'.\n"
11607 " Possible C/C++ prototypes are:\n"
11608 " operations_research::Solver::MakeFalseConstraint()\n"
11609 " operations_research::Solver::MakeFalseConstraint(std::string const &)\n");
11610 return 0;
11611}
11612
11613
11614SWIGINTERN PyObject *_wrap_Solver_IsEqualCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11615 PyObject *resultobj = 0;
11618 int64_t arg3 ;
11620 void *argp1 = 0 ;
11621 int res1 = 0 ;
11622 long val3 ;
11623 int ecode3 = 0 ;
11624 PyObject * obj0 = 0 ;
11625 PyObject * obj1 = 0 ;
11626 PyObject * obj2 = 0 ;
11627 PyObject * obj3 = 0 ;
11629
11630 if (!PyArg_UnpackTuple(args, "Solver_IsEqualCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
11631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11632 if (!SWIG_IsOK(res1)) {
11633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsEqualCstCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
11634 }
11635 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11636 {
11637 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
11638 }
11639 ecode3 = SWIG_AsVal_long(obj2, &val3);
11640 if (!SWIG_IsOK(ecode3)) {
11641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IsEqualCstCt" "', argument " "3"" of type '" "int64_t""'");
11642 }
11643 arg3 = static_cast< int64_t >(val3);
11644 {
11645 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
11646 }
11647 {
11648 try {
11649 result = (operations_research::Constraint *)(arg1)->MakeIsEqualCstCt(arg2,arg3,arg4);
11650 }
11651 catch (Swig::DirectorException &e) {
11652 SWIG_fail;
11653 }
11654 }
11656 return resultobj;
11657fail:
11658 return NULL;
11659}
11660
11661
11662SWIGINTERN PyObject *_wrap_Solver_IsEqualCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11663 PyObject *resultobj = 0;
11666 int64_t arg3 ;
11667 void *argp1 = 0 ;
11668 int res1 = 0 ;
11669 long val3 ;
11670 int ecode3 = 0 ;
11671 PyObject * obj0 = 0 ;
11672 PyObject * obj1 = 0 ;
11673 PyObject * obj2 = 0 ;
11674 operations_research::IntVar *result = 0 ;
11675
11676 if (!PyArg_UnpackTuple(args, "Solver_IsEqualCstVar", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
11677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11678 if (!SWIG_IsOK(res1)) {
11679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsEqualCstVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
11680 }
11681 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11682 {
11683 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
11684 }
11685 ecode3 = SWIG_AsVal_long(obj2, &val3);
11686 if (!SWIG_IsOK(ecode3)) {
11687 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IsEqualCstVar" "', argument " "3"" of type '" "int64_t""'");
11688 }
11689 arg3 = static_cast< int64_t >(val3);
11690 {
11691 try {
11692 result = (operations_research::IntVar *)(arg1)->MakeIsEqualCstVar(arg2,arg3);
11693 }
11694 catch (Swig::DirectorException &e) {
11695 SWIG_fail;
11696 }
11697 }
11699 return resultobj;
11700fail:
11701 return NULL;
11702}
11703
11704
11705SWIGINTERN PyObject *_wrap_Solver_IsEqualCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11706 PyObject *resultobj = 0;
11711 void *argp1 = 0 ;
11712 int res1 = 0 ;
11713 void *argp3 = 0 ;
11714 int res3 = 0 ;
11715 PyObject * obj0 = 0 ;
11716 PyObject * obj1 = 0 ;
11717 PyObject * obj2 = 0 ;
11718 PyObject * obj3 = 0 ;
11720
11721 if (!PyArg_UnpackTuple(args, "Solver_IsEqualCt", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
11722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11723 if (!SWIG_IsOK(res1)) {
11724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsEqualCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
11725 }
11726 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11727 {
11728 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
11729 }
11730 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
11731 if (!SWIG_IsOK(res3)) {
11732 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_IsEqualCt" "', argument " "3"" of type '" "operations_research::IntExpr *""'");
11733 }
11734 arg3 = reinterpret_cast< operations_research::IntExpr * >(argp3);
11735 {
11736 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
11737 }
11738 {
11739 try {
11740 result = (operations_research::Constraint *)(arg1)->MakeIsEqualCt(arg2,arg3,arg4);
11741 }
11742 catch (Swig::DirectorException &e) {
11743 SWIG_fail;
11744 }
11745 }
11747 return resultobj;
11748fail:
11749 return NULL;
11750}
11751
11752
11753SWIGINTERN PyObject *_wrap_Solver_IsEqualVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11754 PyObject *resultobj = 0;
11758 void *argp1 = 0 ;
11759 int res1 = 0 ;
11760 void *argp3 = 0 ;
11761 int res3 = 0 ;
11762 PyObject * obj0 = 0 ;
11763 PyObject * obj1 = 0 ;
11764 PyObject * obj2 = 0 ;
11765 operations_research::IntVar *result = 0 ;
11766
11767 if (!PyArg_UnpackTuple(args, "Solver_IsEqualVar", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
11768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11769 if (!SWIG_IsOK(res1)) {
11770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsEqualVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
11771 }
11772 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11773 {
11774 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
11775 }
11776 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
11777 if (!SWIG_IsOK(res3)) {
11778 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_IsEqualVar" "', argument " "3"" of type '" "operations_research::IntExpr *""'");
11779 }
11780 arg3 = reinterpret_cast< operations_research::IntExpr * >(argp3);
11781 {
11782 try {
11783 result = (operations_research::IntVar *)(arg1)->MakeIsEqualVar(arg2,arg3);
11784 }
11785 catch (Swig::DirectorException &e) {
11786 SWIG_fail;
11787 }
11788 }
11790 return resultobj;
11791fail:
11792 return NULL;
11793}
11794
11795
11796SWIGINTERN PyObject *_wrap_Solver_IsDifferentCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11797 PyObject *resultobj = 0;
11800 int64_t arg3 ;
11802 void *argp1 = 0 ;
11803 int res1 = 0 ;
11804 long val3 ;
11805 int ecode3 = 0 ;
11806 PyObject * obj0 = 0 ;
11807 PyObject * obj1 = 0 ;
11808 PyObject * obj2 = 0 ;
11809 PyObject * obj3 = 0 ;
11811
11812 if (!PyArg_UnpackTuple(args, "Solver_IsDifferentCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
11813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11814 if (!SWIG_IsOK(res1)) {
11815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsDifferentCstCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
11816 }
11817 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11818 {
11819 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
11820 }
11821 ecode3 = SWIG_AsVal_long(obj2, &val3);
11822 if (!SWIG_IsOK(ecode3)) {
11823 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IsDifferentCstCt" "', argument " "3"" of type '" "int64_t""'");
11824 }
11825 arg3 = static_cast< int64_t >(val3);
11826 {
11827 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
11828 }
11829 {
11830 try {
11831 result = (operations_research::Constraint *)(arg1)->MakeIsDifferentCstCt(arg2,arg3,arg4);
11832 }
11833 catch (Swig::DirectorException &e) {
11834 SWIG_fail;
11835 }
11836 }
11838 return resultobj;
11839fail:
11840 return NULL;
11841}
11842
11843
11844SWIGINTERN PyObject *_wrap_Solver_IsDifferentCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11845 PyObject *resultobj = 0;
11848 int64_t arg3 ;
11849 void *argp1 = 0 ;
11850 int res1 = 0 ;
11851 long val3 ;
11852 int ecode3 = 0 ;
11853 PyObject * obj0 = 0 ;
11854 PyObject * obj1 = 0 ;
11855 PyObject * obj2 = 0 ;
11856 operations_research::IntVar *result = 0 ;
11857
11858 if (!PyArg_UnpackTuple(args, "Solver_IsDifferentCstVar", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
11859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11860 if (!SWIG_IsOK(res1)) {
11861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsDifferentCstVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
11862 }
11863 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11864 {
11865 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
11866 }
11867 ecode3 = SWIG_AsVal_long(obj2, &val3);
11868 if (!SWIG_IsOK(ecode3)) {
11869 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IsDifferentCstVar" "', argument " "3"" of type '" "int64_t""'");
11870 }
11871 arg3 = static_cast< int64_t >(val3);
11872 {
11873 try {
11874 result = (operations_research::IntVar *)(arg1)->MakeIsDifferentCstVar(arg2,arg3);
11875 }
11876 catch (Swig::DirectorException &e) {
11877 SWIG_fail;
11878 }
11879 }
11881 return resultobj;
11882fail:
11883 return NULL;
11884}
11885
11886
11887SWIGINTERN PyObject *_wrap_Solver_IsDifferentVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11888 PyObject *resultobj = 0;
11892 void *argp1 = 0 ;
11893 int res1 = 0 ;
11894 PyObject * obj0 = 0 ;
11895 PyObject * obj1 = 0 ;
11896 PyObject * obj2 = 0 ;
11897 operations_research::IntVar *result = 0 ;
11898
11899 if (!PyArg_UnpackTuple(args, "Solver_IsDifferentVar", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
11900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11901 if (!SWIG_IsOK(res1)) {
11902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsDifferentVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
11903 }
11904 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11905 {
11906 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
11907 }
11908 {
11909 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
11910 }
11911 {
11912 try {
11913 result = (operations_research::IntVar *)(arg1)->MakeIsDifferentVar(arg2,arg3);
11914 }
11915 catch (Swig::DirectorException &e) {
11916 SWIG_fail;
11917 }
11918 }
11920 return resultobj;
11921fail:
11922 return NULL;
11923}
11924
11925
11926SWIGINTERN PyObject *_wrap_Solver_IsDifferentCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11927 PyObject *resultobj = 0;
11932 void *argp1 = 0 ;
11933 int res1 = 0 ;
11934 PyObject * obj0 = 0 ;
11935 PyObject * obj1 = 0 ;
11936 PyObject * obj2 = 0 ;
11937 PyObject * obj3 = 0 ;
11939
11940 if (!PyArg_UnpackTuple(args, "Solver_IsDifferentCt", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
11941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11942 if (!SWIG_IsOK(res1)) {
11943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsDifferentCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
11944 }
11945 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11946 {
11947 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
11948 }
11949 {
11950 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
11951 }
11952 {
11953 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
11954 }
11955 {
11956 try {
11957 result = (operations_research::Constraint *)(arg1)->MakeIsDifferentCt(arg2,arg3,arg4);
11958 }
11959 catch (Swig::DirectorException &e) {
11960 SWIG_fail;
11961 }
11962 }
11964 return resultobj;
11965fail:
11966 return NULL;
11967}
11968
11969
11970SWIGINTERN PyObject *_wrap_Solver_IsLessOrEqualCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11971 PyObject *resultobj = 0;
11974 int64_t arg3 ;
11976 void *argp1 = 0 ;
11977 int res1 = 0 ;
11978 long val3 ;
11979 int ecode3 = 0 ;
11980 PyObject * obj0 = 0 ;
11981 PyObject * obj1 = 0 ;
11982 PyObject * obj2 = 0 ;
11983 PyObject * obj3 = 0 ;
11985
11986 if (!PyArg_UnpackTuple(args, "Solver_IsLessOrEqualCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
11987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
11988 if (!SWIG_IsOK(res1)) {
11989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsLessOrEqualCstCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
11990 }
11991 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11992 {
11993 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
11994 }
11995 ecode3 = SWIG_AsVal_long(obj2, &val3);
11996 if (!SWIG_IsOK(ecode3)) {
11997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IsLessOrEqualCstCt" "', argument " "3"" of type '" "int64_t""'");
11998 }
11999 arg3 = static_cast< int64_t >(val3);
12000 {
12001 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
12002 }
12003 {
12004 try {
12005 result = (operations_research::Constraint *)(arg1)->MakeIsLessOrEqualCstCt(arg2,arg3,arg4);
12006 }
12007 catch (Swig::DirectorException &e) {
12008 SWIG_fail;
12009 }
12010 }
12012 return resultobj;
12013fail:
12014 return NULL;
12015}
12016
12017
12018SWIGINTERN PyObject *_wrap_Solver_IsLessOrEqualCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12019 PyObject *resultobj = 0;
12022 int64_t arg3 ;
12023 void *argp1 = 0 ;
12024 int res1 = 0 ;
12025 long val3 ;
12026 int ecode3 = 0 ;
12027 PyObject * obj0 = 0 ;
12028 PyObject * obj1 = 0 ;
12029 PyObject * obj2 = 0 ;
12030 operations_research::IntVar *result = 0 ;
12031
12032 if (!PyArg_UnpackTuple(args, "Solver_IsLessOrEqualCstVar", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
12033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12034 if (!SWIG_IsOK(res1)) {
12035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsLessOrEqualCstVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
12036 }
12037 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12038 {
12039 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
12040 }
12041 ecode3 = SWIG_AsVal_long(obj2, &val3);
12042 if (!SWIG_IsOK(ecode3)) {
12043 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IsLessOrEqualCstVar" "', argument " "3"" of type '" "int64_t""'");
12044 }
12045 arg3 = static_cast< int64_t >(val3);
12046 {
12047 try {
12048 result = (operations_research::IntVar *)(arg1)->MakeIsLessOrEqualCstVar(arg2,arg3);
12049 }
12050 catch (Swig::DirectorException &e) {
12051 SWIG_fail;
12052 }
12053 }
12055 return resultobj;
12056fail:
12057 return NULL;
12058}
12059
12060
12061SWIGINTERN PyObject *_wrap_Solver_IsLessOrEqualVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12062 PyObject *resultobj = 0;
12066 void *argp1 = 0 ;
12067 int res1 = 0 ;
12068 PyObject * obj0 = 0 ;
12069 PyObject * obj1 = 0 ;
12070 PyObject * obj2 = 0 ;
12071 operations_research::IntVar *result = 0 ;
12072
12073 if (!PyArg_UnpackTuple(args, "Solver_IsLessOrEqualVar", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
12074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12075 if (!SWIG_IsOK(res1)) {
12076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsLessOrEqualVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
12077 }
12078 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12079 {
12080 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
12081 }
12082 {
12083 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
12084 }
12085 {
12086 try {
12087 result = (operations_research::IntVar *)(arg1)->MakeIsLessOrEqualVar(arg2,arg3);
12088 }
12089 catch (Swig::DirectorException &e) {
12090 SWIG_fail;
12091 }
12092 }
12094 return resultobj;
12095fail:
12096 return NULL;
12097}
12098
12099
12100SWIGINTERN PyObject *_wrap_Solver_IsLessOrEqualCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12101 PyObject *resultobj = 0;
12106 void *argp1 = 0 ;
12107 int res1 = 0 ;
12108 PyObject * obj0 = 0 ;
12109 PyObject * obj1 = 0 ;
12110 PyObject * obj2 = 0 ;
12111 PyObject * obj3 = 0 ;
12113
12114 if (!PyArg_UnpackTuple(args, "Solver_IsLessOrEqualCt", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
12115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12116 if (!SWIG_IsOK(res1)) {
12117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsLessOrEqualCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
12118 }
12119 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12120 {
12121 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
12122 }
12123 {
12124 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
12125 }
12126 {
12127 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
12128 }
12129 {
12130 try {
12131 result = (operations_research::Constraint *)(arg1)->MakeIsLessOrEqualCt(arg2,arg3,arg4);
12132 }
12133 catch (Swig::DirectorException &e) {
12134 SWIG_fail;
12135 }
12136 }
12138 return resultobj;
12139fail:
12140 return NULL;
12141}
12142
12143
12144SWIGINTERN PyObject *_wrap_Solver_IsGreaterOrEqualCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12145 PyObject *resultobj = 0;
12148 int64_t arg3 ;
12150 void *argp1 = 0 ;
12151 int res1 = 0 ;
12152 long val3 ;
12153 int ecode3 = 0 ;
12154 PyObject * obj0 = 0 ;
12155 PyObject * obj1 = 0 ;
12156 PyObject * obj2 = 0 ;
12157 PyObject * obj3 = 0 ;
12159
12160 if (!PyArg_UnpackTuple(args, "Solver_IsGreaterOrEqualCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
12161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12162 if (!SWIG_IsOK(res1)) {
12163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsGreaterOrEqualCstCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
12164 }
12165 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12166 {
12167 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
12168 }
12169 ecode3 = SWIG_AsVal_long(obj2, &val3);
12170 if (!SWIG_IsOK(ecode3)) {
12171 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IsGreaterOrEqualCstCt" "', argument " "3"" of type '" "int64_t""'");
12172 }
12173 arg3 = static_cast< int64_t >(val3);
12174 {
12175 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
12176 }
12177 {
12178 try {
12179 result = (operations_research::Constraint *)(arg1)->MakeIsGreaterOrEqualCstCt(arg2,arg3,arg4);
12180 }
12181 catch (Swig::DirectorException &e) {
12182 SWIG_fail;
12183 }
12184 }
12186 return resultobj;
12187fail:
12188 return NULL;
12189}
12190
12191
12192SWIGINTERN PyObject *_wrap_Solver_IsGreaterOrEqualCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12193 PyObject *resultobj = 0;
12196 int64_t arg3 ;
12197 void *argp1 = 0 ;
12198 int res1 = 0 ;
12199 long val3 ;
12200 int ecode3 = 0 ;
12201 PyObject * obj0 = 0 ;
12202 PyObject * obj1 = 0 ;
12203 PyObject * obj2 = 0 ;
12204 operations_research::IntVar *result = 0 ;
12205
12206 if (!PyArg_UnpackTuple(args, "Solver_IsGreaterOrEqualCstVar", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
12207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12208 if (!SWIG_IsOK(res1)) {
12209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsGreaterOrEqualCstVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
12210 }
12211 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12212 {
12213 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
12214 }
12215 ecode3 = SWIG_AsVal_long(obj2, &val3);
12216 if (!SWIG_IsOK(ecode3)) {
12217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IsGreaterOrEqualCstVar" "', argument " "3"" of type '" "int64_t""'");
12218 }
12219 arg3 = static_cast< int64_t >(val3);
12220 {
12221 try {
12222 result = (operations_research::IntVar *)(arg1)->MakeIsGreaterOrEqualCstVar(arg2,arg3);
12223 }
12224 catch (Swig::DirectorException &e) {
12225 SWIG_fail;
12226 }
12227 }
12229 return resultobj;
12230fail:
12231 return NULL;
12232}
12233
12234
12235SWIGINTERN PyObject *_wrap_Solver_IsGreaterOrEqualVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12236 PyObject *resultobj = 0;
12240 void *argp1 = 0 ;
12241 int res1 = 0 ;
12242 PyObject * obj0 = 0 ;
12243 PyObject * obj1 = 0 ;
12244 PyObject * obj2 = 0 ;
12245 operations_research::IntVar *result = 0 ;
12246
12247 if (!PyArg_UnpackTuple(args, "Solver_IsGreaterOrEqualVar", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
12248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12249 if (!SWIG_IsOK(res1)) {
12250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsGreaterOrEqualVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
12251 }
12252 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12253 {
12254 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
12255 }
12256 {
12257 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
12258 }
12259 {
12260 try {
12261 result = (operations_research::IntVar *)(arg1)->MakeIsGreaterOrEqualVar(arg2,arg3);
12262 }
12263 catch (Swig::DirectorException &e) {
12264 SWIG_fail;
12265 }
12266 }
12268 return resultobj;
12269fail:
12270 return NULL;
12271}
12272
12273
12274SWIGINTERN PyObject *_wrap_Solver_IsGreaterOrEqualCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12275 PyObject *resultobj = 0;
12280 void *argp1 = 0 ;
12281 int res1 = 0 ;
12282 PyObject * obj0 = 0 ;
12283 PyObject * obj1 = 0 ;
12284 PyObject * obj2 = 0 ;
12285 PyObject * obj3 = 0 ;
12287
12288 if (!PyArg_UnpackTuple(args, "Solver_IsGreaterOrEqualCt", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
12289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12290 if (!SWIG_IsOK(res1)) {
12291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsGreaterOrEqualCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
12292 }
12293 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12294 {
12295 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
12296 }
12297 {
12298 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
12299 }
12300 {
12301 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
12302 }
12303 {
12304 try {
12305 result = (operations_research::Constraint *)(arg1)->MakeIsGreaterOrEqualCt(arg2,arg3,arg4);
12306 }
12307 catch (Swig::DirectorException &e) {
12308 SWIG_fail;
12309 }
12310 }
12312 return resultobj;
12313fail:
12314 return NULL;
12315}
12316
12317
12318SWIGINTERN PyObject *_wrap_Solver_IsGreaterCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12319 PyObject *resultobj = 0;
12322 int64_t arg3 ;
12324 void *argp1 = 0 ;
12325 int res1 = 0 ;
12326 long val3 ;
12327 int ecode3 = 0 ;
12328 PyObject * obj0 = 0 ;
12329 PyObject * obj1 = 0 ;
12330 PyObject * obj2 = 0 ;
12331 PyObject * obj3 = 0 ;
12333
12334 if (!PyArg_UnpackTuple(args, "Solver_IsGreaterCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
12335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12336 if (!SWIG_IsOK(res1)) {
12337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsGreaterCstCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
12338 }
12339 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12340 {
12341 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
12342 }
12343 ecode3 = SWIG_AsVal_long(obj2, &val3);
12344 if (!SWIG_IsOK(ecode3)) {
12345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IsGreaterCstCt" "', argument " "3"" of type '" "int64_t""'");
12346 }
12347 arg3 = static_cast< int64_t >(val3);
12348 {
12349 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
12350 }
12351 {
12352 try {
12353 result = (operations_research::Constraint *)(arg1)->MakeIsGreaterCstCt(arg2,arg3,arg4);
12354 }
12355 catch (Swig::DirectorException &e) {
12356 SWIG_fail;
12357 }
12358 }
12360 return resultobj;
12361fail:
12362 return NULL;
12363}
12364
12365
12366SWIGINTERN PyObject *_wrap_Solver_IsGreaterCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12367 PyObject *resultobj = 0;
12370 int64_t arg3 ;
12371 void *argp1 = 0 ;
12372 int res1 = 0 ;
12373 long val3 ;
12374 int ecode3 = 0 ;
12375 PyObject * obj0 = 0 ;
12376 PyObject * obj1 = 0 ;
12377 PyObject * obj2 = 0 ;
12378 operations_research::IntVar *result = 0 ;
12379
12380 if (!PyArg_UnpackTuple(args, "Solver_IsGreaterCstVar", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
12381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12382 if (!SWIG_IsOK(res1)) {
12383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsGreaterCstVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
12384 }
12385 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12386 {
12387 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
12388 }
12389 ecode3 = SWIG_AsVal_long(obj2, &val3);
12390 if (!SWIG_IsOK(ecode3)) {
12391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IsGreaterCstVar" "', argument " "3"" of type '" "int64_t""'");
12392 }
12393 arg3 = static_cast< int64_t >(val3);
12394 {
12395 try {
12396 result = (operations_research::IntVar *)(arg1)->MakeIsGreaterCstVar(arg2,arg3);
12397 }
12398 catch (Swig::DirectorException &e) {
12399 SWIG_fail;
12400 }
12401 }
12403 return resultobj;
12404fail:
12405 return NULL;
12406}
12407
12408
12409SWIGINTERN PyObject *_wrap_Solver_IsGreaterVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12410 PyObject *resultobj = 0;
12414 void *argp1 = 0 ;
12415 int res1 = 0 ;
12416 PyObject * obj0 = 0 ;
12417 PyObject * obj1 = 0 ;
12418 PyObject * obj2 = 0 ;
12419 operations_research::IntVar *result = 0 ;
12420
12421 if (!PyArg_UnpackTuple(args, "Solver_IsGreaterVar", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
12422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12423 if (!SWIG_IsOK(res1)) {
12424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsGreaterVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
12425 }
12426 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12427 {
12428 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
12429 }
12430 {
12431 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
12432 }
12433 {
12434 try {
12435 result = (operations_research::IntVar *)(arg1)->MakeIsGreaterVar(arg2,arg3);
12436 }
12437 catch (Swig::DirectorException &e) {
12438 SWIG_fail;
12439 }
12440 }
12442 return resultobj;
12443fail:
12444 return NULL;
12445}
12446
12447
12448SWIGINTERN PyObject *_wrap_Solver_IsGreaterCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12449 PyObject *resultobj = 0;
12454 void *argp1 = 0 ;
12455 int res1 = 0 ;
12456 PyObject * obj0 = 0 ;
12457 PyObject * obj1 = 0 ;
12458 PyObject * obj2 = 0 ;
12459 PyObject * obj3 = 0 ;
12461
12462 if (!PyArg_UnpackTuple(args, "Solver_IsGreaterCt", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
12463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12464 if (!SWIG_IsOK(res1)) {
12465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsGreaterCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
12466 }
12467 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12468 {
12469 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
12470 }
12471 {
12472 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
12473 }
12474 {
12475 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
12476 }
12477 {
12478 try {
12479 result = (operations_research::Constraint *)(arg1)->MakeIsGreaterCt(arg2,arg3,arg4);
12480 }
12481 catch (Swig::DirectorException &e) {
12482 SWIG_fail;
12483 }
12484 }
12486 return resultobj;
12487fail:
12488 return NULL;
12489}
12490
12491
12492SWIGINTERN PyObject *_wrap_Solver_IsLessCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12493 PyObject *resultobj = 0;
12496 int64_t arg3 ;
12498 void *argp1 = 0 ;
12499 int res1 = 0 ;
12500 long val3 ;
12501 int ecode3 = 0 ;
12502 PyObject * obj0 = 0 ;
12503 PyObject * obj1 = 0 ;
12504 PyObject * obj2 = 0 ;
12505 PyObject * obj3 = 0 ;
12507
12508 if (!PyArg_UnpackTuple(args, "Solver_IsLessCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
12509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12510 if (!SWIG_IsOK(res1)) {
12511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsLessCstCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
12512 }
12513 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12514 {
12515 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
12516 }
12517 ecode3 = SWIG_AsVal_long(obj2, &val3);
12518 if (!SWIG_IsOK(ecode3)) {
12519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IsLessCstCt" "', argument " "3"" of type '" "int64_t""'");
12520 }
12521 arg3 = static_cast< int64_t >(val3);
12522 {
12523 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
12524 }
12525 {
12526 try {
12527 result = (operations_research::Constraint *)(arg1)->MakeIsLessCstCt(arg2,arg3,arg4);
12528 }
12529 catch (Swig::DirectorException &e) {
12530 SWIG_fail;
12531 }
12532 }
12534 return resultobj;
12535fail:
12536 return NULL;
12537}
12538
12539
12540SWIGINTERN PyObject *_wrap_Solver_IsLessCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12541 PyObject *resultobj = 0;
12544 int64_t arg3 ;
12545 void *argp1 = 0 ;
12546 int res1 = 0 ;
12547 long val3 ;
12548 int ecode3 = 0 ;
12549 PyObject * obj0 = 0 ;
12550 PyObject * obj1 = 0 ;
12551 PyObject * obj2 = 0 ;
12552 operations_research::IntVar *result = 0 ;
12553
12554 if (!PyArg_UnpackTuple(args, "Solver_IsLessCstVar", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
12555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12556 if (!SWIG_IsOK(res1)) {
12557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsLessCstVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
12558 }
12559 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12560 {
12561 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
12562 }
12563 ecode3 = SWIG_AsVal_long(obj2, &val3);
12564 if (!SWIG_IsOK(ecode3)) {
12565 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IsLessCstVar" "', argument " "3"" of type '" "int64_t""'");
12566 }
12567 arg3 = static_cast< int64_t >(val3);
12568 {
12569 try {
12570 result = (operations_research::IntVar *)(arg1)->MakeIsLessCstVar(arg2,arg3);
12571 }
12572 catch (Swig::DirectorException &e) {
12573 SWIG_fail;
12574 }
12575 }
12577 return resultobj;
12578fail:
12579 return NULL;
12580}
12581
12582
12583SWIGINTERN PyObject *_wrap_Solver_IsLessVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12584 PyObject *resultobj = 0;
12588 void *argp1 = 0 ;
12589 int res1 = 0 ;
12590 PyObject * obj0 = 0 ;
12591 PyObject * obj1 = 0 ;
12592 PyObject * obj2 = 0 ;
12593 operations_research::IntVar *result = 0 ;
12594
12595 if (!PyArg_UnpackTuple(args, "Solver_IsLessVar", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
12596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12597 if (!SWIG_IsOK(res1)) {
12598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsLessVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
12599 }
12600 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12601 {
12602 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
12603 }
12604 {
12605 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
12606 }
12607 {
12608 try {
12609 result = (operations_research::IntVar *)(arg1)->MakeIsLessVar(arg2,arg3);
12610 }
12611 catch (Swig::DirectorException &e) {
12612 SWIG_fail;
12613 }
12614 }
12616 return resultobj;
12617fail:
12618 return NULL;
12619}
12620
12621
12622SWIGINTERN PyObject *_wrap_Solver_IsLessCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12623 PyObject *resultobj = 0;
12628 void *argp1 = 0 ;
12629 int res1 = 0 ;
12630 PyObject * obj0 = 0 ;
12631 PyObject * obj1 = 0 ;
12632 PyObject * obj2 = 0 ;
12633 PyObject * obj3 = 0 ;
12635
12636 if (!PyArg_UnpackTuple(args, "Solver_IsLessCt", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
12637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12638 if (!SWIG_IsOK(res1)) {
12639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsLessCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
12640 }
12641 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12642 {
12643 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
12644 }
12645 {
12646 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
12647 }
12648 {
12649 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
12650 }
12651 {
12652 try {
12653 result = (operations_research::Constraint *)(arg1)->MakeIsLessCt(arg2,arg3,arg4);
12654 }
12655 catch (Swig::DirectorException &e) {
12656 SWIG_fail;
12657 }
12658 }
12660 return resultobj;
12661fail:
12662 return NULL;
12663}
12664
12665
12666SWIGINTERN PyObject *_wrap_Solver_SumLessOrEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12667 PyObject *resultobj = 0;
12669 std::vector< operations_research::IntVar * > *arg2 = 0 ;
12670 int64_t arg3 ;
12671 void *argp1 = 0 ;
12672 int res1 = 0 ;
12673 std::vector< operations_research::IntVar * > temp2 ;
12674 long val3 ;
12675 int ecode3 = 0 ;
12676 PyObject * obj0 = 0 ;
12677 PyObject * obj1 = 0 ;
12678 PyObject * obj2 = 0 ;
12680
12681 if (!PyArg_UnpackTuple(args, "Solver_SumLessOrEqual", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
12682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12683 if (!SWIG_IsOK(res1)) {
12684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SumLessOrEqual" "', argument " "1"" of type '" "operations_research::Solver *""'");
12685 }
12686 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12687 {
12688 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
12689 if (!PyErr_Occurred())
12690 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
12691 return NULL;
12692 }
12693 arg2 = &temp2;
12694 }
12695 ecode3 = SWIG_AsVal_long(obj2, &val3);
12696 if (!SWIG_IsOK(ecode3)) {
12697 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_SumLessOrEqual" "', argument " "3"" of type '" "int64_t""'");
12698 }
12699 arg3 = static_cast< int64_t >(val3);
12700 {
12701 try {
12702 result = (operations_research::Constraint *)(arg1)->MakeSumLessOrEqual((std::vector< operations_research::IntVar * > const &)*arg2,arg3);
12703 }
12704 catch (Swig::DirectorException &e) {
12705 SWIG_fail;
12706 }
12707 }
12709 return resultobj;
12710fail:
12711 return NULL;
12712}
12713
12714
12715SWIGINTERN PyObject *_wrap_Solver_SumGreaterOrEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12716 PyObject *resultobj = 0;
12718 std::vector< operations_research::IntVar * > *arg2 = 0 ;
12719 int64_t arg3 ;
12720 void *argp1 = 0 ;
12721 int res1 = 0 ;
12722 std::vector< operations_research::IntVar * > temp2 ;
12723 long val3 ;
12724 int ecode3 = 0 ;
12725 PyObject * obj0 = 0 ;
12726 PyObject * obj1 = 0 ;
12727 PyObject * obj2 = 0 ;
12729
12730 if (!PyArg_UnpackTuple(args, "Solver_SumGreaterOrEqual", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
12731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12732 if (!SWIG_IsOK(res1)) {
12733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SumGreaterOrEqual" "', argument " "1"" of type '" "operations_research::Solver *""'");
12734 }
12735 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12736 {
12737 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
12738 if (!PyErr_Occurred())
12739 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
12740 return NULL;
12741 }
12742 arg2 = &temp2;
12743 }
12744 ecode3 = SWIG_AsVal_long(obj2, &val3);
12745 if (!SWIG_IsOK(ecode3)) {
12746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_SumGreaterOrEqual" "', argument " "3"" of type '" "int64_t""'");
12747 }
12748 arg3 = static_cast< int64_t >(val3);
12749 {
12750 try {
12751 result = (operations_research::Constraint *)(arg1)->MakeSumGreaterOrEqual((std::vector< operations_research::IntVar * > const &)*arg2,arg3);
12752 }
12753 catch (Swig::DirectorException &e) {
12754 SWIG_fail;
12755 }
12756 }
12758 return resultobj;
12759fail:
12760 return NULL;
12761}
12762
12763
12764SWIGINTERN PyObject *_wrap_Solver_SumEquality__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12765 PyObject *resultobj = 0;
12767 std::vector< operations_research::IntVar * > *arg2 = 0 ;
12768 int64_t arg3 ;
12769 void *argp1 = 0 ;
12770 int res1 = 0 ;
12771 std::vector< operations_research::IntVar * > temp2 ;
12772 long val3 ;
12773 int ecode3 = 0 ;
12774 PyObject * obj0 = 0 ;
12775 PyObject * obj1 = 0 ;
12776 PyObject * obj2 = 0 ;
12778
12779 if (!PyArg_UnpackTuple(args, "Solver_SumEquality", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
12780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12781 if (!SWIG_IsOK(res1)) {
12782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SumEquality" "', argument " "1"" of type '" "operations_research::Solver *""'");
12783 }
12784 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12785 {
12786 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
12787 if (!PyErr_Occurred())
12788 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
12789 return NULL;
12790 }
12791 arg2 = &temp2;
12792 }
12793 ecode3 = SWIG_AsVal_long(obj2, &val3);
12794 if (!SWIG_IsOK(ecode3)) {
12795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_SumEquality" "', argument " "3"" of type '" "int64_t""'");
12796 }
12797 arg3 = static_cast< int64_t >(val3);
12798 {
12799 try {
12800 result = (operations_research::Constraint *)(arg1)->MakeSumEquality((std::vector< operations_research::IntVar * > const &)*arg2,arg3);
12801 }
12802 catch (Swig::DirectorException &e) {
12803 SWIG_fail;
12804 }
12805 }
12807 return resultobj;
12808fail:
12809 return NULL;
12810}
12811
12812
12813SWIGINTERN PyObject *_wrap_Solver_SumEquality__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12814 PyObject *resultobj = 0;
12816 std::vector< operations_research::IntVar * > *arg2 = 0 ;
12818 void *argp1 = 0 ;
12819 int res1 = 0 ;
12820 std::vector< operations_research::IntVar * > temp2 ;
12821 PyObject * obj0 = 0 ;
12822 PyObject * obj1 = 0 ;
12823 PyObject * obj2 = 0 ;
12825
12826 if (!PyArg_UnpackTuple(args, "Solver_SumEquality", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
12827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12828 if (!SWIG_IsOK(res1)) {
12829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SumEquality" "', argument " "1"" of type '" "operations_research::Solver *""'");
12830 }
12831 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12832 {
12833 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
12834 if (!PyErr_Occurred())
12835 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
12836 return NULL;
12837 }
12838 arg2 = &temp2;
12839 }
12840 {
12841 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
12842 }
12843 {
12844 try {
12845 result = (operations_research::Constraint *)(arg1)->MakeSumEquality((std::vector< operations_research::IntVar * > const &)*arg2,arg3);
12846 }
12847 catch (Swig::DirectorException &e) {
12848 SWIG_fail;
12849 }
12850 }
12852 return resultobj;
12853fail:
12854 return NULL;
12855}
12856
12857
12858SWIGINTERN PyObject *_wrap_Solver_SumEquality(PyObject *self, PyObject *args) {
12859 Py_ssize_t argc;
12860 PyObject *argv[4] = {
12861 0
12862 };
12863 Py_ssize_t ii;
12864
12865 if (!PyTuple_Check(args)) SWIG_fail;
12866 argc = PyObject_Length(args);
12867 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
12868 argv[ii] = PyTuple_GET_ITEM(args,ii);
12869 }
12870 if (argc == 3) {
12871 int _v;
12872 void *vptr = 0;
12873 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
12874 _v = SWIG_CheckState(res);
12875 if (_v) {
12876 {
12877 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
12878 _v = 0;
12879 } else {
12880 const bool is_tuple = PyTuple_Check(argv[1]);
12881 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
12882 size_t i = 0;
12883 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
12884 :PyList_GetItem(argv[1], i))) {
12885 ++i;
12886 }
12887 _v = i == size;
12888 }
12889 }
12890 if (_v) {
12891 {
12892 _v = CanConvertToIntVar(argv[2]);
12893 if (_v == 0) PyErr_Clear();
12894 }
12895 if (_v) {
12896 return _wrap_Solver_SumEquality__SWIG_1(self, args);
12897 }
12898 }
12899 }
12900 }
12901 if (argc == 3) {
12902 int _v;
12903 void *vptr = 0;
12904 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
12905 _v = SWIG_CheckState(res);
12906 if (_v) {
12907 {
12908 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
12909 _v = 0;
12910 } else {
12911 const bool is_tuple = PyTuple_Check(argv[1]);
12912 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
12913 size_t i = 0;
12914 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
12915 :PyList_GetItem(argv[1], i))) {
12916 ++i;
12917 }
12918 _v = i == size;
12919 }
12920 }
12921 if (_v) {
12922 {
12923 int res = SWIG_AsVal_long(argv[2], NULL);
12924 _v = SWIG_CheckState(res);
12925 }
12926 if (_v) {
12927 return _wrap_Solver_SumEquality__SWIG_0(self, args);
12928 }
12929 }
12930 }
12931 }
12932
12933fail:
12934 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_SumEquality'.\n"
12935 " Possible C/C++ prototypes are:\n"
12936 " operations_research::Solver::MakeSumEquality(std::vector< operations_research::IntVar * > const &,int64_t)\n"
12937 " operations_research::Solver::MakeSumEquality(std::vector< operations_research::IntVar * > const &,operations_research::IntVar *const)\n");
12938 return 0;
12939}
12940
12941
12942SWIGINTERN PyObject *_wrap_Solver_ScalProdEquality__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12943 PyObject *resultobj = 0;
12945 std::vector< operations_research::IntVar * > *arg2 = 0 ;
12946 std::vector< int64_t > *arg3 = 0 ;
12947 int64_t arg4 ;
12948 void *argp1 = 0 ;
12949 int res1 = 0 ;
12950 std::vector< operations_research::IntVar * > temp2 ;
12951 std::vector< int64_t > temp3 ;
12952 long val4 ;
12953 int ecode4 = 0 ;
12954 PyObject * obj0 = 0 ;
12955 PyObject * obj1 = 0 ;
12956 PyObject * obj2 = 0 ;
12957 PyObject * obj3 = 0 ;
12959
12960 if (!PyArg_UnpackTuple(args, "Solver_ScalProdEquality", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
12961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
12962 if (!SWIG_IsOK(res1)) {
12963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ScalProdEquality" "', argument " "1"" of type '" "operations_research::Solver *""'");
12964 }
12965 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12966 {
12967 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
12968 if (!PyErr_Occurred())
12969 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
12970 return NULL;
12971 }
12972 arg2 = &temp2;
12973 }
12974 {
12975 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
12976 if (!PyErr_Occurred())
12977 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
12978 return NULL;
12979 }
12980 arg3 = &temp3;
12981 }
12982 ecode4 = SWIG_AsVal_long(obj3, &val4);
12983 if (!SWIG_IsOK(ecode4)) {
12984 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_ScalProdEquality" "', argument " "4"" of type '" "int64_t""'");
12985 }
12986 arg4 = static_cast< int64_t >(val4);
12987 {
12988 try {
12989 result = (operations_research::Constraint *)(arg1)->MakeScalProdEquality((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int64_t > const &)*arg3,arg4);
12990 }
12991 catch (Swig::DirectorException &e) {
12992 SWIG_fail;
12993 }
12994 }
12996 return resultobj;
12997fail:
12998 return NULL;
12999}
13000
13001
13002SWIGINTERN PyObject *_wrap_Solver_ScalProdEquality__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13003 PyObject *resultobj = 0;
13005 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13006 std::vector< int > *arg3 = 0 ;
13007 int64_t arg4 ;
13008 void *argp1 = 0 ;
13009 int res1 = 0 ;
13010 std::vector< operations_research::IntVar * > temp2 ;
13011 std::vector< int > temp3 ;
13012 long val4 ;
13013 int ecode4 = 0 ;
13014 PyObject * obj0 = 0 ;
13015 PyObject * obj1 = 0 ;
13016 PyObject * obj2 = 0 ;
13017 PyObject * obj3 = 0 ;
13019
13020 if (!PyArg_UnpackTuple(args, "Solver_ScalProdEquality", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
13021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
13022 if (!SWIG_IsOK(res1)) {
13023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ScalProdEquality" "', argument " "1"" of type '" "operations_research::Solver *""'");
13024 }
13025 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13026 {
13027 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13028 if (!PyErr_Occurred())
13029 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
13030 return NULL;
13031 }
13032 arg2 = &temp2;
13033 }
13034 {
13035 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
13036 if (!PyErr_Occurred())
13037 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
13038 return NULL;
13039 }
13040 arg3 = &temp3;
13041 }
13042 ecode4 = SWIG_AsVal_long(obj3, &val4);
13043 if (!SWIG_IsOK(ecode4)) {
13044 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_ScalProdEquality" "', argument " "4"" of type '" "int64_t""'");
13045 }
13046 arg4 = static_cast< int64_t >(val4);
13047 {
13048 try {
13049 result = (operations_research::Constraint *)(arg1)->MakeScalProdEquality((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int > const &)*arg3,arg4);
13050 }
13051 catch (Swig::DirectorException &e) {
13052 SWIG_fail;
13053 }
13054 }
13056 return resultobj;
13057fail:
13058 return NULL;
13059}
13060
13061
13062SWIGINTERN PyObject *_wrap_Solver_ScalProdEquality__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13063 PyObject *resultobj = 0;
13065 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13066 std::vector< int64_t > *arg3 = 0 ;
13068 void *argp1 = 0 ;
13069 int res1 = 0 ;
13070 std::vector< operations_research::IntVar * > temp2 ;
13071 std::vector< int64_t > temp3 ;
13072 PyObject * obj0 = 0 ;
13073 PyObject * obj1 = 0 ;
13074 PyObject * obj2 = 0 ;
13075 PyObject * obj3 = 0 ;
13077
13078 if (!PyArg_UnpackTuple(args, "Solver_ScalProdEquality", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
13079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
13080 if (!SWIG_IsOK(res1)) {
13081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ScalProdEquality" "', argument " "1"" of type '" "operations_research::Solver *""'");
13082 }
13083 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13084 {
13085 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13086 if (!PyErr_Occurred())
13087 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
13088 return NULL;
13089 }
13090 arg2 = &temp2;
13091 }
13092 {
13093 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
13094 if (!PyErr_Occurred())
13095 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
13096 return NULL;
13097 }
13098 arg3 = &temp3;
13099 }
13100 {
13101 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
13102 }
13103 {
13104 try {
13105 result = (operations_research::Constraint *)(arg1)->MakeScalProdEquality((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int64_t > const &)*arg3,arg4);
13106 }
13107 catch (Swig::DirectorException &e) {
13108 SWIG_fail;
13109 }
13110 }
13112 return resultobj;
13113fail:
13114 return NULL;
13115}
13116
13117
13118SWIGINTERN PyObject *_wrap_Solver_ScalProdEquality__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13119 PyObject *resultobj = 0;
13121 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13122 std::vector< int > *arg3 = 0 ;
13124 void *argp1 = 0 ;
13125 int res1 = 0 ;
13126 std::vector< operations_research::IntVar * > temp2 ;
13127 std::vector< int > temp3 ;
13128 PyObject * obj0 = 0 ;
13129 PyObject * obj1 = 0 ;
13130 PyObject * obj2 = 0 ;
13131 PyObject * obj3 = 0 ;
13133
13134 if (!PyArg_UnpackTuple(args, "Solver_ScalProdEquality", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
13135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
13136 if (!SWIG_IsOK(res1)) {
13137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ScalProdEquality" "', argument " "1"" of type '" "operations_research::Solver *""'");
13138 }
13139 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13140 {
13141 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13142 if (!PyErr_Occurred())
13143 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
13144 return NULL;
13145 }
13146 arg2 = &temp2;
13147 }
13148 {
13149 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
13150 if (!PyErr_Occurred())
13151 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
13152 return NULL;
13153 }
13154 arg3 = &temp3;
13155 }
13156 {
13157 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
13158 }
13159 {
13160 try {
13161 result = (operations_research::Constraint *)(arg1)->MakeScalProdEquality((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int > const &)*arg3,arg4);
13162 }
13163 catch (Swig::DirectorException &e) {
13164 SWIG_fail;
13165 }
13166 }
13168 return resultobj;
13169fail:
13170 return NULL;
13171}
13172
13173
13174SWIGINTERN PyObject *_wrap_Solver_ScalProdEquality(PyObject *self, PyObject *args) {
13175 Py_ssize_t argc;
13176 PyObject *argv[5] = {
13177 0
13178 };
13179 Py_ssize_t ii;
13180
13181 if (!PyTuple_Check(args)) SWIG_fail;
13182 argc = PyObject_Length(args);
13183 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
13184 argv[ii] = PyTuple_GET_ITEM(args,ii);
13185 }
13186 if (argc == 4) {
13187 int _v;
13188 void *vptr = 0;
13189 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
13190 _v = SWIG_CheckState(res);
13191 if (_v) {
13192 {
13193 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13194 _v = 0;
13195 } else {
13196 const bool is_tuple = PyTuple_Check(argv[1]);
13197 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13198 size_t i = 0;
13199 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
13200 :PyList_GetItem(argv[1], i))) {
13201 ++i;
13202 }
13203 _v = i == size;
13204 }
13205 }
13206 if (_v) {
13207 {
13208 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13209 _v = 0;
13210 } else {
13211 const bool is_tuple = PyTuple_Check(argv[2]);
13212 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13213 size_t i = 0;
13214 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13215 :PyList_GetItem(argv[2], i))) {
13216 ++i;
13217 }
13218 _v = i == size;
13219 }
13220 }
13221 if (_v) {
13222 {
13223 _v = CanConvertToIntVar(argv[3]);
13224 if (_v == 0) PyErr_Clear();
13225 }
13226 if (_v) {
13227 return _wrap_Solver_ScalProdEquality__SWIG_2(self, args);
13228 }
13229 }
13230 }
13231 }
13232 }
13233 if (argc == 4) {
13234 int _v;
13235 void *vptr = 0;
13236 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
13237 _v = SWIG_CheckState(res);
13238 if (_v) {
13239 {
13240 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13241 _v = 0;
13242 } else {
13243 const bool is_tuple = PyTuple_Check(argv[1]);
13244 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13245 size_t i = 0;
13246 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
13247 :PyList_GetItem(argv[1], i))) {
13248 ++i;
13249 }
13250 _v = i == size;
13251 }
13252 }
13253 if (_v) {
13254 {
13255 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13256 _v = 0;
13257 } else {
13258 const bool is_tuple = PyTuple_Check(argv[2]);
13259 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13260 size_t i = 0;
13261 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13262 :PyList_GetItem(argv[2], i))) {
13263 ++i;
13264 }
13265 _v = i == size;
13266 }
13267 }
13268 if (_v) {
13269 {
13270 _v = CanConvertToIntVar(argv[3]);
13271 if (_v == 0) PyErr_Clear();
13272 }
13273 if (_v) {
13274 return _wrap_Solver_ScalProdEquality__SWIG_3(self, args);
13275 }
13276 }
13277 }
13278 }
13279 }
13280 if (argc == 4) {
13281 int _v;
13282 void *vptr = 0;
13283 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
13284 _v = SWIG_CheckState(res);
13285 if (_v) {
13286 {
13287 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13288 _v = 0;
13289 } else {
13290 const bool is_tuple = PyTuple_Check(argv[1]);
13291 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13292 size_t i = 0;
13293 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
13294 :PyList_GetItem(argv[1], i))) {
13295 ++i;
13296 }
13297 _v = i == size;
13298 }
13299 }
13300 if (_v) {
13301 {
13302 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13303 _v = 0;
13304 } else {
13305 const bool is_tuple = PyTuple_Check(argv[2]);
13306 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13307 size_t i = 0;
13308 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13309 :PyList_GetItem(argv[2], i))) {
13310 ++i;
13311 }
13312 _v = i == size;
13313 }
13314 }
13315 if (_v) {
13316 {
13317 int res = SWIG_AsVal_long(argv[3], NULL);
13318 _v = SWIG_CheckState(res);
13319 }
13320 if (_v) {
13321 return _wrap_Solver_ScalProdEquality__SWIG_0(self, args);
13322 }
13323 }
13324 }
13325 }
13326 }
13327 if (argc == 4) {
13328 int _v;
13329 void *vptr = 0;
13330 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
13331 _v = SWIG_CheckState(res);
13332 if (_v) {
13333 {
13334 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13335 _v = 0;
13336 } else {
13337 const bool is_tuple = PyTuple_Check(argv[1]);
13338 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13339 size_t i = 0;
13340 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
13341 :PyList_GetItem(argv[1], i))) {
13342 ++i;
13343 }
13344 _v = i == size;
13345 }
13346 }
13347 if (_v) {
13348 {
13349 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13350 _v = 0;
13351 } else {
13352 const bool is_tuple = PyTuple_Check(argv[2]);
13353 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13354 size_t i = 0;
13355 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13356 :PyList_GetItem(argv[2], i))) {
13357 ++i;
13358 }
13359 _v = i == size;
13360 }
13361 }
13362 if (_v) {
13363 {
13364 int res = SWIG_AsVal_long(argv[3], NULL);
13365 _v = SWIG_CheckState(res);
13366 }
13367 if (_v) {
13368 return _wrap_Solver_ScalProdEquality__SWIG_1(self, args);
13369 }
13370 }
13371 }
13372 }
13373 }
13374
13375fail:
13376 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_ScalProdEquality'.\n"
13377 " Possible C/C++ prototypes are:\n"
13378 " operations_research::Solver::MakeScalProdEquality(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,int64_t)\n"
13379 " operations_research::Solver::MakeScalProdEquality(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,int64_t)\n"
13380 " operations_research::Solver::MakeScalProdEquality(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,operations_research::IntVar *const)\n"
13381 " operations_research::Solver::MakeScalProdEquality(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,operations_research::IntVar *const)\n");
13382 return 0;
13383}
13384
13385
13387 PyObject *resultobj = 0;
13389 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13390 std::vector< int64_t > *arg3 = 0 ;
13391 int64_t arg4 ;
13392 void *argp1 = 0 ;
13393 int res1 = 0 ;
13394 std::vector< operations_research::IntVar * > temp2 ;
13395 std::vector< int64_t > temp3 ;
13396 long val4 ;
13397 int ecode4 = 0 ;
13398 PyObject * obj0 = 0 ;
13399 PyObject * obj1 = 0 ;
13400 PyObject * obj2 = 0 ;
13401 PyObject * obj3 = 0 ;
13403
13404 if (!PyArg_UnpackTuple(args, "Solver_ScalProdGreaterOrEqual", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
13405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
13406 if (!SWIG_IsOK(res1)) {
13407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ScalProdGreaterOrEqual" "', argument " "1"" of type '" "operations_research::Solver *""'");
13408 }
13409 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13410 {
13411 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13412 if (!PyErr_Occurred())
13413 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
13414 return NULL;
13415 }
13416 arg2 = &temp2;
13417 }
13418 {
13419 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
13420 if (!PyErr_Occurred())
13421 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
13422 return NULL;
13423 }
13424 arg3 = &temp3;
13425 }
13426 ecode4 = SWIG_AsVal_long(obj3, &val4);
13427 if (!SWIG_IsOK(ecode4)) {
13428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_ScalProdGreaterOrEqual" "', argument " "4"" of type '" "int64_t""'");
13429 }
13430 arg4 = static_cast< int64_t >(val4);
13431 {
13432 try {
13433 result = (operations_research::Constraint *)(arg1)->MakeScalProdGreaterOrEqual((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int64_t > const &)*arg3,arg4);
13434 }
13435 catch (Swig::DirectorException &e) {
13436 SWIG_fail;
13437 }
13438 }
13440 return resultobj;
13441fail:
13442 return NULL;
13443}
13444
13445
13447 PyObject *resultobj = 0;
13449 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13450 std::vector< int > *arg3 = 0 ;
13451 int64_t arg4 ;
13452 void *argp1 = 0 ;
13453 int res1 = 0 ;
13454 std::vector< operations_research::IntVar * > temp2 ;
13455 std::vector< int > temp3 ;
13456 long val4 ;
13457 int ecode4 = 0 ;
13458 PyObject * obj0 = 0 ;
13459 PyObject * obj1 = 0 ;
13460 PyObject * obj2 = 0 ;
13461 PyObject * obj3 = 0 ;
13463
13464 if (!PyArg_UnpackTuple(args, "Solver_ScalProdGreaterOrEqual", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
13465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
13466 if (!SWIG_IsOK(res1)) {
13467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ScalProdGreaterOrEqual" "', argument " "1"" of type '" "operations_research::Solver *""'");
13468 }
13469 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13470 {
13471 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13472 if (!PyErr_Occurred())
13473 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
13474 return NULL;
13475 }
13476 arg2 = &temp2;
13477 }
13478 {
13479 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
13480 if (!PyErr_Occurred())
13481 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
13482 return NULL;
13483 }
13484 arg3 = &temp3;
13485 }
13486 ecode4 = SWIG_AsVal_long(obj3, &val4);
13487 if (!SWIG_IsOK(ecode4)) {
13488 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_ScalProdGreaterOrEqual" "', argument " "4"" of type '" "int64_t""'");
13489 }
13490 arg4 = static_cast< int64_t >(val4);
13491 {
13492 try {
13493 result = (operations_research::Constraint *)(arg1)->MakeScalProdGreaterOrEqual((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int > const &)*arg3,arg4);
13494 }
13495 catch (Swig::DirectorException &e) {
13496 SWIG_fail;
13497 }
13498 }
13500 return resultobj;
13501fail:
13502 return NULL;
13503}
13504
13505
13506SWIGINTERN PyObject *_wrap_Solver_ScalProdGreaterOrEqual(PyObject *self, PyObject *args) {
13507 Py_ssize_t argc;
13508 PyObject *argv[5] = {
13509 0
13510 };
13511 Py_ssize_t ii;
13512
13513 if (!PyTuple_Check(args)) SWIG_fail;
13514 argc = PyObject_Length(args);
13515 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
13516 argv[ii] = PyTuple_GET_ITEM(args,ii);
13517 }
13518 if (argc == 4) {
13519 int _v;
13520 void *vptr = 0;
13521 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
13522 _v = SWIG_CheckState(res);
13523 if (_v) {
13524 {
13525 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13526 _v = 0;
13527 } else {
13528 const bool is_tuple = PyTuple_Check(argv[1]);
13529 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13530 size_t i = 0;
13531 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
13532 :PyList_GetItem(argv[1], i))) {
13533 ++i;
13534 }
13535 _v = i == size;
13536 }
13537 }
13538 if (_v) {
13539 {
13540 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13541 _v = 0;
13542 } else {
13543 const bool is_tuple = PyTuple_Check(argv[2]);
13544 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13545 size_t i = 0;
13546 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13547 :PyList_GetItem(argv[2], i))) {
13548 ++i;
13549 }
13550 _v = i == size;
13551 }
13552 }
13553 if (_v) {
13554 {
13555 int res = SWIG_AsVal_long(argv[3], NULL);
13556 _v = SWIG_CheckState(res);
13557 }
13558 if (_v) {
13560 }
13561 }
13562 }
13563 }
13564 }
13565 if (argc == 4) {
13566 int _v;
13567 void *vptr = 0;
13568 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
13569 _v = SWIG_CheckState(res);
13570 if (_v) {
13571 {
13572 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13573 _v = 0;
13574 } else {
13575 const bool is_tuple = PyTuple_Check(argv[1]);
13576 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13577 size_t i = 0;
13578 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
13579 :PyList_GetItem(argv[1], i))) {
13580 ++i;
13581 }
13582 _v = i == size;
13583 }
13584 }
13585 if (_v) {
13586 {
13587 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13588 _v = 0;
13589 } else {
13590 const bool is_tuple = PyTuple_Check(argv[2]);
13591 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13592 size_t i = 0;
13593 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13594 :PyList_GetItem(argv[2], i))) {
13595 ++i;
13596 }
13597 _v = i == size;
13598 }
13599 }
13600 if (_v) {
13601 {
13602 int res = SWIG_AsVal_long(argv[3], NULL);
13603 _v = SWIG_CheckState(res);
13604 }
13605 if (_v) {
13607 }
13608 }
13609 }
13610 }
13611 }
13612
13613fail:
13614 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_ScalProdGreaterOrEqual'.\n"
13615 " Possible C/C++ prototypes are:\n"
13616 " operations_research::Solver::MakeScalProdGreaterOrEqual(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,int64_t)\n"
13617 " operations_research::Solver::MakeScalProdGreaterOrEqual(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,int64_t)\n");
13618 return 0;
13619}
13620
13621
13622SWIGINTERN PyObject *_wrap_Solver_ScalProdLessOrEqual__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13623 PyObject *resultobj = 0;
13625 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13626 std::vector< int64_t > *arg3 = 0 ;
13627 int64_t arg4 ;
13628 void *argp1 = 0 ;
13629 int res1 = 0 ;
13630 std::vector< operations_research::IntVar * > temp2 ;
13631 std::vector< int64_t > temp3 ;
13632 long val4 ;
13633 int ecode4 = 0 ;
13634 PyObject * obj0 = 0 ;
13635 PyObject * obj1 = 0 ;
13636 PyObject * obj2 = 0 ;
13637 PyObject * obj3 = 0 ;
13639
13640 if (!PyArg_UnpackTuple(args, "Solver_ScalProdLessOrEqual", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
13641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
13642 if (!SWIG_IsOK(res1)) {
13643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ScalProdLessOrEqual" "', argument " "1"" of type '" "operations_research::Solver *""'");
13644 }
13645 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13646 {
13647 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13648 if (!PyErr_Occurred())
13649 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
13650 return NULL;
13651 }
13652 arg2 = &temp2;
13653 }
13654 {
13655 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
13656 if (!PyErr_Occurred())
13657 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
13658 return NULL;
13659 }
13660 arg3 = &temp3;
13661 }
13662 ecode4 = SWIG_AsVal_long(obj3, &val4);
13663 if (!SWIG_IsOK(ecode4)) {
13664 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_ScalProdLessOrEqual" "', argument " "4"" of type '" "int64_t""'");
13665 }
13666 arg4 = static_cast< int64_t >(val4);
13667 {
13668 try {
13669 result = (operations_research::Constraint *)(arg1)->MakeScalProdLessOrEqual((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int64_t > const &)*arg3,arg4);
13670 }
13671 catch (Swig::DirectorException &e) {
13672 SWIG_fail;
13673 }
13674 }
13676 return resultobj;
13677fail:
13678 return NULL;
13679}
13680
13681
13682SWIGINTERN PyObject *_wrap_Solver_ScalProdLessOrEqual__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13683 PyObject *resultobj = 0;
13685 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13686 std::vector< int > *arg3 = 0 ;
13687 int64_t arg4 ;
13688 void *argp1 = 0 ;
13689 int res1 = 0 ;
13690 std::vector< operations_research::IntVar * > temp2 ;
13691 std::vector< int > temp3 ;
13692 long val4 ;
13693 int ecode4 = 0 ;
13694 PyObject * obj0 = 0 ;
13695 PyObject * obj1 = 0 ;
13696 PyObject * obj2 = 0 ;
13697 PyObject * obj3 = 0 ;
13699
13700 if (!PyArg_UnpackTuple(args, "Solver_ScalProdLessOrEqual", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
13701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
13702 if (!SWIG_IsOK(res1)) {
13703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ScalProdLessOrEqual" "', argument " "1"" of type '" "operations_research::Solver *""'");
13704 }
13705 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13706 {
13707 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13708 if (!PyErr_Occurred())
13709 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
13710 return NULL;
13711 }
13712 arg2 = &temp2;
13713 }
13714 {
13715 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
13716 if (!PyErr_Occurred())
13717 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
13718 return NULL;
13719 }
13720 arg3 = &temp3;
13721 }
13722 ecode4 = SWIG_AsVal_long(obj3, &val4);
13723 if (!SWIG_IsOK(ecode4)) {
13724 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_ScalProdLessOrEqual" "', argument " "4"" of type '" "int64_t""'");
13725 }
13726 arg4 = static_cast< int64_t >(val4);
13727 {
13728 try {
13729 result = (operations_research::Constraint *)(arg1)->MakeScalProdLessOrEqual((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int > const &)*arg3,arg4);
13730 }
13731 catch (Swig::DirectorException &e) {
13732 SWIG_fail;
13733 }
13734 }
13736 return resultobj;
13737fail:
13738 return NULL;
13739}
13740
13741
13742SWIGINTERN PyObject *_wrap_Solver_ScalProdLessOrEqual(PyObject *self, PyObject *args) {
13743 Py_ssize_t argc;
13744 PyObject *argv[5] = {
13745 0
13746 };
13747 Py_ssize_t ii;
13748
13749 if (!PyTuple_Check(args)) SWIG_fail;
13750 argc = PyObject_Length(args);
13751 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
13752 argv[ii] = PyTuple_GET_ITEM(args,ii);
13753 }
13754 if (argc == 4) {
13755 int _v;
13756 void *vptr = 0;
13757 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
13758 _v = SWIG_CheckState(res);
13759 if (_v) {
13760 {
13761 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13762 _v = 0;
13763 } else {
13764 const bool is_tuple = PyTuple_Check(argv[1]);
13765 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13766 size_t i = 0;
13767 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
13768 :PyList_GetItem(argv[1], i))) {
13769 ++i;
13770 }
13771 _v = i == size;
13772 }
13773 }
13774 if (_v) {
13775 {
13776 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13777 _v = 0;
13778 } else {
13779 const bool is_tuple = PyTuple_Check(argv[2]);
13780 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13781 size_t i = 0;
13782 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13783 :PyList_GetItem(argv[2], i))) {
13784 ++i;
13785 }
13786 _v = i == size;
13787 }
13788 }
13789 if (_v) {
13790 {
13791 int res = SWIG_AsVal_long(argv[3], NULL);
13792 _v = SWIG_CheckState(res);
13793 }
13794 if (_v) {
13796 }
13797 }
13798 }
13799 }
13800 }
13801 if (argc == 4) {
13802 int _v;
13803 void *vptr = 0;
13804 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
13805 _v = SWIG_CheckState(res);
13806 if (_v) {
13807 {
13808 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13809 _v = 0;
13810 } else {
13811 const bool is_tuple = PyTuple_Check(argv[1]);
13812 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13813 size_t i = 0;
13814 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
13815 :PyList_GetItem(argv[1], i))) {
13816 ++i;
13817 }
13818 _v = i == size;
13819 }
13820 }
13821 if (_v) {
13822 {
13823 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13824 _v = 0;
13825 } else {
13826 const bool is_tuple = PyTuple_Check(argv[2]);
13827 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13828 size_t i = 0;
13829 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13830 :PyList_GetItem(argv[2], i))) {
13831 ++i;
13832 }
13833 _v = i == size;
13834 }
13835 }
13836 if (_v) {
13837 {
13838 int res = SWIG_AsVal_long(argv[3], NULL);
13839 _v = SWIG_CheckState(res);
13840 }
13841 if (_v) {
13843 }
13844 }
13845 }
13846 }
13847 }
13848
13849fail:
13850 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_ScalProdLessOrEqual'.\n"
13851 " Possible C/C++ prototypes are:\n"
13852 " operations_research::Solver::MakeScalProdLessOrEqual(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,int64_t)\n"
13853 " operations_research::Solver::MakeScalProdLessOrEqual(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,int64_t)\n");
13854 return 0;
13855}
13856
13857
13858SWIGINTERN PyObject *_wrap_Solver_MinEquality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13859 PyObject *resultobj = 0;
13861 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13863 void *argp1 = 0 ;
13864 int res1 = 0 ;
13865 std::vector< operations_research::IntVar * > temp2 ;
13866 PyObject * obj0 = 0 ;
13867 PyObject * obj1 = 0 ;
13868 PyObject * obj2 = 0 ;
13870
13871 if (!PyArg_UnpackTuple(args, "Solver_MinEquality", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
13872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
13873 if (!SWIG_IsOK(res1)) {
13874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_MinEquality" "', argument " "1"" of type '" "operations_research::Solver *""'");
13875 }
13876 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13877 {
13878 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13879 if (!PyErr_Occurred())
13880 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
13881 return NULL;
13882 }
13883 arg2 = &temp2;
13884 }
13885 {
13886 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
13887 }
13888 {
13889 try {
13890 result = (operations_research::Constraint *)(arg1)->MakeMinEquality((std::vector< operations_research::IntVar * > const &)*arg2,arg3);
13891 }
13892 catch (Swig::DirectorException &e) {
13893 SWIG_fail;
13894 }
13895 }
13897 return resultobj;
13898fail:
13899 return NULL;
13900}
13901
13902
13903SWIGINTERN PyObject *_wrap_Solver_MaxEquality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13904 PyObject *resultobj = 0;
13906 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13908 void *argp1 = 0 ;
13909 int res1 = 0 ;
13910 std::vector< operations_research::IntVar * > temp2 ;
13911 PyObject * obj0 = 0 ;
13912 PyObject * obj1 = 0 ;
13913 PyObject * obj2 = 0 ;
13915
13916 if (!PyArg_UnpackTuple(args, "Solver_MaxEquality", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
13917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
13918 if (!SWIG_IsOK(res1)) {
13919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_MaxEquality" "', argument " "1"" of type '" "operations_research::Solver *""'");
13920 }
13921 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13922 {
13923 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13924 if (!PyErr_Occurred())
13925 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
13926 return NULL;
13927 }
13928 arg2 = &temp2;
13929 }
13930 {
13931 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
13932 }
13933 {
13934 try {
13935 result = (operations_research::Constraint *)(arg1)->MakeMaxEquality((std::vector< operations_research::IntVar * > const &)*arg2,arg3);
13936 }
13937 catch (Swig::DirectorException &e) {
13938 SWIG_fail;
13939 }
13940 }
13942 return resultobj;
13943fail:
13944 return NULL;
13945}
13946
13947
13948SWIGINTERN PyObject *_wrap_Solver_ElementEquality__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13949 PyObject *resultobj = 0;
13951 std::vector< int64_t > *arg2 = 0 ;
13954 void *argp1 = 0 ;
13955 int res1 = 0 ;
13956 std::vector< int64_t > temp2 ;
13957 PyObject * obj0 = 0 ;
13958 PyObject * obj1 = 0 ;
13959 PyObject * obj2 = 0 ;
13960 PyObject * obj3 = 0 ;
13962
13963 if (!PyArg_UnpackTuple(args, "Solver_ElementEquality", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
13964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
13965 if (!SWIG_IsOK(res1)) {
13966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ElementEquality" "', argument " "1"" of type '" "operations_research::Solver *""'");
13967 }
13968 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13969 {
13970 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
13971 if (!PyErr_Occurred())
13972 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
13973 return NULL;
13974 }
13975 arg2 = &temp2;
13976 }
13977 {
13978 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
13979 }
13980 {
13981 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
13982 }
13983 {
13984 try {
13985 result = (operations_research::Constraint *)(arg1)->MakeElementEquality((std::vector< int64_t > const &)*arg2,arg3,arg4);
13986 }
13987 catch (Swig::DirectorException &e) {
13988 SWIG_fail;
13989 }
13990 }
13992 return resultobj;
13993fail:
13994 return NULL;
13995}
13996
13997
13998SWIGINTERN PyObject *_wrap_Solver_ElementEquality__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13999 PyObject *resultobj = 0;
14001 std::vector< int > *arg2 = 0 ;
14004 void *argp1 = 0 ;
14005 int res1 = 0 ;
14006 std::vector< int > temp2 ;
14007 PyObject * obj0 = 0 ;
14008 PyObject * obj1 = 0 ;
14009 PyObject * obj2 = 0 ;
14010 PyObject * obj3 = 0 ;
14012
14013 if (!PyArg_UnpackTuple(args, "Solver_ElementEquality", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
14014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
14015 if (!SWIG_IsOK(res1)) {
14016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ElementEquality" "', argument " "1"" of type '" "operations_research::Solver *""'");
14017 }
14018 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14019 {
14020 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
14021 if (!PyErr_Occurred())
14022 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
14023 return NULL;
14024 }
14025 arg2 = &temp2;
14026 }
14027 {
14028 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
14029 }
14030 {
14031 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
14032 }
14033 {
14034 try {
14035 result = (operations_research::Constraint *)(arg1)->MakeElementEquality((std::vector< int > const &)*arg2,arg3,arg4);
14036 }
14037 catch (Swig::DirectorException &e) {
14038 SWIG_fail;
14039 }
14040 }
14042 return resultobj;
14043fail:
14044 return NULL;
14045}
14046
14047
14048SWIGINTERN PyObject *_wrap_Solver_ElementEquality__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14049 PyObject *resultobj = 0;
14051 std::vector< operations_research::IntVar * > *arg2 = 0 ;
14054 void *argp1 = 0 ;
14055 int res1 = 0 ;
14056 std::vector< operations_research::IntVar * > temp2 ;
14057 PyObject * obj0 = 0 ;
14058 PyObject * obj1 = 0 ;
14059 PyObject * obj2 = 0 ;
14060 PyObject * obj3 = 0 ;
14062
14063 if (!PyArg_UnpackTuple(args, "Solver_ElementEquality", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
14064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
14065 if (!SWIG_IsOK(res1)) {
14066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ElementEquality" "', argument " "1"" of type '" "operations_research::Solver *""'");
14067 }
14068 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14069 {
14070 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
14071 if (!PyErr_Occurred())
14072 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
14073 return NULL;
14074 }
14075 arg2 = &temp2;
14076 }
14077 {
14078 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
14079 }
14080 {
14081 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
14082 }
14083 {
14084 try {
14085 result = (operations_research::Constraint *)(arg1)->MakeElementEquality((std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4);
14086 }
14087 catch (Swig::DirectorException &e) {
14088 SWIG_fail;
14089 }
14090 }
14092 return resultobj;
14093fail:
14094 return NULL;
14095}
14096
14097
14098SWIGINTERN PyObject *_wrap_Solver_ElementEquality__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14099 PyObject *resultobj = 0;
14101 std::vector< operations_research::IntVar * > *arg2 = 0 ;
14103 int64_t arg4 ;
14104 void *argp1 = 0 ;
14105 int res1 = 0 ;
14106 std::vector< operations_research::IntVar * > temp2 ;
14107 long val4 ;
14108 int ecode4 = 0 ;
14109 PyObject * obj0 = 0 ;
14110 PyObject * obj1 = 0 ;
14111 PyObject * obj2 = 0 ;
14112 PyObject * obj3 = 0 ;
14114
14115 if (!PyArg_UnpackTuple(args, "Solver_ElementEquality", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
14116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
14117 if (!SWIG_IsOK(res1)) {
14118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ElementEquality" "', argument " "1"" of type '" "operations_research::Solver *""'");
14119 }
14120 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14121 {
14122 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
14123 if (!PyErr_Occurred())
14124 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
14125 return NULL;
14126 }
14127 arg2 = &temp2;
14128 }
14129 {
14130 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
14131 }
14132 ecode4 = SWIG_AsVal_long(obj3, &val4);
14133 if (!SWIG_IsOK(ecode4)) {
14134 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_ElementEquality" "', argument " "4"" of type '" "int64_t""'");
14135 }
14136 arg4 = static_cast< int64_t >(val4);
14137 {
14138 try {
14139 result = (operations_research::Constraint *)(arg1)->MakeElementEquality((std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4);
14140 }
14141 catch (Swig::DirectorException &e) {
14142 SWIG_fail;
14143 }
14144 }
14146 return resultobj;
14147fail:
14148 return NULL;
14149}
14150
14151
14152SWIGINTERN PyObject *_wrap_Solver_ElementEquality(PyObject *self, PyObject *args) {
14153 Py_ssize_t argc;
14154 PyObject *argv[5] = {
14155 0
14156 };
14157 Py_ssize_t ii;
14158
14159 if (!PyTuple_Check(args)) SWIG_fail;
14160 argc = PyObject_Length(args);
14161 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
14162 argv[ii] = PyTuple_GET_ITEM(args,ii);
14163 }
14164 if (argc == 4) {
14165 int _v;
14166 void *vptr = 0;
14167 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
14168 _v = SWIG_CheckState(res);
14169 if (_v) {
14170 {
14171 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
14172 _v = 0;
14173 } else {
14174 const bool is_tuple = PyTuple_Check(argv[1]);
14175 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
14176 size_t i = 0;
14177 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
14178 :PyList_GetItem(argv[1], i))) {
14179 ++i;
14180 }
14181 _v = i == size;
14182 }
14183 }
14184 if (_v) {
14185 {
14186 _v = CanConvertToIntVar(argv[2]);
14187 if (_v == 0) PyErr_Clear();
14188 }
14189 if (_v) {
14190 {
14191 _v = CanConvertToIntVar(argv[3]);
14192 if (_v == 0) PyErr_Clear();
14193 }
14194 if (_v) {
14195 return _wrap_Solver_ElementEquality__SWIG_0(self, args);
14196 }
14197 }
14198 }
14199 }
14200 }
14201 if (argc == 4) {
14202 int _v;
14203 void *vptr = 0;
14204 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
14205 _v = SWIG_CheckState(res);
14206 if (_v) {
14207 {
14208 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
14209 _v = 0;
14210 } else {
14211 const bool is_tuple = PyTuple_Check(argv[1]);
14212 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
14213 size_t i = 0;
14214 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
14215 :PyList_GetItem(argv[1], i))) {
14216 ++i;
14217 }
14218 _v = i == size;
14219 }
14220 }
14221 if (_v) {
14222 {
14223 _v = CanConvertToIntVar(argv[2]);
14224 if (_v == 0) PyErr_Clear();
14225 }
14226 if (_v) {
14227 {
14228 _v = CanConvertToIntVar(argv[3]);
14229 if (_v == 0) PyErr_Clear();
14230 }
14231 if (_v) {
14232 return _wrap_Solver_ElementEquality__SWIG_1(self, args);
14233 }
14234 }
14235 }
14236 }
14237 }
14238 if (argc == 4) {
14239 int _v;
14240 void *vptr = 0;
14241 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
14242 _v = SWIG_CheckState(res);
14243 if (_v) {
14244 {
14245 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
14246 _v = 0;
14247 } else {
14248 const bool is_tuple = PyTuple_Check(argv[1]);
14249 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
14250 size_t i = 0;
14251 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
14252 :PyList_GetItem(argv[1], i))) {
14253 ++i;
14254 }
14255 _v = i == size;
14256 }
14257 }
14258 if (_v) {
14259 {
14260 _v = CanConvertToIntVar(argv[2]);
14261 if (_v == 0) PyErr_Clear();
14262 }
14263 if (_v) {
14264 {
14265 _v = CanConvertToIntVar(argv[3]);
14266 if (_v == 0) PyErr_Clear();
14267 }
14268 if (_v) {
14269 return _wrap_Solver_ElementEquality__SWIG_2(self, args);
14270 }
14271 }
14272 }
14273 }
14274 }
14275 if (argc == 4) {
14276 int _v;
14277 void *vptr = 0;
14278 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
14279 _v = SWIG_CheckState(res);
14280 if (_v) {
14281 {
14282 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
14283 _v = 0;
14284 } else {
14285 const bool is_tuple = PyTuple_Check(argv[1]);
14286 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
14287 size_t i = 0;
14288 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
14289 :PyList_GetItem(argv[1], i))) {
14290 ++i;
14291 }
14292 _v = i == size;
14293 }
14294 }
14295 if (_v) {
14296 {
14297 _v = CanConvertToIntVar(argv[2]);
14298 if (_v == 0) PyErr_Clear();
14299 }
14300 if (_v) {
14301 {
14302 int res = SWIG_AsVal_long(argv[3], NULL);
14303 _v = SWIG_CheckState(res);
14304 }
14305 if (_v) {
14306 return _wrap_Solver_ElementEquality__SWIG_3(self, args);
14307 }
14308 }
14309 }
14310 }
14311 }
14312
14313fail:
14314 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_ElementEquality'.\n"
14315 " Possible C/C++ prototypes are:\n"
14316 " operations_research::Solver::MakeElementEquality(std::vector< int64_t > const &,operations_research::IntVar *const,operations_research::IntVar *const)\n"
14317 " operations_research::Solver::MakeElementEquality(std::vector< int > const &,operations_research::IntVar *const,operations_research::IntVar *const)\n"
14318 " operations_research::Solver::MakeElementEquality(std::vector< operations_research::IntVar * > const &,operations_research::IntVar *const,operations_research::IntVar *const)\n"
14319 " operations_research::Solver::MakeElementEquality(std::vector< operations_research::IntVar * > const &,operations_research::IntVar *const,int64_t)\n");
14320 return 0;
14321}
14322
14323
14324SWIGINTERN PyObject *_wrap_Solver_AbsEquality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14325 PyObject *resultobj = 0;
14329 void *argp1 = 0 ;
14330 int res1 = 0 ;
14331 PyObject * obj0 = 0 ;
14332 PyObject * obj1 = 0 ;
14333 PyObject * obj2 = 0 ;
14335
14336 if (!PyArg_UnpackTuple(args, "Solver_AbsEquality", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
14337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
14338 if (!SWIG_IsOK(res1)) {
14339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_AbsEquality" "', argument " "1"" of type '" "operations_research::Solver *""'");
14340 }
14341 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14342 {
14343 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
14344 }
14345 {
14346 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
14347 }
14348 {
14349 try {
14350 result = (operations_research::Constraint *)(arg1)->MakeAbsEquality(arg2,arg3);
14351 }
14352 catch (Swig::DirectorException &e) {
14353 SWIG_fail;
14354 }
14355 }
14357 return resultobj;
14358fail:
14359 return NULL;
14360}
14361
14362
14363SWIGINTERN PyObject *_wrap_Solver_IndexOfConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14364 PyObject *resultobj = 0;
14366 std::vector< operations_research::IntVar * > *arg2 = 0 ;
14368 int64_t arg4 ;
14369 void *argp1 = 0 ;
14370 int res1 = 0 ;
14371 std::vector< operations_research::IntVar * > temp2 ;
14372 long val4 ;
14373 int ecode4 = 0 ;
14374 PyObject * obj0 = 0 ;
14375 PyObject * obj1 = 0 ;
14376 PyObject * obj2 = 0 ;
14377 PyObject * obj3 = 0 ;
14379
14380 if (!PyArg_UnpackTuple(args, "Solver_IndexOfConstraint", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
14381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
14382 if (!SWIG_IsOK(res1)) {
14383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IndexOfConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
14384 }
14385 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14386 {
14387 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
14388 if (!PyErr_Occurred())
14389 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
14390 return NULL;
14391 }
14392 arg2 = &temp2;
14393 }
14394 {
14395 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
14396 }
14397 ecode4 = SWIG_AsVal_long(obj3, &val4);
14398 if (!SWIG_IsOK(ecode4)) {
14399 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_IndexOfConstraint" "', argument " "4"" of type '" "int64_t""'");
14400 }
14401 arg4 = static_cast< int64_t >(val4);
14402 {
14403 try {
14404 result = (operations_research::Constraint *)(arg1)->MakeIndexOfConstraint((std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4);
14405 }
14406 catch (Swig::DirectorException &e) {
14407 SWIG_fail;
14408 }
14409 }
14411 return resultobj;
14412fail:
14413 return NULL;
14414}
14415
14416
14418 PyObject *resultobj = 0;
14421 void *argp1 = 0 ;
14422 int res1 = 0 ;
14423 void *argp2 = 0 ;
14424 int res2 = 0 ;
14425 PyObject * obj0 = 0 ;
14426 PyObject * obj1 = 0 ;
14427 operations_research::Demon *result = 0 ;
14428
14429 if (!PyArg_UnpackTuple(args, "Solver_ConstraintInitialPropagateCallback", 2, 2, &obj0, &obj1)) SWIG_fail;
14430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
14431 if (!SWIG_IsOK(res1)) {
14432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ConstraintInitialPropagateCallback" "', argument " "1"" of type '" "operations_research::Solver *""'");
14433 }
14434 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14436 if (!SWIG_IsOK(res2)) {
14437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_ConstraintInitialPropagateCallback" "', argument " "2"" of type '" "operations_research::Constraint *const""'");
14438 }
14439 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
14440 {
14441 try {
14442 result = (operations_research::Demon *)(arg1)->MakeConstraintInitialPropagateCallback(arg2);
14443 }
14444 catch (Swig::DirectorException &e) {
14445 SWIG_fail;
14446 }
14447 }
14449 return resultobj;
14450fail:
14451 return NULL;
14452}
14453
14454
14456 PyObject *resultobj = 0;
14459 void *argp1 = 0 ;
14460 int res1 = 0 ;
14461 void *argp2 = 0 ;
14462 int res2 = 0 ;
14463 PyObject * obj0 = 0 ;
14464 PyObject * obj1 = 0 ;
14465 operations_research::Demon *result = 0 ;
14466
14467 if (!PyArg_UnpackTuple(args, "Solver_DelayedConstraintInitialPropagateCallback", 2, 2, &obj0, &obj1)) SWIG_fail;
14468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
14469 if (!SWIG_IsOK(res1)) {
14470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_DelayedConstraintInitialPropagateCallback" "', argument " "1"" of type '" "operations_research::Solver *""'");
14471 }
14472 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14474 if (!SWIG_IsOK(res2)) {
14475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_DelayedConstraintInitialPropagateCallback" "', argument " "2"" of type '" "operations_research::Constraint *const""'");
14476 }
14477 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
14478 {
14479 try {
14480 result = (operations_research::Demon *)(arg1)->MakeDelayedConstraintInitialPropagateCallback(arg2);
14481 }
14482 catch (Swig::DirectorException &e) {
14483 SWIG_fail;
14484 }
14485 }
14487 return resultobj;
14488fail:
14489 return NULL;
14490}
14491
14492
14493SWIGINTERN PyObject *_wrap_Solver_ClosureDemon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14494 PyObject *resultobj = 0;
14497 void *argp1 = 0 ;
14498 int res1 = 0 ;
14499 PyObject * obj0 = 0 ;
14500 PyObject * obj1 = 0 ;
14501 operations_research::Demon *result = 0 ;
14502
14503 if (!PyArg_UnpackTuple(args, "Solver_ClosureDemon", 2, 2, &obj0, &obj1)) SWIG_fail;
14504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
14505 if (!SWIG_IsOK(res1)) {
14506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ClosureDemon" "', argument " "1"" of type '" "operations_research::Solver *""'");
14507 }
14508 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14509 {
14510 SharedPyPtr input(obj1);
14511 arg2 = [input]() {
14512 return InvokePythonCallableReturning<void>(input.get());
14513 };
14514 }
14515 {
14516 try {
14517 result = (operations_research::Demon *)(arg1)->MakeClosureDemon(arg2);
14518 }
14519 catch (Swig::DirectorException &e) {
14520 SWIG_fail;
14521 }
14522 }
14524 return resultobj;
14525fail:
14526 return NULL;
14527}
14528
14529
14530SWIGINTERN PyObject *_wrap_Solver_BetweenCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14531 PyObject *resultobj = 0;
14534 int64_t arg3 ;
14535 int64_t arg4 ;
14536 void *argp1 = 0 ;
14537 int res1 = 0 ;
14538 long val3 ;
14539 int ecode3 = 0 ;
14540 long val4 ;
14541 int ecode4 = 0 ;
14542 PyObject * obj0 = 0 ;
14543 PyObject * obj1 = 0 ;
14544 PyObject * obj2 = 0 ;
14545 PyObject * obj3 = 0 ;
14547
14548 if (!PyArg_UnpackTuple(args, "Solver_BetweenCt", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
14549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
14550 if (!SWIG_IsOK(res1)) {
14551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_BetweenCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
14552 }
14553 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14554 {
14555 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
14556 }
14557 ecode3 = SWIG_AsVal_long(obj2, &val3);
14558 if (!SWIG_IsOK(ecode3)) {
14559 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_BetweenCt" "', argument " "3"" of type '" "int64_t""'");
14560 }
14561 arg3 = static_cast< int64_t >(val3);
14562 ecode4 = SWIG_AsVal_long(obj3, &val4);
14563 if (!SWIG_IsOK(ecode4)) {
14564 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_BetweenCt" "', argument " "4"" of type '" "int64_t""'");
14565 }
14566 arg4 = static_cast< int64_t >(val4);
14567 {
14568 try {
14569 result = (operations_research::Constraint *)(arg1)->MakeBetweenCt(arg2,arg3,arg4);
14570 }
14571 catch (Swig::DirectorException &e) {
14572 SWIG_fail;
14573 }
14574 }
14576 return resultobj;
14577fail:
14578 return NULL;
14579}
14580
14581
14582SWIGINTERN PyObject *_wrap_Solver_IsBetweenCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14583 PyObject *resultobj = 0;
14586 int64_t arg3 ;
14587 int64_t arg4 ;
14589 void *argp1 = 0 ;
14590 int res1 = 0 ;
14591 long val3 ;
14592 int ecode3 = 0 ;
14593 long val4 ;
14594 int ecode4 = 0 ;
14595 PyObject * obj0 = 0 ;
14596 PyObject * obj1 = 0 ;
14597 PyObject * obj2 = 0 ;
14598 PyObject * obj3 = 0 ;
14599 PyObject * obj4 = 0 ;
14601
14602 if (!PyArg_UnpackTuple(args, "Solver_IsBetweenCt", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
14603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
14604 if (!SWIG_IsOK(res1)) {
14605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsBetweenCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
14606 }
14607 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14608 {
14609 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
14610 }
14611 ecode3 = SWIG_AsVal_long(obj2, &val3);
14612 if (!SWIG_IsOK(ecode3)) {
14613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IsBetweenCt" "', argument " "3"" of type '" "int64_t""'");
14614 }
14615 arg3 = static_cast< int64_t >(val3);
14616 ecode4 = SWIG_AsVal_long(obj3, &val4);
14617 if (!SWIG_IsOK(ecode4)) {
14618 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_IsBetweenCt" "', argument " "4"" of type '" "int64_t""'");
14619 }
14620 arg4 = static_cast< int64_t >(val4);
14621 {
14622 if (!PyObjAs(obj4, &arg5)) SWIG_fail;
14623 }
14624 {
14625 try {
14626 result = (operations_research::Constraint *)(arg1)->MakeIsBetweenCt(arg2,arg3,arg4,arg5);
14627 }
14628 catch (Swig::DirectorException &e) {
14629 SWIG_fail;
14630 }
14631 }
14633 return resultobj;
14634fail:
14635 return NULL;
14636}
14637
14638
14639SWIGINTERN PyObject *_wrap_Solver_IsBetweenVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14640 PyObject *resultobj = 0;
14643 int64_t arg3 ;
14644 int64_t arg4 ;
14645 void *argp1 = 0 ;
14646 int res1 = 0 ;
14647 long val3 ;
14648 int ecode3 = 0 ;
14649 long val4 ;
14650 int ecode4 = 0 ;
14651 PyObject * obj0 = 0 ;
14652 PyObject * obj1 = 0 ;
14653 PyObject * obj2 = 0 ;
14654 PyObject * obj3 = 0 ;
14655 operations_research::IntVar *result = 0 ;
14656
14657 if (!PyArg_UnpackTuple(args, "Solver_IsBetweenVar", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
14658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
14659 if (!SWIG_IsOK(res1)) {
14660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsBetweenVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
14661 }
14662 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14663 {
14664 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
14665 }
14666 ecode3 = SWIG_AsVal_long(obj2, &val3);
14667 if (!SWIG_IsOK(ecode3)) {
14668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IsBetweenVar" "', argument " "3"" of type '" "int64_t""'");
14669 }
14670 arg3 = static_cast< int64_t >(val3);
14671 ecode4 = SWIG_AsVal_long(obj3, &val4);
14672 if (!SWIG_IsOK(ecode4)) {
14673 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_IsBetweenVar" "', argument " "4"" of type '" "int64_t""'");
14674 }
14675 arg4 = static_cast< int64_t >(val4);
14676 {
14677 try {
14678 result = (operations_research::IntVar *)(arg1)->MakeIsBetweenVar(arg2,arg3,arg4);
14679 }
14680 catch (Swig::DirectorException &e) {
14681 SWIG_fail;
14682 }
14683 }
14685 return resultobj;
14686fail:
14687 return NULL;
14688}
14689
14690
14691SWIGINTERN PyObject *_wrap_Solver_MemberCt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14692 PyObject *resultobj = 0;
14695 std::vector< int64_t > *arg3 = 0 ;
14696 void *argp1 = 0 ;
14697 int res1 = 0 ;
14698 std::vector< int64_t > temp3 ;
14699 PyObject * obj0 = 0 ;
14700 PyObject * obj1 = 0 ;
14701 PyObject * obj2 = 0 ;
14703
14704 if (!PyArg_UnpackTuple(args, "Solver_MemberCt", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
14705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
14706 if (!SWIG_IsOK(res1)) {
14707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_MemberCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
14708 }
14709 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14710 {
14711 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
14712 }
14713 {
14714 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
14715 if (!PyErr_Occurred())
14716 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
14717 return NULL;
14718 }
14719 arg3 = &temp3;
14720 }
14721 {
14722 try {
14723 result = (operations_research::Constraint *)(arg1)->MakeMemberCt(arg2,(std::vector< int64_t > const &)*arg3);
14724 }
14725 catch (Swig::DirectorException &e) {
14726 SWIG_fail;
14727 }
14728 }
14730 return resultobj;
14731fail:
14732 return NULL;
14733}
14734
14735
14736SWIGINTERN PyObject *_wrap_Solver_MemberCt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14737 PyObject *resultobj = 0;
14740 std::vector< int > *arg3 = 0 ;
14741 void *argp1 = 0 ;
14742 int res1 = 0 ;
14743 std::vector< int > temp3 ;
14744 PyObject * obj0 = 0 ;
14745 PyObject * obj1 = 0 ;
14746 PyObject * obj2 = 0 ;
14748
14749 if (!PyArg_UnpackTuple(args, "Solver_MemberCt", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
14750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
14751 if (!SWIG_IsOK(res1)) {
14752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_MemberCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
14753 }
14754 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14755 {
14756 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
14757 }
14758 {
14759 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
14760 if (!PyErr_Occurred())
14761 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
14762 return NULL;
14763 }
14764 arg3 = &temp3;
14765 }
14766 {
14767 try {
14768 result = (operations_research::Constraint *)(arg1)->MakeMemberCt(arg2,(std::vector< int > const &)*arg3);
14769 }
14770 catch (Swig::DirectorException &e) {
14771 SWIG_fail;
14772 }
14773 }
14775 return resultobj;
14776fail:
14777 return NULL;
14778}
14779
14780
14781SWIGINTERN PyObject *_wrap_Solver_MemberCt(PyObject *self, PyObject *args) {
14782 Py_ssize_t argc;
14783 PyObject *argv[4] = {
14784 0
14785 };
14786 Py_ssize_t ii;
14787
14788 if (!PyTuple_Check(args)) SWIG_fail;
14789 argc = PyObject_Length(args);
14790 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
14791 argv[ii] = PyTuple_GET_ITEM(args,ii);
14792 }
14793 if (argc == 3) {
14794 int _v;
14795 void *vptr = 0;
14796 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
14797 _v = SWIG_CheckState(res);
14798 if (_v) {
14799 {
14800 _v = CanConvertToIntExpr(argv[1]);
14801 if (_v == 0) PyErr_Clear();
14802 }
14803 if (_v) {
14804 {
14805 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
14806 _v = 0;
14807 } else {
14808 const bool is_tuple = PyTuple_Check(argv[2]);
14809 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
14810 size_t i = 0;
14811 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
14812 :PyList_GetItem(argv[2], i))) {
14813 ++i;
14814 }
14815 _v = i == size;
14816 }
14817 }
14818 if (_v) {
14819 return _wrap_Solver_MemberCt__SWIG_0(self, args);
14820 }
14821 }
14822 }
14823 }
14824 if (argc == 3) {
14825 int _v;
14826 void *vptr = 0;
14827 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
14828 _v = SWIG_CheckState(res);
14829 if (_v) {
14830 {
14831 _v = CanConvertToIntExpr(argv[1]);
14832 if (_v == 0) PyErr_Clear();
14833 }
14834 if (_v) {
14835 {
14836 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
14837 _v = 0;
14838 } else {
14839 const bool is_tuple = PyTuple_Check(argv[2]);
14840 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
14841 size_t i = 0;
14842 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
14843 :PyList_GetItem(argv[2], i))) {
14844 ++i;
14845 }
14846 _v = i == size;
14847 }
14848 }
14849 if (_v) {
14850 return _wrap_Solver_MemberCt__SWIG_1(self, args);
14851 }
14852 }
14853 }
14854 }
14855
14856fail:
14857 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_MemberCt'.\n"
14858 " Possible C/C++ prototypes are:\n"
14859 " operations_research::Solver::MakeMemberCt(operations_research::IntExpr *const,std::vector< int64_t > const &)\n"
14860 " operations_research::Solver::MakeMemberCt(operations_research::IntExpr *const,std::vector< int > const &)\n");
14861 return 0;
14862}
14863
14864
14865SWIGINTERN PyObject *_wrap_Solver_NotMemberCt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14866 PyObject *resultobj = 0;
14869 std::vector< int64_t > *arg3 = 0 ;
14870 void *argp1 = 0 ;
14871 int res1 = 0 ;
14872 std::vector< int64_t > temp3 ;
14873 PyObject * obj0 = 0 ;
14874 PyObject * obj1 = 0 ;
14875 PyObject * obj2 = 0 ;
14877
14878 if (!PyArg_UnpackTuple(args, "Solver_NotMemberCt", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
14879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
14880 if (!SWIG_IsOK(res1)) {
14881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NotMemberCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
14882 }
14883 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14884 {
14885 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
14886 }
14887 {
14888 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
14889 if (!PyErr_Occurred())
14890 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
14891 return NULL;
14892 }
14893 arg3 = &temp3;
14894 }
14895 {
14896 try {
14897 result = (operations_research::Constraint *)(arg1)->MakeNotMemberCt(arg2,(std::vector< int64_t > const &)*arg3);
14898 }
14899 catch (Swig::DirectorException &e) {
14900 SWIG_fail;
14901 }
14902 }
14904 return resultobj;
14905fail:
14906 return NULL;
14907}
14908
14909
14910SWIGINTERN PyObject *_wrap_Solver_NotMemberCt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14911 PyObject *resultobj = 0;
14914 std::vector< int > *arg3 = 0 ;
14915 void *argp1 = 0 ;
14916 int res1 = 0 ;
14917 std::vector< int > temp3 ;
14918 PyObject * obj0 = 0 ;
14919 PyObject * obj1 = 0 ;
14920 PyObject * obj2 = 0 ;
14922
14923 if (!PyArg_UnpackTuple(args, "Solver_NotMemberCt", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
14924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
14925 if (!SWIG_IsOK(res1)) {
14926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NotMemberCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
14927 }
14928 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14929 {
14930 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
14931 }
14932 {
14933 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
14934 if (!PyErr_Occurred())
14935 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
14936 return NULL;
14937 }
14938 arg3 = &temp3;
14939 }
14940 {
14941 try {
14942 result = (operations_research::Constraint *)(arg1)->MakeNotMemberCt(arg2,(std::vector< int > const &)*arg3);
14943 }
14944 catch (Swig::DirectorException &e) {
14945 SWIG_fail;
14946 }
14947 }
14949 return resultobj;
14950fail:
14951 return NULL;
14952}
14953
14954
14955SWIGINTERN PyObject *_wrap_Solver_NotMemberCt__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14956 PyObject *resultobj = 0;
14959 std::vector< int64_t > arg3 ;
14960 std::vector< int64_t > arg4 ;
14961 void *argp1 = 0 ;
14962 int res1 = 0 ;
14963 std::vector< int64_t > temp3 ;
14964 std::vector< int64_t > temp4 ;
14965 PyObject * obj0 = 0 ;
14966 PyObject * obj1 = 0 ;
14967 PyObject * obj2 = 0 ;
14968 PyObject * obj3 = 0 ;
14970
14971 if (!PyArg_UnpackTuple(args, "Solver_NotMemberCt", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
14972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
14973 if (!SWIG_IsOK(res1)) {
14974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NotMemberCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
14975 }
14976 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14977 {
14978 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
14979 }
14980 {
14981 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
14982 if (!PyErr_Occurred())
14983 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
14984 return NULL;
14985 }
14986 arg3 = std::move(temp3);
14987 }
14988 {
14989 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
14990 if (!PyErr_Occurred())
14991 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
14992 return NULL;
14993 }
14994 arg4 = std::move(temp4);
14995 }
14996 {
14997 try {
14998 result = (operations_research::Constraint *)(arg1)->MakeNotMemberCt(arg2,arg3,arg4);
14999 }
15000 catch (Swig::DirectorException &e) {
15001 SWIG_fail;
15002 }
15003 }
15005 return resultobj;
15006fail:
15007 return NULL;
15008}
15009
15010
15011SWIGINTERN PyObject *_wrap_Solver_NotMemberCt__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15012 PyObject *resultobj = 0;
15015 std::vector< int > arg3 ;
15016 std::vector< int > arg4 ;
15017 void *argp1 = 0 ;
15018 int res1 = 0 ;
15019 std::vector< int > temp3 ;
15020 std::vector< int > temp4 ;
15021 PyObject * obj0 = 0 ;
15022 PyObject * obj1 = 0 ;
15023 PyObject * obj2 = 0 ;
15024 PyObject * obj3 = 0 ;
15026
15027 if (!PyArg_UnpackTuple(args, "Solver_NotMemberCt", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
15028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
15029 if (!SWIG_IsOK(res1)) {
15030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NotMemberCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
15031 }
15032 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15033 {
15034 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
15035 }
15036 {
15037 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
15038 if (!PyErr_Occurred())
15039 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
15040 return NULL;
15041 }
15042 arg3 = std::move(temp3);
15043 }
15044 {
15045 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
15046 if (!PyErr_Occurred())
15047 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
15048 return NULL;
15049 }
15050 arg4 = std::move(temp4);
15051 }
15052 {
15053 try {
15054 result = (operations_research::Constraint *)(arg1)->MakeNotMemberCt(arg2,arg3,arg4);
15055 }
15056 catch (Swig::DirectorException &e) {
15057 SWIG_fail;
15058 }
15059 }
15061 return resultobj;
15062fail:
15063 return NULL;
15064}
15065
15066
15067SWIGINTERN PyObject *_wrap_Solver_NotMemberCt(PyObject *self, PyObject *args) {
15068 Py_ssize_t argc;
15069 PyObject *argv[5] = {
15070 0
15071 };
15072 Py_ssize_t ii;
15073
15074 if (!PyTuple_Check(args)) SWIG_fail;
15075 argc = PyObject_Length(args);
15076 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
15077 argv[ii] = PyTuple_GET_ITEM(args,ii);
15078 }
15079 if (argc == 3) {
15080 int _v;
15081 void *vptr = 0;
15082 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
15083 _v = SWIG_CheckState(res);
15084 if (_v) {
15085 {
15086 _v = CanConvertToIntExpr(argv[1]);
15087 if (_v == 0) PyErr_Clear();
15088 }
15089 if (_v) {
15090 {
15091 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15092 _v = 0;
15093 } else {
15094 const bool is_tuple = PyTuple_Check(argv[2]);
15095 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15096 size_t i = 0;
15097 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15098 :PyList_GetItem(argv[2], i))) {
15099 ++i;
15100 }
15101 _v = i == size;
15102 }
15103 }
15104 if (_v) {
15105 return _wrap_Solver_NotMemberCt__SWIG_0(self, args);
15106 }
15107 }
15108 }
15109 }
15110 if (argc == 3) {
15111 int _v;
15112 void *vptr = 0;
15113 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
15114 _v = SWIG_CheckState(res);
15115 if (_v) {
15116 {
15117 _v = CanConvertToIntExpr(argv[1]);
15118 if (_v == 0) PyErr_Clear();
15119 }
15120 if (_v) {
15121 {
15122 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15123 _v = 0;
15124 } else {
15125 const bool is_tuple = PyTuple_Check(argv[2]);
15126 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15127 size_t i = 0;
15128 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15129 :PyList_GetItem(argv[2], i))) {
15130 ++i;
15131 }
15132 _v = i == size;
15133 }
15134 }
15135 if (_v) {
15136 return _wrap_Solver_NotMemberCt__SWIG_1(self, args);
15137 }
15138 }
15139 }
15140 }
15141 if (argc == 4) {
15142 int _v;
15143 void *vptr = 0;
15144 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
15145 _v = SWIG_CheckState(res);
15146 if (_v) {
15147 {
15148 _v = CanConvertToIntExpr(argv[1]);
15149 if (_v == 0) PyErr_Clear();
15150 }
15151 if (_v) {
15152 {
15153 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15154 _v = 0;
15155 } else {
15156 const bool is_tuple = PyTuple_Check(argv[2]);
15157 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15158 size_t i = 0;
15159 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15160 :PyList_GetItem(argv[2], i))) {
15161 ++i;
15162 }
15163 _v = i == size;
15164 }
15165 }
15166 if (_v) {
15167 {
15168 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
15169 _v = 0;
15170 } else {
15171 const bool is_tuple = PyTuple_Check(argv[3]);
15172 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
15173 size_t i = 0;
15174 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
15175 :PyList_GetItem(argv[3], i))) {
15176 ++i;
15177 }
15178 _v = i == size;
15179 }
15180 }
15181 if (_v) {
15182 return _wrap_Solver_NotMemberCt__SWIG_2(self, args);
15183 }
15184 }
15185 }
15186 }
15187 }
15188 if (argc == 4) {
15189 int _v;
15190 void *vptr = 0;
15191 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
15192 _v = SWIG_CheckState(res);
15193 if (_v) {
15194 {
15195 _v = CanConvertToIntExpr(argv[1]);
15196 if (_v == 0) PyErr_Clear();
15197 }
15198 if (_v) {
15199 {
15200 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15201 _v = 0;
15202 } else {
15203 const bool is_tuple = PyTuple_Check(argv[2]);
15204 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15205 size_t i = 0;
15206 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15207 :PyList_GetItem(argv[2], i))) {
15208 ++i;
15209 }
15210 _v = i == size;
15211 }
15212 }
15213 if (_v) {
15214 {
15215 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
15216 _v = 0;
15217 } else {
15218 const bool is_tuple = PyTuple_Check(argv[3]);
15219 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
15220 size_t i = 0;
15221 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
15222 :PyList_GetItem(argv[3], i))) {
15223 ++i;
15224 }
15225 _v = i == size;
15226 }
15227 }
15228 if (_v) {
15229 return _wrap_Solver_NotMemberCt__SWIG_3(self, args);
15230 }
15231 }
15232 }
15233 }
15234 }
15235
15236fail:
15237 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_NotMemberCt'.\n"
15238 " Possible C/C++ prototypes are:\n"
15239 " operations_research::Solver::MakeNotMemberCt(operations_research::IntExpr *const,std::vector< int64_t > const &)\n"
15240 " operations_research::Solver::MakeNotMemberCt(operations_research::IntExpr *const,std::vector< int > const &)\n"
15241 " operations_research::Solver::MakeNotMemberCt(operations_research::IntExpr *const,std::vector< int64_t >,std::vector< int64_t >)\n"
15242 " operations_research::Solver::MakeNotMemberCt(operations_research::IntExpr *const,std::vector< int >,std::vector< int >)\n");
15243 return 0;
15244}
15245
15246
15247SWIGINTERN PyObject *_wrap_Solver_IsMemberCt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15248 PyObject *resultobj = 0;
15251 std::vector< int64_t > *arg3 = 0 ;
15253 void *argp1 = 0 ;
15254 int res1 = 0 ;
15255 std::vector< int64_t > temp3 ;
15256 PyObject * obj0 = 0 ;
15257 PyObject * obj1 = 0 ;
15258 PyObject * obj2 = 0 ;
15259 PyObject * obj3 = 0 ;
15261
15262 if (!PyArg_UnpackTuple(args, "Solver_IsMemberCt", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
15263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
15264 if (!SWIG_IsOK(res1)) {
15265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsMemberCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
15266 }
15267 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15268 {
15269 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
15270 }
15271 {
15272 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
15273 if (!PyErr_Occurred())
15274 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
15275 return NULL;
15276 }
15277 arg3 = &temp3;
15278 }
15279 {
15280 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
15281 }
15282 {
15283 try {
15284 result = (operations_research::Constraint *)(arg1)->MakeIsMemberCt(arg2,(std::vector< int64_t > const &)*arg3,arg4);
15285 }
15286 catch (Swig::DirectorException &e) {
15287 SWIG_fail;
15288 }
15289 }
15291 return resultobj;
15292fail:
15293 return NULL;
15294}
15295
15296
15297SWIGINTERN PyObject *_wrap_Solver_IsMemberCt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15298 PyObject *resultobj = 0;
15301 std::vector< int > *arg3 = 0 ;
15303 void *argp1 = 0 ;
15304 int res1 = 0 ;
15305 std::vector< int > temp3 ;
15306 PyObject * obj0 = 0 ;
15307 PyObject * obj1 = 0 ;
15308 PyObject * obj2 = 0 ;
15309 PyObject * obj3 = 0 ;
15311
15312 if (!PyArg_UnpackTuple(args, "Solver_IsMemberCt", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
15313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
15314 if (!SWIG_IsOK(res1)) {
15315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsMemberCt" "', argument " "1"" of type '" "operations_research::Solver *""'");
15316 }
15317 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15318 {
15319 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
15320 }
15321 {
15322 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
15323 if (!PyErr_Occurred())
15324 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
15325 return NULL;
15326 }
15327 arg3 = &temp3;
15328 }
15329 {
15330 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
15331 }
15332 {
15333 try {
15334 result = (operations_research::Constraint *)(arg1)->MakeIsMemberCt(arg2,(std::vector< int > const &)*arg3,arg4);
15335 }
15336 catch (Swig::DirectorException &e) {
15337 SWIG_fail;
15338 }
15339 }
15341 return resultobj;
15342fail:
15343 return NULL;
15344}
15345
15346
15347SWIGINTERN PyObject *_wrap_Solver_IsMemberCt(PyObject *self, PyObject *args) {
15348 Py_ssize_t argc;
15349 PyObject *argv[5] = {
15350 0
15351 };
15352 Py_ssize_t ii;
15353
15354 if (!PyTuple_Check(args)) SWIG_fail;
15355 argc = PyObject_Length(args);
15356 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
15357 argv[ii] = PyTuple_GET_ITEM(args,ii);
15358 }
15359 if (argc == 4) {
15360 int _v;
15361 void *vptr = 0;
15362 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
15363 _v = SWIG_CheckState(res);
15364 if (_v) {
15365 {
15366 _v = CanConvertToIntExpr(argv[1]);
15367 if (_v == 0) PyErr_Clear();
15368 }
15369 if (_v) {
15370 {
15371 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15372 _v = 0;
15373 } else {
15374 const bool is_tuple = PyTuple_Check(argv[2]);
15375 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15376 size_t i = 0;
15377 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15378 :PyList_GetItem(argv[2], i))) {
15379 ++i;
15380 }
15381 _v = i == size;
15382 }
15383 }
15384 if (_v) {
15385 {
15386 _v = CanConvertToIntVar(argv[3]);
15387 if (_v == 0) PyErr_Clear();
15388 }
15389 if (_v) {
15390 return _wrap_Solver_IsMemberCt__SWIG_0(self, args);
15391 }
15392 }
15393 }
15394 }
15395 }
15396 if (argc == 4) {
15397 int _v;
15398 void *vptr = 0;
15399 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
15400 _v = SWIG_CheckState(res);
15401 if (_v) {
15402 {
15403 _v = CanConvertToIntExpr(argv[1]);
15404 if (_v == 0) PyErr_Clear();
15405 }
15406 if (_v) {
15407 {
15408 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15409 _v = 0;
15410 } else {
15411 const bool is_tuple = PyTuple_Check(argv[2]);
15412 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15413 size_t i = 0;
15414 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15415 :PyList_GetItem(argv[2], i))) {
15416 ++i;
15417 }
15418 _v = i == size;
15419 }
15420 }
15421 if (_v) {
15422 {
15423 _v = CanConvertToIntVar(argv[3]);
15424 if (_v == 0) PyErr_Clear();
15425 }
15426 if (_v) {
15427 return _wrap_Solver_IsMemberCt__SWIG_1(self, args);
15428 }
15429 }
15430 }
15431 }
15432 }
15433
15434fail:
15435 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_IsMemberCt'.\n"
15436 " Possible C/C++ prototypes are:\n"
15437 " operations_research::Solver::MakeIsMemberCt(operations_research::IntExpr *const,std::vector< int64_t > const &,operations_research::IntVar *const)\n"
15438 " operations_research::Solver::MakeIsMemberCt(operations_research::IntExpr *const,std::vector< int > const &,operations_research::IntVar *const)\n");
15439 return 0;
15440}
15441
15442
15443SWIGINTERN PyObject *_wrap_Solver_IsMemberVar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15444 PyObject *resultobj = 0;
15447 std::vector< int64_t > *arg3 = 0 ;
15448 void *argp1 = 0 ;
15449 int res1 = 0 ;
15450 std::vector< int64_t > temp3 ;
15451 PyObject * obj0 = 0 ;
15452 PyObject * obj1 = 0 ;
15453 PyObject * obj2 = 0 ;
15454 operations_research::IntVar *result = 0 ;
15455
15456 if (!PyArg_UnpackTuple(args, "Solver_IsMemberVar", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
15457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
15458 if (!SWIG_IsOK(res1)) {
15459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsMemberVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
15460 }
15461 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15462 {
15463 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
15464 }
15465 {
15466 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
15467 if (!PyErr_Occurred())
15468 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
15469 return NULL;
15470 }
15471 arg3 = &temp3;
15472 }
15473 {
15474 try {
15475 result = (operations_research::IntVar *)(arg1)->MakeIsMemberVar(arg2,(std::vector< int64_t > const &)*arg3);
15476 }
15477 catch (Swig::DirectorException &e) {
15478 SWIG_fail;
15479 }
15480 }
15482 return resultobj;
15483fail:
15484 return NULL;
15485}
15486
15487
15488SWIGINTERN PyObject *_wrap_Solver_IsMemberVar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15489 PyObject *resultobj = 0;
15492 std::vector< int > *arg3 = 0 ;
15493 void *argp1 = 0 ;
15494 int res1 = 0 ;
15495 std::vector< int > temp3 ;
15496 PyObject * obj0 = 0 ;
15497 PyObject * obj1 = 0 ;
15498 PyObject * obj2 = 0 ;
15499 operations_research::IntVar *result = 0 ;
15500
15501 if (!PyArg_UnpackTuple(args, "Solver_IsMemberVar", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
15502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
15503 if (!SWIG_IsOK(res1)) {
15504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IsMemberVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
15505 }
15506 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15507 {
15508 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
15509 }
15510 {
15511 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
15512 if (!PyErr_Occurred())
15513 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
15514 return NULL;
15515 }
15516 arg3 = &temp3;
15517 }
15518 {
15519 try {
15520 result = (operations_research::IntVar *)(arg1)->MakeIsMemberVar(arg2,(std::vector< int > const &)*arg3);
15521 }
15522 catch (Swig::DirectorException &e) {
15523 SWIG_fail;
15524 }
15525 }
15527 return resultobj;
15528fail:
15529 return NULL;
15530}
15531
15532
15533SWIGINTERN PyObject *_wrap_Solver_IsMemberVar(PyObject *self, PyObject *args) {
15534 Py_ssize_t argc;
15535 PyObject *argv[4] = {
15536 0
15537 };
15538 Py_ssize_t ii;
15539
15540 if (!PyTuple_Check(args)) SWIG_fail;
15541 argc = PyObject_Length(args);
15542 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
15543 argv[ii] = PyTuple_GET_ITEM(args,ii);
15544 }
15545 if (argc == 3) {
15546 int _v;
15547 void *vptr = 0;
15548 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
15549 _v = SWIG_CheckState(res);
15550 if (_v) {
15551 {
15552 _v = CanConvertToIntExpr(argv[1]);
15553 if (_v == 0) PyErr_Clear();
15554 }
15555 if (_v) {
15556 {
15557 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15558 _v = 0;
15559 } else {
15560 const bool is_tuple = PyTuple_Check(argv[2]);
15561 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15562 size_t i = 0;
15563 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15564 :PyList_GetItem(argv[2], i))) {
15565 ++i;
15566 }
15567 _v = i == size;
15568 }
15569 }
15570 if (_v) {
15571 return _wrap_Solver_IsMemberVar__SWIG_0(self, args);
15572 }
15573 }
15574 }
15575 }
15576 if (argc == 3) {
15577 int _v;
15578 void *vptr = 0;
15579 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
15580 _v = SWIG_CheckState(res);
15581 if (_v) {
15582 {
15583 _v = CanConvertToIntExpr(argv[1]);
15584 if (_v == 0) PyErr_Clear();
15585 }
15586 if (_v) {
15587 {
15588 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15589 _v = 0;
15590 } else {
15591 const bool is_tuple = PyTuple_Check(argv[2]);
15592 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15593 size_t i = 0;
15594 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15595 :PyList_GetItem(argv[2], i))) {
15596 ++i;
15597 }
15598 _v = i == size;
15599 }
15600 }
15601 if (_v) {
15602 return _wrap_Solver_IsMemberVar__SWIG_1(self, args);
15603 }
15604 }
15605 }
15606 }
15607
15608fail:
15609 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_IsMemberVar'.\n"
15610 " Possible C/C++ prototypes are:\n"
15611 " operations_research::Solver::MakeIsMemberVar(operations_research::IntExpr *const,std::vector< int64_t > const &)\n"
15612 " operations_research::Solver::MakeIsMemberVar(operations_research::IntExpr *const,std::vector< int > const &)\n");
15613 return 0;
15614}
15615
15616
15617SWIGINTERN PyObject *_wrap_Solver_Count__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15618 PyObject *resultobj = 0;
15620 std::vector< operations_research::IntVar * > *arg2 = 0 ;
15621 int64_t arg3 ;
15622 int64_t arg4 ;
15623 void *argp1 = 0 ;
15624 int res1 = 0 ;
15625 std::vector< operations_research::IntVar * > temp2 ;
15626 long val3 ;
15627 int ecode3 = 0 ;
15628 long val4 ;
15629 int ecode4 = 0 ;
15630 PyObject * obj0 = 0 ;
15631 PyObject * obj1 = 0 ;
15632 PyObject * obj2 = 0 ;
15633 PyObject * obj3 = 0 ;
15635
15636 if (!PyArg_UnpackTuple(args, "Solver_Count", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
15637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
15638 if (!SWIG_IsOK(res1)) {
15639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Count" "', argument " "1"" of type '" "operations_research::Solver *""'");
15640 }
15641 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15642 {
15643 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
15644 if (!PyErr_Occurred())
15645 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
15646 return NULL;
15647 }
15648 arg2 = &temp2;
15649 }
15650 ecode3 = SWIG_AsVal_long(obj2, &val3);
15651 if (!SWIG_IsOK(ecode3)) {
15652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Count" "', argument " "3"" of type '" "int64_t""'");
15653 }
15654 arg3 = static_cast< int64_t >(val3);
15655 ecode4 = SWIG_AsVal_long(obj3, &val4);
15656 if (!SWIG_IsOK(ecode4)) {
15657 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_Count" "', argument " "4"" of type '" "int64_t""'");
15658 }
15659 arg4 = static_cast< int64_t >(val4);
15660 {
15661 try {
15662 result = (operations_research::Constraint *)(arg1)->MakeCount((std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4);
15663 }
15664 catch (Swig::DirectorException &e) {
15665 SWIG_fail;
15666 }
15667 }
15669 return resultobj;
15670fail:
15671 return NULL;
15672}
15673
15674
15675SWIGINTERN PyObject *_wrap_Solver_Count__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15676 PyObject *resultobj = 0;
15678 std::vector< operations_research::IntVar * > *arg2 = 0 ;
15679 int64_t arg3 ;
15681 void *argp1 = 0 ;
15682 int res1 = 0 ;
15683 std::vector< operations_research::IntVar * > temp2 ;
15684 long val3 ;
15685 int ecode3 = 0 ;
15686 PyObject * obj0 = 0 ;
15687 PyObject * obj1 = 0 ;
15688 PyObject * obj2 = 0 ;
15689 PyObject * obj3 = 0 ;
15691
15692 if (!PyArg_UnpackTuple(args, "Solver_Count", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
15693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
15694 if (!SWIG_IsOK(res1)) {
15695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Count" "', argument " "1"" of type '" "operations_research::Solver *""'");
15696 }
15697 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15698 {
15699 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
15700 if (!PyErr_Occurred())
15701 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
15702 return NULL;
15703 }
15704 arg2 = &temp2;
15705 }
15706 ecode3 = SWIG_AsVal_long(obj2, &val3);
15707 if (!SWIG_IsOK(ecode3)) {
15708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Count" "', argument " "3"" of type '" "int64_t""'");
15709 }
15710 arg3 = static_cast< int64_t >(val3);
15711 {
15712 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
15713 }
15714 {
15715 try {
15716 result = (operations_research::Constraint *)(arg1)->MakeCount((std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4);
15717 }
15718 catch (Swig::DirectorException &e) {
15719 SWIG_fail;
15720 }
15721 }
15723 return resultobj;
15724fail:
15725 return NULL;
15726}
15727
15728
15729SWIGINTERN PyObject *_wrap_Solver_Count(PyObject *self, PyObject *args) {
15730 Py_ssize_t argc;
15731 PyObject *argv[5] = {
15732 0
15733 };
15734 Py_ssize_t ii;
15735
15736 if (!PyTuple_Check(args)) SWIG_fail;
15737 argc = PyObject_Length(args);
15738 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
15739 argv[ii] = PyTuple_GET_ITEM(args,ii);
15740 }
15741 if (argc == 4) {
15742 int _v;
15743 void *vptr = 0;
15744 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
15745 _v = SWIG_CheckState(res);
15746 if (_v) {
15747 {
15748 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
15749 _v = 0;
15750 } else {
15751 const bool is_tuple = PyTuple_Check(argv[1]);
15752 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
15753 size_t i = 0;
15754 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
15755 :PyList_GetItem(argv[1], i))) {
15756 ++i;
15757 }
15758 _v = i == size;
15759 }
15760 }
15761 if (_v) {
15762 {
15763 int res = SWIG_AsVal_long(argv[2], NULL);
15764 _v = SWIG_CheckState(res);
15765 }
15766 if (_v) {
15767 {
15768 _v = CanConvertToIntVar(argv[3]);
15769 if (_v == 0) PyErr_Clear();
15770 }
15771 if (_v) {
15772 return _wrap_Solver_Count__SWIG_1(self, args);
15773 }
15774 }
15775 }
15776 }
15777 }
15778 if (argc == 4) {
15779 int _v;
15780 void *vptr = 0;
15781 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
15782 _v = SWIG_CheckState(res);
15783 if (_v) {
15784 {
15785 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
15786 _v = 0;
15787 } else {
15788 const bool is_tuple = PyTuple_Check(argv[1]);
15789 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
15790 size_t i = 0;
15791 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
15792 :PyList_GetItem(argv[1], i))) {
15793 ++i;
15794 }
15795 _v = i == size;
15796 }
15797 }
15798 if (_v) {
15799 {
15800 int res = SWIG_AsVal_long(argv[2], NULL);
15801 _v = SWIG_CheckState(res);
15802 }
15803 if (_v) {
15804 {
15805 int res = SWIG_AsVal_long(argv[3], NULL);
15806 _v = SWIG_CheckState(res);
15807 }
15808 if (_v) {
15809 return _wrap_Solver_Count__SWIG_0(self, args);
15810 }
15811 }
15812 }
15813 }
15814 }
15815
15816fail:
15817 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_Count'.\n"
15818 " Possible C/C++ prototypes are:\n"
15819 " operations_research::Solver::MakeCount(std::vector< operations_research::IntVar * > const &,int64_t,int64_t)\n"
15820 " operations_research::Solver::MakeCount(std::vector< operations_research::IntVar * > const &,int64_t,operations_research::IntVar *const)\n");
15821 return 0;
15822}
15823
15824
15825SWIGINTERN PyObject *_wrap_Solver_Distribute__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15826 PyObject *resultobj = 0;
15828 std::vector< operations_research::IntVar * > *arg2 = 0 ;
15829 std::vector< int64_t > *arg3 = 0 ;
15830 std::vector< operations_research::IntVar * > *arg4 = 0 ;
15831 void *argp1 = 0 ;
15832 int res1 = 0 ;
15833 std::vector< operations_research::IntVar * > temp2 ;
15834 std::vector< int64_t > temp3 ;
15835 std::vector< operations_research::IntVar * > temp4 ;
15836 PyObject * obj0 = 0 ;
15837 PyObject * obj1 = 0 ;
15838 PyObject * obj2 = 0 ;
15839 PyObject * obj3 = 0 ;
15841
15842 if (!PyArg_UnpackTuple(args, "Solver_Distribute", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
15843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
15844 if (!SWIG_IsOK(res1)) {
15845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Distribute" "', argument " "1"" of type '" "operations_research::Solver *""'");
15846 }
15847 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15848 {
15849 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
15850 if (!PyErr_Occurred())
15851 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
15852 return NULL;
15853 }
15854 arg2 = &temp2;
15855 }
15856 {
15857 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
15858 if (!PyErr_Occurred())
15859 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
15860 return NULL;
15861 }
15862 arg3 = &temp3;
15863 }
15864 {
15865 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
15866 if (!PyErr_Occurred())
15867 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
15868 return NULL;
15869 }
15870 arg4 = &temp4;
15871 }
15872 {
15873 try {
15874 result = (operations_research::Constraint *)(arg1)->MakeDistribute((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int64_t > const &)*arg3,(std::vector< operations_research::IntVar * > const &)*arg4);
15875 }
15876 catch (Swig::DirectorException &e) {
15877 SWIG_fail;
15878 }
15879 }
15881 return resultobj;
15882fail:
15883 return NULL;
15884}
15885
15886
15887SWIGINTERN PyObject *_wrap_Solver_Distribute__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15888 PyObject *resultobj = 0;
15890 std::vector< operations_research::IntVar * > *arg2 = 0 ;
15891 std::vector< int > *arg3 = 0 ;
15892 std::vector< operations_research::IntVar * > *arg4 = 0 ;
15893 void *argp1 = 0 ;
15894 int res1 = 0 ;
15895 std::vector< operations_research::IntVar * > temp2 ;
15896 std::vector< int > temp3 ;
15897 std::vector< operations_research::IntVar * > temp4 ;
15898 PyObject * obj0 = 0 ;
15899 PyObject * obj1 = 0 ;
15900 PyObject * obj2 = 0 ;
15901 PyObject * obj3 = 0 ;
15903
15904 if (!PyArg_UnpackTuple(args, "Solver_Distribute", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
15905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
15906 if (!SWIG_IsOK(res1)) {
15907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Distribute" "', argument " "1"" of type '" "operations_research::Solver *""'");
15908 }
15909 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15910 {
15911 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
15912 if (!PyErr_Occurred())
15913 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
15914 return NULL;
15915 }
15916 arg2 = &temp2;
15917 }
15918 {
15919 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
15920 if (!PyErr_Occurred())
15921 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
15922 return NULL;
15923 }
15924 arg3 = &temp3;
15925 }
15926 {
15927 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
15928 if (!PyErr_Occurred())
15929 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
15930 return NULL;
15931 }
15932 arg4 = &temp4;
15933 }
15934 {
15935 try {
15936 result = (operations_research::Constraint *)(arg1)->MakeDistribute((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int > const &)*arg3,(std::vector< operations_research::IntVar * > const &)*arg4);
15937 }
15938 catch (Swig::DirectorException &e) {
15939 SWIG_fail;
15940 }
15941 }
15943 return resultobj;
15944fail:
15945 return NULL;
15946}
15947
15948
15949SWIGINTERN PyObject *_wrap_Solver_Distribute__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15950 PyObject *resultobj = 0;
15952 std::vector< operations_research::IntVar * > *arg2 = 0 ;
15953 std::vector< operations_research::IntVar * > *arg3 = 0 ;
15954 void *argp1 = 0 ;
15955 int res1 = 0 ;
15956 std::vector< operations_research::IntVar * > temp2 ;
15957 std::vector< operations_research::IntVar * > temp3 ;
15958 PyObject * obj0 = 0 ;
15959 PyObject * obj1 = 0 ;
15960 PyObject * obj2 = 0 ;
15962
15963 if (!PyArg_UnpackTuple(args, "Solver_Distribute", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
15964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
15965 if (!SWIG_IsOK(res1)) {
15966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Distribute" "', argument " "1"" of type '" "operations_research::Solver *""'");
15967 }
15968 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15969 {
15970 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
15971 if (!PyErr_Occurred())
15972 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
15973 return NULL;
15974 }
15975 arg2 = &temp2;
15976 }
15977 {
15978 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
15979 if (!PyErr_Occurred())
15980 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
15981 return NULL;
15982 }
15983 arg3 = &temp3;
15984 }
15985 {
15986 try {
15987 result = (operations_research::Constraint *)(arg1)->MakeDistribute((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3);
15988 }
15989 catch (Swig::DirectorException &e) {
15990 SWIG_fail;
15991 }
15992 }
15994 return resultobj;
15995fail:
15996 return NULL;
15997}
15998
15999
16000SWIGINTERN PyObject *_wrap_Solver_Distribute__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16001 PyObject *resultobj = 0;
16003 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16004 int64_t arg3 ;
16005 int64_t arg4 ;
16006 int64_t arg5 ;
16007 void *argp1 = 0 ;
16008 int res1 = 0 ;
16009 std::vector< operations_research::IntVar * > temp2 ;
16010 long val3 ;
16011 int ecode3 = 0 ;
16012 long val4 ;
16013 int ecode4 = 0 ;
16014 long val5 ;
16015 int ecode5 = 0 ;
16016 PyObject * obj0 = 0 ;
16017 PyObject * obj1 = 0 ;
16018 PyObject * obj2 = 0 ;
16019 PyObject * obj3 = 0 ;
16020 PyObject * obj4 = 0 ;
16022
16023 if (!PyArg_UnpackTuple(args, "Solver_Distribute", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
16024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
16025 if (!SWIG_IsOK(res1)) {
16026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Distribute" "', argument " "1"" of type '" "operations_research::Solver *""'");
16027 }
16028 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
16029 {
16030 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16031 if (!PyErr_Occurred())
16032 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
16033 return NULL;
16034 }
16035 arg2 = &temp2;
16036 }
16037 ecode3 = SWIG_AsVal_long(obj2, &val3);
16038 if (!SWIG_IsOK(ecode3)) {
16039 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Distribute" "', argument " "3"" of type '" "int64_t""'");
16040 }
16041 arg3 = static_cast< int64_t >(val3);
16042 ecode4 = SWIG_AsVal_long(obj3, &val4);
16043 if (!SWIG_IsOK(ecode4)) {
16044 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_Distribute" "', argument " "4"" of type '" "int64_t""'");
16045 }
16046 arg4 = static_cast< int64_t >(val4);
16047 ecode5 = SWIG_AsVal_long(obj4, &val5);
16048 if (!SWIG_IsOK(ecode5)) {
16049 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_Distribute" "', argument " "5"" of type '" "int64_t""'");
16050 }
16051 arg5 = static_cast< int64_t >(val5);
16052 {
16053 try {
16054 result = (operations_research::Constraint *)(arg1)->MakeDistribute((std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4,arg5);
16055 }
16056 catch (Swig::DirectorException &e) {
16057 SWIG_fail;
16058 }
16059 }
16061 return resultobj;
16062fail:
16063 return NULL;
16064}
16065
16066
16067SWIGINTERN PyObject *_wrap_Solver_Distribute__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16068 PyObject *resultobj = 0;
16070 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16071 std::vector< int64_t > *arg3 = 0 ;
16072 std::vector< int64_t > *arg4 = 0 ;
16073 void *argp1 = 0 ;
16074 int res1 = 0 ;
16075 std::vector< operations_research::IntVar * > temp2 ;
16076 std::vector< int64_t > temp3 ;
16077 std::vector< int64_t > temp4 ;
16078 PyObject * obj0 = 0 ;
16079 PyObject * obj1 = 0 ;
16080 PyObject * obj2 = 0 ;
16081 PyObject * obj3 = 0 ;
16083
16084 if (!PyArg_UnpackTuple(args, "Solver_Distribute", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
16085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
16086 if (!SWIG_IsOK(res1)) {
16087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Distribute" "', argument " "1"" of type '" "operations_research::Solver *""'");
16088 }
16089 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
16090 {
16091 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16092 if (!PyErr_Occurred())
16093 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
16094 return NULL;
16095 }
16096 arg2 = &temp2;
16097 }
16098 {
16099 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
16100 if (!PyErr_Occurred())
16101 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
16102 return NULL;
16103 }
16104 arg3 = &temp3;
16105 }
16106 {
16107 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
16108 if (!PyErr_Occurred())
16109 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
16110 return NULL;
16111 }
16112 arg4 = &temp4;
16113 }
16114 {
16115 try {
16116 result = (operations_research::Constraint *)(arg1)->MakeDistribute((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int64_t > const &)*arg3,(std::vector< int64_t > const &)*arg4);
16117 }
16118 catch (Swig::DirectorException &e) {
16119 SWIG_fail;
16120 }
16121 }
16123 return resultobj;
16124fail:
16125 return NULL;
16126}
16127
16128
16129SWIGINTERN PyObject *_wrap_Solver_Distribute__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16130 PyObject *resultobj = 0;
16132 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16133 std::vector< int > *arg3 = 0 ;
16134 std::vector< int > *arg4 = 0 ;
16135 void *argp1 = 0 ;
16136 int res1 = 0 ;
16137 std::vector< operations_research::IntVar * > temp2 ;
16138 std::vector< int > temp3 ;
16139 std::vector< int > temp4 ;
16140 PyObject * obj0 = 0 ;
16141 PyObject * obj1 = 0 ;
16142 PyObject * obj2 = 0 ;
16143 PyObject * obj3 = 0 ;
16145
16146 if (!PyArg_UnpackTuple(args, "Solver_Distribute", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
16147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
16148 if (!SWIG_IsOK(res1)) {
16149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Distribute" "', argument " "1"" of type '" "operations_research::Solver *""'");
16150 }
16151 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
16152 {
16153 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16154 if (!PyErr_Occurred())
16155 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
16156 return NULL;
16157 }
16158 arg2 = &temp2;
16159 }
16160 {
16161 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
16162 if (!PyErr_Occurred())
16163 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
16164 return NULL;
16165 }
16166 arg3 = &temp3;
16167 }
16168 {
16169 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
16170 if (!PyErr_Occurred())
16171 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
16172 return NULL;
16173 }
16174 arg4 = &temp4;
16175 }
16176 {
16177 try {
16178 result = (operations_research::Constraint *)(arg1)->MakeDistribute((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int > const &)*arg3,(std::vector< int > const &)*arg4);
16179 }
16180 catch (Swig::DirectorException &e) {
16181 SWIG_fail;
16182 }
16183 }
16185 return resultobj;
16186fail:
16187 return NULL;
16188}
16189
16190
16191SWIGINTERN PyObject *_wrap_Solver_Distribute__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16192 PyObject *resultobj = 0;
16194 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16195 std::vector< int64_t > *arg3 = 0 ;
16196 std::vector< int64_t > *arg4 = 0 ;
16197 std::vector< int64_t > *arg5 = 0 ;
16198 void *argp1 = 0 ;
16199 int res1 = 0 ;
16200 std::vector< operations_research::IntVar * > temp2 ;
16201 std::vector< int64_t > temp3 ;
16202 std::vector< int64_t > temp4 ;
16203 std::vector< int64_t > temp5 ;
16204 PyObject * obj0 = 0 ;
16205 PyObject * obj1 = 0 ;
16206 PyObject * obj2 = 0 ;
16207 PyObject * obj3 = 0 ;
16208 PyObject * obj4 = 0 ;
16210
16211 if (!PyArg_UnpackTuple(args, "Solver_Distribute", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
16212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
16213 if (!SWIG_IsOK(res1)) {
16214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Distribute" "', argument " "1"" of type '" "operations_research::Solver *""'");
16215 }
16216 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
16217 {
16218 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16219 if (!PyErr_Occurred())
16220 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
16221 return NULL;
16222 }
16223 arg2 = &temp2;
16224 }
16225 {
16226 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
16227 if (!PyErr_Occurred())
16228 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
16229 return NULL;
16230 }
16231 arg3 = &temp3;
16232 }
16233 {
16234 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
16235 if (!PyErr_Occurred())
16236 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
16237 return NULL;
16238 }
16239 arg4 = &temp4;
16240 }
16241 {
16242 if (!vector_input_helper(obj4, &temp5, PyObjAs<int64_t>)) {
16243 if (!PyErr_Occurred())
16244 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
16245 return NULL;
16246 }
16247 arg5 = &temp5;
16248 }
16249 {
16250 try {
16251 result = (operations_research::Constraint *)(arg1)->MakeDistribute((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int64_t > const &)*arg3,(std::vector< int64_t > const &)*arg4,(std::vector< int64_t > const &)*arg5);
16252 }
16253 catch (Swig::DirectorException &e) {
16254 SWIG_fail;
16255 }
16256 }
16258 return resultobj;
16259fail:
16260 return NULL;
16261}
16262
16263
16264SWIGINTERN PyObject *_wrap_Solver_Distribute__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16265 PyObject *resultobj = 0;
16267 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16268 std::vector< int > *arg3 = 0 ;
16269 std::vector< int > *arg4 = 0 ;
16270 std::vector< int > *arg5 = 0 ;
16271 void *argp1 = 0 ;
16272 int res1 = 0 ;
16273 std::vector< operations_research::IntVar * > temp2 ;
16274 std::vector< int > temp3 ;
16275 std::vector< int > temp4 ;
16276 std::vector< int > temp5 ;
16277 PyObject * obj0 = 0 ;
16278 PyObject * obj1 = 0 ;
16279 PyObject * obj2 = 0 ;
16280 PyObject * obj3 = 0 ;
16281 PyObject * obj4 = 0 ;
16283
16284 if (!PyArg_UnpackTuple(args, "Solver_Distribute", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
16285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
16286 if (!SWIG_IsOK(res1)) {
16287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Distribute" "', argument " "1"" of type '" "operations_research::Solver *""'");
16288 }
16289 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
16290 {
16291 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16292 if (!PyErr_Occurred())
16293 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
16294 return NULL;
16295 }
16296 arg2 = &temp2;
16297 }
16298 {
16299 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
16300 if (!PyErr_Occurred())
16301 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
16302 return NULL;
16303 }
16304 arg3 = &temp3;
16305 }
16306 {
16307 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
16308 if (!PyErr_Occurred())
16309 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
16310 return NULL;
16311 }
16312 arg4 = &temp4;
16313 }
16314 {
16315 if (!vector_input_helper(obj4, &temp5, PyObjAs<int>)) {
16316 if (!PyErr_Occurred())
16317 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
16318 return NULL;
16319 }
16320 arg5 = &temp5;
16321 }
16322 {
16323 try {
16324 result = (operations_research::Constraint *)(arg1)->MakeDistribute((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int > const &)*arg3,(std::vector< int > const &)*arg4,(std::vector< int > const &)*arg5);
16325 }
16326 catch (Swig::DirectorException &e) {
16327 SWIG_fail;
16328 }
16329 }
16331 return resultobj;
16332fail:
16333 return NULL;
16334}
16335
16336
16337SWIGINTERN PyObject *_wrap_Solver_Distribute(PyObject *self, PyObject *args) {
16338 Py_ssize_t argc;
16339 PyObject *argv[6] = {
16340 0
16341 };
16342 Py_ssize_t ii;
16343
16344 if (!PyTuple_Check(args)) SWIG_fail;
16345 argc = PyObject_Length(args);
16346 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
16347 argv[ii] = PyTuple_GET_ITEM(args,ii);
16348 }
16349 if (argc == 3) {
16350 int _v;
16351 void *vptr = 0;
16352 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
16353 _v = SWIG_CheckState(res);
16354 if (_v) {
16355 {
16356 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16357 _v = 0;
16358 } else {
16359 const bool is_tuple = PyTuple_Check(argv[1]);
16360 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16361 size_t i = 0;
16362 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
16363 :PyList_GetItem(argv[1], i))) {
16364 ++i;
16365 }
16366 _v = i == size;
16367 }
16368 }
16369 if (_v) {
16370 {
16371 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16372 _v = 0;
16373 } else {
16374 const bool is_tuple = PyTuple_Check(argv[2]);
16375 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16376 size_t i = 0;
16377 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[2], i)
16378 :PyList_GetItem(argv[2], i))) {
16379 ++i;
16380 }
16381 _v = i == size;
16382 }
16383 }
16384 if (_v) {
16385 return _wrap_Solver_Distribute__SWIG_2(self, args);
16386 }
16387 }
16388 }
16389 }
16390 if (argc == 4) {
16391 int _v;
16392 void *vptr = 0;
16393 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
16394 _v = SWIG_CheckState(res);
16395 if (_v) {
16396 {
16397 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16398 _v = 0;
16399 } else {
16400 const bool is_tuple = PyTuple_Check(argv[1]);
16401 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16402 size_t i = 0;
16403 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
16404 :PyList_GetItem(argv[1], i))) {
16405 ++i;
16406 }
16407 _v = i == size;
16408 }
16409 }
16410 if (_v) {
16411 {
16412 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16413 _v = 0;
16414 } else {
16415 const bool is_tuple = PyTuple_Check(argv[2]);
16416 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16417 size_t i = 0;
16418 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16419 :PyList_GetItem(argv[2], i))) {
16420 ++i;
16421 }
16422 _v = i == size;
16423 }
16424 }
16425 if (_v) {
16426 {
16427 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16428 _v = 0;
16429 } else {
16430 const bool is_tuple = PyTuple_Check(argv[3]);
16431 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16432 size_t i = 0;
16433 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[3], i)
16434 :PyList_GetItem(argv[3], i))) {
16435 ++i;
16436 }
16437 _v = i == size;
16438 }
16439 }
16440 if (_v) {
16441 return _wrap_Solver_Distribute__SWIG_1(self, args);
16442 }
16443 }
16444 }
16445 }
16446 }
16447 if (argc == 4) {
16448 int _v;
16449 void *vptr = 0;
16450 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
16451 _v = SWIG_CheckState(res);
16452 if (_v) {
16453 {
16454 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16455 _v = 0;
16456 } else {
16457 const bool is_tuple = PyTuple_Check(argv[1]);
16458 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16459 size_t i = 0;
16460 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
16461 :PyList_GetItem(argv[1], i))) {
16462 ++i;
16463 }
16464 _v = i == size;
16465 }
16466 }
16467 if (_v) {
16468 {
16469 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16470 _v = 0;
16471 } else {
16472 const bool is_tuple = PyTuple_Check(argv[2]);
16473 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16474 size_t i = 0;
16475 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16476 :PyList_GetItem(argv[2], i))) {
16477 ++i;
16478 }
16479 _v = i == size;
16480 }
16481 }
16482 if (_v) {
16483 {
16484 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16485 _v = 0;
16486 } else {
16487 const bool is_tuple = PyTuple_Check(argv[3]);
16488 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16489 size_t i = 0;
16490 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[3], i)
16491 :PyList_GetItem(argv[3], i))) {
16492 ++i;
16493 }
16494 _v = i == size;
16495 }
16496 }
16497 if (_v) {
16498 return _wrap_Solver_Distribute__SWIG_0(self, args);
16499 }
16500 }
16501 }
16502 }
16503 }
16504 if (argc == 4) {
16505 int _v;
16506 void *vptr = 0;
16507 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
16508 _v = SWIG_CheckState(res);
16509 if (_v) {
16510 {
16511 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16512 _v = 0;
16513 } else {
16514 const bool is_tuple = PyTuple_Check(argv[1]);
16515 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16516 size_t i = 0;
16517 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
16518 :PyList_GetItem(argv[1], i))) {
16519 ++i;
16520 }
16521 _v = i == size;
16522 }
16523 }
16524 if (_v) {
16525 {
16526 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16527 _v = 0;
16528 } else {
16529 const bool is_tuple = PyTuple_Check(argv[2]);
16530 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16531 size_t i = 0;
16532 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16533 :PyList_GetItem(argv[2], i))) {
16534 ++i;
16535 }
16536 _v = i == size;
16537 }
16538 }
16539 if (_v) {
16540 {
16541 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16542 _v = 0;
16543 } else {
16544 const bool is_tuple = PyTuple_Check(argv[3]);
16545 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16546 size_t i = 0;
16547 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
16548 :PyList_GetItem(argv[3], i))) {
16549 ++i;
16550 }
16551 _v = i == size;
16552 }
16553 }
16554 if (_v) {
16555 return _wrap_Solver_Distribute__SWIG_4(self, args);
16556 }
16557 }
16558 }
16559 }
16560 }
16561 if (argc == 4) {
16562 int _v;
16563 void *vptr = 0;
16564 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
16565 _v = SWIG_CheckState(res);
16566 if (_v) {
16567 {
16568 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16569 _v = 0;
16570 } else {
16571 const bool is_tuple = PyTuple_Check(argv[1]);
16572 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16573 size_t i = 0;
16574 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
16575 :PyList_GetItem(argv[1], i))) {
16576 ++i;
16577 }
16578 _v = i == size;
16579 }
16580 }
16581 if (_v) {
16582 {
16583 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16584 _v = 0;
16585 } else {
16586 const bool is_tuple = PyTuple_Check(argv[2]);
16587 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16588 size_t i = 0;
16589 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16590 :PyList_GetItem(argv[2], i))) {
16591 ++i;
16592 }
16593 _v = i == size;
16594 }
16595 }
16596 if (_v) {
16597 {
16598 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16599 _v = 0;
16600 } else {
16601 const bool is_tuple = PyTuple_Check(argv[3]);
16602 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16603 size_t i = 0;
16604 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
16605 :PyList_GetItem(argv[3], i))) {
16606 ++i;
16607 }
16608 _v = i == size;
16609 }
16610 }
16611 if (_v) {
16612 return _wrap_Solver_Distribute__SWIG_5(self, args);
16613 }
16614 }
16615 }
16616 }
16617 }
16618 if (argc == 5) {
16619 int _v;
16620 void *vptr = 0;
16621 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
16622 _v = SWIG_CheckState(res);
16623 if (_v) {
16624 {
16625 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16626 _v = 0;
16627 } else {
16628 const bool is_tuple = PyTuple_Check(argv[1]);
16629 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16630 size_t i = 0;
16631 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
16632 :PyList_GetItem(argv[1], i))) {
16633 ++i;
16634 }
16635 _v = i == size;
16636 }
16637 }
16638 if (_v) {
16639 {
16640 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16641 _v = 0;
16642 } else {
16643 const bool is_tuple = PyTuple_Check(argv[2]);
16644 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16645 size_t i = 0;
16646 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16647 :PyList_GetItem(argv[2], i))) {
16648 ++i;
16649 }
16650 _v = i == size;
16651 }
16652 }
16653 if (_v) {
16654 {
16655 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16656 _v = 0;
16657 } else {
16658 const bool is_tuple = PyTuple_Check(argv[3]);
16659 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16660 size_t i = 0;
16661 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
16662 :PyList_GetItem(argv[3], i))) {
16663 ++i;
16664 }
16665 _v = i == size;
16666 }
16667 }
16668 if (_v) {
16669 {
16670 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
16671 _v = 0;
16672 } else {
16673 const bool is_tuple = PyTuple_Check(argv[4]);
16674 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
16675 size_t i = 0;
16676 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
16677 :PyList_GetItem(argv[4], i))) {
16678 ++i;
16679 }
16680 _v = i == size;
16681 }
16682 }
16683 if (_v) {
16684 return _wrap_Solver_Distribute__SWIG_6(self, args);
16685 }
16686 }
16687 }
16688 }
16689 }
16690 }
16691 if (argc == 5) {
16692 int _v;
16693 void *vptr = 0;
16694 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
16695 _v = SWIG_CheckState(res);
16696 if (_v) {
16697 {
16698 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16699 _v = 0;
16700 } else {
16701 const bool is_tuple = PyTuple_Check(argv[1]);
16702 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16703 size_t i = 0;
16704 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
16705 :PyList_GetItem(argv[1], i))) {
16706 ++i;
16707 }
16708 _v = i == size;
16709 }
16710 }
16711 if (_v) {
16712 {
16713 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16714 _v = 0;
16715 } else {
16716 const bool is_tuple = PyTuple_Check(argv[2]);
16717 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16718 size_t i = 0;
16719 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16720 :PyList_GetItem(argv[2], i))) {
16721 ++i;
16722 }
16723 _v = i == size;
16724 }
16725 }
16726 if (_v) {
16727 {
16728 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16729 _v = 0;
16730 } else {
16731 const bool is_tuple = PyTuple_Check(argv[3]);
16732 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16733 size_t i = 0;
16734 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
16735 :PyList_GetItem(argv[3], i))) {
16736 ++i;
16737 }
16738 _v = i == size;
16739 }
16740 }
16741 if (_v) {
16742 {
16743 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
16744 _v = 0;
16745 } else {
16746 const bool is_tuple = PyTuple_Check(argv[4]);
16747 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
16748 size_t i = 0;
16749 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
16750 :PyList_GetItem(argv[4], i))) {
16751 ++i;
16752 }
16753 _v = i == size;
16754 }
16755 }
16756 if (_v) {
16757 return _wrap_Solver_Distribute__SWIG_7(self, args);
16758 }
16759 }
16760 }
16761 }
16762 }
16763 }
16764 if (argc == 5) {
16765 int _v;
16766 void *vptr = 0;
16767 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
16768 _v = SWIG_CheckState(res);
16769 if (_v) {
16770 {
16771 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16772 _v = 0;
16773 } else {
16774 const bool is_tuple = PyTuple_Check(argv[1]);
16775 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16776 size_t i = 0;
16777 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
16778 :PyList_GetItem(argv[1], i))) {
16779 ++i;
16780 }
16781 _v = i == size;
16782 }
16783 }
16784 if (_v) {
16785 {
16786 int res = SWIG_AsVal_long(argv[2], NULL);
16787 _v = SWIG_CheckState(res);
16788 }
16789 if (_v) {
16790 {
16791 int res = SWIG_AsVal_long(argv[3], NULL);
16792 _v = SWIG_CheckState(res);
16793 }
16794 if (_v) {
16795 {
16796 int res = SWIG_AsVal_long(argv[4], NULL);
16797 _v = SWIG_CheckState(res);
16798 }
16799 if (_v) {
16800 return _wrap_Solver_Distribute__SWIG_3(self, args);
16801 }
16802 }
16803 }
16804 }
16805 }
16806 }
16807
16808fail:
16809 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_Distribute'.\n"
16810 " Possible C/C++ prototypes are:\n"
16811 " operations_research::Solver::MakeDistribute(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,std::vector< operations_research::IntVar * > const &)\n"
16812 " operations_research::Solver::MakeDistribute(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,std::vector< operations_research::IntVar * > const &)\n"
16813 " operations_research::Solver::MakeDistribute(std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &)\n"
16814 " operations_research::Solver::MakeDistribute(std::vector< operations_research::IntVar * > const &,int64_t,int64_t,int64_t)\n"
16815 " operations_research::Solver::MakeDistribute(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,std::vector< int64_t > const &)\n"
16816 " operations_research::Solver::MakeDistribute(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,std::vector< int > const &)\n"
16817 " operations_research::Solver::MakeDistribute(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,std::vector< int64_t > const &,std::vector< int64_t > const &)\n"
16818 " operations_research::Solver::MakeDistribute(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,std::vector< int > const &,std::vector< int > const &)\n");
16819 return 0;
16820}
16821
16822
16823SWIGINTERN PyObject *_wrap_Solver_Deviation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16824 PyObject *resultobj = 0;
16826 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16828 int64_t arg4 ;
16829 void *argp1 = 0 ;
16830 int res1 = 0 ;
16831 std::vector< operations_research::IntVar * > temp2 ;
16832 long val4 ;
16833 int ecode4 = 0 ;
16834 PyObject * obj0 = 0 ;
16835 PyObject * obj1 = 0 ;
16836 PyObject * obj2 = 0 ;
16837 PyObject * obj3 = 0 ;
16839
16840 if (!PyArg_UnpackTuple(args, "Solver_Deviation", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
16841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
16842 if (!SWIG_IsOK(res1)) {
16843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Deviation" "', argument " "1"" of type '" "operations_research::Solver *""'");
16844 }
16845 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
16846 {
16847 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16848 if (!PyErr_Occurred())
16849 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
16850 return NULL;
16851 }
16852 arg2 = &temp2;
16853 }
16854 {
16855 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
16856 }
16857 ecode4 = SWIG_AsVal_long(obj3, &val4);
16858 if (!SWIG_IsOK(ecode4)) {
16859 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_Deviation" "', argument " "4"" of type '" "int64_t""'");
16860 }
16861 arg4 = static_cast< int64_t >(val4);
16862 {
16863 try {
16864 result = (operations_research::Constraint *)(arg1)->MakeDeviation((std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4);
16865 }
16866 catch (Swig::DirectorException &e) {
16867 SWIG_fail;
16868 }
16869 }
16871 return resultobj;
16872fail:
16873 return NULL;
16874}
16875
16876
16877SWIGINTERN PyObject *_wrap_Solver_AllDifferent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16878 PyObject *resultobj = 0;
16880 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16881 void *argp1 = 0 ;
16882 int res1 = 0 ;
16883 std::vector< operations_research::IntVar * > temp2 ;
16884 PyObject * obj0 = 0 ;
16885 PyObject * obj1 = 0 ;
16887
16888 if (!PyArg_UnpackTuple(args, "Solver_AllDifferent", 2, 2, &obj0, &obj1)) SWIG_fail;
16889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
16890 if (!SWIG_IsOK(res1)) {
16891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_AllDifferent" "', argument " "1"" of type '" "operations_research::Solver *""'");
16892 }
16893 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
16894 {
16895 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16896 if (!PyErr_Occurred())
16897 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
16898 return NULL;
16899 }
16900 arg2 = &temp2;
16901 }
16902 {
16903 try {
16904 result = (operations_research::Constraint *)(arg1)->MakeAllDifferent((std::vector< operations_research::IntVar * > const &)*arg2);
16905 }
16906 catch (Swig::DirectorException &e) {
16907 SWIG_fail;
16908 }
16909 }
16911 return resultobj;
16912fail:
16913 return NULL;
16914}
16915
16916
16917SWIGINTERN PyObject *_wrap_Solver_AllDifferent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16918 PyObject *resultobj = 0;
16920 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16921 bool arg3 ;
16922 void *argp1 = 0 ;
16923 int res1 = 0 ;
16924 std::vector< operations_research::IntVar * > temp2 ;
16925 bool val3 ;
16926 int ecode3 = 0 ;
16927 PyObject * obj0 = 0 ;
16928 PyObject * obj1 = 0 ;
16929 PyObject * obj2 = 0 ;
16931
16932 if (!PyArg_UnpackTuple(args, "Solver_AllDifferent", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
16933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
16934 if (!SWIG_IsOK(res1)) {
16935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_AllDifferent" "', argument " "1"" of type '" "operations_research::Solver *""'");
16936 }
16937 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
16938 {
16939 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16940 if (!PyErr_Occurred())
16941 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
16942 return NULL;
16943 }
16944 arg2 = &temp2;
16945 }
16946 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16947 if (!SWIG_IsOK(ecode3)) {
16948 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_AllDifferent" "', argument " "3"" of type '" "bool""'");
16949 }
16950 arg3 = static_cast< bool >(val3);
16951 {
16952 try {
16953 result = (operations_research::Constraint *)(arg1)->MakeAllDifferent((std::vector< operations_research::IntVar * > const &)*arg2,arg3);
16954 }
16955 catch (Swig::DirectorException &e) {
16956 SWIG_fail;
16957 }
16958 }
16960 return resultobj;
16961fail:
16962 return NULL;
16963}
16964
16965
16966SWIGINTERN PyObject *_wrap_Solver_AllDifferent(PyObject *self, PyObject *args) {
16967 Py_ssize_t argc;
16968 PyObject *argv[4] = {
16969 0
16970 };
16971 Py_ssize_t ii;
16972
16973 if (!PyTuple_Check(args)) SWIG_fail;
16974 argc = PyObject_Length(args);
16975 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
16976 argv[ii] = PyTuple_GET_ITEM(args,ii);
16977 }
16978 if (argc == 2) {
16979 int _v;
16980 void *vptr = 0;
16981 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
16982 _v = SWIG_CheckState(res);
16983 if (_v) {
16984 {
16985 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16986 _v = 0;
16987 } else {
16988 const bool is_tuple = PyTuple_Check(argv[1]);
16989 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16990 size_t i = 0;
16991 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
16992 :PyList_GetItem(argv[1], i))) {
16993 ++i;
16994 }
16995 _v = i == size;
16996 }
16997 }
16998 if (_v) {
16999 return _wrap_Solver_AllDifferent__SWIG_0(self, args);
17000 }
17001 }
17002 }
17003 if (argc == 3) {
17004 int _v;
17005 void *vptr = 0;
17006 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
17007 _v = SWIG_CheckState(res);
17008 if (_v) {
17009 {
17010 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
17011 _v = 0;
17012 } else {
17013 const bool is_tuple = PyTuple_Check(argv[1]);
17014 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
17015 size_t i = 0;
17016 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
17017 :PyList_GetItem(argv[1], i))) {
17018 ++i;
17019 }
17020 _v = i == size;
17021 }
17022 }
17023 if (_v) {
17024 {
17025 int res = SWIG_AsVal_bool(argv[2], NULL);
17026 _v = SWIG_CheckState(res);
17027 }
17028 if (_v) {
17029 return _wrap_Solver_AllDifferent__SWIG_1(self, args);
17030 }
17031 }
17032 }
17033 }
17034
17035fail:
17036 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_AllDifferent'.\n"
17037 " Possible C/C++ prototypes are:\n"
17038 " operations_research::Solver::MakeAllDifferent(std::vector< operations_research::IntVar * > const &)\n"
17039 " operations_research::Solver::MakeAllDifferent(std::vector< operations_research::IntVar * > const &,bool)\n");
17040 return 0;
17041}
17042
17043
17044SWIGINTERN PyObject *_wrap_Solver_AllDifferentExcept(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17045 PyObject *resultobj = 0;
17047 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17048 int64_t arg3 ;
17049 void *argp1 = 0 ;
17050 int res1 = 0 ;
17051 std::vector< operations_research::IntVar * > temp2 ;
17052 long val3 ;
17053 int ecode3 = 0 ;
17054 PyObject * obj0 = 0 ;
17055 PyObject * obj1 = 0 ;
17056 PyObject * obj2 = 0 ;
17058
17059 if (!PyArg_UnpackTuple(args, "Solver_AllDifferentExcept", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
17060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
17061 if (!SWIG_IsOK(res1)) {
17062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_AllDifferentExcept" "', argument " "1"" of type '" "operations_research::Solver *""'");
17063 }
17064 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17065 {
17066 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17067 if (!PyErr_Occurred())
17068 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17069 return NULL;
17070 }
17071 arg2 = &temp2;
17072 }
17073 ecode3 = SWIG_AsVal_long(obj2, &val3);
17074 if (!SWIG_IsOK(ecode3)) {
17075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_AllDifferentExcept" "', argument " "3"" of type '" "int64_t""'");
17076 }
17077 arg3 = static_cast< int64_t >(val3);
17078 {
17079 try {
17080 result = (operations_research::Constraint *)(arg1)->MakeAllDifferentExcept((std::vector< operations_research::IntVar * > const &)*arg2,arg3);
17081 }
17082 catch (Swig::DirectorException &e) {
17083 SWIG_fail;
17084 }
17085 }
17087 return resultobj;
17088fail:
17089 return NULL;
17090}
17091
17092
17093SWIGINTERN PyObject *_wrap_Solver_SortingConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17094 PyObject *resultobj = 0;
17096 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17097 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17098 void *argp1 = 0 ;
17099 int res1 = 0 ;
17100 std::vector< operations_research::IntVar * > temp2 ;
17101 std::vector< operations_research::IntVar * > temp3 ;
17102 PyObject * obj0 = 0 ;
17103 PyObject * obj1 = 0 ;
17104 PyObject * obj2 = 0 ;
17106
17107 if (!PyArg_UnpackTuple(args, "Solver_SortingConstraint", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
17108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
17109 if (!SWIG_IsOK(res1)) {
17110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SortingConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
17111 }
17112 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17113 {
17114 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17115 if (!PyErr_Occurred())
17116 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17117 return NULL;
17118 }
17119 arg2 = &temp2;
17120 }
17121 {
17122 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17123 if (!PyErr_Occurred())
17124 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17125 return NULL;
17126 }
17127 arg3 = &temp3;
17128 }
17129 {
17130 try {
17131 result = (operations_research::Constraint *)(arg1)->MakeSortingConstraint((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3);
17132 }
17133 catch (Swig::DirectorException &e) {
17134 SWIG_fail;
17135 }
17136 }
17138 return resultobj;
17139fail:
17140 return NULL;
17141}
17142
17143
17144SWIGINTERN PyObject *_wrap_Solver_LexicalLess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17145 PyObject *resultobj = 0;
17147 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17148 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17149 void *argp1 = 0 ;
17150 int res1 = 0 ;
17151 std::vector< operations_research::IntVar * > temp2 ;
17152 std::vector< operations_research::IntVar * > temp3 ;
17153 PyObject * obj0 = 0 ;
17154 PyObject * obj1 = 0 ;
17155 PyObject * obj2 = 0 ;
17157
17158 if (!PyArg_UnpackTuple(args, "Solver_LexicalLess", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
17159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
17160 if (!SWIG_IsOK(res1)) {
17161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_LexicalLess" "', argument " "1"" of type '" "operations_research::Solver *""'");
17162 }
17163 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17164 {
17165 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17166 if (!PyErr_Occurred())
17167 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17168 return NULL;
17169 }
17170 arg2 = &temp2;
17171 }
17172 {
17173 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17174 if (!PyErr_Occurred())
17175 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17176 return NULL;
17177 }
17178 arg3 = &temp3;
17179 }
17180 {
17181 try {
17182 result = (operations_research::Constraint *)(arg1)->MakeLexicalLess((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3);
17183 }
17184 catch (Swig::DirectorException &e) {
17185 SWIG_fail;
17186 }
17187 }
17189 return resultobj;
17190fail:
17191 return NULL;
17192}
17193
17194
17195SWIGINTERN PyObject *_wrap_Solver_LexicalLessOrEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17196 PyObject *resultobj = 0;
17198 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17199 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17200 void *argp1 = 0 ;
17201 int res1 = 0 ;
17202 std::vector< operations_research::IntVar * > temp2 ;
17203 std::vector< operations_research::IntVar * > temp3 ;
17204 PyObject * obj0 = 0 ;
17205 PyObject * obj1 = 0 ;
17206 PyObject * obj2 = 0 ;
17208
17209 if (!PyArg_UnpackTuple(args, "Solver_LexicalLessOrEqual", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
17210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
17211 if (!SWIG_IsOK(res1)) {
17212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_LexicalLessOrEqual" "', argument " "1"" of type '" "operations_research::Solver *""'");
17213 }
17214 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17215 {
17216 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17217 if (!PyErr_Occurred())
17218 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17219 return NULL;
17220 }
17221 arg2 = &temp2;
17222 }
17223 {
17224 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17225 if (!PyErr_Occurred())
17226 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17227 return NULL;
17228 }
17229 arg3 = &temp3;
17230 }
17231 {
17232 try {
17233 result = (operations_research::Constraint *)(arg1)->MakeLexicalLessOrEqual((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3);
17234 }
17235 catch (Swig::DirectorException &e) {
17236 SWIG_fail;
17237 }
17238 }
17240 return resultobj;
17241fail:
17242 return NULL;
17243}
17244
17245
17246SWIGINTERN PyObject *_wrap_Solver_InversePermutationConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17247 PyObject *resultobj = 0;
17249 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17250 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17251 void *argp1 = 0 ;
17252 int res1 = 0 ;
17253 std::vector< operations_research::IntVar * > temp2 ;
17254 std::vector< operations_research::IntVar * > temp3 ;
17255 PyObject * obj0 = 0 ;
17256 PyObject * obj1 = 0 ;
17257 PyObject * obj2 = 0 ;
17259
17260 if (!PyArg_UnpackTuple(args, "Solver_InversePermutationConstraint", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
17261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
17262 if (!SWIG_IsOK(res1)) {
17263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_InversePermutationConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
17264 }
17265 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17266 {
17267 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17268 if (!PyErr_Occurred())
17269 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17270 return NULL;
17271 }
17272 arg2 = &temp2;
17273 }
17274 {
17275 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17276 if (!PyErr_Occurred())
17277 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17278 return NULL;
17279 }
17280 arg3 = &temp3;
17281 }
17282 {
17283 try {
17284 result = (operations_research::Constraint *)(arg1)->MakeInversePermutationConstraint((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3);
17285 }
17286 catch (Swig::DirectorException &e) {
17287 SWIG_fail;
17288 }
17289 }
17291 return resultobj;
17292fail:
17293 return NULL;
17294}
17295
17296
17297SWIGINTERN PyObject *_wrap_Solver_NullIntersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17298 PyObject *resultobj = 0;
17300 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17301 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17302 void *argp1 = 0 ;
17303 int res1 = 0 ;
17304 std::vector< operations_research::IntVar * > temp2 ;
17305 std::vector< operations_research::IntVar * > temp3 ;
17306 PyObject * obj0 = 0 ;
17307 PyObject * obj1 = 0 ;
17308 PyObject * obj2 = 0 ;
17310
17311 if (!PyArg_UnpackTuple(args, "Solver_NullIntersect", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
17312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
17313 if (!SWIG_IsOK(res1)) {
17314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NullIntersect" "', argument " "1"" of type '" "operations_research::Solver *""'");
17315 }
17316 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17317 {
17318 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17319 if (!PyErr_Occurred())
17320 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17321 return NULL;
17322 }
17323 arg2 = &temp2;
17324 }
17325 {
17326 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17327 if (!PyErr_Occurred())
17328 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17329 return NULL;
17330 }
17331 arg3 = &temp3;
17332 }
17333 {
17334 try {
17335 result = (operations_research::Constraint *)(arg1)->MakeNullIntersect((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3);
17336 }
17337 catch (Swig::DirectorException &e) {
17338 SWIG_fail;
17339 }
17340 }
17342 return resultobj;
17343fail:
17344 return NULL;
17345}
17346
17347
17348SWIGINTERN PyObject *_wrap_Solver_NullIntersectExcept(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17349 PyObject *resultobj = 0;
17351 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17352 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17353 int64_t arg4 ;
17354 void *argp1 = 0 ;
17355 int res1 = 0 ;
17356 std::vector< operations_research::IntVar * > temp2 ;
17357 std::vector< operations_research::IntVar * > temp3 ;
17358 long val4 ;
17359 int ecode4 = 0 ;
17360 PyObject * obj0 = 0 ;
17361 PyObject * obj1 = 0 ;
17362 PyObject * obj2 = 0 ;
17363 PyObject * obj3 = 0 ;
17365
17366 if (!PyArg_UnpackTuple(args, "Solver_NullIntersectExcept", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
17367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
17368 if (!SWIG_IsOK(res1)) {
17369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NullIntersectExcept" "', argument " "1"" of type '" "operations_research::Solver *""'");
17370 }
17371 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17372 {
17373 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17374 if (!PyErr_Occurred())
17375 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17376 return NULL;
17377 }
17378 arg2 = &temp2;
17379 }
17380 {
17381 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17382 if (!PyErr_Occurred())
17383 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17384 return NULL;
17385 }
17386 arg3 = &temp3;
17387 }
17388 ecode4 = SWIG_AsVal_long(obj3, &val4);
17389 if (!SWIG_IsOK(ecode4)) {
17390 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_NullIntersectExcept" "', argument " "4"" of type '" "int64_t""'");
17391 }
17392 arg4 = static_cast< int64_t >(val4);
17393 {
17394 try {
17395 result = (operations_research::Constraint *)(arg1)->MakeNullIntersectExcept((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3,arg4);
17396 }
17397 catch (Swig::DirectorException &e) {
17398 SWIG_fail;
17399 }
17400 }
17402 return resultobj;
17403fail:
17404 return NULL;
17405}
17406
17407
17408SWIGINTERN PyObject *_wrap_Solver_Circuit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17409 PyObject *resultobj = 0;
17411 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17412 void *argp1 = 0 ;
17413 int res1 = 0 ;
17414 std::vector< operations_research::IntVar * > temp2 ;
17415 PyObject * obj0 = 0 ;
17416 PyObject * obj1 = 0 ;
17418
17419 if (!PyArg_UnpackTuple(args, "Solver_Circuit", 2, 2, &obj0, &obj1)) SWIG_fail;
17420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
17421 if (!SWIG_IsOK(res1)) {
17422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Circuit" "', argument " "1"" of type '" "operations_research::Solver *""'");
17423 }
17424 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17425 {
17426 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17427 if (!PyErr_Occurred())
17428 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17429 return NULL;
17430 }
17431 arg2 = &temp2;
17432 }
17433 {
17434 try {
17435 result = (operations_research::Constraint *)(arg1)->MakeCircuit((std::vector< operations_research::IntVar * > const &)*arg2);
17436 }
17437 catch (Swig::DirectorException &e) {
17438 SWIG_fail;
17439 }
17440 }
17442 return resultobj;
17443fail:
17444 return NULL;
17445}
17446
17447
17448SWIGINTERN PyObject *_wrap_Solver_SubCircuit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17449 PyObject *resultobj = 0;
17451 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17452 void *argp1 = 0 ;
17453 int res1 = 0 ;
17454 std::vector< operations_research::IntVar * > temp2 ;
17455 PyObject * obj0 = 0 ;
17456 PyObject * obj1 = 0 ;
17458
17459 if (!PyArg_UnpackTuple(args, "Solver_SubCircuit", 2, 2, &obj0, &obj1)) SWIG_fail;
17460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
17461 if (!SWIG_IsOK(res1)) {
17462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SubCircuit" "', argument " "1"" of type '" "operations_research::Solver *""'");
17463 }
17464 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17465 {
17466 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17467 if (!PyErr_Occurred())
17468 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17469 return NULL;
17470 }
17471 arg2 = &temp2;
17472 }
17473 {
17474 try {
17475 result = (operations_research::Constraint *)(arg1)->MakeSubCircuit((std::vector< operations_research::IntVar * > const &)*arg2);
17476 }
17477 catch (Swig::DirectorException &e) {
17478 SWIG_fail;
17479 }
17480 }
17482 return resultobj;
17483fail:
17484 return NULL;
17485}
17486
17487
17488SWIGINTERN PyObject *_wrap_Solver_PathCumul__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17489 PyObject *resultobj = 0;
17491 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17492 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17493 std::vector< operations_research::IntVar * > *arg4 = 0 ;
17494 std::vector< operations_research::IntVar * > *arg5 = 0 ;
17495 void *argp1 = 0 ;
17496 int res1 = 0 ;
17497 std::vector< operations_research::IntVar * > temp2 ;
17498 std::vector< operations_research::IntVar * > temp3 ;
17499 std::vector< operations_research::IntVar * > temp4 ;
17500 std::vector< operations_research::IntVar * > temp5 ;
17501 PyObject * obj0 = 0 ;
17502 PyObject * obj1 = 0 ;
17503 PyObject * obj2 = 0 ;
17504 PyObject * obj3 = 0 ;
17505 PyObject * obj4 = 0 ;
17507
17508 if (!PyArg_UnpackTuple(args, "Solver_PathCumul", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
17509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
17510 if (!SWIG_IsOK(res1)) {
17511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_PathCumul" "', argument " "1"" of type '" "operations_research::Solver *""'");
17512 }
17513 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17514 {
17515 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17516 if (!PyErr_Occurred())
17517 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17518 return NULL;
17519 }
17520 arg2 = &temp2;
17521 }
17522 {
17523 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17524 if (!PyErr_Occurred())
17525 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17526 return NULL;
17527 }
17528 arg3 = &temp3;
17529 }
17530 {
17531 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
17532 if (!PyErr_Occurred())
17533 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17534 return NULL;
17535 }
17536 arg4 = &temp4;
17537 }
17538 {
17539 if (!vector_input_helper(obj4, &temp5, PyObjAs<operations_research::IntVar*>)) {
17540 if (!PyErr_Occurred())
17541 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17542 return NULL;
17543 }
17544 arg5 = &temp5;
17545 }
17546 {
17547 try {
17548 result = (operations_research::Constraint *)(arg1)->MakePathCumul((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3,(std::vector< operations_research::IntVar * > const &)*arg4,(std::vector< operations_research::IntVar * > const &)*arg5);
17549 }
17550 catch (Swig::DirectorException &e) {
17551 SWIG_fail;
17552 }
17553 }
17555 return resultobj;
17556fail:
17557 return NULL;
17558}
17559
17560
17561SWIGINTERN PyObject *_wrap_Solver_DelayedPathCumul(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17562 PyObject *resultobj = 0;
17564 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17565 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17566 std::vector< operations_research::IntVar * > *arg4 = 0 ;
17567 std::vector< operations_research::IntVar * > *arg5 = 0 ;
17568 void *argp1 = 0 ;
17569 int res1 = 0 ;
17570 std::vector< operations_research::IntVar * > temp2 ;
17571 std::vector< operations_research::IntVar * > temp3 ;
17572 std::vector< operations_research::IntVar * > temp4 ;
17573 std::vector< operations_research::IntVar * > temp5 ;
17574 PyObject * obj0 = 0 ;
17575 PyObject * obj1 = 0 ;
17576 PyObject * obj2 = 0 ;
17577 PyObject * obj3 = 0 ;
17578 PyObject * obj4 = 0 ;
17580
17581 if (!PyArg_UnpackTuple(args, "Solver_DelayedPathCumul", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
17582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
17583 if (!SWIG_IsOK(res1)) {
17584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_DelayedPathCumul" "', argument " "1"" of type '" "operations_research::Solver *""'");
17585 }
17586 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17587 {
17588 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17589 if (!PyErr_Occurred())
17590 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17591 return NULL;
17592 }
17593 arg2 = &temp2;
17594 }
17595 {
17596 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17597 if (!PyErr_Occurred())
17598 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17599 return NULL;
17600 }
17601 arg3 = &temp3;
17602 }
17603 {
17604 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
17605 if (!PyErr_Occurred())
17606 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17607 return NULL;
17608 }
17609 arg4 = &temp4;
17610 }
17611 {
17612 if (!vector_input_helper(obj4, &temp5, PyObjAs<operations_research::IntVar*>)) {
17613 if (!PyErr_Occurred())
17614 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17615 return NULL;
17616 }
17617 arg5 = &temp5;
17618 }
17619 {
17620 try {
17621 result = (operations_research::Constraint *)(arg1)->MakeDelayedPathCumul((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3,(std::vector< operations_research::IntVar * > const &)*arg4,(std::vector< operations_research::IntVar * > const &)*arg5);
17622 }
17623 catch (Swig::DirectorException &e) {
17624 SWIG_fail;
17625 }
17626 }
17628 return resultobj;
17629fail:
17630 return NULL;
17631}
17632
17633
17634SWIGINTERN PyObject *_wrap_Solver_PathCumul__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17635 PyObject *resultobj = 0;
17637 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17638 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17639 std::vector< operations_research::IntVar * > *arg4 = 0 ;
17641 void *argp1 = 0 ;
17642 int res1 = 0 ;
17643 std::vector< operations_research::IntVar * > temp2 ;
17644 std::vector< operations_research::IntVar * > temp3 ;
17645 std::vector< operations_research::IntVar * > temp4 ;
17646 PyObject * obj0 = 0 ;
17647 PyObject * obj1 = 0 ;
17648 PyObject * obj2 = 0 ;
17649 PyObject * obj3 = 0 ;
17650 PyObject * obj4 = 0 ;
17652
17653 if (!PyArg_UnpackTuple(args, "Solver_PathCumul", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
17654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
17655 if (!SWIG_IsOK(res1)) {
17656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_PathCumul" "', argument " "1"" of type '" "operations_research::Solver *""'");
17657 }
17658 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17659 {
17660 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17661 if (!PyErr_Occurred())
17662 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17663 return NULL;
17664 }
17665 arg2 = &temp2;
17666 }
17667 {
17668 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17669 if (!PyErr_Occurred())
17670 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17671 return NULL;
17672 }
17673 arg3 = &temp3;
17674 }
17675 {
17676 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
17677 if (!PyErr_Occurred())
17678 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17679 return NULL;
17680 }
17681 arg4 = &temp4;
17682 }
17683 {
17684 SharedPyPtr input(obj4);
17685 arg5 = [input](int64_t i, int64_t j) {
17686 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
17687 };
17688 }
17689 {
17690 try {
17691 result = (operations_research::Constraint *)(arg1)->MakePathCumul((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3,(std::vector< operations_research::IntVar * > const &)*arg4,arg5);
17692 }
17693 catch (Swig::DirectorException &e) {
17694 SWIG_fail;
17695 }
17696 }
17698 return resultobj;
17699fail:
17700 return NULL;
17701}
17702
17703
17704SWIGINTERN PyObject *_wrap_Solver_PathCumul__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17705 PyObject *resultobj = 0;
17707 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17708 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17709 std::vector< operations_research::IntVar * > *arg4 = 0 ;
17710 std::vector< operations_research::IntVar * > *arg5 = 0 ;
17712 void *argp1 = 0 ;
17713 int res1 = 0 ;
17714 std::vector< operations_research::IntVar * > temp2 ;
17715 std::vector< operations_research::IntVar * > temp3 ;
17716 std::vector< operations_research::IntVar * > temp4 ;
17717 std::vector< operations_research::IntVar * > temp5 ;
17718 PyObject * obj0 = 0 ;
17719 PyObject * obj1 = 0 ;
17720 PyObject * obj2 = 0 ;
17721 PyObject * obj3 = 0 ;
17722 PyObject * obj4 = 0 ;
17723 PyObject * obj5 = 0 ;
17725
17726 if (!PyArg_UnpackTuple(args, "Solver_PathCumul", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
17727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
17728 if (!SWIG_IsOK(res1)) {
17729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_PathCumul" "', argument " "1"" of type '" "operations_research::Solver *""'");
17730 }
17731 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17732 {
17733 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17734 if (!PyErr_Occurred())
17735 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17736 return NULL;
17737 }
17738 arg2 = &temp2;
17739 }
17740 {
17741 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17742 if (!PyErr_Occurred())
17743 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17744 return NULL;
17745 }
17746 arg3 = &temp3;
17747 }
17748 {
17749 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
17750 if (!PyErr_Occurred())
17751 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17752 return NULL;
17753 }
17754 arg4 = &temp4;
17755 }
17756 {
17757 if (!vector_input_helper(obj4, &temp5, PyObjAs<operations_research::IntVar*>)) {
17758 if (!PyErr_Occurred())
17759 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
17760 return NULL;
17761 }
17762 arg5 = &temp5;
17763 }
17764 {
17765 SharedPyPtr input(obj5);
17766 arg6 = [input](int64_t i, int64_t j) {
17767 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
17768 };
17769 }
17770 {
17771 try {
17772 result = (operations_research::Constraint *)(arg1)->MakePathCumul((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3,(std::vector< operations_research::IntVar * > const &)*arg4,(std::vector< operations_research::IntVar * > const &)*arg5,arg6);
17773 }
17774 catch (Swig::DirectorException &e) {
17775 SWIG_fail;
17776 }
17777 }
17779 return resultobj;
17780fail:
17781 return NULL;
17782}
17783
17784
17785SWIGINTERN PyObject *_wrap_Solver_PathCumul(PyObject *self, PyObject *args) {
17786 Py_ssize_t argc;
17787 PyObject *argv[7] = {
17788 0
17789 };
17790 Py_ssize_t ii;
17791
17792 if (!PyTuple_Check(args)) SWIG_fail;
17793 argc = PyObject_Length(args);
17794 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
17795 argv[ii] = PyTuple_GET_ITEM(args,ii);
17796 }
17797 if (argc == 5) {
17798 int _v;
17799 void *vptr = 0;
17800 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
17801 _v = SWIG_CheckState(res);
17802 if (_v) {
17803 {
17804 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
17805 _v = 0;
17806 } else {
17807 const bool is_tuple = PyTuple_Check(argv[1]);
17808 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
17809 size_t i = 0;
17810 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
17811 :PyList_GetItem(argv[1], i))) {
17812 ++i;
17813 }
17814 _v = i == size;
17815 }
17816 }
17817 if (_v) {
17818 {
17819 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
17820 _v = 0;
17821 } else {
17822 const bool is_tuple = PyTuple_Check(argv[2]);
17823 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
17824 size_t i = 0;
17825 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[2], i)
17826 :PyList_GetItem(argv[2], i))) {
17827 ++i;
17828 }
17829 _v = i == size;
17830 }
17831 }
17832 if (_v) {
17833 {
17834 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
17835 _v = 0;
17836 } else {
17837 const bool is_tuple = PyTuple_Check(argv[3]);
17838 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
17839 size_t i = 0;
17840 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[3], i)
17841 :PyList_GetItem(argv[3], i))) {
17842 ++i;
17843 }
17844 _v = i == size;
17845 }
17846 }
17847 if (_v) {
17848 {
17849 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
17850 _v = 0;
17851 } else {
17852 const bool is_tuple = PyTuple_Check(argv[4]);
17853 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
17854 size_t i = 0;
17855 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[4], i)
17856 :PyList_GetItem(argv[4], i))) {
17857 ++i;
17858 }
17859 _v = i == size;
17860 }
17861 }
17862 if (_v) {
17863 return _wrap_Solver_PathCumul__SWIG_0(self, args);
17864 }
17865 }
17866 }
17867 }
17868 }
17869 }
17870 if (argc == 5) {
17871 int _v;
17872 void *vptr = 0;
17873 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
17874 _v = SWIG_CheckState(res);
17875 if (_v) {
17876 {
17877 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
17878 _v = 0;
17879 } else {
17880 const bool is_tuple = PyTuple_Check(argv[1]);
17881 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
17882 size_t i = 0;
17883 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
17884 :PyList_GetItem(argv[1], i))) {
17885 ++i;
17886 }
17887 _v = i == size;
17888 }
17889 }
17890 if (_v) {
17891 {
17892 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
17893 _v = 0;
17894 } else {
17895 const bool is_tuple = PyTuple_Check(argv[2]);
17896 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
17897 size_t i = 0;
17898 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[2], i)
17899 :PyList_GetItem(argv[2], i))) {
17900 ++i;
17901 }
17902 _v = i == size;
17903 }
17904 }
17905 if (_v) {
17906 {
17907 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
17908 _v = 0;
17909 } else {
17910 const bool is_tuple = PyTuple_Check(argv[3]);
17911 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
17912 size_t i = 0;
17913 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[3], i)
17914 :PyList_GetItem(argv[3], i))) {
17915 ++i;
17916 }
17917 _v = i == size;
17918 }
17919 }
17920 if (_v) {
17921 {
17922 _v = PyCallable_Check(argv[4]);
17923 }
17924 if (_v) {
17925 return _wrap_Solver_PathCumul__SWIG_1(self, args);
17926 }
17927 }
17928 }
17929 }
17930 }
17931 }
17932 if (argc == 6) {
17933 int _v;
17934 void *vptr = 0;
17935 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
17936 _v = SWIG_CheckState(res);
17937 if (_v) {
17938 {
17939 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
17940 _v = 0;
17941 } else {
17942 const bool is_tuple = PyTuple_Check(argv[1]);
17943 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
17944 size_t i = 0;
17945 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
17946 :PyList_GetItem(argv[1], i))) {
17947 ++i;
17948 }
17949 _v = i == size;
17950 }
17951 }
17952 if (_v) {
17953 {
17954 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
17955 _v = 0;
17956 } else {
17957 const bool is_tuple = PyTuple_Check(argv[2]);
17958 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
17959 size_t i = 0;
17960 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[2], i)
17961 :PyList_GetItem(argv[2], i))) {
17962 ++i;
17963 }
17964 _v = i == size;
17965 }
17966 }
17967 if (_v) {
17968 {
17969 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
17970 _v = 0;
17971 } else {
17972 const bool is_tuple = PyTuple_Check(argv[3]);
17973 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
17974 size_t i = 0;
17975 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[3], i)
17976 :PyList_GetItem(argv[3], i))) {
17977 ++i;
17978 }
17979 _v = i == size;
17980 }
17981 }
17982 if (_v) {
17983 {
17984 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
17985 _v = 0;
17986 } else {
17987 const bool is_tuple = PyTuple_Check(argv[4]);
17988 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
17989 size_t i = 0;
17990 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[4], i)
17991 :PyList_GetItem(argv[4], i))) {
17992 ++i;
17993 }
17994 _v = i == size;
17995 }
17996 }
17997 if (_v) {
17998 {
17999 _v = PyCallable_Check(argv[5]);
18000 }
18001 if (_v) {
18002 return _wrap_Solver_PathCumul__SWIG_2(self, args);
18003 }
18004 }
18005 }
18006 }
18007 }
18008 }
18009 }
18010
18011fail:
18012 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_PathCumul'.\n"
18013 " Possible C/C++ prototypes are:\n"
18014 " operations_research::Solver::MakePathCumul(std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &)\n"
18015 " operations_research::Solver::MakePathCumul(std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &,operations_research::Solver::IndexEvaluator2)\n"
18016 " operations_research::Solver::MakePathCumul(std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &,operations_research::Solver::IndexEvaluator2)\n");
18017 return 0;
18018}
18019
18020
18021SWIGINTERN PyObject *_wrap_Solver_AllowedAssignments__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18022 PyObject *resultobj = 0;
18024 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18026 void *argp1 = 0 ;
18027 int res1 = 0 ;
18028 std::vector< operations_research::IntVar * > temp2 ;
18029 void *argp3 = 0 ;
18030 int res3 = 0 ;
18031 PyObject * obj0 = 0 ;
18032 PyObject * obj1 = 0 ;
18033 PyObject * obj2 = 0 ;
18035
18036 if (!PyArg_UnpackTuple(args, "Solver_AllowedAssignments", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
18037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
18038 if (!SWIG_IsOK(res1)) {
18039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_AllowedAssignments" "', argument " "1"" of type '" "operations_research::Solver *""'");
18040 }
18041 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
18042 {
18043 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18044 if (!PyErr_Occurred())
18045 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
18046 return NULL;
18047 }
18048 arg2 = &temp2;
18049 }
18051 if (!SWIG_IsOK(res3)) {
18052 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_AllowedAssignments" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18053 }
18054 if (!argp3) {
18055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_AllowedAssignments" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18056 }
18057 arg3 = reinterpret_cast< operations_research::IntTupleSet * >(argp3);
18058 {
18059 try {
18060 result = (operations_research::Constraint *)(arg1)->MakeAllowedAssignments((std::vector< operations_research::IntVar * > const &)*arg2,(operations_research::IntTupleSet const &)*arg3);
18061 }
18062 catch (Swig::DirectorException &e) {
18063 SWIG_fail;
18064 }
18065 }
18067 return resultobj;
18068fail:
18069 return NULL;
18070}
18071
18072
18073SWIGINTERN PyObject *_wrap_Solver_TransitionConstraint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18074 PyObject *resultobj = 0;
18076 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18078 int64_t arg4 ;
18079 std::vector< int64_t > *arg5 = 0 ;
18080 void *argp1 = 0 ;
18081 int res1 = 0 ;
18082 std::vector< operations_research::IntVar * > temp2 ;
18083 void *argp3 = 0 ;
18084 int res3 = 0 ;
18085 long val4 ;
18086 int ecode4 = 0 ;
18087 std::vector< int64_t > temp5 ;
18088 PyObject * obj0 = 0 ;
18089 PyObject * obj1 = 0 ;
18090 PyObject * obj2 = 0 ;
18091 PyObject * obj3 = 0 ;
18092 PyObject * obj4 = 0 ;
18094
18095 if (!PyArg_UnpackTuple(args, "Solver_TransitionConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
18096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
18097 if (!SWIG_IsOK(res1)) {
18098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_TransitionConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
18099 }
18100 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
18101 {
18102 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18103 if (!PyErr_Occurred())
18104 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
18105 return NULL;
18106 }
18107 arg2 = &temp2;
18108 }
18110 if (!SWIG_IsOK(res3)) {
18111 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_TransitionConstraint" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18112 }
18113 if (!argp3) {
18114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_TransitionConstraint" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18115 }
18116 arg3 = reinterpret_cast< operations_research::IntTupleSet * >(argp3);
18117 ecode4 = SWIG_AsVal_long(obj3, &val4);
18118 if (!SWIG_IsOK(ecode4)) {
18119 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_TransitionConstraint" "', argument " "4"" of type '" "int64_t""'");
18120 }
18121 arg4 = static_cast< int64_t >(val4);
18122 {
18123 if (!vector_input_helper(obj4, &temp5, PyObjAs<int64_t>)) {
18124 if (!PyErr_Occurred())
18125 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
18126 return NULL;
18127 }
18128 arg5 = &temp5;
18129 }
18130 {
18131 try {
18132 result = (operations_research::Constraint *)(arg1)->MakeTransitionConstraint((std::vector< operations_research::IntVar * > const &)*arg2,(operations_research::IntTupleSet const &)*arg3,arg4,(std::vector< int64_t > const &)*arg5);
18133 }
18134 catch (Swig::DirectorException &e) {
18135 SWIG_fail;
18136 }
18137 }
18139 return resultobj;
18140fail:
18141 return NULL;
18142}
18143
18144
18145SWIGINTERN PyObject *_wrap_Solver_TransitionConstraint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18146 PyObject *resultobj = 0;
18148 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18150 int64_t arg4 ;
18151 std::vector< int > *arg5 = 0 ;
18152 void *argp1 = 0 ;
18153 int res1 = 0 ;
18154 std::vector< operations_research::IntVar * > temp2 ;
18155 void *argp3 = 0 ;
18156 int res3 = 0 ;
18157 long val4 ;
18158 int ecode4 = 0 ;
18159 std::vector< int > temp5 ;
18160 PyObject * obj0 = 0 ;
18161 PyObject * obj1 = 0 ;
18162 PyObject * obj2 = 0 ;
18163 PyObject * obj3 = 0 ;
18164 PyObject * obj4 = 0 ;
18166
18167 if (!PyArg_UnpackTuple(args, "Solver_TransitionConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
18168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
18169 if (!SWIG_IsOK(res1)) {
18170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_TransitionConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
18171 }
18172 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
18173 {
18174 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18175 if (!PyErr_Occurred())
18176 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
18177 return NULL;
18178 }
18179 arg2 = &temp2;
18180 }
18182 if (!SWIG_IsOK(res3)) {
18183 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_TransitionConstraint" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18184 }
18185 if (!argp3) {
18186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_TransitionConstraint" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18187 }
18188 arg3 = reinterpret_cast< operations_research::IntTupleSet * >(argp3);
18189 ecode4 = SWIG_AsVal_long(obj3, &val4);
18190 if (!SWIG_IsOK(ecode4)) {
18191 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_TransitionConstraint" "', argument " "4"" of type '" "int64_t""'");
18192 }
18193 arg4 = static_cast< int64_t >(val4);
18194 {
18195 if (!vector_input_helper(obj4, &temp5, PyObjAs<int>)) {
18196 if (!PyErr_Occurred())
18197 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
18198 return NULL;
18199 }
18200 arg5 = &temp5;
18201 }
18202 {
18203 try {
18204 result = (operations_research::Constraint *)(arg1)->MakeTransitionConstraint((std::vector< operations_research::IntVar * > const &)*arg2,(operations_research::IntTupleSet const &)*arg3,arg4,(std::vector< int > const &)*arg5);
18205 }
18206 catch (Swig::DirectorException &e) {
18207 SWIG_fail;
18208 }
18209 }
18211 return resultobj;
18212fail:
18213 return NULL;
18214}
18215
18216
18217SWIGINTERN PyObject *_wrap_Solver_AllowedAssignments__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18218 PyObject *resultobj = 0;
18220 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18221 std::vector< std::vector< int64_t > > *arg3 = 0 ;
18222 void *argp1 = 0 ;
18223 int res1 = 0 ;
18224 std::vector< operations_research::IntVar * > temp2 ;
18225 std::vector< std::vector< int64_t > > temp3 ;
18226 PyObject * obj0 = 0 ;
18227 PyObject * obj1 = 0 ;
18228 PyObject * obj2 = 0 ;
18230
18231 if (!PyArg_UnpackTuple(args, "Solver_AllowedAssignments", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
18232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
18233 if (!SWIG_IsOK(res1)) {
18234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_AllowedAssignments" "', argument " "1"" of type '" "operations_research::Solver *""'");
18235 }
18236 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
18237 {
18238 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18239 if (!PyErr_Occurred())
18240 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
18241 return NULL;
18242 }
18243 arg2 = &temp2;
18244 }
18245 {
18246 if (!PyList_Check(obj2)) {
18247 PyErr_SetString(PyExc_TypeError, "Expecting a list of tuples");
18248 SWIG_fail;
18249 }
18250 int len = PyList_Size(obj2);
18251 int arity = -1;
18252 if (len > 0) {
18253 temp3.resize(len);
18254 for (size_t i = 0; i < len; ++i) {
18255 PyObject *tuple = PyList_GetItem(obj2, i);
18256 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
18257 PyErr_SetString(PyExc_TypeError, "Expecting a sequence");
18258 SWIG_fail;
18259 }
18260 bool is_tuple = PyTuple_Check(tuple);
18261 int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
18262 temp3[i].resize(arity);
18263 for (size_t j = 0; j < arity; ++j) {
18264 bool success = PyObjAs<int64_t>(
18265 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j),
18266 &temp3[i][j]);
18267 if (!success) {
18268 SWIG_fail;
18269 }
18270 }
18271 }
18272 }
18273 arg3 = &temp3;
18274 }
18275 {
18276 try {
18277 result = (operations_research::Constraint *)(arg1)->MakeAllowedAssignments((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< std::vector< int64_t > > const &)*arg3);
18278 }
18279 catch (Swig::DirectorException &e) {
18280 SWIG_fail;
18281 }
18282 }
18284 return resultobj;
18285fail:
18286 return NULL;
18287}
18288
18289
18290SWIGINTERN PyObject *_wrap_Solver_AllowedAssignments(PyObject *self, PyObject *args) {
18291 Py_ssize_t argc;
18292 PyObject *argv[4] = {
18293 0
18294 };
18295 Py_ssize_t ii;
18296
18297 if (!PyTuple_Check(args)) SWIG_fail;
18298 argc = PyObject_Length(args);
18299 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
18300 argv[ii] = PyTuple_GET_ITEM(args,ii);
18301 }
18302 if (argc == 3) {
18303 int _v;
18304 void *vptr = 0;
18305 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
18306 _v = SWIG_CheckState(res);
18307 if (_v) {
18308 {
18309 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18310 _v = 0;
18311 } else {
18312 const bool is_tuple = PyTuple_Check(argv[1]);
18313 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18314 size_t i = 0;
18315 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
18316 :PyList_GetItem(argv[1], i))) {
18317 ++i;
18318 }
18319 _v = i == size;
18320 }
18321 }
18322 if (_v) {
18324 _v = SWIG_CheckState(res);
18325 if (_v) {
18326 return _wrap_Solver_AllowedAssignments__SWIG_0(self, args);
18327 }
18328 }
18329 }
18330 }
18331 if (argc == 3) {
18332 int _v;
18333 void *vptr = 0;
18334 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
18335 _v = SWIG_CheckState(res);
18336 if (_v) {
18337 {
18338 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18339 _v = 0;
18340 } else {
18341 const bool is_tuple = PyTuple_Check(argv[1]);
18342 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18343 size_t i = 0;
18344 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
18345 :PyList_GetItem(argv[1], i))) {
18346 ++i;
18347 }
18348 _v = i == size;
18349 }
18350 }
18351 if (_v) {
18352 {
18353 if (!PyList_Check(argv[2])) {
18354 _v = 0;
18355 } else {
18356 const int size = PyList_Size(argv[2]);
18357 bool failed = false;
18358 for (size_t i = 0; i < size; ++i) {
18359 PyObject* const tuple = PyList_GetItem(argv[2], i);
18360 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
18361 _v = 0;
18362 break;
18363 } else {
18364 const bool is_tuple = PyTuple_Check(tuple);
18365 const int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
18366 for (size_t j = 0; j < arity; ++j) {
18367 PyObject* const entry =
18368 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j);
18369 if (!SwigPyIntOrLong_Check(entry)) {
18370 failed = true;
18371 break;
18372 }
18373 }
18374 }
18375 if (failed) {
18376 break;
18377 }
18378 }
18379 _v = failed ? 0 : 1;
18380 }
18381 }
18382 if (_v) {
18383 return _wrap_Solver_AllowedAssignments__SWIG_1(self, args);
18384 }
18385 }
18386 }
18387 }
18388
18389fail:
18390 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_AllowedAssignments'.\n"
18391 " Possible C/C++ prototypes are:\n"
18392 " operations_research::Solver::MakeAllowedAssignments(std::vector< operations_research::IntVar * > const &,operations_research::IntTupleSet const &)\n"
18393 " operations_research::Solver::MakeAllowedAssignments(std::vector< operations_research::IntVar * > const &,std::vector< std::vector< int64_t > > const &)\n");
18394 return 0;
18395}
18396
18397
18398SWIGINTERN PyObject *_wrap_Solver_TransitionConstraint__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18399 PyObject *resultobj = 0;
18401 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18402 std::vector< std::vector< int64_t > > *arg3 = 0 ;
18403 int64_t arg4 ;
18404 std::vector< int > *arg5 = 0 ;
18405 void *argp1 = 0 ;
18406 int res1 = 0 ;
18407 std::vector< operations_research::IntVar * > temp2 ;
18408 std::vector< std::vector< int64_t > > temp3 ;
18409 long val4 ;
18410 int ecode4 = 0 ;
18411 std::vector< int > temp5 ;
18412 PyObject * obj0 = 0 ;
18413 PyObject * obj1 = 0 ;
18414 PyObject * obj2 = 0 ;
18415 PyObject * obj3 = 0 ;
18416 PyObject * obj4 = 0 ;
18418
18419 if (!PyArg_UnpackTuple(args, "Solver_TransitionConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
18420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
18421 if (!SWIG_IsOK(res1)) {
18422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_TransitionConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
18423 }
18424 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
18425 {
18426 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18427 if (!PyErr_Occurred())
18428 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
18429 return NULL;
18430 }
18431 arg2 = &temp2;
18432 }
18433 {
18434 if (!PyList_Check(obj2)) {
18435 PyErr_SetString(PyExc_TypeError, "Expecting a list of tuples");
18436 SWIG_fail;
18437 }
18438 int len = PyList_Size(obj2);
18439 int arity = -1;
18440 if (len > 0) {
18441 temp3.resize(len);
18442 for (size_t i = 0; i < len; ++i) {
18443 PyObject *tuple = PyList_GetItem(obj2, i);
18444 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
18445 PyErr_SetString(PyExc_TypeError, "Expecting a sequence");
18446 SWIG_fail;
18447 }
18448 bool is_tuple = PyTuple_Check(tuple);
18449 int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
18450 temp3[i].resize(arity);
18451 for (size_t j = 0; j < arity; ++j) {
18452 bool success = PyObjAs<int64_t>(
18453 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j),
18454 &temp3[i][j]);
18455 if (!success) {
18456 SWIG_fail;
18457 }
18458 }
18459 }
18460 }
18461 arg3 = &temp3;
18462 }
18463 ecode4 = SWIG_AsVal_long(obj3, &val4);
18464 if (!SWIG_IsOK(ecode4)) {
18465 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_TransitionConstraint" "', argument " "4"" of type '" "int64_t""'");
18466 }
18467 arg4 = static_cast< int64_t >(val4);
18468 {
18469 if (!vector_input_helper(obj4, &temp5, PyObjAs<int>)) {
18470 if (!PyErr_Occurred())
18471 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
18472 return NULL;
18473 }
18474 arg5 = &temp5;
18475 }
18476 {
18477 try {
18478 result = (operations_research::Constraint *)(arg1)->MakeTransitionConstraint((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< std::vector< int64_t > > const &)*arg3,arg4,(std::vector< int > const &)*arg5);
18479 }
18480 catch (Swig::DirectorException &e) {
18481 SWIG_fail;
18482 }
18483 }
18485 return resultobj;
18486fail:
18487 return NULL;
18488}
18489
18490
18491SWIGINTERN PyObject *_wrap_Solver_TransitionConstraint(PyObject *self, PyObject *args) {
18492 Py_ssize_t argc;
18493 PyObject *argv[6] = {
18494 0
18495 };
18496 Py_ssize_t ii;
18497
18498 if (!PyTuple_Check(args)) SWIG_fail;
18499 argc = PyObject_Length(args);
18500 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
18501 argv[ii] = PyTuple_GET_ITEM(args,ii);
18502 }
18503 if (argc == 5) {
18504 int _v;
18505 void *vptr = 0;
18506 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
18507 _v = SWIG_CheckState(res);
18508 if (_v) {
18509 {
18510 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18511 _v = 0;
18512 } else {
18513 const bool is_tuple = PyTuple_Check(argv[1]);
18514 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18515 size_t i = 0;
18516 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
18517 :PyList_GetItem(argv[1], i))) {
18518 ++i;
18519 }
18520 _v = i == size;
18521 }
18522 }
18523 if (_v) {
18525 _v = SWIG_CheckState(res);
18526 if (_v) {
18527 {
18528 int res = SWIG_AsVal_long(argv[3], NULL);
18529 _v = SWIG_CheckState(res);
18530 }
18531 if (_v) {
18532 {
18533 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
18534 _v = 0;
18535 } else {
18536 const bool is_tuple = PyTuple_Check(argv[4]);
18537 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
18538 size_t i = 0;
18539 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
18540 :PyList_GetItem(argv[4], i))) {
18541 ++i;
18542 }
18543 _v = i == size;
18544 }
18545 }
18546 if (_v) {
18548 }
18549 }
18550 }
18551 }
18552 }
18553 }
18554 if (argc == 5) {
18555 int _v;
18556 void *vptr = 0;
18557 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
18558 _v = SWIG_CheckState(res);
18559 if (_v) {
18560 {
18561 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18562 _v = 0;
18563 } else {
18564 const bool is_tuple = PyTuple_Check(argv[1]);
18565 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18566 size_t i = 0;
18567 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
18568 :PyList_GetItem(argv[1], i))) {
18569 ++i;
18570 }
18571 _v = i == size;
18572 }
18573 }
18574 if (_v) {
18576 _v = SWIG_CheckState(res);
18577 if (_v) {
18578 {
18579 int res = SWIG_AsVal_long(argv[3], NULL);
18580 _v = SWIG_CheckState(res);
18581 }
18582 if (_v) {
18583 {
18584 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
18585 _v = 0;
18586 } else {
18587 const bool is_tuple = PyTuple_Check(argv[4]);
18588 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
18589 size_t i = 0;
18590 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
18591 :PyList_GetItem(argv[4], i))) {
18592 ++i;
18593 }
18594 _v = i == size;
18595 }
18596 }
18597 if (_v) {
18599 }
18600 }
18601 }
18602 }
18603 }
18604 }
18605 if (argc == 5) {
18606 int _v;
18607 void *vptr = 0;
18608 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
18609 _v = SWIG_CheckState(res);
18610 if (_v) {
18611 {
18612 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18613 _v = 0;
18614 } else {
18615 const bool is_tuple = PyTuple_Check(argv[1]);
18616 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18617 size_t i = 0;
18618 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
18619 :PyList_GetItem(argv[1], i))) {
18620 ++i;
18621 }
18622 _v = i == size;
18623 }
18624 }
18625 if (_v) {
18626 {
18627 if (!PyList_Check(argv[2])) {
18628 _v = 0;
18629 } else {
18630 const int size = PyList_Size(argv[2]);
18631 bool failed = false;
18632 for (size_t i = 0; i < size; ++i) {
18633 PyObject* const tuple = PyList_GetItem(argv[2], i);
18634 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
18635 _v = 0;
18636 break;
18637 } else {
18638 const bool is_tuple = PyTuple_Check(tuple);
18639 const int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
18640 for (size_t j = 0; j < arity; ++j) {
18641 PyObject* const entry =
18642 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j);
18643 if (!SwigPyIntOrLong_Check(entry)) {
18644 failed = true;
18645 break;
18646 }
18647 }
18648 }
18649 if (failed) {
18650 break;
18651 }
18652 }
18653 _v = failed ? 0 : 1;
18654 }
18655 }
18656 if (_v) {
18657 {
18658 int res = SWIG_AsVal_long(argv[3], NULL);
18659 _v = SWIG_CheckState(res);
18660 }
18661 if (_v) {
18662 {
18663 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
18664 _v = 0;
18665 } else {
18666 const bool is_tuple = PyTuple_Check(argv[4]);
18667 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
18668 size_t i = 0;
18669 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
18670 :PyList_GetItem(argv[4], i))) {
18671 ++i;
18672 }
18673 _v = i == size;
18674 }
18675 }
18676 if (_v) {
18678 }
18679 }
18680 }
18681 }
18682 }
18683 }
18684
18685fail:
18686 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_TransitionConstraint'.\n"
18687 " Possible C/C++ prototypes are:\n"
18688 " operations_research::Solver::MakeTransitionConstraint(std::vector< operations_research::IntVar * > const &,operations_research::IntTupleSet const &,int64_t,std::vector< int64_t > const &)\n"
18689 " operations_research::Solver::MakeTransitionConstraint(std::vector< operations_research::IntVar * > const &,operations_research::IntTupleSet const &,int64_t,std::vector< int > const &)\n"
18690 " operations_research::Solver::MakeTransitionConstraint(std::vector< operations_research::IntVar * > const &,std::vector< std::vector< int64_t > > const &,int64_t,std::vector< int > const &)\n");
18691 return 0;
18692}
18693
18694
18696 PyObject *resultobj = 0;
18698 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18699 std::vector< operations_research::IntVar * > *arg3 = 0 ;
18700 std::vector< operations_research::IntVar * > *arg4 = 0 ;
18701 std::vector< operations_research::IntVar * > *arg5 = 0 ;
18702 void *argp1 = 0 ;
18703 int res1 = 0 ;
18704 std::vector< operations_research::IntVar * > temp2 ;
18705 std::vector< operations_research::IntVar * > temp3 ;
18706 std::vector< operations_research::IntVar * > temp4 ;
18707 std::vector< operations_research::IntVar * > temp5 ;
18708 PyObject * obj0 = 0 ;
18709 PyObject * obj1 = 0 ;
18710 PyObject * obj2 = 0 ;
18711 PyObject * obj3 = 0 ;
18712 PyObject * obj4 = 0 ;
18714
18715 if (!PyArg_UnpackTuple(args, "Solver_NonOverlappingBoxesConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
18716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
18717 if (!SWIG_IsOK(res1)) {
18718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NonOverlappingBoxesConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
18719 }
18720 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
18721 {
18722 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18723 if (!PyErr_Occurred())
18724 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
18725 return NULL;
18726 }
18727 arg2 = &temp2;
18728 }
18729 {
18730 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
18731 if (!PyErr_Occurred())
18732 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
18733 return NULL;
18734 }
18735 arg3 = &temp3;
18736 }
18737 {
18738 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
18739 if (!PyErr_Occurred())
18740 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
18741 return NULL;
18742 }
18743 arg4 = &temp4;
18744 }
18745 {
18746 if (!vector_input_helper(obj4, &temp5, PyObjAs<operations_research::IntVar*>)) {
18747 if (!PyErr_Occurred())
18748 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
18749 return NULL;
18750 }
18751 arg5 = &temp5;
18752 }
18753 {
18754 try {
18755 result = (operations_research::Constraint *)(arg1)->MakeNonOverlappingBoxesConstraint((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3,(std::vector< operations_research::IntVar * > const &)*arg4,(std::vector< operations_research::IntVar * > const &)*arg5);
18756 }
18757 catch (Swig::DirectorException &e) {
18758 SWIG_fail;
18759 }
18760 }
18762 return resultobj;
18763fail:
18764 return NULL;
18765}
18766
18767
18769 PyObject *resultobj = 0;
18771 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18772 std::vector< operations_research::IntVar * > *arg3 = 0 ;
18773 std::vector< int64_t > *arg4 = 0 ;
18774 std::vector< int64_t > *arg5 = 0 ;
18775 void *argp1 = 0 ;
18776 int res1 = 0 ;
18777 std::vector< operations_research::IntVar * > temp2 ;
18778 std::vector< operations_research::IntVar * > temp3 ;
18779 std::vector< int64_t > temp4 ;
18780 std::vector< int64_t > temp5 ;
18781 PyObject * obj0 = 0 ;
18782 PyObject * obj1 = 0 ;
18783 PyObject * obj2 = 0 ;
18784 PyObject * obj3 = 0 ;
18785 PyObject * obj4 = 0 ;
18787
18788 if (!PyArg_UnpackTuple(args, "Solver_NonOverlappingBoxesConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
18789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
18790 if (!SWIG_IsOK(res1)) {
18791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NonOverlappingBoxesConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
18792 }
18793 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
18794 {
18795 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18796 if (!PyErr_Occurred())
18797 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
18798 return NULL;
18799 }
18800 arg2 = &temp2;
18801 }
18802 {
18803 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
18804 if (!PyErr_Occurred())
18805 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
18806 return NULL;
18807 }
18808 arg3 = &temp3;
18809 }
18810 {
18811 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
18812 if (!PyErr_Occurred())
18813 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
18814 return NULL;
18815 }
18816 arg4 = &temp4;
18817 }
18818 {
18819 if (!vector_input_helper(obj4, &temp5, PyObjAs<int64_t>)) {
18820 if (!PyErr_Occurred())
18821 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
18822 return NULL;
18823 }
18824 arg5 = &temp5;
18825 }
18826 {
18827 try {
18828 result = (operations_research::Constraint *)(arg1)->MakeNonOverlappingBoxesConstraint((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3,(std::vector< int64_t > const &)*arg4,(std::vector< int64_t > const &)*arg5);
18829 }
18830 catch (Swig::DirectorException &e) {
18831 SWIG_fail;
18832 }
18833 }
18835 return resultobj;
18836fail:
18837 return NULL;
18838}
18839
18840
18842 PyObject *resultobj = 0;
18844 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18845 std::vector< operations_research::IntVar * > *arg3 = 0 ;
18846 std::vector< int > *arg4 = 0 ;
18847 std::vector< int > *arg5 = 0 ;
18848 void *argp1 = 0 ;
18849 int res1 = 0 ;
18850 std::vector< operations_research::IntVar * > temp2 ;
18851 std::vector< operations_research::IntVar * > temp3 ;
18852 std::vector< int > temp4 ;
18853 std::vector< int > temp5 ;
18854 PyObject * obj0 = 0 ;
18855 PyObject * obj1 = 0 ;
18856 PyObject * obj2 = 0 ;
18857 PyObject * obj3 = 0 ;
18858 PyObject * obj4 = 0 ;
18860
18861 if (!PyArg_UnpackTuple(args, "Solver_NonOverlappingBoxesConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
18862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
18863 if (!SWIG_IsOK(res1)) {
18864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NonOverlappingBoxesConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
18865 }
18866 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
18867 {
18868 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18869 if (!PyErr_Occurred())
18870 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
18871 return NULL;
18872 }
18873 arg2 = &temp2;
18874 }
18875 {
18876 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
18877 if (!PyErr_Occurred())
18878 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
18879 return NULL;
18880 }
18881 arg3 = &temp3;
18882 }
18883 {
18884 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
18885 if (!PyErr_Occurred())
18886 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
18887 return NULL;
18888 }
18889 arg4 = &temp4;
18890 }
18891 {
18892 if (!vector_input_helper(obj4, &temp5, PyObjAs<int>)) {
18893 if (!PyErr_Occurred())
18894 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
18895 return NULL;
18896 }
18897 arg5 = &temp5;
18898 }
18899 {
18900 try {
18901 result = (operations_research::Constraint *)(arg1)->MakeNonOverlappingBoxesConstraint((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3,(std::vector< int > const &)*arg4,(std::vector< int > const &)*arg5);
18902 }
18903 catch (Swig::DirectorException &e) {
18904 SWIG_fail;
18905 }
18906 }
18908 return resultobj;
18909fail:
18910 return NULL;
18911}
18912
18913
18914SWIGINTERN PyObject *_wrap_Solver_NonOverlappingBoxesConstraint(PyObject *self, PyObject *args) {
18915 Py_ssize_t argc;
18916 PyObject *argv[6] = {
18917 0
18918 };
18919 Py_ssize_t ii;
18920
18921 if (!PyTuple_Check(args)) SWIG_fail;
18922 argc = PyObject_Length(args);
18923 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
18924 argv[ii] = PyTuple_GET_ITEM(args,ii);
18925 }
18926 if (argc == 5) {
18927 int _v;
18928 void *vptr = 0;
18929 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
18930 _v = SWIG_CheckState(res);
18931 if (_v) {
18932 {
18933 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18934 _v = 0;
18935 } else {
18936 const bool is_tuple = PyTuple_Check(argv[1]);
18937 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18938 size_t i = 0;
18939 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
18940 :PyList_GetItem(argv[1], i))) {
18941 ++i;
18942 }
18943 _v = i == size;
18944 }
18945 }
18946 if (_v) {
18947 {
18948 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
18949 _v = 0;
18950 } else {
18951 const bool is_tuple = PyTuple_Check(argv[2]);
18952 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
18953 size_t i = 0;
18954 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[2], i)
18955 :PyList_GetItem(argv[2], i))) {
18956 ++i;
18957 }
18958 _v = i == size;
18959 }
18960 }
18961 if (_v) {
18962 {
18963 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
18964 _v = 0;
18965 } else {
18966 const bool is_tuple = PyTuple_Check(argv[3]);
18967 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
18968 size_t i = 0;
18969 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[3], i)
18970 :PyList_GetItem(argv[3], i))) {
18971 ++i;
18972 }
18973 _v = i == size;
18974 }
18975 }
18976 if (_v) {
18977 {
18978 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
18979 _v = 0;
18980 } else {
18981 const bool is_tuple = PyTuple_Check(argv[4]);
18982 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
18983 size_t i = 0;
18984 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[4], i)
18985 :PyList_GetItem(argv[4], i))) {
18986 ++i;
18987 }
18988 _v = i == size;
18989 }
18990 }
18991 if (_v) {
18993 }
18994 }
18995 }
18996 }
18997 }
18998 }
18999 if (argc == 5) {
19000 int _v;
19001 void *vptr = 0;
19002 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
19003 _v = SWIG_CheckState(res);
19004 if (_v) {
19005 {
19006 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
19007 _v = 0;
19008 } else {
19009 const bool is_tuple = PyTuple_Check(argv[1]);
19010 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
19011 size_t i = 0;
19012 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
19013 :PyList_GetItem(argv[1], i))) {
19014 ++i;
19015 }
19016 _v = i == size;
19017 }
19018 }
19019 if (_v) {
19020 {
19021 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
19022 _v = 0;
19023 } else {
19024 const bool is_tuple = PyTuple_Check(argv[2]);
19025 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
19026 size_t i = 0;
19027 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[2], i)
19028 :PyList_GetItem(argv[2], i))) {
19029 ++i;
19030 }
19031 _v = i == size;
19032 }
19033 }
19034 if (_v) {
19035 {
19036 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
19037 _v = 0;
19038 } else {
19039 const bool is_tuple = PyTuple_Check(argv[3]);
19040 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
19041 size_t i = 0;
19042 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
19043 :PyList_GetItem(argv[3], i))) {
19044 ++i;
19045 }
19046 _v = i == size;
19047 }
19048 }
19049 if (_v) {
19050 {
19051 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
19052 _v = 0;
19053 } else {
19054 const bool is_tuple = PyTuple_Check(argv[4]);
19055 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
19056 size_t i = 0;
19057 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
19058 :PyList_GetItem(argv[4], i))) {
19059 ++i;
19060 }
19061 _v = i == size;
19062 }
19063 }
19064 if (_v) {
19066 }
19067 }
19068 }
19069 }
19070 }
19071 }
19072 if (argc == 5) {
19073 int _v;
19074 void *vptr = 0;
19075 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
19076 _v = SWIG_CheckState(res);
19077 if (_v) {
19078 {
19079 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
19080 _v = 0;
19081 } else {
19082 const bool is_tuple = PyTuple_Check(argv[1]);
19083 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
19084 size_t i = 0;
19085 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
19086 :PyList_GetItem(argv[1], i))) {
19087 ++i;
19088 }
19089 _v = i == size;
19090 }
19091 }
19092 if (_v) {
19093 {
19094 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
19095 _v = 0;
19096 } else {
19097 const bool is_tuple = PyTuple_Check(argv[2]);
19098 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
19099 size_t i = 0;
19100 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[2], i)
19101 :PyList_GetItem(argv[2], i))) {
19102 ++i;
19103 }
19104 _v = i == size;
19105 }
19106 }
19107 if (_v) {
19108 {
19109 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
19110 _v = 0;
19111 } else {
19112 const bool is_tuple = PyTuple_Check(argv[3]);
19113 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
19114 size_t i = 0;
19115 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
19116 :PyList_GetItem(argv[3], i))) {
19117 ++i;
19118 }
19119 _v = i == size;
19120 }
19121 }
19122 if (_v) {
19123 {
19124 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
19125 _v = 0;
19126 } else {
19127 const bool is_tuple = PyTuple_Check(argv[4]);
19128 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
19129 size_t i = 0;
19130 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
19131 :PyList_GetItem(argv[4], i))) {
19132 ++i;
19133 }
19134 _v = i == size;
19135 }
19136 }
19137 if (_v) {
19139 }
19140 }
19141 }
19142 }
19143 }
19144 }
19145
19146fail:
19147 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_NonOverlappingBoxesConstraint'.\n"
19148 " Possible C/C++ prototypes are:\n"
19149 " operations_research::Solver::MakeNonOverlappingBoxesConstraint(std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &)\n"
19150 " operations_research::Solver::MakeNonOverlappingBoxesConstraint(std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,std::vector< int64_t > const &)\n"
19151 " operations_research::Solver::MakeNonOverlappingBoxesConstraint(std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &,std::vector< int > const &,std::vector< int > const &)\n");
19152 return 0;
19153}
19154
19155
19156SWIGINTERN PyObject *_wrap_Solver_Pack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19157 PyObject *resultobj = 0;
19159 std::vector< operations_research::IntVar * > *arg2 = 0 ;
19160 int arg3 ;
19161 void *argp1 = 0 ;
19162 int res1 = 0 ;
19163 std::vector< operations_research::IntVar * > temp2 ;
19164 int val3 ;
19165 int ecode3 = 0 ;
19166 PyObject * obj0 = 0 ;
19167 PyObject * obj1 = 0 ;
19168 PyObject * obj2 = 0 ;
19169 operations_research::Pack *result = 0 ;
19170
19171 if (!PyArg_UnpackTuple(args, "Solver_Pack", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
19172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
19173 if (!SWIG_IsOK(res1)) {
19174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Pack" "', argument " "1"" of type '" "operations_research::Solver *""'");
19175 }
19176 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19177 {
19178 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
19179 if (!PyErr_Occurred())
19180 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
19181 return NULL;
19182 }
19183 arg2 = &temp2;
19184 }
19185 ecode3 = SWIG_AsVal_int(obj2, &val3);
19186 if (!SWIG_IsOK(ecode3)) {
19187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Pack" "', argument " "3"" of type '" "int""'");
19188 }
19189 arg3 = static_cast< int >(val3);
19190 {
19191 try {
19192 result = (operations_research::Pack *)(arg1)->MakePack((std::vector< operations_research::IntVar * > const &)*arg2,arg3);
19193 }
19194 catch (Swig::DirectorException &e) {
19195 SWIG_fail;
19196 }
19197 }
19199 return resultobj;
19200fail:
19201 return NULL;
19202}
19203
19204
19206 PyObject *resultobj = 0;
19208 int64_t arg2 ;
19209 int64_t arg3 ;
19210 int64_t arg4 ;
19211 bool arg5 ;
19212 std::string *arg6 = 0 ;
19213 void *argp1 = 0 ;
19214 int res1 = 0 ;
19215 long val2 ;
19216 int ecode2 = 0 ;
19217 long val3 ;
19218 int ecode3 = 0 ;
19219 long val4 ;
19220 int ecode4 = 0 ;
19221 bool val5 ;
19222 int ecode5 = 0 ;
19223 int res6 = SWIG_OLDOBJ ;
19224 PyObject * obj0 = 0 ;
19225 PyObject * obj1 = 0 ;
19226 PyObject * obj2 = 0 ;
19227 PyObject * obj3 = 0 ;
19228 PyObject * obj4 = 0 ;
19229 PyObject * obj5 = 0 ;
19231
19232 if (!PyArg_UnpackTuple(args, "Solver_FixedDurationIntervalVar", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
19233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
19234 if (!SWIG_IsOK(res1)) {
19235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_FixedDurationIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19236 }
19237 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19238 ecode2 = SWIG_AsVal_long(obj1, &val2);
19239 if (!SWIG_IsOK(ecode2)) {
19240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_FixedDurationIntervalVar" "', argument " "2"" of type '" "int64_t""'");
19241 }
19242 arg2 = static_cast< int64_t >(val2);
19243 ecode3 = SWIG_AsVal_long(obj2, &val3);
19244 if (!SWIG_IsOK(ecode3)) {
19245 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_FixedDurationIntervalVar" "', argument " "3"" of type '" "int64_t""'");
19246 }
19247 arg3 = static_cast< int64_t >(val3);
19248 ecode4 = SWIG_AsVal_long(obj3, &val4);
19249 if (!SWIG_IsOK(ecode4)) {
19250 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_FixedDurationIntervalVar" "', argument " "4"" of type '" "int64_t""'");
19251 }
19252 arg4 = static_cast< int64_t >(val4);
19253 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19254 if (!SWIG_IsOK(ecode5)) {
19255 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_FixedDurationIntervalVar" "', argument " "5"" of type '" "bool""'");
19256 }
19257 arg5 = static_cast< bool >(val5);
19258 {
19259 std::string *ptr = (std::string *)0;
19260 res6 = SWIG_AsPtr_std_string(obj5, &ptr);
19261 if (!SWIG_IsOK(res6)) {
19262 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Solver_FixedDurationIntervalVar" "', argument " "6"" of type '" "std::string const &""'");
19263 }
19264 if (!ptr) {
19265 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_FixedDurationIntervalVar" "', argument " "6"" of type '" "std::string const &""'");
19266 }
19267 arg6 = ptr;
19268 }
19269 {
19270 try {
19271 result = (operations_research::IntervalVar *)(arg1)->MakeFixedDurationIntervalVar(arg2,arg3,arg4,arg5,(std::string const &)*arg6);
19272 }
19273 catch (Swig::DirectorException &e) {
19274 SWIG_fail;
19275 }
19276 }
19278 if (SWIG_IsNewObj(res6)) delete arg6;
19279 return resultobj;
19280fail:
19281 if (SWIG_IsNewObj(res6)) delete arg6;
19282 return NULL;
19283}
19284
19285
19287 PyObject *resultobj = 0;
19290 int64_t arg3 ;
19291 std::string *arg4 = 0 ;
19292 void *argp1 = 0 ;
19293 int res1 = 0 ;
19294 long val3 ;
19295 int ecode3 = 0 ;
19296 int res4 = SWIG_OLDOBJ ;
19297 PyObject * obj0 = 0 ;
19298 PyObject * obj1 = 0 ;
19299 PyObject * obj2 = 0 ;
19300 PyObject * obj3 = 0 ;
19302
19303 if (!PyArg_UnpackTuple(args, "Solver_FixedDurationIntervalVar", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
19304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
19305 if (!SWIG_IsOK(res1)) {
19306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_FixedDurationIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19307 }
19308 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19309 {
19310 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
19311 }
19312 ecode3 = SWIG_AsVal_long(obj2, &val3);
19313 if (!SWIG_IsOK(ecode3)) {
19314 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_FixedDurationIntervalVar" "', argument " "3"" of type '" "int64_t""'");
19315 }
19316 arg3 = static_cast< int64_t >(val3);
19317 {
19318 std::string *ptr = (std::string *)0;
19319 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
19320 if (!SWIG_IsOK(res4)) {
19321 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Solver_FixedDurationIntervalVar" "', argument " "4"" of type '" "std::string const &""'");
19322 }
19323 if (!ptr) {
19324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_FixedDurationIntervalVar" "', argument " "4"" of type '" "std::string const &""'");
19325 }
19326 arg4 = ptr;
19327 }
19328 {
19329 try {
19330 result = (operations_research::IntervalVar *)(arg1)->MakeFixedDurationIntervalVar(arg2,arg3,(std::string const &)*arg4);
19331 }
19332 catch (Swig::DirectorException &e) {
19333 SWIG_fail;
19334 }
19335 }
19337 if (SWIG_IsNewObj(res4)) delete arg4;
19338 return resultobj;
19339fail:
19340 if (SWIG_IsNewObj(res4)) delete arg4;
19341 return NULL;
19342}
19343
19344
19346 PyObject *resultobj = 0;
19349 int64_t arg3 ;
19351 std::string *arg5 = 0 ;
19352 void *argp1 = 0 ;
19353 int res1 = 0 ;
19354 long val3 ;
19355 int ecode3 = 0 ;
19356 int res5 = SWIG_OLDOBJ ;
19357 PyObject * obj0 = 0 ;
19358 PyObject * obj1 = 0 ;
19359 PyObject * obj2 = 0 ;
19360 PyObject * obj3 = 0 ;
19361 PyObject * obj4 = 0 ;
19363
19364 if (!PyArg_UnpackTuple(args, "Solver_FixedDurationIntervalVar", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
19365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
19366 if (!SWIG_IsOK(res1)) {
19367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_FixedDurationIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19368 }
19369 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19370 {
19371 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
19372 }
19373 ecode3 = SWIG_AsVal_long(obj2, &val3);
19374 if (!SWIG_IsOK(ecode3)) {
19375 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_FixedDurationIntervalVar" "', argument " "3"" of type '" "int64_t""'");
19376 }
19377 arg3 = static_cast< int64_t >(val3);
19378 {
19379 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
19380 }
19381 {
19382 std::string *ptr = (std::string *)0;
19383 res5 = SWIG_AsPtr_std_string(obj4, &ptr);
19384 if (!SWIG_IsOK(res5)) {
19385 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Solver_FixedDurationIntervalVar" "', argument " "5"" of type '" "std::string const &""'");
19386 }
19387 if (!ptr) {
19388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_FixedDurationIntervalVar" "', argument " "5"" of type '" "std::string const &""'");
19389 }
19390 arg5 = ptr;
19391 }
19392 {
19393 try {
19394 result = (operations_research::IntervalVar *)(arg1)->MakeFixedDurationIntervalVar(arg2,arg3,arg4,(std::string const &)*arg5);
19395 }
19396 catch (Swig::DirectorException &e) {
19397 SWIG_fail;
19398 }
19399 }
19401 if (SWIG_IsNewObj(res5)) delete arg5;
19402 return resultobj;
19403fail:
19404 if (SWIG_IsNewObj(res5)) delete arg5;
19405 return NULL;
19406}
19407
19408
19409SWIGINTERN PyObject *_wrap_Solver_FixedDurationIntervalVar(PyObject *self, PyObject *args) {
19410 Py_ssize_t argc;
19411 PyObject *argv[7] = {
19412 0
19413 };
19414 Py_ssize_t ii;
19415
19416 if (!PyTuple_Check(args)) SWIG_fail;
19417 argc = PyObject_Length(args);
19418 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
19419 argv[ii] = PyTuple_GET_ITEM(args,ii);
19420 }
19421 if (argc == 4) {
19422 int _v;
19423 void *vptr = 0;
19424 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
19425 _v = SWIG_CheckState(res);
19426 if (_v) {
19427 {
19428 _v = CanConvertToIntVar(argv[1]);
19429 if (_v == 0) PyErr_Clear();
19430 }
19431 if (_v) {
19432 {
19433 int res = SWIG_AsVal_long(argv[2], NULL);
19434 _v = SWIG_CheckState(res);
19435 }
19436 if (_v) {
19437 int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
19438 _v = SWIG_CheckState(res);
19439 if (_v) {
19441 }
19442 }
19443 }
19444 }
19445 }
19446 if (argc == 5) {
19447 int _v;
19448 void *vptr = 0;
19449 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
19450 _v = SWIG_CheckState(res);
19451 if (_v) {
19452 {
19453 _v = CanConvertToIntVar(argv[1]);
19454 if (_v == 0) PyErr_Clear();
19455 }
19456 if (_v) {
19457 {
19458 int res = SWIG_AsVal_long(argv[2], NULL);
19459 _v = SWIG_CheckState(res);
19460 }
19461 if (_v) {
19462 {
19463 _v = CanConvertToIntVar(argv[3]);
19464 if (_v == 0) PyErr_Clear();
19465 }
19466 if (_v) {
19467 int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
19468 _v = SWIG_CheckState(res);
19469 if (_v) {
19471 }
19472 }
19473 }
19474 }
19475 }
19476 }
19477 if (argc == 6) {
19478 int _v;
19479 void *vptr = 0;
19480 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
19481 _v = SWIG_CheckState(res);
19482 if (_v) {
19483 {
19484 int res = SWIG_AsVal_long(argv[1], NULL);
19485 _v = SWIG_CheckState(res);
19486 }
19487 if (_v) {
19488 {
19489 int res = SWIG_AsVal_long(argv[2], NULL);
19490 _v = SWIG_CheckState(res);
19491 }
19492 if (_v) {
19493 {
19494 int res = SWIG_AsVal_long(argv[3], NULL);
19495 _v = SWIG_CheckState(res);
19496 }
19497 if (_v) {
19498 {
19499 int res = SWIG_AsVal_bool(argv[4], NULL);
19500 _v = SWIG_CheckState(res);
19501 }
19502 if (_v) {
19503 int res = SWIG_AsPtr_std_string(argv[5], (std::string**)(0));
19504 _v = SWIG_CheckState(res);
19505 if (_v) {
19507 }
19508 }
19509 }
19510 }
19511 }
19512 }
19513 }
19514
19515fail:
19516 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_FixedDurationIntervalVar'.\n"
19517 " Possible C/C++ prototypes are:\n"
19518 " operations_research::Solver::MakeFixedDurationIntervalVar(int64_t,int64_t,int64_t,bool,std::string const &)\n"
19519 " operations_research::Solver::MakeFixedDurationIntervalVar(operations_research::IntVar *const,int64_t,std::string const &)\n"
19520 " operations_research::Solver::MakeFixedDurationIntervalVar(operations_research::IntVar *const,int64_t,operations_research::IntVar *const,std::string const &)\n");
19521 return 0;
19522}
19523
19524
19525SWIGINTERN PyObject *_wrap_Solver_FixedInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19526 PyObject *resultobj = 0;
19528 int64_t arg2 ;
19529 int64_t arg3 ;
19530 std::string *arg4 = 0 ;
19531 void *argp1 = 0 ;
19532 int res1 = 0 ;
19533 long val2 ;
19534 int ecode2 = 0 ;
19535 long val3 ;
19536 int ecode3 = 0 ;
19537 int res4 = SWIG_OLDOBJ ;
19538 PyObject * obj0 = 0 ;
19539 PyObject * obj1 = 0 ;
19540 PyObject * obj2 = 0 ;
19541 PyObject * obj3 = 0 ;
19543
19544 if (!PyArg_UnpackTuple(args, "Solver_FixedInterval", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
19545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
19546 if (!SWIG_IsOK(res1)) {
19547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_FixedInterval" "', argument " "1"" of type '" "operations_research::Solver *""'");
19548 }
19549 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19550 ecode2 = SWIG_AsVal_long(obj1, &val2);
19551 if (!SWIG_IsOK(ecode2)) {
19552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_FixedInterval" "', argument " "2"" of type '" "int64_t""'");
19553 }
19554 arg2 = static_cast< int64_t >(val2);
19555 ecode3 = SWIG_AsVal_long(obj2, &val3);
19556 if (!SWIG_IsOK(ecode3)) {
19557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_FixedInterval" "', argument " "3"" of type '" "int64_t""'");
19558 }
19559 arg3 = static_cast< int64_t >(val3);
19560 {
19561 std::string *ptr = (std::string *)0;
19562 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
19563 if (!SWIG_IsOK(res4)) {
19564 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Solver_FixedInterval" "', argument " "4"" of type '" "std::string const &""'");
19565 }
19566 if (!ptr) {
19567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_FixedInterval" "', argument " "4"" of type '" "std::string const &""'");
19568 }
19569 arg4 = ptr;
19570 }
19571 {
19572 try {
19573 result = (operations_research::IntervalVar *)(arg1)->MakeFixedInterval(arg2,arg3,(std::string const &)*arg4);
19574 }
19575 catch (Swig::DirectorException &e) {
19576 SWIG_fail;
19577 }
19578 }
19580 if (SWIG_IsNewObj(res4)) delete arg4;
19581 return resultobj;
19582fail:
19583 if (SWIG_IsNewObj(res4)) delete arg4;
19584 return NULL;
19585}
19586
19587
19588SWIGINTERN PyObject *_wrap_Solver_IntervalVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19589 PyObject *resultobj = 0;
19591 int64_t arg2 ;
19592 int64_t arg3 ;
19593 int64_t arg4 ;
19594 int64_t arg5 ;
19595 int64_t arg6 ;
19596 int64_t arg7 ;
19597 bool arg8 ;
19598 std::string *arg9 = 0 ;
19599 void *argp1 = 0 ;
19600 int res1 = 0 ;
19601 long val2 ;
19602 int ecode2 = 0 ;
19603 long val3 ;
19604 int ecode3 = 0 ;
19605 long val4 ;
19606 int ecode4 = 0 ;
19607 long val5 ;
19608 int ecode5 = 0 ;
19609 long val6 ;
19610 int ecode6 = 0 ;
19611 long val7 ;
19612 int ecode7 = 0 ;
19613 bool val8 ;
19614 int ecode8 = 0 ;
19615 int res9 = SWIG_OLDOBJ ;
19616 PyObject * obj0 = 0 ;
19617 PyObject * obj1 = 0 ;
19618 PyObject * obj2 = 0 ;
19619 PyObject * obj3 = 0 ;
19620 PyObject * obj4 = 0 ;
19621 PyObject * obj5 = 0 ;
19622 PyObject * obj6 = 0 ;
19623 PyObject * obj7 = 0 ;
19624 PyObject * obj8 = 0 ;
19626
19627 if (!PyArg_UnpackTuple(args, "Solver_IntervalVar", 9, 9, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7, &obj8)) SWIG_fail;
19628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
19629 if (!SWIG_IsOK(res1)) {
19630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19631 }
19632 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19633 ecode2 = SWIG_AsVal_long(obj1, &val2);
19634 if (!SWIG_IsOK(ecode2)) {
19635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_IntervalVar" "', argument " "2"" of type '" "int64_t""'");
19636 }
19637 arg2 = static_cast< int64_t >(val2);
19638 ecode3 = SWIG_AsVal_long(obj2, &val3);
19639 if (!SWIG_IsOK(ecode3)) {
19640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_IntervalVar" "', argument " "3"" of type '" "int64_t""'");
19641 }
19642 arg3 = static_cast< int64_t >(val3);
19643 ecode4 = SWIG_AsVal_long(obj3, &val4);
19644 if (!SWIG_IsOK(ecode4)) {
19645 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_IntervalVar" "', argument " "4"" of type '" "int64_t""'");
19646 }
19647 arg4 = static_cast< int64_t >(val4);
19648 ecode5 = SWIG_AsVal_long(obj4, &val5);
19649 if (!SWIG_IsOK(ecode5)) {
19650 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_IntervalVar" "', argument " "5"" of type '" "int64_t""'");
19651 }
19652 arg5 = static_cast< int64_t >(val5);
19653 ecode6 = SWIG_AsVal_long(obj5, &val6);
19654 if (!SWIG_IsOK(ecode6)) {
19655 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Solver_IntervalVar" "', argument " "6"" of type '" "int64_t""'");
19656 }
19657 arg6 = static_cast< int64_t >(val6);
19658 ecode7 = SWIG_AsVal_long(obj6, &val7);
19659 if (!SWIG_IsOK(ecode7)) {
19660 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Solver_IntervalVar" "', argument " "7"" of type '" "int64_t""'");
19661 }
19662 arg7 = static_cast< int64_t >(val7);
19663 ecode8 = SWIG_AsVal_bool(obj7, &val8);
19664 if (!SWIG_IsOK(ecode8)) {
19665 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Solver_IntervalVar" "', argument " "8"" of type '" "bool""'");
19666 }
19667 arg8 = static_cast< bool >(val8);
19668 {
19669 std::string *ptr = (std::string *)0;
19670 res9 = SWIG_AsPtr_std_string(obj8, &ptr);
19671 if (!SWIG_IsOK(res9)) {
19672 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "Solver_IntervalVar" "', argument " "9"" of type '" "std::string const &""'");
19673 }
19674 if (!ptr) {
19675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_IntervalVar" "', argument " "9"" of type '" "std::string const &""'");
19676 }
19677 arg9 = ptr;
19678 }
19679 {
19680 try {
19681 result = (operations_research::IntervalVar *)(arg1)->MakeIntervalVar(arg2,arg3,arg4,arg5,arg6,arg7,arg8,(std::string const &)*arg9);
19682 }
19683 catch (Swig::DirectorException &e) {
19684 SWIG_fail;
19685 }
19686 }
19688 if (SWIG_IsNewObj(res9)) delete arg9;
19689 return resultobj;
19690fail:
19691 if (SWIG_IsNewObj(res9)) delete arg9;
19692 return NULL;
19693}
19694
19695
19696SWIGINTERN PyObject *_wrap_Solver_MirrorInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19697 PyObject *resultobj = 0;
19700 void *argp1 = 0 ;
19701 int res1 = 0 ;
19702 PyObject * obj0 = 0 ;
19703 PyObject * obj1 = 0 ;
19705
19706 if (!PyArg_UnpackTuple(args, "Solver_MirrorInterval", 2, 2, &obj0, &obj1)) SWIG_fail;
19707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
19708 if (!SWIG_IsOK(res1)) {
19709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_MirrorInterval" "', argument " "1"" of type '" "operations_research::Solver *""'");
19710 }
19711 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19712 {
19713 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
19714 }
19715 {
19716 try {
19717 result = (operations_research::IntervalVar *)(arg1)->MakeMirrorInterval(arg2);
19718 }
19719 catch (Swig::DirectorException &e) {
19720 SWIG_fail;
19721 }
19722 }
19724 return resultobj;
19725fail:
19726 return NULL;
19727}
19728
19729
19731 PyObject *resultobj = 0;
19734 int64_t arg3 ;
19735 int64_t arg4 ;
19736 void *argp1 = 0 ;
19737 int res1 = 0 ;
19738 long val3 ;
19739 int ecode3 = 0 ;
19740 long val4 ;
19741 int ecode4 = 0 ;
19742 PyObject * obj0 = 0 ;
19743 PyObject * obj1 = 0 ;
19744 PyObject * obj2 = 0 ;
19745 PyObject * obj3 = 0 ;
19747
19748 if (!PyArg_UnpackTuple(args, "Solver_FixedDurationStartSyncedOnStartIntervalVar", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
19749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
19750 if (!SWIG_IsOK(res1)) {
19751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_FixedDurationStartSyncedOnStartIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19752 }
19753 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19754 {
19755 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
19756 }
19757 ecode3 = SWIG_AsVal_long(obj2, &val3);
19758 if (!SWIG_IsOK(ecode3)) {
19759 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_FixedDurationStartSyncedOnStartIntervalVar" "', argument " "3"" of type '" "int64_t""'");
19760 }
19761 arg3 = static_cast< int64_t >(val3);
19762 ecode4 = SWIG_AsVal_long(obj3, &val4);
19763 if (!SWIG_IsOK(ecode4)) {
19764 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_FixedDurationStartSyncedOnStartIntervalVar" "', argument " "4"" of type '" "int64_t""'");
19765 }
19766 arg4 = static_cast< int64_t >(val4);
19767 {
19768 try {
19769 result = (operations_research::IntervalVar *)(arg1)->MakeFixedDurationStartSyncedOnStartIntervalVar(arg2,arg3,arg4);
19770 }
19771 catch (Swig::DirectorException &e) {
19772 SWIG_fail;
19773 }
19774 }
19776 return resultobj;
19777fail:
19778 return NULL;
19779}
19780
19781
19783 PyObject *resultobj = 0;
19786 int64_t arg3 ;
19787 int64_t arg4 ;
19788 void *argp1 = 0 ;
19789 int res1 = 0 ;
19790 long val3 ;
19791 int ecode3 = 0 ;
19792 long val4 ;
19793 int ecode4 = 0 ;
19794 PyObject * obj0 = 0 ;
19795 PyObject * obj1 = 0 ;
19796 PyObject * obj2 = 0 ;
19797 PyObject * obj3 = 0 ;
19799
19800 if (!PyArg_UnpackTuple(args, "Solver_FixedDurationStartSyncedOnEndIntervalVar", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
19801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
19802 if (!SWIG_IsOK(res1)) {
19803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_FixedDurationStartSyncedOnEndIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19804 }
19805 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19806 {
19807 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
19808 }
19809 ecode3 = SWIG_AsVal_long(obj2, &val3);
19810 if (!SWIG_IsOK(ecode3)) {
19811 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_FixedDurationStartSyncedOnEndIntervalVar" "', argument " "3"" of type '" "int64_t""'");
19812 }
19813 arg3 = static_cast< int64_t >(val3);
19814 ecode4 = SWIG_AsVal_long(obj3, &val4);
19815 if (!SWIG_IsOK(ecode4)) {
19816 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_FixedDurationStartSyncedOnEndIntervalVar" "', argument " "4"" of type '" "int64_t""'");
19817 }
19818 arg4 = static_cast< int64_t >(val4);
19819 {
19820 try {
19821 result = (operations_research::IntervalVar *)(arg1)->MakeFixedDurationStartSyncedOnEndIntervalVar(arg2,arg3,arg4);
19822 }
19823 catch (Swig::DirectorException &e) {
19824 SWIG_fail;
19825 }
19826 }
19828 return resultobj;
19829fail:
19830 return NULL;
19831}
19832
19833
19835 PyObject *resultobj = 0;
19838 int64_t arg3 ;
19839 int64_t arg4 ;
19840 void *argp1 = 0 ;
19841 int res1 = 0 ;
19842 long val3 ;
19843 int ecode3 = 0 ;
19844 long val4 ;
19845 int ecode4 = 0 ;
19846 PyObject * obj0 = 0 ;
19847 PyObject * obj1 = 0 ;
19848 PyObject * obj2 = 0 ;
19849 PyObject * obj3 = 0 ;
19851
19852 if (!PyArg_UnpackTuple(args, "Solver_FixedDurationEndSyncedOnStartIntervalVar", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
19853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
19854 if (!SWIG_IsOK(res1)) {
19855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_FixedDurationEndSyncedOnStartIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19856 }
19857 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19858 {
19859 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
19860 }
19861 ecode3 = SWIG_AsVal_long(obj2, &val3);
19862 if (!SWIG_IsOK(ecode3)) {
19863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_FixedDurationEndSyncedOnStartIntervalVar" "', argument " "3"" of type '" "int64_t""'");
19864 }
19865 arg3 = static_cast< int64_t >(val3);
19866 ecode4 = SWIG_AsVal_long(obj3, &val4);
19867 if (!SWIG_IsOK(ecode4)) {
19868 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_FixedDurationEndSyncedOnStartIntervalVar" "', argument " "4"" of type '" "int64_t""'");
19869 }
19870 arg4 = static_cast< int64_t >(val4);
19871 {
19872 try {
19873 result = (operations_research::IntervalVar *)(arg1)->MakeFixedDurationEndSyncedOnStartIntervalVar(arg2,arg3,arg4);
19874 }
19875 catch (Swig::DirectorException &e) {
19876 SWIG_fail;
19877 }
19878 }
19880 return resultobj;
19881fail:
19882 return NULL;
19883}
19884
19885
19887 PyObject *resultobj = 0;
19890 int64_t arg3 ;
19891 int64_t arg4 ;
19892 void *argp1 = 0 ;
19893 int res1 = 0 ;
19894 long val3 ;
19895 int ecode3 = 0 ;
19896 long val4 ;
19897 int ecode4 = 0 ;
19898 PyObject * obj0 = 0 ;
19899 PyObject * obj1 = 0 ;
19900 PyObject * obj2 = 0 ;
19901 PyObject * obj3 = 0 ;
19903
19904 if (!PyArg_UnpackTuple(args, "Solver_FixedDurationEndSyncedOnEndIntervalVar", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
19905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
19906 if (!SWIG_IsOK(res1)) {
19907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_FixedDurationEndSyncedOnEndIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19908 }
19909 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19910 {
19911 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
19912 }
19913 ecode3 = SWIG_AsVal_long(obj2, &val3);
19914 if (!SWIG_IsOK(ecode3)) {
19915 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_FixedDurationEndSyncedOnEndIntervalVar" "', argument " "3"" of type '" "int64_t""'");
19916 }
19917 arg3 = static_cast< int64_t >(val3);
19918 ecode4 = SWIG_AsVal_long(obj3, &val4);
19919 if (!SWIG_IsOK(ecode4)) {
19920 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_FixedDurationEndSyncedOnEndIntervalVar" "', argument " "4"" of type '" "int64_t""'");
19921 }
19922 arg4 = static_cast< int64_t >(val4);
19923 {
19924 try {
19925 result = (operations_research::IntervalVar *)(arg1)->MakeFixedDurationEndSyncedOnEndIntervalVar(arg2,arg3,arg4);
19926 }
19927 catch (Swig::DirectorException &e) {
19928 SWIG_fail;
19929 }
19930 }
19932 return resultobj;
19933fail:
19934 return NULL;
19935}
19936
19937
19938SWIGINTERN PyObject *_wrap_Solver_IntervalRelaxedMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19939 PyObject *resultobj = 0;
19942 void *argp1 = 0 ;
19943 int res1 = 0 ;
19944 PyObject * obj0 = 0 ;
19945 PyObject * obj1 = 0 ;
19947
19948 if (!PyArg_UnpackTuple(args, "Solver_IntervalRelaxedMin", 2, 2, &obj0, &obj1)) SWIG_fail;
19949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
19950 if (!SWIG_IsOK(res1)) {
19951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IntervalRelaxedMin" "', argument " "1"" of type '" "operations_research::Solver *""'");
19952 }
19953 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19954 {
19955 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
19956 }
19957 {
19958 try {
19959 result = (operations_research::IntervalVar *)(arg1)->MakeIntervalRelaxedMin(arg2);
19960 }
19961 catch (Swig::DirectorException &e) {
19962 SWIG_fail;
19963 }
19964 }
19966 return resultobj;
19967fail:
19968 return NULL;
19969}
19970
19971
19972SWIGINTERN PyObject *_wrap_Solver_IntervalRelaxedMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19973 PyObject *resultobj = 0;
19976 void *argp1 = 0 ;
19977 int res1 = 0 ;
19978 PyObject * obj0 = 0 ;
19979 PyObject * obj1 = 0 ;
19981
19982 if (!PyArg_UnpackTuple(args, "Solver_IntervalRelaxedMax", 2, 2, &obj0, &obj1)) SWIG_fail;
19983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
19984 if (!SWIG_IsOK(res1)) {
19985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_IntervalRelaxedMax" "', argument " "1"" of type '" "operations_research::Solver *""'");
19986 }
19987 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19988 {
19989 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
19990 }
19991 {
19992 try {
19993 result = (operations_research::IntervalVar *)(arg1)->MakeIntervalRelaxedMax(arg2);
19994 }
19995 catch (Swig::DirectorException &e) {
19996 SWIG_fail;
19997 }
19998 }
20000 return resultobj;
20001fail:
20002 return NULL;
20003}
20004
20005
20006SWIGINTERN PyObject *_wrap_Solver_TemporalDisjunction__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20007 PyObject *resultobj = 0;
20012 void *argp1 = 0 ;
20013 int res1 = 0 ;
20014 PyObject * obj0 = 0 ;
20015 PyObject * obj1 = 0 ;
20016 PyObject * obj2 = 0 ;
20017 PyObject * obj3 = 0 ;
20019
20020 if (!PyArg_UnpackTuple(args, "Solver_TemporalDisjunction", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
20021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
20022 if (!SWIG_IsOK(res1)) {
20023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_TemporalDisjunction" "', argument " "1"" of type '" "operations_research::Solver *""'");
20024 }
20025 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20026 {
20027 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
20028 }
20029 {
20030 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
20031 }
20032 {
20033 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
20034 }
20035 {
20036 try {
20037 result = (operations_research::Constraint *)(arg1)->MakeTemporalDisjunction(arg2,arg3,arg4);
20038 }
20039 catch (Swig::DirectorException &e) {
20040 SWIG_fail;
20041 }
20042 }
20044 return resultobj;
20045fail:
20046 return NULL;
20047}
20048
20049
20050SWIGINTERN PyObject *_wrap_Solver_TemporalDisjunction__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20051 PyObject *resultobj = 0;
20055 void *argp1 = 0 ;
20056 int res1 = 0 ;
20057 PyObject * obj0 = 0 ;
20058 PyObject * obj1 = 0 ;
20059 PyObject * obj2 = 0 ;
20061
20062 if (!PyArg_UnpackTuple(args, "Solver_TemporalDisjunction", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
20063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
20064 if (!SWIG_IsOK(res1)) {
20065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_TemporalDisjunction" "', argument " "1"" of type '" "operations_research::Solver *""'");
20066 }
20067 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20068 {
20069 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
20070 }
20071 {
20072 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
20073 }
20074 {
20075 try {
20076 result = (operations_research::Constraint *)(arg1)->MakeTemporalDisjunction(arg2,arg3);
20077 }
20078 catch (Swig::DirectorException &e) {
20079 SWIG_fail;
20080 }
20081 }
20083 return resultobj;
20084fail:
20085 return NULL;
20086}
20087
20088
20089SWIGINTERN PyObject *_wrap_Solver_TemporalDisjunction(PyObject *self, PyObject *args) {
20090 Py_ssize_t argc;
20091 PyObject *argv[5] = {
20092 0
20093 };
20094 Py_ssize_t ii;
20095
20096 if (!PyTuple_Check(args)) SWIG_fail;
20097 argc = PyObject_Length(args);
20098 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
20099 argv[ii] = PyTuple_GET_ITEM(args,ii);
20100 }
20101 if (argc == 3) {
20102 int _v;
20103 void *vptr = 0;
20104 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
20105 _v = SWIG_CheckState(res);
20106 if (_v) {
20107 {
20108 _v = CanConvertToIntervalVar(argv[1]);
20109 if (_v == 0) PyErr_Clear();
20110 }
20111 if (_v) {
20112 {
20113 _v = CanConvertToIntervalVar(argv[2]);
20114 if (_v == 0) PyErr_Clear();
20115 }
20116 if (_v) {
20118 }
20119 }
20120 }
20121 }
20122 if (argc == 4) {
20123 int _v;
20124 void *vptr = 0;
20125 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
20126 _v = SWIG_CheckState(res);
20127 if (_v) {
20128 {
20129 _v = CanConvertToIntervalVar(argv[1]);
20130 if (_v == 0) PyErr_Clear();
20131 }
20132 if (_v) {
20133 {
20134 _v = CanConvertToIntervalVar(argv[2]);
20135 if (_v == 0) PyErr_Clear();
20136 }
20137 if (_v) {
20138 {
20139 _v = CanConvertToIntVar(argv[3]);
20140 if (_v == 0) PyErr_Clear();
20141 }
20142 if (_v) {
20144 }
20145 }
20146 }
20147 }
20148 }
20149
20150fail:
20151 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_TemporalDisjunction'.\n"
20152 " Possible C/C++ prototypes are:\n"
20153 " operations_research::Solver::MakeTemporalDisjunction(operations_research::IntervalVar *const,operations_research::IntervalVar *const,operations_research::IntVar *const)\n"
20154 " operations_research::Solver::MakeTemporalDisjunction(operations_research::IntervalVar *const,operations_research::IntervalVar *const)\n");
20155 return 0;
20156}
20157
20158
20159SWIGINTERN PyObject *_wrap_Solver_DisjunctiveConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20160 PyObject *resultobj = 0;
20162 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20163 std::string *arg3 = 0 ;
20164 void *argp1 = 0 ;
20165 int res1 = 0 ;
20166 std::vector< operations_research::IntervalVar * > temp2 ;
20167 int res3 = SWIG_OLDOBJ ;
20168 PyObject * obj0 = 0 ;
20169 PyObject * obj1 = 0 ;
20170 PyObject * obj2 = 0 ;
20172
20173 if (!PyArg_UnpackTuple(args, "Solver_DisjunctiveConstraint", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
20174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
20175 if (!SWIG_IsOK(res1)) {
20176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_DisjunctiveConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
20177 }
20178 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20179 {
20180 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20181 if (!PyErr_Occurred())
20182 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntervalVar*) expected");
20183 return NULL;
20184 }
20185 arg2 = &temp2;
20186 }
20187 {
20188 std::string *ptr = (std::string *)0;
20189 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
20190 if (!SWIG_IsOK(res3)) {
20191 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_DisjunctiveConstraint" "', argument " "3"" of type '" "std::string const &""'");
20192 }
20193 if (!ptr) {
20194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_DisjunctiveConstraint" "', argument " "3"" of type '" "std::string const &""'");
20195 }
20196 arg3 = ptr;
20197 }
20198 {
20199 try {
20200 result = (operations_research::DisjunctiveConstraint *)(arg1)->MakeDisjunctiveConstraint((std::vector< operations_research::IntervalVar * > const &)*arg2,(std::string const &)*arg3);
20201 }
20202 catch (Swig::DirectorException &e) {
20203 SWIG_fail;
20204 }
20205 }
20207 if (SWIG_IsNewObj(res3)) delete arg3;
20208 return resultobj;
20209fail:
20210 if (SWIG_IsNewObj(res3)) delete arg3;
20211 return NULL;
20212}
20213
20214
20215SWIGINTERN PyObject *_wrap_Solver_Cumulative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20216 PyObject *resultobj = 0;
20218 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20219 std::vector< int64_t > *arg3 = 0 ;
20220 int64_t arg4 ;
20221 std::string *arg5 = 0 ;
20222 void *argp1 = 0 ;
20223 int res1 = 0 ;
20224 std::vector< operations_research::IntervalVar * > temp2 ;
20225 std::vector< int64_t > temp3 ;
20226 long val4 ;
20227 int ecode4 = 0 ;
20228 int res5 = SWIG_OLDOBJ ;
20229 PyObject * obj0 = 0 ;
20230 PyObject * obj1 = 0 ;
20231 PyObject * obj2 = 0 ;
20232 PyObject * obj3 = 0 ;
20233 PyObject * obj4 = 0 ;
20235
20236 if (!PyArg_UnpackTuple(args, "Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
20237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
20238 if (!SWIG_IsOK(res1)) {
20239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Cumulative" "', argument " "1"" of type '" "operations_research::Solver *""'");
20240 }
20241 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20242 {
20243 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20244 if (!PyErr_Occurred())
20245 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntervalVar*) expected");
20246 return NULL;
20247 }
20248 arg2 = &temp2;
20249 }
20250 {
20251 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
20252 if (!PyErr_Occurred())
20253 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
20254 return NULL;
20255 }
20256 arg3 = &temp3;
20257 }
20258 ecode4 = SWIG_AsVal_long(obj3, &val4);
20259 if (!SWIG_IsOK(ecode4)) {
20260 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_Cumulative" "', argument " "4"" of type '" "int64_t""'");
20261 }
20262 arg4 = static_cast< int64_t >(val4);
20263 {
20264 std::string *ptr = (std::string *)0;
20265 res5 = SWIG_AsPtr_std_string(obj4, &ptr);
20266 if (!SWIG_IsOK(res5)) {
20267 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Solver_Cumulative" "', argument " "5"" of type '" "std::string const &""'");
20268 }
20269 if (!ptr) {
20270 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_Cumulative" "', argument " "5"" of type '" "std::string const &""'");
20271 }
20272 arg5 = ptr;
20273 }
20274 {
20275 try {
20276 result = (operations_research::Constraint *)(arg1)->MakeCumulative((std::vector< operations_research::IntervalVar * > const &)*arg2,(std::vector< int64_t > const &)*arg3,arg4,(std::string const &)*arg5);
20277 }
20278 catch (Swig::DirectorException &e) {
20279 SWIG_fail;
20280 }
20281 }
20283 if (SWIG_IsNewObj(res5)) delete arg5;
20284 return resultobj;
20285fail:
20286 if (SWIG_IsNewObj(res5)) delete arg5;
20287 return NULL;
20288}
20289
20290
20291SWIGINTERN PyObject *_wrap_Solver_Cumulative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20292 PyObject *resultobj = 0;
20294 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20295 std::vector< int > *arg3 = 0 ;
20296 int64_t arg4 ;
20297 std::string *arg5 = 0 ;
20298 void *argp1 = 0 ;
20299 int res1 = 0 ;
20300 std::vector< operations_research::IntervalVar * > temp2 ;
20301 std::vector< int > temp3 ;
20302 long val4 ;
20303 int ecode4 = 0 ;
20304 int res5 = SWIG_OLDOBJ ;
20305 PyObject * obj0 = 0 ;
20306 PyObject * obj1 = 0 ;
20307 PyObject * obj2 = 0 ;
20308 PyObject * obj3 = 0 ;
20309 PyObject * obj4 = 0 ;
20311
20312 if (!PyArg_UnpackTuple(args, "Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
20313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
20314 if (!SWIG_IsOK(res1)) {
20315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Cumulative" "', argument " "1"" of type '" "operations_research::Solver *""'");
20316 }
20317 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20318 {
20319 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20320 if (!PyErr_Occurred())
20321 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntervalVar*) expected");
20322 return NULL;
20323 }
20324 arg2 = &temp2;
20325 }
20326 {
20327 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
20328 if (!PyErr_Occurred())
20329 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
20330 return NULL;
20331 }
20332 arg3 = &temp3;
20333 }
20334 ecode4 = SWIG_AsVal_long(obj3, &val4);
20335 if (!SWIG_IsOK(ecode4)) {
20336 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_Cumulative" "', argument " "4"" of type '" "int64_t""'");
20337 }
20338 arg4 = static_cast< int64_t >(val4);
20339 {
20340 std::string *ptr = (std::string *)0;
20341 res5 = SWIG_AsPtr_std_string(obj4, &ptr);
20342 if (!SWIG_IsOK(res5)) {
20343 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Solver_Cumulative" "', argument " "5"" of type '" "std::string const &""'");
20344 }
20345 if (!ptr) {
20346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_Cumulative" "', argument " "5"" of type '" "std::string const &""'");
20347 }
20348 arg5 = ptr;
20349 }
20350 {
20351 try {
20352 result = (operations_research::Constraint *)(arg1)->MakeCumulative((std::vector< operations_research::IntervalVar * > const &)*arg2,(std::vector< int > const &)*arg3,arg4,(std::string const &)*arg5);
20353 }
20354 catch (Swig::DirectorException &e) {
20355 SWIG_fail;
20356 }
20357 }
20359 if (SWIG_IsNewObj(res5)) delete arg5;
20360 return resultobj;
20361fail:
20362 if (SWIG_IsNewObj(res5)) delete arg5;
20363 return NULL;
20364}
20365
20366
20367SWIGINTERN PyObject *_wrap_Solver_Cumulative__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20368 PyObject *resultobj = 0;
20370 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20371 std::vector< int64_t > *arg3 = 0 ;
20373 std::string *arg5 = 0 ;
20374 void *argp1 = 0 ;
20375 int res1 = 0 ;
20376 std::vector< operations_research::IntervalVar * > temp2 ;
20377 std::vector< int64_t > temp3 ;
20378 int res5 = SWIG_OLDOBJ ;
20379 PyObject * obj0 = 0 ;
20380 PyObject * obj1 = 0 ;
20381 PyObject * obj2 = 0 ;
20382 PyObject * obj3 = 0 ;
20383 PyObject * obj4 = 0 ;
20385
20386 if (!PyArg_UnpackTuple(args, "Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
20387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
20388 if (!SWIG_IsOK(res1)) {
20389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Cumulative" "', argument " "1"" of type '" "operations_research::Solver *""'");
20390 }
20391 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20392 {
20393 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20394 if (!PyErr_Occurred())
20395 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntervalVar*) expected");
20396 return NULL;
20397 }
20398 arg2 = &temp2;
20399 }
20400 {
20401 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
20402 if (!PyErr_Occurred())
20403 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
20404 return NULL;
20405 }
20406 arg3 = &temp3;
20407 }
20408 {
20409 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
20410 }
20411 {
20412 std::string *ptr = (std::string *)0;
20413 res5 = SWIG_AsPtr_std_string(obj4, &ptr);
20414 if (!SWIG_IsOK(res5)) {
20415 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Solver_Cumulative" "', argument " "5"" of type '" "std::string const &""'");
20416 }
20417 if (!ptr) {
20418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_Cumulative" "', argument " "5"" of type '" "std::string const &""'");
20419 }
20420 arg5 = ptr;
20421 }
20422 {
20423 try {
20424 result = (operations_research::Constraint *)(arg1)->MakeCumulative((std::vector< operations_research::IntervalVar * > const &)*arg2,(std::vector< int64_t > const &)*arg3,arg4,(std::string const &)*arg5);
20425 }
20426 catch (Swig::DirectorException &e) {
20427 SWIG_fail;
20428 }
20429 }
20431 if (SWIG_IsNewObj(res5)) delete arg5;
20432 return resultobj;
20433fail:
20434 if (SWIG_IsNewObj(res5)) delete arg5;
20435 return NULL;
20436}
20437
20438
20439SWIGINTERN PyObject *_wrap_Solver_Cumulative__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20440 PyObject *resultobj = 0;
20442 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20443 std::vector< int > *arg3 = 0 ;
20445 std::string *arg5 = 0 ;
20446 void *argp1 = 0 ;
20447 int res1 = 0 ;
20448 std::vector< operations_research::IntervalVar * > temp2 ;
20449 std::vector< int > temp3 ;
20450 int res5 = SWIG_OLDOBJ ;
20451 PyObject * obj0 = 0 ;
20452 PyObject * obj1 = 0 ;
20453 PyObject * obj2 = 0 ;
20454 PyObject * obj3 = 0 ;
20455 PyObject * obj4 = 0 ;
20457
20458 if (!PyArg_UnpackTuple(args, "Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
20459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
20460 if (!SWIG_IsOK(res1)) {
20461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Cumulative" "', argument " "1"" of type '" "operations_research::Solver *""'");
20462 }
20463 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20464 {
20465 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20466 if (!PyErr_Occurred())
20467 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntervalVar*) expected");
20468 return NULL;
20469 }
20470 arg2 = &temp2;
20471 }
20472 {
20473 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
20474 if (!PyErr_Occurred())
20475 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
20476 return NULL;
20477 }
20478 arg3 = &temp3;
20479 }
20480 {
20481 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
20482 }
20483 {
20484 std::string *ptr = (std::string *)0;
20485 res5 = SWIG_AsPtr_std_string(obj4, &ptr);
20486 if (!SWIG_IsOK(res5)) {
20487 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Solver_Cumulative" "', argument " "5"" of type '" "std::string const &""'");
20488 }
20489 if (!ptr) {
20490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_Cumulative" "', argument " "5"" of type '" "std::string const &""'");
20491 }
20492 arg5 = ptr;
20493 }
20494 {
20495 try {
20496 result = (operations_research::Constraint *)(arg1)->MakeCumulative((std::vector< operations_research::IntervalVar * > const &)*arg2,(std::vector< int > const &)*arg3,arg4,(std::string const &)*arg5);
20497 }
20498 catch (Swig::DirectorException &e) {
20499 SWIG_fail;
20500 }
20501 }
20503 if (SWIG_IsNewObj(res5)) delete arg5;
20504 return resultobj;
20505fail:
20506 if (SWIG_IsNewObj(res5)) delete arg5;
20507 return NULL;
20508}
20509
20510
20511SWIGINTERN PyObject *_wrap_Solver_Cumulative__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20512 PyObject *resultobj = 0;
20514 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20515 std::vector< operations_research::IntVar * > *arg3 = 0 ;
20516 int64_t arg4 ;
20517 std::string *arg5 = 0 ;
20518 void *argp1 = 0 ;
20519 int res1 = 0 ;
20520 std::vector< operations_research::IntervalVar * > temp2 ;
20521 std::vector< operations_research::IntVar * > temp3 ;
20522 long val4 ;
20523 int ecode4 = 0 ;
20524 int res5 = SWIG_OLDOBJ ;
20525 PyObject * obj0 = 0 ;
20526 PyObject * obj1 = 0 ;
20527 PyObject * obj2 = 0 ;
20528 PyObject * obj3 = 0 ;
20529 PyObject * obj4 = 0 ;
20531
20532 if (!PyArg_UnpackTuple(args, "Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
20533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
20534 if (!SWIG_IsOK(res1)) {
20535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Cumulative" "', argument " "1"" of type '" "operations_research::Solver *""'");
20536 }
20537 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20538 {
20539 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20540 if (!PyErr_Occurred())
20541 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntervalVar*) expected");
20542 return NULL;
20543 }
20544 arg2 = &temp2;
20545 }
20546 {
20547 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
20548 if (!PyErr_Occurred())
20549 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
20550 return NULL;
20551 }
20552 arg3 = &temp3;
20553 }
20554 ecode4 = SWIG_AsVal_long(obj3, &val4);
20555 if (!SWIG_IsOK(ecode4)) {
20556 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_Cumulative" "', argument " "4"" of type '" "int64_t""'");
20557 }
20558 arg4 = static_cast< int64_t >(val4);
20559 {
20560 std::string *ptr = (std::string *)0;
20561 res5 = SWIG_AsPtr_std_string(obj4, &ptr);
20562 if (!SWIG_IsOK(res5)) {
20563 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Solver_Cumulative" "', argument " "5"" of type '" "std::string const &""'");
20564 }
20565 if (!ptr) {
20566 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_Cumulative" "', argument " "5"" of type '" "std::string const &""'");
20567 }
20568 arg5 = ptr;
20569 }
20570 {
20571 try {
20572 result = (operations_research::Constraint *)(arg1)->MakeCumulative((std::vector< operations_research::IntervalVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3,arg4,(std::string const &)*arg5);
20573 }
20574 catch (Swig::DirectorException &e) {
20575 SWIG_fail;
20576 }
20577 }
20579 if (SWIG_IsNewObj(res5)) delete arg5;
20580 return resultobj;
20581fail:
20582 if (SWIG_IsNewObj(res5)) delete arg5;
20583 return NULL;
20584}
20585
20586
20587SWIGINTERN PyObject *_wrap_Solver_Cumulative__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20588 PyObject *resultobj = 0;
20590 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20591 std::vector< operations_research::IntVar * > *arg3 = 0 ;
20593 std::string *arg5 = 0 ;
20594 void *argp1 = 0 ;
20595 int res1 = 0 ;
20596 std::vector< operations_research::IntervalVar * > temp2 ;
20597 std::vector< operations_research::IntVar * > temp3 ;
20598 int res5 = SWIG_OLDOBJ ;
20599 PyObject * obj0 = 0 ;
20600 PyObject * obj1 = 0 ;
20601 PyObject * obj2 = 0 ;
20602 PyObject * obj3 = 0 ;
20603 PyObject * obj4 = 0 ;
20605
20606 if (!PyArg_UnpackTuple(args, "Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
20607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
20608 if (!SWIG_IsOK(res1)) {
20609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Cumulative" "', argument " "1"" of type '" "operations_research::Solver *""'");
20610 }
20611 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20612 {
20613 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20614 if (!PyErr_Occurred())
20615 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntervalVar*) expected");
20616 return NULL;
20617 }
20618 arg2 = &temp2;
20619 }
20620 {
20621 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
20622 if (!PyErr_Occurred())
20623 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
20624 return NULL;
20625 }
20626 arg3 = &temp3;
20627 }
20628 {
20629 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
20630 }
20631 {
20632 std::string *ptr = (std::string *)0;
20633 res5 = SWIG_AsPtr_std_string(obj4, &ptr);
20634 if (!SWIG_IsOK(res5)) {
20635 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Solver_Cumulative" "', argument " "5"" of type '" "std::string const &""'");
20636 }
20637 if (!ptr) {
20638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_Cumulative" "', argument " "5"" of type '" "std::string const &""'");
20639 }
20640 arg5 = ptr;
20641 }
20642 {
20643 try {
20644 result = (operations_research::Constraint *)(arg1)->MakeCumulative((std::vector< operations_research::IntervalVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3,arg4,(std::string const &)*arg5);
20645 }
20646 catch (Swig::DirectorException &e) {
20647 SWIG_fail;
20648 }
20649 }
20651 if (SWIG_IsNewObj(res5)) delete arg5;
20652 return resultobj;
20653fail:
20654 if (SWIG_IsNewObj(res5)) delete arg5;
20655 return NULL;
20656}
20657
20658
20659SWIGINTERN PyObject *_wrap_Solver_Cumulative(PyObject *self, PyObject *args) {
20660 Py_ssize_t argc;
20661 PyObject *argv[6] = {
20662 0
20663 };
20664 Py_ssize_t ii;
20665
20666 if (!PyTuple_Check(args)) SWIG_fail;
20667 argc = PyObject_Length(args);
20668 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
20669 argv[ii] = PyTuple_GET_ITEM(args,ii);
20670 }
20671 if (argc == 5) {
20672 int _v;
20673 void *vptr = 0;
20674 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
20675 _v = SWIG_CheckState(res);
20676 if (_v) {
20677 {
20678 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20679 _v = 0;
20680 } else {
20681 const bool is_tuple = PyTuple_Check(argv[1]);
20682 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20683 size_t i = 0;
20684 while (i < size && CanConvertToIntervalVar(is_tuple ? PyTuple_GetItem(argv[1], i)
20685 :PyList_GetItem(argv[1], i))) {
20686 ++i;
20687 }
20688 _v = i == size;
20689 }
20690 }
20691 if (_v) {
20692 {
20693 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20694 _v = 0;
20695 } else {
20696 const bool is_tuple = PyTuple_Check(argv[2]);
20697 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20698 size_t i = 0;
20699 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
20700 :PyList_GetItem(argv[2], i))) {
20701 ++i;
20702 }
20703 _v = i == size;
20704 }
20705 }
20706 if (_v) {
20707 {
20708 _v = CanConvertToIntVar(argv[3]);
20709 if (_v == 0) PyErr_Clear();
20710 }
20711 if (_v) {
20712 int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
20713 _v = SWIG_CheckState(res);
20714 if (_v) {
20715 return _wrap_Solver_Cumulative__SWIG_2(self, args);
20716 }
20717 }
20718 }
20719 }
20720 }
20721 }
20722 if (argc == 5) {
20723 int _v;
20724 void *vptr = 0;
20725 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
20726 _v = SWIG_CheckState(res);
20727 if (_v) {
20728 {
20729 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20730 _v = 0;
20731 } else {
20732 const bool is_tuple = PyTuple_Check(argv[1]);
20733 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20734 size_t i = 0;
20735 while (i < size && CanConvertToIntervalVar(is_tuple ? PyTuple_GetItem(argv[1], i)
20736 :PyList_GetItem(argv[1], i))) {
20737 ++i;
20738 }
20739 _v = i == size;
20740 }
20741 }
20742 if (_v) {
20743 {
20744 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20745 _v = 0;
20746 } else {
20747 const bool is_tuple = PyTuple_Check(argv[2]);
20748 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20749 size_t i = 0;
20750 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
20751 :PyList_GetItem(argv[2], i))) {
20752 ++i;
20753 }
20754 _v = i == size;
20755 }
20756 }
20757 if (_v) {
20758 {
20759 _v = CanConvertToIntVar(argv[3]);
20760 if (_v == 0) PyErr_Clear();
20761 }
20762 if (_v) {
20763 int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
20764 _v = SWIG_CheckState(res);
20765 if (_v) {
20766 return _wrap_Solver_Cumulative__SWIG_3(self, args);
20767 }
20768 }
20769 }
20770 }
20771 }
20772 }
20773 if (argc == 5) {
20774 int _v;
20775 void *vptr = 0;
20776 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
20777 _v = SWIG_CheckState(res);
20778 if (_v) {
20779 {
20780 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20781 _v = 0;
20782 } else {
20783 const bool is_tuple = PyTuple_Check(argv[1]);
20784 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20785 size_t i = 0;
20786 while (i < size && CanConvertToIntervalVar(is_tuple ? PyTuple_GetItem(argv[1], i)
20787 :PyList_GetItem(argv[1], i))) {
20788 ++i;
20789 }
20790 _v = i == size;
20791 }
20792 }
20793 if (_v) {
20794 {
20795 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20796 _v = 0;
20797 } else {
20798 const bool is_tuple = PyTuple_Check(argv[2]);
20799 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20800 size_t i = 0;
20801 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
20802 :PyList_GetItem(argv[2], i))) {
20803 ++i;
20804 }
20805 _v = i == size;
20806 }
20807 }
20808 if (_v) {
20809 {
20810 int res = SWIG_AsVal_long(argv[3], NULL);
20811 _v = SWIG_CheckState(res);
20812 }
20813 if (_v) {
20814 int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
20815 _v = SWIG_CheckState(res);
20816 if (_v) {
20817 return _wrap_Solver_Cumulative__SWIG_0(self, args);
20818 }
20819 }
20820 }
20821 }
20822 }
20823 }
20824 if (argc == 5) {
20825 int _v;
20826 void *vptr = 0;
20827 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
20828 _v = SWIG_CheckState(res);
20829 if (_v) {
20830 {
20831 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20832 _v = 0;
20833 } else {
20834 const bool is_tuple = PyTuple_Check(argv[1]);
20835 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20836 size_t i = 0;
20837 while (i < size && CanConvertToIntervalVar(is_tuple ? PyTuple_GetItem(argv[1], i)
20838 :PyList_GetItem(argv[1], i))) {
20839 ++i;
20840 }
20841 _v = i == size;
20842 }
20843 }
20844 if (_v) {
20845 {
20846 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20847 _v = 0;
20848 } else {
20849 const bool is_tuple = PyTuple_Check(argv[2]);
20850 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20851 size_t i = 0;
20852 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
20853 :PyList_GetItem(argv[2], i))) {
20854 ++i;
20855 }
20856 _v = i == size;
20857 }
20858 }
20859 if (_v) {
20860 {
20861 int res = SWIG_AsVal_long(argv[3], NULL);
20862 _v = SWIG_CheckState(res);
20863 }
20864 if (_v) {
20865 int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
20866 _v = SWIG_CheckState(res);
20867 if (_v) {
20868 return _wrap_Solver_Cumulative__SWIG_1(self, args);
20869 }
20870 }
20871 }
20872 }
20873 }
20874 }
20875 if (argc == 5) {
20876 int _v;
20877 void *vptr = 0;
20878 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
20879 _v = SWIG_CheckState(res);
20880 if (_v) {
20881 {
20882 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20883 _v = 0;
20884 } else {
20885 const bool is_tuple = PyTuple_Check(argv[1]);
20886 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20887 size_t i = 0;
20888 while (i < size && CanConvertToIntervalVar(is_tuple ? PyTuple_GetItem(argv[1], i)
20889 :PyList_GetItem(argv[1], i))) {
20890 ++i;
20891 }
20892 _v = i == size;
20893 }
20894 }
20895 if (_v) {
20896 {
20897 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20898 _v = 0;
20899 } else {
20900 const bool is_tuple = PyTuple_Check(argv[2]);
20901 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20902 size_t i = 0;
20903 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[2], i)
20904 :PyList_GetItem(argv[2], i))) {
20905 ++i;
20906 }
20907 _v = i == size;
20908 }
20909 }
20910 if (_v) {
20911 {
20912 _v = CanConvertToIntVar(argv[3]);
20913 if (_v == 0) PyErr_Clear();
20914 }
20915 if (_v) {
20916 int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
20917 _v = SWIG_CheckState(res);
20918 if (_v) {
20919 return _wrap_Solver_Cumulative__SWIG_5(self, args);
20920 }
20921 }
20922 }
20923 }
20924 }
20925 }
20926 if (argc == 5) {
20927 int _v;
20928 void *vptr = 0;
20929 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
20930 _v = SWIG_CheckState(res);
20931 if (_v) {
20932 {
20933 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20934 _v = 0;
20935 } else {
20936 const bool is_tuple = PyTuple_Check(argv[1]);
20937 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20938 size_t i = 0;
20939 while (i < size && CanConvertToIntervalVar(is_tuple ? PyTuple_GetItem(argv[1], i)
20940 :PyList_GetItem(argv[1], i))) {
20941 ++i;
20942 }
20943 _v = i == size;
20944 }
20945 }
20946 if (_v) {
20947 {
20948 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20949 _v = 0;
20950 } else {
20951 const bool is_tuple = PyTuple_Check(argv[2]);
20952 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20953 size_t i = 0;
20954 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[2], i)
20955 :PyList_GetItem(argv[2], i))) {
20956 ++i;
20957 }
20958 _v = i == size;
20959 }
20960 }
20961 if (_v) {
20962 {
20963 int res = SWIG_AsVal_long(argv[3], NULL);
20964 _v = SWIG_CheckState(res);
20965 }
20966 if (_v) {
20967 int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
20968 _v = SWIG_CheckState(res);
20969 if (_v) {
20970 return _wrap_Solver_Cumulative__SWIG_4(self, args);
20971 }
20972 }
20973 }
20974 }
20975 }
20976 }
20977
20978fail:
20979 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_Cumulative'.\n"
20980 " Possible C/C++ prototypes are:\n"
20981 " operations_research::Solver::MakeCumulative(std::vector< operations_research::IntervalVar * > const &,std::vector< int64_t > const &,int64_t,std::string const &)\n"
20982 " operations_research::Solver::MakeCumulative(std::vector< operations_research::IntervalVar * > const &,std::vector< int > const &,int64_t,std::string const &)\n"
20983 " operations_research::Solver::MakeCumulative(std::vector< operations_research::IntervalVar * > const &,std::vector< int64_t > const &,operations_research::IntVar *const,std::string const &)\n"
20984 " operations_research::Solver::MakeCumulative(std::vector< operations_research::IntervalVar * > const &,std::vector< int > const &,operations_research::IntVar *const,std::string const &)\n"
20985 " operations_research::Solver::MakeCumulative(std::vector< operations_research::IntervalVar * > const &,std::vector< operations_research::IntVar * > const &,int64_t,std::string const &)\n"
20986 " operations_research::Solver::MakeCumulative(std::vector< operations_research::IntervalVar * > const &,std::vector< operations_research::IntVar * > const &,operations_research::IntVar *const,std::string const &)\n");
20987 return 0;
20988}
20989
20990
20991SWIGINTERN PyObject *_wrap_Solver_Cover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20992 PyObject *resultobj = 0;
20994 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20996 void *argp1 = 0 ;
20997 int res1 = 0 ;
20998 std::vector< operations_research::IntervalVar * > temp2 ;
20999 PyObject * obj0 = 0 ;
21000 PyObject * obj1 = 0 ;
21001 PyObject * obj2 = 0 ;
21003
21004 if (!PyArg_UnpackTuple(args, "Solver_Cover", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
21005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
21006 if (!SWIG_IsOK(res1)) {
21007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Cover" "', argument " "1"" of type '" "operations_research::Solver *""'");
21008 }
21009 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21010 {
21011 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
21012 if (!PyErr_Occurred())
21013 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntervalVar*) expected");
21014 return NULL;
21015 }
21016 arg2 = &temp2;
21017 }
21018 {
21019 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
21020 }
21021 {
21022 try {
21023 result = (operations_research::Constraint *)(arg1)->MakeCover((std::vector< operations_research::IntervalVar * > const &)*arg2,arg3);
21024 }
21025 catch (Swig::DirectorException &e) {
21026 SWIG_fail;
21027 }
21028 }
21030 return resultobj;
21031fail:
21032 return NULL;
21033}
21034
21035
21036SWIGINTERN PyObject *_wrap_Solver_Assignment__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21037 PyObject *resultobj = 0;
21039 void *argp1 = 0 ;
21040 int res1 = 0 ;
21041 PyObject * obj0 = 0 ;
21043
21044 if (!PyArg_UnpackTuple(args, "Solver_Assignment", 1, 1, &obj0)) SWIG_fail;
21045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
21046 if (!SWIG_IsOK(res1)) {
21047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Assignment" "', argument " "1"" of type '" "operations_research::Solver *""'");
21048 }
21049 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21050 {
21051 try {
21052 result = (operations_research::Assignment *)(arg1)->MakeAssignment();
21053 }
21054 catch (Swig::DirectorException &e) {
21055 SWIG_fail;
21056 }
21057 }
21059 return resultobj;
21060fail:
21061 return NULL;
21062}
21063
21064
21065SWIGINTERN PyObject *_wrap_Solver_Assignment__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21066 PyObject *resultobj = 0;
21069 void *argp1 = 0 ;
21070 int res1 = 0 ;
21071 void *argp2 = 0 ;
21072 int res2 = 0 ;
21073 PyObject * obj0 = 0 ;
21074 PyObject * obj1 = 0 ;
21076
21077 if (!PyArg_UnpackTuple(args, "Solver_Assignment", 2, 2, &obj0, &obj1)) SWIG_fail;
21078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
21079 if (!SWIG_IsOK(res1)) {
21080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Assignment" "', argument " "1"" of type '" "operations_research::Solver *""'");
21081 }
21082 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21084 if (!SWIG_IsOK(res2)) {
21085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_Assignment" "', argument " "2"" of type '" "operations_research::Assignment const *const""'");
21086 }
21087 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
21088 {
21089 try {
21090 result = (operations_research::Assignment *)(arg1)->MakeAssignment((operations_research::Assignment const *)arg2);
21091 }
21092 catch (Swig::DirectorException &e) {
21093 SWIG_fail;
21094 }
21095 }
21097 return resultobj;
21098fail:
21099 return NULL;
21100}
21101
21102
21103SWIGINTERN PyObject *_wrap_Solver_Assignment(PyObject *self, PyObject *args) {
21104 Py_ssize_t argc;
21105 PyObject *argv[3] = {
21106 0
21107 };
21108 Py_ssize_t ii;
21109
21110 if (!PyTuple_Check(args)) SWIG_fail;
21111 argc = PyObject_Length(args);
21112 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
21113 argv[ii] = PyTuple_GET_ITEM(args,ii);
21114 }
21115 if (argc == 1) {
21116 int _v;
21117 void *vptr = 0;
21118 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
21119 _v = SWIG_CheckState(res);
21120 if (_v) {
21121 return _wrap_Solver_Assignment__SWIG_0(self, args);
21122 }
21123 }
21124 if (argc == 2) {
21125 int _v;
21126 void *vptr = 0;
21127 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
21128 _v = SWIG_CheckState(res);
21129 if (_v) {
21130 void *vptr = 0;
21131 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
21132 _v = SWIG_CheckState(res);
21133 if (_v) {
21134 return _wrap_Solver_Assignment__SWIG_1(self, args);
21135 }
21136 }
21137 }
21138
21139fail:
21140 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_Assignment'.\n"
21141 " Possible C/C++ prototypes are:\n"
21142 " operations_research::Solver::MakeAssignment()\n"
21143 " operations_research::Solver::MakeAssignment(operations_research::Assignment const *const)\n");
21144 return 0;
21145}
21146
21147
21149 PyObject *resultobj = 0;
21152 void *argp1 = 0 ;
21153 int res1 = 0 ;
21154 void *argp2 = 0 ;
21155 int res2 = 0 ;
21156 PyObject * obj0 = 0 ;
21157 PyObject * obj1 = 0 ;
21159
21160 if (!PyArg_UnpackTuple(args, "Solver_FirstSolutionCollector", 2, 2, &obj0, &obj1)) SWIG_fail;
21161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
21162 if (!SWIG_IsOK(res1)) {
21163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_FirstSolutionCollector" "', argument " "1"" of type '" "operations_research::Solver *""'");
21164 }
21165 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21167 if (!SWIG_IsOK(res2)) {
21168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_FirstSolutionCollector" "', argument " "2"" of type '" "operations_research::Assignment const *const""'");
21169 }
21170 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
21171 {
21172 try {
21173 result = (operations_research::SolutionCollector *)(arg1)->MakeFirstSolutionCollector((operations_research::Assignment const *)arg2);
21174 }
21175 catch (Swig::DirectorException &e) {
21176 SWIG_fail;
21177 }
21178 }
21180 return resultobj;
21181fail:
21182 return NULL;
21183}
21184
21185
21187 PyObject *resultobj = 0;
21189 void *argp1 = 0 ;
21190 int res1 = 0 ;
21191 PyObject * obj0 = 0 ;
21193
21194 if (!PyArg_UnpackTuple(args, "Solver_FirstSolutionCollector", 1, 1, &obj0)) SWIG_fail;
21195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
21196 if (!SWIG_IsOK(res1)) {
21197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_FirstSolutionCollector" "', argument " "1"" of type '" "operations_research::Solver *""'");
21198 }
21199 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21200 {
21201 try {
21202 result = (operations_research::SolutionCollector *)(arg1)->MakeFirstSolutionCollector();
21203 }
21204 catch (Swig::DirectorException &e) {
21205 SWIG_fail;
21206 }
21207 }
21209 return resultobj;
21210fail:
21211 return NULL;
21212}
21213
21214
21215SWIGINTERN PyObject *_wrap_Solver_FirstSolutionCollector(PyObject *self, PyObject *args) {
21216 Py_ssize_t argc;
21217 PyObject *argv[3] = {
21218 0
21219 };
21220 Py_ssize_t ii;
21221
21222 if (!PyTuple_Check(args)) SWIG_fail;
21223 argc = PyObject_Length(args);
21224 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
21225 argv[ii] = PyTuple_GET_ITEM(args,ii);
21226 }
21227 if (argc == 1) {
21228 int _v;
21229 void *vptr = 0;
21230 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
21231 _v = SWIG_CheckState(res);
21232 if (_v) {
21234 }
21235 }
21236 if (argc == 2) {
21237 int _v;
21238 void *vptr = 0;
21239 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
21240 _v = SWIG_CheckState(res);
21241 if (_v) {
21242 void *vptr = 0;
21243 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
21244 _v = SWIG_CheckState(res);
21245 if (_v) {
21247 }
21248 }
21249 }
21250
21251fail:
21252 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_FirstSolutionCollector'.\n"
21253 " Possible C/C++ prototypes are:\n"
21254 " operations_research::Solver::MakeFirstSolutionCollector(operations_research::Assignment const *const)\n"
21255 " operations_research::Solver::MakeFirstSolutionCollector()\n");
21256 return 0;
21257}
21258
21259
21261 PyObject *resultobj = 0;
21264 void *argp1 = 0 ;
21265 int res1 = 0 ;
21266 void *argp2 = 0 ;
21267 int res2 = 0 ;
21268 PyObject * obj0 = 0 ;
21269 PyObject * obj1 = 0 ;
21271
21272 if (!PyArg_UnpackTuple(args, "Solver_LastSolutionCollector", 2, 2, &obj0, &obj1)) SWIG_fail;
21273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
21274 if (!SWIG_IsOK(res1)) {
21275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_LastSolutionCollector" "', argument " "1"" of type '" "operations_research::Solver *""'");
21276 }
21277 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21279 if (!SWIG_IsOK(res2)) {
21280 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_LastSolutionCollector" "', argument " "2"" of type '" "operations_research::Assignment const *const""'");
21281 }
21282 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
21283 {
21284 try {
21285 result = (operations_research::SolutionCollector *)(arg1)->MakeLastSolutionCollector((operations_research::Assignment const *)arg2);
21286 }
21287 catch (Swig::DirectorException &e) {
21288 SWIG_fail;
21289 }
21290 }
21292 return resultobj;
21293fail:
21294 return NULL;
21295}
21296
21297
21299 PyObject *resultobj = 0;
21301 void *argp1 = 0 ;
21302 int res1 = 0 ;
21303 PyObject * obj0 = 0 ;
21305
21306 if (!PyArg_UnpackTuple(args, "Solver_LastSolutionCollector", 1, 1, &obj0)) SWIG_fail;
21307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
21308 if (!SWIG_IsOK(res1)) {
21309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_LastSolutionCollector" "', argument " "1"" of type '" "operations_research::Solver *""'");
21310 }
21311 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21312 {
21313 try {
21314 result = (operations_research::SolutionCollector *)(arg1)->MakeLastSolutionCollector();
21315 }
21316 catch (Swig::DirectorException &e) {
21317 SWIG_fail;
21318 }
21319 }
21321 return resultobj;
21322fail:
21323 return NULL;
21324}
21325
21326
21327SWIGINTERN PyObject *_wrap_Solver_LastSolutionCollector(PyObject *self, PyObject *args) {
21328 Py_ssize_t argc;
21329 PyObject *argv[3] = {
21330 0
21331 };
21332 Py_ssize_t ii;
21333
21334 if (!PyTuple_Check(args)) SWIG_fail;
21335 argc = PyObject_Length(args);
21336 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
21337 argv[ii] = PyTuple_GET_ITEM(args,ii);
21338 }
21339 if (argc == 1) {
21340 int _v;
21341 void *vptr = 0;
21342 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
21343 _v = SWIG_CheckState(res);
21344 if (_v) {
21346 }
21347 }
21348 if (argc == 2) {
21349 int _v;
21350 void *vptr = 0;
21351 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
21352 _v = SWIG_CheckState(res);
21353 if (_v) {
21354 void *vptr = 0;
21355 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
21356 _v = SWIG_CheckState(res);
21357 if (_v) {
21359 }
21360 }
21361 }
21362
21363fail:
21364 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_LastSolutionCollector'.\n"
21365 " Possible C/C++ prototypes are:\n"
21366 " operations_research::Solver::MakeLastSolutionCollector(operations_research::Assignment const *const)\n"
21367 " operations_research::Solver::MakeLastSolutionCollector()\n");
21368 return 0;
21369}
21370
21371
21373 PyObject *resultobj = 0;
21376 bool arg3 ;
21377 void *argp1 = 0 ;
21378 int res1 = 0 ;
21379 void *argp2 = 0 ;
21380 int res2 = 0 ;
21381 bool val3 ;
21382 int ecode3 = 0 ;
21383 PyObject * obj0 = 0 ;
21384 PyObject * obj1 = 0 ;
21385 PyObject * obj2 = 0 ;
21387
21388 if (!PyArg_UnpackTuple(args, "Solver_BestValueSolutionCollector", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
21389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
21390 if (!SWIG_IsOK(res1)) {
21391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_BestValueSolutionCollector" "', argument " "1"" of type '" "operations_research::Solver *""'");
21392 }
21393 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21395 if (!SWIG_IsOK(res2)) {
21396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_BestValueSolutionCollector" "', argument " "2"" of type '" "operations_research::Assignment const *const""'");
21397 }
21398 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
21399 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21400 if (!SWIG_IsOK(ecode3)) {
21401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_BestValueSolutionCollector" "', argument " "3"" of type '" "bool""'");
21402 }
21403 arg3 = static_cast< bool >(val3);
21404 {
21405 try {
21406 result = (operations_research::SolutionCollector *)(arg1)->MakeBestValueSolutionCollector((operations_research::Assignment const *)arg2,arg3);
21407 }
21408 catch (Swig::DirectorException &e) {
21409 SWIG_fail;
21410 }
21411 }
21413 return resultobj;
21414fail:
21415 return NULL;
21416}
21417
21418
21420 PyObject *resultobj = 0;
21422 bool arg2 ;
21423 void *argp1 = 0 ;
21424 int res1 = 0 ;
21425 bool val2 ;
21426 int ecode2 = 0 ;
21427 PyObject * obj0 = 0 ;
21428 PyObject * obj1 = 0 ;
21430
21431 if (!PyArg_UnpackTuple(args, "Solver_BestValueSolutionCollector", 2, 2, &obj0, &obj1)) SWIG_fail;
21432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
21433 if (!SWIG_IsOK(res1)) {
21434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_BestValueSolutionCollector" "', argument " "1"" of type '" "operations_research::Solver *""'");
21435 }
21436 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21437 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21438 if (!SWIG_IsOK(ecode2)) {
21439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_BestValueSolutionCollector" "', argument " "2"" of type '" "bool""'");
21440 }
21441 arg2 = static_cast< bool >(val2);
21442 {
21443 try {
21444 result = (operations_research::SolutionCollector *)(arg1)->MakeBestValueSolutionCollector(arg2);
21445 }
21446 catch (Swig::DirectorException &e) {
21447 SWIG_fail;
21448 }
21449 }
21451 return resultobj;
21452fail:
21453 return NULL;
21454}
21455
21456
21457SWIGINTERN PyObject *_wrap_Solver_BestValueSolutionCollector(PyObject *self, PyObject *args) {
21458 Py_ssize_t argc;
21459 PyObject *argv[4] = {
21460 0
21461 };
21462 Py_ssize_t ii;
21463
21464 if (!PyTuple_Check(args)) SWIG_fail;
21465 argc = PyObject_Length(args);
21466 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
21467 argv[ii] = PyTuple_GET_ITEM(args,ii);
21468 }
21469 if (argc == 2) {
21470 int _v;
21471 void *vptr = 0;
21472 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
21473 _v = SWIG_CheckState(res);
21474 if (_v) {
21475 {
21476 int res = SWIG_AsVal_bool(argv[1], NULL);
21477 _v = SWIG_CheckState(res);
21478 }
21479 if (_v) {
21481 }
21482 }
21483 }
21484 if (argc == 3) {
21485 int _v;
21486 void *vptr = 0;
21487 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
21488 _v = SWIG_CheckState(res);
21489 if (_v) {
21490 void *vptr = 0;
21491 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
21492 _v = SWIG_CheckState(res);
21493 if (_v) {
21494 {
21495 int res = SWIG_AsVal_bool(argv[2], NULL);
21496 _v = SWIG_CheckState(res);
21497 }
21498 if (_v) {
21500 }
21501 }
21502 }
21503 }
21504
21505fail:
21506 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_BestValueSolutionCollector'.\n"
21507 " Possible C/C++ prototypes are:\n"
21508 " operations_research::Solver::MakeBestValueSolutionCollector(operations_research::Assignment const *const,bool)\n"
21509 " operations_research::Solver::MakeBestValueSolutionCollector(bool)\n");
21510 return 0;
21511}
21512
21513
21514SWIGINTERN PyObject *_wrap_Solver_AllSolutionCollector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21515 PyObject *resultobj = 0;
21518 void *argp1 = 0 ;
21519 int res1 = 0 ;
21520 void *argp2 = 0 ;
21521 int res2 = 0 ;
21522 PyObject * obj0 = 0 ;
21523 PyObject * obj1 = 0 ;
21525
21526 if (!PyArg_UnpackTuple(args, "Solver_AllSolutionCollector", 2, 2, &obj0, &obj1)) SWIG_fail;
21527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
21528 if (!SWIG_IsOK(res1)) {
21529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_AllSolutionCollector" "', argument " "1"" of type '" "operations_research::Solver *""'");
21530 }
21531 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21533 if (!SWIG_IsOK(res2)) {
21534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_AllSolutionCollector" "', argument " "2"" of type '" "operations_research::Assignment const *const""'");
21535 }
21536 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
21537 {
21538 try {
21539 result = (operations_research::SolutionCollector *)(arg1)->MakeAllSolutionCollector((operations_research::Assignment const *)arg2);
21540 }
21541 catch (Swig::DirectorException &e) {
21542 SWIG_fail;
21543 }
21544 }
21546 return resultobj;
21547fail:
21548 return NULL;
21549}
21550
21551
21552SWIGINTERN PyObject *_wrap_Solver_AllSolutionCollector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21553 PyObject *resultobj = 0;
21555 void *argp1 = 0 ;
21556 int res1 = 0 ;
21557 PyObject * obj0 = 0 ;
21559
21560 if (!PyArg_UnpackTuple(args, "Solver_AllSolutionCollector", 1, 1, &obj0)) SWIG_fail;
21561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
21562 if (!SWIG_IsOK(res1)) {
21563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_AllSolutionCollector" "', argument " "1"" of type '" "operations_research::Solver *""'");
21564 }
21565 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21566 {
21567 try {
21568 result = (operations_research::SolutionCollector *)(arg1)->MakeAllSolutionCollector();
21569 }
21570 catch (Swig::DirectorException &e) {
21571 SWIG_fail;
21572 }
21573 }
21575 return resultobj;
21576fail:
21577 return NULL;
21578}
21579
21580
21581SWIGINTERN PyObject *_wrap_Solver_AllSolutionCollector(PyObject *self, PyObject *args) {
21582 Py_ssize_t argc;
21583 PyObject *argv[3] = {
21584 0
21585 };
21586 Py_ssize_t ii;
21587
21588 if (!PyTuple_Check(args)) SWIG_fail;
21589 argc = PyObject_Length(args);
21590 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
21591 argv[ii] = PyTuple_GET_ITEM(args,ii);
21592 }
21593 if (argc == 1) {
21594 int _v;
21595 void *vptr = 0;
21596 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
21597 _v = SWIG_CheckState(res);
21598 if (_v) {
21600 }
21601 }
21602 if (argc == 2) {
21603 int _v;
21604 void *vptr = 0;
21605 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
21606 _v = SWIG_CheckState(res);
21607 if (_v) {
21608 void *vptr = 0;
21609 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
21610 _v = SWIG_CheckState(res);
21611 if (_v) {
21613 }
21614 }
21615 }
21616
21617fail:
21618 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_AllSolutionCollector'.\n"
21619 " Possible C/C++ prototypes are:\n"
21620 " operations_research::Solver::MakeAllSolutionCollector(operations_research::Assignment const *const)\n"
21621 " operations_research::Solver::MakeAllSolutionCollector()\n");
21622 return 0;
21623}
21624
21625
21626SWIGINTERN PyObject *_wrap_Solver_Minimize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21627 PyObject *resultobj = 0;
21630 int64_t arg3 ;
21631 void *argp1 = 0 ;
21632 int res1 = 0 ;
21633 long val3 ;
21634 int ecode3 = 0 ;
21635 PyObject * obj0 = 0 ;
21636 PyObject * obj1 = 0 ;
21637 PyObject * obj2 = 0 ;
21639
21640 if (!PyArg_UnpackTuple(args, "Solver_Minimize", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
21641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
21642 if (!SWIG_IsOK(res1)) {
21643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Minimize" "', argument " "1"" of type '" "operations_research::Solver *""'");
21644 }
21645 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21646 {
21647 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
21648 }
21649 ecode3 = SWIG_AsVal_long(obj2, &val3);
21650 if (!SWIG_IsOK(ecode3)) {
21651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Minimize" "', argument " "3"" of type '" "int64_t""'");
21652 }
21653 arg3 = static_cast< int64_t >(val3);
21654 {
21655 try {
21656 result = (operations_research::OptimizeVar *)(arg1)->MakeMinimize(arg2,arg3);
21657 }
21658 catch (Swig::DirectorException &e) {
21659 SWIG_fail;
21660 }
21661 }
21663 return resultobj;
21664fail:
21665 return NULL;
21666}
21667
21668
21669SWIGINTERN PyObject *_wrap_Solver_Maximize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21670 PyObject *resultobj = 0;
21673 int64_t arg3 ;
21674 void *argp1 = 0 ;
21675 int res1 = 0 ;
21676 long val3 ;
21677 int ecode3 = 0 ;
21678 PyObject * obj0 = 0 ;
21679 PyObject * obj1 = 0 ;
21680 PyObject * obj2 = 0 ;
21682
21683 if (!PyArg_UnpackTuple(args, "Solver_Maximize", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
21684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
21685 if (!SWIG_IsOK(res1)) {
21686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Maximize" "', argument " "1"" of type '" "operations_research::Solver *""'");
21687 }
21688 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21689 {
21690 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
21691 }
21692 ecode3 = SWIG_AsVal_long(obj2, &val3);
21693 if (!SWIG_IsOK(ecode3)) {
21694 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Maximize" "', argument " "3"" of type '" "int64_t""'");
21695 }
21696 arg3 = static_cast< int64_t >(val3);
21697 {
21698 try {
21699 result = (operations_research::OptimizeVar *)(arg1)->MakeMaximize(arg2,arg3);
21700 }
21701 catch (Swig::DirectorException &e) {
21702 SWIG_fail;
21703 }
21704 }
21706 return resultobj;
21707fail:
21708 return NULL;
21709}
21710
21711
21712SWIGINTERN PyObject *_wrap_Solver_Optimize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21713 PyObject *resultobj = 0;
21715 bool arg2 ;
21717 int64_t arg4 ;
21718 void *argp1 = 0 ;
21719 int res1 = 0 ;
21720 bool val2 ;
21721 int ecode2 = 0 ;
21722 long val4 ;
21723 int ecode4 = 0 ;
21724 PyObject * obj0 = 0 ;
21725 PyObject * obj1 = 0 ;
21726 PyObject * obj2 = 0 ;
21727 PyObject * obj3 = 0 ;
21729
21730 if (!PyArg_UnpackTuple(args, "Solver_Optimize", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
21731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
21732 if (!SWIG_IsOK(res1)) {
21733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Optimize" "', argument " "1"" of type '" "operations_research::Solver *""'");
21734 }
21735 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21736 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21737 if (!SWIG_IsOK(ecode2)) {
21738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_Optimize" "', argument " "2"" of type '" "bool""'");
21739 }
21740 arg2 = static_cast< bool >(val2);
21741 {
21742 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
21743 }
21744 ecode4 = SWIG_AsVal_long(obj3, &val4);
21745 if (!SWIG_IsOK(ecode4)) {
21746 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_Optimize" "', argument " "4"" of type '" "int64_t""'");
21747 }
21748 arg4 = static_cast< int64_t >(val4);
21749 {
21750 try {
21751 result = (operations_research::OptimizeVar *)(arg1)->MakeOptimize(arg2,arg3,arg4);
21752 }
21753 catch (Swig::DirectorException &e) {
21754 SWIG_fail;
21755 }
21756 }
21758 return resultobj;
21759fail:
21760 return NULL;
21761}
21762
21763
21764SWIGINTERN PyObject *_wrap_Solver_WeightedMinimize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21765 PyObject *resultobj = 0;
21767 std::vector< operations_research::IntVar * > *arg2 = 0 ;
21768 std::vector< int64_t > *arg3 = 0 ;
21769 int64_t arg4 ;
21770 void *argp1 = 0 ;
21771 int res1 = 0 ;
21772 std::vector< operations_research::IntVar * > temp2 ;
21773 std::vector< int64_t > temp3 ;
21774 long val4 ;
21775 int ecode4 = 0 ;
21776 PyObject * obj0 = 0 ;
21777 PyObject * obj1 = 0 ;
21778 PyObject * obj2 = 0 ;
21779 PyObject * obj3 = 0 ;
21781
21782 if (!PyArg_UnpackTuple(args, "Solver_WeightedMinimize", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
21783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
21784 if (!SWIG_IsOK(res1)) {
21785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_WeightedMinimize" "', argument " "1"" of type '" "operations_research::Solver *""'");
21786 }
21787 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21788 {
21789 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
21790 if (!PyErr_Occurred())
21791 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
21792 return NULL;
21793 }
21794 arg2 = &temp2;
21795 }
21796 {
21797 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
21798 if (!PyErr_Occurred())
21799 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
21800 return NULL;
21801 }
21802 arg3 = &temp3;
21803 }
21804 ecode4 = SWIG_AsVal_long(obj3, &val4);
21805 if (!SWIG_IsOK(ecode4)) {
21806 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_WeightedMinimize" "', argument " "4"" of type '" "int64_t""'");
21807 }
21808 arg4 = static_cast< int64_t >(val4);
21809 {
21810 try {
21811 result = (operations_research::OptimizeVar *)(arg1)->MakeWeightedMinimize((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int64_t > const &)*arg3,arg4);
21812 }
21813 catch (Swig::DirectorException &e) {
21814 SWIG_fail;
21815 }
21816 }
21818 return resultobj;
21819fail:
21820 return NULL;
21821}
21822
21823
21824SWIGINTERN PyObject *_wrap_Solver_WeightedMinimize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21825 PyObject *resultobj = 0;
21827 std::vector< operations_research::IntVar * > *arg2 = 0 ;
21828 std::vector< int > *arg3 = 0 ;
21829 int64_t arg4 ;
21830 void *argp1 = 0 ;
21831 int res1 = 0 ;
21832 std::vector< operations_research::IntVar * > temp2 ;
21833 std::vector< int > temp3 ;
21834 long val4 ;
21835 int ecode4 = 0 ;
21836 PyObject * obj0 = 0 ;
21837 PyObject * obj1 = 0 ;
21838 PyObject * obj2 = 0 ;
21839 PyObject * obj3 = 0 ;
21841
21842 if (!PyArg_UnpackTuple(args, "Solver_WeightedMinimize", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
21843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
21844 if (!SWIG_IsOK(res1)) {
21845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_WeightedMinimize" "', argument " "1"" of type '" "operations_research::Solver *""'");
21846 }
21847 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21848 {
21849 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
21850 if (!PyErr_Occurred())
21851 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
21852 return NULL;
21853 }
21854 arg2 = &temp2;
21855 }
21856 {
21857 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
21858 if (!PyErr_Occurred())
21859 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
21860 return NULL;
21861 }
21862 arg3 = &temp3;
21863 }
21864 ecode4 = SWIG_AsVal_long(obj3, &val4);
21865 if (!SWIG_IsOK(ecode4)) {
21866 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_WeightedMinimize" "', argument " "4"" of type '" "int64_t""'");
21867 }
21868 arg4 = static_cast< int64_t >(val4);
21869 {
21870 try {
21871 result = (operations_research::OptimizeVar *)(arg1)->MakeWeightedMinimize((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int > const &)*arg3,arg4);
21872 }
21873 catch (Swig::DirectorException &e) {
21874 SWIG_fail;
21875 }
21876 }
21878 return resultobj;
21879fail:
21880 return NULL;
21881}
21882
21883
21884SWIGINTERN PyObject *_wrap_Solver_WeightedMinimize(PyObject *self, PyObject *args) {
21885 Py_ssize_t argc;
21886 PyObject *argv[5] = {
21887 0
21888 };
21889 Py_ssize_t ii;
21890
21891 if (!PyTuple_Check(args)) SWIG_fail;
21892 argc = PyObject_Length(args);
21893 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
21894 argv[ii] = PyTuple_GET_ITEM(args,ii);
21895 }
21896 if (argc == 4) {
21897 int _v;
21898 void *vptr = 0;
21899 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
21900 _v = SWIG_CheckState(res);
21901 if (_v) {
21902 {
21903 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
21904 _v = 0;
21905 } else {
21906 const bool is_tuple = PyTuple_Check(argv[1]);
21907 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
21908 size_t i = 0;
21909 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
21910 :PyList_GetItem(argv[1], i))) {
21911 ++i;
21912 }
21913 _v = i == size;
21914 }
21915 }
21916 if (_v) {
21917 {
21918 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
21919 _v = 0;
21920 } else {
21921 const bool is_tuple = PyTuple_Check(argv[2]);
21922 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
21923 size_t i = 0;
21924 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
21925 :PyList_GetItem(argv[2], i))) {
21926 ++i;
21927 }
21928 _v = i == size;
21929 }
21930 }
21931 if (_v) {
21932 {
21933 int res = SWIG_AsVal_long(argv[3], NULL);
21934 _v = SWIG_CheckState(res);
21935 }
21936 if (_v) {
21937 return _wrap_Solver_WeightedMinimize__SWIG_0(self, args);
21938 }
21939 }
21940 }
21941 }
21942 }
21943 if (argc == 4) {
21944 int _v;
21945 void *vptr = 0;
21946 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
21947 _v = SWIG_CheckState(res);
21948 if (_v) {
21949 {
21950 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
21951 _v = 0;
21952 } else {
21953 const bool is_tuple = PyTuple_Check(argv[1]);
21954 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
21955 size_t i = 0;
21956 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
21957 :PyList_GetItem(argv[1], i))) {
21958 ++i;
21959 }
21960 _v = i == size;
21961 }
21962 }
21963 if (_v) {
21964 {
21965 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
21966 _v = 0;
21967 } else {
21968 const bool is_tuple = PyTuple_Check(argv[2]);
21969 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
21970 size_t i = 0;
21971 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
21972 :PyList_GetItem(argv[2], i))) {
21973 ++i;
21974 }
21975 _v = i == size;
21976 }
21977 }
21978 if (_v) {
21979 {
21980 int res = SWIG_AsVal_long(argv[3], NULL);
21981 _v = SWIG_CheckState(res);
21982 }
21983 if (_v) {
21984 return _wrap_Solver_WeightedMinimize__SWIG_1(self, args);
21985 }
21986 }
21987 }
21988 }
21989 }
21990
21991fail:
21992 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_WeightedMinimize'.\n"
21993 " Possible C/C++ prototypes are:\n"
21994 " operations_research::Solver::MakeWeightedMinimize(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,int64_t)\n"
21995 " operations_research::Solver::MakeWeightedMinimize(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,int64_t)\n");
21996 return 0;
21997}
21998
21999
22000SWIGINTERN PyObject *_wrap_Solver_WeightedMaximize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22001 PyObject *resultobj = 0;
22003 std::vector< operations_research::IntVar * > *arg2 = 0 ;
22004 std::vector< int64_t > *arg3 = 0 ;
22005 int64_t arg4 ;
22006 void *argp1 = 0 ;
22007 int res1 = 0 ;
22008 std::vector< operations_research::IntVar * > temp2 ;
22009 std::vector< int64_t > temp3 ;
22010 long val4 ;
22011 int ecode4 = 0 ;
22012 PyObject * obj0 = 0 ;
22013 PyObject * obj1 = 0 ;
22014 PyObject * obj2 = 0 ;
22015 PyObject * obj3 = 0 ;
22017
22018 if (!PyArg_UnpackTuple(args, "Solver_WeightedMaximize", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
22019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
22020 if (!SWIG_IsOK(res1)) {
22021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_WeightedMaximize" "', argument " "1"" of type '" "operations_research::Solver *""'");
22022 }
22023 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22024 {
22025 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
22026 if (!PyErr_Occurred())
22027 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
22028 return NULL;
22029 }
22030 arg2 = &temp2;
22031 }
22032 {
22033 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
22034 if (!PyErr_Occurred())
22035 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
22036 return NULL;
22037 }
22038 arg3 = &temp3;
22039 }
22040 ecode4 = SWIG_AsVal_long(obj3, &val4);
22041 if (!SWIG_IsOK(ecode4)) {
22042 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_WeightedMaximize" "', argument " "4"" of type '" "int64_t""'");
22043 }
22044 arg4 = static_cast< int64_t >(val4);
22045 {
22046 try {
22047 result = (operations_research::OptimizeVar *)(arg1)->MakeWeightedMaximize((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int64_t > const &)*arg3,arg4);
22048 }
22049 catch (Swig::DirectorException &e) {
22050 SWIG_fail;
22051 }
22052 }
22054 return resultobj;
22055fail:
22056 return NULL;
22057}
22058
22059
22060SWIGINTERN PyObject *_wrap_Solver_WeightedMaximize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22061 PyObject *resultobj = 0;
22063 std::vector< operations_research::IntVar * > *arg2 = 0 ;
22064 std::vector< int > *arg3 = 0 ;
22065 int64_t arg4 ;
22066 void *argp1 = 0 ;
22067 int res1 = 0 ;
22068 std::vector< operations_research::IntVar * > temp2 ;
22069 std::vector< int > temp3 ;
22070 long val4 ;
22071 int ecode4 = 0 ;
22072 PyObject * obj0 = 0 ;
22073 PyObject * obj1 = 0 ;
22074 PyObject * obj2 = 0 ;
22075 PyObject * obj3 = 0 ;
22077
22078 if (!PyArg_UnpackTuple(args, "Solver_WeightedMaximize", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
22079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
22080 if (!SWIG_IsOK(res1)) {
22081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_WeightedMaximize" "', argument " "1"" of type '" "operations_research::Solver *""'");
22082 }
22083 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22084 {
22085 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
22086 if (!PyErr_Occurred())
22087 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
22088 return NULL;
22089 }
22090 arg2 = &temp2;
22091 }
22092 {
22093 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
22094 if (!PyErr_Occurred())
22095 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
22096 return NULL;
22097 }
22098 arg3 = &temp3;
22099 }
22100 ecode4 = SWIG_AsVal_long(obj3, &val4);
22101 if (!SWIG_IsOK(ecode4)) {
22102 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_WeightedMaximize" "', argument " "4"" of type '" "int64_t""'");
22103 }
22104 arg4 = static_cast< int64_t >(val4);
22105 {
22106 try {
22107 result = (operations_research::OptimizeVar *)(arg1)->MakeWeightedMaximize((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int > const &)*arg3,arg4);
22108 }
22109 catch (Swig::DirectorException &e) {
22110 SWIG_fail;
22111 }
22112 }
22114 return resultobj;
22115fail:
22116 return NULL;
22117}
22118
22119
22120SWIGINTERN PyObject *_wrap_Solver_WeightedMaximize(PyObject *self, PyObject *args) {
22121 Py_ssize_t argc;
22122 PyObject *argv[5] = {
22123 0
22124 };
22125 Py_ssize_t ii;
22126
22127 if (!PyTuple_Check(args)) SWIG_fail;
22128 argc = PyObject_Length(args);
22129 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
22130 argv[ii] = PyTuple_GET_ITEM(args,ii);
22131 }
22132 if (argc == 4) {
22133 int _v;
22134 void *vptr = 0;
22135 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
22136 _v = SWIG_CheckState(res);
22137 if (_v) {
22138 {
22139 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
22140 _v = 0;
22141 } else {
22142 const bool is_tuple = PyTuple_Check(argv[1]);
22143 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
22144 size_t i = 0;
22145 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
22146 :PyList_GetItem(argv[1], i))) {
22147 ++i;
22148 }
22149 _v = i == size;
22150 }
22151 }
22152 if (_v) {
22153 {
22154 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
22155 _v = 0;
22156 } else {
22157 const bool is_tuple = PyTuple_Check(argv[2]);
22158 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
22159 size_t i = 0;
22160 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
22161 :PyList_GetItem(argv[2], i))) {
22162 ++i;
22163 }
22164 _v = i == size;
22165 }
22166 }
22167 if (_v) {
22168 {
22169 int res = SWIG_AsVal_long(argv[3], NULL);
22170 _v = SWIG_CheckState(res);
22171 }
22172 if (_v) {
22173 return _wrap_Solver_WeightedMaximize__SWIG_0(self, args);
22174 }
22175 }
22176 }
22177 }
22178 }
22179 if (argc == 4) {
22180 int _v;
22181 void *vptr = 0;
22182 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
22183 _v = SWIG_CheckState(res);
22184 if (_v) {
22185 {
22186 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
22187 _v = 0;
22188 } else {
22189 const bool is_tuple = PyTuple_Check(argv[1]);
22190 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
22191 size_t i = 0;
22192 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
22193 :PyList_GetItem(argv[1], i))) {
22194 ++i;
22195 }
22196 _v = i == size;
22197 }
22198 }
22199 if (_v) {
22200 {
22201 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
22202 _v = 0;
22203 } else {
22204 const bool is_tuple = PyTuple_Check(argv[2]);
22205 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
22206 size_t i = 0;
22207 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
22208 :PyList_GetItem(argv[2], i))) {
22209 ++i;
22210 }
22211 _v = i == size;
22212 }
22213 }
22214 if (_v) {
22215 {
22216 int res = SWIG_AsVal_long(argv[3], NULL);
22217 _v = SWIG_CheckState(res);
22218 }
22219 if (_v) {
22220 return _wrap_Solver_WeightedMaximize__SWIG_1(self, args);
22221 }
22222 }
22223 }
22224 }
22225 }
22226
22227fail:
22228 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_WeightedMaximize'.\n"
22229 " Possible C/C++ prototypes are:\n"
22230 " operations_research::Solver::MakeWeightedMaximize(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,int64_t)\n"
22231 " operations_research::Solver::MakeWeightedMaximize(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,int64_t)\n");
22232 return 0;
22233}
22234
22235
22236SWIGINTERN PyObject *_wrap_Solver_WeightedOptimize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22237 PyObject *resultobj = 0;
22239 bool arg2 ;
22240 std::vector< operations_research::IntVar * > *arg3 = 0 ;
22241 std::vector< int64_t > *arg4 = 0 ;
22242 int64_t arg5 ;
22243 void *argp1 = 0 ;
22244 int res1 = 0 ;
22245 bool val2 ;
22246 int ecode2 = 0 ;
22247 std::vector< operations_research::IntVar * > temp3 ;
22248 std::vector< int64_t > temp4 ;
22249 long val5 ;
22250 int ecode5 = 0 ;
22251 PyObject * obj0 = 0 ;
22252 PyObject * obj1 = 0 ;
22253 PyObject * obj2 = 0 ;
22254 PyObject * obj3 = 0 ;
22255 PyObject * obj4 = 0 ;
22257
22258 if (!PyArg_UnpackTuple(args, "Solver_WeightedOptimize", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
22259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
22260 if (!SWIG_IsOK(res1)) {
22261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_WeightedOptimize" "', argument " "1"" of type '" "operations_research::Solver *""'");
22262 }
22263 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22264 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22265 if (!SWIG_IsOK(ecode2)) {
22266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_WeightedOptimize" "', argument " "2"" of type '" "bool""'");
22267 }
22268 arg2 = static_cast< bool >(val2);
22269 {
22270 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
22271 if (!PyErr_Occurred())
22272 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
22273 return NULL;
22274 }
22275 arg3 = &temp3;
22276 }
22277 {
22278 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
22279 if (!PyErr_Occurred())
22280 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
22281 return NULL;
22282 }
22283 arg4 = &temp4;
22284 }
22285 ecode5 = SWIG_AsVal_long(obj4, &val5);
22286 if (!SWIG_IsOK(ecode5)) {
22287 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_WeightedOptimize" "', argument " "5"" of type '" "int64_t""'");
22288 }
22289 arg5 = static_cast< int64_t >(val5);
22290 {
22291 try {
22292 result = (operations_research::OptimizeVar *)(arg1)->MakeWeightedOptimize(arg2,(std::vector< operations_research::IntVar * > const &)*arg3,(std::vector< int64_t > const &)*arg4,arg5);
22293 }
22294 catch (Swig::DirectorException &e) {
22295 SWIG_fail;
22296 }
22297 }
22299 return resultobj;
22300fail:
22301 return NULL;
22302}
22303
22304
22305SWIGINTERN PyObject *_wrap_Solver_WeightedOptimize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22306 PyObject *resultobj = 0;
22308 bool arg2 ;
22309 std::vector< operations_research::IntVar * > *arg3 = 0 ;
22310 std::vector< int > *arg4 = 0 ;
22311 int64_t arg5 ;
22312 void *argp1 = 0 ;
22313 int res1 = 0 ;
22314 bool val2 ;
22315 int ecode2 = 0 ;
22316 std::vector< operations_research::IntVar * > temp3 ;
22317 std::vector< int > temp4 ;
22318 long val5 ;
22319 int ecode5 = 0 ;
22320 PyObject * obj0 = 0 ;
22321 PyObject * obj1 = 0 ;
22322 PyObject * obj2 = 0 ;
22323 PyObject * obj3 = 0 ;
22324 PyObject * obj4 = 0 ;
22326
22327 if (!PyArg_UnpackTuple(args, "Solver_WeightedOptimize", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
22328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
22329 if (!SWIG_IsOK(res1)) {
22330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_WeightedOptimize" "', argument " "1"" of type '" "operations_research::Solver *""'");
22331 }
22332 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22333 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22334 if (!SWIG_IsOK(ecode2)) {
22335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_WeightedOptimize" "', argument " "2"" of type '" "bool""'");
22336 }
22337 arg2 = static_cast< bool >(val2);
22338 {
22339 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
22340 if (!PyErr_Occurred())
22341 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
22342 return NULL;
22343 }
22344 arg3 = &temp3;
22345 }
22346 {
22347 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
22348 if (!PyErr_Occurred())
22349 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
22350 return NULL;
22351 }
22352 arg4 = &temp4;
22353 }
22354 ecode5 = SWIG_AsVal_long(obj4, &val5);
22355 if (!SWIG_IsOK(ecode5)) {
22356 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_WeightedOptimize" "', argument " "5"" of type '" "int64_t""'");
22357 }
22358 arg5 = static_cast< int64_t >(val5);
22359 {
22360 try {
22361 result = (operations_research::OptimizeVar *)(arg1)->MakeWeightedOptimize(arg2,(std::vector< operations_research::IntVar * > const &)*arg3,(std::vector< int > const &)*arg4,arg5);
22362 }
22363 catch (Swig::DirectorException &e) {
22364 SWIG_fail;
22365 }
22366 }
22368 return resultobj;
22369fail:
22370 return NULL;
22371}
22372
22373
22374SWIGINTERN PyObject *_wrap_Solver_WeightedOptimize(PyObject *self, PyObject *args) {
22375 Py_ssize_t argc;
22376 PyObject *argv[6] = {
22377 0
22378 };
22379 Py_ssize_t ii;
22380
22381 if (!PyTuple_Check(args)) SWIG_fail;
22382 argc = PyObject_Length(args);
22383 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
22384 argv[ii] = PyTuple_GET_ITEM(args,ii);
22385 }
22386 if (argc == 5) {
22387 int _v;
22388 void *vptr = 0;
22389 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
22390 _v = SWIG_CheckState(res);
22391 if (_v) {
22392 {
22393 int res = SWIG_AsVal_bool(argv[1], NULL);
22394 _v = SWIG_CheckState(res);
22395 }
22396 if (_v) {
22397 {
22398 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
22399 _v = 0;
22400 } else {
22401 const bool is_tuple = PyTuple_Check(argv[2]);
22402 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
22403 size_t i = 0;
22404 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[2], i)
22405 :PyList_GetItem(argv[2], i))) {
22406 ++i;
22407 }
22408 _v = i == size;
22409 }
22410 }
22411 if (_v) {
22412 {
22413 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
22414 _v = 0;
22415 } else {
22416 const bool is_tuple = PyTuple_Check(argv[3]);
22417 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
22418 size_t i = 0;
22419 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
22420 :PyList_GetItem(argv[3], i))) {
22421 ++i;
22422 }
22423 _v = i == size;
22424 }
22425 }
22426 if (_v) {
22427 {
22428 int res = SWIG_AsVal_long(argv[4], NULL);
22429 _v = SWIG_CheckState(res);
22430 }
22431 if (_v) {
22432 return _wrap_Solver_WeightedOptimize__SWIG_0(self, args);
22433 }
22434 }
22435 }
22436 }
22437 }
22438 }
22439 if (argc == 5) {
22440 int _v;
22441 void *vptr = 0;
22442 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
22443 _v = SWIG_CheckState(res);
22444 if (_v) {
22445 {
22446 int res = SWIG_AsVal_bool(argv[1], NULL);
22447 _v = SWIG_CheckState(res);
22448 }
22449 if (_v) {
22450 {
22451 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
22452 _v = 0;
22453 } else {
22454 const bool is_tuple = PyTuple_Check(argv[2]);
22455 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
22456 size_t i = 0;
22457 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[2], i)
22458 :PyList_GetItem(argv[2], i))) {
22459 ++i;
22460 }
22461 _v = i == size;
22462 }
22463 }
22464 if (_v) {
22465 {
22466 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
22467 _v = 0;
22468 } else {
22469 const bool is_tuple = PyTuple_Check(argv[3]);
22470 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
22471 size_t i = 0;
22472 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
22473 :PyList_GetItem(argv[3], i))) {
22474 ++i;
22475 }
22476 _v = i == size;
22477 }
22478 }
22479 if (_v) {
22480 {
22481 int res = SWIG_AsVal_long(argv[4], NULL);
22482 _v = SWIG_CheckState(res);
22483 }
22484 if (_v) {
22485 return _wrap_Solver_WeightedOptimize__SWIG_1(self, args);
22486 }
22487 }
22488 }
22489 }
22490 }
22491 }
22492
22493fail:
22494 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_WeightedOptimize'.\n"
22495 " Possible C/C++ prototypes are:\n"
22496 " operations_research::Solver::MakeWeightedOptimize(bool,std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,int64_t)\n"
22497 " operations_research::Solver::MakeWeightedOptimize(bool,std::vector< operations_research::IntVar * > const &,std::vector< int > const &,int64_t)\n");
22498 return 0;
22499}
22500
22501
22502SWIGINTERN PyObject *_wrap_Solver_TabuSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22503 PyObject *resultobj = 0;
22505 bool arg2 ;
22507 int64_t arg4 ;
22508 std::vector< operations_research::IntVar * > *arg5 = 0 ;
22509 int64_t arg6 ;
22510 int64_t arg7 ;
22511 double arg8 ;
22512 void *argp1 = 0 ;
22513 int res1 = 0 ;
22514 bool val2 ;
22515 int ecode2 = 0 ;
22516 long val4 ;
22517 int ecode4 = 0 ;
22518 std::vector< operations_research::IntVar * > temp5 ;
22519 long val6 ;
22520 int ecode6 = 0 ;
22521 long val7 ;
22522 int ecode7 = 0 ;
22523 double val8 ;
22524 int ecode8 = 0 ;
22525 PyObject * obj0 = 0 ;
22526 PyObject * obj1 = 0 ;
22527 PyObject * obj2 = 0 ;
22528 PyObject * obj3 = 0 ;
22529 PyObject * obj4 = 0 ;
22530 PyObject * obj5 = 0 ;
22531 PyObject * obj6 = 0 ;
22532 PyObject * obj7 = 0 ;
22534
22535 if (!PyArg_UnpackTuple(args, "Solver_TabuSearch", 8, 8, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7)) SWIG_fail;
22536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
22537 if (!SWIG_IsOK(res1)) {
22538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_TabuSearch" "', argument " "1"" of type '" "operations_research::Solver *""'");
22539 }
22540 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22541 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22542 if (!SWIG_IsOK(ecode2)) {
22543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_TabuSearch" "', argument " "2"" of type '" "bool""'");
22544 }
22545 arg2 = static_cast< bool >(val2);
22546 {
22547 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
22548 }
22549 ecode4 = SWIG_AsVal_long(obj3, &val4);
22550 if (!SWIG_IsOK(ecode4)) {
22551 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_TabuSearch" "', argument " "4"" of type '" "int64_t""'");
22552 }
22553 arg4 = static_cast< int64_t >(val4);
22554 {
22555 if (!vector_input_helper(obj4, &temp5, PyObjAs<operations_research::IntVar*>)) {
22556 if (!PyErr_Occurred())
22557 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
22558 return NULL;
22559 }
22560 arg5 = &temp5;
22561 }
22562 ecode6 = SWIG_AsVal_long(obj5, &val6);
22563 if (!SWIG_IsOK(ecode6)) {
22564 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Solver_TabuSearch" "', argument " "6"" of type '" "int64_t""'");
22565 }
22566 arg6 = static_cast< int64_t >(val6);
22567 ecode7 = SWIG_AsVal_long(obj6, &val7);
22568 if (!SWIG_IsOK(ecode7)) {
22569 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Solver_TabuSearch" "', argument " "7"" of type '" "int64_t""'");
22570 }
22571 arg7 = static_cast< int64_t >(val7);
22572 ecode8 = SWIG_AsVal_double(obj7, &val8);
22573 if (!SWIG_IsOK(ecode8)) {
22574 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Solver_TabuSearch" "', argument " "8"" of type '" "double""'");
22575 }
22576 arg8 = static_cast< double >(val8);
22577 {
22578 try {
22579 result = (operations_research::SearchMonitor *)(arg1)->MakeTabuSearch(arg2,arg3,arg4,(std::vector< operations_research::IntVar * > const &)*arg5,arg6,arg7,arg8);
22580 }
22581 catch (Swig::DirectorException &e) {
22582 SWIG_fail;
22583 }
22584 }
22586 return resultobj;
22587fail:
22588 return NULL;
22589}
22590
22591
22592SWIGINTERN PyObject *_wrap_Solver_SimulatedAnnealing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22593 PyObject *resultobj = 0;
22595 bool arg2 ;
22597 int64_t arg4 ;
22598 int64_t arg5 ;
22599 void *argp1 = 0 ;
22600 int res1 = 0 ;
22601 bool val2 ;
22602 int ecode2 = 0 ;
22603 long val4 ;
22604 int ecode4 = 0 ;
22605 long val5 ;
22606 int ecode5 = 0 ;
22607 PyObject * obj0 = 0 ;
22608 PyObject * obj1 = 0 ;
22609 PyObject * obj2 = 0 ;
22610 PyObject * obj3 = 0 ;
22611 PyObject * obj4 = 0 ;
22613
22614 if (!PyArg_UnpackTuple(args, "Solver_SimulatedAnnealing", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
22615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
22616 if (!SWIG_IsOK(res1)) {
22617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SimulatedAnnealing" "', argument " "1"" of type '" "operations_research::Solver *""'");
22618 }
22619 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22620 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22621 if (!SWIG_IsOK(ecode2)) {
22622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_SimulatedAnnealing" "', argument " "2"" of type '" "bool""'");
22623 }
22624 arg2 = static_cast< bool >(val2);
22625 {
22626 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
22627 }
22628 ecode4 = SWIG_AsVal_long(obj3, &val4);
22629 if (!SWIG_IsOK(ecode4)) {
22630 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_SimulatedAnnealing" "', argument " "4"" of type '" "int64_t""'");
22631 }
22632 arg4 = static_cast< int64_t >(val4);
22633 ecode5 = SWIG_AsVal_long(obj4, &val5);
22634 if (!SWIG_IsOK(ecode5)) {
22635 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_SimulatedAnnealing" "', argument " "5"" of type '" "int64_t""'");
22636 }
22637 arg5 = static_cast< int64_t >(val5);
22638 {
22639 try {
22640 result = (operations_research::SearchMonitor *)(arg1)->MakeSimulatedAnnealing(arg2,arg3,arg4,arg5);
22641 }
22642 catch (Swig::DirectorException &e) {
22643 SWIG_fail;
22644 }
22645 }
22647 return resultobj;
22648fail:
22649 return NULL;
22650}
22651
22652
22653SWIGINTERN PyObject *_wrap_Solver_GuidedLocalSearch__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22654 PyObject *resultobj = 0;
22656 bool arg2 ;
22659 int64_t arg5 ;
22660 std::vector< operations_research::IntVar * > *arg6 = 0 ;
22661 double arg7 ;
22662 void *argp1 = 0 ;
22663 int res1 = 0 ;
22664 bool val2 ;
22665 int ecode2 = 0 ;
22666 long val5 ;
22667 int ecode5 = 0 ;
22668 std::vector< operations_research::IntVar * > temp6 ;
22669 double val7 ;
22670 int ecode7 = 0 ;
22671 PyObject * obj0 = 0 ;
22672 PyObject * obj1 = 0 ;
22673 PyObject * obj2 = 0 ;
22674 PyObject * obj3 = 0 ;
22675 PyObject * obj4 = 0 ;
22676 PyObject * obj5 = 0 ;
22677 PyObject * obj6 = 0 ;
22679
22680 if (!PyArg_UnpackTuple(args, "Solver_GuidedLocalSearch", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6)) SWIG_fail;
22681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
22682 if (!SWIG_IsOK(res1)) {
22683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_GuidedLocalSearch" "', argument " "1"" of type '" "operations_research::Solver *""'");
22684 }
22685 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22686 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22687 if (!SWIG_IsOK(ecode2)) {
22688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_GuidedLocalSearch" "', argument " "2"" of type '" "bool""'");
22689 }
22690 arg2 = static_cast< bool >(val2);
22691 {
22692 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
22693 }
22694 {
22695 SharedPyPtr input(obj3);
22696 arg4 = [input](int64_t i, int64_t j) {
22697 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
22698 };
22699 }
22700 ecode5 = SWIG_AsVal_long(obj4, &val5);
22701 if (!SWIG_IsOK(ecode5)) {
22702 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_GuidedLocalSearch" "', argument " "5"" of type '" "int64_t""'");
22703 }
22704 arg5 = static_cast< int64_t >(val5);
22705 {
22706 if (!vector_input_helper(obj5, &temp6, PyObjAs<operations_research::IntVar*>)) {
22707 if (!PyErr_Occurred())
22708 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
22709 return NULL;
22710 }
22711 arg6 = &temp6;
22712 }
22713 ecode7 = SWIG_AsVal_double(obj6, &val7);
22714 if (!SWIG_IsOK(ecode7)) {
22715 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Solver_GuidedLocalSearch" "', argument " "7"" of type '" "double""'");
22716 }
22717 arg7 = static_cast< double >(val7);
22718 {
22719 try {
22720 result = (operations_research::SearchMonitor *)(arg1)->MakeGuidedLocalSearch(arg2,arg3,arg4,arg5,(std::vector< operations_research::IntVar * > const &)*arg6,arg7);
22721 }
22722 catch (Swig::DirectorException &e) {
22723 SWIG_fail;
22724 }
22725 }
22727 return resultobj;
22728fail:
22729 return NULL;
22730}
22731
22732
22733SWIGINTERN PyObject *_wrap_Solver_GuidedLocalSearch__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22734 PyObject *resultobj = 0;
22736 bool arg2 ;
22739 int64_t arg5 ;
22740 std::vector< operations_research::IntVar * > *arg6 = 0 ;
22741 std::vector< operations_research::IntVar * > *arg7 = 0 ;
22742 double arg8 ;
22743 void *argp1 = 0 ;
22744 int res1 = 0 ;
22745 bool val2 ;
22746 int ecode2 = 0 ;
22747 long val5 ;
22748 int ecode5 = 0 ;
22749 std::vector< operations_research::IntVar * > temp6 ;
22750 std::vector< operations_research::IntVar * > temp7 ;
22751 double val8 ;
22752 int ecode8 = 0 ;
22753 PyObject * obj0 = 0 ;
22754 PyObject * obj1 = 0 ;
22755 PyObject * obj2 = 0 ;
22756 PyObject * obj3 = 0 ;
22757 PyObject * obj4 = 0 ;
22758 PyObject * obj5 = 0 ;
22759 PyObject * obj6 = 0 ;
22760 PyObject * obj7 = 0 ;
22762
22763 if (!PyArg_UnpackTuple(args, "Solver_GuidedLocalSearch", 8, 8, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7)) SWIG_fail;
22764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
22765 if (!SWIG_IsOK(res1)) {
22766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_GuidedLocalSearch" "', argument " "1"" of type '" "operations_research::Solver *""'");
22767 }
22768 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22769 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22770 if (!SWIG_IsOK(ecode2)) {
22771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_GuidedLocalSearch" "', argument " "2"" of type '" "bool""'");
22772 }
22773 arg2 = static_cast< bool >(val2);
22774 {
22775 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
22776 }
22777 {
22778 SharedPyPtr input(obj3);
22779 arg4 = [input](int64_t i, int64_t j, int64_t k) {
22780 return InvokePythonCallableReturning<int64_t>(input.get(), "LLL", i, j, k);
22781 };
22782 }
22783 ecode5 = SWIG_AsVal_long(obj4, &val5);
22784 if (!SWIG_IsOK(ecode5)) {
22785 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_GuidedLocalSearch" "', argument " "5"" of type '" "int64_t""'");
22786 }
22787 arg5 = static_cast< int64_t >(val5);
22788 {
22789 if (!vector_input_helper(obj5, &temp6, PyObjAs<operations_research::IntVar*>)) {
22790 if (!PyErr_Occurred())
22791 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
22792 return NULL;
22793 }
22794 arg6 = &temp6;
22795 }
22796 {
22797 if (!vector_input_helper(obj6, &temp7, PyObjAs<operations_research::IntVar*>)) {
22798 if (!PyErr_Occurred())
22799 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
22800 return NULL;
22801 }
22802 arg7 = &temp7;
22803 }
22804 ecode8 = SWIG_AsVal_double(obj7, &val8);
22805 if (!SWIG_IsOK(ecode8)) {
22806 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Solver_GuidedLocalSearch" "', argument " "8"" of type '" "double""'");
22807 }
22808 arg8 = static_cast< double >(val8);
22809 {
22810 try {
22811 result = (operations_research::SearchMonitor *)(arg1)->MakeGuidedLocalSearch(arg2,arg3,arg4,arg5,(std::vector< operations_research::IntVar * > const &)*arg6,(std::vector< operations_research::IntVar * > const &)*arg7,arg8);
22812 }
22813 catch (Swig::DirectorException &e) {
22814 SWIG_fail;
22815 }
22816 }
22818 return resultobj;
22819fail:
22820 return NULL;
22821}
22822
22823
22824SWIGINTERN PyObject *_wrap_Solver_LubyRestart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22825 PyObject *resultobj = 0;
22827 int arg2 ;
22828 void *argp1 = 0 ;
22829 int res1 = 0 ;
22830 int val2 ;
22831 int ecode2 = 0 ;
22832 PyObject * obj0 = 0 ;
22833 PyObject * obj1 = 0 ;
22835
22836 if (!PyArg_UnpackTuple(args, "Solver_LubyRestart", 2, 2, &obj0, &obj1)) SWIG_fail;
22837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
22838 if (!SWIG_IsOK(res1)) {
22839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_LubyRestart" "', argument " "1"" of type '" "operations_research::Solver *""'");
22840 }
22841 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22842 ecode2 = SWIG_AsVal_int(obj1, &val2);
22843 if (!SWIG_IsOK(ecode2)) {
22844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_LubyRestart" "', argument " "2"" of type '" "int""'");
22845 }
22846 arg2 = static_cast< int >(val2);
22847 {
22848 try {
22849 result = (operations_research::SearchMonitor *)(arg1)->MakeLubyRestart(arg2);
22850 }
22851 catch (Swig::DirectorException &e) {
22852 SWIG_fail;
22853 }
22854 }
22856 return resultobj;
22857fail:
22858 return NULL;
22859}
22860
22861
22862SWIGINTERN PyObject *_wrap_Solver_ConstantRestart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22863 PyObject *resultobj = 0;
22865 int arg2 ;
22866 void *argp1 = 0 ;
22867 int res1 = 0 ;
22868 int val2 ;
22869 int ecode2 = 0 ;
22870 PyObject * obj0 = 0 ;
22871 PyObject * obj1 = 0 ;
22873
22874 if (!PyArg_UnpackTuple(args, "Solver_ConstantRestart", 2, 2, &obj0, &obj1)) SWIG_fail;
22875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
22876 if (!SWIG_IsOK(res1)) {
22877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ConstantRestart" "', argument " "1"" of type '" "operations_research::Solver *""'");
22878 }
22879 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22880 ecode2 = SWIG_AsVal_int(obj1, &val2);
22881 if (!SWIG_IsOK(ecode2)) {
22882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_ConstantRestart" "', argument " "2"" of type '" "int""'");
22883 }
22884 arg2 = static_cast< int >(val2);
22885 {
22886 try {
22887 result = (operations_research::SearchMonitor *)(arg1)->MakeConstantRestart(arg2);
22888 }
22889 catch (Swig::DirectorException &e) {
22890 SWIG_fail;
22891 }
22892 }
22894 return resultobj;
22895fail:
22896 return NULL;
22897}
22898
22899
22900SWIGINTERN PyObject *_wrap_Solver_TimeLimit__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22901 PyObject *resultobj = 0;
22903 absl::Duration arg2 ;
22904 void *argp1 = 0 ;
22905 int res1 = 0 ;
22906 void *argp2 ;
22907 int res2 = 0 ;
22908 PyObject * obj0 = 0 ;
22909 PyObject * obj1 = 0 ;
22911
22912 if (!PyArg_UnpackTuple(args, "Solver_TimeLimit", 2, 2, &obj0, &obj1)) SWIG_fail;
22913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
22914 if (!SWIG_IsOK(res1)) {
22915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_TimeLimit" "', argument " "1"" of type '" "operations_research::Solver *""'");
22916 }
22917 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22918 {
22919 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_absl__Duration, 0 | 0);
22920 if (!SWIG_IsOK(res2)) {
22921 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_TimeLimit" "', argument " "2"" of type '" "absl::Duration""'");
22922 }
22923 if (!argp2) {
22924 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_TimeLimit" "', argument " "2"" of type '" "absl::Duration""'");
22925 } else {
22926 absl::Duration * temp = reinterpret_cast< absl::Duration * >(argp2);
22927 arg2 = *temp;
22928 if (SWIG_IsNewObj(res2)) delete temp;
22929 }
22930 }
22931 {
22932 try {
22933 result = (operations_research::RegularLimit *)(arg1)->MakeTimeLimit(arg2);
22934 }
22935 catch (Swig::DirectorException &e) {
22936 SWIG_fail;
22937 }
22938 }
22940 return resultobj;
22941fail:
22942 return NULL;
22943}
22944
22945
22946SWIGINTERN PyObject *_wrap_Solver_TimeLimit__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22947 PyObject *resultobj = 0;
22949 int64_t arg2 ;
22950 void *argp1 = 0 ;
22951 int res1 = 0 ;
22952 long val2 ;
22953 int ecode2 = 0 ;
22954 PyObject * obj0 = 0 ;
22955 PyObject * obj1 = 0 ;
22957
22958 if (!PyArg_UnpackTuple(args, "Solver_TimeLimit", 2, 2, &obj0, &obj1)) SWIG_fail;
22959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
22960 if (!SWIG_IsOK(res1)) {
22961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_TimeLimit" "', argument " "1"" of type '" "operations_research::Solver *""'");
22962 }
22963 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22964 ecode2 = SWIG_AsVal_long(obj1, &val2);
22965 if (!SWIG_IsOK(ecode2)) {
22966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_TimeLimit" "', argument " "2"" of type '" "int64_t""'");
22967 }
22968 arg2 = static_cast< int64_t >(val2);
22969 {
22970 try {
22971 result = (operations_research::RegularLimit *)(arg1)->MakeTimeLimit(arg2);
22972 }
22973 catch (Swig::DirectorException &e) {
22974 SWIG_fail;
22975 }
22976 }
22978 return resultobj;
22979fail:
22980 return NULL;
22981}
22982
22983
22984SWIGINTERN PyObject *_wrap_Solver_TimeLimit(PyObject *self, PyObject *args) {
22985 Py_ssize_t argc;
22986 PyObject *argv[3] = {
22987 0
22988 };
22989 Py_ssize_t ii;
22990
22991 if (!PyTuple_Check(args)) SWIG_fail;
22992 argc = PyObject_Length(args);
22993 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
22994 argv[ii] = PyTuple_GET_ITEM(args,ii);
22995 }
22996 if (argc == 2) {
22997 int _v;
22998 void *vptr = 0;
22999 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
23000 _v = SWIG_CheckState(res);
23001 if (_v) {
23003 _v = SWIG_CheckState(res);
23004 if (_v) {
23005 return _wrap_Solver_TimeLimit__SWIG_0(self, args);
23006 }
23007 }
23008 }
23009 if (argc == 2) {
23010 int _v;
23011 void *vptr = 0;
23012 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
23013 _v = SWIG_CheckState(res);
23014 if (_v) {
23015 {
23016 int res = SWIG_AsVal_long(argv[1], NULL);
23017 _v = SWIG_CheckState(res);
23018 }
23019 if (_v) {
23020 return _wrap_Solver_TimeLimit__SWIG_1(self, args);
23021 }
23022 }
23023 }
23024
23025fail:
23026 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_TimeLimit'.\n"
23027 " Possible C/C++ prototypes are:\n"
23028 " operations_research::Solver::MakeTimeLimit(absl::Duration)\n"
23029 " operations_research::Solver::MakeTimeLimit(int64_t)\n");
23030 return 0;
23031}
23032
23033
23034SWIGINTERN PyObject *_wrap_Solver_BranchesLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23035 PyObject *resultobj = 0;
23037 int64_t arg2 ;
23038 void *argp1 = 0 ;
23039 int res1 = 0 ;
23040 long val2 ;
23041 int ecode2 = 0 ;
23042 PyObject * obj0 = 0 ;
23043 PyObject * obj1 = 0 ;
23045
23046 if (!PyArg_UnpackTuple(args, "Solver_BranchesLimit", 2, 2, &obj0, &obj1)) SWIG_fail;
23047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
23048 if (!SWIG_IsOK(res1)) {
23049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_BranchesLimit" "', argument " "1"" of type '" "operations_research::Solver *""'");
23050 }
23051 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23052 ecode2 = SWIG_AsVal_long(obj1, &val2);
23053 if (!SWIG_IsOK(ecode2)) {
23054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_BranchesLimit" "', argument " "2"" of type '" "int64_t""'");
23055 }
23056 arg2 = static_cast< int64_t >(val2);
23057 {
23058 try {
23059 result = (operations_research::RegularLimit *)(arg1)->MakeBranchesLimit(arg2);
23060 }
23061 catch (Swig::DirectorException &e) {
23062 SWIG_fail;
23063 }
23064 }
23066 return resultobj;
23067fail:
23068 return NULL;
23069}
23070
23071
23072SWIGINTERN PyObject *_wrap_Solver_FailuresLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23073 PyObject *resultobj = 0;
23075 int64_t arg2 ;
23076 void *argp1 = 0 ;
23077 int res1 = 0 ;
23078 long val2 ;
23079 int ecode2 = 0 ;
23080 PyObject * obj0 = 0 ;
23081 PyObject * obj1 = 0 ;
23083
23084 if (!PyArg_UnpackTuple(args, "Solver_FailuresLimit", 2, 2, &obj0, &obj1)) SWIG_fail;
23085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
23086 if (!SWIG_IsOK(res1)) {
23087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_FailuresLimit" "', argument " "1"" of type '" "operations_research::Solver *""'");
23088 }
23089 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23090 ecode2 = SWIG_AsVal_long(obj1, &val2);
23091 if (!SWIG_IsOK(ecode2)) {
23092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_FailuresLimit" "', argument " "2"" of type '" "int64_t""'");
23093 }
23094 arg2 = static_cast< int64_t >(val2);
23095 {
23096 try {
23097 result = (operations_research::RegularLimit *)(arg1)->MakeFailuresLimit(arg2);
23098 }
23099 catch (Swig::DirectorException &e) {
23100 SWIG_fail;
23101 }
23102 }
23104 return resultobj;
23105fail:
23106 return NULL;
23107}
23108
23109
23110SWIGINTERN PyObject *_wrap_Solver_SolutionsLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23111 PyObject *resultobj = 0;
23113 int64_t arg2 ;
23114 void *argp1 = 0 ;
23115 int res1 = 0 ;
23116 long val2 ;
23117 int ecode2 = 0 ;
23118 PyObject * obj0 = 0 ;
23119 PyObject * obj1 = 0 ;
23121
23122 if (!PyArg_UnpackTuple(args, "Solver_SolutionsLimit", 2, 2, &obj0, &obj1)) SWIG_fail;
23123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
23124 if (!SWIG_IsOK(res1)) {
23125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SolutionsLimit" "', argument " "1"" of type '" "operations_research::Solver *""'");
23126 }
23127 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23128 ecode2 = SWIG_AsVal_long(obj1, &val2);
23129 if (!SWIG_IsOK(ecode2)) {
23130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_SolutionsLimit" "', argument " "2"" of type '" "int64_t""'");
23131 }
23132 arg2 = static_cast< int64_t >(val2);
23133 {
23134 try {
23135 result = (operations_research::RegularLimit *)(arg1)->MakeSolutionsLimit(arg2);
23136 }
23137 catch (Swig::DirectorException &e) {
23138 SWIG_fail;
23139 }
23140 }
23142 return resultobj;
23143fail:
23144 return NULL;
23145}
23146
23147
23148SWIGINTERN PyObject *_wrap_Solver_Limit__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23149 PyObject *resultobj = 0;
23151 absl::Duration arg2 ;
23152 int64_t arg3 ;
23153 int64_t arg4 ;
23154 int64_t arg5 ;
23155 bool arg6 ;
23156 bool arg7 ;
23157 void *argp1 = 0 ;
23158 int res1 = 0 ;
23159 void *argp2 ;
23160 int res2 = 0 ;
23161 long val3 ;
23162 int ecode3 = 0 ;
23163 long val4 ;
23164 int ecode4 = 0 ;
23165 long val5 ;
23166 int ecode5 = 0 ;
23167 bool val6 ;
23168 int ecode6 = 0 ;
23169 bool val7 ;
23170 int ecode7 = 0 ;
23171 PyObject * obj0 = 0 ;
23172 PyObject * obj1 = 0 ;
23173 PyObject * obj2 = 0 ;
23174 PyObject * obj3 = 0 ;
23175 PyObject * obj4 = 0 ;
23176 PyObject * obj5 = 0 ;
23177 PyObject * obj6 = 0 ;
23179
23180 if (!PyArg_UnpackTuple(args, "Solver_Limit", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6)) SWIG_fail;
23181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
23182 if (!SWIG_IsOK(res1)) {
23183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Limit" "', argument " "1"" of type '" "operations_research::Solver *""'");
23184 }
23185 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23186 {
23187 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_absl__Duration, 0 | 0);
23188 if (!SWIG_IsOK(res2)) {
23189 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_Limit" "', argument " "2"" of type '" "absl::Duration""'");
23190 }
23191 if (!argp2) {
23192 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_Limit" "', argument " "2"" of type '" "absl::Duration""'");
23193 } else {
23194 absl::Duration * temp = reinterpret_cast< absl::Duration * >(argp2);
23195 arg2 = *temp;
23196 if (SWIG_IsNewObj(res2)) delete temp;
23197 }
23198 }
23199 ecode3 = SWIG_AsVal_long(obj2, &val3);
23200 if (!SWIG_IsOK(ecode3)) {
23201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Limit" "', argument " "3"" of type '" "int64_t""'");
23202 }
23203 arg3 = static_cast< int64_t >(val3);
23204 ecode4 = SWIG_AsVal_long(obj3, &val4);
23205 if (!SWIG_IsOK(ecode4)) {
23206 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_Limit" "', argument " "4"" of type '" "int64_t""'");
23207 }
23208 arg4 = static_cast< int64_t >(val4);
23209 ecode5 = SWIG_AsVal_long(obj4, &val5);
23210 if (!SWIG_IsOK(ecode5)) {
23211 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_Limit" "', argument " "5"" of type '" "int64_t""'");
23212 }
23213 arg5 = static_cast< int64_t >(val5);
23214 ecode6 = SWIG_AsVal_bool(obj5, &val6);
23215 if (!SWIG_IsOK(ecode6)) {
23216 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Solver_Limit" "', argument " "6"" of type '" "bool""'");
23217 }
23218 arg6 = static_cast< bool >(val6);
23219 ecode7 = SWIG_AsVal_bool(obj6, &val7);
23220 if (!SWIG_IsOK(ecode7)) {
23221 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Solver_Limit" "', argument " "7"" of type '" "bool""'");
23222 }
23223 arg7 = static_cast< bool >(val7);
23224 {
23225 try {
23226 result = (operations_research::RegularLimit *)(arg1)->MakeLimit(arg2,arg3,arg4,arg5,arg6,arg7);
23227 }
23228 catch (Swig::DirectorException &e) {
23229 SWIG_fail;
23230 }
23231 }
23233 return resultobj;
23234fail:
23235 return NULL;
23236}
23237
23238
23239SWIGINTERN PyObject *_wrap_Solver_Limit__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23240 PyObject *resultobj = 0;
23242 absl::Duration arg2 ;
23243 int64_t arg3 ;
23244 int64_t arg4 ;
23245 int64_t arg5 ;
23246 bool arg6 ;
23247 void *argp1 = 0 ;
23248 int res1 = 0 ;
23249 void *argp2 ;
23250 int res2 = 0 ;
23251 long val3 ;
23252 int ecode3 = 0 ;
23253 long val4 ;
23254 int ecode4 = 0 ;
23255 long val5 ;
23256 int ecode5 = 0 ;
23257 bool val6 ;
23258 int ecode6 = 0 ;
23259 PyObject * obj0 = 0 ;
23260 PyObject * obj1 = 0 ;
23261 PyObject * obj2 = 0 ;
23262 PyObject * obj3 = 0 ;
23263 PyObject * obj4 = 0 ;
23264 PyObject * obj5 = 0 ;
23266
23267 if (!PyArg_UnpackTuple(args, "Solver_Limit", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
23268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
23269 if (!SWIG_IsOK(res1)) {
23270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Limit" "', argument " "1"" of type '" "operations_research::Solver *""'");
23271 }
23272 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23273 {
23274 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_absl__Duration, 0 | 0);
23275 if (!SWIG_IsOK(res2)) {
23276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_Limit" "', argument " "2"" of type '" "absl::Duration""'");
23277 }
23278 if (!argp2) {
23279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_Limit" "', argument " "2"" of type '" "absl::Duration""'");
23280 } else {
23281 absl::Duration * temp = reinterpret_cast< absl::Duration * >(argp2);
23282 arg2 = *temp;
23283 if (SWIG_IsNewObj(res2)) delete temp;
23284 }
23285 }
23286 ecode3 = SWIG_AsVal_long(obj2, &val3);
23287 if (!SWIG_IsOK(ecode3)) {
23288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Limit" "', argument " "3"" of type '" "int64_t""'");
23289 }
23290 arg3 = static_cast< int64_t >(val3);
23291 ecode4 = SWIG_AsVal_long(obj3, &val4);
23292 if (!SWIG_IsOK(ecode4)) {
23293 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_Limit" "', argument " "4"" of type '" "int64_t""'");
23294 }
23295 arg4 = static_cast< int64_t >(val4);
23296 ecode5 = SWIG_AsVal_long(obj4, &val5);
23297 if (!SWIG_IsOK(ecode5)) {
23298 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_Limit" "', argument " "5"" of type '" "int64_t""'");
23299 }
23300 arg5 = static_cast< int64_t >(val5);
23301 ecode6 = SWIG_AsVal_bool(obj5, &val6);
23302 if (!SWIG_IsOK(ecode6)) {
23303 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Solver_Limit" "', argument " "6"" of type '" "bool""'");
23304 }
23305 arg6 = static_cast< bool >(val6);
23306 {
23307 try {
23308 result = (operations_research::RegularLimit *)(arg1)->MakeLimit(arg2,arg3,arg4,arg5,arg6);
23309 }
23310 catch (Swig::DirectorException &e) {
23311 SWIG_fail;
23312 }
23313 }
23315 return resultobj;
23316fail:
23317 return NULL;
23318}
23319
23320
23321SWIGINTERN PyObject *_wrap_Solver_Limit__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23322 PyObject *resultobj = 0;
23324 absl::Duration arg2 ;
23325 int64_t arg3 ;
23326 int64_t arg4 ;
23327 int64_t arg5 ;
23328 void *argp1 = 0 ;
23329 int res1 = 0 ;
23330 void *argp2 ;
23331 int res2 = 0 ;
23332 long val3 ;
23333 int ecode3 = 0 ;
23334 long val4 ;
23335 int ecode4 = 0 ;
23336 long val5 ;
23337 int ecode5 = 0 ;
23338 PyObject * obj0 = 0 ;
23339 PyObject * obj1 = 0 ;
23340 PyObject * obj2 = 0 ;
23341 PyObject * obj3 = 0 ;
23342 PyObject * obj4 = 0 ;
23344
23345 if (!PyArg_UnpackTuple(args, "Solver_Limit", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
23346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
23347 if (!SWIG_IsOK(res1)) {
23348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Limit" "', argument " "1"" of type '" "operations_research::Solver *""'");
23349 }
23350 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23351 {
23352 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_absl__Duration, 0 | 0);
23353 if (!SWIG_IsOK(res2)) {
23354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_Limit" "', argument " "2"" of type '" "absl::Duration""'");
23355 }
23356 if (!argp2) {
23357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_Limit" "', argument " "2"" of type '" "absl::Duration""'");
23358 } else {
23359 absl::Duration * temp = reinterpret_cast< absl::Duration * >(argp2);
23360 arg2 = *temp;
23361 if (SWIG_IsNewObj(res2)) delete temp;
23362 }
23363 }
23364 ecode3 = SWIG_AsVal_long(obj2, &val3);
23365 if (!SWIG_IsOK(ecode3)) {
23366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Limit" "', argument " "3"" of type '" "int64_t""'");
23367 }
23368 arg3 = static_cast< int64_t >(val3);
23369 ecode4 = SWIG_AsVal_long(obj3, &val4);
23370 if (!SWIG_IsOK(ecode4)) {
23371 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_Limit" "', argument " "4"" of type '" "int64_t""'");
23372 }
23373 arg4 = static_cast< int64_t >(val4);
23374 ecode5 = SWIG_AsVal_long(obj4, &val5);
23375 if (!SWIG_IsOK(ecode5)) {
23376 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_Limit" "', argument " "5"" of type '" "int64_t""'");
23377 }
23378 arg5 = static_cast< int64_t >(val5);
23379 {
23380 try {
23381 result = (operations_research::RegularLimit *)(arg1)->MakeLimit(arg2,arg3,arg4,arg5);
23382 }
23383 catch (Swig::DirectorException &e) {
23384 SWIG_fail;
23385 }
23386 }
23388 return resultobj;
23389fail:
23390 return NULL;
23391}
23392
23393
23394SWIGINTERN PyObject *_wrap_Solver_Limit__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23395 PyObject *resultobj = 0;
23398 void *argp1 = 0 ;
23399 int res1 = 0 ;
23400 PyObject * obj0 = 0 ;
23401 PyObject * obj1 = 0 ;
23403
23404 if (!PyArg_UnpackTuple(args, "Solver_Limit", 2, 2, &obj0, &obj1)) SWIG_fail;
23405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
23406 if (!SWIG_IsOK(res1)) {
23407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Limit" "', argument " "1"" of type '" "operations_research::Solver *""'");
23408 }
23409 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23410 {
23412 PyObject* const pyresult = PyObject_CallMethod(
23413 obj1, const_cast<char*>("SerializeToString"), nullptr);
23414 if (pyresult != nullptr) {
23415 char* buffer = nullptr;
23416 Py_ssize_t length = 0;
23417 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
23418 if (buffer != nullptr) {
23419 arg2->ParseFromArray(buffer, length);
23420 }
23421 Py_DECREF(pyresult);
23422 }
23423 }
23424 {
23425 try {
23426 result = (operations_research::RegularLimit *)(arg1)->MakeLimit((operations_research::RegularLimitParameters const &)*arg2);
23427 }
23428 catch (Swig::DirectorException &e) {
23429 SWIG_fail;
23430 }
23431 }
23433 {
23434 delete arg2;
23435 }
23436 return resultobj;
23437fail:
23438 {
23439 delete arg2;
23440 }
23441 return NULL;
23442}
23443
23444
23445SWIGINTERN PyObject *_wrap_Solver_Limit__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23446 PyObject *resultobj = 0;
23448 int64_t arg2 ;
23449 int64_t arg3 ;
23450 int64_t arg4 ;
23451 int64_t arg5 ;
23452 bool arg6 ;
23453 bool arg7 ;
23454 void *argp1 = 0 ;
23455 int res1 = 0 ;
23456 long val2 ;
23457 int ecode2 = 0 ;
23458 long val3 ;
23459 int ecode3 = 0 ;
23460 long val4 ;
23461 int ecode4 = 0 ;
23462 long val5 ;
23463 int ecode5 = 0 ;
23464 bool val6 ;
23465 int ecode6 = 0 ;
23466 bool val7 ;
23467 int ecode7 = 0 ;
23468 PyObject * obj0 = 0 ;
23469 PyObject * obj1 = 0 ;
23470 PyObject * obj2 = 0 ;
23471 PyObject * obj3 = 0 ;
23472 PyObject * obj4 = 0 ;
23473 PyObject * obj5 = 0 ;
23474 PyObject * obj6 = 0 ;
23476
23477 if (!PyArg_UnpackTuple(args, "Solver_Limit", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6)) SWIG_fail;
23478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
23479 if (!SWIG_IsOK(res1)) {
23480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Limit" "', argument " "1"" of type '" "operations_research::Solver *""'");
23481 }
23482 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23483 ecode2 = SWIG_AsVal_long(obj1, &val2);
23484 if (!SWIG_IsOK(ecode2)) {
23485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_Limit" "', argument " "2"" of type '" "int64_t""'");
23486 }
23487 arg2 = static_cast< int64_t >(val2);
23488 ecode3 = SWIG_AsVal_long(obj2, &val3);
23489 if (!SWIG_IsOK(ecode3)) {
23490 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Limit" "', argument " "3"" of type '" "int64_t""'");
23491 }
23492 arg3 = static_cast< int64_t >(val3);
23493 ecode4 = SWIG_AsVal_long(obj3, &val4);
23494 if (!SWIG_IsOK(ecode4)) {
23495 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_Limit" "', argument " "4"" of type '" "int64_t""'");
23496 }
23497 arg4 = static_cast< int64_t >(val4);
23498 ecode5 = SWIG_AsVal_long(obj4, &val5);
23499 if (!SWIG_IsOK(ecode5)) {
23500 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_Limit" "', argument " "5"" of type '" "int64_t""'");
23501 }
23502 arg5 = static_cast< int64_t >(val5);
23503 ecode6 = SWIG_AsVal_bool(obj5, &val6);
23504 if (!SWIG_IsOK(ecode6)) {
23505 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Solver_Limit" "', argument " "6"" of type '" "bool""'");
23506 }
23507 arg6 = static_cast< bool >(val6);
23508 ecode7 = SWIG_AsVal_bool(obj6, &val7);
23509 if (!SWIG_IsOK(ecode7)) {
23510 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Solver_Limit" "', argument " "7"" of type '" "bool""'");
23511 }
23512 arg7 = static_cast< bool >(val7);
23513 {
23514 try {
23515 result = (operations_research::RegularLimit *)(arg1)->MakeLimit(arg2,arg3,arg4,arg5,arg6,arg7);
23516 }
23517 catch (Swig::DirectorException &e) {
23518 SWIG_fail;
23519 }
23520 }
23522 return resultobj;
23523fail:
23524 return NULL;
23525}
23526
23527
23528SWIGINTERN PyObject *_wrap_Solver_Limit__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23529 PyObject *resultobj = 0;
23531 int64_t arg2 ;
23532 int64_t arg3 ;
23533 int64_t arg4 ;
23534 int64_t arg5 ;
23535 bool arg6 ;
23536 void *argp1 = 0 ;
23537 int res1 = 0 ;
23538 long val2 ;
23539 int ecode2 = 0 ;
23540 long val3 ;
23541 int ecode3 = 0 ;
23542 long val4 ;
23543 int ecode4 = 0 ;
23544 long val5 ;
23545 int ecode5 = 0 ;
23546 bool val6 ;
23547 int ecode6 = 0 ;
23548 PyObject * obj0 = 0 ;
23549 PyObject * obj1 = 0 ;
23550 PyObject * obj2 = 0 ;
23551 PyObject * obj3 = 0 ;
23552 PyObject * obj4 = 0 ;
23553 PyObject * obj5 = 0 ;
23555
23556 if (!PyArg_UnpackTuple(args, "Solver_Limit", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
23557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
23558 if (!SWIG_IsOK(res1)) {
23559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Limit" "', argument " "1"" of type '" "operations_research::Solver *""'");
23560 }
23561 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23562 ecode2 = SWIG_AsVal_long(obj1, &val2);
23563 if (!SWIG_IsOK(ecode2)) {
23564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_Limit" "', argument " "2"" of type '" "int64_t""'");
23565 }
23566 arg2 = static_cast< int64_t >(val2);
23567 ecode3 = SWIG_AsVal_long(obj2, &val3);
23568 if (!SWIG_IsOK(ecode3)) {
23569 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Limit" "', argument " "3"" of type '" "int64_t""'");
23570 }
23571 arg3 = static_cast< int64_t >(val3);
23572 ecode4 = SWIG_AsVal_long(obj3, &val4);
23573 if (!SWIG_IsOK(ecode4)) {
23574 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_Limit" "', argument " "4"" of type '" "int64_t""'");
23575 }
23576 arg4 = static_cast< int64_t >(val4);
23577 ecode5 = SWIG_AsVal_long(obj4, &val5);
23578 if (!SWIG_IsOK(ecode5)) {
23579 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_Limit" "', argument " "5"" of type '" "int64_t""'");
23580 }
23581 arg5 = static_cast< int64_t >(val5);
23582 ecode6 = SWIG_AsVal_bool(obj5, &val6);
23583 if (!SWIG_IsOK(ecode6)) {
23584 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Solver_Limit" "', argument " "6"" of type '" "bool""'");
23585 }
23586 arg6 = static_cast< bool >(val6);
23587 {
23588 try {
23589 result = (operations_research::RegularLimit *)(arg1)->MakeLimit(arg2,arg3,arg4,arg5,arg6);
23590 }
23591 catch (Swig::DirectorException &e) {
23592 SWIG_fail;
23593 }
23594 }
23596 return resultobj;
23597fail:
23598 return NULL;
23599}
23600
23601
23602SWIGINTERN PyObject *_wrap_Solver_Limit__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23603 PyObject *resultobj = 0;
23605 int64_t arg2 ;
23606 int64_t arg3 ;
23607 int64_t arg4 ;
23608 int64_t arg5 ;
23609 void *argp1 = 0 ;
23610 int res1 = 0 ;
23611 long val2 ;
23612 int ecode2 = 0 ;
23613 long val3 ;
23614 int ecode3 = 0 ;
23615 long val4 ;
23616 int ecode4 = 0 ;
23617 long val5 ;
23618 int ecode5 = 0 ;
23619 PyObject * obj0 = 0 ;
23620 PyObject * obj1 = 0 ;
23621 PyObject * obj2 = 0 ;
23622 PyObject * obj3 = 0 ;
23623 PyObject * obj4 = 0 ;
23625
23626 if (!PyArg_UnpackTuple(args, "Solver_Limit", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
23627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
23628 if (!SWIG_IsOK(res1)) {
23629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Limit" "', argument " "1"" of type '" "operations_research::Solver *""'");
23630 }
23631 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23632 ecode2 = SWIG_AsVal_long(obj1, &val2);
23633 if (!SWIG_IsOK(ecode2)) {
23634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_Limit" "', argument " "2"" of type '" "int64_t""'");
23635 }
23636 arg2 = static_cast< int64_t >(val2);
23637 ecode3 = SWIG_AsVal_long(obj2, &val3);
23638 if (!SWIG_IsOK(ecode3)) {
23639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Limit" "', argument " "3"" of type '" "int64_t""'");
23640 }
23641 arg3 = static_cast< int64_t >(val3);
23642 ecode4 = SWIG_AsVal_long(obj3, &val4);
23643 if (!SWIG_IsOK(ecode4)) {
23644 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_Limit" "', argument " "4"" of type '" "int64_t""'");
23645 }
23646 arg4 = static_cast< int64_t >(val4);
23647 ecode5 = SWIG_AsVal_long(obj4, &val5);
23648 if (!SWIG_IsOK(ecode5)) {
23649 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_Limit" "', argument " "5"" of type '" "int64_t""'");
23650 }
23651 arg5 = static_cast< int64_t >(val5);
23652 {
23653 try {
23654 result = (operations_research::RegularLimit *)(arg1)->MakeLimit(arg2,arg3,arg4,arg5);
23655 }
23656 catch (Swig::DirectorException &e) {
23657 SWIG_fail;
23658 }
23659 }
23661 return resultobj;
23662fail:
23663 return NULL;
23664}
23665
23666
23667SWIGINTERN PyObject *_wrap_Solver_Limit__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23668 PyObject *resultobj = 0;
23672 void *argp1 = 0 ;
23673 int res1 = 0 ;
23674 void *argp2 = 0 ;
23675 int res2 = 0 ;
23676 void *argp3 = 0 ;
23677 int res3 = 0 ;
23678 PyObject * obj0 = 0 ;
23679 PyObject * obj1 = 0 ;
23680 PyObject * obj2 = 0 ;
23682
23683 if (!PyArg_UnpackTuple(args, "Solver_Limit", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
23684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
23685 if (!SWIG_IsOK(res1)) {
23686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Limit" "', argument " "1"" of type '" "operations_research::Solver *""'");
23687 }
23688 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23690 if (!SWIG_IsOK(res2)) {
23691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_Limit" "', argument " "2"" of type '" "operations_research::SearchLimit *const""'");
23692 }
23693 arg2 = reinterpret_cast< operations_research::SearchLimit * >(argp2);
23695 if (!SWIG_IsOK(res3)) {
23696 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_Limit" "', argument " "3"" of type '" "operations_research::SearchLimit *const""'");
23697 }
23698 arg3 = reinterpret_cast< operations_research::SearchLimit * >(argp3);
23699 {
23700 try {
23701 result = (operations_research::SearchLimit *)(arg1)->MakeLimit(arg2,arg3);
23702 }
23703 catch (Swig::DirectorException &e) {
23704 SWIG_fail;
23705 }
23706 }
23708 return resultobj;
23709fail:
23710 return NULL;
23711}
23712
23713
23714SWIGINTERN PyObject *_wrap_Solver_Limit(PyObject *self, PyObject *args) {
23715 Py_ssize_t argc;
23716 PyObject *argv[8] = {
23717 0
23718 };
23719 Py_ssize_t ii;
23720
23721 if (!PyTuple_Check(args)) SWIG_fail;
23722 argc = PyObject_Length(args);
23723 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
23724 argv[ii] = PyTuple_GET_ITEM(args,ii);
23725 }
23726 if (argc == 2) {
23727 int _v;
23728 void *vptr = 0;
23729 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
23730 _v = SWIG_CheckState(res);
23731 if (_v) {
23732 {
23733 bool ok = false;
23734 PyObject* const module = PyImport_ImportModule("ortools.constraint_solver.search_limit_pb2");
23735 if (module != nullptr) {
23736 PyObject* const dict = PyModule_GetDict(module);
23737 if (dict != nullptr) {
23738 PyObject* const clss = PyDict_GetItemString(dict, "RegularLimitParameters");
23739 if (clss != nullptr) {
23740 if (PyObject_IsInstance(argv[1], clss)) {
23741 ok = true;
23742 }
23743 }
23744 }
23745 Py_DECREF(module);
23746 }
23747 _v = ok ? 1 : 0;
23748 }
23749 if (_v) {
23750 return _wrap_Solver_Limit__SWIG_3(self, args);
23751 }
23752 }
23753 }
23754 if (argc == 3) {
23755 int _v;
23756 void *vptr = 0;
23757 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
23758 _v = SWIG_CheckState(res);
23759 if (_v) {
23760 void *vptr = 0;
23762 _v = SWIG_CheckState(res);
23763 if (_v) {
23764 void *vptr = 0;
23766 _v = SWIG_CheckState(res);
23767 if (_v) {
23768 return _wrap_Solver_Limit__SWIG_7(self, args);
23769 }
23770 }
23771 }
23772 }
23773 if (argc == 5) {
23774 int _v;
23775 void *vptr = 0;
23776 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
23777 _v = SWIG_CheckState(res);
23778 if (_v) {
23780 _v = SWIG_CheckState(res);
23781 if (_v) {
23782 {
23783 int res = SWIG_AsVal_long(argv[2], NULL);
23784 _v = SWIG_CheckState(res);
23785 }
23786 if (_v) {
23787 {
23788 int res = SWIG_AsVal_long(argv[3], NULL);
23789 _v = SWIG_CheckState(res);
23790 }
23791 if (_v) {
23792 {
23793 int res = SWIG_AsVal_long(argv[4], NULL);
23794 _v = SWIG_CheckState(res);
23795 }
23796 if (_v) {
23797 return _wrap_Solver_Limit__SWIG_2(self, args);
23798 }
23799 }
23800 }
23801 }
23802 }
23803 }
23804 if (argc == 5) {
23805 int _v;
23806 void *vptr = 0;
23807 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
23808 _v = SWIG_CheckState(res);
23809 if (_v) {
23810 {
23811 int res = SWIG_AsVal_long(argv[1], NULL);
23812 _v = SWIG_CheckState(res);
23813 }
23814 if (_v) {
23815 {
23816 int res = SWIG_AsVal_long(argv[2], NULL);
23817 _v = SWIG_CheckState(res);
23818 }
23819 if (_v) {
23820 {
23821 int res = SWIG_AsVal_long(argv[3], NULL);
23822 _v = SWIG_CheckState(res);
23823 }
23824 if (_v) {
23825 {
23826 int res = SWIG_AsVal_long(argv[4], NULL);
23827 _v = SWIG_CheckState(res);
23828 }
23829 if (_v) {
23830 return _wrap_Solver_Limit__SWIG_6(self, args);
23831 }
23832 }
23833 }
23834 }
23835 }
23836 }
23837 if (argc == 6) {
23838 int _v;
23839 void *vptr = 0;
23840 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
23841 _v = SWIG_CheckState(res);
23842 if (_v) {
23844 _v = SWIG_CheckState(res);
23845 if (_v) {
23846 {
23847 int res = SWIG_AsVal_long(argv[2], NULL);
23848 _v = SWIG_CheckState(res);
23849 }
23850 if (_v) {
23851 {
23852 int res = SWIG_AsVal_long(argv[3], NULL);
23853 _v = SWIG_CheckState(res);
23854 }
23855 if (_v) {
23856 {
23857 int res = SWIG_AsVal_long(argv[4], NULL);
23858 _v = SWIG_CheckState(res);
23859 }
23860 if (_v) {
23861 {
23862 int res = SWIG_AsVal_bool(argv[5], NULL);
23863 _v = SWIG_CheckState(res);
23864 }
23865 if (_v) {
23866 return _wrap_Solver_Limit__SWIG_1(self, args);
23867 }
23868 }
23869 }
23870 }
23871 }
23872 }
23873 }
23874 if (argc == 6) {
23875 int _v;
23876 void *vptr = 0;
23877 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
23878 _v = SWIG_CheckState(res);
23879 if (_v) {
23880 {
23881 int res = SWIG_AsVal_long(argv[1], NULL);
23882 _v = SWIG_CheckState(res);
23883 }
23884 if (_v) {
23885 {
23886 int res = SWIG_AsVal_long(argv[2], NULL);
23887 _v = SWIG_CheckState(res);
23888 }
23889 if (_v) {
23890 {
23891 int res = SWIG_AsVal_long(argv[3], NULL);
23892 _v = SWIG_CheckState(res);
23893 }
23894 if (_v) {
23895 {
23896 int res = SWIG_AsVal_long(argv[4], NULL);
23897 _v = SWIG_CheckState(res);
23898 }
23899 if (_v) {
23900 {
23901 int res = SWIG_AsVal_bool(argv[5], NULL);
23902 _v = SWIG_CheckState(res);
23903 }
23904 if (_v) {
23905 return _wrap_Solver_Limit__SWIG_5(self, args);
23906 }
23907 }
23908 }
23909 }
23910 }
23911 }
23912 }
23913 if (argc == 7) {
23914 int _v;
23915 void *vptr = 0;
23916 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
23917 _v = SWIG_CheckState(res);
23918 if (_v) {
23920 _v = SWIG_CheckState(res);
23921 if (_v) {
23922 {
23923 int res = SWIG_AsVal_long(argv[2], NULL);
23924 _v = SWIG_CheckState(res);
23925 }
23926 if (_v) {
23927 {
23928 int res = SWIG_AsVal_long(argv[3], NULL);
23929 _v = SWIG_CheckState(res);
23930 }
23931 if (_v) {
23932 {
23933 int res = SWIG_AsVal_long(argv[4], NULL);
23934 _v = SWIG_CheckState(res);
23935 }
23936 if (_v) {
23937 {
23938 int res = SWIG_AsVal_bool(argv[5], NULL);
23939 _v = SWIG_CheckState(res);
23940 }
23941 if (_v) {
23942 {
23943 int res = SWIG_AsVal_bool(argv[6], NULL);
23944 _v = SWIG_CheckState(res);
23945 }
23946 if (_v) {
23947 return _wrap_Solver_Limit__SWIG_0(self, args);
23948 }
23949 }
23950 }
23951 }
23952 }
23953 }
23954 }
23955 }
23956 if (argc == 7) {
23957 int _v;
23958 void *vptr = 0;
23959 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
23960 _v = SWIG_CheckState(res);
23961 if (_v) {
23962 {
23963 int res = SWIG_AsVal_long(argv[1], NULL);
23964 _v = SWIG_CheckState(res);
23965 }
23966 if (_v) {
23967 {
23968 int res = SWIG_AsVal_long(argv[2], NULL);
23969 _v = SWIG_CheckState(res);
23970 }
23971 if (_v) {
23972 {
23973 int res = SWIG_AsVal_long(argv[3], NULL);
23974 _v = SWIG_CheckState(res);
23975 }
23976 if (_v) {
23977 {
23978 int res = SWIG_AsVal_long(argv[4], NULL);
23979 _v = SWIG_CheckState(res);
23980 }
23981 if (_v) {
23982 {
23983 int res = SWIG_AsVal_bool(argv[5], NULL);
23984 _v = SWIG_CheckState(res);
23985 }
23986 if (_v) {
23987 {
23988 int res = SWIG_AsVal_bool(argv[6], NULL);
23989 _v = SWIG_CheckState(res);
23990 }
23991 if (_v) {
23992 return _wrap_Solver_Limit__SWIG_4(self, args);
23993 }
23994 }
23995 }
23996 }
23997 }
23998 }
23999 }
24000 }
24001
24002fail:
24003 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_Limit'.\n"
24004 " Possible C/C++ prototypes are:\n"
24005 " operations_research::Solver::MakeLimit(absl::Duration,int64_t,int64_t,int64_t,bool,bool)\n"
24006 " operations_research::Solver::MakeLimit(absl::Duration,int64_t,int64_t,int64_t,bool)\n"
24007 " operations_research::Solver::MakeLimit(absl::Duration,int64_t,int64_t,int64_t)\n"
24008 " operations_research::Solver::MakeLimit(operations_research::RegularLimitParameters const &)\n"
24009 " operations_research::Solver::MakeLimit(int64_t,int64_t,int64_t,int64_t,bool,bool)\n"
24010 " operations_research::Solver::MakeLimit(int64_t,int64_t,int64_t,int64_t,bool)\n"
24011 " operations_research::Solver::MakeLimit(int64_t,int64_t,int64_t,int64_t)\n"
24012 " operations_research::Solver::MakeLimit(operations_research::SearchLimit *const,operations_research::SearchLimit *const)\n");
24013 return 0;
24014}
24015
24016
24017SWIGINTERN PyObject *_wrap_Solver_CustomLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24018 PyObject *resultobj = 0;
24020 std::function< bool () > arg2 ;
24021 void *argp1 = 0 ;
24022 int res1 = 0 ;
24023 PyObject * obj0 = 0 ;
24024 PyObject * obj1 = 0 ;
24026
24027 if (!PyArg_UnpackTuple(args, "Solver_CustomLimit", 2, 2, &obj0, &obj1)) SWIG_fail;
24028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24029 if (!SWIG_IsOK(res1)) {
24030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_CustomLimit" "', argument " "1"" of type '" "operations_research::Solver *""'");
24031 }
24032 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24033 {
24034 SharedPyPtr input(obj1);
24035 arg2 = [input]() {
24036 return InvokePythonCallableReturning<bool>(input.get());
24037 };
24038 }
24039 {
24040 try {
24041 result = (operations_research::SearchLimit *)(arg1)->MakeCustomLimit(arg2);
24042 }
24043 catch (Swig::DirectorException &e) {
24044 SWIG_fail;
24045 }
24046 }
24048 return resultobj;
24049fail:
24050 return NULL;
24051}
24052
24053
24054SWIGINTERN PyObject *_wrap_Solver_SearchLog__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24055 PyObject *resultobj = 0;
24057 int arg2 ;
24058 void *argp1 = 0 ;
24059 int res1 = 0 ;
24060 int val2 ;
24061 int ecode2 = 0 ;
24062 PyObject * obj0 = 0 ;
24063 PyObject * obj1 = 0 ;
24065
24066 if (!PyArg_UnpackTuple(args, "Solver_SearchLog", 2, 2, &obj0, &obj1)) SWIG_fail;
24067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24068 if (!SWIG_IsOK(res1)) {
24069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SearchLog" "', argument " "1"" of type '" "operations_research::Solver *""'");
24070 }
24071 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24072 ecode2 = SWIG_AsVal_int(obj1, &val2);
24073 if (!SWIG_IsOK(ecode2)) {
24074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_SearchLog" "', argument " "2"" of type '" "int""'");
24075 }
24076 arg2 = static_cast< int >(val2);
24077 {
24078 try {
24079 result = (operations_research::SearchMonitor *)(arg1)->MakeSearchLog(arg2);
24080 }
24081 catch (Swig::DirectorException &e) {
24082 SWIG_fail;
24083 }
24084 }
24086 return resultobj;
24087fail:
24088 return NULL;
24089}
24090
24091
24092SWIGINTERN PyObject *_wrap_Solver_SearchLog__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24093 PyObject *resultobj = 0;
24095 int arg2 ;
24097 void *argp1 = 0 ;
24098 int res1 = 0 ;
24099 int val2 ;
24100 int ecode2 = 0 ;
24101 PyObject * obj0 = 0 ;
24102 PyObject * obj1 = 0 ;
24103 PyObject * obj2 = 0 ;
24105
24106 if (!PyArg_UnpackTuple(args, "Solver_SearchLog", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
24107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24108 if (!SWIG_IsOK(res1)) {
24109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SearchLog" "', argument " "1"" of type '" "operations_research::Solver *""'");
24110 }
24111 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24112 ecode2 = SWIG_AsVal_int(obj1, &val2);
24113 if (!SWIG_IsOK(ecode2)) {
24114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_SearchLog" "', argument " "2"" of type '" "int""'");
24115 }
24116 arg2 = static_cast< int >(val2);
24117 {
24118 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
24119 }
24120 {
24121 try {
24122 result = (operations_research::SearchMonitor *)(arg1)->MakeSearchLog(arg2,arg3);
24123 }
24124 catch (Swig::DirectorException &e) {
24125 SWIG_fail;
24126 }
24127 }
24129 return resultobj;
24130fail:
24131 return NULL;
24132}
24133
24134
24135SWIGINTERN PyObject *_wrap_Solver_SearchLog__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24136 PyObject *resultobj = 0;
24138 int arg2 ;
24139 SwigValueWrapper< std::function< std::string () > > arg3 ;
24140 void *argp1 = 0 ;
24141 int res1 = 0 ;
24142 int val2 ;
24143 int ecode2 = 0 ;
24144 PyObject * obj0 = 0 ;
24145 PyObject * obj1 = 0 ;
24146 PyObject * obj2 = 0 ;
24148
24149 if (!PyArg_UnpackTuple(args, "Solver_SearchLog", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
24150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24151 if (!SWIG_IsOK(res1)) {
24152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SearchLog" "', argument " "1"" of type '" "operations_research::Solver *""'");
24153 }
24154 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24155 ecode2 = SWIG_AsVal_int(obj1, &val2);
24156 if (!SWIG_IsOK(ecode2)) {
24157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_SearchLog" "', argument " "2"" of type '" "int""'");
24158 }
24159 arg2 = static_cast< int >(val2);
24160 {
24161 SharedPyPtr input(obj2);
24162 arg3 = [input]() {
24163 return InvokePythonCallableReturning<std::string>(input.get());
24164 };
24165 }
24166 {
24167 try {
24168 result = (operations_research::SearchMonitor *)(arg1)->MakeSearchLog(arg2,arg3);
24169 }
24170 catch (Swig::DirectorException &e) {
24171 SWIG_fail;
24172 }
24173 }
24175 return resultobj;
24176fail:
24177 return NULL;
24178}
24179
24180
24181SWIGINTERN PyObject *_wrap_Solver_SearchLog__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24182 PyObject *resultobj = 0;
24184 int arg2 ;
24186 SwigValueWrapper< std::function< std::string () > > arg4 ;
24187 void *argp1 = 0 ;
24188 int res1 = 0 ;
24189 int val2 ;
24190 int ecode2 = 0 ;
24191 void *argp3 = 0 ;
24192 int res3 = 0 ;
24193 PyObject * obj0 = 0 ;
24194 PyObject * obj1 = 0 ;
24195 PyObject * obj2 = 0 ;
24196 PyObject * obj3 = 0 ;
24198
24199 if (!PyArg_UnpackTuple(args, "Solver_SearchLog", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
24200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24201 if (!SWIG_IsOK(res1)) {
24202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SearchLog" "', argument " "1"" of type '" "operations_research::Solver *""'");
24203 }
24204 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24205 ecode2 = SWIG_AsVal_int(obj1, &val2);
24206 if (!SWIG_IsOK(ecode2)) {
24207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_SearchLog" "', argument " "2"" of type '" "int""'");
24208 }
24209 arg2 = static_cast< int >(val2);
24210 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
24211 if (!SWIG_IsOK(res3)) {
24212 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_SearchLog" "', argument " "3"" of type '" "operations_research::IntVar *""'");
24213 }
24214 arg3 = reinterpret_cast< operations_research::IntVar * >(argp3);
24215 {
24216 SharedPyPtr input(obj3);
24217 arg4 = [input]() {
24218 return InvokePythonCallableReturning<std::string>(input.get());
24219 };
24220 }
24221 {
24222 try {
24223 result = (operations_research::SearchMonitor *)(arg1)->MakeSearchLog(arg2,arg3,arg4);
24224 }
24225 catch (Swig::DirectorException &e) {
24226 SWIG_fail;
24227 }
24228 }
24230 return resultobj;
24231fail:
24232 return NULL;
24233}
24234
24235
24236SWIGINTERN PyObject *_wrap_Solver_SearchLog__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24237 PyObject *resultobj = 0;
24239 int arg2 ;
24241 void *argp1 = 0 ;
24242 int res1 = 0 ;
24243 int val2 ;
24244 int ecode2 = 0 ;
24245 void *argp3 = 0 ;
24246 int res3 = 0 ;
24247 PyObject * obj0 = 0 ;
24248 PyObject * obj1 = 0 ;
24249 PyObject * obj2 = 0 ;
24251
24252 if (!PyArg_UnpackTuple(args, "Solver_SearchLog", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
24253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24254 if (!SWIG_IsOK(res1)) {
24255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SearchLog" "', argument " "1"" of type '" "operations_research::Solver *""'");
24256 }
24257 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24258 ecode2 = SWIG_AsVal_int(obj1, &val2);
24259 if (!SWIG_IsOK(ecode2)) {
24260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_SearchLog" "', argument " "2"" of type '" "int""'");
24261 }
24262 arg2 = static_cast< int >(val2);
24264 if (!SWIG_IsOK(res3)) {
24265 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_SearchLog" "', argument " "3"" of type '" "operations_research::OptimizeVar *const""'");
24266 }
24267 arg3 = reinterpret_cast< operations_research::OptimizeVar * >(argp3);
24268 {
24269 try {
24270 result = (operations_research::SearchMonitor *)(arg1)->MakeSearchLog(arg2,arg3);
24271 }
24272 catch (Swig::DirectorException &e) {
24273 SWIG_fail;
24274 }
24275 }
24277 return resultobj;
24278fail:
24279 return NULL;
24280}
24281
24282
24283SWIGINTERN PyObject *_wrap_Solver_SearchLog__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24284 PyObject *resultobj = 0;
24286 int arg2 ;
24288 SwigValueWrapper< std::function< std::string () > > arg4 ;
24289 void *argp1 = 0 ;
24290 int res1 = 0 ;
24291 int val2 ;
24292 int ecode2 = 0 ;
24293 void *argp3 = 0 ;
24294 int res3 = 0 ;
24295 PyObject * obj0 = 0 ;
24296 PyObject * obj1 = 0 ;
24297 PyObject * obj2 = 0 ;
24298 PyObject * obj3 = 0 ;
24300
24301 if (!PyArg_UnpackTuple(args, "Solver_SearchLog", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
24302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24303 if (!SWIG_IsOK(res1)) {
24304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SearchLog" "', argument " "1"" of type '" "operations_research::Solver *""'");
24305 }
24306 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24307 ecode2 = SWIG_AsVal_int(obj1, &val2);
24308 if (!SWIG_IsOK(ecode2)) {
24309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_SearchLog" "', argument " "2"" of type '" "int""'");
24310 }
24311 arg2 = static_cast< int >(val2);
24313 if (!SWIG_IsOK(res3)) {
24314 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_SearchLog" "', argument " "3"" of type '" "operations_research::OptimizeVar *const""'");
24315 }
24316 arg3 = reinterpret_cast< operations_research::OptimizeVar * >(argp3);
24317 {
24318 SharedPyPtr input(obj3);
24319 arg4 = [input]() {
24320 return InvokePythonCallableReturning<std::string>(input.get());
24321 };
24322 }
24323 {
24324 try {
24325 result = (operations_research::SearchMonitor *)(arg1)->MakeSearchLog(arg2,arg3,arg4);
24326 }
24327 catch (Swig::DirectorException &e) {
24328 SWIG_fail;
24329 }
24330 }
24332 return resultobj;
24333fail:
24334 return NULL;
24335}
24336
24337
24338SWIGINTERN PyObject *_wrap_Solver_SearchLog__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24339 PyObject *resultobj = 0;
24342 void *argp1 = 0 ;
24343 int res1 = 0 ;
24344 void *argp2 ;
24345 int res2 = 0 ;
24346 PyObject * obj0 = 0 ;
24347 PyObject * obj1 = 0 ;
24349
24350 if (!PyArg_UnpackTuple(args, "Solver_SearchLog", 2, 2, &obj0, &obj1)) SWIG_fail;
24351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24352 if (!SWIG_IsOK(res1)) {
24353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SearchLog" "', argument " "1"" of type '" "operations_research::Solver *""'");
24354 }
24355 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24356 {
24358 if (!SWIG_IsOK(res2)) {
24359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_SearchLog" "', argument " "2"" of type '" "operations_research::Solver::SearchLogParameters""'");
24360 }
24361 if (!argp2) {
24362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_SearchLog" "', argument " "2"" of type '" "operations_research::Solver::SearchLogParameters""'");
24363 } else {
24365 arg2 = *temp;
24366 if (SWIG_IsNewObj(res2)) delete temp;
24367 }
24368 }
24369 {
24370 try {
24371 result = (operations_research::SearchMonitor *)(arg1)->MakeSearchLog(arg2);
24372 }
24373 catch (Swig::DirectorException &e) {
24374 SWIG_fail;
24375 }
24376 }
24378 return resultobj;
24379fail:
24380 return NULL;
24381}
24382
24383
24384SWIGINTERN PyObject *_wrap_Solver_SearchLog(PyObject *self, PyObject *args) {
24385 Py_ssize_t argc;
24386 PyObject *argv[5] = {
24387 0
24388 };
24389 Py_ssize_t ii;
24390
24391 if (!PyTuple_Check(args)) SWIG_fail;
24392 argc = PyObject_Length(args);
24393 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
24394 argv[ii] = PyTuple_GET_ITEM(args,ii);
24395 }
24396 if (argc == 2) {
24397 int _v;
24398 void *vptr = 0;
24399 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
24400 _v = SWIG_CheckState(res);
24401 if (_v) {
24403 _v = SWIG_CheckState(res);
24404 if (_v) {
24405 return _wrap_Solver_SearchLog__SWIG_6(self, args);
24406 }
24407 }
24408 }
24409 if (argc == 2) {
24410 int _v;
24411 void *vptr = 0;
24412 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
24413 _v = SWIG_CheckState(res);
24414 if (_v) {
24415 {
24416 int res = SWIG_AsVal_int(argv[1], NULL);
24417 _v = SWIG_CheckState(res);
24418 }
24419 if (_v) {
24420 return _wrap_Solver_SearchLog__SWIG_0(self, args);
24421 }
24422 }
24423 }
24424 if (argc == 3) {
24425 int _v;
24426 void *vptr = 0;
24427 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
24428 _v = SWIG_CheckState(res);
24429 if (_v) {
24430 {
24431 int res = SWIG_AsVal_int(argv[1], NULL);
24432 _v = SWIG_CheckState(res);
24433 }
24434 if (_v) {
24435 {
24436 _v = PyCallable_Check(argv[2]);
24437 }
24438 if (_v) {
24439 return _wrap_Solver_SearchLog__SWIG_2(self, args);
24440 }
24441 }
24442 }
24443 }
24444 if (argc == 3) {
24445 int _v;
24446 void *vptr = 0;
24447 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
24448 _v = SWIG_CheckState(res);
24449 if (_v) {
24450 {
24451 int res = SWIG_AsVal_int(argv[1], NULL);
24452 _v = SWIG_CheckState(res);
24453 }
24454 if (_v) {
24455 void *vptr = 0;
24457 _v = SWIG_CheckState(res);
24458 if (_v) {
24459 return _wrap_Solver_SearchLog__SWIG_4(self, args);
24460 }
24461 }
24462 }
24463 }
24464 if (argc == 3) {
24465 int _v;
24466 void *vptr = 0;
24467 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
24468 _v = SWIG_CheckState(res);
24469 if (_v) {
24470 {
24471 int res = SWIG_AsVal_int(argv[1], NULL);
24472 _v = SWIG_CheckState(res);
24473 }
24474 if (_v) {
24475 {
24476 _v = CanConvertToIntVar(argv[2]);
24477 if (_v == 0) PyErr_Clear();
24478 }
24479 if (_v) {
24480 return _wrap_Solver_SearchLog__SWIG_1(self, args);
24481 }
24482 }
24483 }
24484 }
24485 if (argc == 4) {
24486 int _v;
24487 void *vptr = 0;
24488 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
24489 _v = SWIG_CheckState(res);
24490 if (_v) {
24491 {
24492 int res = SWIG_AsVal_int(argv[1], NULL);
24493 _v = SWIG_CheckState(res);
24494 }
24495 if (_v) {
24496 void *vptr = 0;
24498 _v = SWIG_CheckState(res);
24499 if (_v) {
24500 {
24501 _v = PyCallable_Check(argv[3]);
24502 }
24503 if (_v) {
24504 return _wrap_Solver_SearchLog__SWIG_5(self, args);
24505 }
24506 }
24507 }
24508 }
24509 }
24510 if (argc == 4) {
24511 int _v;
24512 void *vptr = 0;
24513 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
24514 _v = SWIG_CheckState(res);
24515 if (_v) {
24516 {
24517 int res = SWIG_AsVal_int(argv[1], NULL);
24518 _v = SWIG_CheckState(res);
24519 }
24520 if (_v) {
24521 void *vptr = 0;
24522 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_operations_research__IntVar, 0);
24523 _v = SWIG_CheckState(res);
24524 if (_v) {
24525 {
24526 _v = PyCallable_Check(argv[3]);
24527 }
24528 if (_v) {
24529 return _wrap_Solver_SearchLog__SWIG_3(self, args);
24530 }
24531 }
24532 }
24533 }
24534 }
24535
24536fail:
24537 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_SearchLog'.\n"
24538 " Possible C/C++ prototypes are:\n"
24539 " operations_research::Solver::MakeSearchLog(int)\n"
24540 " operations_research::Solver::MakeSearchLog(int,operations_research::IntVar *const)\n"
24541 " operations_research::Solver::MakeSearchLog(int,std::function< std::string () >)\n"
24542 " operations_research::Solver::MakeSearchLog(int,operations_research::IntVar *,std::function< std::string () >)\n"
24543 " operations_research::Solver::MakeSearchLog(int,operations_research::OptimizeVar *const)\n"
24544 " operations_research::Solver::MakeSearchLog(int,operations_research::OptimizeVar *const,std::function< std::string () >)\n"
24545 " operations_research::Solver::MakeSearchLog(operations_research::Solver::SearchLogParameters)\n");
24546 return 0;
24547}
24548
24549
24550SWIGINTERN PyObject *_wrap_Solver_SearchTrace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24551 PyObject *resultobj = 0;
24553 std::string *arg2 = 0 ;
24554 void *argp1 = 0 ;
24555 int res1 = 0 ;
24556 int res2 = SWIG_OLDOBJ ;
24557 PyObject * obj0 = 0 ;
24558 PyObject * obj1 = 0 ;
24560
24561 if (!PyArg_UnpackTuple(args, "Solver_SearchTrace", 2, 2, &obj0, &obj1)) SWIG_fail;
24562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24563 if (!SWIG_IsOK(res1)) {
24564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SearchTrace" "', argument " "1"" of type '" "operations_research::Solver *""'");
24565 }
24566 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24567 {
24568 std::string *ptr = (std::string *)0;
24569 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
24570 if (!SWIG_IsOK(res2)) {
24571 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_SearchTrace" "', argument " "2"" of type '" "std::string const &""'");
24572 }
24573 if (!ptr) {
24574 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_SearchTrace" "', argument " "2"" of type '" "std::string const &""'");
24575 }
24576 arg2 = ptr;
24577 }
24578 {
24579 try {
24580 result = (operations_research::SearchMonitor *)(arg1)->MakeSearchTrace((std::string const &)*arg2);
24581 }
24582 catch (Swig::DirectorException &e) {
24583 SWIG_fail;
24584 }
24585 }
24587 if (SWIG_IsNewObj(res2)) delete arg2;
24588 return resultobj;
24589fail:
24590 if (SWIG_IsNewObj(res2)) delete arg2;
24591 return NULL;
24592}
24593
24594
24595SWIGINTERN PyObject *_wrap_Solver_PrintModelVisitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24596 PyObject *resultobj = 0;
24598 void *argp1 = 0 ;
24599 int res1 = 0 ;
24600 PyObject * obj0 = 0 ;
24602
24603 if (!PyArg_UnpackTuple(args, "Solver_PrintModelVisitor", 1, 1, &obj0)) SWIG_fail;
24604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24605 if (!SWIG_IsOK(res1)) {
24606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_PrintModelVisitor" "', argument " "1"" of type '" "operations_research::Solver *""'");
24607 }
24608 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24609 {
24610 try {
24611 result = (operations_research::ModelVisitor *)(arg1)->MakePrintModelVisitor();
24612 }
24613 catch (Swig::DirectorException &e) {
24614 SWIG_fail;
24615 }
24616 }
24618 return resultobj;
24619fail:
24620 return NULL;
24621}
24622
24623
24624SWIGINTERN PyObject *_wrap_Solver_StatisticsModelVisitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24625 PyObject *resultobj = 0;
24627 void *argp1 = 0 ;
24628 int res1 = 0 ;
24629 PyObject * obj0 = 0 ;
24631
24632 if (!PyArg_UnpackTuple(args, "Solver_StatisticsModelVisitor", 1, 1, &obj0)) SWIG_fail;
24633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24634 if (!SWIG_IsOK(res1)) {
24635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_StatisticsModelVisitor" "', argument " "1"" of type '" "operations_research::Solver *""'");
24636 }
24637 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24638 {
24639 try {
24640 result = (operations_research::ModelVisitor *)(arg1)->MakeStatisticsModelVisitor();
24641 }
24642 catch (Swig::DirectorException &e) {
24643 SWIG_fail;
24644 }
24645 }
24647 return resultobj;
24648fail:
24649 return NULL;
24650}
24651
24652
24653SWIGINTERN PyObject *_wrap_Solver_AssignVariableValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24654 PyObject *resultobj = 0;
24657 int64_t arg3 ;
24658 void *argp1 = 0 ;
24659 int res1 = 0 ;
24660 long val3 ;
24661 int ecode3 = 0 ;
24662 PyObject * obj0 = 0 ;
24663 PyObject * obj1 = 0 ;
24664 PyObject * obj2 = 0 ;
24665 operations_research::Decision *result = 0 ;
24666
24667 if (!PyArg_UnpackTuple(args, "Solver_AssignVariableValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
24668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24669 if (!SWIG_IsOK(res1)) {
24670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_AssignVariableValue" "', argument " "1"" of type '" "operations_research::Solver *""'");
24671 }
24672 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24673 {
24674 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
24675 }
24676 ecode3 = SWIG_AsVal_long(obj2, &val3);
24677 if (!SWIG_IsOK(ecode3)) {
24678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_AssignVariableValue" "', argument " "3"" of type '" "int64_t""'");
24679 }
24680 arg3 = static_cast< int64_t >(val3);
24681 {
24682 try {
24683 result = (operations_research::Decision *)(arg1)->MakeAssignVariableValue(arg2,arg3);
24684 }
24685 catch (Swig::DirectorException &e) {
24686 SWIG_fail;
24687 }
24688 }
24690 return resultobj;
24691fail:
24692 return NULL;
24693}
24694
24695
24696SWIGINTERN PyObject *_wrap_Solver_VariableLessOrEqualValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24697 PyObject *resultobj = 0;
24700 int64_t arg3 ;
24701 void *argp1 = 0 ;
24702 int res1 = 0 ;
24703 long val3 ;
24704 int ecode3 = 0 ;
24705 PyObject * obj0 = 0 ;
24706 PyObject * obj1 = 0 ;
24707 PyObject * obj2 = 0 ;
24708 operations_research::Decision *result = 0 ;
24709
24710 if (!PyArg_UnpackTuple(args, "Solver_VariableLessOrEqualValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
24711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24712 if (!SWIG_IsOK(res1)) {
24713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_VariableLessOrEqualValue" "', argument " "1"" of type '" "operations_research::Solver *""'");
24714 }
24715 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24716 {
24717 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
24718 }
24719 ecode3 = SWIG_AsVal_long(obj2, &val3);
24720 if (!SWIG_IsOK(ecode3)) {
24721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_VariableLessOrEqualValue" "', argument " "3"" of type '" "int64_t""'");
24722 }
24723 arg3 = static_cast< int64_t >(val3);
24724 {
24725 try {
24726 result = (operations_research::Decision *)(arg1)->MakeVariableLessOrEqualValue(arg2,arg3);
24727 }
24728 catch (Swig::DirectorException &e) {
24729 SWIG_fail;
24730 }
24731 }
24733 return resultobj;
24734fail:
24735 return NULL;
24736}
24737
24738
24739SWIGINTERN PyObject *_wrap_Solver_VariableGreaterOrEqualValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24740 PyObject *resultobj = 0;
24743 int64_t arg3 ;
24744 void *argp1 = 0 ;
24745 int res1 = 0 ;
24746 long val3 ;
24747 int ecode3 = 0 ;
24748 PyObject * obj0 = 0 ;
24749 PyObject * obj1 = 0 ;
24750 PyObject * obj2 = 0 ;
24751 operations_research::Decision *result = 0 ;
24752
24753 if (!PyArg_UnpackTuple(args, "Solver_VariableGreaterOrEqualValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
24754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24755 if (!SWIG_IsOK(res1)) {
24756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_VariableGreaterOrEqualValue" "', argument " "1"" of type '" "operations_research::Solver *""'");
24757 }
24758 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24759 {
24760 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
24761 }
24762 ecode3 = SWIG_AsVal_long(obj2, &val3);
24763 if (!SWIG_IsOK(ecode3)) {
24764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_VariableGreaterOrEqualValue" "', argument " "3"" of type '" "int64_t""'");
24765 }
24766 arg3 = static_cast< int64_t >(val3);
24767 {
24768 try {
24769 result = (operations_research::Decision *)(arg1)->MakeVariableGreaterOrEqualValue(arg2,arg3);
24770 }
24771 catch (Swig::DirectorException &e) {
24772 SWIG_fail;
24773 }
24774 }
24776 return resultobj;
24777fail:
24778 return NULL;
24779}
24780
24781
24782SWIGINTERN PyObject *_wrap_Solver_SplitVariableDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24783 PyObject *resultobj = 0;
24786 int64_t arg3 ;
24787 bool arg4 ;
24788 void *argp1 = 0 ;
24789 int res1 = 0 ;
24790 long val3 ;
24791 int ecode3 = 0 ;
24792 bool val4 ;
24793 int ecode4 = 0 ;
24794 PyObject * obj0 = 0 ;
24795 PyObject * obj1 = 0 ;
24796 PyObject * obj2 = 0 ;
24797 PyObject * obj3 = 0 ;
24798 operations_research::Decision *result = 0 ;
24799
24800 if (!PyArg_UnpackTuple(args, "Solver_SplitVariableDomain", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
24801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24802 if (!SWIG_IsOK(res1)) {
24803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SplitVariableDomain" "', argument " "1"" of type '" "operations_research::Solver *""'");
24804 }
24805 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24806 {
24807 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
24808 }
24809 ecode3 = SWIG_AsVal_long(obj2, &val3);
24810 if (!SWIG_IsOK(ecode3)) {
24811 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_SplitVariableDomain" "', argument " "3"" of type '" "int64_t""'");
24812 }
24813 arg3 = static_cast< int64_t >(val3);
24814 ecode4 = SWIG_AsVal_bool(obj3, &val4);
24815 if (!SWIG_IsOK(ecode4)) {
24816 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_SplitVariableDomain" "', argument " "4"" of type '" "bool""'");
24817 }
24818 arg4 = static_cast< bool >(val4);
24819 {
24820 try {
24821 result = (operations_research::Decision *)(arg1)->MakeSplitVariableDomain(arg2,arg3,arg4);
24822 }
24823 catch (Swig::DirectorException &e) {
24824 SWIG_fail;
24825 }
24826 }
24828 return resultobj;
24829fail:
24830 return NULL;
24831}
24832
24833
24834SWIGINTERN PyObject *_wrap_Solver_AssignVariableValueOrFail(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24835 PyObject *resultobj = 0;
24838 int64_t arg3 ;
24839 void *argp1 = 0 ;
24840 int res1 = 0 ;
24841 long val3 ;
24842 int ecode3 = 0 ;
24843 PyObject * obj0 = 0 ;
24844 PyObject * obj1 = 0 ;
24845 PyObject * obj2 = 0 ;
24846 operations_research::Decision *result = 0 ;
24847
24848 if (!PyArg_UnpackTuple(args, "Solver_AssignVariableValueOrFail", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
24849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24850 if (!SWIG_IsOK(res1)) {
24851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_AssignVariableValueOrFail" "', argument " "1"" of type '" "operations_research::Solver *""'");
24852 }
24853 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24854 {
24855 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
24856 }
24857 ecode3 = SWIG_AsVal_long(obj2, &val3);
24858 if (!SWIG_IsOK(ecode3)) {
24859 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_AssignVariableValueOrFail" "', argument " "3"" of type '" "int64_t""'");
24860 }
24861 arg3 = static_cast< int64_t >(val3);
24862 {
24863 try {
24864 result = (operations_research::Decision *)(arg1)->MakeAssignVariableValueOrFail(arg2,arg3);
24865 }
24866 catch (Swig::DirectorException &e) {
24867 SWIG_fail;
24868 }
24869 }
24871 return resultobj;
24872fail:
24873 return NULL;
24874}
24875
24876
24877SWIGINTERN PyObject *_wrap_Solver_AssignVariablesValues(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24878 PyObject *resultobj = 0;
24880 std::vector< operations_research::IntVar * > *arg2 = 0 ;
24881 std::vector< int64_t > *arg3 = 0 ;
24882 void *argp1 = 0 ;
24883 int res1 = 0 ;
24884 std::vector< operations_research::IntVar * > temp2 ;
24885 std::vector< int64_t > temp3 ;
24886 PyObject * obj0 = 0 ;
24887 PyObject * obj1 = 0 ;
24888 PyObject * obj2 = 0 ;
24889 operations_research::Decision *result = 0 ;
24890
24891 if (!PyArg_UnpackTuple(args, "Solver_AssignVariablesValues", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
24892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24893 if (!SWIG_IsOK(res1)) {
24894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_AssignVariablesValues" "', argument " "1"" of type '" "operations_research::Solver *""'");
24895 }
24896 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24897 {
24898 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
24899 if (!PyErr_Occurred())
24900 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
24901 return NULL;
24902 }
24903 arg2 = &temp2;
24904 }
24905 {
24906 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
24907 if (!PyErr_Occurred())
24908 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
24909 return NULL;
24910 }
24911 arg3 = &temp3;
24912 }
24913 {
24914 try {
24915 result = (operations_research::Decision *)(arg1)->MakeAssignVariablesValues((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int64_t > const &)*arg3);
24916 }
24917 catch (Swig::DirectorException &e) {
24918 SWIG_fail;
24919 }
24920 }
24922 return resultobj;
24923fail:
24924 return NULL;
24925}
24926
24927
24928SWIGINTERN PyObject *_wrap_Solver_FailDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24929 PyObject *resultobj = 0;
24931 void *argp1 = 0 ;
24932 int res1 = 0 ;
24933 PyObject * obj0 = 0 ;
24934 operations_research::Decision *result = 0 ;
24935
24936 if (!PyArg_UnpackTuple(args, "Solver_FailDecision", 1, 1, &obj0)) SWIG_fail;
24937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24938 if (!SWIG_IsOK(res1)) {
24939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_FailDecision" "', argument " "1"" of type '" "operations_research::Solver *""'");
24940 }
24941 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24942 {
24943 try {
24944 result = (operations_research::Decision *)(arg1)->MakeFailDecision();
24945 }
24946 catch (Swig::DirectorException &e) {
24947 SWIG_fail;
24948 }
24949 }
24951 return resultobj;
24952fail:
24953 return NULL;
24954}
24955
24956
24957SWIGINTERN PyObject *_wrap_Solver_Decision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24958 PyObject *resultobj = 0;
24960 SwigValueWrapper< std::function< void (operations_research::Solver *) > > arg2 ;
24961 SwigValueWrapper< std::function< void (operations_research::Solver *) > > arg3 ;
24962 void *argp1 = 0 ;
24963 int res1 = 0 ;
24964 PyObject * obj0 = 0 ;
24965 PyObject * obj1 = 0 ;
24966 PyObject * obj2 = 0 ;
24967 operations_research::Decision *result = 0 ;
24968
24969 if (!PyArg_UnpackTuple(args, "Solver_Decision", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
24970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
24971 if (!SWIG_IsOK(res1)) {
24972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Decision" "', argument " "1"" of type '" "operations_research::Solver *""'");
24973 }
24974 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24975 {
24976 arg2 = [obj1](operations_research::Solver* s) {
24977 return PyFunctionSolverToVoid(obj1, s);
24978 };
24979 }
24980 {
24981 arg3 = [obj2](operations_research::Solver* s) {
24982 return PyFunctionSolverToVoid(obj2, s);
24983 };
24984 }
24985 {
24986 try {
24987 result = (operations_research::Decision *)(arg1)->MakeDecision(arg2,arg3);
24988 }
24989 catch (Swig::DirectorException &e) {
24990 SWIG_fail;
24991 }
24992 }
24994 return resultobj;
24995fail:
24996 return NULL;
24997}
24998
24999
25000SWIGINTERN PyObject *_wrap_Solver_Compose(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25001 PyObject *resultobj = 0;
25003 std::vector< operations_research::DecisionBuilder * > *arg2 = 0 ;
25004 void *argp1 = 0 ;
25005 int res1 = 0 ;
25006 std::vector< operations_research::DecisionBuilder * > temp2 ;
25007 PyObject * obj0 = 0 ;
25008 PyObject * obj1 = 0 ;
25010
25011 if (!PyArg_UnpackTuple(args, "Solver_Compose", 2, 2, &obj0, &obj1)) SWIG_fail;
25012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
25013 if (!SWIG_IsOK(res1)) {
25014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Compose" "', argument " "1"" of type '" "operations_research::Solver *""'");
25015 }
25016 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25017 {
25018 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::DecisionBuilder*>)) {
25019 if (!PyErr_Occurred())
25020 SWIG_Error(SWIG_TypeError, "sequence(operations_research::DecisionBuilder*) expected");
25021 return NULL;
25022 }
25023 arg2 = &temp2;
25024 }
25025 {
25026 try {
25027 result = (operations_research::DecisionBuilder *)(arg1)->Compose((std::vector< operations_research::DecisionBuilder * > const &)*arg2);
25028 }
25029 catch (Swig::DirectorException &e) {
25030 SWIG_fail;
25031 }
25032 }
25034 return resultobj;
25035fail:
25036 return NULL;
25037}
25038
25039
25040SWIGINTERN PyObject *_wrap_Solver_Try(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25041 PyObject *resultobj = 0;
25043 std::vector< operations_research::DecisionBuilder * > *arg2 = 0 ;
25044 void *argp1 = 0 ;
25045 int res1 = 0 ;
25046 std::vector< operations_research::DecisionBuilder * > temp2 ;
25047 PyObject * obj0 = 0 ;
25048 PyObject * obj1 = 0 ;
25050
25051 if (!PyArg_UnpackTuple(args, "Solver_Try", 2, 2, &obj0, &obj1)) SWIG_fail;
25052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
25053 if (!SWIG_IsOK(res1)) {
25054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Try" "', argument " "1"" of type '" "operations_research::Solver *""'");
25055 }
25056 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25057 {
25058 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::DecisionBuilder*>)) {
25059 if (!PyErr_Occurred())
25060 SWIG_Error(SWIG_TypeError, "sequence(operations_research::DecisionBuilder*) expected");
25061 return NULL;
25062 }
25063 arg2 = &temp2;
25064 }
25065 {
25066 try {
25067 result = (operations_research::DecisionBuilder *)(arg1)->Try((std::vector< operations_research::DecisionBuilder * > const &)*arg2);
25068 }
25069 catch (Swig::DirectorException &e) {
25070 SWIG_fail;
25071 }
25072 }
25074 return resultobj;
25075fail:
25076 return NULL;
25077}
25078
25079
25080SWIGINTERN PyObject *_wrap_Solver_Phase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25081 PyObject *resultobj = 0;
25083 std::vector< operations_research::IntVar * > *arg2 = 0 ;
25086 void *argp1 = 0 ;
25087 int res1 = 0 ;
25088 std::vector< operations_research::IntVar * > temp2 ;
25089 int val3 ;
25090 int ecode3 = 0 ;
25091 int val4 ;
25092 int ecode4 = 0 ;
25093 PyObject * obj0 = 0 ;
25094 PyObject * obj1 = 0 ;
25095 PyObject * obj2 = 0 ;
25096 PyObject * obj3 = 0 ;
25098
25099 if (!PyArg_UnpackTuple(args, "Solver_Phase", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
25100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
25101 if (!SWIG_IsOK(res1)) {
25102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Phase" "', argument " "1"" of type '" "operations_research::Solver *""'");
25103 }
25104 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25105 {
25106 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
25107 if (!PyErr_Occurred())
25108 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
25109 return NULL;
25110 }
25111 arg2 = &temp2;
25112 }
25113 ecode3 = SWIG_AsVal_int(obj2, &val3);
25114 if (!SWIG_IsOK(ecode3)) {
25115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Phase" "', argument " "3"" of type '" "operations_research::Solver::IntVarStrategy""'");
25116 }
25117 arg3 = static_cast< operations_research::Solver::IntVarStrategy >(val3);
25118 ecode4 = SWIG_AsVal_int(obj3, &val4);
25119 if (!SWIG_IsOK(ecode4)) {
25120 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_Phase" "', argument " "4"" of type '" "operations_research::Solver::IntValueStrategy""'");
25121 }
25122 arg4 = static_cast< operations_research::Solver::IntValueStrategy >(val4);
25123 {
25124 try {
25125 result = (operations_research::DecisionBuilder *)(arg1)->MakePhase((std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4);
25126 }
25127 catch (Swig::DirectorException &e) {
25128 SWIG_fail;
25129 }
25130 }
25132 return resultobj;
25133fail:
25134 return NULL;
25135}
25136
25137
25138SWIGINTERN PyObject *_wrap_Solver_DefaultPhase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25139 PyObject *resultobj = 0;
25141 std::vector< operations_research::IntVar * > *arg2 = 0 ;
25142 void *argp1 = 0 ;
25143 int res1 = 0 ;
25144 std::vector< operations_research::IntVar * > temp2 ;
25145 PyObject * obj0 = 0 ;
25146 PyObject * obj1 = 0 ;
25148
25149 if (!PyArg_UnpackTuple(args, "Solver_DefaultPhase", 2, 2, &obj0, &obj1)) SWIG_fail;
25150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
25151 if (!SWIG_IsOK(res1)) {
25152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_DefaultPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
25153 }
25154 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25155 {
25156 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
25157 if (!PyErr_Occurred())
25158 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
25159 return NULL;
25160 }
25161 arg2 = &temp2;
25162 }
25163 {
25164 try {
25165 result = (operations_research::DecisionBuilder *)(arg1)->MakeDefaultPhase((std::vector< operations_research::IntVar * > const &)*arg2);
25166 }
25167 catch (Swig::DirectorException &e) {
25168 SWIG_fail;
25169 }
25170 }
25172 return resultobj;
25173fail:
25174 return NULL;
25175}
25176
25177
25178SWIGINTERN PyObject *_wrap_Solver_DefaultPhase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25179 PyObject *resultobj = 0;
25181 std::vector< operations_research::IntVar * > *arg2 = 0 ;
25183 void *argp1 = 0 ;
25184 int res1 = 0 ;
25185 std::vector< operations_research::IntVar * > temp2 ;
25186 void *argp3 = 0 ;
25187 int res3 = 0 ;
25188 PyObject * obj0 = 0 ;
25189 PyObject * obj1 = 0 ;
25190 PyObject * obj2 = 0 ;
25192
25193 if (!PyArg_UnpackTuple(args, "Solver_DefaultPhase", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
25194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
25195 if (!SWIG_IsOK(res1)) {
25196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_DefaultPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
25197 }
25198 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25199 {
25200 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
25201 if (!PyErr_Occurred())
25202 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
25203 return NULL;
25204 }
25205 arg2 = &temp2;
25206 }
25208 if (!SWIG_IsOK(res3)) {
25209 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_DefaultPhase" "', argument " "3"" of type '" "operations_research::DefaultPhaseParameters const &""'");
25210 }
25211 if (!argp3) {
25212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_DefaultPhase" "', argument " "3"" of type '" "operations_research::DefaultPhaseParameters const &""'");
25213 }
25214 arg3 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp3);
25215 {
25216 try {
25217 result = (operations_research::DecisionBuilder *)(arg1)->MakeDefaultPhase((std::vector< operations_research::IntVar * > const &)*arg2,(operations_research::DefaultPhaseParameters const &)*arg3);
25218 }
25219 catch (Swig::DirectorException &e) {
25220 SWIG_fail;
25221 }
25222 }
25224 return resultobj;
25225fail:
25226 return NULL;
25227}
25228
25229
25230SWIGINTERN PyObject *_wrap_Solver_DefaultPhase(PyObject *self, PyObject *args) {
25231 Py_ssize_t argc;
25232 PyObject *argv[4] = {
25233 0
25234 };
25235 Py_ssize_t ii;
25236
25237 if (!PyTuple_Check(args)) SWIG_fail;
25238 argc = PyObject_Length(args);
25239 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
25240 argv[ii] = PyTuple_GET_ITEM(args,ii);
25241 }
25242 if (argc == 2) {
25243 int _v;
25244 void *vptr = 0;
25245 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
25246 _v = SWIG_CheckState(res);
25247 if (_v) {
25248 {
25249 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
25250 _v = 0;
25251 } else {
25252 const bool is_tuple = PyTuple_Check(argv[1]);
25253 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
25254 size_t i = 0;
25255 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
25256 :PyList_GetItem(argv[1], i))) {
25257 ++i;
25258 }
25259 _v = i == size;
25260 }
25261 }
25262 if (_v) {
25263 return _wrap_Solver_DefaultPhase__SWIG_0(self, args);
25264 }
25265 }
25266 }
25267 if (argc == 3) {
25268 int _v;
25269 void *vptr = 0;
25270 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
25271 _v = SWIG_CheckState(res);
25272 if (_v) {
25273 {
25274 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
25275 _v = 0;
25276 } else {
25277 const bool is_tuple = PyTuple_Check(argv[1]);
25278 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
25279 size_t i = 0;
25280 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
25281 :PyList_GetItem(argv[1], i))) {
25282 ++i;
25283 }
25284 _v = i == size;
25285 }
25286 }
25287 if (_v) {
25289 _v = SWIG_CheckState(res);
25290 if (_v) {
25291 return _wrap_Solver_DefaultPhase__SWIG_1(self, args);
25292 }
25293 }
25294 }
25295 }
25296
25297fail:
25298 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_DefaultPhase'.\n"
25299 " Possible C/C++ prototypes are:\n"
25300 " operations_research::Solver::MakeDefaultPhase(std::vector< operations_research::IntVar * > const &)\n"
25301 " operations_research::Solver::MakeDefaultPhase(std::vector< operations_research::IntVar * > const &,operations_research::DefaultPhaseParameters const &)\n");
25302 return 0;
25303}
25304
25305
25306SWIGINTERN PyObject *_wrap_Solver_ScheduleOrPostpone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25307 PyObject *resultobj = 0;
25310 int64_t arg3 ;
25311 int64_t *arg4 = (int64_t *) (int64_t *)0 ;
25312 void *argp1 = 0 ;
25313 int res1 = 0 ;
25314 long val3 ;
25315 int ecode3 = 0 ;
25316 void *argp4 = 0 ;
25317 int res4 = 0 ;
25318 PyObject * obj0 = 0 ;
25319 PyObject * obj1 = 0 ;
25320 PyObject * obj2 = 0 ;
25321 PyObject * obj3 = 0 ;
25322 operations_research::Decision *result = 0 ;
25323
25324 if (!PyArg_UnpackTuple(args, "Solver_ScheduleOrPostpone", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
25325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
25326 if (!SWIG_IsOK(res1)) {
25327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ScheduleOrPostpone" "', argument " "1"" of type '" "operations_research::Solver *""'");
25328 }
25329 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25330 {
25331 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
25332 }
25333 ecode3 = SWIG_AsVal_long(obj2, &val3);
25334 if (!SWIG_IsOK(ecode3)) {
25335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_ScheduleOrPostpone" "', argument " "3"" of type '" "int64_t""'");
25336 }
25337 arg3 = static_cast< int64_t >(val3);
25338 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
25339 if (!SWIG_IsOK(res4)) {
25340 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Solver_ScheduleOrPostpone" "', argument " "4"" of type '" "int64_t *const""'");
25341 }
25342 arg4 = reinterpret_cast< int64_t * >(argp4);
25343 {
25344 try {
25345 result = (operations_research::Decision *)(arg1)->MakeScheduleOrPostpone(arg2,arg3,arg4);
25346 }
25347 catch (Swig::DirectorException &e) {
25348 SWIG_fail;
25349 }
25350 }
25352 return resultobj;
25353fail:
25354 return NULL;
25355}
25356
25357
25358SWIGINTERN PyObject *_wrap_Solver_ScheduleOrExpedite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25359 PyObject *resultobj = 0;
25362 int64_t arg3 ;
25363 int64_t *arg4 = (int64_t *) (int64_t *)0 ;
25364 void *argp1 = 0 ;
25365 int res1 = 0 ;
25366 long val3 ;
25367 int ecode3 = 0 ;
25368 void *argp4 = 0 ;
25369 int res4 = 0 ;
25370 PyObject * obj0 = 0 ;
25371 PyObject * obj1 = 0 ;
25372 PyObject * obj2 = 0 ;
25373 PyObject * obj3 = 0 ;
25374 operations_research::Decision *result = 0 ;
25375
25376 if (!PyArg_UnpackTuple(args, "Solver_ScheduleOrExpedite", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
25377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
25378 if (!SWIG_IsOK(res1)) {
25379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ScheduleOrExpedite" "', argument " "1"" of type '" "operations_research::Solver *""'");
25380 }
25381 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25382 {
25383 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
25384 }
25385 ecode3 = SWIG_AsVal_long(obj2, &val3);
25386 if (!SWIG_IsOK(ecode3)) {
25387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_ScheduleOrExpedite" "', argument " "3"" of type '" "int64_t""'");
25388 }
25389 arg3 = static_cast< int64_t >(val3);
25390 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_long, 0 | 0 );
25391 if (!SWIG_IsOK(res4)) {
25392 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Solver_ScheduleOrExpedite" "', argument " "4"" of type '" "int64_t *const""'");
25393 }
25394 arg4 = reinterpret_cast< int64_t * >(argp4);
25395 {
25396 try {
25397 result = (operations_research::Decision *)(arg1)->MakeScheduleOrExpedite(arg2,arg3,arg4);
25398 }
25399 catch (Swig::DirectorException &e) {
25400 SWIG_fail;
25401 }
25402 }
25404 return resultobj;
25405fail:
25406 return NULL;
25407}
25408
25409
25410SWIGINTERN PyObject *_wrap_Solver_RankFirstInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25411 PyObject *resultobj = 0;
25414 int arg3 ;
25415 void *argp1 = 0 ;
25416 int res1 = 0 ;
25417 int val3 ;
25418 int ecode3 = 0 ;
25419 PyObject * obj0 = 0 ;
25420 PyObject * obj1 = 0 ;
25421 PyObject * obj2 = 0 ;
25422 operations_research::Decision *result = 0 ;
25423
25424 if (!PyArg_UnpackTuple(args, "Solver_RankFirstInterval", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
25425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
25426 if (!SWIG_IsOK(res1)) {
25427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_RankFirstInterval" "', argument " "1"" of type '" "operations_research::Solver *""'");
25428 }
25429 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25430 {
25431 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
25432 }
25433 ecode3 = SWIG_AsVal_int(obj2, &val3);
25434 if (!SWIG_IsOK(ecode3)) {
25435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_RankFirstInterval" "', argument " "3"" of type '" "int""'");
25436 }
25437 arg3 = static_cast< int >(val3);
25438 {
25439 try {
25440 result = (operations_research::Decision *)(arg1)->MakeRankFirstInterval(arg2,arg3);
25441 }
25442 catch (Swig::DirectorException &e) {
25443 SWIG_fail;
25444 }
25445 }
25447 return resultobj;
25448fail:
25449 return NULL;
25450}
25451
25452
25453SWIGINTERN PyObject *_wrap_Solver_RankLastInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25454 PyObject *resultobj = 0;
25457 int arg3 ;
25458 void *argp1 = 0 ;
25459 int res1 = 0 ;
25460 int val3 ;
25461 int ecode3 = 0 ;
25462 PyObject * obj0 = 0 ;
25463 PyObject * obj1 = 0 ;
25464 PyObject * obj2 = 0 ;
25465 operations_research::Decision *result = 0 ;
25466
25467 if (!PyArg_UnpackTuple(args, "Solver_RankLastInterval", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
25468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
25469 if (!SWIG_IsOK(res1)) {
25470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_RankLastInterval" "', argument " "1"" of type '" "operations_research::Solver *""'");
25471 }
25472 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25473 {
25474 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
25475 }
25476 ecode3 = SWIG_AsVal_int(obj2, &val3);
25477 if (!SWIG_IsOK(ecode3)) {
25478 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_RankLastInterval" "', argument " "3"" of type '" "int""'");
25479 }
25480 arg3 = static_cast< int >(val3);
25481 {
25482 try {
25483 result = (operations_research::Decision *)(arg1)->MakeRankLastInterval(arg2,arg3);
25484 }
25485 catch (Swig::DirectorException &e) {
25486 SWIG_fail;
25487 }
25488 }
25490 return resultobj;
25491fail:
25492 return NULL;
25493}
25494
25495
25496SWIGINTERN PyObject *_wrap_Solver_Phase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25497 PyObject *resultobj = 0;
25499 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
25501 void *argp1 = 0 ;
25502 int res1 = 0 ;
25503 std::vector< operations_research::IntervalVar * > temp2 ;
25504 int val3 ;
25505 int ecode3 = 0 ;
25506 PyObject * obj0 = 0 ;
25507 PyObject * obj1 = 0 ;
25508 PyObject * obj2 = 0 ;
25510
25511 if (!PyArg_UnpackTuple(args, "Solver_Phase", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
25512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
25513 if (!SWIG_IsOK(res1)) {
25514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Phase" "', argument " "1"" of type '" "operations_research::Solver *""'");
25515 }
25516 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25517 {
25518 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
25519 if (!PyErr_Occurred())
25520 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntervalVar*) expected");
25521 return NULL;
25522 }
25523 arg2 = &temp2;
25524 }
25525 ecode3 = SWIG_AsVal_int(obj2, &val3);
25526 if (!SWIG_IsOK(ecode3)) {
25527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Phase" "', argument " "3"" of type '" "operations_research::Solver::IntervalStrategy""'");
25528 }
25529 arg3 = static_cast< operations_research::Solver::IntervalStrategy >(val3);
25530 {
25531 try {
25532 result = (operations_research::DecisionBuilder *)(arg1)->MakePhase((std::vector< operations_research::IntervalVar * > const &)*arg2,arg3);
25533 }
25534 catch (Swig::DirectorException &e) {
25535 SWIG_fail;
25536 }
25537 }
25539 return resultobj;
25540fail:
25541 return NULL;
25542}
25543
25544
25545SWIGINTERN PyObject *_wrap_Solver_Phase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25546 PyObject *resultobj = 0;
25548 std::vector< operations_research::SequenceVar * > *arg2 = 0 ;
25550 void *argp1 = 0 ;
25551 int res1 = 0 ;
25552 std::vector< operations_research::SequenceVar * > temp2 ;
25553 int val3 ;
25554 int ecode3 = 0 ;
25555 PyObject * obj0 = 0 ;
25556 PyObject * obj1 = 0 ;
25557 PyObject * obj2 = 0 ;
25559
25560 if (!PyArg_UnpackTuple(args, "Solver_Phase", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
25561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
25562 if (!SWIG_IsOK(res1)) {
25563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Phase" "', argument " "1"" of type '" "operations_research::Solver *""'");
25564 }
25565 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25566 {
25567 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::SequenceVar*>)) {
25568 if (!PyErr_Occurred())
25569 SWIG_Error(SWIG_TypeError, "sequence(operations_research::SequenceVar*) expected");
25570 return NULL;
25571 }
25572 arg2 = &temp2;
25573 }
25574 ecode3 = SWIG_AsVal_int(obj2, &val3);
25575 if (!SWIG_IsOK(ecode3)) {
25576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Phase" "', argument " "3"" of type '" "operations_research::Solver::SequenceStrategy""'");
25577 }
25578 arg3 = static_cast< operations_research::Solver::SequenceStrategy >(val3);
25579 {
25580 try {
25581 result = (operations_research::DecisionBuilder *)(arg1)->MakePhase((std::vector< operations_research::SequenceVar * > const &)*arg2,arg3);
25582 }
25583 catch (Swig::DirectorException &e) {
25584 SWIG_fail;
25585 }
25586 }
25588 return resultobj;
25589fail:
25590 return NULL;
25591}
25592
25593
25594SWIGINTERN PyObject *_wrap_Solver_Phase(PyObject *self, PyObject *args) {
25595 Py_ssize_t argc;
25596 PyObject *argv[5] = {
25597 0
25598 };
25599 Py_ssize_t ii;
25600
25601 if (!PyTuple_Check(args)) SWIG_fail;
25602 argc = PyObject_Length(args);
25603 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
25604 argv[ii] = PyTuple_GET_ITEM(args,ii);
25605 }
25606 if (argc == 3) {
25607 int _v;
25608 void *vptr = 0;
25609 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
25610 _v = SWIG_CheckState(res);
25611 if (_v) {
25612 {
25613 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
25614 _v = 0;
25615 } else {
25616 const bool is_tuple = PyTuple_Check(argv[1]);
25617 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
25618 size_t i = 0;
25619 while (i < size && CanConvertToIntervalVar(is_tuple ? PyTuple_GetItem(argv[1], i)
25620 :PyList_GetItem(argv[1], i))) {
25621 ++i;
25622 }
25623 _v = i == size;
25624 }
25625 }
25626 if (_v) {
25627 {
25628 int res = SWIG_AsVal_int(argv[2], NULL);
25629 _v = SWIG_CheckState(res);
25630 }
25631 if (_v) {
25632 return _wrap_Solver_Phase__SWIG_1(self, args);
25633 }
25634 }
25635 }
25636 }
25637 if (argc == 3) {
25638 int _v;
25639 void *vptr = 0;
25640 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
25641 _v = SWIG_CheckState(res);
25642 if (_v) {
25643 {
25644 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
25645 _v = 0;
25646 } else {
25647 const bool is_tuple = PyTuple_Check(argv[1]);
25648 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
25649 size_t i = 0;
25650 while (i < size && CanConvertToSequenceVar(is_tuple ? PyTuple_GetItem(argv[1], i)
25651 :PyList_GetItem(argv[1], i))) {
25652 ++i;
25653 }
25654 _v = i == size;
25655 }
25656 }
25657 if (_v) {
25658 {
25659 int res = SWIG_AsVal_int(argv[2], NULL);
25660 _v = SWIG_CheckState(res);
25661 }
25662 if (_v) {
25663 return _wrap_Solver_Phase__SWIG_2(self, args);
25664 }
25665 }
25666 }
25667 }
25668 if (argc == 4) {
25669 int _v;
25670 void *vptr = 0;
25671 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
25672 _v = SWIG_CheckState(res);
25673 if (_v) {
25674 {
25675 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
25676 _v = 0;
25677 } else {
25678 const bool is_tuple = PyTuple_Check(argv[1]);
25679 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
25680 size_t i = 0;
25681 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
25682 :PyList_GetItem(argv[1], i))) {
25683 ++i;
25684 }
25685 _v = i == size;
25686 }
25687 }
25688 if (_v) {
25689 {
25690 int res = SWIG_AsVal_int(argv[2], NULL);
25691 _v = SWIG_CheckState(res);
25692 }
25693 if (_v) {
25694 {
25695 int res = SWIG_AsVal_int(argv[3], NULL);
25696 _v = SWIG_CheckState(res);
25697 }
25698 if (_v) {
25699 return _wrap_Solver_Phase__SWIG_0(self, args);
25700 }
25701 }
25702 }
25703 }
25704 }
25705
25706fail:
25707 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_Phase'.\n"
25708 " Possible C/C++ prototypes are:\n"
25709 " operations_research::Solver::MakePhase(std::vector< operations_research::IntVar * > const &,operations_research::Solver::IntVarStrategy,operations_research::Solver::IntValueStrategy)\n"
25710 " operations_research::Solver::MakePhase(std::vector< operations_research::IntervalVar * > const &,operations_research::Solver::IntervalStrategy)\n"
25711 " operations_research::Solver::MakePhase(std::vector< operations_research::SequenceVar * > const &,operations_research::Solver::SequenceStrategy)\n");
25712 return 0;
25713}
25714
25715
25717 PyObject *resultobj = 0;
25721 std::vector< operations_research::IntVar * > *arg4 = 0 ;
25722 void *argp1 = 0 ;
25723 int res1 = 0 ;
25724 void *argp2 = 0 ;
25725 int res2 = 0 ;
25726 std::vector< operations_research::IntVar * > temp4 ;
25727 PyObject * obj0 = 0 ;
25728 PyObject * obj1 = 0 ;
25729 PyObject * obj2 = 0 ;
25730 PyObject * obj3 = 0 ;
25732
25733 if (!PyArg_UnpackTuple(args, "Solver_DecisionBuilderFromAssignment", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
25734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
25735 if (!SWIG_IsOK(res1)) {
25736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_DecisionBuilderFromAssignment" "', argument " "1"" of type '" "operations_research::Solver *""'");
25737 }
25738 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25740 if (!SWIG_IsOK(res2)) {
25741 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_DecisionBuilderFromAssignment" "', argument " "2"" of type '" "operations_research::Assignment *const""'");
25742 }
25743 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
25744 {
25745 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
25746 }
25747 {
25748 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
25749 if (!PyErr_Occurred())
25750 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
25751 return NULL;
25752 }
25753 arg4 = &temp4;
25754 }
25755 {
25756 try {
25757 result = (operations_research::DecisionBuilder *)(arg1)->MakeDecisionBuilderFromAssignment(arg2,arg3,(std::vector< operations_research::IntVar * > const &)*arg4);
25758 }
25759 catch (Swig::DirectorException &e) {
25760 SWIG_fail;
25761 }
25762 }
25764 return resultobj;
25765fail:
25766 return NULL;
25767}
25768
25769
25770SWIGINTERN PyObject *_wrap_Solver_ConstraintAdder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25771 PyObject *resultobj = 0;
25774 void *argp1 = 0 ;
25775 int res1 = 0 ;
25776 void *argp2 = 0 ;
25777 int res2 = 0 ;
25778 PyObject * obj0 = 0 ;
25779 PyObject * obj1 = 0 ;
25781
25782 if (!PyArg_UnpackTuple(args, "Solver_ConstraintAdder", 2, 2, &obj0, &obj1)) SWIG_fail;
25783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
25784 if (!SWIG_IsOK(res1)) {
25785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ConstraintAdder" "', argument " "1"" of type '" "operations_research::Solver *""'");
25786 }
25787 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25789 if (!SWIG_IsOK(res2)) {
25790 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_ConstraintAdder" "', argument " "2"" of type '" "operations_research::Constraint *const""'");
25791 }
25792 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
25793 {
25794 try {
25795 result = (operations_research::DecisionBuilder *)(arg1)->MakeConstraintAdder(arg2);
25796 }
25797 catch (Swig::DirectorException &e) {
25798 SWIG_fail;
25799 }
25800 }
25802 return resultobj;
25803fail:
25804 return NULL;
25805}
25806
25807
25808SWIGINTERN PyObject *_wrap_Solver_SolveOnce(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25809 PyObject *resultobj = 0;
25812 std::vector< operations_research::SearchMonitor * > *arg3 = 0 ;
25813 void *argp1 = 0 ;
25814 int res1 = 0 ;
25815 std::vector< operations_research::SearchMonitor * > temp3 ;
25816 PyObject * obj0 = 0 ;
25817 PyObject * obj1 = 0 ;
25818 PyObject * obj2 = 0 ;
25820
25821 if (!PyArg_UnpackTuple(args, "Solver_SolveOnce", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
25822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
25823 if (!SWIG_IsOK(res1)) {
25824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SolveOnce" "', argument " "1"" of type '" "operations_research::Solver *""'");
25825 }
25826 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25827 {
25828 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
25829 }
25830 {
25831 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::SearchMonitor*>)) {
25832 if (!PyErr_Occurred())
25833 SWIG_Error(SWIG_TypeError, "sequence(operations_research::SearchMonitor*) expected");
25834 return NULL;
25835 }
25836 arg3 = &temp3;
25837 }
25838 {
25839 try {
25840 result = (operations_research::DecisionBuilder *)(arg1)->MakeSolveOnce(arg2,(std::vector< operations_research::SearchMonitor * > const &)*arg3);
25841 }
25842 catch (Swig::DirectorException &e) {
25843 SWIG_fail;
25844 }
25845 }
25847 return resultobj;
25848fail:
25849 return NULL;
25850}
25851
25852
25853SWIGINTERN PyObject *_wrap_Solver_NestedOptimize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25854 PyObject *resultobj = 0;
25858 bool arg4 ;
25859 int64_t arg5 ;
25860 void *argp1 = 0 ;
25861 int res1 = 0 ;
25862 void *argp3 = 0 ;
25863 int res3 = 0 ;
25864 bool val4 ;
25865 int ecode4 = 0 ;
25866 long val5 ;
25867 int ecode5 = 0 ;
25868 PyObject * obj0 = 0 ;
25869 PyObject * obj1 = 0 ;
25870 PyObject * obj2 = 0 ;
25871 PyObject * obj3 = 0 ;
25872 PyObject * obj4 = 0 ;
25874
25875 if (!PyArg_UnpackTuple(args, "Solver_NestedOptimize", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
25876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
25877 if (!SWIG_IsOK(res1)) {
25878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NestedOptimize" "', argument " "1"" of type '" "operations_research::Solver *""'");
25879 }
25880 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25881 {
25882 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
25883 }
25885 if (!SWIG_IsOK(res3)) {
25886 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
25887 }
25888 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
25889 ecode4 = SWIG_AsVal_bool(obj3, &val4);
25890 if (!SWIG_IsOK(ecode4)) {
25891 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_NestedOptimize" "', argument " "4"" of type '" "bool""'");
25892 }
25893 arg4 = static_cast< bool >(val4);
25894 ecode5 = SWIG_AsVal_long(obj4, &val5);
25895 if (!SWIG_IsOK(ecode5)) {
25896 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_NestedOptimize" "', argument " "5"" of type '" "int64_t""'");
25897 }
25898 arg5 = static_cast< int64_t >(val5);
25899 {
25900 try {
25901 result = (operations_research::DecisionBuilder *)(arg1)->MakeNestedOptimize(arg2,arg3,arg4,arg5);
25902 }
25903 catch (Swig::DirectorException &e) {
25904 SWIG_fail;
25905 }
25906 }
25908 return resultobj;
25909fail:
25910 return NULL;
25911}
25912
25913
25914SWIGINTERN PyObject *_wrap_Solver_NestedOptimize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25915 PyObject *resultobj = 0;
25919 bool arg4 ;
25920 int64_t arg5 ;
25922 void *argp1 = 0 ;
25923 int res1 = 0 ;
25924 void *argp3 = 0 ;
25925 int res3 = 0 ;
25926 bool val4 ;
25927 int ecode4 = 0 ;
25928 long val5 ;
25929 int ecode5 = 0 ;
25930 PyObject * obj0 = 0 ;
25931 PyObject * obj1 = 0 ;
25932 PyObject * obj2 = 0 ;
25933 PyObject * obj3 = 0 ;
25934 PyObject * obj4 = 0 ;
25935 PyObject * obj5 = 0 ;
25937
25938 if (!PyArg_UnpackTuple(args, "Solver_NestedOptimize", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
25939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
25940 if (!SWIG_IsOK(res1)) {
25941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NestedOptimize" "', argument " "1"" of type '" "operations_research::Solver *""'");
25942 }
25943 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25944 {
25945 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
25946 }
25948 if (!SWIG_IsOK(res3)) {
25949 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
25950 }
25951 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
25952 ecode4 = SWIG_AsVal_bool(obj3, &val4);
25953 if (!SWIG_IsOK(ecode4)) {
25954 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_NestedOptimize" "', argument " "4"" of type '" "bool""'");
25955 }
25956 arg4 = static_cast< bool >(val4);
25957 ecode5 = SWIG_AsVal_long(obj4, &val5);
25958 if (!SWIG_IsOK(ecode5)) {
25959 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_NestedOptimize" "', argument " "5"" of type '" "int64_t""'");
25960 }
25961 arg5 = static_cast< int64_t >(val5);
25962 {
25963 if (!PyObjAs(obj5, &arg6)) SWIG_fail;
25964 }
25965 {
25966 try {
25967 result = (operations_research::DecisionBuilder *)(arg1)->MakeNestedOptimize(arg2,arg3,arg4,arg5,arg6);
25968 }
25969 catch (Swig::DirectorException &e) {
25970 SWIG_fail;
25971 }
25972 }
25974 return resultobj;
25975fail:
25976 return NULL;
25977}
25978
25979
25980SWIGINTERN PyObject *_wrap_Solver_NestedOptimize__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25981 PyObject *resultobj = 0;
25985 bool arg4 ;
25986 int64_t arg5 ;
25989 void *argp1 = 0 ;
25990 int res1 = 0 ;
25991 void *argp3 = 0 ;
25992 int res3 = 0 ;
25993 bool val4 ;
25994 int ecode4 = 0 ;
25995 long val5 ;
25996 int ecode5 = 0 ;
25997 PyObject * obj0 = 0 ;
25998 PyObject * obj1 = 0 ;
25999 PyObject * obj2 = 0 ;
26000 PyObject * obj3 = 0 ;
26001 PyObject * obj4 = 0 ;
26002 PyObject * obj5 = 0 ;
26003 PyObject * obj6 = 0 ;
26005
26006 if (!PyArg_UnpackTuple(args, "Solver_NestedOptimize", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6)) SWIG_fail;
26007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
26008 if (!SWIG_IsOK(res1)) {
26009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NestedOptimize" "', argument " "1"" of type '" "operations_research::Solver *""'");
26010 }
26011 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26012 {
26013 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
26014 }
26016 if (!SWIG_IsOK(res3)) {
26017 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
26018 }
26019 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
26020 ecode4 = SWIG_AsVal_bool(obj3, &val4);
26021 if (!SWIG_IsOK(ecode4)) {
26022 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_NestedOptimize" "', argument " "4"" of type '" "bool""'");
26023 }
26024 arg4 = static_cast< bool >(val4);
26025 ecode5 = SWIG_AsVal_long(obj4, &val5);
26026 if (!SWIG_IsOK(ecode5)) {
26027 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_NestedOptimize" "', argument " "5"" of type '" "int64_t""'");
26028 }
26029 arg5 = static_cast< int64_t >(val5);
26030 {
26031 if (!PyObjAs(obj5, &arg6)) SWIG_fail;
26032 }
26033 {
26034 if (!PyObjAs(obj6, &arg7)) SWIG_fail;
26035 }
26036 {
26037 try {
26038 result = (operations_research::DecisionBuilder *)(arg1)->MakeNestedOptimize(arg2,arg3,arg4,arg5,arg6,arg7);
26039 }
26040 catch (Swig::DirectorException &e) {
26041 SWIG_fail;
26042 }
26043 }
26045 return resultobj;
26046fail:
26047 return NULL;
26048}
26049
26050
26051SWIGINTERN PyObject *_wrap_Solver_NestedOptimize__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26052 PyObject *resultobj = 0;
26056 bool arg4 ;
26057 int64_t arg5 ;
26061 void *argp1 = 0 ;
26062 int res1 = 0 ;
26063 void *argp3 = 0 ;
26064 int res3 = 0 ;
26065 bool val4 ;
26066 int ecode4 = 0 ;
26067 long val5 ;
26068 int ecode5 = 0 ;
26069 PyObject * obj0 = 0 ;
26070 PyObject * obj1 = 0 ;
26071 PyObject * obj2 = 0 ;
26072 PyObject * obj3 = 0 ;
26073 PyObject * obj4 = 0 ;
26074 PyObject * obj5 = 0 ;
26075 PyObject * obj6 = 0 ;
26076 PyObject * obj7 = 0 ;
26078
26079 if (!PyArg_UnpackTuple(args, "Solver_NestedOptimize", 8, 8, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7)) SWIG_fail;
26080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
26081 if (!SWIG_IsOK(res1)) {
26082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NestedOptimize" "', argument " "1"" of type '" "operations_research::Solver *""'");
26083 }
26084 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26085 {
26086 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
26087 }
26089 if (!SWIG_IsOK(res3)) {
26090 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
26091 }
26092 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
26093 ecode4 = SWIG_AsVal_bool(obj3, &val4);
26094 if (!SWIG_IsOK(ecode4)) {
26095 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_NestedOptimize" "', argument " "4"" of type '" "bool""'");
26096 }
26097 arg4 = static_cast< bool >(val4);
26098 ecode5 = SWIG_AsVal_long(obj4, &val5);
26099 if (!SWIG_IsOK(ecode5)) {
26100 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_NestedOptimize" "', argument " "5"" of type '" "int64_t""'");
26101 }
26102 arg5 = static_cast< int64_t >(val5);
26103 {
26104 if (!PyObjAs(obj5, &arg6)) SWIG_fail;
26105 }
26106 {
26107 if (!PyObjAs(obj6, &arg7)) SWIG_fail;
26108 }
26109 {
26110 if (!PyObjAs(obj7, &arg8)) SWIG_fail;
26111 }
26112 {
26113 try {
26114 result = (operations_research::DecisionBuilder *)(arg1)->MakeNestedOptimize(arg2,arg3,arg4,arg5,arg6,arg7,arg8);
26115 }
26116 catch (Swig::DirectorException &e) {
26117 SWIG_fail;
26118 }
26119 }
26121 return resultobj;
26122fail:
26123 return NULL;
26124}
26125
26126
26127SWIGINTERN PyObject *_wrap_Solver_NestedOptimize__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26128 PyObject *resultobj = 0;
26132 bool arg4 ;
26133 int64_t arg5 ;
26138 void *argp1 = 0 ;
26139 int res1 = 0 ;
26140 void *argp3 = 0 ;
26141 int res3 = 0 ;
26142 bool val4 ;
26143 int ecode4 = 0 ;
26144 long val5 ;
26145 int ecode5 = 0 ;
26146 PyObject * obj0 = 0 ;
26147 PyObject * obj1 = 0 ;
26148 PyObject * obj2 = 0 ;
26149 PyObject * obj3 = 0 ;
26150 PyObject * obj4 = 0 ;
26151 PyObject * obj5 = 0 ;
26152 PyObject * obj6 = 0 ;
26153 PyObject * obj7 = 0 ;
26154 PyObject * obj8 = 0 ;
26156
26157 if (!PyArg_UnpackTuple(args, "Solver_NestedOptimize", 9, 9, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7, &obj8)) SWIG_fail;
26158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
26159 if (!SWIG_IsOK(res1)) {
26160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NestedOptimize" "', argument " "1"" of type '" "operations_research::Solver *""'");
26161 }
26162 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26163 {
26164 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
26165 }
26167 if (!SWIG_IsOK(res3)) {
26168 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
26169 }
26170 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
26171 ecode4 = SWIG_AsVal_bool(obj3, &val4);
26172 if (!SWIG_IsOK(ecode4)) {
26173 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_NestedOptimize" "', argument " "4"" of type '" "bool""'");
26174 }
26175 arg4 = static_cast< bool >(val4);
26176 ecode5 = SWIG_AsVal_long(obj4, &val5);
26177 if (!SWIG_IsOK(ecode5)) {
26178 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_NestedOptimize" "', argument " "5"" of type '" "int64_t""'");
26179 }
26180 arg5 = static_cast< int64_t >(val5);
26181 {
26182 if (!PyObjAs(obj5, &arg6)) SWIG_fail;
26183 }
26184 {
26185 if (!PyObjAs(obj6, &arg7)) SWIG_fail;
26186 }
26187 {
26188 if (!PyObjAs(obj7, &arg8)) SWIG_fail;
26189 }
26190 {
26191 if (!PyObjAs(obj8, &arg9)) SWIG_fail;
26192 }
26193 {
26194 try {
26195 result = (operations_research::DecisionBuilder *)(arg1)->MakeNestedOptimize(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
26196 }
26197 catch (Swig::DirectorException &e) {
26198 SWIG_fail;
26199 }
26200 }
26202 return resultobj;
26203fail:
26204 return NULL;
26205}
26206
26207
26208SWIGINTERN PyObject *_wrap_Solver_NestedOptimize__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26209 PyObject *resultobj = 0;
26213 bool arg4 ;
26214 int64_t arg5 ;
26215 std::vector< operations_research::SearchMonitor * > *arg6 = 0 ;
26216 void *argp1 = 0 ;
26217 int res1 = 0 ;
26218 void *argp3 = 0 ;
26219 int res3 = 0 ;
26220 bool val4 ;
26221 int ecode4 = 0 ;
26222 long val5 ;
26223 int ecode5 = 0 ;
26224 std::vector< operations_research::SearchMonitor * > temp6 ;
26225 PyObject * obj0 = 0 ;
26226 PyObject * obj1 = 0 ;
26227 PyObject * obj2 = 0 ;
26228 PyObject * obj3 = 0 ;
26229 PyObject * obj4 = 0 ;
26230 PyObject * obj5 = 0 ;
26232
26233 if (!PyArg_UnpackTuple(args, "Solver_NestedOptimize", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
26234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
26235 if (!SWIG_IsOK(res1)) {
26236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NestedOptimize" "', argument " "1"" of type '" "operations_research::Solver *""'");
26237 }
26238 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26239 {
26240 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
26241 }
26243 if (!SWIG_IsOK(res3)) {
26244 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
26245 }
26246 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
26247 ecode4 = SWIG_AsVal_bool(obj3, &val4);
26248 if (!SWIG_IsOK(ecode4)) {
26249 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_NestedOptimize" "', argument " "4"" of type '" "bool""'");
26250 }
26251 arg4 = static_cast< bool >(val4);
26252 ecode5 = SWIG_AsVal_long(obj4, &val5);
26253 if (!SWIG_IsOK(ecode5)) {
26254 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_NestedOptimize" "', argument " "5"" of type '" "int64_t""'");
26255 }
26256 arg5 = static_cast< int64_t >(val5);
26257 {
26258 if (!vector_input_helper(obj5, &temp6, PyObjAs<operations_research::SearchMonitor*>)) {
26259 if (!PyErr_Occurred())
26260 SWIG_Error(SWIG_TypeError, "sequence(operations_research::SearchMonitor*) expected");
26261 return NULL;
26262 }
26263 arg6 = &temp6;
26264 }
26265 {
26266 try {
26267 result = (operations_research::DecisionBuilder *)(arg1)->MakeNestedOptimize(arg2,arg3,arg4,arg5,(std::vector< operations_research::SearchMonitor * > const &)*arg6);
26268 }
26269 catch (Swig::DirectorException &e) {
26270 SWIG_fail;
26271 }
26272 }
26274 return resultobj;
26275fail:
26276 return NULL;
26277}
26278
26279
26280SWIGINTERN PyObject *_wrap_Solver_NestedOptimize(PyObject *self, PyObject *args) {
26281 Py_ssize_t argc;
26282 PyObject *argv[10] = {
26283 0
26284 };
26285 Py_ssize_t ii;
26286
26287 if (!PyTuple_Check(args)) SWIG_fail;
26288 argc = PyObject_Length(args);
26289 for (ii = 0; (ii < 9) && (ii < argc); ii++) {
26290 argv[ii] = PyTuple_GET_ITEM(args,ii);
26291 }
26292 if (argc == 5) {
26293 int _v;
26294 void *vptr = 0;
26295 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
26296 _v = SWIG_CheckState(res);
26297 if (_v) {
26298 {
26299 _v = CanConvertToDecisionBuilder(argv[1]);
26300 if (_v == 0) PyErr_Clear();
26301 }
26302 if (_v) {
26303 void *vptr = 0;
26304 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
26305 _v = SWIG_CheckState(res);
26306 if (_v) {
26307 {
26308 int res = SWIG_AsVal_bool(argv[3], NULL);
26309 _v = SWIG_CheckState(res);
26310 }
26311 if (_v) {
26312 {
26313 int res = SWIG_AsVal_long(argv[4], NULL);
26314 _v = SWIG_CheckState(res);
26315 }
26316 if (_v) {
26317 return _wrap_Solver_NestedOptimize__SWIG_0(self, args);
26318 }
26319 }
26320 }
26321 }
26322 }
26323 }
26324 if (argc == 6) {
26325 int _v;
26326 void *vptr = 0;
26327 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
26328 _v = SWIG_CheckState(res);
26329 if (_v) {
26330 {
26331 _v = CanConvertToDecisionBuilder(argv[1]);
26332 if (_v == 0) PyErr_Clear();
26333 }
26334 if (_v) {
26335 void *vptr = 0;
26336 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
26337 _v = SWIG_CheckState(res);
26338 if (_v) {
26339 {
26340 int res = SWIG_AsVal_bool(argv[3], NULL);
26341 _v = SWIG_CheckState(res);
26342 }
26343 if (_v) {
26344 {
26345 int res = SWIG_AsVal_long(argv[4], NULL);
26346 _v = SWIG_CheckState(res);
26347 }
26348 if (_v) {
26349 {
26350 _v = CanConvertToSearchMonitor(argv[5]);
26351 if (_v == 0) PyErr_Clear();
26352 }
26353 if (_v) {
26354 return _wrap_Solver_NestedOptimize__SWIG_1(self, args);
26355 }
26356 }
26357 }
26358 }
26359 }
26360 }
26361 }
26362 if (argc == 6) {
26363 int _v;
26364 void *vptr = 0;
26365 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
26366 _v = SWIG_CheckState(res);
26367 if (_v) {
26368 {
26369 _v = CanConvertToDecisionBuilder(argv[1]);
26370 if (_v == 0) PyErr_Clear();
26371 }
26372 if (_v) {
26373 void *vptr = 0;
26374 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
26375 _v = SWIG_CheckState(res);
26376 if (_v) {
26377 {
26378 int res = SWIG_AsVal_bool(argv[3], NULL);
26379 _v = SWIG_CheckState(res);
26380 }
26381 if (_v) {
26382 {
26383 int res = SWIG_AsVal_long(argv[4], NULL);
26384 _v = SWIG_CheckState(res);
26385 }
26386 if (_v) {
26387 {
26388 if (!PyTuple_Check(argv[5]) && !PyList_Check(argv[5])) {
26389 _v = 0;
26390 } else {
26391 const bool is_tuple = PyTuple_Check(argv[5]);
26392 const size_t size = is_tuple ? PyTuple_Size(argv[5]) : PyList_Size(argv[5]);
26393 size_t i = 0;
26394 while (i < size && CanConvertToSearchMonitor(is_tuple ? PyTuple_GetItem(argv[5], i)
26395 :PyList_GetItem(argv[5], i))) {
26396 ++i;
26397 }
26398 _v = i == size;
26399 }
26400 }
26401 if (_v) {
26402 return _wrap_Solver_NestedOptimize__SWIG_5(self, args);
26403 }
26404 }
26405 }
26406 }
26407 }
26408 }
26409 }
26410 if (argc == 7) {
26411 int _v;
26412 void *vptr = 0;
26413 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
26414 _v = SWIG_CheckState(res);
26415 if (_v) {
26416 {
26417 _v = CanConvertToDecisionBuilder(argv[1]);
26418 if (_v == 0) PyErr_Clear();
26419 }
26420 if (_v) {
26421 void *vptr = 0;
26422 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
26423 _v = SWIG_CheckState(res);
26424 if (_v) {
26425 {
26426 int res = SWIG_AsVal_bool(argv[3], NULL);
26427 _v = SWIG_CheckState(res);
26428 }
26429 if (_v) {
26430 {
26431 int res = SWIG_AsVal_long(argv[4], NULL);
26432 _v = SWIG_CheckState(res);
26433 }
26434 if (_v) {
26435 {
26436 _v = CanConvertToSearchMonitor(argv[5]);
26437 if (_v == 0) PyErr_Clear();
26438 }
26439 if (_v) {
26440 {
26441 _v = CanConvertToSearchMonitor(argv[6]);
26442 if (_v == 0) PyErr_Clear();
26443 }
26444 if (_v) {
26445 return _wrap_Solver_NestedOptimize__SWIG_2(self, args);
26446 }
26447 }
26448 }
26449 }
26450 }
26451 }
26452 }
26453 }
26454 if (argc == 8) {
26455 int _v;
26456 void *vptr = 0;
26457 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
26458 _v = SWIG_CheckState(res);
26459 if (_v) {
26460 {
26461 _v = CanConvertToDecisionBuilder(argv[1]);
26462 if (_v == 0) PyErr_Clear();
26463 }
26464 if (_v) {
26465 void *vptr = 0;
26466 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
26467 _v = SWIG_CheckState(res);
26468 if (_v) {
26469 {
26470 int res = SWIG_AsVal_bool(argv[3], NULL);
26471 _v = SWIG_CheckState(res);
26472 }
26473 if (_v) {
26474 {
26475 int res = SWIG_AsVal_long(argv[4], NULL);
26476 _v = SWIG_CheckState(res);
26477 }
26478 if (_v) {
26479 {
26480 _v = CanConvertToSearchMonitor(argv[5]);
26481 if (_v == 0) PyErr_Clear();
26482 }
26483 if (_v) {
26484 {
26485 _v = CanConvertToSearchMonitor(argv[6]);
26486 if (_v == 0) PyErr_Clear();
26487 }
26488 if (_v) {
26489 {
26490 _v = CanConvertToSearchMonitor(argv[7]);
26491 if (_v == 0) PyErr_Clear();
26492 }
26493 if (_v) {
26494 return _wrap_Solver_NestedOptimize__SWIG_3(self, args);
26495 }
26496 }
26497 }
26498 }
26499 }
26500 }
26501 }
26502 }
26503 }
26504 if (argc == 9) {
26505 int _v;
26506 void *vptr = 0;
26507 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
26508 _v = SWIG_CheckState(res);
26509 if (_v) {
26510 {
26511 _v = CanConvertToDecisionBuilder(argv[1]);
26512 if (_v == 0) PyErr_Clear();
26513 }
26514 if (_v) {
26515 void *vptr = 0;
26516 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
26517 _v = SWIG_CheckState(res);
26518 if (_v) {
26519 {
26520 int res = SWIG_AsVal_bool(argv[3], NULL);
26521 _v = SWIG_CheckState(res);
26522 }
26523 if (_v) {
26524 {
26525 int res = SWIG_AsVal_long(argv[4], NULL);
26526 _v = SWIG_CheckState(res);
26527 }
26528 if (_v) {
26529 {
26530 _v = CanConvertToSearchMonitor(argv[5]);
26531 if (_v == 0) PyErr_Clear();
26532 }
26533 if (_v) {
26534 {
26535 _v = CanConvertToSearchMonitor(argv[6]);
26536 if (_v == 0) PyErr_Clear();
26537 }
26538 if (_v) {
26539 {
26540 _v = CanConvertToSearchMonitor(argv[7]);
26541 if (_v == 0) PyErr_Clear();
26542 }
26543 if (_v) {
26544 {
26545 _v = CanConvertToSearchMonitor(argv[8]);
26546 if (_v == 0) PyErr_Clear();
26547 }
26548 if (_v) {
26549 return _wrap_Solver_NestedOptimize__SWIG_4(self, args);
26550 }
26551 }
26552 }
26553 }
26554 }
26555 }
26556 }
26557 }
26558 }
26559 }
26560
26561fail:
26562 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_NestedOptimize'.\n"
26563 " Possible C/C++ prototypes are:\n"
26564 " operations_research::Solver::MakeNestedOptimize(operations_research::DecisionBuilder *const,operations_research::Assignment *const,bool,int64_t)\n"
26565 " operations_research::Solver::MakeNestedOptimize(operations_research::DecisionBuilder *const,operations_research::Assignment *const,bool,int64_t,operations_research::SearchMonitor *const)\n"
26566 " operations_research::Solver::MakeNestedOptimize(operations_research::DecisionBuilder *const,operations_research::Assignment *const,bool,int64_t,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n"
26567 " operations_research::Solver::MakeNestedOptimize(operations_research::DecisionBuilder *const,operations_research::Assignment *const,bool,int64_t,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n"
26568 " operations_research::Solver::MakeNestedOptimize(operations_research::DecisionBuilder *const,operations_research::Assignment *const,bool,int64_t,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n"
26569 " operations_research::Solver::MakeNestedOptimize(operations_research::DecisionBuilder *const,operations_research::Assignment *const,bool,int64_t,std::vector< operations_research::SearchMonitor * > const &)\n");
26570 return 0;
26571}
26572
26573
26574SWIGINTERN PyObject *_wrap_Solver_RestoreAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26575 PyObject *resultobj = 0;
26578 void *argp1 = 0 ;
26579 int res1 = 0 ;
26580 void *argp2 = 0 ;
26581 int res2 = 0 ;
26582 PyObject * obj0 = 0 ;
26583 PyObject * obj1 = 0 ;
26585
26586 if (!PyArg_UnpackTuple(args, "Solver_RestoreAssignment", 2, 2, &obj0, &obj1)) SWIG_fail;
26587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
26588 if (!SWIG_IsOK(res1)) {
26589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_RestoreAssignment" "', argument " "1"" of type '" "operations_research::Solver *""'");
26590 }
26591 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26593 if (!SWIG_IsOK(res2)) {
26594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_RestoreAssignment" "', argument " "2"" of type '" "operations_research::Assignment *""'");
26595 }
26596 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
26597 {
26598 try {
26599 result = (operations_research::DecisionBuilder *)(arg1)->MakeRestoreAssignment(arg2);
26600 }
26601 catch (Swig::DirectorException &e) {
26602 SWIG_fail;
26603 }
26604 }
26606 return resultobj;
26607fail:
26608 return NULL;
26609}
26610
26611
26612SWIGINTERN PyObject *_wrap_Solver_StoreAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26613 PyObject *resultobj = 0;
26616 void *argp1 = 0 ;
26617 int res1 = 0 ;
26618 void *argp2 = 0 ;
26619 int res2 = 0 ;
26620 PyObject * obj0 = 0 ;
26621 PyObject * obj1 = 0 ;
26623
26624 if (!PyArg_UnpackTuple(args, "Solver_StoreAssignment", 2, 2, &obj0, &obj1)) SWIG_fail;
26625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
26626 if (!SWIG_IsOK(res1)) {
26627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_StoreAssignment" "', argument " "1"" of type '" "operations_research::Solver *""'");
26628 }
26629 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26631 if (!SWIG_IsOK(res2)) {
26632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_StoreAssignment" "', argument " "2"" of type '" "operations_research::Assignment *""'");
26633 }
26634 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
26635 {
26636 try {
26637 result = (operations_research::DecisionBuilder *)(arg1)->MakeStoreAssignment(arg2);
26638 }
26639 catch (Swig::DirectorException &e) {
26640 SWIG_fail;
26641 }
26642 }
26644 return resultobj;
26645fail:
26646 return NULL;
26647}
26648
26649
26650SWIGINTERN PyObject *_wrap_Solver_Operator__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26651 PyObject *resultobj = 0;
26653 std::vector< operations_research::IntVar * > *arg2 = 0 ;
26655 void *argp1 = 0 ;
26656 int res1 = 0 ;
26657 std::vector< operations_research::IntVar * > temp2 ;
26658 int val3 ;
26659 int ecode3 = 0 ;
26660 PyObject * obj0 = 0 ;
26661 PyObject * obj1 = 0 ;
26662 PyObject * obj2 = 0 ;
26664
26665 if (!PyArg_UnpackTuple(args, "Solver_Operator", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
26666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
26667 if (!SWIG_IsOK(res1)) {
26668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Operator" "', argument " "1"" of type '" "operations_research::Solver *""'");
26669 }
26670 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26671 {
26672 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
26673 if (!PyErr_Occurred())
26674 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
26675 return NULL;
26676 }
26677 arg2 = &temp2;
26678 }
26679 ecode3 = SWIG_AsVal_int(obj2, &val3);
26680 if (!SWIG_IsOK(ecode3)) {
26681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_Operator" "', argument " "3"" of type '" "operations_research::Solver::LocalSearchOperators""'");
26682 }
26683 arg3 = static_cast< operations_research::Solver::LocalSearchOperators >(val3);
26684 {
26685 try {
26686 result = (operations_research::LocalSearchOperator *)(arg1)->MakeOperator((std::vector< operations_research::IntVar * > const &)*arg2,arg3);
26687 }
26688 catch (Swig::DirectorException &e) {
26689 SWIG_fail;
26690 }
26691 }
26693 return resultobj;
26694fail:
26695 return NULL;
26696}
26697
26698
26699SWIGINTERN PyObject *_wrap_Solver_Operator__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26700 PyObject *resultobj = 0;
26702 std::vector< operations_research::IntVar * > *arg2 = 0 ;
26703 std::vector< operations_research::IntVar * > *arg3 = 0 ;
26705 void *argp1 = 0 ;
26706 int res1 = 0 ;
26707 std::vector< operations_research::IntVar * > temp2 ;
26708 std::vector< operations_research::IntVar * > temp3 ;
26709 int val4 ;
26710 int ecode4 = 0 ;
26711 PyObject * obj0 = 0 ;
26712 PyObject * obj1 = 0 ;
26713 PyObject * obj2 = 0 ;
26714 PyObject * obj3 = 0 ;
26716
26717 if (!PyArg_UnpackTuple(args, "Solver_Operator", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
26718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
26719 if (!SWIG_IsOK(res1)) {
26720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Operator" "', argument " "1"" of type '" "operations_research::Solver *""'");
26721 }
26722 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26723 {
26724 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
26725 if (!PyErr_Occurred())
26726 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
26727 return NULL;
26728 }
26729 arg2 = &temp2;
26730 }
26731 {
26732 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
26733 if (!PyErr_Occurred())
26734 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
26735 return NULL;
26736 }
26737 arg3 = &temp3;
26738 }
26739 ecode4 = SWIG_AsVal_int(obj3, &val4);
26740 if (!SWIG_IsOK(ecode4)) {
26741 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_Operator" "', argument " "4"" of type '" "operations_research::Solver::LocalSearchOperators""'");
26742 }
26743 arg4 = static_cast< operations_research::Solver::LocalSearchOperators >(val4);
26744 {
26745 try {
26746 result = (operations_research::LocalSearchOperator *)(arg1)->MakeOperator((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3,arg4);
26747 }
26748 catch (Swig::DirectorException &e) {
26749 SWIG_fail;
26750 }
26751 }
26753 return resultobj;
26754fail:
26755 return NULL;
26756}
26757
26758
26759SWIGINTERN PyObject *_wrap_Solver_Operator__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26760 PyObject *resultobj = 0;
26762 std::vector< operations_research::IntVar * > *arg2 = 0 ;
26765 void *argp1 = 0 ;
26766 int res1 = 0 ;
26767 std::vector< operations_research::IntVar * > temp2 ;
26768 int val4 ;
26769 int ecode4 = 0 ;
26770 PyObject * obj0 = 0 ;
26771 PyObject * obj1 = 0 ;
26772 PyObject * obj2 = 0 ;
26773 PyObject * obj3 = 0 ;
26775
26776 if (!PyArg_UnpackTuple(args, "Solver_Operator", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
26777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
26778 if (!SWIG_IsOK(res1)) {
26779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Operator" "', argument " "1"" of type '" "operations_research::Solver *""'");
26780 }
26781 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26782 {
26783 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
26784 if (!PyErr_Occurred())
26785 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
26786 return NULL;
26787 }
26788 arg2 = &temp2;
26789 }
26790 {
26791 SharedPyPtr input(obj2);
26792 arg3 = [input](int64_t i, int64_t j, int64_t k) {
26793 return InvokePythonCallableReturning<int64_t>(input.get(), "LLL", i, j, k);
26794 };
26795 }
26796 ecode4 = SWIG_AsVal_int(obj3, &val4);
26797 if (!SWIG_IsOK(ecode4)) {
26798 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_Operator" "', argument " "4"" of type '" "operations_research::Solver::EvaluatorLocalSearchOperators""'");
26799 }
26801 {
26802 try {
26803 result = (operations_research::LocalSearchOperator *)(arg1)->MakeOperator((std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4);
26804 }
26805 catch (Swig::DirectorException &e) {
26806 SWIG_fail;
26807 }
26808 }
26810 return resultobj;
26811fail:
26812 return NULL;
26813}
26814
26815
26816SWIGINTERN PyObject *_wrap_Solver_Operator__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26817 PyObject *resultobj = 0;
26819 std::vector< operations_research::IntVar * > *arg2 = 0 ;
26820 std::vector< operations_research::IntVar * > *arg3 = 0 ;
26823 void *argp1 = 0 ;
26824 int res1 = 0 ;
26825 std::vector< operations_research::IntVar * > temp2 ;
26826 std::vector< operations_research::IntVar * > temp3 ;
26827 int val5 ;
26828 int ecode5 = 0 ;
26829 PyObject * obj0 = 0 ;
26830 PyObject * obj1 = 0 ;
26831 PyObject * obj2 = 0 ;
26832 PyObject * obj3 = 0 ;
26833 PyObject * obj4 = 0 ;
26835
26836 if (!PyArg_UnpackTuple(args, "Solver_Operator", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
26837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
26838 if (!SWIG_IsOK(res1)) {
26839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Operator" "', argument " "1"" of type '" "operations_research::Solver *""'");
26840 }
26841 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26842 {
26843 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
26844 if (!PyErr_Occurred())
26845 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
26846 return NULL;
26847 }
26848 arg2 = &temp2;
26849 }
26850 {
26851 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
26852 if (!PyErr_Occurred())
26853 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
26854 return NULL;
26855 }
26856 arg3 = &temp3;
26857 }
26858 {
26859 SharedPyPtr input(obj3);
26860 arg4 = [input](int64_t i, int64_t j, int64_t k) {
26861 return InvokePythonCallableReturning<int64_t>(input.get(), "LLL", i, j, k);
26862 };
26863 }
26864 ecode5 = SWIG_AsVal_int(obj4, &val5);
26865 if (!SWIG_IsOK(ecode5)) {
26866 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_Operator" "', argument " "5"" of type '" "operations_research::Solver::EvaluatorLocalSearchOperators""'");
26867 }
26869 {
26870 try {
26871 result = (operations_research::LocalSearchOperator *)(arg1)->MakeOperator((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3,arg4,arg5);
26872 }
26873 catch (Swig::DirectorException &e) {
26874 SWIG_fail;
26875 }
26876 }
26878 return resultobj;
26879fail:
26880 return NULL;
26881}
26882
26883
26884SWIGINTERN PyObject *_wrap_Solver_Operator(PyObject *self, PyObject *args) {
26885 Py_ssize_t argc;
26886 PyObject *argv[6] = {
26887 0
26888 };
26889 Py_ssize_t ii;
26890
26891 if (!PyTuple_Check(args)) SWIG_fail;
26892 argc = PyObject_Length(args);
26893 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
26894 argv[ii] = PyTuple_GET_ITEM(args,ii);
26895 }
26896 if (argc == 3) {
26897 int _v;
26898 void *vptr = 0;
26899 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
26900 _v = SWIG_CheckState(res);
26901 if (_v) {
26902 {
26903 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
26904 _v = 0;
26905 } else {
26906 const bool is_tuple = PyTuple_Check(argv[1]);
26907 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
26908 size_t i = 0;
26909 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
26910 :PyList_GetItem(argv[1], i))) {
26911 ++i;
26912 }
26913 _v = i == size;
26914 }
26915 }
26916 if (_v) {
26917 {
26918 int res = SWIG_AsVal_int(argv[2], NULL);
26919 _v = SWIG_CheckState(res);
26920 }
26921 if (_v) {
26922 return _wrap_Solver_Operator__SWIG_0(self, args);
26923 }
26924 }
26925 }
26926 }
26927 if (argc == 4) {
26928 int _v;
26929 void *vptr = 0;
26930 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
26931 _v = SWIG_CheckState(res);
26932 if (_v) {
26933 {
26934 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
26935 _v = 0;
26936 } else {
26937 const bool is_tuple = PyTuple_Check(argv[1]);
26938 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
26939 size_t i = 0;
26940 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
26941 :PyList_GetItem(argv[1], i))) {
26942 ++i;
26943 }
26944 _v = i == size;
26945 }
26946 }
26947 if (_v) {
26948 {
26949 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
26950 _v = 0;
26951 } else {
26952 const bool is_tuple = PyTuple_Check(argv[2]);
26953 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
26954 size_t i = 0;
26955 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[2], i)
26956 :PyList_GetItem(argv[2], i))) {
26957 ++i;
26958 }
26959 _v = i == size;
26960 }
26961 }
26962 if (_v) {
26963 {
26964 int res = SWIG_AsVal_int(argv[3], NULL);
26965 _v = SWIG_CheckState(res);
26966 }
26967 if (_v) {
26968 return _wrap_Solver_Operator__SWIG_1(self, args);
26969 }
26970 }
26971 }
26972 }
26973 }
26974 if (argc == 4) {
26975 int _v;
26976 void *vptr = 0;
26977 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
26978 _v = SWIG_CheckState(res);
26979 if (_v) {
26980 {
26981 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
26982 _v = 0;
26983 } else {
26984 const bool is_tuple = PyTuple_Check(argv[1]);
26985 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
26986 size_t i = 0;
26987 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
26988 :PyList_GetItem(argv[1], i))) {
26989 ++i;
26990 }
26991 _v = i == size;
26992 }
26993 }
26994 if (_v) {
26995 {
26996 _v = PyCallable_Check(argv[2]);
26997 }
26998 if (_v) {
26999 {
27000 int res = SWIG_AsVal_int(argv[3], NULL);
27001 _v = SWIG_CheckState(res);
27002 }
27003 if (_v) {
27004 return _wrap_Solver_Operator__SWIG_2(self, args);
27005 }
27006 }
27007 }
27008 }
27009 }
27010 if (argc == 5) {
27011 int _v;
27012 void *vptr = 0;
27013 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
27014 _v = SWIG_CheckState(res);
27015 if (_v) {
27016 {
27017 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27018 _v = 0;
27019 } else {
27020 const bool is_tuple = PyTuple_Check(argv[1]);
27021 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27022 size_t i = 0;
27023 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
27024 :PyList_GetItem(argv[1], i))) {
27025 ++i;
27026 }
27027 _v = i == size;
27028 }
27029 }
27030 if (_v) {
27031 {
27032 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
27033 _v = 0;
27034 } else {
27035 const bool is_tuple = PyTuple_Check(argv[2]);
27036 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
27037 size_t i = 0;
27038 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[2], i)
27039 :PyList_GetItem(argv[2], i))) {
27040 ++i;
27041 }
27042 _v = i == size;
27043 }
27044 }
27045 if (_v) {
27046 {
27047 _v = PyCallable_Check(argv[3]);
27048 }
27049 if (_v) {
27050 {
27051 int res = SWIG_AsVal_int(argv[4], NULL);
27052 _v = SWIG_CheckState(res);
27053 }
27054 if (_v) {
27055 return _wrap_Solver_Operator__SWIG_3(self, args);
27056 }
27057 }
27058 }
27059 }
27060 }
27061 }
27062
27063fail:
27064 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_Operator'.\n"
27065 " Possible C/C++ prototypes are:\n"
27066 " operations_research::Solver::MakeOperator(std::vector< operations_research::IntVar * > const &,operations_research::Solver::LocalSearchOperators)\n"
27067 " operations_research::Solver::MakeOperator(std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &,operations_research::Solver::LocalSearchOperators)\n"
27068 " operations_research::Solver::MakeOperator(std::vector< operations_research::IntVar * > const &,operations_research::Solver::IndexEvaluator3,operations_research::Solver::EvaluatorLocalSearchOperators)\n"
27069 " operations_research::Solver::MakeOperator(std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &,operations_research::Solver::IndexEvaluator3,operations_research::Solver::EvaluatorLocalSearchOperators)\n");
27070 return 0;
27071}
27072
27073
27074SWIGINTERN PyObject *_wrap_Solver_RandomLnsOperator__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27075 PyObject *resultobj = 0;
27077 std::vector< operations_research::IntVar * > *arg2 = 0 ;
27078 int arg3 ;
27079 void *argp1 = 0 ;
27080 int res1 = 0 ;
27081 std::vector< operations_research::IntVar * > temp2 ;
27082 int val3 ;
27083 int ecode3 = 0 ;
27084 PyObject * obj0 = 0 ;
27085 PyObject * obj1 = 0 ;
27086 PyObject * obj2 = 0 ;
27088
27089 if (!PyArg_UnpackTuple(args, "Solver_RandomLnsOperator", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
27090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
27091 if (!SWIG_IsOK(res1)) {
27092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_RandomLnsOperator" "', argument " "1"" of type '" "operations_research::Solver *""'");
27093 }
27094 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27095 {
27096 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
27097 if (!PyErr_Occurred())
27098 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
27099 return NULL;
27100 }
27101 arg2 = &temp2;
27102 }
27103 ecode3 = SWIG_AsVal_int(obj2, &val3);
27104 if (!SWIG_IsOK(ecode3)) {
27105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_RandomLnsOperator" "', argument " "3"" of type '" "int""'");
27106 }
27107 arg3 = static_cast< int >(val3);
27108 {
27109 try {
27110 result = (operations_research::LocalSearchOperator *)(arg1)->MakeRandomLnsOperator((std::vector< operations_research::IntVar * > const &)*arg2,arg3);
27111 }
27112 catch (Swig::DirectorException &e) {
27113 SWIG_fail;
27114 }
27115 }
27117 return resultobj;
27118fail:
27119 return NULL;
27120}
27121
27122
27123SWIGINTERN PyObject *_wrap_Solver_RandomLnsOperator__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27124 PyObject *resultobj = 0;
27126 std::vector< operations_research::IntVar * > *arg2 = 0 ;
27127 int arg3 ;
27128 int32_t arg4 ;
27129 void *argp1 = 0 ;
27130 int res1 = 0 ;
27131 std::vector< operations_research::IntVar * > temp2 ;
27132 int val3 ;
27133 int ecode3 = 0 ;
27134 int val4 ;
27135 int ecode4 = 0 ;
27136 PyObject * obj0 = 0 ;
27137 PyObject * obj1 = 0 ;
27138 PyObject * obj2 = 0 ;
27139 PyObject * obj3 = 0 ;
27141
27142 if (!PyArg_UnpackTuple(args, "Solver_RandomLnsOperator", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
27143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
27144 if (!SWIG_IsOK(res1)) {
27145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_RandomLnsOperator" "', argument " "1"" of type '" "operations_research::Solver *""'");
27146 }
27147 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27148 {
27149 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
27150 if (!PyErr_Occurred())
27151 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
27152 return NULL;
27153 }
27154 arg2 = &temp2;
27155 }
27156 ecode3 = SWIG_AsVal_int(obj2, &val3);
27157 if (!SWIG_IsOK(ecode3)) {
27158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_RandomLnsOperator" "', argument " "3"" of type '" "int""'");
27159 }
27160 arg3 = static_cast< int >(val3);
27161 ecode4 = SWIG_AsVal_int(obj3, &val4);
27162 if (!SWIG_IsOK(ecode4)) {
27163 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_RandomLnsOperator" "', argument " "4"" of type '" "int32_t""'");
27164 }
27165 arg4 = static_cast< int32_t >(val4);
27166 {
27167 try {
27168 result = (operations_research::LocalSearchOperator *)(arg1)->MakeRandomLnsOperator((std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4);
27169 }
27170 catch (Swig::DirectorException &e) {
27171 SWIG_fail;
27172 }
27173 }
27175 return resultobj;
27176fail:
27177 return NULL;
27178}
27179
27180
27181SWIGINTERN PyObject *_wrap_Solver_RandomLnsOperator(PyObject *self, PyObject *args) {
27182 Py_ssize_t argc;
27183 PyObject *argv[5] = {
27184 0
27185 };
27186 Py_ssize_t ii;
27187
27188 if (!PyTuple_Check(args)) SWIG_fail;
27189 argc = PyObject_Length(args);
27190 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
27191 argv[ii] = PyTuple_GET_ITEM(args,ii);
27192 }
27193 if (argc == 3) {
27194 int _v;
27195 void *vptr = 0;
27196 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
27197 _v = SWIG_CheckState(res);
27198 if (_v) {
27199 {
27200 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27201 _v = 0;
27202 } else {
27203 const bool is_tuple = PyTuple_Check(argv[1]);
27204 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27205 size_t i = 0;
27206 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
27207 :PyList_GetItem(argv[1], i))) {
27208 ++i;
27209 }
27210 _v = i == size;
27211 }
27212 }
27213 if (_v) {
27214 {
27215 int res = SWIG_AsVal_int(argv[2], NULL);
27216 _v = SWIG_CheckState(res);
27217 }
27218 if (_v) {
27219 return _wrap_Solver_RandomLnsOperator__SWIG_0(self, args);
27220 }
27221 }
27222 }
27223 }
27224 if (argc == 4) {
27225 int _v;
27226 void *vptr = 0;
27227 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
27228 _v = SWIG_CheckState(res);
27229 if (_v) {
27230 {
27231 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27232 _v = 0;
27233 } else {
27234 const bool is_tuple = PyTuple_Check(argv[1]);
27235 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27236 size_t i = 0;
27237 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
27238 :PyList_GetItem(argv[1], i))) {
27239 ++i;
27240 }
27241 _v = i == size;
27242 }
27243 }
27244 if (_v) {
27245 {
27246 int res = SWIG_AsVal_int(argv[2], NULL);
27247 _v = SWIG_CheckState(res);
27248 }
27249 if (_v) {
27250 {
27251 int res = SWIG_AsVal_int(argv[3], NULL);
27252 _v = SWIG_CheckState(res);
27253 }
27254 if (_v) {
27255 return _wrap_Solver_RandomLnsOperator__SWIG_1(self, args);
27256 }
27257 }
27258 }
27259 }
27260 }
27261
27262fail:
27263 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_RandomLnsOperator'.\n"
27264 " Possible C/C++ prototypes are:\n"
27265 " operations_research::Solver::MakeRandomLnsOperator(std::vector< operations_research::IntVar * > const &,int)\n"
27266 " operations_research::Solver::MakeRandomLnsOperator(std::vector< operations_research::IntVar * > const &,int,int32_t)\n");
27267 return 0;
27268}
27269
27270
27272 PyObject *resultobj = 0;
27275 void *argp1 = 0 ;
27276 int res1 = 0 ;
27277 void *argp2 = 0 ;
27278 int res2 = 0 ;
27279 PyObject * obj0 = 0 ;
27280 PyObject * obj1 = 0 ;
27282
27283 if (!PyArg_UnpackTuple(args, "Solver_MoveTowardTargetOperator", 2, 2, &obj0, &obj1)) SWIG_fail;
27284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
27285 if (!SWIG_IsOK(res1)) {
27286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_MoveTowardTargetOperator" "', argument " "1"" of type '" "operations_research::Solver *""'");
27287 }
27288 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27290 if (!SWIG_IsOK(res2)) {
27291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_MoveTowardTargetOperator" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
27292 }
27293 if (!argp2) {
27294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Solver_MoveTowardTargetOperator" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
27295 }
27296 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
27297 {
27298 try {
27299 result = (operations_research::LocalSearchOperator *)(arg1)->MakeMoveTowardTargetOperator((operations_research::Assignment const &)*arg2);
27300 }
27301 catch (Swig::DirectorException &e) {
27302 SWIG_fail;
27303 }
27304 }
27306 return resultobj;
27307fail:
27308 return NULL;
27309}
27310
27311
27313 PyObject *resultobj = 0;
27315 std::vector< operations_research::IntVar * > *arg2 = 0 ;
27316 std::vector< int64_t > *arg3 = 0 ;
27317 void *argp1 = 0 ;
27318 int res1 = 0 ;
27319 std::vector< operations_research::IntVar * > temp2 ;
27320 std::vector< int64_t > temp3 ;
27321 PyObject * obj0 = 0 ;
27322 PyObject * obj1 = 0 ;
27323 PyObject * obj2 = 0 ;
27325
27326 if (!PyArg_UnpackTuple(args, "Solver_MoveTowardTargetOperator", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
27327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
27328 if (!SWIG_IsOK(res1)) {
27329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_MoveTowardTargetOperator" "', argument " "1"" of type '" "operations_research::Solver *""'");
27330 }
27331 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27332 {
27333 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
27334 if (!PyErr_Occurred())
27335 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
27336 return NULL;
27337 }
27338 arg2 = &temp2;
27339 }
27340 {
27341 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
27342 if (!PyErr_Occurred())
27343 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
27344 return NULL;
27345 }
27346 arg3 = &temp3;
27347 }
27348 {
27349 try {
27350 result = (operations_research::LocalSearchOperator *)(arg1)->MakeMoveTowardTargetOperator((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int64_t > const &)*arg3);
27351 }
27352 catch (Swig::DirectorException &e) {
27353 SWIG_fail;
27354 }
27355 }
27357 return resultobj;
27358fail:
27359 return NULL;
27360}
27361
27362
27363SWIGINTERN PyObject *_wrap_Solver_MoveTowardTargetOperator(PyObject *self, PyObject *args) {
27364 Py_ssize_t argc;
27365 PyObject *argv[4] = {
27366 0
27367 };
27368 Py_ssize_t ii;
27369
27370 if (!PyTuple_Check(args)) SWIG_fail;
27371 argc = PyObject_Length(args);
27372 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
27373 argv[ii] = PyTuple_GET_ITEM(args,ii);
27374 }
27375 if (argc == 2) {
27376 int _v;
27377 void *vptr = 0;
27378 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
27379 _v = SWIG_CheckState(res);
27380 if (_v) {
27382 _v = SWIG_CheckState(res);
27383 if (_v) {
27385 }
27386 }
27387 }
27388 if (argc == 3) {
27389 int _v;
27390 void *vptr = 0;
27391 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
27392 _v = SWIG_CheckState(res);
27393 if (_v) {
27394 {
27395 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27396 _v = 0;
27397 } else {
27398 const bool is_tuple = PyTuple_Check(argv[1]);
27399 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27400 size_t i = 0;
27401 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
27402 :PyList_GetItem(argv[1], i))) {
27403 ++i;
27404 }
27405 _v = i == size;
27406 }
27407 }
27408 if (_v) {
27409 {
27410 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
27411 _v = 0;
27412 } else {
27413 const bool is_tuple = PyTuple_Check(argv[2]);
27414 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
27415 size_t i = 0;
27416 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
27417 :PyList_GetItem(argv[2], i))) {
27418 ++i;
27419 }
27420 _v = i == size;
27421 }
27422 }
27423 if (_v) {
27425 }
27426 }
27427 }
27428 }
27429
27430fail:
27431 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_MoveTowardTargetOperator'.\n"
27432 " Possible C/C++ prototypes are:\n"
27433 " operations_research::Solver::MakeMoveTowardTargetOperator(operations_research::Assignment const &)\n"
27434 " operations_research::Solver::MakeMoveTowardTargetOperator(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &)\n");
27435 return 0;
27436}
27437
27438
27439SWIGINTERN PyObject *_wrap_Solver_ConcatenateOperators__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27440 PyObject *resultobj = 0;
27442 std::vector< operations_research::LocalSearchOperator * > *arg2 = 0 ;
27443 void *argp1 = 0 ;
27444 int res1 = 0 ;
27445 std::vector< operations_research::LocalSearchOperator * > temp2 ;
27446 PyObject * obj0 = 0 ;
27447 PyObject * obj1 = 0 ;
27449
27450 if (!PyArg_UnpackTuple(args, "Solver_ConcatenateOperators", 2, 2, &obj0, &obj1)) SWIG_fail;
27451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
27452 if (!SWIG_IsOK(res1)) {
27453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ConcatenateOperators" "', argument " "1"" of type '" "operations_research::Solver *""'");
27454 }
27455 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27456 {
27457 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::LocalSearchOperator*>)) {
27458 if (!PyErr_Occurred())
27459 SWIG_Error(SWIG_TypeError, "sequence(operations_research::LocalSearchOperator*) expected");
27460 return NULL;
27461 }
27462 arg2 = &temp2;
27463 }
27464 {
27465 try {
27466 result = (operations_research::LocalSearchOperator *)(arg1)->ConcatenateOperators((std::vector< operations_research::LocalSearchOperator * > const &)*arg2);
27467 }
27468 catch (Swig::DirectorException &e) {
27469 SWIG_fail;
27470 }
27471 }
27473 return resultobj;
27474fail:
27475 return NULL;
27476}
27477
27478
27479SWIGINTERN PyObject *_wrap_Solver_ConcatenateOperators__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27480 PyObject *resultobj = 0;
27482 std::vector< operations_research::LocalSearchOperator * > *arg2 = 0 ;
27483 bool arg3 ;
27484 void *argp1 = 0 ;
27485 int res1 = 0 ;
27486 std::vector< operations_research::LocalSearchOperator * > temp2 ;
27487 bool val3 ;
27488 int ecode3 = 0 ;
27489 PyObject * obj0 = 0 ;
27490 PyObject * obj1 = 0 ;
27491 PyObject * obj2 = 0 ;
27493
27494 if (!PyArg_UnpackTuple(args, "Solver_ConcatenateOperators", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
27495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
27496 if (!SWIG_IsOK(res1)) {
27497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ConcatenateOperators" "', argument " "1"" of type '" "operations_research::Solver *""'");
27498 }
27499 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27500 {
27501 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::LocalSearchOperator*>)) {
27502 if (!PyErr_Occurred())
27503 SWIG_Error(SWIG_TypeError, "sequence(operations_research::LocalSearchOperator*) expected");
27504 return NULL;
27505 }
27506 arg2 = &temp2;
27507 }
27508 ecode3 = SWIG_AsVal_bool(obj2, &val3);
27509 if (!SWIG_IsOK(ecode3)) {
27510 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_ConcatenateOperators" "', argument " "3"" of type '" "bool""'");
27511 }
27512 arg3 = static_cast< bool >(val3);
27513 {
27514 try {
27515 result = (operations_research::LocalSearchOperator *)(arg1)->ConcatenateOperators((std::vector< operations_research::LocalSearchOperator * > const &)*arg2,arg3);
27516 }
27517 catch (Swig::DirectorException &e) {
27518 SWIG_fail;
27519 }
27520 }
27522 return resultobj;
27523fail:
27524 return NULL;
27525}
27526
27527
27528SWIGINTERN PyObject *_wrap_Solver_ConcatenateOperators__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27529 PyObject *resultobj = 0;
27531 std::vector< operations_research::LocalSearchOperator * > *arg2 = 0 ;
27532 std::function< int64_t (int,int) > arg3 ;
27533 void *argp1 = 0 ;
27534 int res1 = 0 ;
27535 std::vector< operations_research::LocalSearchOperator * > temp2 ;
27536 PyObject * obj0 = 0 ;
27537 PyObject * obj1 = 0 ;
27538 PyObject * obj2 = 0 ;
27540
27541 if (!PyArg_UnpackTuple(args, "Solver_ConcatenateOperators", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
27542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
27543 if (!SWIG_IsOK(res1)) {
27544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ConcatenateOperators" "', argument " "1"" of type '" "operations_research::Solver *""'");
27545 }
27546 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27547 {
27548 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::LocalSearchOperator*>)) {
27549 if (!PyErr_Occurred())
27550 SWIG_Error(SWIG_TypeError, "sequence(operations_research::LocalSearchOperator*) expected");
27551 return NULL;
27552 }
27553 arg2 = &temp2;
27554 }
27555 {
27556 SharedPyPtr input(obj2);
27557 arg3 = [input](int i, int j) {
27558 return InvokePythonCallableReturning<int64_t>(input.get(), "ii", i, j);
27559 };
27560 }
27561 {
27562 try {
27563 result = (operations_research::LocalSearchOperator *)(arg1)->ConcatenateOperators((std::vector< operations_research::LocalSearchOperator * > const &)*arg2,arg3);
27564 }
27565 catch (Swig::DirectorException &e) {
27566 SWIG_fail;
27567 }
27568 }
27570 return resultobj;
27571fail:
27572 return NULL;
27573}
27574
27575
27576SWIGINTERN PyObject *_wrap_Solver_ConcatenateOperators(PyObject *self, PyObject *args) {
27577 Py_ssize_t argc;
27578 PyObject *argv[4] = {
27579 0
27580 };
27581 Py_ssize_t ii;
27582
27583 if (!PyTuple_Check(args)) SWIG_fail;
27584 argc = PyObject_Length(args);
27585 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
27586 argv[ii] = PyTuple_GET_ITEM(args,ii);
27587 }
27588 if (argc == 2) {
27589 int _v;
27590 void *vptr = 0;
27591 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
27592 _v = SWIG_CheckState(res);
27593 if (_v) {
27594 {
27595 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27596 _v = 0;
27597 } else {
27598 const bool is_tuple = PyTuple_Check(argv[1]);
27599 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27600 size_t i = 0;
27601 while (i < size && CanConvertToLocalSearchOperator(is_tuple ? PyTuple_GetItem(argv[1], i)
27602 :PyList_GetItem(argv[1], i))) {
27603 ++i;
27604 }
27605 _v = i == size;
27606 }
27607 }
27608 if (_v) {
27610 }
27611 }
27612 }
27613 if (argc == 3) {
27614 int _v;
27615 void *vptr = 0;
27616 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
27617 _v = SWIG_CheckState(res);
27618 if (_v) {
27619 {
27620 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27621 _v = 0;
27622 } else {
27623 const bool is_tuple = PyTuple_Check(argv[1]);
27624 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27625 size_t i = 0;
27626 while (i < size && CanConvertToLocalSearchOperator(is_tuple ? PyTuple_GetItem(argv[1], i)
27627 :PyList_GetItem(argv[1], i))) {
27628 ++i;
27629 }
27630 _v = i == size;
27631 }
27632 }
27633 if (_v) {
27634 {
27635 _v = PyCallable_Check(argv[2]);
27636 }
27637 if (_v) {
27639 }
27640 }
27641 }
27642 }
27643 if (argc == 3) {
27644 int _v;
27645 void *vptr = 0;
27646 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
27647 _v = SWIG_CheckState(res);
27648 if (_v) {
27649 {
27650 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27651 _v = 0;
27652 } else {
27653 const bool is_tuple = PyTuple_Check(argv[1]);
27654 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27655 size_t i = 0;
27656 while (i < size && CanConvertToLocalSearchOperator(is_tuple ? PyTuple_GetItem(argv[1], i)
27657 :PyList_GetItem(argv[1], i))) {
27658 ++i;
27659 }
27660 _v = i == size;
27661 }
27662 }
27663 if (_v) {
27664 {
27665 int res = SWIG_AsVal_bool(argv[2], NULL);
27666 _v = SWIG_CheckState(res);
27667 }
27668 if (_v) {
27670 }
27671 }
27672 }
27673 }
27674
27675fail:
27676 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_ConcatenateOperators'.\n"
27677 " Possible C/C++ prototypes are:\n"
27678 " operations_research::Solver::ConcatenateOperators(std::vector< operations_research::LocalSearchOperator * > const &)\n"
27679 " operations_research::Solver::ConcatenateOperators(std::vector< operations_research::LocalSearchOperator * > const &,bool)\n"
27680 " operations_research::Solver::ConcatenateOperators(std::vector< operations_research::LocalSearchOperator * > const &,std::function< int64_t (int,int) >)\n");
27681 return 0;
27682}
27683
27684
27686 PyObject *resultobj = 0;
27688 std::vector< operations_research::LocalSearchOperator * > *arg2 = 0 ;
27689 void *argp1 = 0 ;
27690 int res1 = 0 ;
27691 std::vector< operations_research::LocalSearchOperator * > temp2 ;
27692 PyObject * obj0 = 0 ;
27693 PyObject * obj1 = 0 ;
27695
27696 if (!PyArg_UnpackTuple(args, "Solver_RandomConcatenateOperators", 2, 2, &obj0, &obj1)) SWIG_fail;
27697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
27698 if (!SWIG_IsOK(res1)) {
27699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_RandomConcatenateOperators" "', argument " "1"" of type '" "operations_research::Solver *""'");
27700 }
27701 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27702 {
27703 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::LocalSearchOperator*>)) {
27704 if (!PyErr_Occurred())
27705 SWIG_Error(SWIG_TypeError, "sequence(operations_research::LocalSearchOperator*) expected");
27706 return NULL;
27707 }
27708 arg2 = &temp2;
27709 }
27710 {
27711 try {
27712 result = (operations_research::LocalSearchOperator *)(arg1)->RandomConcatenateOperators((std::vector< operations_research::LocalSearchOperator * > const &)*arg2);
27713 }
27714 catch (Swig::DirectorException &e) {
27715 SWIG_fail;
27716 }
27717 }
27719 return resultobj;
27720fail:
27721 return NULL;
27722}
27723
27724
27726 PyObject *resultobj = 0;
27728 std::vector< operations_research::LocalSearchOperator * > *arg2 = 0 ;
27729 int32_t arg3 ;
27730 void *argp1 = 0 ;
27731 int res1 = 0 ;
27732 std::vector< operations_research::LocalSearchOperator * > temp2 ;
27733 int val3 ;
27734 int ecode3 = 0 ;
27735 PyObject * obj0 = 0 ;
27736 PyObject * obj1 = 0 ;
27737 PyObject * obj2 = 0 ;
27739
27740 if (!PyArg_UnpackTuple(args, "Solver_RandomConcatenateOperators", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
27741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
27742 if (!SWIG_IsOK(res1)) {
27743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_RandomConcatenateOperators" "', argument " "1"" of type '" "operations_research::Solver *""'");
27744 }
27745 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27746 {
27747 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::LocalSearchOperator*>)) {
27748 if (!PyErr_Occurred())
27749 SWIG_Error(SWIG_TypeError, "sequence(operations_research::LocalSearchOperator*) expected");
27750 return NULL;
27751 }
27752 arg2 = &temp2;
27753 }
27754 ecode3 = SWIG_AsVal_int(obj2, &val3);
27755 if (!SWIG_IsOK(ecode3)) {
27756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_RandomConcatenateOperators" "', argument " "3"" of type '" "int32_t""'");
27757 }
27758 arg3 = static_cast< int32_t >(val3);
27759 {
27760 try {
27761 result = (operations_research::LocalSearchOperator *)(arg1)->RandomConcatenateOperators((std::vector< operations_research::LocalSearchOperator * > const &)*arg2,arg3);
27762 }
27763 catch (Swig::DirectorException &e) {
27764 SWIG_fail;
27765 }
27766 }
27768 return resultobj;
27769fail:
27770 return NULL;
27771}
27772
27773
27774SWIGINTERN PyObject *_wrap_Solver_RandomConcatenateOperators(PyObject *self, PyObject *args) {
27775 Py_ssize_t argc;
27776 PyObject *argv[4] = {
27777 0
27778 };
27779 Py_ssize_t ii;
27780
27781 if (!PyTuple_Check(args)) SWIG_fail;
27782 argc = PyObject_Length(args);
27783 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
27784 argv[ii] = PyTuple_GET_ITEM(args,ii);
27785 }
27786 if (argc == 2) {
27787 int _v;
27788 void *vptr = 0;
27789 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
27790 _v = SWIG_CheckState(res);
27791 if (_v) {
27792 {
27793 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27794 _v = 0;
27795 } else {
27796 const bool is_tuple = PyTuple_Check(argv[1]);
27797 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27798 size_t i = 0;
27799 while (i < size && CanConvertToLocalSearchOperator(is_tuple ? PyTuple_GetItem(argv[1], i)
27800 :PyList_GetItem(argv[1], i))) {
27801 ++i;
27802 }
27803 _v = i == size;
27804 }
27805 }
27806 if (_v) {
27808 }
27809 }
27810 }
27811 if (argc == 3) {
27812 int _v;
27813 void *vptr = 0;
27814 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
27815 _v = SWIG_CheckState(res);
27816 if (_v) {
27817 {
27818 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27819 _v = 0;
27820 } else {
27821 const bool is_tuple = PyTuple_Check(argv[1]);
27822 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27823 size_t i = 0;
27824 while (i < size && CanConvertToLocalSearchOperator(is_tuple ? PyTuple_GetItem(argv[1], i)
27825 :PyList_GetItem(argv[1], i))) {
27826 ++i;
27827 }
27828 _v = i == size;
27829 }
27830 }
27831 if (_v) {
27832 {
27833 int res = SWIG_AsVal_int(argv[2], NULL);
27834 _v = SWIG_CheckState(res);
27835 }
27836 if (_v) {
27838 }
27839 }
27840 }
27841 }
27842
27843fail:
27844 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_RandomConcatenateOperators'.\n"
27845 " Possible C/C++ prototypes are:\n"
27846 " operations_research::Solver::RandomConcatenateOperators(std::vector< operations_research::LocalSearchOperator * > const &)\n"
27847 " operations_research::Solver::RandomConcatenateOperators(std::vector< operations_research::LocalSearchOperator * > const &,int32_t)\n");
27848 return 0;
27849}
27850
27851
27852SWIGINTERN PyObject *_wrap_Solver_NeighborhoodLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27853 PyObject *resultobj = 0;
27856 int64_t arg3 ;
27857 void *argp1 = 0 ;
27858 int res1 = 0 ;
27859 long val3 ;
27860 int ecode3 = 0 ;
27861 PyObject * obj0 = 0 ;
27862 PyObject * obj1 = 0 ;
27863 PyObject * obj2 = 0 ;
27865
27866 if (!PyArg_UnpackTuple(args, "Solver_NeighborhoodLimit", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
27867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
27868 if (!SWIG_IsOK(res1)) {
27869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_NeighborhoodLimit" "', argument " "1"" of type '" "operations_research::Solver *""'");
27870 }
27871 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27872 {
27873 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
27874 }
27875 ecode3 = SWIG_AsVal_long(obj2, &val3);
27876 if (!SWIG_IsOK(ecode3)) {
27877 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_NeighborhoodLimit" "', argument " "3"" of type '" "int64_t""'");
27878 }
27879 arg3 = static_cast< int64_t >(val3);
27880 {
27881 try {
27882 result = (operations_research::LocalSearchOperator *)(arg1)->MakeNeighborhoodLimit(arg2,arg3);
27883 }
27884 catch (Swig::DirectorException &e) {
27885 SWIG_fail;
27886 }
27887 }
27889 return resultobj;
27890fail:
27891 return NULL;
27892}
27893
27894
27895SWIGINTERN PyObject *_wrap_Solver_LocalSearchPhase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27896 PyObject *resultobj = 0;
27900 void *argp1 = 0 ;
27901 int res1 = 0 ;
27902 void *argp2 = 0 ;
27903 int res2 = 0 ;
27904 void *argp3 = 0 ;
27905 int res3 = 0 ;
27906 PyObject * obj0 = 0 ;
27907 PyObject * obj1 = 0 ;
27908 PyObject * obj2 = 0 ;
27910
27911 if (!PyArg_UnpackTuple(args, "Solver_LocalSearchPhase", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
27912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
27913 if (!SWIG_IsOK(res1)) {
27914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_LocalSearchPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
27915 }
27916 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27918 if (!SWIG_IsOK(res2)) {
27919 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_LocalSearchPhase" "', argument " "2"" of type '" "operations_research::Assignment *const""'");
27920 }
27921 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
27923 if (!SWIG_IsOK(res3)) {
27924 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_LocalSearchPhase" "', argument " "3"" of type '" "operations_research::LocalSearchPhaseParameters *const""'");
27925 }
27926 arg3 = reinterpret_cast< operations_research::LocalSearchPhaseParameters * >(argp3);
27927 {
27928 try {
27929 result = (operations_research::DecisionBuilder *)(arg1)->MakeLocalSearchPhase(arg2,arg3);
27930 }
27931 catch (Swig::DirectorException &e) {
27932 SWIG_fail;
27933 }
27934 }
27936 return resultobj;
27937fail:
27938 return NULL;
27939}
27940
27941
27942SWIGINTERN PyObject *_wrap_Solver_LocalSearchPhase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27943 PyObject *resultobj = 0;
27945 std::vector< operations_research::IntVar * > *arg2 = 0 ;
27948 void *argp1 = 0 ;
27949 int res1 = 0 ;
27950 std::vector< operations_research::IntVar * > temp2 ;
27951 void *argp4 = 0 ;
27952 int res4 = 0 ;
27953 PyObject * obj0 = 0 ;
27954 PyObject * obj1 = 0 ;
27955 PyObject * obj2 = 0 ;
27956 PyObject * obj3 = 0 ;
27958
27959 if (!PyArg_UnpackTuple(args, "Solver_LocalSearchPhase", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
27960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
27961 if (!SWIG_IsOK(res1)) {
27962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_LocalSearchPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
27963 }
27964 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27965 {
27966 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
27967 if (!PyErr_Occurred())
27968 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
27969 return NULL;
27970 }
27971 arg2 = &temp2;
27972 }
27973 {
27974 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
27975 }
27977 if (!SWIG_IsOK(res4)) {
27978 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Solver_LocalSearchPhase" "', argument " "4"" of type '" "operations_research::LocalSearchPhaseParameters *const""'");
27979 }
27980 arg4 = reinterpret_cast< operations_research::LocalSearchPhaseParameters * >(argp4);
27981 {
27982 try {
27983 result = (operations_research::DecisionBuilder *)(arg1)->MakeLocalSearchPhase((std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4);
27984 }
27985 catch (Swig::DirectorException &e) {
27986 SWIG_fail;
27987 }
27988 }
27990 return resultobj;
27991fail:
27992 return NULL;
27993}
27994
27995
27996SWIGINTERN PyObject *_wrap_Solver_LocalSearchPhase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27997 PyObject *resultobj = 0;
27999 std::vector< operations_research::IntVar * > *arg2 = 0 ;
28003 void *argp1 = 0 ;
28004 int res1 = 0 ;
28005 std::vector< operations_research::IntVar * > temp2 ;
28006 void *argp5 = 0 ;
28007 int res5 = 0 ;
28008 PyObject * obj0 = 0 ;
28009 PyObject * obj1 = 0 ;
28010 PyObject * obj2 = 0 ;
28011 PyObject * obj3 = 0 ;
28012 PyObject * obj4 = 0 ;
28014
28015 if (!PyArg_UnpackTuple(args, "Solver_LocalSearchPhase", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
28016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
28017 if (!SWIG_IsOK(res1)) {
28018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_LocalSearchPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
28019 }
28020 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28021 {
28022 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
28023 if (!PyErr_Occurred())
28024 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
28025 return NULL;
28026 }
28027 arg2 = &temp2;
28028 }
28029 {
28030 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
28031 }
28032 {
28033 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
28034 }
28036 if (!SWIG_IsOK(res5)) {
28037 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Solver_LocalSearchPhase" "', argument " "5"" of type '" "operations_research::LocalSearchPhaseParameters *const""'");
28038 }
28039 arg5 = reinterpret_cast< operations_research::LocalSearchPhaseParameters * >(argp5);
28040 {
28041 try {
28042 result = (operations_research::DecisionBuilder *)(arg1)->MakeLocalSearchPhase((std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4,arg5);
28043 }
28044 catch (Swig::DirectorException &e) {
28045 SWIG_fail;
28046 }
28047 }
28049 return resultobj;
28050fail:
28051 return NULL;
28052}
28053
28054
28055SWIGINTERN PyObject *_wrap_Solver_LocalSearchPhase__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28056 PyObject *resultobj = 0;
28058 std::vector< operations_research::SequenceVar * > *arg2 = 0 ;
28061 void *argp1 = 0 ;
28062 int res1 = 0 ;
28063 std::vector< operations_research::SequenceVar * > temp2 ;
28064 void *argp4 = 0 ;
28065 int res4 = 0 ;
28066 PyObject * obj0 = 0 ;
28067 PyObject * obj1 = 0 ;
28068 PyObject * obj2 = 0 ;
28069 PyObject * obj3 = 0 ;
28071
28072 if (!PyArg_UnpackTuple(args, "Solver_LocalSearchPhase", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
28073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
28074 if (!SWIG_IsOK(res1)) {
28075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_LocalSearchPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
28076 }
28077 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28078 {
28079 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::SequenceVar*>)) {
28080 if (!PyErr_Occurred())
28081 SWIG_Error(SWIG_TypeError, "sequence(operations_research::SequenceVar*) expected");
28082 return NULL;
28083 }
28084 arg2 = &temp2;
28085 }
28086 {
28087 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
28088 }
28090 if (!SWIG_IsOK(res4)) {
28091 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Solver_LocalSearchPhase" "', argument " "4"" of type '" "operations_research::LocalSearchPhaseParameters *const""'");
28092 }
28093 arg4 = reinterpret_cast< operations_research::LocalSearchPhaseParameters * >(argp4);
28094 {
28095 try {
28096 result = (operations_research::DecisionBuilder *)(arg1)->MakeLocalSearchPhase((std::vector< operations_research::SequenceVar * > const &)*arg2,arg3,arg4);
28097 }
28098 catch (Swig::DirectorException &e) {
28099 SWIG_fail;
28100 }
28101 }
28103 return resultobj;
28104fail:
28105 return NULL;
28106}
28107
28108
28109SWIGINTERN PyObject *_wrap_Solver_LocalSearchPhase(PyObject *self, PyObject *args) {
28110 Py_ssize_t argc;
28111 PyObject *argv[6] = {
28112 0
28113 };
28114 Py_ssize_t ii;
28115
28116 if (!PyTuple_Check(args)) SWIG_fail;
28117 argc = PyObject_Length(args);
28118 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
28119 argv[ii] = PyTuple_GET_ITEM(args,ii);
28120 }
28121 if (argc == 3) {
28122 int _v;
28123 void *vptr = 0;
28124 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
28125 _v = SWIG_CheckState(res);
28126 if (_v) {
28127 void *vptr = 0;
28128 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
28129 _v = SWIG_CheckState(res);
28130 if (_v) {
28131 void *vptr = 0;
28133 _v = SWIG_CheckState(res);
28134 if (_v) {
28135 return _wrap_Solver_LocalSearchPhase__SWIG_0(self, args);
28136 }
28137 }
28138 }
28139 }
28140 if (argc == 4) {
28141 int _v;
28142 void *vptr = 0;
28143 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
28144 _v = SWIG_CheckState(res);
28145 if (_v) {
28146 {
28147 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
28148 _v = 0;
28149 } else {
28150 const bool is_tuple = PyTuple_Check(argv[1]);
28151 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
28152 size_t i = 0;
28153 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
28154 :PyList_GetItem(argv[1], i))) {
28155 ++i;
28156 }
28157 _v = i == size;
28158 }
28159 }
28160 if (_v) {
28161 {
28162 _v = CanConvertToDecisionBuilder(argv[2]);
28163 if (_v == 0) PyErr_Clear();
28164 }
28165 if (_v) {
28166 void *vptr = 0;
28168 _v = SWIG_CheckState(res);
28169 if (_v) {
28170 return _wrap_Solver_LocalSearchPhase__SWIG_1(self, args);
28171 }
28172 }
28173 }
28174 }
28175 }
28176 if (argc == 4) {
28177 int _v;
28178 void *vptr = 0;
28179 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
28180 _v = SWIG_CheckState(res);
28181 if (_v) {
28182 {
28183 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
28184 _v = 0;
28185 } else {
28186 const bool is_tuple = PyTuple_Check(argv[1]);
28187 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
28188 size_t i = 0;
28189 while (i < size && CanConvertToSequenceVar(is_tuple ? PyTuple_GetItem(argv[1], i)
28190 :PyList_GetItem(argv[1], i))) {
28191 ++i;
28192 }
28193 _v = i == size;
28194 }
28195 }
28196 if (_v) {
28197 {
28198 _v = CanConvertToDecisionBuilder(argv[2]);
28199 if (_v == 0) PyErr_Clear();
28200 }
28201 if (_v) {
28202 void *vptr = 0;
28204 _v = SWIG_CheckState(res);
28205 if (_v) {
28206 return _wrap_Solver_LocalSearchPhase__SWIG_3(self, args);
28207 }
28208 }
28209 }
28210 }
28211 }
28212 if (argc == 5) {
28213 int _v;
28214 void *vptr = 0;
28215 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
28216 _v = SWIG_CheckState(res);
28217 if (_v) {
28218 {
28219 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
28220 _v = 0;
28221 } else {
28222 const bool is_tuple = PyTuple_Check(argv[1]);
28223 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
28224 size_t i = 0;
28225 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
28226 :PyList_GetItem(argv[1], i))) {
28227 ++i;
28228 }
28229 _v = i == size;
28230 }
28231 }
28232 if (_v) {
28233 {
28234 _v = CanConvertToDecisionBuilder(argv[2]);
28235 if (_v == 0) PyErr_Clear();
28236 }
28237 if (_v) {
28238 {
28239 _v = CanConvertToDecisionBuilder(argv[3]);
28240 if (_v == 0) PyErr_Clear();
28241 }
28242 if (_v) {
28243 void *vptr = 0;
28245 _v = SWIG_CheckState(res);
28246 if (_v) {
28247 return _wrap_Solver_LocalSearchPhase__SWIG_2(self, args);
28248 }
28249 }
28250 }
28251 }
28252 }
28253 }
28254
28255fail:
28256 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_LocalSearchPhase'.\n"
28257 " Possible C/C++ prototypes are:\n"
28258 " operations_research::Solver::MakeLocalSearchPhase(operations_research::Assignment *const,operations_research::LocalSearchPhaseParameters *const)\n"
28259 " operations_research::Solver::MakeLocalSearchPhase(std::vector< operations_research::IntVar * > const &,operations_research::DecisionBuilder *const,operations_research::LocalSearchPhaseParameters *const)\n"
28260 " operations_research::Solver::MakeLocalSearchPhase(std::vector< operations_research::IntVar * > const &,operations_research::DecisionBuilder *const,operations_research::DecisionBuilder *const,operations_research::LocalSearchPhaseParameters *const)\n"
28261 " operations_research::Solver::MakeLocalSearchPhase(std::vector< operations_research::SequenceVar * > const &,operations_research::DecisionBuilder *const,operations_research::LocalSearchPhaseParameters *const)\n");
28262 return 0;
28263}
28264
28265
28267 PyObject *resultobj = 0;
28272 void *argp1 = 0 ;
28273 int res1 = 0 ;
28274 void *argp2 = 0 ;
28275 int res2 = 0 ;
28276 PyObject * obj0 = 0 ;
28277 PyObject * obj1 = 0 ;
28278 PyObject * obj2 = 0 ;
28279 PyObject * obj3 = 0 ;
28281
28282 if (!PyArg_UnpackTuple(args, "Solver_LocalSearchPhaseParameters", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
28283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
28284 if (!SWIG_IsOK(res1)) {
28285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28286 }
28287 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28288 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
28289 if (!SWIG_IsOK(res2)) {
28290 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28291 }
28292 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
28293 {
28294 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
28295 }
28296 {
28297 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
28298 }
28299 {
28300 try {
28301 result = (operations_research::LocalSearchPhaseParameters *)(arg1)->MakeLocalSearchPhaseParameters(arg2,arg3,arg4);
28302 }
28303 catch (Swig::DirectorException &e) {
28304 SWIG_fail;
28305 }
28306 }
28308 return resultobj;
28309fail:
28310 return NULL;
28311}
28312
28313
28315 PyObject *resultobj = 0;
28321 void *argp1 = 0 ;
28322 int res1 = 0 ;
28323 void *argp2 = 0 ;
28324 int res2 = 0 ;
28325 void *argp5 = 0 ;
28326 int res5 = 0 ;
28327 PyObject * obj0 = 0 ;
28328 PyObject * obj1 = 0 ;
28329 PyObject * obj2 = 0 ;
28330 PyObject * obj3 = 0 ;
28331 PyObject * obj4 = 0 ;
28333
28334 if (!PyArg_UnpackTuple(args, "Solver_LocalSearchPhaseParameters", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
28335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
28336 if (!SWIG_IsOK(res1)) {
28337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28338 }
28339 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28340 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
28341 if (!SWIG_IsOK(res2)) {
28342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28343 }
28344 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
28345 {
28346 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
28347 }
28348 {
28349 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
28350 }
28352 if (!SWIG_IsOK(res5)) {
28353 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "5"" of type '" "operations_research::RegularLimit *const""'");
28354 }
28355 arg5 = reinterpret_cast< operations_research::RegularLimit * >(argp5);
28356 {
28357 try {
28358 result = (operations_research::LocalSearchPhaseParameters *)(arg1)->MakeLocalSearchPhaseParameters(arg2,arg3,arg4,arg5);
28359 }
28360 catch (Swig::DirectorException &e) {
28361 SWIG_fail;
28362 }
28363 }
28365 return resultobj;
28366fail:
28367 return NULL;
28368}
28369
28370
28372 PyObject *resultobj = 0;
28379 void *argp1 = 0 ;
28380 int res1 = 0 ;
28381 void *argp2 = 0 ;
28382 int res2 = 0 ;
28383 void *argp5 = 0 ;
28384 int res5 = 0 ;
28385 void *argp6 = 0 ;
28386 int res6 = 0 ;
28387 PyObject * obj0 = 0 ;
28388 PyObject * obj1 = 0 ;
28389 PyObject * obj2 = 0 ;
28390 PyObject * obj3 = 0 ;
28391 PyObject * obj4 = 0 ;
28392 PyObject * obj5 = 0 ;
28394
28395 if (!PyArg_UnpackTuple(args, "Solver_LocalSearchPhaseParameters", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
28396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
28397 if (!SWIG_IsOK(res1)) {
28398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28399 }
28400 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28401 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
28402 if (!SWIG_IsOK(res2)) {
28403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28404 }
28405 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
28406 {
28407 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
28408 }
28409 {
28410 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
28411 }
28413 if (!SWIG_IsOK(res5)) {
28414 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "5"" of type '" "operations_research::RegularLimit *const""'");
28415 }
28416 arg5 = reinterpret_cast< operations_research::RegularLimit * >(argp5);
28418 if (!SWIG_IsOK(res6)) {
28419 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "6"" of type '" "operations_research::LocalSearchFilterManager *""'");
28420 }
28421 arg6 = reinterpret_cast< operations_research::LocalSearchFilterManager * >(argp6);
28422 {
28423 try {
28424 result = (operations_research::LocalSearchPhaseParameters *)(arg1)->MakeLocalSearchPhaseParameters(arg2,arg3,arg4,arg5,arg6);
28425 }
28426 catch (Swig::DirectorException &e) {
28427 SWIG_fail;
28428 }
28429 }
28431 return resultobj;
28432fail:
28433 return NULL;
28434}
28435
28436
28438 PyObject *resultobj = 0;
28444 void *argp1 = 0 ;
28445 int res1 = 0 ;
28446 void *argp2 = 0 ;
28447 int res2 = 0 ;
28448 void *argp3 = 0 ;
28449 int res3 = 0 ;
28450 PyObject * obj0 = 0 ;
28451 PyObject * obj1 = 0 ;
28452 PyObject * obj2 = 0 ;
28453 PyObject * obj3 = 0 ;
28454 PyObject * obj4 = 0 ;
28456
28457 if (!PyArg_UnpackTuple(args, "Solver_LocalSearchPhaseParameters", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
28458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
28459 if (!SWIG_IsOK(res1)) {
28460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28461 }
28462 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28463 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
28464 if (!SWIG_IsOK(res2)) {
28465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28466 }
28467 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
28469 if (!SWIG_IsOK(res3)) {
28470 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "3"" of type '" "operations_research::SolutionPool *const""'");
28471 }
28472 arg3 = reinterpret_cast< operations_research::SolutionPool * >(argp3);
28473 {
28474 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
28475 }
28476 {
28477 if (!PyObjAs(obj4, &arg5)) SWIG_fail;
28478 }
28479 {
28480 try {
28481 result = (operations_research::LocalSearchPhaseParameters *)(arg1)->MakeLocalSearchPhaseParameters(arg2,arg3,arg4,arg5);
28482 }
28483 catch (Swig::DirectorException &e) {
28484 SWIG_fail;
28485 }
28486 }
28488 return resultobj;
28489fail:
28490 return NULL;
28491}
28492
28493
28495 PyObject *resultobj = 0;
28502 void *argp1 = 0 ;
28503 int res1 = 0 ;
28504 void *argp2 = 0 ;
28505 int res2 = 0 ;
28506 void *argp3 = 0 ;
28507 int res3 = 0 ;
28508 void *argp6 = 0 ;
28509 int res6 = 0 ;
28510 PyObject * obj0 = 0 ;
28511 PyObject * obj1 = 0 ;
28512 PyObject * obj2 = 0 ;
28513 PyObject * obj3 = 0 ;
28514 PyObject * obj4 = 0 ;
28515 PyObject * obj5 = 0 ;
28517
28518 if (!PyArg_UnpackTuple(args, "Solver_LocalSearchPhaseParameters", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
28519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
28520 if (!SWIG_IsOK(res1)) {
28521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28522 }
28523 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28524 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
28525 if (!SWIG_IsOK(res2)) {
28526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28527 }
28528 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
28530 if (!SWIG_IsOK(res3)) {
28531 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "3"" of type '" "operations_research::SolutionPool *const""'");
28532 }
28533 arg3 = reinterpret_cast< operations_research::SolutionPool * >(argp3);
28534 {
28535 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
28536 }
28537 {
28538 if (!PyObjAs(obj4, &arg5)) SWIG_fail;
28539 }
28541 if (!SWIG_IsOK(res6)) {
28542 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "6"" of type '" "operations_research::RegularLimit *const""'");
28543 }
28544 arg6 = reinterpret_cast< operations_research::RegularLimit * >(argp6);
28545 {
28546 try {
28547 result = (operations_research::LocalSearchPhaseParameters *)(arg1)->MakeLocalSearchPhaseParameters(arg2,arg3,arg4,arg5,arg6);
28548 }
28549 catch (Swig::DirectorException &e) {
28550 SWIG_fail;
28551 }
28552 }
28554 return resultobj;
28555fail:
28556 return NULL;
28557}
28558
28559
28561 PyObject *resultobj = 0;
28569 void *argp1 = 0 ;
28570 int res1 = 0 ;
28571 void *argp2 = 0 ;
28572 int res2 = 0 ;
28573 void *argp3 = 0 ;
28574 int res3 = 0 ;
28575 void *argp6 = 0 ;
28576 int res6 = 0 ;
28577 void *argp7 = 0 ;
28578 int res7 = 0 ;
28579 PyObject * obj0 = 0 ;
28580 PyObject * obj1 = 0 ;
28581 PyObject * obj2 = 0 ;
28582 PyObject * obj3 = 0 ;
28583 PyObject * obj4 = 0 ;
28584 PyObject * obj5 = 0 ;
28585 PyObject * obj6 = 0 ;
28587
28588 if (!PyArg_UnpackTuple(args, "Solver_LocalSearchPhaseParameters", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6)) SWIG_fail;
28589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
28590 if (!SWIG_IsOK(res1)) {
28591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28592 }
28593 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28594 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
28595 if (!SWIG_IsOK(res2)) {
28596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28597 }
28598 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
28600 if (!SWIG_IsOK(res3)) {
28601 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "3"" of type '" "operations_research::SolutionPool *const""'");
28602 }
28603 arg3 = reinterpret_cast< operations_research::SolutionPool * >(argp3);
28604 {
28605 if (!PyObjAs(obj3, &arg4)) SWIG_fail;
28606 }
28607 {
28608 if (!PyObjAs(obj4, &arg5)) SWIG_fail;
28609 }
28611 if (!SWIG_IsOK(res6)) {
28612 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "6"" of type '" "operations_research::RegularLimit *const""'");
28613 }
28614 arg6 = reinterpret_cast< operations_research::RegularLimit * >(argp6);
28616 if (!SWIG_IsOK(res7)) {
28617 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Solver_LocalSearchPhaseParameters" "', argument " "7"" of type '" "operations_research::LocalSearchFilterManager *""'");
28618 }
28619 arg7 = reinterpret_cast< operations_research::LocalSearchFilterManager * >(argp7);
28620 {
28621 try {
28622 result = (operations_research::LocalSearchPhaseParameters *)(arg1)->MakeLocalSearchPhaseParameters(arg2,arg3,arg4,arg5,arg6,arg7);
28623 }
28624 catch (Swig::DirectorException &e) {
28625 SWIG_fail;
28626 }
28627 }
28629 return resultobj;
28630fail:
28631 return NULL;
28632}
28633
28634
28635SWIGINTERN PyObject *_wrap_Solver_LocalSearchPhaseParameters(PyObject *self, PyObject *args) {
28636 Py_ssize_t argc;
28637 PyObject *argv[8] = {
28638 0
28639 };
28640 Py_ssize_t ii;
28641
28642 if (!PyTuple_Check(args)) SWIG_fail;
28643 argc = PyObject_Length(args);
28644 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
28645 argv[ii] = PyTuple_GET_ITEM(args,ii);
28646 }
28647 if (argc == 4) {
28648 int _v;
28649 void *vptr = 0;
28650 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
28651 _v = SWIG_CheckState(res);
28652 if (_v) {
28653 void *vptr = 0;
28654 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntVar, 0);
28655 _v = SWIG_CheckState(res);
28656 if (_v) {
28657 {
28658 _v = CanConvertToLocalSearchOperator(argv[2]);
28659 if (_v == 0) PyErr_Clear();
28660 }
28661 if (_v) {
28662 {
28663 _v = CanConvertToDecisionBuilder(argv[3]);
28664 if (_v == 0) PyErr_Clear();
28665 }
28666 if (_v) {
28668 }
28669 }
28670 }
28671 }
28672 }
28673 if (argc == 5) {
28674 int _v;
28675 void *vptr = 0;
28676 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
28677 _v = SWIG_CheckState(res);
28678 if (_v) {
28679 void *vptr = 0;
28680 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntVar, 0);
28681 _v = SWIG_CheckState(res);
28682 if (_v) {
28683 {
28684 _v = CanConvertToLocalSearchOperator(argv[2]);
28685 if (_v == 0) PyErr_Clear();
28686 }
28687 if (_v) {
28688 {
28689 _v = CanConvertToDecisionBuilder(argv[3]);
28690 if (_v == 0) PyErr_Clear();
28691 }
28692 if (_v) {
28693 void *vptr = 0;
28695 _v = SWIG_CheckState(res);
28696 if (_v) {
28698 }
28699 }
28700 }
28701 }
28702 }
28703 }
28704 if (argc == 5) {
28705 int _v;
28706 void *vptr = 0;
28707 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
28708 _v = SWIG_CheckState(res);
28709 if (_v) {
28710 void *vptr = 0;
28711 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntVar, 0);
28712 _v = SWIG_CheckState(res);
28713 if (_v) {
28714 void *vptr = 0;
28716 _v = SWIG_CheckState(res);
28717 if (_v) {
28718 {
28719 _v = CanConvertToLocalSearchOperator(argv[3]);
28720 if (_v == 0) PyErr_Clear();
28721 }
28722 if (_v) {
28723 {
28724 _v = CanConvertToDecisionBuilder(argv[4]);
28725 if (_v == 0) PyErr_Clear();
28726 }
28727 if (_v) {
28729 }
28730 }
28731 }
28732 }
28733 }
28734 }
28735 if (argc == 6) {
28736 int _v;
28737 void *vptr = 0;
28738 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
28739 _v = SWIG_CheckState(res);
28740 if (_v) {
28741 void *vptr = 0;
28742 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntVar, 0);
28743 _v = SWIG_CheckState(res);
28744 if (_v) {
28745 {
28746 _v = CanConvertToLocalSearchOperator(argv[2]);
28747 if (_v == 0) PyErr_Clear();
28748 }
28749 if (_v) {
28750 {
28751 _v = CanConvertToDecisionBuilder(argv[3]);
28752 if (_v == 0) PyErr_Clear();
28753 }
28754 if (_v) {
28755 void *vptr = 0;
28757 _v = SWIG_CheckState(res);
28758 if (_v) {
28759 void *vptr = 0;
28761 _v = SWIG_CheckState(res);
28762 if (_v) {
28764 }
28765 }
28766 }
28767 }
28768 }
28769 }
28770 }
28771 if (argc == 6) {
28772 int _v;
28773 void *vptr = 0;
28774 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
28775 _v = SWIG_CheckState(res);
28776 if (_v) {
28777 void *vptr = 0;
28778 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntVar, 0);
28779 _v = SWIG_CheckState(res);
28780 if (_v) {
28781 void *vptr = 0;
28783 _v = SWIG_CheckState(res);
28784 if (_v) {
28785 {
28786 _v = CanConvertToLocalSearchOperator(argv[3]);
28787 if (_v == 0) PyErr_Clear();
28788 }
28789 if (_v) {
28790 {
28791 _v = CanConvertToDecisionBuilder(argv[4]);
28792 if (_v == 0) PyErr_Clear();
28793 }
28794 if (_v) {
28795 void *vptr = 0;
28797 _v = SWIG_CheckState(res);
28798 if (_v) {
28800 }
28801 }
28802 }
28803 }
28804 }
28805 }
28806 }
28807 if (argc == 7) {
28808 int _v;
28809 void *vptr = 0;
28810 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
28811 _v = SWIG_CheckState(res);
28812 if (_v) {
28813 void *vptr = 0;
28814 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntVar, 0);
28815 _v = SWIG_CheckState(res);
28816 if (_v) {
28817 void *vptr = 0;
28819 _v = SWIG_CheckState(res);
28820 if (_v) {
28821 {
28822 _v = CanConvertToLocalSearchOperator(argv[3]);
28823 if (_v == 0) PyErr_Clear();
28824 }
28825 if (_v) {
28826 {
28827 _v = CanConvertToDecisionBuilder(argv[4]);
28828 if (_v == 0) PyErr_Clear();
28829 }
28830 if (_v) {
28831 void *vptr = 0;
28833 _v = SWIG_CheckState(res);
28834 if (_v) {
28835 void *vptr = 0;
28837 _v = SWIG_CheckState(res);
28838 if (_v) {
28840 }
28841 }
28842 }
28843 }
28844 }
28845 }
28846 }
28847 }
28848
28849fail:
28850 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_LocalSearchPhaseParameters'.\n"
28851 " Possible C/C++ prototypes are:\n"
28852 " operations_research::Solver::MakeLocalSearchPhaseParameters(operations_research::IntVar *,operations_research::LocalSearchOperator *const,operations_research::DecisionBuilder *const)\n"
28853 " operations_research::Solver::MakeLocalSearchPhaseParameters(operations_research::IntVar *,operations_research::LocalSearchOperator *const,operations_research::DecisionBuilder *const,operations_research::RegularLimit *const)\n"
28854 " operations_research::Solver::MakeLocalSearchPhaseParameters(operations_research::IntVar *,operations_research::LocalSearchOperator *const,operations_research::DecisionBuilder *const,operations_research::RegularLimit *const,operations_research::LocalSearchFilterManager *)\n"
28855 " operations_research::Solver::MakeLocalSearchPhaseParameters(operations_research::IntVar *,operations_research::SolutionPool *const,operations_research::LocalSearchOperator *const,operations_research::DecisionBuilder *const)\n"
28856 " operations_research::Solver::MakeLocalSearchPhaseParameters(operations_research::IntVar *,operations_research::SolutionPool *const,operations_research::LocalSearchOperator *const,operations_research::DecisionBuilder *const,operations_research::RegularLimit *const)\n"
28857 " operations_research::Solver::MakeLocalSearchPhaseParameters(operations_research::IntVar *,operations_research::SolutionPool *const,operations_research::LocalSearchOperator *const,operations_research::DecisionBuilder *const,operations_research::RegularLimit *const,operations_research::LocalSearchFilterManager *)\n");
28858 return 0;
28859}
28860
28861
28862SWIGINTERN PyObject *_wrap_Solver_SearchDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28863 PyObject *resultobj = 0;
28865 void *argp1 = 0 ;
28866 int res1 = 0 ;
28867 PyObject * obj0 = 0 ;
28868 int result;
28869
28870 if (!PyArg_UnpackTuple(args, "Solver_SearchDepth", 1, 1, &obj0)) SWIG_fail;
28871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
28872 if (!SWIG_IsOK(res1)) {
28873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SearchDepth" "', argument " "1"" of type '" "operations_research::Solver const *""'");
28874 }
28875 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28876 {
28877 try {
28878 result = (int)((operations_research::Solver const *)arg1)->SearchDepth();
28879 }
28880 catch (Swig::DirectorException &e) {
28881 SWIG_fail;
28882 }
28883 }
28884 resultobj = SWIG_From_int(static_cast< int >(result));
28885 return resultobj;
28886fail:
28887 return NULL;
28888}
28889
28890
28891SWIGINTERN PyObject *_wrap_Solver_SearchLeftDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28892 PyObject *resultobj = 0;
28894 void *argp1 = 0 ;
28895 int res1 = 0 ;
28896 PyObject * obj0 = 0 ;
28897 int result;
28898
28899 if (!PyArg_UnpackTuple(args, "Solver_SearchLeftDepth", 1, 1, &obj0)) SWIG_fail;
28900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
28901 if (!SWIG_IsOK(res1)) {
28902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SearchLeftDepth" "', argument " "1"" of type '" "operations_research::Solver const *""'");
28903 }
28904 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28905 {
28906 try {
28907 result = (int)((operations_research::Solver const *)arg1)->SearchLeftDepth();
28908 }
28909 catch (Swig::DirectorException &e) {
28910 SWIG_fail;
28911 }
28912 }
28913 resultobj = SWIG_From_int(static_cast< int >(result));
28914 return resultobj;
28915fail:
28916 return NULL;
28917}
28918
28919
28920SWIGINTERN PyObject *_wrap_Solver_SolveDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28921 PyObject *resultobj = 0;
28923 void *argp1 = 0 ;
28924 int res1 = 0 ;
28925 PyObject * obj0 = 0 ;
28926 int result;
28927
28928 if (!PyArg_UnpackTuple(args, "Solver_SolveDepth", 1, 1, &obj0)) SWIG_fail;
28929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
28930 if (!SWIG_IsOK(res1)) {
28931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SolveDepth" "', argument " "1"" of type '" "operations_research::Solver const *""'");
28932 }
28933 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28934 {
28935 try {
28936 result = (int)((operations_research::Solver const *)arg1)->SolveDepth();
28937 }
28938 catch (Swig::DirectorException &e) {
28939 SWIG_fail;
28940 }
28941 }
28942 resultobj = SWIG_From_int(static_cast< int >(result));
28943 return resultobj;
28944fail:
28945 return NULL;
28946}
28947
28948
28949SWIGINTERN PyObject *_wrap_Solver_Rand64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28950 PyObject *resultobj = 0;
28952 int64_t arg2 ;
28953 void *argp1 = 0 ;
28954 int res1 = 0 ;
28955 long val2 ;
28956 int ecode2 = 0 ;
28957 PyObject * obj0 = 0 ;
28958 PyObject * obj1 = 0 ;
28959 int64_t result;
28960
28961 if (!PyArg_UnpackTuple(args, "Solver_Rand64", 2, 2, &obj0, &obj1)) SWIG_fail;
28962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
28963 if (!SWIG_IsOK(res1)) {
28964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Rand64" "', argument " "1"" of type '" "operations_research::Solver *""'");
28965 }
28966 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28967 ecode2 = SWIG_AsVal_long(obj1, &val2);
28968 if (!SWIG_IsOK(ecode2)) {
28969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_Rand64" "', argument " "2"" of type '" "int64_t""'");
28970 }
28971 arg2 = static_cast< int64_t >(val2);
28972 {
28973 try {
28974 result = (int64_t)(arg1)->Rand64(arg2);
28975 }
28976 catch (Swig::DirectorException &e) {
28977 SWIG_fail;
28978 }
28979 }
28980 resultobj = SWIG_From_long(static_cast< long >(result));
28981 return resultobj;
28982fail:
28983 return NULL;
28984}
28985
28986
28987SWIGINTERN PyObject *_wrap_Solver_Rand32(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28988 PyObject *resultobj = 0;
28990 int32_t arg2 ;
28991 void *argp1 = 0 ;
28992 int res1 = 0 ;
28993 int val2 ;
28994 int ecode2 = 0 ;
28995 PyObject * obj0 = 0 ;
28996 PyObject * obj1 = 0 ;
28997 int32_t result;
28998
28999 if (!PyArg_UnpackTuple(args, "Solver_Rand32", 2, 2, &obj0, &obj1)) SWIG_fail;
29000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29001 if (!SWIG_IsOK(res1)) {
29002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Rand32" "', argument " "1"" of type '" "operations_research::Solver *""'");
29003 }
29004 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29005 ecode2 = SWIG_AsVal_int(obj1, &val2);
29006 if (!SWIG_IsOK(ecode2)) {
29007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_Rand32" "', argument " "2"" of type '" "int32_t""'");
29008 }
29009 arg2 = static_cast< int32_t >(val2);
29010 {
29011 try {
29012 result = (int32_t)(arg1)->Rand32(arg2);
29013 }
29014 catch (Swig::DirectorException &e) {
29015 SWIG_fail;
29016 }
29017 }
29018 resultobj = SWIG_From_int(static_cast< int >(result));
29019 return resultobj;
29020fail:
29021 return NULL;
29022}
29023
29024
29025SWIGINTERN PyObject *_wrap_Solver_ReSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29026 PyObject *resultobj = 0;
29028 int32_t arg2 ;
29029 void *argp1 = 0 ;
29030 int res1 = 0 ;
29031 int val2 ;
29032 int ecode2 = 0 ;
29033 PyObject * obj0 = 0 ;
29034 PyObject * obj1 = 0 ;
29035
29036 if (!PyArg_UnpackTuple(args, "Solver_ReSeed", 2, 2, &obj0, &obj1)) SWIG_fail;
29037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29038 if (!SWIG_IsOK(res1)) {
29039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ReSeed" "', argument " "1"" of type '" "operations_research::Solver *""'");
29040 }
29041 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29042 ecode2 = SWIG_AsVal_int(obj1, &val2);
29043 if (!SWIG_IsOK(ecode2)) {
29044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_ReSeed" "', argument " "2"" of type '" "int32_t""'");
29045 }
29046 arg2 = static_cast< int32_t >(val2);
29047 {
29048 try {
29049 (arg1)->ReSeed(arg2);
29050 }
29051 catch (Swig::DirectorException &e) {
29052 SWIG_fail;
29053 }
29054 }
29055 resultobj = SWIG_Py_Void();
29056 return resultobj;
29057fail:
29058 return NULL;
29059}
29060
29061
29062SWIGINTERN PyObject *_wrap_Solver_LocalSearchProfile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29063 PyObject *resultobj = 0;
29065 void *argp1 = 0 ;
29066 int res1 = 0 ;
29067 PyObject * obj0 = 0 ;
29068 std::string result;
29069
29070 if (!PyArg_UnpackTuple(args, "Solver_LocalSearchProfile", 1, 1, &obj0)) SWIG_fail;
29071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29072 if (!SWIG_IsOK(res1)) {
29073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_LocalSearchProfile" "', argument " "1"" of type '" "operations_research::Solver const *""'");
29074 }
29075 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29076 {
29077 try {
29078 result = ((operations_research::Solver const *)arg1)->LocalSearchProfile();
29079 }
29080 catch (Swig::DirectorException &e) {
29081 SWIG_fail;
29082 }
29083 }
29084 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
29085 return resultobj;
29086fail:
29087 return NULL;
29088}
29089
29090
29091SWIGINTERN PyObject *_wrap_Solver_Constraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29092 PyObject *resultobj = 0;
29094 void *argp1 = 0 ;
29095 int res1 = 0 ;
29096 PyObject * obj0 = 0 ;
29097 int result;
29098
29099 if (!PyArg_UnpackTuple(args, "Solver_Constraints", 1, 1, &obj0)) SWIG_fail;
29100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29101 if (!SWIG_IsOK(res1)) {
29102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Constraints" "', argument " "1"" of type '" "operations_research::Solver const *""'");
29103 }
29104 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29105 {
29106 try {
29107 result = (int)((operations_research::Solver const *)arg1)->constraints();
29108 }
29109 catch (Swig::DirectorException &e) {
29110 SWIG_fail;
29111 }
29112 }
29113 resultobj = SWIG_From_int(static_cast< int >(result));
29114 return resultobj;
29115fail:
29116 return NULL;
29117}
29118
29119
29120SWIGINTERN PyObject *_wrap_Solver_Accept(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29121 PyObject *resultobj = 0;
29124 void *argp1 = 0 ;
29125 int res1 = 0 ;
29126 void *argp2 = 0 ;
29127 int res2 = 0 ;
29128 PyObject * obj0 = 0 ;
29129 PyObject * obj1 = 0 ;
29130
29131 if (!PyArg_UnpackTuple(args, "Solver_Accept", 2, 2, &obj0, &obj1)) SWIG_fail;
29132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29133 if (!SWIG_IsOK(res1)) {
29134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_Accept" "', argument " "1"" of type '" "operations_research::Solver const *""'");
29135 }
29136 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29138 if (!SWIG_IsOK(res2)) {
29139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Solver_Accept" "', argument " "2"" of type '" "operations_research::ModelVisitor *const""'");
29140 }
29141 arg2 = reinterpret_cast< operations_research::ModelVisitor * >(argp2);
29142 {
29143 try {
29144 ((operations_research::Solver const *)arg1)->Accept(arg2);
29145 }
29146 catch (Swig::DirectorException &e) {
29147 SWIG_fail;
29148 }
29149 }
29150 resultobj = SWIG_Py_Void();
29151 return resultobj;
29152fail:
29153 return NULL;
29154}
29155
29156
29157SWIGINTERN PyObject *_wrap_Solver_FinishCurrentSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29158 PyObject *resultobj = 0;
29160 void *argp1 = 0 ;
29161 int res1 = 0 ;
29162 PyObject * obj0 = 0 ;
29163
29164 if (!PyArg_UnpackTuple(args, "Solver_FinishCurrentSearch", 1, 1, &obj0)) SWIG_fail;
29165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29166 if (!SWIG_IsOK(res1)) {
29167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_FinishCurrentSearch" "', argument " "1"" of type '" "operations_research::Solver *""'");
29168 }
29169 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29170 {
29171 try {
29172 (arg1)->FinishCurrentSearch();
29173 }
29174 catch (Swig::DirectorException &e) {
29175 SWIG_fail;
29176 }
29177 }
29178 resultobj = SWIG_Py_Void();
29179 return resultobj;
29180fail:
29181 return NULL;
29182}
29183
29184
29185SWIGINTERN PyObject *_wrap_Solver_RestartCurrentSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29186 PyObject *resultobj = 0;
29188 void *argp1 = 0 ;
29189 int res1 = 0 ;
29190 PyObject * obj0 = 0 ;
29191
29192 if (!PyArg_UnpackTuple(args, "Solver_RestartCurrentSearch", 1, 1, &obj0)) SWIG_fail;
29193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29194 if (!SWIG_IsOK(res1)) {
29195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_RestartCurrentSearch" "', argument " "1"" of type '" "operations_research::Solver *""'");
29196 }
29197 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29198 {
29199 try {
29200 (arg1)->RestartCurrentSearch();
29201 }
29202 catch (Swig::DirectorException &e) {
29203 SWIG_fail;
29204 }
29205 }
29206 resultobj = SWIG_Py_Void();
29207 return resultobj;
29208fail:
29209 return NULL;
29210}
29211
29212
29213SWIGINTERN PyObject *_wrap_Solver_ShouldFail(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29214 PyObject *resultobj = 0;
29216 void *argp1 = 0 ;
29217 int res1 = 0 ;
29218 PyObject * obj0 = 0 ;
29219
29220 if (!PyArg_UnpackTuple(args, "Solver_ShouldFail", 1, 1, &obj0)) SWIG_fail;
29221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29222 if (!SWIG_IsOK(res1)) {
29223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ShouldFail" "', argument " "1"" of type '" "operations_research::Solver *""'");
29224 }
29225 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29226 {
29227 try {
29228 (arg1)->ShouldFail();
29229 }
29230 catch (Swig::DirectorException &e) {
29231 SWIG_fail;
29232 }
29233 }
29234 resultobj = SWIG_Py_Void();
29235 return resultobj;
29236fail:
29237 return NULL;
29238}
29239
29240
29241SWIGINTERN PyObject *_wrap_Solver___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29242 PyObject *resultobj = 0;
29244 void *argp1 = 0 ;
29245 int res1 = 0 ;
29246 PyObject * obj0 = 0 ;
29247 std::string result;
29248
29249 if (!PyArg_UnpackTuple(args, "Solver___str__", 1, 1, &obj0)) SWIG_fail;
29250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29251 if (!SWIG_IsOK(res1)) {
29252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver___str__" "', argument " "1"" of type '" "operations_research::Solver *""'");
29253 }
29254 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29255 {
29256 try {
29257 result = operations_research_Solver___str__(arg1);
29258 }
29259 catch (Swig::DirectorException &e) {
29260 SWIG_fail;
29261 }
29262 }
29263 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
29264 return resultobj;
29265fail:
29266 return NULL;
29267}
29268
29269
29270SWIGINTERN PyObject *_wrap_Solver_TreeNoCycle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29271 PyObject *resultobj = 0;
29273 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29274 std::vector< operations_research::IntVar * > *arg3 = 0 ;
29276 void *argp1 = 0 ;
29277 int res1 = 0 ;
29278 std::vector< operations_research::IntVar * > temp2 ;
29279 std::vector< operations_research::IntVar * > temp3 ;
29280 PyObject * obj0 = 0 ;
29281 PyObject * obj1 = 0 ;
29282 PyObject * obj2 = 0 ;
29283 PyObject * obj3 = 0 ;
29285
29286 if (!PyArg_UnpackTuple(args, "Solver_TreeNoCycle", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
29287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29288 if (!SWIG_IsOK(res1)) {
29289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_TreeNoCycle" "', argument " "1"" of type '" "operations_research::Solver *""'");
29290 }
29291 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29292 {
29293 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29294 if (!PyErr_Occurred())
29295 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
29296 return NULL;
29297 }
29298 arg2 = &temp2;
29299 }
29300 {
29301 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
29302 if (!PyErr_Occurred())
29303 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
29304 return NULL;
29305 }
29306 arg3 = &temp3;
29307 }
29308 {
29309 SharedPyPtr input(obj3);
29310 arg4 = [input](int64_t index) {
29311 return InvokePythonCallableReturning<bool>(input.get(), "(L)", index);
29312 };
29313 }
29314 {
29315 try {
29316 result = (operations_research::Constraint *)operations_research_Solver_TreeNoCycle__SWIG_0(arg1,(std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3,arg4);
29317 }
29318 catch (Swig::DirectorException &e) {
29319 SWIG_fail;
29320 }
29321 }
29323 return resultobj;
29324fail:
29325 return NULL;
29326}
29327
29328
29329SWIGINTERN PyObject *_wrap_Solver_TreeNoCycle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29330 PyObject *resultobj = 0;
29332 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29333 std::vector< operations_research::IntVar * > *arg3 = 0 ;
29334 void *argp1 = 0 ;
29335 int res1 = 0 ;
29336 std::vector< operations_research::IntVar * > temp2 ;
29337 std::vector< operations_research::IntVar * > temp3 ;
29338 PyObject * obj0 = 0 ;
29339 PyObject * obj1 = 0 ;
29340 PyObject * obj2 = 0 ;
29342
29343 if (!PyArg_UnpackTuple(args, "Solver_TreeNoCycle", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
29344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29345 if (!SWIG_IsOK(res1)) {
29346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_TreeNoCycle" "', argument " "1"" of type '" "operations_research::Solver *""'");
29347 }
29348 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29349 {
29350 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29351 if (!PyErr_Occurred())
29352 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
29353 return NULL;
29354 }
29355 arg2 = &temp2;
29356 }
29357 {
29358 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
29359 if (!PyErr_Occurred())
29360 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
29361 return NULL;
29362 }
29363 arg3 = &temp3;
29364 }
29365 {
29366 try {
29367 result = (operations_research::Constraint *)operations_research_Solver_TreeNoCycle__SWIG_0(arg1,(std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3);
29368 }
29369 catch (Swig::DirectorException &e) {
29370 SWIG_fail;
29371 }
29372 }
29374 return resultobj;
29375fail:
29376 return NULL;
29377}
29378
29379
29380SWIGINTERN PyObject *_wrap_Solver_TreeNoCycle(PyObject *self, PyObject *args) {
29381 Py_ssize_t argc;
29382 PyObject *argv[5] = {
29383 0
29384 };
29385 Py_ssize_t ii;
29386
29387 if (!PyTuple_Check(args)) SWIG_fail;
29388 argc = PyObject_Length(args);
29389 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
29390 argv[ii] = PyTuple_GET_ITEM(args,ii);
29391 }
29392 if (argc == 3) {
29393 int _v;
29394 void *vptr = 0;
29395 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
29396 _v = SWIG_CheckState(res);
29397 if (_v) {
29398 {
29399 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
29400 _v = 0;
29401 } else {
29402 const bool is_tuple = PyTuple_Check(argv[1]);
29403 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
29404 size_t i = 0;
29405 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
29406 :PyList_GetItem(argv[1], i))) {
29407 ++i;
29408 }
29409 _v = i == size;
29410 }
29411 }
29412 if (_v) {
29413 {
29414 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
29415 _v = 0;
29416 } else {
29417 const bool is_tuple = PyTuple_Check(argv[2]);
29418 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
29419 size_t i = 0;
29420 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[2], i)
29421 :PyList_GetItem(argv[2], i))) {
29422 ++i;
29423 }
29424 _v = i == size;
29425 }
29426 }
29427 if (_v) {
29428 return _wrap_Solver_TreeNoCycle__SWIG_1(self, args);
29429 }
29430 }
29431 }
29432 }
29433 if (argc == 4) {
29434 int _v;
29435 void *vptr = 0;
29436 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
29437 _v = SWIG_CheckState(res);
29438 if (_v) {
29439 {
29440 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
29441 _v = 0;
29442 } else {
29443 const bool is_tuple = PyTuple_Check(argv[1]);
29444 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
29445 size_t i = 0;
29446 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
29447 :PyList_GetItem(argv[1], i))) {
29448 ++i;
29449 }
29450 _v = i == size;
29451 }
29452 }
29453 if (_v) {
29454 {
29455 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
29456 _v = 0;
29457 } else {
29458 const bool is_tuple = PyTuple_Check(argv[2]);
29459 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
29460 size_t i = 0;
29461 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[2], i)
29462 :PyList_GetItem(argv[2], i))) {
29463 ++i;
29464 }
29465 _v = i == size;
29466 }
29467 }
29468 if (_v) {
29469 {
29470 _v = PyCallable_Check(argv[3]);
29471 }
29472 if (_v) {
29473 return _wrap_Solver_TreeNoCycle__SWIG_0(self, args);
29474 }
29475 }
29476 }
29477 }
29478 }
29479
29480fail:
29481 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_TreeNoCycle'.\n"
29482 " Possible C/C++ prototypes are:\n"
29483 " operations_research::Solver::TreeNoCycle(std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &,operations_research::Solver::IndexFilter1)\n"
29484 " operations_research::Solver::TreeNoCycle(std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &)\n");
29485 return 0;
29486}
29487
29488
29489SWIGINTERN PyObject *_wrap_Solver_SearchLogWithCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29490 PyObject *resultobj = 0;
29492 int arg2 ;
29493 SwigValueWrapper< std::function< std::string () > > arg3 ;
29494 void *argp1 = 0 ;
29495 int res1 = 0 ;
29496 int val2 ;
29497 int ecode2 = 0 ;
29498 PyObject * obj0 = 0 ;
29499 PyObject * obj1 = 0 ;
29500 PyObject * obj2 = 0 ;
29502
29503 if (!PyArg_UnpackTuple(args, "Solver_SearchLogWithCallback", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
29504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29505 if (!SWIG_IsOK(res1)) {
29506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SearchLogWithCallback" "', argument " "1"" of type '" "operations_research::Solver *""'");
29507 }
29508 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29509 ecode2 = SWIG_AsVal_int(obj1, &val2);
29510 if (!SWIG_IsOK(ecode2)) {
29511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_SearchLogWithCallback" "', argument " "2"" of type '" "int""'");
29512 }
29513 arg2 = static_cast< int >(val2);
29514 {
29515 SharedPyPtr input(obj2);
29516 arg3 = [input]() {
29517 return InvokePythonCallableReturning<std::string>(input.get());
29518 };
29519 }
29520 {
29521 try {
29523 }
29524 catch (Swig::DirectorException &e) {
29525 SWIG_fail;
29526 }
29527 }
29529 return resultobj;
29530fail:
29531 return NULL;
29532}
29533
29534
29535SWIGINTERN PyObject *_wrap_Solver_ElementFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29536 PyObject *resultobj = 0;
29538 std::function< int64_t (int64_t) > arg2 ;
29540 void *argp1 = 0 ;
29541 int res1 = 0 ;
29542 PyObject * obj0 = 0 ;
29543 PyObject * obj1 = 0 ;
29544 PyObject * obj2 = 0 ;
29545 operations_research::IntExpr *result = 0 ;
29546
29547 if (!PyArg_UnpackTuple(args, "Solver_ElementFunction", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
29548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29549 if (!SWIG_IsOK(res1)) {
29550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_ElementFunction" "', argument " "1"" of type '" "operations_research::Solver *""'");
29551 }
29552 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29553 {
29554 SharedPyPtr input(obj1);
29555 arg2 = [input](int64_t index) {
29556 return InvokePythonCallableReturning<int64_t>(input.get(), "(L)", index);
29557 };
29558 }
29559 {
29560 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
29561 }
29562 {
29563 try {
29565 }
29566 catch (Swig::DirectorException &e) {
29567 SWIG_fail;
29568 }
29569 }
29571 return resultobj;
29572fail:
29573 return NULL;
29574}
29575
29576
29577SWIGINTERN PyObject *_wrap_Solver_VarEvalValStrPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29578 PyObject *resultobj = 0;
29580 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29581 std::function< int64_t (int64_t) > arg3 ;
29583 void *argp1 = 0 ;
29584 int res1 = 0 ;
29585 std::vector< operations_research::IntVar * > temp2 ;
29586 int val4 ;
29587 int ecode4 = 0 ;
29588 PyObject * obj0 = 0 ;
29589 PyObject * obj1 = 0 ;
29590 PyObject * obj2 = 0 ;
29591 PyObject * obj3 = 0 ;
29593
29594 if (!PyArg_UnpackTuple(args, "Solver_VarEvalValStrPhase", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
29595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29596 if (!SWIG_IsOK(res1)) {
29597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_VarEvalValStrPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
29598 }
29599 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29600 {
29601 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29602 if (!PyErr_Occurred())
29603 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
29604 return NULL;
29605 }
29606 arg2 = &temp2;
29607 }
29608 {
29609 SharedPyPtr input(obj2);
29610 arg3 = [input](int64_t index) {
29611 return InvokePythonCallableReturning<int64_t>(input.get(), "(L)", index);
29612 };
29613 }
29614 ecode4 = SWIG_AsVal_int(obj3, &val4);
29615 if (!SWIG_IsOK(ecode4)) {
29616 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_VarEvalValStrPhase" "', argument " "4"" of type '" "operations_research::Solver::IntValueStrategy""'");
29617 }
29618 arg4 = static_cast< operations_research::Solver::IntValueStrategy >(val4);
29619 {
29620 try {
29621 result = (operations_research::DecisionBuilder *)operations_research_Solver_VarEvalValStrPhase(arg1,(std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4);
29622 }
29623 catch (Swig::DirectorException &e) {
29624 SWIG_fail;
29625 }
29626 }
29628 return resultobj;
29629fail:
29630 return NULL;
29631}
29632
29633
29634SWIGINTERN PyObject *_wrap_Solver_VarStrValEvalPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29635 PyObject *resultobj = 0;
29637 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29640 void *argp1 = 0 ;
29641 int res1 = 0 ;
29642 std::vector< operations_research::IntVar * > temp2 ;
29643 int val3 ;
29644 int ecode3 = 0 ;
29645 PyObject * obj0 = 0 ;
29646 PyObject * obj1 = 0 ;
29647 PyObject * obj2 = 0 ;
29648 PyObject * obj3 = 0 ;
29650
29651 if (!PyArg_UnpackTuple(args, "Solver_VarStrValEvalPhase", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
29652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29653 if (!SWIG_IsOK(res1)) {
29654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_VarStrValEvalPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
29655 }
29656 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29657 {
29658 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29659 if (!PyErr_Occurred())
29660 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
29661 return NULL;
29662 }
29663 arg2 = &temp2;
29664 }
29665 ecode3 = SWIG_AsVal_int(obj2, &val3);
29666 if (!SWIG_IsOK(ecode3)) {
29667 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_VarStrValEvalPhase" "', argument " "3"" of type '" "operations_research::Solver::IntVarStrategy""'");
29668 }
29669 arg3 = static_cast< operations_research::Solver::IntVarStrategy >(val3);
29670 {
29671 SharedPyPtr input(obj3);
29672 arg4 = [input](int64_t i, int64_t j) {
29673 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
29674 };
29675 }
29676 {
29677 try {
29678 result = (operations_research::DecisionBuilder *)operations_research_Solver_VarStrValEvalPhase(arg1,(std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4);
29679 }
29680 catch (Swig::DirectorException &e) {
29681 SWIG_fail;
29682 }
29683 }
29685 return resultobj;
29686fail:
29687 return NULL;
29688}
29689
29690
29691SWIGINTERN PyObject *_wrap_Solver_VarEvalValEvalPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29692 PyObject *resultobj = 0;
29694 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29695 std::function< int64_t (int64_t) > arg3 ;
29697 void *argp1 = 0 ;
29698 int res1 = 0 ;
29699 std::vector< operations_research::IntVar * > temp2 ;
29700 PyObject * obj0 = 0 ;
29701 PyObject * obj1 = 0 ;
29702 PyObject * obj2 = 0 ;
29703 PyObject * obj3 = 0 ;
29705
29706 if (!PyArg_UnpackTuple(args, "Solver_VarEvalValEvalPhase", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
29707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29708 if (!SWIG_IsOK(res1)) {
29709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_VarEvalValEvalPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
29710 }
29711 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29712 {
29713 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29714 if (!PyErr_Occurred())
29715 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
29716 return NULL;
29717 }
29718 arg2 = &temp2;
29719 }
29720 {
29721 SharedPyPtr input(obj2);
29722 arg3 = [input](int64_t index) {
29723 return InvokePythonCallableReturning<int64_t>(input.get(), "(L)", index);
29724 };
29725 }
29726 {
29727 SharedPyPtr input(obj3);
29728 arg4 = [input](int64_t i, int64_t j) {
29729 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
29730 };
29731 }
29732 {
29733 try {
29734 result = (operations_research::DecisionBuilder *)operations_research_Solver_VarEvalValEvalPhase(arg1,(std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4);
29735 }
29736 catch (Swig::DirectorException &e) {
29737 SWIG_fail;
29738 }
29739 }
29741 return resultobj;
29742fail:
29743 return NULL;
29744}
29745
29746
29747SWIGINTERN PyObject *_wrap_Solver_VarStrValEvalTieBreakPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29748 PyObject *resultobj = 0;
29750 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29753 std::function< int64_t (int64_t) > arg5 ;
29754 void *argp1 = 0 ;
29755 int res1 = 0 ;
29756 std::vector< operations_research::IntVar * > temp2 ;
29757 int val3 ;
29758 int ecode3 = 0 ;
29759 PyObject * obj0 = 0 ;
29760 PyObject * obj1 = 0 ;
29761 PyObject * obj2 = 0 ;
29762 PyObject * obj3 = 0 ;
29763 PyObject * obj4 = 0 ;
29765
29766 if (!PyArg_UnpackTuple(args, "Solver_VarStrValEvalTieBreakPhase", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
29767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29768 if (!SWIG_IsOK(res1)) {
29769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_VarStrValEvalTieBreakPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
29770 }
29771 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29772 {
29773 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29774 if (!PyErr_Occurred())
29775 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
29776 return NULL;
29777 }
29778 arg2 = &temp2;
29779 }
29780 ecode3 = SWIG_AsVal_int(obj2, &val3);
29781 if (!SWIG_IsOK(ecode3)) {
29782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Solver_VarStrValEvalTieBreakPhase" "', argument " "3"" of type '" "operations_research::Solver::IntVarStrategy""'");
29783 }
29784 arg3 = static_cast< operations_research::Solver::IntVarStrategy >(val3);
29785 {
29786 SharedPyPtr input(obj3);
29787 arg4 = [input](int64_t i, int64_t j) {
29788 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
29789 };
29790 }
29791 {
29792 SharedPyPtr input(obj4);
29793 arg5 = [input](int64_t index) {
29794 return InvokePythonCallableReturning<int64_t>(input.get(), "(L)", index);
29795 };
29796 }
29797 {
29798 try {
29799 result = (operations_research::DecisionBuilder *)operations_research_Solver_VarStrValEvalTieBreakPhase(arg1,(std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4,arg5);
29800 }
29801 catch (Swig::DirectorException &e) {
29802 SWIG_fail;
29803 }
29804 }
29806 return resultobj;
29807fail:
29808 return NULL;
29809}
29810
29811
29812SWIGINTERN PyObject *_wrap_Solver_VarEvalValEvalTieBreakPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29813 PyObject *resultobj = 0;
29815 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29816 std::function< int64_t (int64_t) > arg3 ;
29818 std::function< int64_t (int64_t) > arg5 ;
29819 void *argp1 = 0 ;
29820 int res1 = 0 ;
29821 std::vector< operations_research::IntVar * > temp2 ;
29822 PyObject * obj0 = 0 ;
29823 PyObject * obj1 = 0 ;
29824 PyObject * obj2 = 0 ;
29825 PyObject * obj3 = 0 ;
29826 PyObject * obj4 = 0 ;
29828
29829 if (!PyArg_UnpackTuple(args, "Solver_VarEvalValEvalTieBreakPhase", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
29830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29831 if (!SWIG_IsOK(res1)) {
29832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_VarEvalValEvalTieBreakPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
29833 }
29834 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29835 {
29836 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29837 if (!PyErr_Occurred())
29838 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
29839 return NULL;
29840 }
29841 arg2 = &temp2;
29842 }
29843 {
29844 SharedPyPtr input(obj2);
29845 arg3 = [input](int64_t index) {
29846 return InvokePythonCallableReturning<int64_t>(input.get(), "(L)", index);
29847 };
29848 }
29849 {
29850 SharedPyPtr input(obj3);
29851 arg4 = [input](int64_t i, int64_t j) {
29852 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
29853 };
29854 }
29855 {
29856 SharedPyPtr input(obj4);
29857 arg5 = [input](int64_t index) {
29858 return InvokePythonCallableReturning<int64_t>(input.get(), "(L)", index);
29859 };
29860 }
29861 {
29862 try {
29863 result = (operations_research::DecisionBuilder *)operations_research_Solver_VarEvalValEvalTieBreakPhase(arg1,(std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4,arg5);
29864 }
29865 catch (Swig::DirectorException &e) {
29866 SWIG_fail;
29867 }
29868 }
29870 return resultobj;
29871fail:
29872 return NULL;
29873}
29874
29875
29876SWIGINTERN PyObject *_wrap_Solver_EvalEvalStrPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29877 PyObject *resultobj = 0;
29879 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29882 void *argp1 = 0 ;
29883 int res1 = 0 ;
29884 std::vector< operations_research::IntVar * > temp2 ;
29885 int val4 ;
29886 int ecode4 = 0 ;
29887 PyObject * obj0 = 0 ;
29888 PyObject * obj1 = 0 ;
29889 PyObject * obj2 = 0 ;
29890 PyObject * obj3 = 0 ;
29892
29893 if (!PyArg_UnpackTuple(args, "Solver_EvalEvalStrPhase", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
29894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29895 if (!SWIG_IsOK(res1)) {
29896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_EvalEvalStrPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
29897 }
29898 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29899 {
29900 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29901 if (!PyErr_Occurred())
29902 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
29903 return NULL;
29904 }
29905 arg2 = &temp2;
29906 }
29907 {
29908 SharedPyPtr input(obj2);
29909 arg3 = [input](int64_t i, int64_t j) {
29910 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
29911 };
29912 }
29913 ecode4 = SWIG_AsVal_int(obj3, &val4);
29914 if (!SWIG_IsOK(ecode4)) {
29915 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_EvalEvalStrPhase" "', argument " "4"" of type '" "operations_research::Solver::EvaluatorStrategy""'");
29916 }
29917 arg4 = static_cast< operations_research::Solver::EvaluatorStrategy >(val4);
29918 {
29919 try {
29920 result = (operations_research::DecisionBuilder *)operations_research_Solver_EvalEvalStrPhase(arg1,(std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4);
29921 }
29922 catch (Swig::DirectorException &e) {
29923 SWIG_fail;
29924 }
29925 }
29927 return resultobj;
29928fail:
29929 return NULL;
29930}
29931
29932
29933SWIGINTERN PyObject *_wrap_Solver_EvalEvalStrTieBreakPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29934 PyObject *resultobj = 0;
29936 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29940 void *argp1 = 0 ;
29941 int res1 = 0 ;
29942 std::vector< operations_research::IntVar * > temp2 ;
29943 int val5 ;
29944 int ecode5 = 0 ;
29945 PyObject * obj0 = 0 ;
29946 PyObject * obj1 = 0 ;
29947 PyObject * obj2 = 0 ;
29948 PyObject * obj3 = 0 ;
29949 PyObject * obj4 = 0 ;
29951
29952 if (!PyArg_UnpackTuple(args, "Solver_EvalEvalStrTieBreakPhase", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
29953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
29954 if (!SWIG_IsOK(res1)) {
29955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_EvalEvalStrTieBreakPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
29956 }
29957 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29958 {
29959 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29960 if (!PyErr_Occurred())
29961 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
29962 return NULL;
29963 }
29964 arg2 = &temp2;
29965 }
29966 {
29967 SharedPyPtr input(obj2);
29968 arg3 = [input](int64_t i, int64_t j) {
29969 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
29970 };
29971 }
29972 {
29973 SharedPyPtr input(obj3);
29974 arg4 = [input](int64_t index) {
29975 return InvokePythonCallableReturning<int64_t>(input.get(), "(L)", index);
29976 };
29977 }
29978 ecode5 = SWIG_AsVal_int(obj4, &val5);
29979 if (!SWIG_IsOK(ecode5)) {
29980 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_EvalEvalStrTieBreakPhase" "', argument " "5"" of type '" "operations_research::Solver::EvaluatorStrategy""'");
29981 }
29982 arg5 = static_cast< operations_research::Solver::EvaluatorStrategy >(val5);
29983 {
29984 try {
29985 result = (operations_research::DecisionBuilder *)operations_research_Solver_EvalEvalStrTieBreakPhase(arg1,(std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4,arg5);
29986 }
29987 catch (Swig::DirectorException &e) {
29988 SWIG_fail;
29989 }
29990 }
29992 return resultobj;
29993fail:
29994 return NULL;
29995}
29996
29997
29998SWIGINTERN PyObject *_wrap_Solver_GuidedLocalSearch__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29999 PyObject *resultobj = 0;
30001 bool arg2 ;
30004 int64_t arg5 ;
30005 std::vector< operations_research::IntVar * > *arg6 = 0 ;
30006 double arg7 ;
30007 void *argp1 = 0 ;
30008 int res1 = 0 ;
30009 bool val2 ;
30010 int ecode2 = 0 ;
30011 long val5 ;
30012 int ecode5 = 0 ;
30013 std::vector< operations_research::IntVar * > temp6 ;
30014 double val7 ;
30015 int ecode7 = 0 ;
30016 PyObject * obj0 = 0 ;
30017 PyObject * obj1 = 0 ;
30018 PyObject * obj2 = 0 ;
30019 PyObject * obj3 = 0 ;
30020 PyObject * obj4 = 0 ;
30021 PyObject * obj5 = 0 ;
30022 PyObject * obj6 = 0 ;
30024
30025 if (!PyArg_UnpackTuple(args, "Solver_GuidedLocalSearch", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6)) SWIG_fail;
30026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
30027 if (!SWIG_IsOK(res1)) {
30028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_GuidedLocalSearch" "', argument " "1"" of type '" "operations_research::Solver *""'");
30029 }
30030 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
30031 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30032 if (!SWIG_IsOK(ecode2)) {
30033 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Solver_GuidedLocalSearch" "', argument " "2"" of type '" "bool""'");
30034 }
30035 arg2 = static_cast< bool >(val2);
30036 {
30037 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
30038 }
30039 {
30040 SharedPyPtr input(obj3);
30041 arg4 = [input](int64_t i, int64_t j) {
30042 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
30043 };
30044 }
30045 ecode5 = SWIG_AsVal_long(obj4, &val5);
30046 if (!SWIG_IsOK(ecode5)) {
30047 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Solver_GuidedLocalSearch" "', argument " "5"" of type '" "int64_t""'");
30048 }
30049 arg5 = static_cast< int64_t >(val5);
30050 {
30051 if (!vector_input_helper(obj5, &temp6, PyObjAs<operations_research::IntVar*>)) {
30052 if (!PyErr_Occurred())
30053 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
30054 return NULL;
30055 }
30056 arg6 = &temp6;
30057 }
30058 ecode7 = SWIG_AsVal_double(obj6, &val7);
30059 if (!SWIG_IsOK(ecode7)) {
30060 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Solver_GuidedLocalSearch" "', argument " "7"" of type '" "double""'");
30061 }
30062 arg7 = static_cast< double >(val7);
30063 {
30064 try {
30065 result = (operations_research::SearchMonitor *)operations_research_Solver_GuidedLocalSearch__SWIG_2(arg1,arg2,arg3,arg4,arg5,(std::vector< operations_research::IntVar * > const &)*arg6,arg7);
30066 }
30067 catch (Swig::DirectorException &e) {
30068 SWIG_fail;
30069 }
30070 }
30072 return resultobj;
30073fail:
30074 return NULL;
30075}
30076
30077
30078SWIGINTERN PyObject *_wrap_Solver_GuidedLocalSearch(PyObject *self, PyObject *args) {
30079 Py_ssize_t argc;
30080 PyObject *argv[9] = {
30081 0
30082 };
30083 Py_ssize_t ii;
30084
30085 if (!PyTuple_Check(args)) SWIG_fail;
30086 argc = PyObject_Length(args);
30087 for (ii = 0; (ii < 8) && (ii < argc); ii++) {
30088 argv[ii] = PyTuple_GET_ITEM(args,ii);
30089 }
30090 if (argc == 7) {
30091 int _v;
30092 void *vptr = 0;
30093 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
30094 _v = SWIG_CheckState(res);
30095 if (_v) {
30096 {
30097 int res = SWIG_AsVal_bool(argv[1], NULL);
30098 _v = SWIG_CheckState(res);
30099 }
30100 if (_v) {
30101 {
30102 _v = CanConvertToIntVar(argv[2]);
30103 if (_v == 0) PyErr_Clear();
30104 }
30105 if (_v) {
30106 {
30107 _v = PyCallable_Check(argv[3]);
30108 }
30109 if (_v) {
30110 {
30111 int res = SWIG_AsVal_long(argv[4], NULL);
30112 _v = SWIG_CheckState(res);
30113 }
30114 if (_v) {
30115 {
30116 if (!PyTuple_Check(argv[5]) && !PyList_Check(argv[5])) {
30117 _v = 0;
30118 } else {
30119 const bool is_tuple = PyTuple_Check(argv[5]);
30120 const size_t size = is_tuple ? PyTuple_Size(argv[5]) : PyList_Size(argv[5]);
30121 size_t i = 0;
30122 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[5], i)
30123 :PyList_GetItem(argv[5], i))) {
30124 ++i;
30125 }
30126 _v = i == size;
30127 }
30128 }
30129 if (_v) {
30130 {
30131 int res = SWIG_AsVal_double(argv[6], NULL);
30132 _v = SWIG_CheckState(res);
30133 }
30134 if (_v) {
30135 return _wrap_Solver_GuidedLocalSearch__SWIG_0(self, args);
30136 }
30137 }
30138 }
30139 }
30140 }
30141 }
30142 }
30143 }
30144 if (argc == 7) {
30145 int _v;
30146 void *vptr = 0;
30147 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
30148 _v = SWIG_CheckState(res);
30149 if (_v) {
30150 {
30151 int res = SWIG_AsVal_bool(argv[1], NULL);
30152 _v = SWIG_CheckState(res);
30153 }
30154 if (_v) {
30155 {
30156 _v = CanConvertToIntVar(argv[2]);
30157 if (_v == 0) PyErr_Clear();
30158 }
30159 if (_v) {
30160 {
30161 _v = PyCallable_Check(argv[3]);
30162 }
30163 if (_v) {
30164 {
30165 int res = SWIG_AsVal_long(argv[4], NULL);
30166 _v = SWIG_CheckState(res);
30167 }
30168 if (_v) {
30169 {
30170 if (!PyTuple_Check(argv[5]) && !PyList_Check(argv[5])) {
30171 _v = 0;
30172 } else {
30173 const bool is_tuple = PyTuple_Check(argv[5]);
30174 const size_t size = is_tuple ? PyTuple_Size(argv[5]) : PyList_Size(argv[5]);
30175 size_t i = 0;
30176 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[5], i)
30177 :PyList_GetItem(argv[5], i))) {
30178 ++i;
30179 }
30180 _v = i == size;
30181 }
30182 }
30183 if (_v) {
30184 {
30185 int res = SWIG_AsVal_double(argv[6], NULL);
30186 _v = SWIG_CheckState(res);
30187 }
30188 if (_v) {
30189 return _wrap_Solver_GuidedLocalSearch__SWIG_2(self, args);
30190 }
30191 }
30192 }
30193 }
30194 }
30195 }
30196 }
30197 }
30198 if (argc == 8) {
30199 int _v;
30200 void *vptr = 0;
30201 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
30202 _v = SWIG_CheckState(res);
30203 if (_v) {
30204 {
30205 int res = SWIG_AsVal_bool(argv[1], NULL);
30206 _v = SWIG_CheckState(res);
30207 }
30208 if (_v) {
30209 {
30210 _v = CanConvertToIntVar(argv[2]);
30211 if (_v == 0) PyErr_Clear();
30212 }
30213 if (_v) {
30214 {
30215 _v = PyCallable_Check(argv[3]);
30216 }
30217 if (_v) {
30218 {
30219 int res = SWIG_AsVal_long(argv[4], NULL);
30220 _v = SWIG_CheckState(res);
30221 }
30222 if (_v) {
30223 {
30224 if (!PyTuple_Check(argv[5]) && !PyList_Check(argv[5])) {
30225 _v = 0;
30226 } else {
30227 const bool is_tuple = PyTuple_Check(argv[5]);
30228 const size_t size = is_tuple ? PyTuple_Size(argv[5]) : PyList_Size(argv[5]);
30229 size_t i = 0;
30230 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[5], i)
30231 :PyList_GetItem(argv[5], i))) {
30232 ++i;
30233 }
30234 _v = i == size;
30235 }
30236 }
30237 if (_v) {
30238 {
30239 if (!PyTuple_Check(argv[6]) && !PyList_Check(argv[6])) {
30240 _v = 0;
30241 } else {
30242 const bool is_tuple = PyTuple_Check(argv[6]);
30243 const size_t size = is_tuple ? PyTuple_Size(argv[6]) : PyList_Size(argv[6]);
30244 size_t i = 0;
30245 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[6], i)
30246 :PyList_GetItem(argv[6], i))) {
30247 ++i;
30248 }
30249 _v = i == size;
30250 }
30251 }
30252 if (_v) {
30253 {
30254 int res = SWIG_AsVal_double(argv[7], NULL);
30255 _v = SWIG_CheckState(res);
30256 }
30257 if (_v) {
30258 return _wrap_Solver_GuidedLocalSearch__SWIG_1(self, args);
30259 }
30260 }
30261 }
30262 }
30263 }
30264 }
30265 }
30266 }
30267 }
30268
30269fail:
30270 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Solver_GuidedLocalSearch'.\n"
30271 " Possible C/C++ prototypes are:\n"
30272 " operations_research::Solver::MakeGuidedLocalSearch(bool,operations_research::IntVar *const,operations_research::Solver::IndexEvaluator2,int64_t,std::vector< operations_research::IntVar * > const &,double)\n"
30273 " operations_research::Solver::MakeGuidedLocalSearch(bool,operations_research::IntVar *const,operations_research::Solver::IndexEvaluator3,int64_t,std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &,double)\n"
30274 " operations_research::Solver::GuidedLocalSearch(bool,operations_research::IntVar *const,operations_research::Solver::IndexEvaluator2,int64_t,std::vector< operations_research::IntVar * > const &,double)\n");
30275 return 0;
30276}
30277
30278
30279SWIGINTERN PyObject *_wrap_Solver_SumObjectiveFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30280 PyObject *resultobj = 0;
30282 std::vector< operations_research::IntVar * > *arg2 = 0 ;
30285 void *argp1 = 0 ;
30286 int res1 = 0 ;
30287 std::vector< operations_research::IntVar * > temp2 ;
30288 int val4 ;
30289 int ecode4 = 0 ;
30290 PyObject * obj0 = 0 ;
30291 PyObject * obj1 = 0 ;
30292 PyObject * obj2 = 0 ;
30293 PyObject * obj3 = 0 ;
30295
30296 if (!PyArg_UnpackTuple(args, "Solver_SumObjectiveFilter", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
30297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
30298 if (!SWIG_IsOK(res1)) {
30299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Solver_SumObjectiveFilter" "', argument " "1"" of type '" "operations_research::Solver *""'");
30300 }
30301 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
30302 {
30303 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
30304 if (!PyErr_Occurred())
30305 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
30306 return NULL;
30307 }
30308 arg2 = &temp2;
30309 }
30310 {
30311 SharedPyPtr input(obj2);
30312 arg3 = [input](int64_t i, int64_t j) {
30313 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
30314 };
30315 }
30316 ecode4 = SWIG_AsVal_int(obj3, &val4);
30317 if (!SWIG_IsOK(ecode4)) {
30318 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Solver_SumObjectiveFilter" "', argument " "4"" of type '" "operations_research::Solver::LocalSearchFilterBound""'");
30319 }
30320 arg4 = static_cast< operations_research::Solver::LocalSearchFilterBound >(val4);
30321 {
30322 try {
30323 result = (operations_research::LocalSearchFilter *)operations_research_Solver_SumObjectiveFilter(arg1,(std::vector< operations_research::IntVar * > const &)*arg2,arg3,arg4);
30324 }
30325 catch (Swig::DirectorException &e) {
30326 SWIG_fail;
30327 }
30328 }
30330 return resultobj;
30331fail:
30332 return NULL;
30333}
30334
30335
30336SWIGINTERN PyObject *Solver_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30337 PyObject *obj;
30338 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
30340 return SWIG_Py_Void();
30341}
30342
30343SWIGINTERN PyObject *Solver_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30344 return SWIG_Python_InitShadowInstance(args);
30345}
30346
30347SWIGINTERN PyObject *_wrap___lshift____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30348 PyObject *resultobj = 0;
30349 std::ostream *arg1 = 0 ;
30351 void *argp1 = 0 ;
30352 int res1 = 0 ;
30353 void *argp2 = 0 ;
30354 int res2 = 0 ;
30355 PyObject * obj0 = 0 ;
30356 PyObject * obj1 = 0 ;
30357 std::ostream *result = 0 ;
30358
30359 if (!PyArg_UnpackTuple(args, "__lshift__", 2, 2, &obj0, &obj1)) SWIG_fail;
30360 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__ostream, 0 );
30361 if (!SWIG_IsOK(res1)) {
30362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__lshift__" "', argument " "1"" of type '" "std::ostream &""'");
30363 }
30364 if (!argp1) {
30365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__lshift__" "', argument " "1"" of type '" "std::ostream &""'");
30366 }
30367 arg1 = reinterpret_cast< std::ostream * >(argp1);
30368 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
30369 if (!SWIG_IsOK(res2)) {
30370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__lshift__" "', argument " "2"" of type '" "operations_research::Solver const *const""'");
30371 }
30372 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
30373 {
30374 try {
30375 result = (std::ostream *) &operations_research::operator <<(*arg1,(operations_research::Solver const *)arg2);
30376 }
30377 catch (Swig::DirectorException &e) {
30378 SWIG_fail;
30379 }
30380 }
30381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__ostream, 0 | 0 );
30382 return resultobj;
30383fail:
30384 PyErr_Clear();
30385 Py_INCREF(Py_NotImplemented);
30386 return Py_NotImplemented;
30387}
30388
30389
30390SWIGINTERN PyObject *_wrap_new_BaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30391 PyObject *resultobj = 0;
30392 PyObject *arg1 = (PyObject *) 0 ;
30393 PyObject * obj0 = 0 ;
30395
30396 if (!PyArg_UnpackTuple(args, "new_BaseObject", 1, 1, &obj0)) SWIG_fail;
30397 arg1 = obj0;
30398 {
30399 try {
30400 if ( arg1 != Py_None ) {
30401 /* subclassed */
30403 } else {
30405 }
30406 }
30407 catch (Swig::DirectorException &e) {
30408 SWIG_fail;
30409 }
30410 }
30412 return resultobj;
30413fail:
30414 return NULL;
30415}
30416
30417
30418SWIGINTERN PyObject *_wrap_delete_BaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30419 PyObject *resultobj = 0;
30421 void *argp1 = 0 ;
30422 int res1 = 0 ;
30423 PyObject * obj0 = 0 ;
30424
30425 if (!PyArg_UnpackTuple(args, "delete_BaseObject", 1, 1, &obj0)) SWIG_fail;
30427 if (!SWIG_IsOK(res1)) {
30428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BaseObject" "', argument " "1"" of type '" "operations_research::BaseObject *""'");
30429 }
30430 arg1 = reinterpret_cast< operations_research::BaseObject * >(argp1);
30431 {
30432 try {
30433 delete arg1;
30434 }
30435 catch (Swig::DirectorException &e) {
30436 SWIG_fail;
30437 }
30438 }
30439 resultobj = SWIG_Py_Void();
30440 return resultobj;
30441fail:
30442 return NULL;
30443}
30444
30445
30446SWIGINTERN PyObject *_wrap_BaseObject_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30447 PyObject *resultobj = 0;
30449 void *argp1 = 0 ;
30450 int res1 = 0 ;
30451 PyObject * obj0 = 0 ;
30452 Swig::Director *director = 0;
30453 bool upcall = false;
30454 std::string result;
30455
30456 if (!PyArg_UnpackTuple(args, "BaseObject_DebugString", 1, 1, &obj0)) SWIG_fail;
30458 if (!SWIG_IsOK(res1)) {
30459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BaseObject_DebugString" "', argument " "1"" of type '" "operations_research::BaseObject const *""'");
30460 }
30461 arg1 = reinterpret_cast< operations_research::BaseObject * >(argp1);
30462 director = SWIG_DIRECTOR_CAST(arg1);
30463 upcall = (director && (director->swig_get_self()==obj0));
30464 try {
30465 {
30466 try {
30467 if (upcall) {
30468 result = ((operations_research::BaseObject const *)arg1)->operations_research::BaseObject::DebugString();
30469 } else {
30470 result = ((operations_research::BaseObject const *)arg1)->DebugString();
30471 }
30472 }
30473 catch (Swig::DirectorException &e) {
30474 SWIG_fail;
30475 }
30476 }
30477 } catch (Swig::DirectorException&) {
30478 SWIG_fail;
30479 }
30480 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
30481 return resultobj;
30482fail:
30483 return NULL;
30484}
30485
30486
30487SWIGINTERN PyObject *_wrap_BaseObject___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30488 PyObject *resultobj = 0;
30490 void *argp1 = 0 ;
30491 int res1 = 0 ;
30492 PyObject * obj0 = 0 ;
30493 std::string result;
30494
30495 if (!PyArg_UnpackTuple(args, "BaseObject___str__", 1, 1, &obj0)) SWIG_fail;
30497 if (!SWIG_IsOK(res1)) {
30498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BaseObject___str__" "', argument " "1"" of type '" "operations_research::BaseObject *""'");
30499 }
30500 arg1 = reinterpret_cast< operations_research::BaseObject * >(argp1);
30501 {
30502 try {
30504 }
30505 catch (Swig::DirectorException &e) {
30506 SWIG_fail;
30507 }
30508 }
30509 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
30510 return resultobj;
30511fail:
30512 return NULL;
30513}
30514
30515
30516SWIGINTERN PyObject *_wrap_BaseObject___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30517 PyObject *resultobj = 0;
30519 void *argp1 = 0 ;
30520 int res1 = 0 ;
30521 PyObject * obj0 = 0 ;
30522 std::string result;
30523
30524 if (!PyArg_UnpackTuple(args, "BaseObject___repr__", 1, 1, &obj0)) SWIG_fail;
30526 if (!SWIG_IsOK(res1)) {
30527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BaseObject___repr__" "', argument " "1"" of type '" "operations_research::BaseObject *""'");
30528 }
30529 arg1 = reinterpret_cast< operations_research::BaseObject * >(argp1);
30530 {
30531 try {
30533 }
30534 catch (Swig::DirectorException &e) {
30535 SWIG_fail;
30536 }
30537 }
30538 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
30539 return resultobj;
30540fail:
30541 return NULL;
30542}
30543
30544
30545SWIGINTERN PyObject *_wrap_disown_BaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30546 PyObject *resultobj = 0;
30548 void *argp1 = 0 ;
30549 int res1 = 0 ;
30550 PyObject * obj0 = 0 ;
30551
30552 if (!PyArg_UnpackTuple(args, "disown_BaseObject", 1, 1, &obj0)) SWIG_fail;
30554 if (!SWIG_IsOK(res1)) {
30555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_BaseObject" "', argument " "1"" of type '" "operations_research::BaseObject *""'");
30556 }
30557 arg1 = reinterpret_cast< operations_research::BaseObject * >(argp1);
30558 {
30559 Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
30560 if (director) director->swig_disown();
30561 }
30562
30563 resultobj = SWIG_Py_Void();
30564 return resultobj;
30565fail:
30566 return NULL;
30567}
30568
30569
30570SWIGINTERN PyObject *BaseObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30571 PyObject *obj;
30572 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
30574 return SWIG_Py_Void();
30575}
30576
30577SWIGINTERN PyObject *BaseObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30578 return SWIG_Python_InitShadowInstance(args);
30579}
30580
30581SWIGINTERN PyObject *_wrap___lshift____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30582 PyObject *resultobj = 0;
30583 std::ostream *arg1 = 0 ;
30585 void *argp1 = 0 ;
30586 int res1 = 0 ;
30587 void *argp2 = 0 ;
30588 int res2 = 0 ;
30589 PyObject * obj0 = 0 ;
30590 PyObject * obj1 = 0 ;
30591 std::ostream *result = 0 ;
30592
30593 if (!PyArg_UnpackTuple(args, "__lshift__", 2, 2, &obj0, &obj1)) SWIG_fail;
30594 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__ostream, 0 );
30595 if (!SWIG_IsOK(res1)) {
30596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__lshift__" "', argument " "1"" of type '" "std::ostream &""'");
30597 }
30598 if (!argp1) {
30599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__lshift__" "', argument " "1"" of type '" "std::ostream &""'");
30600 }
30601 arg1 = reinterpret_cast< std::ostream * >(argp1);
30603 if (!SWIG_IsOK(res2)) {
30604 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__lshift__" "', argument " "2"" of type '" "operations_research::BaseObject const *""'");
30605 }
30606 arg2 = reinterpret_cast< operations_research::BaseObject * >(argp2);
30607 {
30608 try {
30609 result = (std::ostream *) &operations_research::operator <<(*arg1,(operations_research::BaseObject const *)arg2);
30610 }
30611 catch (Swig::DirectorException &e) {
30612 SWIG_fail;
30613 }
30614 }
30615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__ostream, 0 | 0 );
30616 return resultobj;
30617fail:
30618 PyErr_Clear();
30619 Py_INCREF(Py_NotImplemented);
30620 return Py_NotImplemented;
30621}
30622
30623
30624SWIGINTERN PyObject *_wrap_new_PropagationBaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30625 PyObject *resultobj = 0;
30626 PyObject *arg1 = (PyObject *) 0 ;
30628 void *argp2 = 0 ;
30629 int res2 = 0 ;
30630 PyObject * obj0 = 0 ;
30631 PyObject * obj1 = 0 ;
30633
30634 if (!PyArg_UnpackTuple(args, "new_PropagationBaseObject", 2, 2, &obj0, &obj1)) SWIG_fail;
30635 arg1 = obj0;
30636 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
30637 if (!SWIG_IsOK(res2)) {
30638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PropagationBaseObject" "', argument " "2"" of type '" "operations_research::Solver *const""'");
30639 }
30640 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
30641 {
30642 try {
30643 if ( arg1 != Py_None ) {
30644 /* subclassed */
30646 } else {
30648 }
30649 }
30650 catch (Swig::DirectorException &e) {
30651 SWIG_fail;
30652 }
30653 }
30655 return resultobj;
30656fail:
30657 return NULL;
30658}
30659
30660
30661SWIGINTERN PyObject *_wrap_delete_PropagationBaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30662 PyObject *resultobj = 0;
30664 void *argp1 = 0 ;
30665 int res1 = 0 ;
30666 PyObject * obj0 = 0 ;
30667
30668 if (!PyArg_UnpackTuple(args, "delete_PropagationBaseObject", 1, 1, &obj0)) SWIG_fail;
30670 if (!SWIG_IsOK(res1)) {
30671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PropagationBaseObject" "', argument " "1"" of type '" "operations_research::PropagationBaseObject *""'");
30672 }
30673 arg1 = reinterpret_cast< operations_research::PropagationBaseObject * >(argp1);
30674 {
30675 try {
30676 delete arg1;
30677 }
30678 catch (Swig::DirectorException &e) {
30679 SWIG_fail;
30680 }
30681 }
30682 resultobj = SWIG_Py_Void();
30683 return resultobj;
30684fail:
30685 return NULL;
30686}
30687
30688
30689SWIGINTERN PyObject *_wrap_PropagationBaseObject_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30690 PyObject *resultobj = 0;
30692 void *argp1 = 0 ;
30693 int res1 = 0 ;
30694 PyObject * obj0 = 0 ;
30695 Swig::Director *director = 0;
30696 bool upcall = false;
30697 std::string result;
30698
30699 if (!PyArg_UnpackTuple(args, "PropagationBaseObject_DebugString", 1, 1, &obj0)) SWIG_fail;
30701 if (!SWIG_IsOK(res1)) {
30702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PropagationBaseObject_DebugString" "', argument " "1"" of type '" "operations_research::PropagationBaseObject const *""'");
30703 }
30704 arg1 = reinterpret_cast< operations_research::PropagationBaseObject * >(argp1);
30705 director = SWIG_DIRECTOR_CAST(arg1);
30706 upcall = (director && (director->swig_get_self()==obj0));
30707 try {
30708 {
30709 try {
30710 if (upcall) {
30711 result = ((operations_research::PropagationBaseObject const *)arg1)->operations_research::PropagationBaseObject::DebugString();
30712 } else {
30713 result = ((operations_research::PropagationBaseObject const *)arg1)->DebugString();
30714 }
30715 }
30716 catch (Swig::DirectorException &e) {
30717 SWIG_fail;
30718 }
30719 }
30720 } catch (Swig::DirectorException&) {
30721 SWIG_fail;
30722 }
30723 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
30724 return resultobj;
30725fail:
30726 return NULL;
30727}
30728
30729
30730SWIGINTERN PyObject *_wrap_PropagationBaseObject_solver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30731 PyObject *resultobj = 0;
30733 void *argp1 = 0 ;
30734 int res1 = 0 ;
30735 PyObject * obj0 = 0 ;
30736 operations_research::Solver *result = 0 ;
30737
30738 if (!PyArg_UnpackTuple(args, "PropagationBaseObject_solver", 1, 1, &obj0)) SWIG_fail;
30740 if (!SWIG_IsOK(res1)) {
30741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PropagationBaseObject_solver" "', argument " "1"" of type '" "operations_research::PropagationBaseObject const *""'");
30742 }
30743 arg1 = reinterpret_cast< operations_research::PropagationBaseObject * >(argp1);
30744 {
30745 try {
30746 result = (operations_research::Solver *)((operations_research::PropagationBaseObject const *)arg1)->solver();
30747 }
30748 catch (Swig::DirectorException &e) {
30749 SWIG_fail;
30750 }
30751 }
30753 return resultobj;
30754fail:
30755 return NULL;
30756}
30757
30758
30759SWIGINTERN PyObject *_wrap_PropagationBaseObject_Name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30760 PyObject *resultobj = 0;
30762 void *argp1 = 0 ;
30763 int res1 = 0 ;
30764 PyObject * obj0 = 0 ;
30765 Swig::Director *director = 0;
30766 bool upcall = false;
30767 std::string result;
30768
30769 if (!PyArg_UnpackTuple(args, "PropagationBaseObject_Name", 1, 1, &obj0)) SWIG_fail;
30771 if (!SWIG_IsOK(res1)) {
30772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PropagationBaseObject_Name" "', argument " "1"" of type '" "operations_research::PropagationBaseObject const *""'");
30773 }
30774 arg1 = reinterpret_cast< operations_research::PropagationBaseObject * >(argp1);
30775 director = SWIG_DIRECTOR_CAST(arg1);
30776 upcall = (director && (director->swig_get_self()==obj0));
30777 try {
30778 {
30779 try {
30780 if (upcall) {
30781 result = ((operations_research::PropagationBaseObject const *)arg1)->operations_research::PropagationBaseObject::name();
30782 } else {
30783 result = ((operations_research::PropagationBaseObject const *)arg1)->name();
30784 }
30785 }
30786 catch (Swig::DirectorException &e) {
30787 SWIG_fail;
30788 }
30789 }
30790 } catch (Swig::DirectorException&) {
30791 SWIG_fail;
30792 }
30793 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
30794 return resultobj;
30795fail:
30796 return NULL;
30797}
30798
30799
30800SWIGINTERN PyObject *_wrap_disown_PropagationBaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30801 PyObject *resultobj = 0;
30803 void *argp1 = 0 ;
30804 int res1 = 0 ;
30805 PyObject * obj0 = 0 ;
30806
30807 if (!PyArg_UnpackTuple(args, "disown_PropagationBaseObject", 1, 1, &obj0)) SWIG_fail;
30809 if (!SWIG_IsOK(res1)) {
30810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_PropagationBaseObject" "', argument " "1"" of type '" "operations_research::PropagationBaseObject *""'");
30811 }
30812 arg1 = reinterpret_cast< operations_research::PropagationBaseObject * >(argp1);
30813 {
30814 Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
30815 if (director) director->swig_disown();
30816 }
30817
30818 resultobj = SWIG_Py_Void();
30819 return resultobj;
30820fail:
30821 return NULL;
30822}
30823
30824
30825SWIGINTERN PyObject *PropagationBaseObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30826 PyObject *obj;
30827 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
30829 return SWIG_Py_Void();
30830}
30831
30832SWIGINTERN PyObject *PropagationBaseObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30833 return SWIG_Python_InitShadowInstance(args);
30834}
30835
30836SWIGINTERN PyObject *_wrap_new_Decision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30837 PyObject *resultobj = 0;
30838 PyObject *arg1 = (PyObject *) 0 ;
30839 PyObject * obj0 = 0 ;
30840 operations_research::Decision *result = 0 ;
30841
30842 if (!PyArg_UnpackTuple(args, "new_Decision", 1, 1, &obj0)) SWIG_fail;
30843 arg1 = obj0;
30844 {
30845 try {
30846 if ( arg1 != Py_None ) {
30847 /* subclassed */
30849 } else {
30850 SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
30851 SWIG_fail;
30852 }
30853 }
30854 catch (Swig::DirectorException &e) {
30855 SWIG_fail;
30856 }
30857 }
30859 return resultobj;
30860fail:
30861 return NULL;
30862}
30863
30864
30865SWIGINTERN PyObject *_wrap_delete_Decision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30866 PyObject *resultobj = 0;
30868 void *argp1 = 0 ;
30869 int res1 = 0 ;
30870 PyObject * obj0 = 0 ;
30871
30872 if (!PyArg_UnpackTuple(args, "delete_Decision", 1, 1, &obj0)) SWIG_fail;
30874 if (!SWIG_IsOK(res1)) {
30875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Decision" "', argument " "1"" of type '" "operations_research::Decision *""'");
30876 }
30877 arg1 = reinterpret_cast< operations_research::Decision * >(argp1);
30878 {
30879 try {
30880 delete arg1;
30881 }
30882 catch (Swig::DirectorException &e) {
30883 SWIG_fail;
30884 }
30885 }
30886 resultobj = SWIG_Py_Void();
30887 return resultobj;
30888fail:
30889 return NULL;
30890}
30891
30892
30893SWIGINTERN PyObject *_wrap_Decision_ApplyWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30894 PyObject *resultobj = 0;
30897 void *argp1 = 0 ;
30898 int res1 = 0 ;
30899 void *argp2 = 0 ;
30900 int res2 = 0 ;
30901 PyObject * obj0 = 0 ;
30902 PyObject * obj1 = 0 ;
30903 Swig::Director *director = 0;
30904 bool upcall = false;
30905
30906 if (!PyArg_UnpackTuple(args, "Decision_ApplyWrapper", 2, 2, &obj0, &obj1)) SWIG_fail;
30907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Decision, 0 | 0 );
30908 if (!SWIG_IsOK(res1)) {
30909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Decision_ApplyWrapper" "', argument " "1"" of type '" "operations_research::Decision *""'");
30910 }
30911 arg1 = reinterpret_cast< operations_research::Decision * >(argp1);
30912 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
30913 if (!SWIG_IsOK(res2)) {
30914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Decision_ApplyWrapper" "', argument " "2"" of type '" "operations_research::Solver *const""'");
30915 }
30916 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
30917 director = SWIG_DIRECTOR_CAST(arg1);
30918 upcall = (director && (director->swig_get_self()==obj0));
30919 try {
30920 {
30921 try {
30922 if (upcall) {
30923 Swig::DirectorPureVirtualException::raise("operations_research::Decision::Apply");
30924 } else {
30925 (arg1)->Apply(arg2);
30926 }
30927 }
30928 catch (Swig::DirectorException &e) {
30929 SWIG_fail;
30930 }
30931 }
30932 } catch (Swig::DirectorException&) {
30933 SWIG_fail;
30934 }
30935 resultobj = SWIG_Py_Void();
30936 return resultobj;
30937fail:
30938 return NULL;
30939}
30940
30941
30942SWIGINTERN PyObject *_wrap_Decision_RefuteWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30943 PyObject *resultobj = 0;
30946 void *argp1 = 0 ;
30947 int res1 = 0 ;
30948 void *argp2 = 0 ;
30949 int res2 = 0 ;
30950 PyObject * obj0 = 0 ;
30951 PyObject * obj1 = 0 ;
30952 Swig::Director *director = 0;
30953 bool upcall = false;
30954
30955 if (!PyArg_UnpackTuple(args, "Decision_RefuteWrapper", 2, 2, &obj0, &obj1)) SWIG_fail;
30956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Decision, 0 | 0 );
30957 if (!SWIG_IsOK(res1)) {
30958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Decision_RefuteWrapper" "', argument " "1"" of type '" "operations_research::Decision *""'");
30959 }
30960 arg1 = reinterpret_cast< operations_research::Decision * >(argp1);
30961 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
30962 if (!SWIG_IsOK(res2)) {
30963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Decision_RefuteWrapper" "', argument " "2"" of type '" "operations_research::Solver *const""'");
30964 }
30965 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
30966 director = SWIG_DIRECTOR_CAST(arg1);
30967 upcall = (director && (director->swig_get_self()==obj0));
30968 try {
30969 {
30970 try {
30971 if (upcall) {
30972 Swig::DirectorPureVirtualException::raise("operations_research::Decision::Refute");
30973 } else {
30974 (arg1)->Refute(arg2);
30975 }
30976 }
30977 catch (Swig::DirectorException &e) {
30978 SWIG_fail;
30979 }
30980 }
30981 } catch (Swig::DirectorException&) {
30982 SWIG_fail;
30983 }
30984 resultobj = SWIG_Py_Void();
30985 return resultobj;
30986fail:
30987 return NULL;
30988}
30989
30990
30991SWIGINTERN PyObject *_wrap_Decision_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30992 PyObject *resultobj = 0;
30994 void *argp1 = 0 ;
30995 int res1 = 0 ;
30996 PyObject * obj0 = 0 ;
30997 Swig::Director *director = 0;
30998 bool upcall = false;
30999 std::string result;
31000
31001 if (!PyArg_UnpackTuple(args, "Decision_DebugString", 1, 1, &obj0)) SWIG_fail;
31002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Decision, 0 | 0 );
31003 if (!SWIG_IsOK(res1)) {
31004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Decision_DebugString" "', argument " "1"" of type '" "operations_research::Decision const *""'");
31005 }
31006 arg1 = reinterpret_cast< operations_research::Decision * >(argp1);
31007 director = SWIG_DIRECTOR_CAST(arg1);
31008 upcall = (director && (director->swig_get_self()==obj0));
31009 try {
31010 {
31011 try {
31012 if (upcall) {
31013 result = ((operations_research::Decision const *)arg1)->operations_research::Decision::DebugString();
31014 } else {
31015 result = ((operations_research::Decision const *)arg1)->DebugString();
31016 }
31017 }
31018 catch (Swig::DirectorException &e) {
31019 SWIG_fail;
31020 }
31021 }
31022 } catch (Swig::DirectorException&) {
31023 SWIG_fail;
31024 }
31025 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
31026 return resultobj;
31027fail:
31028 return NULL;
31029}
31030
31031
31032SWIGINTERN PyObject *_wrap_Decision___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31033 PyObject *resultobj = 0;
31035 void *argp1 = 0 ;
31036 int res1 = 0 ;
31037 PyObject * obj0 = 0 ;
31038 std::string result;
31039
31040 if (!PyArg_UnpackTuple(args, "Decision___repr__", 1, 1, &obj0)) SWIG_fail;
31041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Decision, 0 | 0 );
31042 if (!SWIG_IsOK(res1)) {
31043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Decision___repr__" "', argument " "1"" of type '" "operations_research::Decision *""'");
31044 }
31045 arg1 = reinterpret_cast< operations_research::Decision * >(argp1);
31046 {
31047 try {
31049 }
31050 catch (Swig::DirectorException &e) {
31051 SWIG_fail;
31052 }
31053 }
31054 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
31055 return resultobj;
31056fail:
31057 return NULL;
31058}
31059
31060
31061SWIGINTERN PyObject *_wrap_Decision___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31062 PyObject *resultobj = 0;
31064 void *argp1 = 0 ;
31065 int res1 = 0 ;
31066 PyObject * obj0 = 0 ;
31067 std::string result;
31068
31069 if (!PyArg_UnpackTuple(args, "Decision___str__", 1, 1, &obj0)) SWIG_fail;
31070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Decision, 0 | 0 );
31071 if (!SWIG_IsOK(res1)) {
31072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Decision___str__" "', argument " "1"" of type '" "operations_research::Decision *""'");
31073 }
31074 arg1 = reinterpret_cast< operations_research::Decision * >(argp1);
31075 {
31076 try {
31078 }
31079 catch (Swig::DirectorException &e) {
31080 SWIG_fail;
31081 }
31082 }
31083 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
31084 return resultobj;
31085fail:
31086 return NULL;
31087}
31088
31089
31090SWIGINTERN PyObject *_wrap_disown_Decision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31091 PyObject *resultobj = 0;
31093 void *argp1 = 0 ;
31094 int res1 = 0 ;
31095 PyObject * obj0 = 0 ;
31096
31097 if (!PyArg_UnpackTuple(args, "disown_Decision", 1, 1, &obj0)) SWIG_fail;
31098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Decision, 0 | 0 );
31099 if (!SWIG_IsOK(res1)) {
31100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_Decision" "', argument " "1"" of type '" "operations_research::Decision *""'");
31101 }
31102 arg1 = reinterpret_cast< operations_research::Decision * >(argp1);
31103 {
31104 Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
31105 if (director) director->swig_disown();
31106 }
31107
31108 resultobj = SWIG_Py_Void();
31109 return resultobj;
31110fail:
31111 return NULL;
31112}
31113
31114
31115SWIGINTERN PyObject *Decision_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31116 PyObject *obj;
31117 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
31119 return SWIG_Py_Void();
31120}
31121
31122SWIGINTERN PyObject *Decision_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31123 return SWIG_Python_InitShadowInstance(args);
31124}
31125
31126SWIGINTERN PyObject *_wrap_new_DecisionBuilder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31127 PyObject *resultobj = 0;
31128 PyObject *arg1 = (PyObject *) 0 ;
31129 PyObject * obj0 = 0 ;
31131
31132 if (!PyArg_UnpackTuple(args, "new_DecisionBuilder", 1, 1, &obj0)) SWIG_fail;
31133 arg1 = obj0;
31134 {
31135 try {
31136 if ( arg1 != Py_None ) {
31137 /* subclassed */
31139 } else {
31140 SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
31141 SWIG_fail;
31142 }
31143 }
31144 catch (Swig::DirectorException &e) {
31145 SWIG_fail;
31146 }
31147 }
31149 return resultobj;
31150fail:
31151 return NULL;
31152}
31153
31154
31155SWIGINTERN PyObject *_wrap_delete_DecisionBuilder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31156 PyObject *resultobj = 0;
31158 void *argp1 = 0 ;
31159 int res1 = 0 ;
31160 PyObject * obj0 = 0 ;
31161
31162 if (!PyArg_UnpackTuple(args, "delete_DecisionBuilder", 1, 1, &obj0)) SWIG_fail;
31164 if (!SWIG_IsOK(res1)) {
31165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DecisionBuilder" "', argument " "1"" of type '" "operations_research::DecisionBuilder *""'");
31166 }
31167 arg1 = reinterpret_cast< operations_research::DecisionBuilder * >(argp1);
31168 {
31169 try {
31170 delete arg1;
31171 }
31172 catch (Swig::DirectorException &e) {
31173 SWIG_fail;
31174 }
31175 }
31176 resultobj = SWIG_Py_Void();
31177 return resultobj;
31178fail:
31179 return NULL;
31180}
31181
31182
31183SWIGINTERN PyObject *_wrap_DecisionBuilder_NextWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31184 PyObject *resultobj = 0;
31187 void *argp1 = 0 ;
31188 int res1 = 0 ;
31189 void *argp2 = 0 ;
31190 int res2 = 0 ;
31191 PyObject * obj0 = 0 ;
31192 PyObject * obj1 = 0 ;
31193 Swig::Director *director = 0;
31194 bool upcall = false;
31195 operations_research::Decision *result = 0 ;
31196
31197 if (!PyArg_UnpackTuple(args, "DecisionBuilder_NextWrapper", 2, 2, &obj0, &obj1)) SWIG_fail;
31199 if (!SWIG_IsOK(res1)) {
31200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DecisionBuilder_NextWrapper" "', argument " "1"" of type '" "operations_research::DecisionBuilder *""'");
31201 }
31202 arg1 = reinterpret_cast< operations_research::DecisionBuilder * >(argp1);
31203 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
31204 if (!SWIG_IsOK(res2)) {
31205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DecisionBuilder_NextWrapper" "', argument " "2"" of type '" "operations_research::Solver *const""'");
31206 }
31207 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
31208 director = SWIG_DIRECTOR_CAST(arg1);
31209 upcall = (director && (director->swig_get_self()==obj0));
31210 try {
31211 {
31212 try {
31213 if (upcall) {
31214 Swig::DirectorPureVirtualException::raise("operations_research::DecisionBuilder::Next");
31215 } else {
31216 result = (operations_research::Decision *)(arg1)->Next(arg2);
31217 }
31218 }
31219 catch (Swig::DirectorException &e) {
31220 SWIG_fail;
31221 }
31222 }
31223 } catch (Swig::DirectorException&) {
31224 SWIG_fail;
31225 }
31226 director = SWIG_DIRECTOR_CAST(result);
31227 if (director) {
31228 resultobj = director->swig_get_self();
31229 Py_INCREF(resultobj);
31230 } else {
31232 }
31233 if (director) {
31234 SWIG_AcquirePtr(resultobj, director->swig_release_ownership(SWIG_as_voidptr(result)));
31235 }
31236 return resultobj;
31237fail:
31238 return NULL;
31239}
31240
31241
31242SWIGINTERN PyObject *_wrap_DecisionBuilder_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31243 PyObject *resultobj = 0;
31245 void *argp1 = 0 ;
31246 int res1 = 0 ;
31247 PyObject * obj0 = 0 ;
31248 Swig::Director *director = 0;
31249 bool upcall = false;
31250 std::string result;
31251
31252 if (!PyArg_UnpackTuple(args, "DecisionBuilder_DebugString", 1, 1, &obj0)) SWIG_fail;
31254 if (!SWIG_IsOK(res1)) {
31255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DecisionBuilder_DebugString" "', argument " "1"" of type '" "operations_research::DecisionBuilder const *""'");
31256 }
31257 arg1 = reinterpret_cast< operations_research::DecisionBuilder * >(argp1);
31258 director = SWIG_DIRECTOR_CAST(arg1);
31259 upcall = (director && (director->swig_get_self()==obj0));
31260 try {
31261 {
31262 try {
31263 if (upcall) {
31264 result = ((operations_research::DecisionBuilder const *)arg1)->operations_research::DecisionBuilder::DebugString();
31265 } else {
31266 result = ((operations_research::DecisionBuilder const *)arg1)->DebugString();
31267 }
31268 }
31269 catch (Swig::DirectorException &e) {
31270 SWIG_fail;
31271 }
31272 }
31273 } catch (Swig::DirectorException&) {
31274 SWIG_fail;
31275 }
31276 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
31277 return resultobj;
31278fail:
31279 return NULL;
31280}
31281
31282
31283SWIGINTERN PyObject *_wrap_DecisionBuilder___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31284 PyObject *resultobj = 0;
31286 void *argp1 = 0 ;
31287 int res1 = 0 ;
31288 PyObject * obj0 = 0 ;
31289 std::string result;
31290
31291 if (!PyArg_UnpackTuple(args, "DecisionBuilder___repr__", 1, 1, &obj0)) SWIG_fail;
31293 if (!SWIG_IsOK(res1)) {
31294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DecisionBuilder___repr__" "', argument " "1"" of type '" "operations_research::DecisionBuilder *""'");
31295 }
31296 arg1 = reinterpret_cast< operations_research::DecisionBuilder * >(argp1);
31297 {
31298 try {
31300 }
31301 catch (Swig::DirectorException &e) {
31302 SWIG_fail;
31303 }
31304 }
31305 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
31306 return resultobj;
31307fail:
31308 return NULL;
31309}
31310
31311
31312SWIGINTERN PyObject *_wrap_DecisionBuilder___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31313 PyObject *resultobj = 0;
31315 void *argp1 = 0 ;
31316 int res1 = 0 ;
31317 PyObject * obj0 = 0 ;
31318 std::string result;
31319
31320 if (!PyArg_UnpackTuple(args, "DecisionBuilder___str__", 1, 1, &obj0)) SWIG_fail;
31322 if (!SWIG_IsOK(res1)) {
31323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DecisionBuilder___str__" "', argument " "1"" of type '" "operations_research::DecisionBuilder *""'");
31324 }
31325 arg1 = reinterpret_cast< operations_research::DecisionBuilder * >(argp1);
31326 {
31327 try {
31329 }
31330 catch (Swig::DirectorException &e) {
31331 SWIG_fail;
31332 }
31333 }
31334 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
31335 return resultobj;
31336fail:
31337 return NULL;
31338}
31339
31340
31341SWIGINTERN PyObject *_wrap_disown_DecisionBuilder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31342 PyObject *resultobj = 0;
31344 void *argp1 = 0 ;
31345 int res1 = 0 ;
31346 PyObject * obj0 = 0 ;
31347
31348 if (!PyArg_UnpackTuple(args, "disown_DecisionBuilder", 1, 1, &obj0)) SWIG_fail;
31350 if (!SWIG_IsOK(res1)) {
31351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_DecisionBuilder" "', argument " "1"" of type '" "operations_research::DecisionBuilder *""'");
31352 }
31353 arg1 = reinterpret_cast< operations_research::DecisionBuilder * >(argp1);
31354 {
31355 Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
31356 if (director) director->swig_disown();
31357 }
31358
31359 resultobj = SWIG_Py_Void();
31360 return resultobj;
31361fail:
31362 return NULL;
31363}
31364
31365
31366SWIGINTERN PyObject *DecisionBuilder_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31367 PyObject *obj;
31368 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
31370 return SWIG_Py_Void();
31371}
31372
31373SWIGINTERN PyObject *DecisionBuilder_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31374 return SWIG_Python_InitShadowInstance(args);
31375}
31376
31377SWIGINTERN PyObject *_wrap_new_Demon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31378 PyObject *resultobj = 0;
31379 PyObject *arg1 = (PyObject *) 0 ;
31380 PyObject * obj0 = 0 ;
31381 operations_research::Demon *result = 0 ;
31382
31383 if (!PyArg_UnpackTuple(args, "new_Demon", 1, 1, &obj0)) SWIG_fail;
31384 arg1 = obj0;
31385 {
31386 try {
31387 if ( arg1 != Py_None ) {
31388 /* subclassed */
31389 result = (operations_research::Demon *)new SwigDirector_Demon(arg1);
31390 } else {
31391 SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
31392 SWIG_fail;
31393 }
31394 }
31395 catch (Swig::DirectorException &e) {
31396 SWIG_fail;
31397 }
31398 }
31400 return resultobj;
31401fail:
31402 return NULL;
31403}
31404
31405
31406SWIGINTERN PyObject *_wrap_delete_Demon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31407 PyObject *resultobj = 0;
31409 void *argp1 = 0 ;
31410 int res1 = 0 ;
31411 PyObject * obj0 = 0 ;
31412
31413 if (!PyArg_UnpackTuple(args, "delete_Demon", 1, 1, &obj0)) SWIG_fail;
31415 if (!SWIG_IsOK(res1)) {
31416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Demon" "', argument " "1"" of type '" "operations_research::Demon *""'");
31417 }
31418 arg1 = reinterpret_cast< operations_research::Demon * >(argp1);
31419 {
31420 try {
31421 delete arg1;
31422 }
31423 catch (Swig::DirectorException &e) {
31424 SWIG_fail;
31425 }
31426 }
31427 resultobj = SWIG_Py_Void();
31428 return resultobj;
31429fail:
31430 return NULL;
31431}
31432
31433
31434SWIGINTERN PyObject *_wrap_Demon_RunWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31435 PyObject *resultobj = 0;
31438 void *argp1 = 0 ;
31439 int res1 = 0 ;
31440 void *argp2 = 0 ;
31441 int res2 = 0 ;
31442 PyObject * obj0 = 0 ;
31443 PyObject * obj1 = 0 ;
31444 Swig::Director *director = 0;
31445 bool upcall = false;
31446
31447 if (!PyArg_UnpackTuple(args, "Demon_RunWrapper", 2, 2, &obj0, &obj1)) SWIG_fail;
31448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
31449 if (!SWIG_IsOK(res1)) {
31450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Demon_RunWrapper" "', argument " "1"" of type '" "operations_research::Demon *""'");
31451 }
31452 arg1 = reinterpret_cast< operations_research::Demon * >(argp1);
31453 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
31454 if (!SWIG_IsOK(res2)) {
31455 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Demon_RunWrapper" "', argument " "2"" of type '" "operations_research::Solver *const""'");
31456 }
31457 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
31458 director = SWIG_DIRECTOR_CAST(arg1);
31459 upcall = (director && (director->swig_get_self()==obj0));
31460 try {
31461 {
31462 try {
31463 if (upcall) {
31464 Swig::DirectorPureVirtualException::raise("operations_research::Demon::Run");
31465 } else {
31466 (arg1)->Run(arg2);
31467 }
31468 }
31469 catch (Swig::DirectorException &e) {
31470 SWIG_fail;
31471 }
31472 }
31473 } catch (Swig::DirectorException&) {
31474 SWIG_fail;
31475 }
31476 resultobj = SWIG_Py_Void();
31477 return resultobj;
31478fail:
31479 return NULL;
31480}
31481
31482
31483SWIGINTERN PyObject *_wrap_Demon_Priority(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31484 PyObject *resultobj = 0;
31486 void *argp1 = 0 ;
31487 int res1 = 0 ;
31488 PyObject * obj0 = 0 ;
31489 Swig::Director *director = 0;
31490 bool upcall = false;
31492
31493 if (!PyArg_UnpackTuple(args, "Demon_Priority", 1, 1, &obj0)) SWIG_fail;
31494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
31495 if (!SWIG_IsOK(res1)) {
31496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Demon_Priority" "', argument " "1"" of type '" "operations_research::Demon const *""'");
31497 }
31498 arg1 = reinterpret_cast< operations_research::Demon * >(argp1);
31499 director = SWIG_DIRECTOR_CAST(arg1);
31500 upcall = (director && (director->swig_get_self()==obj0));
31501 try {
31502 {
31503 try {
31504 if (upcall) {
31506 } else {
31507 result = (operations_research::Solver::DemonPriority)((operations_research::Demon const *)arg1)->priority();
31508 }
31509 }
31510 catch (Swig::DirectorException &e) {
31511 SWIG_fail;
31512 }
31513 }
31514 } catch (Swig::DirectorException&) {
31515 SWIG_fail;
31516 }
31517 resultobj = SWIG_From_int(static_cast< int >(result));
31518 return resultobj;
31519fail:
31520 return NULL;
31521}
31522
31523
31524SWIGINTERN PyObject *_wrap_Demon_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31525 PyObject *resultobj = 0;
31527 void *argp1 = 0 ;
31528 int res1 = 0 ;
31529 PyObject * obj0 = 0 ;
31530 Swig::Director *director = 0;
31531 bool upcall = false;
31532 std::string result;
31533
31534 if (!PyArg_UnpackTuple(args, "Demon_DebugString", 1, 1, &obj0)) SWIG_fail;
31535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
31536 if (!SWIG_IsOK(res1)) {
31537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Demon_DebugString" "', argument " "1"" of type '" "operations_research::Demon const *""'");
31538 }
31539 arg1 = reinterpret_cast< operations_research::Demon * >(argp1);
31540 director = SWIG_DIRECTOR_CAST(arg1);
31541 upcall = (director && (director->swig_get_self()==obj0));
31542 try {
31543 {
31544 try {
31545 if (upcall) {
31546 result = ((operations_research::Demon const *)arg1)->operations_research::Demon::DebugString();
31547 } else {
31548 result = ((operations_research::Demon const *)arg1)->DebugString();
31549 }
31550 }
31551 catch (Swig::DirectorException &e) {
31552 SWIG_fail;
31553 }
31554 }
31555 } catch (Swig::DirectorException&) {
31556 SWIG_fail;
31557 }
31558 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
31559 return resultobj;
31560fail:
31561 return NULL;
31562}
31563
31564
31565SWIGINTERN PyObject *_wrap_Demon_Inhibit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31566 PyObject *resultobj = 0;
31569 void *argp1 = 0 ;
31570 int res1 = 0 ;
31571 void *argp2 = 0 ;
31572 int res2 = 0 ;
31573 PyObject * obj0 = 0 ;
31574 PyObject * obj1 = 0 ;
31575
31576 if (!PyArg_UnpackTuple(args, "Demon_Inhibit", 2, 2, &obj0, &obj1)) SWIG_fail;
31577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
31578 if (!SWIG_IsOK(res1)) {
31579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Demon_Inhibit" "', argument " "1"" of type '" "operations_research::Demon *""'");
31580 }
31581 arg1 = reinterpret_cast< operations_research::Demon * >(argp1);
31582 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
31583 if (!SWIG_IsOK(res2)) {
31584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Demon_Inhibit" "', argument " "2"" of type '" "operations_research::Solver *const""'");
31585 }
31586 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
31587 {
31588 try {
31589 (arg1)->inhibit(arg2);
31590 }
31591 catch (Swig::DirectorException &e) {
31592 SWIG_fail;
31593 }
31594 }
31595 resultobj = SWIG_Py_Void();
31596 return resultobj;
31597fail:
31598 return NULL;
31599}
31600
31601
31602SWIGINTERN PyObject *_wrap_Demon_Desinhibit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31603 PyObject *resultobj = 0;
31606 void *argp1 = 0 ;
31607 int res1 = 0 ;
31608 void *argp2 = 0 ;
31609 int res2 = 0 ;
31610 PyObject * obj0 = 0 ;
31611 PyObject * obj1 = 0 ;
31612
31613 if (!PyArg_UnpackTuple(args, "Demon_Desinhibit", 2, 2, &obj0, &obj1)) SWIG_fail;
31614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
31615 if (!SWIG_IsOK(res1)) {
31616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Demon_Desinhibit" "', argument " "1"" of type '" "operations_research::Demon *""'");
31617 }
31618 arg1 = reinterpret_cast< operations_research::Demon * >(argp1);
31619 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
31620 if (!SWIG_IsOK(res2)) {
31621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Demon_Desinhibit" "', argument " "2"" of type '" "operations_research::Solver *const""'");
31622 }
31623 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
31624 {
31625 try {
31626 (arg1)->desinhibit(arg2);
31627 }
31628 catch (Swig::DirectorException &e) {
31629 SWIG_fail;
31630 }
31631 }
31632 resultobj = SWIG_Py_Void();
31633 return resultobj;
31634fail:
31635 return NULL;
31636}
31637
31638
31639SWIGINTERN PyObject *_wrap_disown_Demon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31640 PyObject *resultobj = 0;
31642 void *argp1 = 0 ;
31643 int res1 = 0 ;
31644 PyObject * obj0 = 0 ;
31645
31646 if (!PyArg_UnpackTuple(args, "disown_Demon", 1, 1, &obj0)) SWIG_fail;
31647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
31648 if (!SWIG_IsOK(res1)) {
31649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_Demon" "', argument " "1"" of type '" "operations_research::Demon *""'");
31650 }
31651 arg1 = reinterpret_cast< operations_research::Demon * >(argp1);
31652 {
31653 Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
31654 if (director) director->swig_disown();
31655 }
31656
31657 resultobj = SWIG_Py_Void();
31658 return resultobj;
31659fail:
31660 return NULL;
31661}
31662
31663
31664SWIGINTERN PyObject *Demon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31665 PyObject *obj;
31666 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
31668 return SWIG_Py_Void();
31669}
31670
31671SWIGINTERN PyObject *Demon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31672 return SWIG_Python_InitShadowInstance(args);
31673}
31674
31675SWIGINTERN PyObject *_wrap_new_Constraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31676 PyObject *resultobj = 0;
31677 PyObject *arg1 = (PyObject *) 0 ;
31679 void *argp2 = 0 ;
31680 int res2 = 0 ;
31681 PyObject * obj0 = 0 ;
31682 PyObject * obj1 = 0 ;
31684
31685 if (!PyArg_UnpackTuple(args, "new_Constraint", 2, 2, &obj0, &obj1)) SWIG_fail;
31686 arg1 = obj0;
31687 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
31688 if (!SWIG_IsOK(res2)) {
31689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Constraint" "', argument " "2"" of type '" "operations_research::Solver *const""'");
31690 }
31691 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
31692 {
31693 try {
31694 if ( arg1 != Py_None ) {
31695 /* subclassed */
31696 result = (operations_research::Constraint *)new SwigDirector_Constraint(arg1,arg2);
31697 } else {
31698 SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
31699 SWIG_fail;
31700 }
31701 }
31702 catch (Swig::DirectorException &e) {
31703 SWIG_fail;
31704 }
31705 }
31707 return resultobj;
31708fail:
31709 return NULL;
31710}
31711
31712
31713SWIGINTERN PyObject *_wrap_delete_Constraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31714 PyObject *resultobj = 0;
31716 void *argp1 = 0 ;
31717 int res1 = 0 ;
31718 PyObject * obj0 = 0 ;
31719
31720 if (!PyArg_UnpackTuple(args, "delete_Constraint", 1, 1, &obj0)) SWIG_fail;
31722 if (!SWIG_IsOK(res1)) {
31723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Constraint" "', argument " "1"" of type '" "operations_research::Constraint *""'");
31724 }
31725 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
31726 {
31727 try {
31728 delete arg1;
31729 }
31730 catch (Swig::DirectorException &e) {
31731 SWIG_fail;
31732 }
31733 }
31734 resultobj = SWIG_Py_Void();
31735 return resultobj;
31736fail:
31737 return NULL;
31738}
31739
31740
31741SWIGINTERN PyObject *_wrap_Constraint_Post(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31742 PyObject *resultobj = 0;
31744 void *argp1 = 0 ;
31745 int res1 = 0 ;
31746 PyObject * obj0 = 0 ;
31747 Swig::Director *director = 0;
31748 bool upcall = false;
31749
31750 if (!PyArg_UnpackTuple(args, "Constraint_Post", 1, 1, &obj0)) SWIG_fail;
31752 if (!SWIG_IsOK(res1)) {
31753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint_Post" "', argument " "1"" of type '" "operations_research::Constraint *""'");
31754 }
31755 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
31756 director = SWIG_DIRECTOR_CAST(arg1);
31757 upcall = (director && (director->swig_get_self()==obj0));
31758 try {
31759 {
31760 try {
31761 if (upcall) {
31762 Swig::DirectorPureVirtualException::raise("operations_research::Constraint::Post");
31763 } else {
31764 (arg1)->Post();
31765 }
31766 }
31767 catch (Swig::DirectorException &e) {
31768 SWIG_fail;
31769 }
31770 }
31771 } catch (Swig::DirectorException&) {
31772 SWIG_fail;
31773 }
31774 resultobj = SWIG_Py_Void();
31775 return resultobj;
31776fail:
31777 return NULL;
31778}
31779
31780
31781SWIGINTERN PyObject *_wrap_Constraint_InitialPropagateWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31782 PyObject *resultobj = 0;
31784 void *argp1 = 0 ;
31785 int res1 = 0 ;
31786 PyObject * obj0 = 0 ;
31787 Swig::Director *director = 0;
31788 bool upcall = false;
31789
31790 if (!PyArg_UnpackTuple(args, "Constraint_InitialPropagateWrapper", 1, 1, &obj0)) SWIG_fail;
31792 if (!SWIG_IsOK(res1)) {
31793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint_InitialPropagateWrapper" "', argument " "1"" of type '" "operations_research::Constraint *""'");
31794 }
31795 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
31796 director = SWIG_DIRECTOR_CAST(arg1);
31797 upcall = (director && (director->swig_get_self()==obj0));
31798 try {
31799 {
31800 try {
31801 if (upcall) {
31802 Swig::DirectorPureVirtualException::raise("operations_research::Constraint::InitialPropagate");
31803 } else {
31804 (arg1)->InitialPropagate();
31805 }
31806 }
31807 catch (Swig::DirectorException &e) {
31808 SWIG_fail;
31809 }
31810 }
31811 } catch (Swig::DirectorException&) {
31812 SWIG_fail;
31813 }
31814 resultobj = SWIG_Py_Void();
31815 return resultobj;
31816fail:
31817 return NULL;
31818}
31819
31820
31821SWIGINTERN PyObject *_wrap_Constraint_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31822 PyObject *resultobj = 0;
31824 void *argp1 = 0 ;
31825 int res1 = 0 ;
31826 PyObject * obj0 = 0 ;
31827 Swig::Director *director = 0;
31828 bool upcall = false;
31829 std::string result;
31830
31831 if (!PyArg_UnpackTuple(args, "Constraint_DebugString", 1, 1, &obj0)) SWIG_fail;
31833 if (!SWIG_IsOK(res1)) {
31834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint_DebugString" "', argument " "1"" of type '" "operations_research::Constraint const *""'");
31835 }
31836 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
31837 director = SWIG_DIRECTOR_CAST(arg1);
31838 upcall = (director && (director->swig_get_self()==obj0));
31839 try {
31840 {
31841 try {
31842 if (upcall) {
31843 result = ((operations_research::Constraint const *)arg1)->operations_research::Constraint::DebugString();
31844 } else {
31845 result = ((operations_research::Constraint const *)arg1)->DebugString();
31846 }
31847 }
31848 catch (Swig::DirectorException &e) {
31849 SWIG_fail;
31850 }
31851 }
31852 } catch (Swig::DirectorException&) {
31853 SWIG_fail;
31854 }
31855 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
31856 return resultobj;
31857fail:
31858 return NULL;
31859}
31860
31861
31862SWIGINTERN PyObject *_wrap_Constraint_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31863 PyObject *resultobj = 0;
31865 void *argp1 = 0 ;
31866 int res1 = 0 ;
31867 PyObject * obj0 = 0 ;
31868 Swig::Director *director = 0;
31869 bool upcall = false;
31870 operations_research::IntVar *result = 0 ;
31871
31872 if (!PyArg_UnpackTuple(args, "Constraint_Var", 1, 1, &obj0)) SWIG_fail;
31874 if (!SWIG_IsOK(res1)) {
31875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint_Var" "', argument " "1"" of type '" "operations_research::Constraint *""'");
31876 }
31877 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
31878 director = SWIG_DIRECTOR_CAST(arg1);
31879 upcall = (director && (director->swig_get_self()==obj0));
31880 try {
31881 {
31882 try {
31883 if (upcall) {
31884 result = (operations_research::IntVar *)(arg1)->operations_research::Constraint::Var();
31885 } else {
31886 result = (operations_research::IntVar *)(arg1)->Var();
31887 }
31888 }
31889 catch (Swig::DirectorException &e) {
31890 SWIG_fail;
31891 }
31892 }
31893 } catch (Swig::DirectorException&) {
31894 SWIG_fail;
31895 }
31897 if (director) {
31898 SWIG_AcquirePtr(resultobj, director->swig_release_ownership(SWIG_as_voidptr(result)));
31899 }
31900 return resultobj;
31901fail:
31902 return NULL;
31903}
31904
31905
31906SWIGINTERN PyObject *_wrap_Constraint___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31907 PyObject *resultobj = 0;
31909 void *argp1 = 0 ;
31910 int res1 = 0 ;
31911 PyObject * obj0 = 0 ;
31912 std::string result;
31913
31914 if (!PyArg_UnpackTuple(args, "Constraint___repr__", 1, 1, &obj0)) SWIG_fail;
31916 if (!SWIG_IsOK(res1)) {
31917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___repr__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
31918 }
31919 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
31920 {
31921 try {
31923 }
31924 catch (Swig::DirectorException &e) {
31925 SWIG_fail;
31926 }
31927 }
31928 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
31929 return resultobj;
31930fail:
31931 return NULL;
31932}
31933
31934
31935SWIGINTERN PyObject *_wrap_Constraint___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31936 PyObject *resultobj = 0;
31938 void *argp1 = 0 ;
31939 int res1 = 0 ;
31940 PyObject * obj0 = 0 ;
31941 std::string result;
31942
31943 if (!PyArg_UnpackTuple(args, "Constraint___str__", 1, 1, &obj0)) SWIG_fail;
31945 if (!SWIG_IsOK(res1)) {
31946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___str__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
31947 }
31948 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
31949 {
31950 try {
31952 }
31953 catch (Swig::DirectorException &e) {
31954 SWIG_fail;
31955 }
31956 }
31957 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
31958 return resultobj;
31959fail:
31960 return NULL;
31961}
31962
31963
31964SWIGINTERN PyObject *_wrap_Constraint___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31965 PyObject *resultobj = 0;
31968 void *argp1 = 0 ;
31969 int res1 = 0 ;
31970 void *argp2 = 0 ;
31971 int res2 = 0 ;
31972 PyObject * obj0 = 0 ;
31973 PyObject * obj1 = 0 ;
31974 operations_research::IntExpr *result = 0 ;
31975
31976 if (!PyArg_UnpackTuple(args, "Constraint___add__", 2, 2, &obj0, &obj1)) SWIG_fail;
31978 if (!SWIG_IsOK(res1)) {
31979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___add__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
31980 }
31981 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
31982 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
31983 if (!SWIG_IsOK(res2)) {
31984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___add__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
31985 }
31986 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
31987 {
31988 try {
31990 }
31991 catch (Swig::DirectorException &e) {
31992 SWIG_fail;
31993 }
31994 }
31996 return resultobj;
31997fail:
31998 PyErr_Clear();
31999 Py_INCREF(Py_NotImplemented);
32000 return Py_NotImplemented;
32001}
32002
32003
32004SWIGINTERN PyObject *_wrap_Constraint___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32005 PyObject *resultobj = 0;
32008 void *argp1 = 0 ;
32009 int res1 = 0 ;
32010 void *argp2 = 0 ;
32011 int res2 = 0 ;
32012 PyObject * obj0 = 0 ;
32013 PyObject * obj1 = 0 ;
32014 operations_research::IntExpr *result = 0 ;
32015
32016 if (!PyArg_UnpackTuple(args, "Constraint___add__", 2, 2, &obj0, &obj1)) SWIG_fail;
32018 if (!SWIG_IsOK(res1)) {
32019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___add__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32020 }
32021 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32023 if (!SWIG_IsOK(res2)) {
32024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___add__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
32025 }
32026 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
32027 {
32028 try {
32030 }
32031 catch (Swig::DirectorException &e) {
32032 SWIG_fail;
32033 }
32034 }
32036 return resultobj;
32037fail:
32038 PyErr_Clear();
32039 Py_INCREF(Py_NotImplemented);
32040 return Py_NotImplemented;
32041}
32042
32043
32044SWIGINTERN PyObject *_wrap_Constraint___add____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32045 PyObject *resultobj = 0;
32047 int64_t arg2 ;
32048 void *argp1 = 0 ;
32049 int res1 = 0 ;
32050 long val2 ;
32051 int ecode2 = 0 ;
32052 PyObject * obj0 = 0 ;
32053 PyObject * obj1 = 0 ;
32054 operations_research::IntExpr *result = 0 ;
32055
32056 if (!PyArg_UnpackTuple(args, "Constraint___add__", 2, 2, &obj0, &obj1)) SWIG_fail;
32058 if (!SWIG_IsOK(res1)) {
32059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___add__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32060 }
32061 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32062 ecode2 = SWIG_AsVal_long(obj1, &val2);
32063 if (!SWIG_IsOK(ecode2)) {
32064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Constraint___add__" "', argument " "2"" of type '" "int64_t""'");
32065 }
32066 arg2 = static_cast< int64_t >(val2);
32067 {
32068 try {
32070 }
32071 catch (Swig::DirectorException &e) {
32072 SWIG_fail;
32073 }
32074 }
32076 return resultobj;
32077fail:
32078 PyErr_Clear();
32079 Py_INCREF(Py_NotImplemented);
32080 return Py_NotImplemented;
32081}
32082
32083
32084SWIGINTERN PyObject *_wrap_Constraint___add__(PyObject *self, PyObject *args) {
32085 Py_ssize_t argc;
32086 PyObject *argv[3] = {
32087 0
32088 };
32089 Py_ssize_t ii;
32090
32091 if (!PyTuple_Check(args)) SWIG_fail;
32092 argc = PyObject_Length(args);
32093 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
32094 argv[ii] = PyTuple_GET_ITEM(args,ii);
32095 }
32096 if (argc == 2) {
32097 int _v;
32098 void *vptr = 0;
32099 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
32100 _v = SWIG_CheckState(res);
32101 if (_v) {
32102 void *vptr = 0;
32103 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
32104 _v = SWIG_CheckState(res);
32105 if (_v) {
32106 return _wrap_Constraint___add____SWIG_0(self, args);
32107 }
32108 }
32109 }
32110 if (argc == 2) {
32111 int _v;
32112 void *vptr = 0;
32113 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
32114 _v = SWIG_CheckState(res);
32115 if (_v) {
32116 void *vptr = 0;
32117 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
32118 _v = SWIG_CheckState(res);
32119 if (_v) {
32120 return _wrap_Constraint___add____SWIG_1(self, args);
32121 }
32122 }
32123 }
32124 if (argc == 2) {
32125 int _v;
32126 void *vptr = 0;
32127 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
32128 _v = SWIG_CheckState(res);
32129 if (_v) {
32130 {
32131 int res = SWIG_AsVal_long(argv[1], NULL);
32132 _v = SWIG_CheckState(res);
32133 }
32134 if (_v) {
32135 return _wrap_Constraint___add____SWIG_2(self, args);
32136 }
32137 }
32138 }
32139
32140fail:
32141 Py_INCREF(Py_NotImplemented);
32142 return Py_NotImplemented;
32143}
32144
32145
32146SWIGINTERN PyObject *_wrap_Constraint___radd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32147 PyObject *resultobj = 0;
32149 int64_t arg2 ;
32150 void *argp1 = 0 ;
32151 int res1 = 0 ;
32152 long val2 ;
32153 int ecode2 = 0 ;
32154 PyObject * obj0 = 0 ;
32155 PyObject * obj1 = 0 ;
32156 operations_research::IntExpr *result = 0 ;
32157
32158 if (!PyArg_UnpackTuple(args, "Constraint___radd__", 2, 2, &obj0, &obj1)) SWIG_fail;
32160 if (!SWIG_IsOK(res1)) {
32161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___radd__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32162 }
32163 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32164 ecode2 = SWIG_AsVal_long(obj1, &val2);
32165 if (!SWIG_IsOK(ecode2)) {
32166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Constraint___radd__" "', argument " "2"" of type '" "int64_t""'");
32167 }
32168 arg2 = static_cast< int64_t >(val2);
32169 {
32170 try {
32172 }
32173 catch (Swig::DirectorException &e) {
32174 SWIG_fail;
32175 }
32176 }
32178 return resultobj;
32179fail:
32180 PyErr_Clear();
32181 Py_INCREF(Py_NotImplemented);
32182 return Py_NotImplemented;
32183}
32184
32185
32186SWIGINTERN PyObject *_wrap_Constraint___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32187 PyObject *resultobj = 0;
32190 void *argp1 = 0 ;
32191 int res1 = 0 ;
32192 void *argp2 = 0 ;
32193 int res2 = 0 ;
32194 PyObject * obj0 = 0 ;
32195 PyObject * obj1 = 0 ;
32196 operations_research::IntExpr *result = 0 ;
32197
32198 if (!PyArg_UnpackTuple(args, "Constraint___sub__", 2, 2, &obj0, &obj1)) SWIG_fail;
32200 if (!SWIG_IsOK(res1)) {
32201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___sub__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32202 }
32203 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32204 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
32205 if (!SWIG_IsOK(res2)) {
32206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___sub__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
32207 }
32208 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
32209 {
32210 try {
32212 }
32213 catch (Swig::DirectorException &e) {
32214 SWIG_fail;
32215 }
32216 }
32218 return resultobj;
32219fail:
32220 PyErr_Clear();
32221 Py_INCREF(Py_NotImplemented);
32222 return Py_NotImplemented;
32223}
32224
32225
32226SWIGINTERN PyObject *_wrap_Constraint___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32227 PyObject *resultobj = 0;
32230 void *argp1 = 0 ;
32231 int res1 = 0 ;
32232 void *argp2 = 0 ;
32233 int res2 = 0 ;
32234 PyObject * obj0 = 0 ;
32235 PyObject * obj1 = 0 ;
32236 operations_research::IntExpr *result = 0 ;
32237
32238 if (!PyArg_UnpackTuple(args, "Constraint___sub__", 2, 2, &obj0, &obj1)) SWIG_fail;
32240 if (!SWIG_IsOK(res1)) {
32241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___sub__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32242 }
32243 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32245 if (!SWIG_IsOK(res2)) {
32246 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___sub__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
32247 }
32248 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
32249 {
32250 try {
32252 }
32253 catch (Swig::DirectorException &e) {
32254 SWIG_fail;
32255 }
32256 }
32258 return resultobj;
32259fail:
32260 PyErr_Clear();
32261 Py_INCREF(Py_NotImplemented);
32262 return Py_NotImplemented;
32263}
32264
32265
32266SWIGINTERN PyObject *_wrap_Constraint___sub____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32267 PyObject *resultobj = 0;
32269 int64_t arg2 ;
32270 void *argp1 = 0 ;
32271 int res1 = 0 ;
32272 long val2 ;
32273 int ecode2 = 0 ;
32274 PyObject * obj0 = 0 ;
32275 PyObject * obj1 = 0 ;
32276 operations_research::IntExpr *result = 0 ;
32277
32278 if (!PyArg_UnpackTuple(args, "Constraint___sub__", 2, 2, &obj0, &obj1)) SWIG_fail;
32280 if (!SWIG_IsOK(res1)) {
32281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___sub__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32282 }
32283 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32284 ecode2 = SWIG_AsVal_long(obj1, &val2);
32285 if (!SWIG_IsOK(ecode2)) {
32286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Constraint___sub__" "', argument " "2"" of type '" "int64_t""'");
32287 }
32288 arg2 = static_cast< int64_t >(val2);
32289 {
32290 try {
32292 }
32293 catch (Swig::DirectorException &e) {
32294 SWIG_fail;
32295 }
32296 }
32298 return resultobj;
32299fail:
32300 PyErr_Clear();
32301 Py_INCREF(Py_NotImplemented);
32302 return Py_NotImplemented;
32303}
32304
32305
32306SWIGINTERN PyObject *_wrap_Constraint___sub__(PyObject *self, PyObject *args) {
32307 Py_ssize_t argc;
32308 PyObject *argv[3] = {
32309 0
32310 };
32311 Py_ssize_t ii;
32312
32313 if (!PyTuple_Check(args)) SWIG_fail;
32314 argc = PyObject_Length(args);
32315 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
32316 argv[ii] = PyTuple_GET_ITEM(args,ii);
32317 }
32318 if (argc == 2) {
32319 int _v;
32320 void *vptr = 0;
32321 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
32322 _v = SWIG_CheckState(res);
32323 if (_v) {
32324 void *vptr = 0;
32325 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
32326 _v = SWIG_CheckState(res);
32327 if (_v) {
32328 return _wrap_Constraint___sub____SWIG_0(self, args);
32329 }
32330 }
32331 }
32332 if (argc == 2) {
32333 int _v;
32334 void *vptr = 0;
32335 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
32336 _v = SWIG_CheckState(res);
32337 if (_v) {
32338 void *vptr = 0;
32339 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
32340 _v = SWIG_CheckState(res);
32341 if (_v) {
32342 return _wrap_Constraint___sub____SWIG_1(self, args);
32343 }
32344 }
32345 }
32346 if (argc == 2) {
32347 int _v;
32348 void *vptr = 0;
32349 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
32350 _v = SWIG_CheckState(res);
32351 if (_v) {
32352 {
32353 int res = SWIG_AsVal_long(argv[1], NULL);
32354 _v = SWIG_CheckState(res);
32355 }
32356 if (_v) {
32357 return _wrap_Constraint___sub____SWIG_2(self, args);
32358 }
32359 }
32360 }
32361
32362fail:
32363 Py_INCREF(Py_NotImplemented);
32364 return Py_NotImplemented;
32365}
32366
32367
32368SWIGINTERN PyObject *_wrap_Constraint___rsub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32369 PyObject *resultobj = 0;
32371 int64_t arg2 ;
32372 void *argp1 = 0 ;
32373 int res1 = 0 ;
32374 long val2 ;
32375 int ecode2 = 0 ;
32376 PyObject * obj0 = 0 ;
32377 PyObject * obj1 = 0 ;
32378 operations_research::IntExpr *result = 0 ;
32379
32380 if (!PyArg_UnpackTuple(args, "Constraint___rsub__", 2, 2, &obj0, &obj1)) SWIG_fail;
32382 if (!SWIG_IsOK(res1)) {
32383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___rsub__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32384 }
32385 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32386 ecode2 = SWIG_AsVal_long(obj1, &val2);
32387 if (!SWIG_IsOK(ecode2)) {
32388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Constraint___rsub__" "', argument " "2"" of type '" "int64_t""'");
32389 }
32390 arg2 = static_cast< int64_t >(val2);
32391 {
32392 try {
32394 }
32395 catch (Swig::DirectorException &e) {
32396 SWIG_fail;
32397 }
32398 }
32400 return resultobj;
32401fail:
32402 PyErr_Clear();
32403 Py_INCREF(Py_NotImplemented);
32404 return Py_NotImplemented;
32405}
32406
32407
32408SWIGINTERN PyObject *_wrap_Constraint___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32409 PyObject *resultobj = 0;
32412 void *argp1 = 0 ;
32413 int res1 = 0 ;
32414 void *argp2 = 0 ;
32415 int res2 = 0 ;
32416 PyObject * obj0 = 0 ;
32417 PyObject * obj1 = 0 ;
32418 operations_research::IntExpr *result = 0 ;
32419
32420 if (!PyArg_UnpackTuple(args, "Constraint___mul__", 2, 2, &obj0, &obj1)) SWIG_fail;
32422 if (!SWIG_IsOK(res1)) {
32423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___mul__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32424 }
32425 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32426 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
32427 if (!SWIG_IsOK(res2)) {
32428 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___mul__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
32429 }
32430 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
32431 {
32432 try {
32434 }
32435 catch (Swig::DirectorException &e) {
32436 SWIG_fail;
32437 }
32438 }
32440 return resultobj;
32441fail:
32442 PyErr_Clear();
32443 Py_INCREF(Py_NotImplemented);
32444 return Py_NotImplemented;
32445}
32446
32447
32448SWIGINTERN PyObject *_wrap_Constraint___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32449 PyObject *resultobj = 0;
32452 void *argp1 = 0 ;
32453 int res1 = 0 ;
32454 void *argp2 = 0 ;
32455 int res2 = 0 ;
32456 PyObject * obj0 = 0 ;
32457 PyObject * obj1 = 0 ;
32458 operations_research::IntExpr *result = 0 ;
32459
32460 if (!PyArg_UnpackTuple(args, "Constraint___mul__", 2, 2, &obj0, &obj1)) SWIG_fail;
32462 if (!SWIG_IsOK(res1)) {
32463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___mul__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32464 }
32465 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32467 if (!SWIG_IsOK(res2)) {
32468 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___mul__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
32469 }
32470 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
32471 {
32472 try {
32474 }
32475 catch (Swig::DirectorException &e) {
32476 SWIG_fail;
32477 }
32478 }
32480 return resultobj;
32481fail:
32482 PyErr_Clear();
32483 Py_INCREF(Py_NotImplemented);
32484 return Py_NotImplemented;
32485}
32486
32487
32488SWIGINTERN PyObject *_wrap_Constraint___mul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32489 PyObject *resultobj = 0;
32491 int64_t arg2 ;
32492 void *argp1 = 0 ;
32493 int res1 = 0 ;
32494 long val2 ;
32495 int ecode2 = 0 ;
32496 PyObject * obj0 = 0 ;
32497 PyObject * obj1 = 0 ;
32498 operations_research::IntExpr *result = 0 ;
32499
32500 if (!PyArg_UnpackTuple(args, "Constraint___mul__", 2, 2, &obj0, &obj1)) SWIG_fail;
32502 if (!SWIG_IsOK(res1)) {
32503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___mul__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32504 }
32505 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32506 ecode2 = SWIG_AsVal_long(obj1, &val2);
32507 if (!SWIG_IsOK(ecode2)) {
32508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Constraint___mul__" "', argument " "2"" of type '" "int64_t""'");
32509 }
32510 arg2 = static_cast< int64_t >(val2);
32511 {
32512 try {
32514 }
32515 catch (Swig::DirectorException &e) {
32516 SWIG_fail;
32517 }
32518 }
32520 return resultobj;
32521fail:
32522 PyErr_Clear();
32523 Py_INCREF(Py_NotImplemented);
32524 return Py_NotImplemented;
32525}
32526
32527
32528SWIGINTERN PyObject *_wrap_Constraint___mul__(PyObject *self, PyObject *args) {
32529 Py_ssize_t argc;
32530 PyObject *argv[3] = {
32531 0
32532 };
32533 Py_ssize_t ii;
32534
32535 if (!PyTuple_Check(args)) SWIG_fail;
32536 argc = PyObject_Length(args);
32537 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
32538 argv[ii] = PyTuple_GET_ITEM(args,ii);
32539 }
32540 if (argc == 2) {
32541 int _v;
32542 void *vptr = 0;
32543 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
32544 _v = SWIG_CheckState(res);
32545 if (_v) {
32546 void *vptr = 0;
32547 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
32548 _v = SWIG_CheckState(res);
32549 if (_v) {
32550 return _wrap_Constraint___mul____SWIG_0(self, args);
32551 }
32552 }
32553 }
32554 if (argc == 2) {
32555 int _v;
32556 void *vptr = 0;
32557 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
32558 _v = SWIG_CheckState(res);
32559 if (_v) {
32560 void *vptr = 0;
32561 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
32562 _v = SWIG_CheckState(res);
32563 if (_v) {
32564 return _wrap_Constraint___mul____SWIG_1(self, args);
32565 }
32566 }
32567 }
32568 if (argc == 2) {
32569 int _v;
32570 void *vptr = 0;
32571 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
32572 _v = SWIG_CheckState(res);
32573 if (_v) {
32574 {
32575 int res = SWIG_AsVal_long(argv[1], NULL);
32576 _v = SWIG_CheckState(res);
32577 }
32578 if (_v) {
32579 return _wrap_Constraint___mul____SWIG_2(self, args);
32580 }
32581 }
32582 }
32583
32584fail:
32585 Py_INCREF(Py_NotImplemented);
32586 return Py_NotImplemented;
32587}
32588
32589
32590SWIGINTERN PyObject *_wrap_Constraint___rmul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32591 PyObject *resultobj = 0;
32593 int64_t arg2 ;
32594 void *argp1 = 0 ;
32595 int res1 = 0 ;
32596 long val2 ;
32597 int ecode2 = 0 ;
32598 PyObject * obj0 = 0 ;
32599 PyObject * obj1 = 0 ;
32600 operations_research::IntExpr *result = 0 ;
32601
32602 if (!PyArg_UnpackTuple(args, "Constraint___rmul__", 2, 2, &obj0, &obj1)) SWIG_fail;
32604 if (!SWIG_IsOK(res1)) {
32605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___rmul__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32606 }
32607 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32608 ecode2 = SWIG_AsVal_long(obj1, &val2);
32609 if (!SWIG_IsOK(ecode2)) {
32610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Constraint___rmul__" "', argument " "2"" of type '" "int64_t""'");
32611 }
32612 arg2 = static_cast< int64_t >(val2);
32613 {
32614 try {
32616 }
32617 catch (Swig::DirectorException &e) {
32618 SWIG_fail;
32619 }
32620 }
32622 return resultobj;
32623fail:
32624 PyErr_Clear();
32625 Py_INCREF(Py_NotImplemented);
32626 return Py_NotImplemented;
32627}
32628
32629
32630SWIGINTERN PyObject *_wrap_Constraint___floordiv__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32631 PyObject *resultobj = 0;
32633 int64_t arg2 ;
32634 void *argp1 = 0 ;
32635 int res1 = 0 ;
32636 long val2 ;
32637 int ecode2 = 0 ;
32638 PyObject * obj0 = 0 ;
32639 PyObject * obj1 = 0 ;
32640 operations_research::IntExpr *result = 0 ;
32641
32642 if (!PyArg_UnpackTuple(args, "Constraint___floordiv__", 2, 2, &obj0, &obj1)) SWIG_fail;
32644 if (!SWIG_IsOK(res1)) {
32645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___floordiv__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32646 }
32647 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32648 ecode2 = SWIG_AsVal_long(obj1, &val2);
32649 if (!SWIG_IsOK(ecode2)) {
32650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Constraint___floordiv__" "', argument " "2"" of type '" "int64_t""'");
32651 }
32652 arg2 = static_cast< int64_t >(val2);
32653 {
32654 try {
32656 }
32657 catch (Swig::DirectorException &e) {
32658 SWIG_fail;
32659 }
32660 }
32662 return resultobj;
32663fail:
32664 return NULL;
32665}
32666
32667
32668SWIGINTERN PyObject *_wrap_Constraint___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32669 PyObject *resultobj = 0;
32671 void *argp1 = 0 ;
32672 int res1 = 0 ;
32673 PyObject * obj0 = 0 ;
32674 operations_research::IntExpr *result = 0 ;
32675
32676 if (!PyArg_UnpackTuple(args, "Constraint___neg__", 1, 1, &obj0)) SWIG_fail;
32678 if (!SWIG_IsOK(res1)) {
32679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___neg__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32680 }
32681 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32682 {
32683 try {
32685 }
32686 catch (Swig::DirectorException &e) {
32687 SWIG_fail;
32688 }
32689 }
32691 return resultobj;
32692fail:
32693 PyErr_Clear();
32694 Py_INCREF(Py_NotImplemented);
32695 return Py_NotImplemented;
32696}
32697
32698
32699SWIGINTERN PyObject *_wrap_Constraint___abs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32700 PyObject *resultobj = 0;
32702 void *argp1 = 0 ;
32703 int res1 = 0 ;
32704 PyObject * obj0 = 0 ;
32705 operations_research::IntExpr *result = 0 ;
32706
32707 if (!PyArg_UnpackTuple(args, "Constraint___abs__", 1, 1, &obj0)) SWIG_fail;
32709 if (!SWIG_IsOK(res1)) {
32710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___abs__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32711 }
32712 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32713 {
32714 try {
32716 }
32717 catch (Swig::DirectorException &e) {
32718 SWIG_fail;
32719 }
32720 }
32722 return resultobj;
32723fail:
32724 return NULL;
32725}
32726
32727
32728SWIGINTERN PyObject *_wrap_Constraint_Square(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32729 PyObject *resultobj = 0;
32731 void *argp1 = 0 ;
32732 int res1 = 0 ;
32733 PyObject * obj0 = 0 ;
32734 operations_research::IntExpr *result = 0 ;
32735
32736 if (!PyArg_UnpackTuple(args, "Constraint_Square", 1, 1, &obj0)) SWIG_fail;
32738 if (!SWIG_IsOK(res1)) {
32739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint_Square" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32740 }
32741 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32742 {
32743 try {
32745 }
32746 catch (Swig::DirectorException &e) {
32747 SWIG_fail;
32748 }
32749 }
32751 return resultobj;
32752fail:
32753 return NULL;
32754}
32755
32756
32757SWIGINTERN PyObject *_wrap_Constraint___eq____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32758 PyObject *resultobj = 0;
32760 int64_t arg2 ;
32761 void *argp1 = 0 ;
32762 int res1 = 0 ;
32763 long val2 ;
32764 int ecode2 = 0 ;
32765 PyObject * obj0 = 0 ;
32766 PyObject * obj1 = 0 ;
32767 Swig::Director *director = 0;
32769
32770 if (!PyArg_UnpackTuple(args, "Constraint___eq__", 2, 2, &obj0, &obj1)) SWIG_fail;
32772 if (!SWIG_IsOK(res1)) {
32773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___eq__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32774 }
32775 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32776 ecode2 = SWIG_AsVal_long(obj1, &val2);
32777 if (!SWIG_IsOK(ecode2)) {
32778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Constraint___eq__" "', argument " "2"" of type '" "int64_t""'");
32779 }
32780 arg2 = static_cast< int64_t >(val2);
32781 {
32782 try {
32784 }
32785 catch (Swig::DirectorException &e) {
32786 SWIG_fail;
32787 }
32788 }
32789 director = SWIG_DIRECTOR_CAST(result);
32790 if (director) {
32791 resultobj = director->swig_get_self();
32792 Py_INCREF(resultobj);
32793 } else {
32795 }
32796 return resultobj;
32797fail:
32798 PyErr_Clear();
32799 Py_INCREF(Py_NotImplemented);
32800 return Py_NotImplemented;
32801}
32802
32803
32804SWIGINTERN PyObject *_wrap_Constraint___ne____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32805 PyObject *resultobj = 0;
32807 int64_t arg2 ;
32808 void *argp1 = 0 ;
32809 int res1 = 0 ;
32810 long val2 ;
32811 int ecode2 = 0 ;
32812 PyObject * obj0 = 0 ;
32813 PyObject * obj1 = 0 ;
32814 Swig::Director *director = 0;
32816
32817 if (!PyArg_UnpackTuple(args, "Constraint___ne__", 2, 2, &obj0, &obj1)) SWIG_fail;
32819 if (!SWIG_IsOK(res1)) {
32820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___ne__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32821 }
32822 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32823 ecode2 = SWIG_AsVal_long(obj1, &val2);
32824 if (!SWIG_IsOK(ecode2)) {
32825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Constraint___ne__" "', argument " "2"" of type '" "int64_t""'");
32826 }
32827 arg2 = static_cast< int64_t >(val2);
32828 {
32829 try {
32831 }
32832 catch (Swig::DirectorException &e) {
32833 SWIG_fail;
32834 }
32835 }
32836 director = SWIG_DIRECTOR_CAST(result);
32837 if (director) {
32838 resultobj = director->swig_get_self();
32839 Py_INCREF(resultobj);
32840 } else {
32842 }
32843 return resultobj;
32844fail:
32845 PyErr_Clear();
32846 Py_INCREF(Py_NotImplemented);
32847 return Py_NotImplemented;
32848}
32849
32850
32851SWIGINTERN PyObject *_wrap_Constraint___ge____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32852 PyObject *resultobj = 0;
32854 int64_t arg2 ;
32855 void *argp1 = 0 ;
32856 int res1 = 0 ;
32857 long val2 ;
32858 int ecode2 = 0 ;
32859 PyObject * obj0 = 0 ;
32860 PyObject * obj1 = 0 ;
32861 Swig::Director *director = 0;
32863
32864 if (!PyArg_UnpackTuple(args, "Constraint___ge__", 2, 2, &obj0, &obj1)) SWIG_fail;
32866 if (!SWIG_IsOK(res1)) {
32867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___ge__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32868 }
32869 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32870 ecode2 = SWIG_AsVal_long(obj1, &val2);
32871 if (!SWIG_IsOK(ecode2)) {
32872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Constraint___ge__" "', argument " "2"" of type '" "int64_t""'");
32873 }
32874 arg2 = static_cast< int64_t >(val2);
32875 {
32876 try {
32878 }
32879 catch (Swig::DirectorException &e) {
32880 SWIG_fail;
32881 }
32882 }
32883 director = SWIG_DIRECTOR_CAST(result);
32884 if (director) {
32885 resultobj = director->swig_get_self();
32886 Py_INCREF(resultobj);
32887 } else {
32889 }
32890 return resultobj;
32891fail:
32892 PyErr_Clear();
32893 Py_INCREF(Py_NotImplemented);
32894 return Py_NotImplemented;
32895}
32896
32897
32898SWIGINTERN PyObject *_wrap_Constraint___gt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32899 PyObject *resultobj = 0;
32901 int64_t arg2 ;
32902 void *argp1 = 0 ;
32903 int res1 = 0 ;
32904 long val2 ;
32905 int ecode2 = 0 ;
32906 PyObject * obj0 = 0 ;
32907 PyObject * obj1 = 0 ;
32908 Swig::Director *director = 0;
32910
32911 if (!PyArg_UnpackTuple(args, "Constraint___gt__", 2, 2, &obj0, &obj1)) SWIG_fail;
32913 if (!SWIG_IsOK(res1)) {
32914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___gt__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32915 }
32916 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32917 ecode2 = SWIG_AsVal_long(obj1, &val2);
32918 if (!SWIG_IsOK(ecode2)) {
32919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Constraint___gt__" "', argument " "2"" of type '" "int64_t""'");
32920 }
32921 arg2 = static_cast< int64_t >(val2);
32922 {
32923 try {
32925 }
32926 catch (Swig::DirectorException &e) {
32927 SWIG_fail;
32928 }
32929 }
32930 director = SWIG_DIRECTOR_CAST(result);
32931 if (director) {
32932 resultobj = director->swig_get_self();
32933 Py_INCREF(resultobj);
32934 } else {
32936 }
32937 return resultobj;
32938fail:
32939 PyErr_Clear();
32940 Py_INCREF(Py_NotImplemented);
32941 return Py_NotImplemented;
32942}
32943
32944
32945SWIGINTERN PyObject *_wrap_Constraint___le____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32946 PyObject *resultobj = 0;
32948 int64_t arg2 ;
32949 void *argp1 = 0 ;
32950 int res1 = 0 ;
32951 long val2 ;
32952 int ecode2 = 0 ;
32953 PyObject * obj0 = 0 ;
32954 PyObject * obj1 = 0 ;
32955 Swig::Director *director = 0;
32957
32958 if (!PyArg_UnpackTuple(args, "Constraint___le__", 2, 2, &obj0, &obj1)) SWIG_fail;
32960 if (!SWIG_IsOK(res1)) {
32961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___le__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
32962 }
32963 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32964 ecode2 = SWIG_AsVal_long(obj1, &val2);
32965 if (!SWIG_IsOK(ecode2)) {
32966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Constraint___le__" "', argument " "2"" of type '" "int64_t""'");
32967 }
32968 arg2 = static_cast< int64_t >(val2);
32969 {
32970 try {
32972 }
32973 catch (Swig::DirectorException &e) {
32974 SWIG_fail;
32975 }
32976 }
32977 director = SWIG_DIRECTOR_CAST(result);
32978 if (director) {
32979 resultobj = director->swig_get_self();
32980 Py_INCREF(resultobj);
32981 } else {
32983 }
32984 return resultobj;
32985fail:
32986 PyErr_Clear();
32987 Py_INCREF(Py_NotImplemented);
32988 return Py_NotImplemented;
32989}
32990
32991
32992SWIGINTERN PyObject *_wrap_Constraint___lt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32993 PyObject *resultobj = 0;
32995 int64_t arg2 ;
32996 void *argp1 = 0 ;
32997 int res1 = 0 ;
32998 long val2 ;
32999 int ecode2 = 0 ;
33000 PyObject * obj0 = 0 ;
33001 PyObject * obj1 = 0 ;
33002 Swig::Director *director = 0;
33004
33005 if (!PyArg_UnpackTuple(args, "Constraint___lt__", 2, 2, &obj0, &obj1)) SWIG_fail;
33007 if (!SWIG_IsOK(res1)) {
33008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___lt__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
33009 }
33010 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33011 ecode2 = SWIG_AsVal_long(obj1, &val2);
33012 if (!SWIG_IsOK(ecode2)) {
33013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Constraint___lt__" "', argument " "2"" of type '" "int64_t""'");
33014 }
33015 arg2 = static_cast< int64_t >(val2);
33016 {
33017 try {
33019 }
33020 catch (Swig::DirectorException &e) {
33021 SWIG_fail;
33022 }
33023 }
33024 director = SWIG_DIRECTOR_CAST(result);
33025 if (director) {
33026 resultobj = director->swig_get_self();
33027 Py_INCREF(resultobj);
33028 } else {
33030 }
33031 return resultobj;
33032fail:
33033 PyErr_Clear();
33034 Py_INCREF(Py_NotImplemented);
33035 return Py_NotImplemented;
33036}
33037
33038
33039SWIGINTERN PyObject *_wrap_Constraint___eq____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33040 PyObject *resultobj = 0;
33043 void *argp1 = 0 ;
33044 int res1 = 0 ;
33045 void *argp2 = 0 ;
33046 int res2 = 0 ;
33047 PyObject * obj0 = 0 ;
33048 PyObject * obj1 = 0 ;
33049 Swig::Director *director = 0;
33051
33052 if (!PyArg_UnpackTuple(args, "Constraint___eq__", 2, 2, &obj0, &obj1)) SWIG_fail;
33054 if (!SWIG_IsOK(res1)) {
33055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___eq__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
33056 }
33057 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33058 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
33059 if (!SWIG_IsOK(res2)) {
33060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___eq__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
33061 }
33062 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
33063 {
33064 try {
33066 }
33067 catch (Swig::DirectorException &e) {
33068 SWIG_fail;
33069 }
33070 }
33071 director = SWIG_DIRECTOR_CAST(result);
33072 if (director) {
33073 resultobj = director->swig_get_self();
33074 Py_INCREF(resultobj);
33075 } else {
33077 }
33078 return resultobj;
33079fail:
33080 PyErr_Clear();
33081 Py_INCREF(Py_NotImplemented);
33082 return Py_NotImplemented;
33083}
33084
33085
33086SWIGINTERN PyObject *_wrap_Constraint___ne____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33087 PyObject *resultobj = 0;
33090 void *argp1 = 0 ;
33091 int res1 = 0 ;
33092 void *argp2 = 0 ;
33093 int res2 = 0 ;
33094 PyObject * obj0 = 0 ;
33095 PyObject * obj1 = 0 ;
33096 Swig::Director *director = 0;
33098
33099 if (!PyArg_UnpackTuple(args, "Constraint___ne__", 2, 2, &obj0, &obj1)) SWIG_fail;
33101 if (!SWIG_IsOK(res1)) {
33102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___ne__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
33103 }
33104 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33105 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
33106 if (!SWIG_IsOK(res2)) {
33107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___ne__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
33108 }
33109 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
33110 {
33111 try {
33113 }
33114 catch (Swig::DirectorException &e) {
33115 SWIG_fail;
33116 }
33117 }
33118 director = SWIG_DIRECTOR_CAST(result);
33119 if (director) {
33120 resultobj = director->swig_get_self();
33121 Py_INCREF(resultobj);
33122 } else {
33124 }
33125 return resultobj;
33126fail:
33127 PyErr_Clear();
33128 Py_INCREF(Py_NotImplemented);
33129 return Py_NotImplemented;
33130}
33131
33132
33133SWIGINTERN PyObject *_wrap_Constraint___ge____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33134 PyObject *resultobj = 0;
33137 void *argp1 = 0 ;
33138 int res1 = 0 ;
33139 void *argp2 = 0 ;
33140 int res2 = 0 ;
33141 PyObject * obj0 = 0 ;
33142 PyObject * obj1 = 0 ;
33143 Swig::Director *director = 0;
33145
33146 if (!PyArg_UnpackTuple(args, "Constraint___ge__", 2, 2, &obj0, &obj1)) SWIG_fail;
33148 if (!SWIG_IsOK(res1)) {
33149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___ge__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
33150 }
33151 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33152 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
33153 if (!SWIG_IsOK(res2)) {
33154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___ge__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
33155 }
33156 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
33157 {
33158 try {
33160 }
33161 catch (Swig::DirectorException &e) {
33162 SWIG_fail;
33163 }
33164 }
33165 director = SWIG_DIRECTOR_CAST(result);
33166 if (director) {
33167 resultobj = director->swig_get_self();
33168 Py_INCREF(resultobj);
33169 } else {
33171 }
33172 return resultobj;
33173fail:
33174 PyErr_Clear();
33175 Py_INCREF(Py_NotImplemented);
33176 return Py_NotImplemented;
33177}
33178
33179
33180SWIGINTERN PyObject *_wrap_Constraint___gt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33181 PyObject *resultobj = 0;
33184 void *argp1 = 0 ;
33185 int res1 = 0 ;
33186 void *argp2 = 0 ;
33187 int res2 = 0 ;
33188 PyObject * obj0 = 0 ;
33189 PyObject * obj1 = 0 ;
33190 Swig::Director *director = 0;
33192
33193 if (!PyArg_UnpackTuple(args, "Constraint___gt__", 2, 2, &obj0, &obj1)) SWIG_fail;
33195 if (!SWIG_IsOK(res1)) {
33196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___gt__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
33197 }
33198 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33199 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
33200 if (!SWIG_IsOK(res2)) {
33201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___gt__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
33202 }
33203 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
33204 {
33205 try {
33207 }
33208 catch (Swig::DirectorException &e) {
33209 SWIG_fail;
33210 }
33211 }
33212 director = SWIG_DIRECTOR_CAST(result);
33213 if (director) {
33214 resultobj = director->swig_get_self();
33215 Py_INCREF(resultobj);
33216 } else {
33218 }
33219 return resultobj;
33220fail:
33221 PyErr_Clear();
33222 Py_INCREF(Py_NotImplemented);
33223 return Py_NotImplemented;
33224}
33225
33226
33227SWIGINTERN PyObject *_wrap_Constraint___le____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33228 PyObject *resultobj = 0;
33231 void *argp1 = 0 ;
33232 int res1 = 0 ;
33233 void *argp2 = 0 ;
33234 int res2 = 0 ;
33235 PyObject * obj0 = 0 ;
33236 PyObject * obj1 = 0 ;
33237 Swig::Director *director = 0;
33239
33240 if (!PyArg_UnpackTuple(args, "Constraint___le__", 2, 2, &obj0, &obj1)) SWIG_fail;
33242 if (!SWIG_IsOK(res1)) {
33243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___le__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
33244 }
33245 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33246 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
33247 if (!SWIG_IsOK(res2)) {
33248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___le__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
33249 }
33250 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
33251 {
33252 try {
33254 }
33255 catch (Swig::DirectorException &e) {
33256 SWIG_fail;
33257 }
33258 }
33259 director = SWIG_DIRECTOR_CAST(result);
33260 if (director) {
33261 resultobj = director->swig_get_self();
33262 Py_INCREF(resultobj);
33263 } else {
33265 }
33266 return resultobj;
33267fail:
33268 PyErr_Clear();
33269 Py_INCREF(Py_NotImplemented);
33270 return Py_NotImplemented;
33271}
33272
33273
33274SWIGINTERN PyObject *_wrap_Constraint___lt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33275 PyObject *resultobj = 0;
33278 void *argp1 = 0 ;
33279 int res1 = 0 ;
33280 void *argp2 = 0 ;
33281 int res2 = 0 ;
33282 PyObject * obj0 = 0 ;
33283 PyObject * obj1 = 0 ;
33284 Swig::Director *director = 0;
33286
33287 if (!PyArg_UnpackTuple(args, "Constraint___lt__", 2, 2, &obj0, &obj1)) SWIG_fail;
33289 if (!SWIG_IsOK(res1)) {
33290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___lt__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
33291 }
33292 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33293 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
33294 if (!SWIG_IsOK(res2)) {
33295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___lt__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
33296 }
33297 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
33298 {
33299 try {
33301 }
33302 catch (Swig::DirectorException &e) {
33303 SWIG_fail;
33304 }
33305 }
33306 director = SWIG_DIRECTOR_CAST(result);
33307 if (director) {
33308 resultobj = director->swig_get_self();
33309 Py_INCREF(resultobj);
33310 } else {
33312 }
33313 return resultobj;
33314fail:
33315 PyErr_Clear();
33316 Py_INCREF(Py_NotImplemented);
33317 return Py_NotImplemented;
33318}
33319
33320
33321SWIGINTERN PyObject *_wrap_Constraint___eq____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33322 PyObject *resultobj = 0;
33325 void *argp1 = 0 ;
33326 int res1 = 0 ;
33327 void *argp2 = 0 ;
33328 int res2 = 0 ;
33329 PyObject * obj0 = 0 ;
33330 PyObject * obj1 = 0 ;
33331 Swig::Director *director = 0;
33333
33334 if (!PyArg_UnpackTuple(args, "Constraint___eq__", 2, 2, &obj0, &obj1)) SWIG_fail;
33336 if (!SWIG_IsOK(res1)) {
33337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___eq__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
33338 }
33339 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33341 if (!SWIG_IsOK(res2)) {
33342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___eq__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
33343 }
33344 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
33345 {
33346 try {
33348 }
33349 catch (Swig::DirectorException &e) {
33350 SWIG_fail;
33351 }
33352 }
33353 director = SWIG_DIRECTOR_CAST(result);
33354 if (director) {
33355 resultobj = director->swig_get_self();
33356 Py_INCREF(resultobj);
33357 } else {
33359 }
33360 return resultobj;
33361fail:
33362 PyErr_Clear();
33363 Py_INCREF(Py_NotImplemented);
33364 return Py_NotImplemented;
33365}
33366
33367
33368SWIGINTERN PyObject *_wrap_Constraint___eq__(PyObject *self, PyObject *args) {
33369 Py_ssize_t argc;
33370 PyObject *argv[3] = {
33371 0
33372 };
33373 Py_ssize_t ii;
33374
33375 if (!PyTuple_Check(args)) SWIG_fail;
33376 argc = PyObject_Length(args);
33377 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33378 argv[ii] = PyTuple_GET_ITEM(args,ii);
33379 }
33380 if (argc == 2) {
33381 int _v;
33382 void *vptr = 0;
33383 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33384 _v = SWIG_CheckState(res);
33385 if (_v) {
33386 void *vptr = 0;
33387 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
33388 _v = SWIG_CheckState(res);
33389 if (_v) {
33390 return _wrap_Constraint___eq____SWIG_1(self, args);
33391 }
33392 }
33393 }
33394 if (argc == 2) {
33395 int _v;
33396 void *vptr = 0;
33397 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33398 _v = SWIG_CheckState(res);
33399 if (_v) {
33400 void *vptr = 0;
33401 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33402 _v = SWIG_CheckState(res);
33403 if (_v) {
33404 return _wrap_Constraint___eq____SWIG_2(self, args);
33405 }
33406 }
33407 }
33408 if (argc == 2) {
33409 int _v;
33410 void *vptr = 0;
33411 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33412 _v = SWIG_CheckState(res);
33413 if (_v) {
33414 {
33415 int res = SWIG_AsVal_long(argv[1], NULL);
33416 _v = SWIG_CheckState(res);
33417 }
33418 if (_v) {
33419 return _wrap_Constraint___eq____SWIG_0(self, args);
33420 }
33421 }
33422 }
33423
33424fail:
33425 Py_INCREF(Py_NotImplemented);
33426 return Py_NotImplemented;
33427}
33428
33429
33430SWIGINTERN PyObject *_wrap_Constraint___ne____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33431 PyObject *resultobj = 0;
33434 void *argp1 = 0 ;
33435 int res1 = 0 ;
33436 void *argp2 = 0 ;
33437 int res2 = 0 ;
33438 PyObject * obj0 = 0 ;
33439 PyObject * obj1 = 0 ;
33440 Swig::Director *director = 0;
33442
33443 if (!PyArg_UnpackTuple(args, "Constraint___ne__", 2, 2, &obj0, &obj1)) SWIG_fail;
33445 if (!SWIG_IsOK(res1)) {
33446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___ne__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
33447 }
33448 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33450 if (!SWIG_IsOK(res2)) {
33451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___ne__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
33452 }
33453 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
33454 {
33455 try {
33457 }
33458 catch (Swig::DirectorException &e) {
33459 SWIG_fail;
33460 }
33461 }
33462 director = SWIG_DIRECTOR_CAST(result);
33463 if (director) {
33464 resultobj = director->swig_get_self();
33465 Py_INCREF(resultobj);
33466 } else {
33468 }
33469 return resultobj;
33470fail:
33471 PyErr_Clear();
33472 Py_INCREF(Py_NotImplemented);
33473 return Py_NotImplemented;
33474}
33475
33476
33477SWIGINTERN PyObject *_wrap_Constraint___ne__(PyObject *self, PyObject *args) {
33478 Py_ssize_t argc;
33479 PyObject *argv[3] = {
33480 0
33481 };
33482 Py_ssize_t ii;
33483
33484 if (!PyTuple_Check(args)) SWIG_fail;
33485 argc = PyObject_Length(args);
33486 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33487 argv[ii] = PyTuple_GET_ITEM(args,ii);
33488 }
33489 if (argc == 2) {
33490 int _v;
33491 void *vptr = 0;
33492 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33493 _v = SWIG_CheckState(res);
33494 if (_v) {
33495 void *vptr = 0;
33496 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
33497 _v = SWIG_CheckState(res);
33498 if (_v) {
33499 return _wrap_Constraint___ne____SWIG_1(self, args);
33500 }
33501 }
33502 }
33503 if (argc == 2) {
33504 int _v;
33505 void *vptr = 0;
33506 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33507 _v = SWIG_CheckState(res);
33508 if (_v) {
33509 void *vptr = 0;
33510 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33511 _v = SWIG_CheckState(res);
33512 if (_v) {
33513 return _wrap_Constraint___ne____SWIG_2(self, args);
33514 }
33515 }
33516 }
33517 if (argc == 2) {
33518 int _v;
33519 void *vptr = 0;
33520 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33521 _v = SWIG_CheckState(res);
33522 if (_v) {
33523 {
33524 int res = SWIG_AsVal_long(argv[1], NULL);
33525 _v = SWIG_CheckState(res);
33526 }
33527 if (_v) {
33528 return _wrap_Constraint___ne____SWIG_0(self, args);
33529 }
33530 }
33531 }
33532
33533fail:
33534 Py_INCREF(Py_NotImplemented);
33535 return Py_NotImplemented;
33536}
33537
33538
33539SWIGINTERN PyObject *_wrap_Constraint___ge____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33540 PyObject *resultobj = 0;
33543 void *argp1 = 0 ;
33544 int res1 = 0 ;
33545 void *argp2 = 0 ;
33546 int res2 = 0 ;
33547 PyObject * obj0 = 0 ;
33548 PyObject * obj1 = 0 ;
33549 Swig::Director *director = 0;
33551
33552 if (!PyArg_UnpackTuple(args, "Constraint___ge__", 2, 2, &obj0, &obj1)) SWIG_fail;
33554 if (!SWIG_IsOK(res1)) {
33555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___ge__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
33556 }
33557 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33559 if (!SWIG_IsOK(res2)) {
33560 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___ge__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
33561 }
33562 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
33563 {
33564 try {
33566 }
33567 catch (Swig::DirectorException &e) {
33568 SWIG_fail;
33569 }
33570 }
33571 director = SWIG_DIRECTOR_CAST(result);
33572 if (director) {
33573 resultobj = director->swig_get_self();
33574 Py_INCREF(resultobj);
33575 } else {
33577 }
33578 return resultobj;
33579fail:
33580 PyErr_Clear();
33581 Py_INCREF(Py_NotImplemented);
33582 return Py_NotImplemented;
33583}
33584
33585
33586SWIGINTERN PyObject *_wrap_Constraint___ge__(PyObject *self, PyObject *args) {
33587 Py_ssize_t argc;
33588 PyObject *argv[3] = {
33589 0
33590 };
33591 Py_ssize_t ii;
33592
33593 if (!PyTuple_Check(args)) SWIG_fail;
33594 argc = PyObject_Length(args);
33595 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33596 argv[ii] = PyTuple_GET_ITEM(args,ii);
33597 }
33598 if (argc == 2) {
33599 int _v;
33600 void *vptr = 0;
33601 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33602 _v = SWIG_CheckState(res);
33603 if (_v) {
33604 void *vptr = 0;
33605 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
33606 _v = SWIG_CheckState(res);
33607 if (_v) {
33608 return _wrap_Constraint___ge____SWIG_1(self, args);
33609 }
33610 }
33611 }
33612 if (argc == 2) {
33613 int _v;
33614 void *vptr = 0;
33615 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33616 _v = SWIG_CheckState(res);
33617 if (_v) {
33618 void *vptr = 0;
33619 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33620 _v = SWIG_CheckState(res);
33621 if (_v) {
33622 return _wrap_Constraint___ge____SWIG_2(self, args);
33623 }
33624 }
33625 }
33626 if (argc == 2) {
33627 int _v;
33628 void *vptr = 0;
33629 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33630 _v = SWIG_CheckState(res);
33631 if (_v) {
33632 {
33633 int res = SWIG_AsVal_long(argv[1], NULL);
33634 _v = SWIG_CheckState(res);
33635 }
33636 if (_v) {
33637 return _wrap_Constraint___ge____SWIG_0(self, args);
33638 }
33639 }
33640 }
33641
33642fail:
33643 Py_INCREF(Py_NotImplemented);
33644 return Py_NotImplemented;
33645}
33646
33647
33648SWIGINTERN PyObject *_wrap_Constraint___gt____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33649 PyObject *resultobj = 0;
33652 void *argp1 = 0 ;
33653 int res1 = 0 ;
33654 void *argp2 = 0 ;
33655 int res2 = 0 ;
33656 PyObject * obj0 = 0 ;
33657 PyObject * obj1 = 0 ;
33658 Swig::Director *director = 0;
33660
33661 if (!PyArg_UnpackTuple(args, "Constraint___gt__", 2, 2, &obj0, &obj1)) SWIG_fail;
33663 if (!SWIG_IsOK(res1)) {
33664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___gt__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
33665 }
33666 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33668 if (!SWIG_IsOK(res2)) {
33669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___gt__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
33670 }
33671 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
33672 {
33673 try {
33675 }
33676 catch (Swig::DirectorException &e) {
33677 SWIG_fail;
33678 }
33679 }
33680 director = SWIG_DIRECTOR_CAST(result);
33681 if (director) {
33682 resultobj = director->swig_get_self();
33683 Py_INCREF(resultobj);
33684 } else {
33686 }
33687 return resultobj;
33688fail:
33689 PyErr_Clear();
33690 Py_INCREF(Py_NotImplemented);
33691 return Py_NotImplemented;
33692}
33693
33694
33695SWIGINTERN PyObject *_wrap_Constraint___gt__(PyObject *self, PyObject *args) {
33696 Py_ssize_t argc;
33697 PyObject *argv[3] = {
33698 0
33699 };
33700 Py_ssize_t ii;
33701
33702 if (!PyTuple_Check(args)) SWIG_fail;
33703 argc = PyObject_Length(args);
33704 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33705 argv[ii] = PyTuple_GET_ITEM(args,ii);
33706 }
33707 if (argc == 2) {
33708 int _v;
33709 void *vptr = 0;
33710 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33711 _v = SWIG_CheckState(res);
33712 if (_v) {
33713 void *vptr = 0;
33714 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
33715 _v = SWIG_CheckState(res);
33716 if (_v) {
33717 return _wrap_Constraint___gt____SWIG_1(self, args);
33718 }
33719 }
33720 }
33721 if (argc == 2) {
33722 int _v;
33723 void *vptr = 0;
33724 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33725 _v = SWIG_CheckState(res);
33726 if (_v) {
33727 void *vptr = 0;
33728 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33729 _v = SWIG_CheckState(res);
33730 if (_v) {
33731 return _wrap_Constraint___gt____SWIG_2(self, args);
33732 }
33733 }
33734 }
33735 if (argc == 2) {
33736 int _v;
33737 void *vptr = 0;
33738 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33739 _v = SWIG_CheckState(res);
33740 if (_v) {
33741 {
33742 int res = SWIG_AsVal_long(argv[1], NULL);
33743 _v = SWIG_CheckState(res);
33744 }
33745 if (_v) {
33746 return _wrap_Constraint___gt____SWIG_0(self, args);
33747 }
33748 }
33749 }
33750
33751fail:
33752 Py_INCREF(Py_NotImplemented);
33753 return Py_NotImplemented;
33754}
33755
33756
33757SWIGINTERN PyObject *_wrap_Constraint___le____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33758 PyObject *resultobj = 0;
33761 void *argp1 = 0 ;
33762 int res1 = 0 ;
33763 void *argp2 = 0 ;
33764 int res2 = 0 ;
33765 PyObject * obj0 = 0 ;
33766 PyObject * obj1 = 0 ;
33767 Swig::Director *director = 0;
33769
33770 if (!PyArg_UnpackTuple(args, "Constraint___le__", 2, 2, &obj0, &obj1)) SWIG_fail;
33772 if (!SWIG_IsOK(res1)) {
33773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___le__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
33774 }
33775 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33777 if (!SWIG_IsOK(res2)) {
33778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___le__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
33779 }
33780 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
33781 {
33782 try {
33784 }
33785 catch (Swig::DirectorException &e) {
33786 SWIG_fail;
33787 }
33788 }
33789 director = SWIG_DIRECTOR_CAST(result);
33790 if (director) {
33791 resultobj = director->swig_get_self();
33792 Py_INCREF(resultobj);
33793 } else {
33795 }
33796 return resultobj;
33797fail:
33798 PyErr_Clear();
33799 Py_INCREF(Py_NotImplemented);
33800 return Py_NotImplemented;
33801}
33802
33803
33804SWIGINTERN PyObject *_wrap_Constraint___le__(PyObject *self, PyObject *args) {
33805 Py_ssize_t argc;
33806 PyObject *argv[3] = {
33807 0
33808 };
33809 Py_ssize_t ii;
33810
33811 if (!PyTuple_Check(args)) SWIG_fail;
33812 argc = PyObject_Length(args);
33813 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33814 argv[ii] = PyTuple_GET_ITEM(args,ii);
33815 }
33816 if (argc == 2) {
33817 int _v;
33818 void *vptr = 0;
33819 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33820 _v = SWIG_CheckState(res);
33821 if (_v) {
33822 void *vptr = 0;
33823 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
33824 _v = SWIG_CheckState(res);
33825 if (_v) {
33826 return _wrap_Constraint___le____SWIG_1(self, args);
33827 }
33828 }
33829 }
33830 if (argc == 2) {
33831 int _v;
33832 void *vptr = 0;
33833 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33834 _v = SWIG_CheckState(res);
33835 if (_v) {
33836 void *vptr = 0;
33837 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33838 _v = SWIG_CheckState(res);
33839 if (_v) {
33840 return _wrap_Constraint___le____SWIG_2(self, args);
33841 }
33842 }
33843 }
33844 if (argc == 2) {
33845 int _v;
33846 void *vptr = 0;
33847 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33848 _v = SWIG_CheckState(res);
33849 if (_v) {
33850 {
33851 int res = SWIG_AsVal_long(argv[1], NULL);
33852 _v = SWIG_CheckState(res);
33853 }
33854 if (_v) {
33855 return _wrap_Constraint___le____SWIG_0(self, args);
33856 }
33857 }
33858 }
33859
33860fail:
33861 Py_INCREF(Py_NotImplemented);
33862 return Py_NotImplemented;
33863}
33864
33865
33866SWIGINTERN PyObject *_wrap_Constraint___lt____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33867 PyObject *resultobj = 0;
33870 void *argp1 = 0 ;
33871 int res1 = 0 ;
33872 void *argp2 = 0 ;
33873 int res2 = 0 ;
33874 PyObject * obj0 = 0 ;
33875 PyObject * obj1 = 0 ;
33876 Swig::Director *director = 0;
33878
33879 if (!PyArg_UnpackTuple(args, "Constraint___lt__", 2, 2, &obj0, &obj1)) SWIG_fail;
33881 if (!SWIG_IsOK(res1)) {
33882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint___lt__" "', argument " "1"" of type '" "operations_research::Constraint *""'");
33883 }
33884 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33886 if (!SWIG_IsOK(res2)) {
33887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Constraint___lt__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
33888 }
33889 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
33890 {
33891 try {
33893 }
33894 catch (Swig::DirectorException &e) {
33895 SWIG_fail;
33896 }
33897 }
33898 director = SWIG_DIRECTOR_CAST(result);
33899 if (director) {
33900 resultobj = director->swig_get_self();
33901 Py_INCREF(resultobj);
33902 } else {
33904 }
33905 return resultobj;
33906fail:
33907 PyErr_Clear();
33908 Py_INCREF(Py_NotImplemented);
33909 return Py_NotImplemented;
33910}
33911
33912
33913SWIGINTERN PyObject *_wrap_Constraint___lt__(PyObject *self, PyObject *args) {
33914 Py_ssize_t argc;
33915 PyObject *argv[3] = {
33916 0
33917 };
33918 Py_ssize_t ii;
33919
33920 if (!PyTuple_Check(args)) SWIG_fail;
33921 argc = PyObject_Length(args);
33922 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33923 argv[ii] = PyTuple_GET_ITEM(args,ii);
33924 }
33925 if (argc == 2) {
33926 int _v;
33927 void *vptr = 0;
33928 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33929 _v = SWIG_CheckState(res);
33930 if (_v) {
33931 void *vptr = 0;
33932 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
33933 _v = SWIG_CheckState(res);
33934 if (_v) {
33935 return _wrap_Constraint___lt____SWIG_1(self, args);
33936 }
33937 }
33938 }
33939 if (argc == 2) {
33940 int _v;
33941 void *vptr = 0;
33942 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33943 _v = SWIG_CheckState(res);
33944 if (_v) {
33945 void *vptr = 0;
33946 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33947 _v = SWIG_CheckState(res);
33948 if (_v) {
33949 return _wrap_Constraint___lt____SWIG_2(self, args);
33950 }
33951 }
33952 }
33953 if (argc == 2) {
33954 int _v;
33955 void *vptr = 0;
33956 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
33957 _v = SWIG_CheckState(res);
33958 if (_v) {
33959 {
33960 int res = SWIG_AsVal_long(argv[1], NULL);
33961 _v = SWIG_CheckState(res);
33962 }
33963 if (_v) {
33964 return _wrap_Constraint___lt____SWIG_0(self, args);
33965 }
33966 }
33967 }
33968
33969fail:
33970 Py_INCREF(Py_NotImplemented);
33971 return Py_NotImplemented;
33972}
33973
33974
33975SWIGINTERN PyObject *_wrap_Constraint_MapTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33976 PyObject *resultobj = 0;
33978 std::vector< operations_research::IntVar * > *arg2 = 0 ;
33979 void *argp1 = 0 ;
33980 int res1 = 0 ;
33981 std::vector< operations_research::IntVar * > temp2 ;
33982 PyObject * obj0 = 0 ;
33983 PyObject * obj1 = 0 ;
33984 Swig::Director *director = 0;
33986
33987 if (!PyArg_UnpackTuple(args, "Constraint_MapTo", 2, 2, &obj0, &obj1)) SWIG_fail;
33989 if (!SWIG_IsOK(res1)) {
33990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint_MapTo" "', argument " "1"" of type '" "operations_research::Constraint *""'");
33991 }
33992 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33993 {
33994 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
33995 if (!PyErr_Occurred())
33996 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
33997 return NULL;
33998 }
33999 arg2 = &temp2;
34000 }
34001 {
34002 try {
34003 result = (operations_research::Constraint *)operations_research_Constraint_MapTo(arg1,(std::vector< operations_research::IntVar * > const &)*arg2);
34004 }
34005 catch (Swig::DirectorException &e) {
34006 SWIG_fail;
34007 }
34008 }
34009 director = SWIG_DIRECTOR_CAST(result);
34010 if (director) {
34011 resultobj = director->swig_get_self();
34012 Py_INCREF(resultobj);
34013 } else {
34015 }
34016 return resultobj;
34017fail:
34018 return NULL;
34019}
34020
34021
34022SWIGINTERN PyObject *_wrap_Constraint_IndexOf__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34023 PyObject *resultobj = 0;
34025 std::vector< int64_t > *arg2 = 0 ;
34026 void *argp1 = 0 ;
34027 int res1 = 0 ;
34028 std::vector< int64_t > temp2 ;
34029 PyObject * obj0 = 0 ;
34030 PyObject * obj1 = 0 ;
34031 operations_research::IntExpr *result = 0 ;
34032
34033 if (!PyArg_UnpackTuple(args, "Constraint_IndexOf", 2, 2, &obj0, &obj1)) SWIG_fail;
34035 if (!SWIG_IsOK(res1)) {
34036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint_IndexOf" "', argument " "1"" of type '" "operations_research::Constraint *""'");
34037 }
34038 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
34039 {
34040 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
34041 if (!PyErr_Occurred())
34042 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
34043 return NULL;
34044 }
34045 arg2 = &temp2;
34046 }
34047 {
34048 try {
34049 result = (operations_research::IntExpr *)operations_research_Constraint_IndexOf__SWIG_0(arg1,(std::vector< long > const &)*arg2);
34050 }
34051 catch (Swig::DirectorException &e) {
34052 SWIG_fail;
34053 }
34054 }
34056 return resultobj;
34057fail:
34058 return NULL;
34059}
34060
34061
34062SWIGINTERN PyObject *_wrap_Constraint_IndexOf__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34063 PyObject *resultobj = 0;
34065 std::vector< operations_research::IntVar * > *arg2 = 0 ;
34066 void *argp1 = 0 ;
34067 int res1 = 0 ;
34068 std::vector< operations_research::IntVar * > temp2 ;
34069 PyObject * obj0 = 0 ;
34070 PyObject * obj1 = 0 ;
34071 operations_research::IntExpr *result = 0 ;
34072
34073 if (!PyArg_UnpackTuple(args, "Constraint_IndexOf", 2, 2, &obj0, &obj1)) SWIG_fail;
34075 if (!SWIG_IsOK(res1)) {
34076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Constraint_IndexOf" "', argument " "1"" of type '" "operations_research::Constraint *""'");
34077 }
34078 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
34079 {
34080 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
34081 if (!PyErr_Occurred())
34082 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
34083 return NULL;
34084 }
34085 arg2 = &temp2;
34086 }
34087 {
34088 try {
34089 result = (operations_research::IntExpr *)operations_research_Constraint_IndexOf__SWIG_1(arg1,(std::vector< operations_research::IntVar * > const &)*arg2);
34090 }
34091 catch (Swig::DirectorException &e) {
34092 SWIG_fail;
34093 }
34094 }
34096 return resultobj;
34097fail:
34098 return NULL;
34099}
34100
34101
34102SWIGINTERN PyObject *_wrap_Constraint_IndexOf(PyObject *self, PyObject *args) {
34103 Py_ssize_t argc;
34104 PyObject *argv[3] = {
34105 0
34106 };
34107 Py_ssize_t ii;
34108
34109 if (!PyTuple_Check(args)) SWIG_fail;
34110 argc = PyObject_Length(args);
34111 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
34112 argv[ii] = PyTuple_GET_ITEM(args,ii);
34113 }
34114 if (argc == 2) {
34115 int _v;
34116 void *vptr = 0;
34117 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
34118 _v = SWIG_CheckState(res);
34119 if (_v) {
34120 {
34121 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
34122 _v = 0;
34123 } else {
34124 const bool is_tuple = PyTuple_Check(argv[1]);
34125 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
34126 size_t i = 0;
34127 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
34128 :PyList_GetItem(argv[1], i))) {
34129 ++i;
34130 }
34131 _v = i == size;
34132 }
34133 }
34134 if (_v) {
34135 return _wrap_Constraint_IndexOf__SWIG_0(self, args);
34136 }
34137 }
34138 }
34139 if (argc == 2) {
34140 int _v;
34141 void *vptr = 0;
34142 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
34143 _v = SWIG_CheckState(res);
34144 if (_v) {
34145 {
34146 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
34147 _v = 0;
34148 } else {
34149 const bool is_tuple = PyTuple_Check(argv[1]);
34150 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
34151 size_t i = 0;
34152 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
34153 :PyList_GetItem(argv[1], i))) {
34154 ++i;
34155 }
34156 _v = i == size;
34157 }
34158 }
34159 if (_v) {
34160 return _wrap_Constraint_IndexOf__SWIG_1(self, args);
34161 }
34162 }
34163 }
34164
34165fail:
34166 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Constraint_IndexOf'.\n"
34167 " Possible C/C++ prototypes are:\n"
34168 " operations_research::Constraint::IndexOf(std::vector< int64_t > const &)\n"
34169 " operations_research::Constraint::IndexOf(std::vector< operations_research::IntVar * > const &)\n");
34170 return 0;
34171}
34172
34173
34174SWIGINTERN PyObject *_wrap_disown_Constraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34175 PyObject *resultobj = 0;
34177 void *argp1 = 0 ;
34178 int res1 = 0 ;
34179 PyObject * obj0 = 0 ;
34180
34181 if (!PyArg_UnpackTuple(args, "disown_Constraint", 1, 1, &obj0)) SWIG_fail;
34183 if (!SWIG_IsOK(res1)) {
34184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_Constraint" "', argument " "1"" of type '" "operations_research::Constraint *""'");
34185 }
34186 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
34187 {
34188 Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
34189 if (director) director->swig_disown();
34190 }
34191
34192 resultobj = SWIG_Py_Void();
34193 return resultobj;
34194fail:
34195 return NULL;
34196}
34197
34198
34199SWIGINTERN PyObject *Constraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34200 PyObject *obj;
34201 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
34203 return SWIG_Py_Void();
34204}
34205
34206SWIGINTERN PyObject *Constraint_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34207 return SWIG_Python_InitShadowInstance(args);
34208}
34209
34210SWIGINTERN PyObject *_wrap_new_SearchMonitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34211 PyObject *resultobj = 0;
34212 PyObject *arg1 = (PyObject *) 0 ;
34214 void *argp2 = 0 ;
34215 int res2 = 0 ;
34216 PyObject * obj0 = 0 ;
34217 PyObject * obj1 = 0 ;
34219
34220 if (!PyArg_UnpackTuple(args, "new_SearchMonitor", 2, 2, &obj0, &obj1)) SWIG_fail;
34221 arg1 = obj0;
34222 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
34223 if (!SWIG_IsOK(res2)) {
34224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SearchMonitor" "', argument " "2"" of type '" "operations_research::Solver *const""'");
34225 }
34226 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
34227 {
34228 try {
34229 if ( arg1 != Py_None ) {
34230 /* subclassed */
34232 } else {
34234 }
34235 }
34236 catch (Swig::DirectorException &e) {
34237 SWIG_fail;
34238 }
34239 }
34241 return resultobj;
34242fail:
34243 return NULL;
34244}
34245
34246
34247SWIGINTERN PyObject *_wrap_delete_SearchMonitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34248 PyObject *resultobj = 0;
34250 void *argp1 = 0 ;
34251 int res1 = 0 ;
34252 PyObject * obj0 = 0 ;
34253
34254 if (!PyArg_UnpackTuple(args, "delete_SearchMonitor", 1, 1, &obj0)) SWIG_fail;
34256 if (!SWIG_IsOK(res1)) {
34257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SearchMonitor" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34258 }
34259 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34260 {
34261 try {
34262 delete arg1;
34263 }
34264 catch (Swig::DirectorException &e) {
34265 SWIG_fail;
34266 }
34267 }
34268 resultobj = SWIG_Py_Void();
34269 return resultobj;
34270fail:
34271 return NULL;
34272}
34273
34274
34275SWIGINTERN PyObject *_wrap_SearchMonitor_EnterSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34276 PyObject *resultobj = 0;
34278 void *argp1 = 0 ;
34279 int res1 = 0 ;
34280 PyObject * obj0 = 0 ;
34281 Swig::Director *director = 0;
34282 bool upcall = false;
34283
34284 if (!PyArg_UnpackTuple(args, "SearchMonitor_EnterSearch", 1, 1, &obj0)) SWIG_fail;
34286 if (!SWIG_IsOK(res1)) {
34287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_EnterSearch" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34288 }
34289 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34290 director = SWIG_DIRECTOR_CAST(arg1);
34291 upcall = (director && (director->swig_get_self()==obj0));
34292 try {
34293 {
34294 try {
34295 if (upcall) {
34297 } else {
34298 (arg1)->EnterSearch();
34299 }
34300 }
34301 catch (Swig::DirectorException &e) {
34302 SWIG_fail;
34303 }
34304 }
34305 } catch (Swig::DirectorException&) {
34306 SWIG_fail;
34307 }
34308 resultobj = SWIG_Py_Void();
34309 return resultobj;
34310fail:
34311 return NULL;
34312}
34313
34314
34315SWIGINTERN PyObject *_wrap_SearchMonitor_RestartSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34316 PyObject *resultobj = 0;
34318 void *argp1 = 0 ;
34319 int res1 = 0 ;
34320 PyObject * obj0 = 0 ;
34321 Swig::Director *director = 0;
34322 bool upcall = false;
34323
34324 if (!PyArg_UnpackTuple(args, "SearchMonitor_RestartSearch", 1, 1, &obj0)) SWIG_fail;
34326 if (!SWIG_IsOK(res1)) {
34327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_RestartSearch" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34328 }
34329 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34330 director = SWIG_DIRECTOR_CAST(arg1);
34331 upcall = (director && (director->swig_get_self()==obj0));
34332 try {
34333 {
34334 try {
34335 if (upcall) {
34337 } else {
34338 (arg1)->RestartSearch();
34339 }
34340 }
34341 catch (Swig::DirectorException &e) {
34342 SWIG_fail;
34343 }
34344 }
34345 } catch (Swig::DirectorException&) {
34346 SWIG_fail;
34347 }
34348 resultobj = SWIG_Py_Void();
34349 return resultobj;
34350fail:
34351 return NULL;
34352}
34353
34354
34355SWIGINTERN PyObject *_wrap_SearchMonitor_ExitSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34356 PyObject *resultobj = 0;
34358 void *argp1 = 0 ;
34359 int res1 = 0 ;
34360 PyObject * obj0 = 0 ;
34361 Swig::Director *director = 0;
34362 bool upcall = false;
34363
34364 if (!PyArg_UnpackTuple(args, "SearchMonitor_ExitSearch", 1, 1, &obj0)) SWIG_fail;
34366 if (!SWIG_IsOK(res1)) {
34367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_ExitSearch" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34368 }
34369 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34370 director = SWIG_DIRECTOR_CAST(arg1);
34371 upcall = (director && (director->swig_get_self()==obj0));
34372 try {
34373 {
34374 try {
34375 if (upcall) {
34377 } else {
34378 (arg1)->ExitSearch();
34379 }
34380 }
34381 catch (Swig::DirectorException &e) {
34382 SWIG_fail;
34383 }
34384 }
34385 } catch (Swig::DirectorException&) {
34386 SWIG_fail;
34387 }
34388 resultobj = SWIG_Py_Void();
34389 return resultobj;
34390fail:
34391 return NULL;
34392}
34393
34394
34395SWIGINTERN PyObject *_wrap_SearchMonitor_BeginNextDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34396 PyObject *resultobj = 0;
34399 void *argp1 = 0 ;
34400 int res1 = 0 ;
34401 PyObject * obj0 = 0 ;
34402 PyObject * obj1 = 0 ;
34403 Swig::Director *director = 0;
34404 bool upcall = false;
34405
34406 if (!PyArg_UnpackTuple(args, "SearchMonitor_BeginNextDecision", 2, 2, &obj0, &obj1)) SWIG_fail;
34408 if (!SWIG_IsOK(res1)) {
34409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_BeginNextDecision" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34410 }
34411 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34412 {
34413 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
34414 }
34415 director = SWIG_DIRECTOR_CAST(arg1);
34416 upcall = (director && (director->swig_get_self()==obj0));
34417 try {
34418 {
34419 try {
34420 if (upcall) {
34422 } else {
34423 (arg1)->BeginNextDecision(arg2);
34424 }
34425 }
34426 catch (Swig::DirectorException &e) {
34427 SWIG_fail;
34428 }
34429 }
34430 } catch (Swig::DirectorException&) {
34431 SWIG_fail;
34432 }
34433 resultobj = SWIG_Py_Void();
34434 return resultobj;
34435fail:
34436 return NULL;
34437}
34438
34439
34440SWIGINTERN PyObject *_wrap_SearchMonitor_EndNextDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34441 PyObject *resultobj = 0;
34445 void *argp1 = 0 ;
34446 int res1 = 0 ;
34447 PyObject * obj0 = 0 ;
34448 PyObject * obj1 = 0 ;
34449 PyObject * obj2 = 0 ;
34450 Swig::Director *director = 0;
34451 bool upcall = false;
34452
34453 if (!PyArg_UnpackTuple(args, "SearchMonitor_EndNextDecision", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
34455 if (!SWIG_IsOK(res1)) {
34456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_EndNextDecision" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34457 }
34458 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34459 {
34460 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
34461 }
34462 {
34463 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
34464 }
34465 director = SWIG_DIRECTOR_CAST(arg1);
34466 upcall = (director && (director->swig_get_self()==obj0));
34467 try {
34468 {
34469 try {
34470 if (upcall) {
34472 } else {
34473 (arg1)->EndNextDecision(arg2,arg3);
34474 }
34475 }
34476 catch (Swig::DirectorException &e) {
34477 SWIG_fail;
34478 }
34479 }
34480 } catch (Swig::DirectorException&) {
34481 SWIG_fail;
34482 }
34483 resultobj = SWIG_Py_Void();
34484 return resultobj;
34485fail:
34486 return NULL;
34487}
34488
34489
34490SWIGINTERN PyObject *_wrap_SearchMonitor_ApplyDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34491 PyObject *resultobj = 0;
34494 void *argp1 = 0 ;
34495 int res1 = 0 ;
34496 PyObject * obj0 = 0 ;
34497 PyObject * obj1 = 0 ;
34498 Swig::Director *director = 0;
34499 bool upcall = false;
34500
34501 if (!PyArg_UnpackTuple(args, "SearchMonitor_ApplyDecision", 2, 2, &obj0, &obj1)) SWIG_fail;
34503 if (!SWIG_IsOK(res1)) {
34504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_ApplyDecision" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34505 }
34506 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34507 {
34508 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
34509 }
34510 director = SWIG_DIRECTOR_CAST(arg1);
34511 upcall = (director && (director->swig_get_self()==obj0));
34512 try {
34513 {
34514 try {
34515 if (upcall) {
34517 } else {
34518 (arg1)->ApplyDecision(arg2);
34519 }
34520 }
34521 catch (Swig::DirectorException &e) {
34522 SWIG_fail;
34523 }
34524 }
34525 } catch (Swig::DirectorException&) {
34526 SWIG_fail;
34527 }
34528 resultobj = SWIG_Py_Void();
34529 return resultobj;
34530fail:
34531 return NULL;
34532}
34533
34534
34535SWIGINTERN PyObject *_wrap_SearchMonitor_RefuteDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34536 PyObject *resultobj = 0;
34539 void *argp1 = 0 ;
34540 int res1 = 0 ;
34541 PyObject * obj0 = 0 ;
34542 PyObject * obj1 = 0 ;
34543 Swig::Director *director = 0;
34544 bool upcall = false;
34545
34546 if (!PyArg_UnpackTuple(args, "SearchMonitor_RefuteDecision", 2, 2, &obj0, &obj1)) SWIG_fail;
34548 if (!SWIG_IsOK(res1)) {
34549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_RefuteDecision" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34550 }
34551 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34552 {
34553 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
34554 }
34555 director = SWIG_DIRECTOR_CAST(arg1);
34556 upcall = (director && (director->swig_get_self()==obj0));
34557 try {
34558 {
34559 try {
34560 if (upcall) {
34562 } else {
34563 (arg1)->RefuteDecision(arg2);
34564 }
34565 }
34566 catch (Swig::DirectorException &e) {
34567 SWIG_fail;
34568 }
34569 }
34570 } catch (Swig::DirectorException&) {
34571 SWIG_fail;
34572 }
34573 resultobj = SWIG_Py_Void();
34574 return resultobj;
34575fail:
34576 return NULL;
34577}
34578
34579
34580SWIGINTERN PyObject *_wrap_SearchMonitor_AfterDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34581 PyObject *resultobj = 0;
34584 bool arg3 ;
34585 void *argp1 = 0 ;
34586 int res1 = 0 ;
34587 bool val3 ;
34588 int ecode3 = 0 ;
34589 PyObject * obj0 = 0 ;
34590 PyObject * obj1 = 0 ;
34591 PyObject * obj2 = 0 ;
34592 Swig::Director *director = 0;
34593 bool upcall = false;
34594
34595 if (!PyArg_UnpackTuple(args, "SearchMonitor_AfterDecision", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
34597 if (!SWIG_IsOK(res1)) {
34598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_AfterDecision" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34599 }
34600 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34601 {
34602 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
34603 }
34604 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34605 if (!SWIG_IsOK(ecode3)) {
34606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SearchMonitor_AfterDecision" "', argument " "3"" of type '" "bool""'");
34607 }
34608 arg3 = static_cast< bool >(val3);
34609 director = SWIG_DIRECTOR_CAST(arg1);
34610 upcall = (director && (director->swig_get_self()==obj0));
34611 try {
34612 {
34613 try {
34614 if (upcall) {
34616 } else {
34617 (arg1)->AfterDecision(arg2,arg3);
34618 }
34619 }
34620 catch (Swig::DirectorException &e) {
34621 SWIG_fail;
34622 }
34623 }
34624 } catch (Swig::DirectorException&) {
34625 SWIG_fail;
34626 }
34627 resultobj = SWIG_Py_Void();
34628 return resultobj;
34629fail:
34630 return NULL;
34631}
34632
34633
34634SWIGINTERN PyObject *_wrap_SearchMonitor_BeginFail(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34635 PyObject *resultobj = 0;
34637 void *argp1 = 0 ;
34638 int res1 = 0 ;
34639 PyObject * obj0 = 0 ;
34640 Swig::Director *director = 0;
34641 bool upcall = false;
34642
34643 if (!PyArg_UnpackTuple(args, "SearchMonitor_BeginFail", 1, 1, &obj0)) SWIG_fail;
34645 if (!SWIG_IsOK(res1)) {
34646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_BeginFail" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34647 }
34648 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34649 director = SWIG_DIRECTOR_CAST(arg1);
34650 upcall = (director && (director->swig_get_self()==obj0));
34651 try {
34652 {
34653 try {
34654 if (upcall) {
34656 } else {
34657 (arg1)->BeginFail();
34658 }
34659 }
34660 catch (Swig::DirectorException &e) {
34661 SWIG_fail;
34662 }
34663 }
34664 } catch (Swig::DirectorException&) {
34665 SWIG_fail;
34666 }
34667 resultobj = SWIG_Py_Void();
34668 return resultobj;
34669fail:
34670 return NULL;
34671}
34672
34673
34674SWIGINTERN PyObject *_wrap_SearchMonitor_EndFail(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34675 PyObject *resultobj = 0;
34677 void *argp1 = 0 ;
34678 int res1 = 0 ;
34679 PyObject * obj0 = 0 ;
34680 Swig::Director *director = 0;
34681 bool upcall = false;
34682
34683 if (!PyArg_UnpackTuple(args, "SearchMonitor_EndFail", 1, 1, &obj0)) SWIG_fail;
34685 if (!SWIG_IsOK(res1)) {
34686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_EndFail" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34687 }
34688 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34689 director = SWIG_DIRECTOR_CAST(arg1);
34690 upcall = (director && (director->swig_get_self()==obj0));
34691 try {
34692 {
34693 try {
34694 if (upcall) {
34696 } else {
34697 (arg1)->EndFail();
34698 }
34699 }
34700 catch (Swig::DirectorException &e) {
34701 SWIG_fail;
34702 }
34703 }
34704 } catch (Swig::DirectorException&) {
34705 SWIG_fail;
34706 }
34707 resultobj = SWIG_Py_Void();
34708 return resultobj;
34709fail:
34710 return NULL;
34711}
34712
34713
34715 PyObject *resultobj = 0;
34717 void *argp1 = 0 ;
34718 int res1 = 0 ;
34719 PyObject * obj0 = 0 ;
34720 Swig::Director *director = 0;
34721 bool upcall = false;
34722
34723 if (!PyArg_UnpackTuple(args, "SearchMonitor_BeginInitialPropagation", 1, 1, &obj0)) SWIG_fail;
34725 if (!SWIG_IsOK(res1)) {
34726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_BeginInitialPropagation" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34727 }
34728 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34729 director = SWIG_DIRECTOR_CAST(arg1);
34730 upcall = (director && (director->swig_get_self()==obj0));
34731 try {
34732 {
34733 try {
34734 if (upcall) {
34736 } else {
34737 (arg1)->BeginInitialPropagation();
34738 }
34739 }
34740 catch (Swig::DirectorException &e) {
34741 SWIG_fail;
34742 }
34743 }
34744 } catch (Swig::DirectorException&) {
34745 SWIG_fail;
34746 }
34747 resultobj = SWIG_Py_Void();
34748 return resultobj;
34749fail:
34750 return NULL;
34751}
34752
34753
34754SWIGINTERN PyObject *_wrap_SearchMonitor_EndInitialPropagation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34755 PyObject *resultobj = 0;
34757 void *argp1 = 0 ;
34758 int res1 = 0 ;
34759 PyObject * obj0 = 0 ;
34760 Swig::Director *director = 0;
34761 bool upcall = false;
34762
34763 if (!PyArg_UnpackTuple(args, "SearchMonitor_EndInitialPropagation", 1, 1, &obj0)) SWIG_fail;
34765 if (!SWIG_IsOK(res1)) {
34766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_EndInitialPropagation" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34767 }
34768 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34769 director = SWIG_DIRECTOR_CAST(arg1);
34770 upcall = (director && (director->swig_get_self()==obj0));
34771 try {
34772 {
34773 try {
34774 if (upcall) {
34776 } else {
34777 (arg1)->EndInitialPropagation();
34778 }
34779 }
34780 catch (Swig::DirectorException &e) {
34781 SWIG_fail;
34782 }
34783 }
34784 } catch (Swig::DirectorException&) {
34785 SWIG_fail;
34786 }
34787 resultobj = SWIG_Py_Void();
34788 return resultobj;
34789fail:
34790 return NULL;
34791}
34792
34793
34794SWIGINTERN PyObject *_wrap_SearchMonitor_AcceptSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34795 PyObject *resultobj = 0;
34797 void *argp1 = 0 ;
34798 int res1 = 0 ;
34799 PyObject * obj0 = 0 ;
34800 Swig::Director *director = 0;
34801 bool upcall = false;
34802 bool result;
34803
34804 if (!PyArg_UnpackTuple(args, "SearchMonitor_AcceptSolution", 1, 1, &obj0)) SWIG_fail;
34806 if (!SWIG_IsOK(res1)) {
34807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_AcceptSolution" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34808 }
34809 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34810 director = SWIG_DIRECTOR_CAST(arg1);
34811 upcall = (director && (director->swig_get_self()==obj0));
34812 try {
34813 {
34814 try {
34815 if (upcall) {
34816 result = (bool)(arg1)->operations_research::SearchMonitor::AcceptSolution();
34817 } else {
34818 result = (bool)(arg1)->AcceptSolution();
34819 }
34820 }
34821 catch (Swig::DirectorException &e) {
34822 SWIG_fail;
34823 }
34824 }
34825 } catch (Swig::DirectorException&) {
34826 SWIG_fail;
34827 }
34828 resultobj = SWIG_From_bool(static_cast< bool >(result));
34829 return resultobj;
34830fail:
34831 return NULL;
34832}
34833
34834
34835SWIGINTERN PyObject *_wrap_SearchMonitor_AtSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34836 PyObject *resultobj = 0;
34838 void *argp1 = 0 ;
34839 int res1 = 0 ;
34840 PyObject * obj0 = 0 ;
34841 Swig::Director *director = 0;
34842 bool upcall = false;
34843 bool result;
34844
34845 if (!PyArg_UnpackTuple(args, "SearchMonitor_AtSolution", 1, 1, &obj0)) SWIG_fail;
34847 if (!SWIG_IsOK(res1)) {
34848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_AtSolution" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34849 }
34850 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34851 director = SWIG_DIRECTOR_CAST(arg1);
34852 upcall = (director && (director->swig_get_self()==obj0));
34853 try {
34854 {
34855 try {
34856 if (upcall) {
34857 result = (bool)(arg1)->operations_research::SearchMonitor::AtSolution();
34858 } else {
34859 result = (bool)(arg1)->AtSolution();
34860 }
34861 }
34862 catch (Swig::DirectorException &e) {
34863 SWIG_fail;
34864 }
34865 }
34866 } catch (Swig::DirectorException&) {
34867 SWIG_fail;
34868 }
34869 resultobj = SWIG_From_bool(static_cast< bool >(result));
34870 return resultobj;
34871fail:
34872 return NULL;
34873}
34874
34875
34876SWIGINTERN PyObject *_wrap_SearchMonitor_NoMoreSolutions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34877 PyObject *resultobj = 0;
34879 void *argp1 = 0 ;
34880 int res1 = 0 ;
34881 PyObject * obj0 = 0 ;
34882 Swig::Director *director = 0;
34883 bool upcall = false;
34884
34885 if (!PyArg_UnpackTuple(args, "SearchMonitor_NoMoreSolutions", 1, 1, &obj0)) SWIG_fail;
34887 if (!SWIG_IsOK(res1)) {
34888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_NoMoreSolutions" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34889 }
34890 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34891 director = SWIG_DIRECTOR_CAST(arg1);
34892 upcall = (director && (director->swig_get_self()==obj0));
34893 try {
34894 {
34895 try {
34896 if (upcall) {
34898 } else {
34899 (arg1)->NoMoreSolutions();
34900 }
34901 }
34902 catch (Swig::DirectorException &e) {
34903 SWIG_fail;
34904 }
34905 }
34906 } catch (Swig::DirectorException&) {
34907 SWIG_fail;
34908 }
34909 resultobj = SWIG_Py_Void();
34910 return resultobj;
34911fail:
34912 return NULL;
34913}
34914
34915
34916SWIGINTERN PyObject *_wrap_SearchMonitor_LocalOptimum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34917 PyObject *resultobj = 0;
34919 void *argp1 = 0 ;
34920 int res1 = 0 ;
34921 PyObject * obj0 = 0 ;
34922 Swig::Director *director = 0;
34923 bool upcall = false;
34924 bool result;
34925
34926 if (!PyArg_UnpackTuple(args, "SearchMonitor_LocalOptimum", 1, 1, &obj0)) SWIG_fail;
34928 if (!SWIG_IsOK(res1)) {
34929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_LocalOptimum" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34930 }
34931 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34932 director = SWIG_DIRECTOR_CAST(arg1);
34933 upcall = (director && (director->swig_get_self()==obj0));
34934 try {
34935 {
34936 try {
34937 if (upcall) {
34938 result = (bool)(arg1)->operations_research::SearchMonitor::LocalOptimum();
34939 } else {
34940 result = (bool)(arg1)->LocalOptimum();
34941 }
34942 }
34943 catch (Swig::DirectorException &e) {
34944 SWIG_fail;
34945 }
34946 }
34947 } catch (Swig::DirectorException&) {
34948 SWIG_fail;
34949 }
34950 resultobj = SWIG_From_bool(static_cast< bool >(result));
34951 return resultobj;
34952fail:
34953 return NULL;
34954}
34955
34956
34957SWIGINTERN PyObject *_wrap_SearchMonitor_AcceptDelta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34958 PyObject *resultobj = 0;
34962 void *argp1 = 0 ;
34963 int res1 = 0 ;
34964 void *argp2 = 0 ;
34965 int res2 = 0 ;
34966 void *argp3 = 0 ;
34967 int res3 = 0 ;
34968 PyObject * obj0 = 0 ;
34969 PyObject * obj1 = 0 ;
34970 PyObject * obj2 = 0 ;
34971 Swig::Director *director = 0;
34972 bool upcall = false;
34973 bool result;
34974
34975 if (!PyArg_UnpackTuple(args, "SearchMonitor_AcceptDelta", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
34977 if (!SWIG_IsOK(res1)) {
34978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_AcceptDelta" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34979 }
34980 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34982 if (!SWIG_IsOK(res2)) {
34983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchMonitor_AcceptDelta" "', argument " "2"" of type '" "operations_research::Assignment *""'");
34984 }
34985 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
34987 if (!SWIG_IsOK(res3)) {
34988 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SearchMonitor_AcceptDelta" "', argument " "3"" of type '" "operations_research::Assignment *""'");
34989 }
34990 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
34991 director = SWIG_DIRECTOR_CAST(arg1);
34992 upcall = (director && (director->swig_get_self()==obj0));
34993 try {
34994 {
34995 try {
34996 if (upcall) {
34997 result = (bool)(arg1)->operations_research::SearchMonitor::AcceptDelta(arg2,arg3);
34998 } else {
34999 result = (bool)(arg1)->AcceptDelta(arg2,arg3);
35000 }
35001 }
35002 catch (Swig::DirectorException &e) {
35003 SWIG_fail;
35004 }
35005 }
35006 } catch (Swig::DirectorException&) {
35007 SWIG_fail;
35008 }
35009 resultobj = SWIG_From_bool(static_cast< bool >(result));
35010 return resultobj;
35011fail:
35012 return NULL;
35013}
35014
35015
35016SWIGINTERN PyObject *_wrap_SearchMonitor_AcceptNeighbor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35017 PyObject *resultobj = 0;
35019 void *argp1 = 0 ;
35020 int res1 = 0 ;
35021 PyObject * obj0 = 0 ;
35022 Swig::Director *director = 0;
35023 bool upcall = false;
35024
35025 if (!PyArg_UnpackTuple(args, "SearchMonitor_AcceptNeighbor", 1, 1, &obj0)) SWIG_fail;
35027 if (!SWIG_IsOK(res1)) {
35028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_AcceptNeighbor" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
35029 }
35030 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
35031 director = SWIG_DIRECTOR_CAST(arg1);
35032 upcall = (director && (director->swig_get_self()==obj0));
35033 try {
35034 {
35035 try {
35036 if (upcall) {
35038 } else {
35039 (arg1)->AcceptNeighbor();
35040 }
35041 }
35042 catch (Swig::DirectorException &e) {
35043 SWIG_fail;
35044 }
35045 }
35046 } catch (Swig::DirectorException&) {
35047 SWIG_fail;
35048 }
35049 resultobj = SWIG_Py_Void();
35050 return resultobj;
35051fail:
35052 return NULL;
35053}
35054
35055
35056SWIGINTERN PyObject *_wrap_SearchMonitor_solver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35057 PyObject *resultobj = 0;
35059 void *argp1 = 0 ;
35060 int res1 = 0 ;
35061 PyObject * obj0 = 0 ;
35062 operations_research::Solver *result = 0 ;
35063
35064 if (!PyArg_UnpackTuple(args, "SearchMonitor_solver", 1, 1, &obj0)) SWIG_fail;
35066 if (!SWIG_IsOK(res1)) {
35067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor_solver" "', argument " "1"" of type '" "operations_research::SearchMonitor const *""'");
35068 }
35069 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
35070 {
35071 try {
35072 result = (operations_research::Solver *)((operations_research::SearchMonitor const *)arg1)->solver();
35073 }
35074 catch (Swig::DirectorException &e) {
35075 SWIG_fail;
35076 }
35077 }
35079 return resultobj;
35080fail:
35081 return NULL;
35082}
35083
35084
35085SWIGINTERN PyObject *_wrap_SearchMonitor___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35086 PyObject *resultobj = 0;
35088 void *argp1 = 0 ;
35089 int res1 = 0 ;
35090 PyObject * obj0 = 0 ;
35091 std::string result;
35092
35093 if (!PyArg_UnpackTuple(args, "SearchMonitor___repr__", 1, 1, &obj0)) SWIG_fail;
35095 if (!SWIG_IsOK(res1)) {
35096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor___repr__" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
35097 }
35098 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
35099 {
35100 try {
35102 }
35103 catch (Swig::DirectorException &e) {
35104 SWIG_fail;
35105 }
35106 }
35107 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
35108 return resultobj;
35109fail:
35110 return NULL;
35111}
35112
35113
35114SWIGINTERN PyObject *_wrap_SearchMonitor___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35115 PyObject *resultobj = 0;
35117 void *argp1 = 0 ;
35118 int res1 = 0 ;
35119 PyObject * obj0 = 0 ;
35120 std::string result;
35121
35122 if (!PyArg_UnpackTuple(args, "SearchMonitor___str__", 1, 1, &obj0)) SWIG_fail;
35124 if (!SWIG_IsOK(res1)) {
35125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchMonitor___str__" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
35126 }
35127 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
35128 {
35129 try {
35131 }
35132 catch (Swig::DirectorException &e) {
35133 SWIG_fail;
35134 }
35135 }
35136 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
35137 return resultobj;
35138fail:
35139 return NULL;
35140}
35141
35142
35143SWIGINTERN PyObject *_wrap_disown_SearchMonitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35144 PyObject *resultobj = 0;
35146 void *argp1 = 0 ;
35147 int res1 = 0 ;
35148 PyObject * obj0 = 0 ;
35149
35150 if (!PyArg_UnpackTuple(args, "disown_SearchMonitor", 1, 1, &obj0)) SWIG_fail;
35152 if (!SWIG_IsOK(res1)) {
35153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_SearchMonitor" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
35154 }
35155 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
35156 {
35157 Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
35158 if (director) director->swig_disown();
35159 }
35160
35161 resultobj = SWIG_Py_Void();
35162 return resultobj;
35163fail:
35164 return NULL;
35165}
35166
35167
35168SWIGINTERN PyObject *SearchMonitor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35169 PyObject *obj;
35170 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
35172 return SWIG_Py_Void();
35173}
35174
35175SWIGINTERN PyObject *SearchMonitor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35176 return SWIG_Python_InitShadowInstance(args);
35177}
35178
35179SWIGINTERN PyObject *_wrap_IntExpr_Min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35180 PyObject *resultobj = 0;
35182 void *argp1 = 0 ;
35183 int res1 = 0 ;
35184 PyObject * obj0 = 0 ;
35185 int64_t result;
35186
35187 if (!PyArg_UnpackTuple(args, "IntExpr_Min", 1, 1, &obj0)) SWIG_fail;
35188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35189 if (!SWIG_IsOK(res1)) {
35190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_Min" "', argument " "1"" of type '" "operations_research::IntExpr const *""'");
35191 }
35192 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35193 {
35194 try {
35195 result = (int64_t)((operations_research::IntExpr const *)arg1)->Min();
35196 }
35197 catch (Swig::DirectorException &e) {
35198 SWIG_fail;
35199 }
35200 }
35201 resultobj = SWIG_From_long(static_cast< long >(result));
35202 return resultobj;
35203fail:
35204 return NULL;
35205}
35206
35207
35208SWIGINTERN PyObject *_wrap_IntExpr_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35209 PyObject *resultobj = 0;
35211 int64_t arg2 ;
35212 void *argp1 = 0 ;
35213 int res1 = 0 ;
35214 long val2 ;
35215 int ecode2 = 0 ;
35216 PyObject * obj0 = 0 ;
35217 PyObject * obj1 = 0 ;
35218
35219 if (!PyArg_UnpackTuple(args, "IntExpr_SetMin", 2, 2, &obj0, &obj1)) SWIG_fail;
35220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35221 if (!SWIG_IsOK(res1)) {
35222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_SetMin" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
35223 }
35224 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35225 ecode2 = SWIG_AsVal_long(obj1, &val2);
35226 if (!SWIG_IsOK(ecode2)) {
35227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr_SetMin" "', argument " "2"" of type '" "int64_t""'");
35228 }
35229 arg2 = static_cast< int64_t >(val2);
35230 {
35231 operations_research::Solver* const solver = arg1->solver();
35232 FailureProtect protect;
35233 solver->set_fail_intercept([&protect]() {
35234 protect.JumpBack();
35235 });
35236 if (setjmp(protect.exception_buffer) == 0) {
35237 (arg1)->SetMin(arg2);
35238 solver->clear_fail_intercept();
35239 } else {
35240 solver->clear_fail_intercept();
35241 // IMPORTANT: the type and message of the exception raised matter,
35242 // because they are caught by the python overrides of some CP classes.
35243 // See the occurrences of the "PyExc_Exception" string below.
35244 PyErr_SetString(PyExc_Exception, "CP Solver fail");
35245 SWIG_fail;
35246 }
35247 }
35248 resultobj = SWIG_Py_Void();
35249 return resultobj;
35250fail:
35251 return NULL;
35252}
35253
35254
35255SWIGINTERN PyObject *_wrap_IntExpr_Max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35256 PyObject *resultobj = 0;
35258 void *argp1 = 0 ;
35259 int res1 = 0 ;
35260 PyObject * obj0 = 0 ;
35261 int64_t result;
35262
35263 if (!PyArg_UnpackTuple(args, "IntExpr_Max", 1, 1, &obj0)) SWIG_fail;
35264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35265 if (!SWIG_IsOK(res1)) {
35266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_Max" "', argument " "1"" of type '" "operations_research::IntExpr const *""'");
35267 }
35268 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35269 {
35270 try {
35271 result = (int64_t)((operations_research::IntExpr const *)arg1)->Max();
35272 }
35273 catch (Swig::DirectorException &e) {
35274 SWIG_fail;
35275 }
35276 }
35277 resultobj = SWIG_From_long(static_cast< long >(result));
35278 return resultobj;
35279fail:
35280 return NULL;
35281}
35282
35283
35284SWIGINTERN PyObject *_wrap_IntExpr_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35285 PyObject *resultobj = 0;
35287 int64_t arg2 ;
35288 void *argp1 = 0 ;
35289 int res1 = 0 ;
35290 long val2 ;
35291 int ecode2 = 0 ;
35292 PyObject * obj0 = 0 ;
35293 PyObject * obj1 = 0 ;
35294
35295 if (!PyArg_UnpackTuple(args, "IntExpr_SetMax", 2, 2, &obj0, &obj1)) SWIG_fail;
35296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35297 if (!SWIG_IsOK(res1)) {
35298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_SetMax" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
35299 }
35300 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35301 ecode2 = SWIG_AsVal_long(obj1, &val2);
35302 if (!SWIG_IsOK(ecode2)) {
35303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr_SetMax" "', argument " "2"" of type '" "int64_t""'");
35304 }
35305 arg2 = static_cast< int64_t >(val2);
35306 {
35307 operations_research::Solver* const solver = arg1->solver();
35308 FailureProtect protect;
35309 solver->set_fail_intercept([&protect]() {
35310 protect.JumpBack();
35311 });
35312 if (setjmp(protect.exception_buffer) == 0) {
35313 (arg1)->SetMax(arg2);
35314 solver->clear_fail_intercept();
35315 } else {
35316 solver->clear_fail_intercept();
35317 // IMPORTANT: the type and message of the exception raised matter,
35318 // because they are caught by the python overrides of some CP classes.
35319 // See the occurrences of the "PyExc_Exception" string below.
35320 PyErr_SetString(PyExc_Exception, "CP Solver fail");
35321 SWIG_fail;
35322 }
35323 }
35324 resultobj = SWIG_Py_Void();
35325 return resultobj;
35326fail:
35327 return NULL;
35328}
35329
35330
35331SWIGINTERN PyObject *_wrap_IntExpr_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35332 PyObject *resultobj = 0;
35334 int64_t arg2 ;
35335 int64_t arg3 ;
35336 void *argp1 = 0 ;
35337 int res1 = 0 ;
35338 long val2 ;
35339 int ecode2 = 0 ;
35340 long val3 ;
35341 int ecode3 = 0 ;
35342 PyObject * obj0 = 0 ;
35343 PyObject * obj1 = 0 ;
35344 PyObject * obj2 = 0 ;
35345
35346 if (!PyArg_UnpackTuple(args, "IntExpr_SetRange", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
35347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35348 if (!SWIG_IsOK(res1)) {
35349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_SetRange" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
35350 }
35351 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35352 ecode2 = SWIG_AsVal_long(obj1, &val2);
35353 if (!SWIG_IsOK(ecode2)) {
35354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr_SetRange" "', argument " "2"" of type '" "int64_t""'");
35355 }
35356 arg2 = static_cast< int64_t >(val2);
35357 ecode3 = SWIG_AsVal_long(obj2, &val3);
35358 if (!SWIG_IsOK(ecode3)) {
35359 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntExpr_SetRange" "', argument " "3"" of type '" "int64_t""'");
35360 }
35361 arg3 = static_cast< int64_t >(val3);
35362 {
35363 operations_research::Solver* const solver = arg1->solver();
35364 FailureProtect protect;
35365 solver->set_fail_intercept([&protect]() {
35366 protect.JumpBack();
35367 });
35368 if (setjmp(protect.exception_buffer) == 0) {
35369 (arg1)->SetRange(arg2,arg3);
35370 solver->clear_fail_intercept();
35371 } else {
35372 solver->clear_fail_intercept();
35373 // IMPORTANT: the type and message of the exception raised matter,
35374 // because they are caught by the python overrides of some CP classes.
35375 // See the occurrences of the "PyExc_Exception" string below.
35376 PyErr_SetString(PyExc_Exception, "CP Solver fail");
35377 SWIG_fail;
35378 }
35379 }
35380 resultobj = SWIG_Py_Void();
35381 return resultobj;
35382fail:
35383 return NULL;
35384}
35385
35386
35387SWIGINTERN PyObject *_wrap_IntExpr_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35388 PyObject *resultobj = 0;
35390 int64_t arg2 ;
35391 void *argp1 = 0 ;
35392 int res1 = 0 ;
35393 long val2 ;
35394 int ecode2 = 0 ;
35395 PyObject * obj0 = 0 ;
35396 PyObject * obj1 = 0 ;
35397
35398 if (!PyArg_UnpackTuple(args, "IntExpr_SetValue", 2, 2, &obj0, &obj1)) SWIG_fail;
35399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35400 if (!SWIG_IsOK(res1)) {
35401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_SetValue" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
35402 }
35403 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35404 ecode2 = SWIG_AsVal_long(obj1, &val2);
35405 if (!SWIG_IsOK(ecode2)) {
35406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr_SetValue" "', argument " "2"" of type '" "int64_t""'");
35407 }
35408 arg2 = static_cast< int64_t >(val2);
35409 {
35410 operations_research::Solver* const solver = arg1->solver();
35411 FailureProtect protect;
35412 solver->set_fail_intercept([&protect]() {
35413 protect.JumpBack();
35414 });
35415 if (setjmp(protect.exception_buffer) == 0) {
35416 (arg1)->SetValue(arg2);
35417 solver->clear_fail_intercept();
35418 } else {
35419 solver->clear_fail_intercept();
35420 // IMPORTANT: the type and message of the exception raised matter,
35421 // because they are caught by the python overrides of some CP classes.
35422 // See the occurrences of the "PyExc_Exception" string below.
35423 PyErr_SetString(PyExc_Exception, "CP Solver fail");
35424 SWIG_fail;
35425 }
35426 }
35427 resultobj = SWIG_Py_Void();
35428 return resultobj;
35429fail:
35430 return NULL;
35431}
35432
35433
35434SWIGINTERN PyObject *_wrap_IntExpr_Bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35435 PyObject *resultobj = 0;
35437 void *argp1 = 0 ;
35438 int res1 = 0 ;
35439 PyObject * obj0 = 0 ;
35440 bool result;
35441
35442 if (!PyArg_UnpackTuple(args, "IntExpr_Bound", 1, 1, &obj0)) SWIG_fail;
35443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35444 if (!SWIG_IsOK(res1)) {
35445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_Bound" "', argument " "1"" of type '" "operations_research::IntExpr const *""'");
35446 }
35447 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35448 {
35449 try {
35450 result = (bool)((operations_research::IntExpr const *)arg1)->Bound();
35451 }
35452 catch (Swig::DirectorException &e) {
35453 SWIG_fail;
35454 }
35455 }
35456 resultobj = SWIG_From_bool(static_cast< bool >(result));
35457 return resultobj;
35458fail:
35459 return NULL;
35460}
35461
35462
35463SWIGINTERN PyObject *_wrap_IntExpr_IsVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35464 PyObject *resultobj = 0;
35466 void *argp1 = 0 ;
35467 int res1 = 0 ;
35468 PyObject * obj0 = 0 ;
35469 bool result;
35470
35471 if (!PyArg_UnpackTuple(args, "IntExpr_IsVar", 1, 1, &obj0)) SWIG_fail;
35472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35473 if (!SWIG_IsOK(res1)) {
35474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_IsVar" "', argument " "1"" of type '" "operations_research::IntExpr const *""'");
35475 }
35476 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35477 {
35478 try {
35479 result = (bool)((operations_research::IntExpr const *)arg1)->IsVar();
35480 }
35481 catch (Swig::DirectorException &e) {
35482 SWIG_fail;
35483 }
35484 }
35485 resultobj = SWIG_From_bool(static_cast< bool >(result));
35486 return resultobj;
35487fail:
35488 return NULL;
35489}
35490
35491
35492SWIGINTERN PyObject *_wrap_IntExpr_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35493 PyObject *resultobj = 0;
35495 void *argp1 = 0 ;
35496 int res1 = 0 ;
35497 PyObject * obj0 = 0 ;
35498 operations_research::IntVar *result = 0 ;
35499
35500 if (!PyArg_UnpackTuple(args, "IntExpr_Var", 1, 1, &obj0)) SWIG_fail;
35501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35502 if (!SWIG_IsOK(res1)) {
35503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_Var" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
35504 }
35505 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35506 {
35507 try {
35508 result = (operations_research::IntVar *)(arg1)->Var();
35509 }
35510 catch (Swig::DirectorException &e) {
35511 SWIG_fail;
35512 }
35513 }
35515 return resultobj;
35516fail:
35517 return NULL;
35518}
35519
35520
35521SWIGINTERN PyObject *_wrap_IntExpr_VarWithName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35522 PyObject *resultobj = 0;
35524 std::string *arg2 = 0 ;
35525 void *argp1 = 0 ;
35526 int res1 = 0 ;
35527 int res2 = SWIG_OLDOBJ ;
35528 PyObject * obj0 = 0 ;
35529 PyObject * obj1 = 0 ;
35530 operations_research::IntVar *result = 0 ;
35531
35532 if (!PyArg_UnpackTuple(args, "IntExpr_VarWithName", 2, 2, &obj0, &obj1)) SWIG_fail;
35533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35534 if (!SWIG_IsOK(res1)) {
35535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_VarWithName" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
35536 }
35537 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35538 {
35539 std::string *ptr = (std::string *)0;
35540 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
35541 if (!SWIG_IsOK(res2)) {
35542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr_VarWithName" "', argument " "2"" of type '" "std::string const &""'");
35543 }
35544 if (!ptr) {
35545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntExpr_VarWithName" "', argument " "2"" of type '" "std::string const &""'");
35546 }
35547 arg2 = ptr;
35548 }
35549 {
35550 try {
35551 result = (operations_research::IntVar *)(arg1)->VarWithName((std::string const &)*arg2);
35552 }
35553 catch (Swig::DirectorException &e) {
35554 SWIG_fail;
35555 }
35556 }
35558 if (SWIG_IsNewObj(res2)) delete arg2;
35559 return resultobj;
35560fail:
35561 if (SWIG_IsNewObj(res2)) delete arg2;
35562 return NULL;
35563}
35564
35565
35566SWIGINTERN PyObject *_wrap_IntExpr_WhenRange__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35567 PyObject *resultobj = 0;
35570 void *argp1 = 0 ;
35571 int res1 = 0 ;
35572 void *argp2 = 0 ;
35573 int res2 = 0 ;
35574 PyObject * obj0 = 0 ;
35575 PyObject * obj1 = 0 ;
35576
35577 if (!PyArg_UnpackTuple(args, "IntExpr_WhenRange", 2, 2, &obj0, &obj1)) SWIG_fail;
35578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35579 if (!SWIG_IsOK(res1)) {
35580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_WhenRange" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
35581 }
35582 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35583 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
35584 if (!SWIG_IsOK(res2)) {
35585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr_WhenRange" "', argument " "2"" of type '" "operations_research::Demon *""'");
35586 }
35587 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
35588 {
35589 try {
35590 (arg1)->WhenRange(arg2);
35591 }
35592 catch (Swig::DirectorException &e) {
35593 SWIG_fail;
35594 }
35595 }
35596 resultobj = SWIG_Py_Void();
35597 return resultobj;
35598fail:
35599 return NULL;
35600}
35601
35602
35603SWIGINTERN PyObject *_wrap_IntExpr_WhenRange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35604 PyObject *resultobj = 0;
35607 void *argp1 = 0 ;
35608 int res1 = 0 ;
35609 PyObject * obj0 = 0 ;
35610 PyObject * obj1 = 0 ;
35611
35612 if (!PyArg_UnpackTuple(args, "IntExpr_WhenRange", 2, 2, &obj0, &obj1)) SWIG_fail;
35613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35614 if (!SWIG_IsOK(res1)) {
35615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_WhenRange" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
35616 }
35617 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35618 {
35619 SharedPyPtr input(obj1);
35620 arg2 = [input]() {
35621 return InvokePythonCallableReturning<void>(input.get());
35622 };
35623 }
35624 {
35625 try {
35626 (arg1)->WhenRange(arg2);
35627 }
35628 catch (Swig::DirectorException &e) {
35629 SWIG_fail;
35630 }
35631 }
35632 resultobj = SWIG_Py_Void();
35633 return resultobj;
35634fail:
35635 return NULL;
35636}
35637
35638
35639SWIGINTERN PyObject *_wrap_IntExpr_WhenRange(PyObject *self, PyObject *args) {
35640 Py_ssize_t argc;
35641 PyObject *argv[3] = {
35642 0
35643 };
35644 Py_ssize_t ii;
35645
35646 if (!PyTuple_Check(args)) SWIG_fail;
35647 argc = PyObject_Length(args);
35648 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
35649 argv[ii] = PyTuple_GET_ITEM(args,ii);
35650 }
35651 if (argc == 2) {
35652 int _v;
35653 void *vptr = 0;
35654 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
35655 _v = SWIG_CheckState(res);
35656 if (_v) {
35657 void *vptr = 0;
35658 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Demon, 0);
35659 _v = SWIG_CheckState(res);
35660 if (_v) {
35661 return _wrap_IntExpr_WhenRange__SWIG_0(self, args);
35662 }
35663 }
35664 }
35665 if (argc == 2) {
35666 int _v;
35667 void *vptr = 0;
35668 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
35669 _v = SWIG_CheckState(res);
35670 if (_v) {
35671 {
35672 _v = PyCallable_Check(argv[1]);
35673 }
35674 if (_v) {
35675 return _wrap_IntExpr_WhenRange__SWIG_1(self, args);
35676 }
35677 }
35678 }
35679
35680fail:
35681 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntExpr_WhenRange'.\n"
35682 " Possible C/C++ prototypes are:\n"
35683 " operations_research::IntExpr::WhenRange(operations_research::Demon *)\n"
35684 " operations_research::IntExpr::WhenRange(operations_research::Solver::Closure)\n");
35685 return 0;
35686}
35687
35688
35689SWIGINTERN PyObject *_wrap_IntExpr___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35690 PyObject *resultobj = 0;
35692 void *argp1 = 0 ;
35693 int res1 = 0 ;
35694 PyObject * obj0 = 0 ;
35695 std::string result;
35696
35697 if (!PyArg_UnpackTuple(args, "IntExpr___repr__", 1, 1, &obj0)) SWIG_fail;
35698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35699 if (!SWIG_IsOK(res1)) {
35700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___repr__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
35701 }
35702 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35703 {
35704 try {
35706 }
35707 catch (Swig::DirectorException &e) {
35708 SWIG_fail;
35709 }
35710 }
35711 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
35712 return resultobj;
35713fail:
35714 return NULL;
35715}
35716
35717
35718SWIGINTERN PyObject *_wrap_IntExpr___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35719 PyObject *resultobj = 0;
35721 void *argp1 = 0 ;
35722 int res1 = 0 ;
35723 PyObject * obj0 = 0 ;
35724 std::string result;
35725
35726 if (!PyArg_UnpackTuple(args, "IntExpr___str__", 1, 1, &obj0)) SWIG_fail;
35727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35728 if (!SWIG_IsOK(res1)) {
35729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___str__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
35730 }
35731 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35732 {
35733 try {
35735 }
35736 catch (Swig::DirectorException &e) {
35737 SWIG_fail;
35738 }
35739 }
35740 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
35741 return resultobj;
35742fail:
35743 return NULL;
35744}
35745
35746
35747SWIGINTERN PyObject *_wrap_IntExpr___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35748 PyObject *resultobj = 0;
35751 void *argp1 = 0 ;
35752 int res1 = 0 ;
35753 void *argp2 = 0 ;
35754 int res2 = 0 ;
35755 PyObject * obj0 = 0 ;
35756 PyObject * obj1 = 0 ;
35757 operations_research::IntExpr *result = 0 ;
35758
35759 if (!PyArg_UnpackTuple(args, "IntExpr___add__", 2, 2, &obj0, &obj1)) SWIG_fail;
35760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35761 if (!SWIG_IsOK(res1)) {
35762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___add__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
35763 }
35764 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35765 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35766 if (!SWIG_IsOK(res2)) {
35767 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___add__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
35768 }
35769 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
35770 {
35771 try {
35773 }
35774 catch (Swig::DirectorException &e) {
35775 SWIG_fail;
35776 }
35777 }
35779 return resultobj;
35780fail:
35781 PyErr_Clear();
35782 Py_INCREF(Py_NotImplemented);
35783 return Py_NotImplemented;
35784}
35785
35786
35787SWIGINTERN PyObject *_wrap_IntExpr___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35788 PyObject *resultobj = 0;
35791 void *argp1 = 0 ;
35792 int res1 = 0 ;
35793 void *argp2 = 0 ;
35794 int res2 = 0 ;
35795 PyObject * obj0 = 0 ;
35796 PyObject * obj1 = 0 ;
35797 operations_research::IntExpr *result = 0 ;
35798
35799 if (!PyArg_UnpackTuple(args, "IntExpr___add__", 2, 2, &obj0, &obj1)) SWIG_fail;
35800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35801 if (!SWIG_IsOK(res1)) {
35802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___add__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
35803 }
35804 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35806 if (!SWIG_IsOK(res2)) {
35807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___add__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
35808 }
35809 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
35810 {
35811 try {
35813 }
35814 catch (Swig::DirectorException &e) {
35815 SWIG_fail;
35816 }
35817 }
35819 return resultobj;
35820fail:
35821 PyErr_Clear();
35822 Py_INCREF(Py_NotImplemented);
35823 return Py_NotImplemented;
35824}
35825
35826
35827SWIGINTERN PyObject *_wrap_IntExpr___add____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35828 PyObject *resultobj = 0;
35830 int64_t arg2 ;
35831 void *argp1 = 0 ;
35832 int res1 = 0 ;
35833 long val2 ;
35834 int ecode2 = 0 ;
35835 PyObject * obj0 = 0 ;
35836 PyObject * obj1 = 0 ;
35837 operations_research::IntExpr *result = 0 ;
35838
35839 if (!PyArg_UnpackTuple(args, "IntExpr___add__", 2, 2, &obj0, &obj1)) SWIG_fail;
35840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35841 if (!SWIG_IsOK(res1)) {
35842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___add__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
35843 }
35844 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35845 ecode2 = SWIG_AsVal_long(obj1, &val2);
35846 if (!SWIG_IsOK(ecode2)) {
35847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr___add__" "', argument " "2"" of type '" "int64_t""'");
35848 }
35849 arg2 = static_cast< int64_t >(val2);
35850 {
35851 try {
35853 }
35854 catch (Swig::DirectorException &e) {
35855 SWIG_fail;
35856 }
35857 }
35859 return resultobj;
35860fail:
35861 PyErr_Clear();
35862 Py_INCREF(Py_NotImplemented);
35863 return Py_NotImplemented;
35864}
35865
35866
35867SWIGINTERN PyObject *_wrap_IntExpr___add__(PyObject *self, PyObject *args) {
35868 Py_ssize_t argc;
35869 PyObject *argv[3] = {
35870 0
35871 };
35872 Py_ssize_t ii;
35873
35874 if (!PyTuple_Check(args)) SWIG_fail;
35875 argc = PyObject_Length(args);
35876 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
35877 argv[ii] = PyTuple_GET_ITEM(args,ii);
35878 }
35879 if (argc == 2) {
35880 int _v;
35881 void *vptr = 0;
35882 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
35883 _v = SWIG_CheckState(res);
35884 if (_v) {
35885 void *vptr = 0;
35886 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
35887 _v = SWIG_CheckState(res);
35888 if (_v) {
35889 return _wrap_IntExpr___add____SWIG_0(self, args);
35890 }
35891 }
35892 }
35893 if (argc == 2) {
35894 int _v;
35895 void *vptr = 0;
35896 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
35897 _v = SWIG_CheckState(res);
35898 if (_v) {
35899 void *vptr = 0;
35900 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
35901 _v = SWIG_CheckState(res);
35902 if (_v) {
35903 return _wrap_IntExpr___add____SWIG_1(self, args);
35904 }
35905 }
35906 }
35907 if (argc == 2) {
35908 int _v;
35909 void *vptr = 0;
35910 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
35911 _v = SWIG_CheckState(res);
35912 if (_v) {
35913 {
35914 int res = SWIG_AsVal_long(argv[1], NULL);
35915 _v = SWIG_CheckState(res);
35916 }
35917 if (_v) {
35918 return _wrap_IntExpr___add____SWIG_2(self, args);
35919 }
35920 }
35921 }
35922
35923fail:
35924 Py_INCREF(Py_NotImplemented);
35925 return Py_NotImplemented;
35926}
35927
35928
35929SWIGINTERN PyObject *_wrap_IntExpr___radd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35930 PyObject *resultobj = 0;
35932 int64_t arg2 ;
35933 void *argp1 = 0 ;
35934 int res1 = 0 ;
35935 long val2 ;
35936 int ecode2 = 0 ;
35937 PyObject * obj0 = 0 ;
35938 PyObject * obj1 = 0 ;
35939 operations_research::IntExpr *result = 0 ;
35940
35941 if (!PyArg_UnpackTuple(args, "IntExpr___radd__", 2, 2, &obj0, &obj1)) SWIG_fail;
35942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35943 if (!SWIG_IsOK(res1)) {
35944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___radd__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
35945 }
35946 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35947 ecode2 = SWIG_AsVal_long(obj1, &val2);
35948 if (!SWIG_IsOK(ecode2)) {
35949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr___radd__" "', argument " "2"" of type '" "int64_t""'");
35950 }
35951 arg2 = static_cast< int64_t >(val2);
35952 {
35953 try {
35955 }
35956 catch (Swig::DirectorException &e) {
35957 SWIG_fail;
35958 }
35959 }
35961 return resultobj;
35962fail:
35963 PyErr_Clear();
35964 Py_INCREF(Py_NotImplemented);
35965 return Py_NotImplemented;
35966}
35967
35968
35969SWIGINTERN PyObject *_wrap_IntExpr___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35970 PyObject *resultobj = 0;
35973 void *argp1 = 0 ;
35974 int res1 = 0 ;
35975 void *argp2 = 0 ;
35976 int res2 = 0 ;
35977 PyObject * obj0 = 0 ;
35978 PyObject * obj1 = 0 ;
35979 operations_research::IntExpr *result = 0 ;
35980
35981 if (!PyArg_UnpackTuple(args, "IntExpr___sub__", 2, 2, &obj0, &obj1)) SWIG_fail;
35982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35983 if (!SWIG_IsOK(res1)) {
35984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___sub__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
35985 }
35986 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35987 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
35988 if (!SWIG_IsOK(res2)) {
35989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___sub__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
35990 }
35991 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
35992 {
35993 try {
35995 }
35996 catch (Swig::DirectorException &e) {
35997 SWIG_fail;
35998 }
35999 }
36001 return resultobj;
36002fail:
36003 PyErr_Clear();
36004 Py_INCREF(Py_NotImplemented);
36005 return Py_NotImplemented;
36006}
36007
36008
36009SWIGINTERN PyObject *_wrap_IntExpr___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36010 PyObject *resultobj = 0;
36013 void *argp1 = 0 ;
36014 int res1 = 0 ;
36015 void *argp2 = 0 ;
36016 int res2 = 0 ;
36017 PyObject * obj0 = 0 ;
36018 PyObject * obj1 = 0 ;
36019 operations_research::IntExpr *result = 0 ;
36020
36021 if (!PyArg_UnpackTuple(args, "IntExpr___sub__", 2, 2, &obj0, &obj1)) SWIG_fail;
36022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36023 if (!SWIG_IsOK(res1)) {
36024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___sub__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36025 }
36026 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36028 if (!SWIG_IsOK(res2)) {
36029 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___sub__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
36030 }
36031 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
36032 {
36033 try {
36035 }
36036 catch (Swig::DirectorException &e) {
36037 SWIG_fail;
36038 }
36039 }
36041 return resultobj;
36042fail:
36043 PyErr_Clear();
36044 Py_INCREF(Py_NotImplemented);
36045 return Py_NotImplemented;
36046}
36047
36048
36049SWIGINTERN PyObject *_wrap_IntExpr___sub____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36050 PyObject *resultobj = 0;
36052 int64_t arg2 ;
36053 void *argp1 = 0 ;
36054 int res1 = 0 ;
36055 long val2 ;
36056 int ecode2 = 0 ;
36057 PyObject * obj0 = 0 ;
36058 PyObject * obj1 = 0 ;
36059 operations_research::IntExpr *result = 0 ;
36060
36061 if (!PyArg_UnpackTuple(args, "IntExpr___sub__", 2, 2, &obj0, &obj1)) SWIG_fail;
36062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36063 if (!SWIG_IsOK(res1)) {
36064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___sub__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36065 }
36066 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36067 ecode2 = SWIG_AsVal_long(obj1, &val2);
36068 if (!SWIG_IsOK(ecode2)) {
36069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr___sub__" "', argument " "2"" of type '" "int64_t""'");
36070 }
36071 arg2 = static_cast< int64_t >(val2);
36072 {
36073 try {
36075 }
36076 catch (Swig::DirectorException &e) {
36077 SWIG_fail;
36078 }
36079 }
36081 return resultobj;
36082fail:
36083 PyErr_Clear();
36084 Py_INCREF(Py_NotImplemented);
36085 return Py_NotImplemented;
36086}
36087
36088
36089SWIGINTERN PyObject *_wrap_IntExpr___sub__(PyObject *self, PyObject *args) {
36090 Py_ssize_t argc;
36091 PyObject *argv[3] = {
36092 0
36093 };
36094 Py_ssize_t ii;
36095
36096 if (!PyTuple_Check(args)) SWIG_fail;
36097 argc = PyObject_Length(args);
36098 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
36099 argv[ii] = PyTuple_GET_ITEM(args,ii);
36100 }
36101 if (argc == 2) {
36102 int _v;
36103 void *vptr = 0;
36104 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
36105 _v = SWIG_CheckState(res);
36106 if (_v) {
36107 void *vptr = 0;
36108 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
36109 _v = SWIG_CheckState(res);
36110 if (_v) {
36111 return _wrap_IntExpr___sub____SWIG_0(self, args);
36112 }
36113 }
36114 }
36115 if (argc == 2) {
36116 int _v;
36117 void *vptr = 0;
36118 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
36119 _v = SWIG_CheckState(res);
36120 if (_v) {
36121 void *vptr = 0;
36122 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
36123 _v = SWIG_CheckState(res);
36124 if (_v) {
36125 return _wrap_IntExpr___sub____SWIG_1(self, args);
36126 }
36127 }
36128 }
36129 if (argc == 2) {
36130 int _v;
36131 void *vptr = 0;
36132 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
36133 _v = SWIG_CheckState(res);
36134 if (_v) {
36135 {
36136 int res = SWIG_AsVal_long(argv[1], NULL);
36137 _v = SWIG_CheckState(res);
36138 }
36139 if (_v) {
36140 return _wrap_IntExpr___sub____SWIG_2(self, args);
36141 }
36142 }
36143 }
36144
36145fail:
36146 Py_INCREF(Py_NotImplemented);
36147 return Py_NotImplemented;
36148}
36149
36150
36151SWIGINTERN PyObject *_wrap_IntExpr___rsub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36152 PyObject *resultobj = 0;
36154 int64_t arg2 ;
36155 void *argp1 = 0 ;
36156 int res1 = 0 ;
36157 long val2 ;
36158 int ecode2 = 0 ;
36159 PyObject * obj0 = 0 ;
36160 PyObject * obj1 = 0 ;
36161 operations_research::IntExpr *result = 0 ;
36162
36163 if (!PyArg_UnpackTuple(args, "IntExpr___rsub__", 2, 2, &obj0, &obj1)) SWIG_fail;
36164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36165 if (!SWIG_IsOK(res1)) {
36166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___rsub__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36167 }
36168 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36169 ecode2 = SWIG_AsVal_long(obj1, &val2);
36170 if (!SWIG_IsOK(ecode2)) {
36171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr___rsub__" "', argument " "2"" of type '" "int64_t""'");
36172 }
36173 arg2 = static_cast< int64_t >(val2);
36174 {
36175 try {
36177 }
36178 catch (Swig::DirectorException &e) {
36179 SWIG_fail;
36180 }
36181 }
36183 return resultobj;
36184fail:
36185 PyErr_Clear();
36186 Py_INCREF(Py_NotImplemented);
36187 return Py_NotImplemented;
36188}
36189
36190
36191SWIGINTERN PyObject *_wrap_IntExpr___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36192 PyObject *resultobj = 0;
36195 void *argp1 = 0 ;
36196 int res1 = 0 ;
36197 void *argp2 = 0 ;
36198 int res2 = 0 ;
36199 PyObject * obj0 = 0 ;
36200 PyObject * obj1 = 0 ;
36201 operations_research::IntExpr *result = 0 ;
36202
36203 if (!PyArg_UnpackTuple(args, "IntExpr___mul__", 2, 2, &obj0, &obj1)) SWIG_fail;
36204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36205 if (!SWIG_IsOK(res1)) {
36206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___mul__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36207 }
36208 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36209 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36210 if (!SWIG_IsOK(res2)) {
36211 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___mul__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
36212 }
36213 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
36214 {
36215 try {
36217 }
36218 catch (Swig::DirectorException &e) {
36219 SWIG_fail;
36220 }
36221 }
36223 return resultobj;
36224fail:
36225 PyErr_Clear();
36226 Py_INCREF(Py_NotImplemented);
36227 return Py_NotImplemented;
36228}
36229
36230
36231SWIGINTERN PyObject *_wrap_IntExpr___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36232 PyObject *resultobj = 0;
36235 void *argp1 = 0 ;
36236 int res1 = 0 ;
36237 void *argp2 = 0 ;
36238 int res2 = 0 ;
36239 PyObject * obj0 = 0 ;
36240 PyObject * obj1 = 0 ;
36241 operations_research::IntExpr *result = 0 ;
36242
36243 if (!PyArg_UnpackTuple(args, "IntExpr___mul__", 2, 2, &obj0, &obj1)) SWIG_fail;
36244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36245 if (!SWIG_IsOK(res1)) {
36246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___mul__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36247 }
36248 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36250 if (!SWIG_IsOK(res2)) {
36251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___mul__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
36252 }
36253 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
36254 {
36255 try {
36257 }
36258 catch (Swig::DirectorException &e) {
36259 SWIG_fail;
36260 }
36261 }
36263 return resultobj;
36264fail:
36265 PyErr_Clear();
36266 Py_INCREF(Py_NotImplemented);
36267 return Py_NotImplemented;
36268}
36269
36270
36271SWIGINTERN PyObject *_wrap_IntExpr___mul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36272 PyObject *resultobj = 0;
36274 int64_t arg2 ;
36275 void *argp1 = 0 ;
36276 int res1 = 0 ;
36277 long val2 ;
36278 int ecode2 = 0 ;
36279 PyObject * obj0 = 0 ;
36280 PyObject * obj1 = 0 ;
36281 operations_research::IntExpr *result = 0 ;
36282
36283 if (!PyArg_UnpackTuple(args, "IntExpr___mul__", 2, 2, &obj0, &obj1)) SWIG_fail;
36284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36285 if (!SWIG_IsOK(res1)) {
36286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___mul__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36287 }
36288 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36289 ecode2 = SWIG_AsVal_long(obj1, &val2);
36290 if (!SWIG_IsOK(ecode2)) {
36291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr___mul__" "', argument " "2"" of type '" "int64_t""'");
36292 }
36293 arg2 = static_cast< int64_t >(val2);
36294 {
36295 try {
36297 }
36298 catch (Swig::DirectorException &e) {
36299 SWIG_fail;
36300 }
36301 }
36303 return resultobj;
36304fail:
36305 PyErr_Clear();
36306 Py_INCREF(Py_NotImplemented);
36307 return Py_NotImplemented;
36308}
36309
36310
36311SWIGINTERN PyObject *_wrap_IntExpr___mul__(PyObject *self, PyObject *args) {
36312 Py_ssize_t argc;
36313 PyObject *argv[3] = {
36314 0
36315 };
36316 Py_ssize_t ii;
36317
36318 if (!PyTuple_Check(args)) SWIG_fail;
36319 argc = PyObject_Length(args);
36320 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
36321 argv[ii] = PyTuple_GET_ITEM(args,ii);
36322 }
36323 if (argc == 2) {
36324 int _v;
36325 void *vptr = 0;
36326 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
36327 _v = SWIG_CheckState(res);
36328 if (_v) {
36329 void *vptr = 0;
36330 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
36331 _v = SWIG_CheckState(res);
36332 if (_v) {
36333 return _wrap_IntExpr___mul____SWIG_0(self, args);
36334 }
36335 }
36336 }
36337 if (argc == 2) {
36338 int _v;
36339 void *vptr = 0;
36340 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
36341 _v = SWIG_CheckState(res);
36342 if (_v) {
36343 void *vptr = 0;
36344 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
36345 _v = SWIG_CheckState(res);
36346 if (_v) {
36347 return _wrap_IntExpr___mul____SWIG_1(self, args);
36348 }
36349 }
36350 }
36351 if (argc == 2) {
36352 int _v;
36353 void *vptr = 0;
36354 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
36355 _v = SWIG_CheckState(res);
36356 if (_v) {
36357 {
36358 int res = SWIG_AsVal_long(argv[1], NULL);
36359 _v = SWIG_CheckState(res);
36360 }
36361 if (_v) {
36362 return _wrap_IntExpr___mul____SWIG_2(self, args);
36363 }
36364 }
36365 }
36366
36367fail:
36368 Py_INCREF(Py_NotImplemented);
36369 return Py_NotImplemented;
36370}
36371
36372
36373SWIGINTERN PyObject *_wrap_IntExpr___rmul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36374 PyObject *resultobj = 0;
36376 int64_t arg2 ;
36377 void *argp1 = 0 ;
36378 int res1 = 0 ;
36379 long val2 ;
36380 int ecode2 = 0 ;
36381 PyObject * obj0 = 0 ;
36382 PyObject * obj1 = 0 ;
36383 operations_research::IntExpr *result = 0 ;
36384
36385 if (!PyArg_UnpackTuple(args, "IntExpr___rmul__", 2, 2, &obj0, &obj1)) SWIG_fail;
36386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36387 if (!SWIG_IsOK(res1)) {
36388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___rmul__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36389 }
36390 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36391 ecode2 = SWIG_AsVal_long(obj1, &val2);
36392 if (!SWIG_IsOK(ecode2)) {
36393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr___rmul__" "', argument " "2"" of type '" "int64_t""'");
36394 }
36395 arg2 = static_cast< int64_t >(val2);
36396 {
36397 try {
36399 }
36400 catch (Swig::DirectorException &e) {
36401 SWIG_fail;
36402 }
36403 }
36405 return resultobj;
36406fail:
36407 PyErr_Clear();
36408 Py_INCREF(Py_NotImplemented);
36409 return Py_NotImplemented;
36410}
36411
36412
36413SWIGINTERN PyObject *_wrap_IntExpr___floordiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36414 PyObject *resultobj = 0;
36416 int64_t arg2 ;
36417 void *argp1 = 0 ;
36418 int res1 = 0 ;
36419 long val2 ;
36420 int ecode2 = 0 ;
36421 PyObject * obj0 = 0 ;
36422 PyObject * obj1 = 0 ;
36423 operations_research::IntExpr *result = 0 ;
36424
36425 if (!PyArg_UnpackTuple(args, "IntExpr___floordiv__", 2, 2, &obj0, &obj1)) SWIG_fail;
36426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36427 if (!SWIG_IsOK(res1)) {
36428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___floordiv__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36429 }
36430 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36431 ecode2 = SWIG_AsVal_long(obj1, &val2);
36432 if (!SWIG_IsOK(ecode2)) {
36433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr___floordiv__" "', argument " "2"" of type '" "int64_t""'");
36434 }
36435 arg2 = static_cast< int64_t >(val2);
36436 {
36437 try {
36439 }
36440 catch (Swig::DirectorException &e) {
36441 SWIG_fail;
36442 }
36443 }
36445 return resultobj;
36446fail:
36447 return NULL;
36448}
36449
36450
36451SWIGINTERN PyObject *_wrap_IntExpr___floordiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36452 PyObject *resultobj = 0;
36455 void *argp1 = 0 ;
36456 int res1 = 0 ;
36457 void *argp2 = 0 ;
36458 int res2 = 0 ;
36459 PyObject * obj0 = 0 ;
36460 PyObject * obj1 = 0 ;
36461 operations_research::IntExpr *result = 0 ;
36462
36463 if (!PyArg_UnpackTuple(args, "IntExpr___floordiv__", 2, 2, &obj0, &obj1)) SWIG_fail;
36464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36465 if (!SWIG_IsOK(res1)) {
36466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___floordiv__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36467 }
36468 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36469 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36470 if (!SWIG_IsOK(res2)) {
36471 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___floordiv__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
36472 }
36473 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
36474 {
36475 try {
36477 }
36478 catch (Swig::DirectorException &e) {
36479 SWIG_fail;
36480 }
36481 }
36483 return resultobj;
36484fail:
36485 return NULL;
36486}
36487
36488
36489SWIGINTERN PyObject *_wrap_IntExpr___floordiv__(PyObject *self, PyObject *args) {
36490 Py_ssize_t argc;
36491 PyObject *argv[3] = {
36492 0
36493 };
36494 Py_ssize_t ii;
36495
36496 if (!PyTuple_Check(args)) SWIG_fail;
36497 argc = PyObject_Length(args);
36498 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
36499 argv[ii] = PyTuple_GET_ITEM(args,ii);
36500 }
36501 if (argc == 2) {
36502 int _v;
36503 void *vptr = 0;
36504 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
36505 _v = SWIG_CheckState(res);
36506 if (_v) {
36507 void *vptr = 0;
36508 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
36509 _v = SWIG_CheckState(res);
36510 if (_v) {
36511 return _wrap_IntExpr___floordiv____SWIG_1(self, args);
36512 }
36513 }
36514 }
36515 if (argc == 2) {
36516 int _v;
36517 void *vptr = 0;
36518 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
36519 _v = SWIG_CheckState(res);
36520 if (_v) {
36521 {
36522 int res = SWIG_AsVal_long(argv[1], NULL);
36523 _v = SWIG_CheckState(res);
36524 }
36525 if (_v) {
36526 return _wrap_IntExpr___floordiv____SWIG_0(self, args);
36527 }
36528 }
36529 }
36530
36531fail:
36532 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntExpr___floordiv__'.\n"
36533 " Possible C/C++ prototypes are:\n"
36534 " operations_research::IntExpr::__floordiv__(int64_t)\n"
36535 " operations_research::IntExpr::__floordiv__(operations_research::IntExpr *)\n");
36536 return 0;
36537}
36538
36539
36540SWIGINTERN PyObject *_wrap_IntExpr___mod____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36541 PyObject *resultobj = 0;
36543 int64_t arg2 ;
36544 void *argp1 = 0 ;
36545 int res1 = 0 ;
36546 long val2 ;
36547 int ecode2 = 0 ;
36548 PyObject * obj0 = 0 ;
36549 PyObject * obj1 = 0 ;
36550 operations_research::IntExpr *result = 0 ;
36551
36552 if (!PyArg_UnpackTuple(args, "IntExpr___mod__", 2, 2, &obj0, &obj1)) SWIG_fail;
36553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36554 if (!SWIG_IsOK(res1)) {
36555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___mod__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36556 }
36557 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36558 ecode2 = SWIG_AsVal_long(obj1, &val2);
36559 if (!SWIG_IsOK(ecode2)) {
36560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr___mod__" "', argument " "2"" of type '" "int64_t""'");
36561 }
36562 arg2 = static_cast< int64_t >(val2);
36563 {
36564 try {
36566 }
36567 catch (Swig::DirectorException &e) {
36568 SWIG_fail;
36569 }
36570 }
36572 return resultobj;
36573fail:
36574 PyErr_Clear();
36575 Py_INCREF(Py_NotImplemented);
36576 return Py_NotImplemented;
36577}
36578
36579
36580SWIGINTERN PyObject *_wrap_IntExpr___mod____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36581 PyObject *resultobj = 0;
36584 void *argp1 = 0 ;
36585 int res1 = 0 ;
36586 void *argp2 = 0 ;
36587 int res2 = 0 ;
36588 PyObject * obj0 = 0 ;
36589 PyObject * obj1 = 0 ;
36590 operations_research::IntExpr *result = 0 ;
36591
36592 if (!PyArg_UnpackTuple(args, "IntExpr___mod__", 2, 2, &obj0, &obj1)) SWIG_fail;
36593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36594 if (!SWIG_IsOK(res1)) {
36595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___mod__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36596 }
36597 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36598 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36599 if (!SWIG_IsOK(res2)) {
36600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___mod__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
36601 }
36602 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
36603 {
36604 try {
36606 }
36607 catch (Swig::DirectorException &e) {
36608 SWIG_fail;
36609 }
36610 }
36612 return resultobj;
36613fail:
36614 PyErr_Clear();
36615 Py_INCREF(Py_NotImplemented);
36616 return Py_NotImplemented;
36617}
36618
36619
36620SWIGINTERN PyObject *_wrap_IntExpr___mod__(PyObject *self, PyObject *args) {
36621 Py_ssize_t argc;
36622 PyObject *argv[3] = {
36623 0
36624 };
36625 Py_ssize_t ii;
36626
36627 if (!PyTuple_Check(args)) SWIG_fail;
36628 argc = PyObject_Length(args);
36629 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
36630 argv[ii] = PyTuple_GET_ITEM(args,ii);
36631 }
36632 if (argc == 2) {
36633 int _v;
36634 void *vptr = 0;
36635 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
36636 _v = SWIG_CheckState(res);
36637 if (_v) {
36638 void *vptr = 0;
36639 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
36640 _v = SWIG_CheckState(res);
36641 if (_v) {
36642 return _wrap_IntExpr___mod____SWIG_1(self, args);
36643 }
36644 }
36645 }
36646 if (argc == 2) {
36647 int _v;
36648 void *vptr = 0;
36649 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
36650 _v = SWIG_CheckState(res);
36651 if (_v) {
36652 {
36653 int res = SWIG_AsVal_long(argv[1], NULL);
36654 _v = SWIG_CheckState(res);
36655 }
36656 if (_v) {
36657 return _wrap_IntExpr___mod____SWIG_0(self, args);
36658 }
36659 }
36660 }
36661
36662fail:
36663 Py_INCREF(Py_NotImplemented);
36664 return Py_NotImplemented;
36665}
36666
36667
36668SWIGINTERN PyObject *_wrap_IntExpr___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36669 PyObject *resultobj = 0;
36671 void *argp1 = 0 ;
36672 int res1 = 0 ;
36673 PyObject * obj0 = 0 ;
36674 operations_research::IntExpr *result = 0 ;
36675
36676 if (!PyArg_UnpackTuple(args, "IntExpr___neg__", 1, 1, &obj0)) SWIG_fail;
36677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36678 if (!SWIG_IsOK(res1)) {
36679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___neg__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36680 }
36681 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36682 {
36683 try {
36685 }
36686 catch (Swig::DirectorException &e) {
36687 SWIG_fail;
36688 }
36689 }
36691 return resultobj;
36692fail:
36693 PyErr_Clear();
36694 Py_INCREF(Py_NotImplemented);
36695 return Py_NotImplemented;
36696}
36697
36698
36699SWIGINTERN PyObject *_wrap_IntExpr___abs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36700 PyObject *resultobj = 0;
36702 void *argp1 = 0 ;
36703 int res1 = 0 ;
36704 PyObject * obj0 = 0 ;
36705 operations_research::IntExpr *result = 0 ;
36706
36707 if (!PyArg_UnpackTuple(args, "IntExpr___abs__", 1, 1, &obj0)) SWIG_fail;
36708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36709 if (!SWIG_IsOK(res1)) {
36710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___abs__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36711 }
36712 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36713 {
36714 try {
36716 }
36717 catch (Swig::DirectorException &e) {
36718 SWIG_fail;
36719 }
36720 }
36722 return resultobj;
36723fail:
36724 return NULL;
36725}
36726
36727
36728SWIGINTERN PyObject *_wrap_IntExpr_Square(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36729 PyObject *resultobj = 0;
36731 void *argp1 = 0 ;
36732 int res1 = 0 ;
36733 PyObject * obj0 = 0 ;
36734 operations_research::IntExpr *result = 0 ;
36735
36736 if (!PyArg_UnpackTuple(args, "IntExpr_Square", 1, 1, &obj0)) SWIG_fail;
36737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36738 if (!SWIG_IsOK(res1)) {
36739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_Square" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36740 }
36741 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36742 {
36743 try {
36745 }
36746 catch (Swig::DirectorException &e) {
36747 SWIG_fail;
36748 }
36749 }
36751 return resultobj;
36752fail:
36753 return NULL;
36754}
36755
36756
36757SWIGINTERN PyObject *_wrap_IntExpr___eq____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36758 PyObject *resultobj = 0;
36760 int64_t arg2 ;
36761 void *argp1 = 0 ;
36762 int res1 = 0 ;
36763 long val2 ;
36764 int ecode2 = 0 ;
36765 PyObject * obj0 = 0 ;
36766 PyObject * obj1 = 0 ;
36767 Swig::Director *director = 0;
36769
36770 if (!PyArg_UnpackTuple(args, "IntExpr___eq__", 2, 2, &obj0, &obj1)) SWIG_fail;
36771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36772 if (!SWIG_IsOK(res1)) {
36773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___eq__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36774 }
36775 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36776 ecode2 = SWIG_AsVal_long(obj1, &val2);
36777 if (!SWIG_IsOK(ecode2)) {
36778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr___eq__" "', argument " "2"" of type '" "int64_t""'");
36779 }
36780 arg2 = static_cast< int64_t >(val2);
36781 {
36782 try {
36784 }
36785 catch (Swig::DirectorException &e) {
36786 SWIG_fail;
36787 }
36788 }
36789 director = SWIG_DIRECTOR_CAST(result);
36790 if (director) {
36791 resultobj = director->swig_get_self();
36792 Py_INCREF(resultobj);
36793 } else {
36795 }
36796 return resultobj;
36797fail:
36798 PyErr_Clear();
36799 Py_INCREF(Py_NotImplemented);
36800 return Py_NotImplemented;
36801}
36802
36803
36804SWIGINTERN PyObject *_wrap_IntExpr___ne____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36805 PyObject *resultobj = 0;
36807 int64_t arg2 ;
36808 void *argp1 = 0 ;
36809 int res1 = 0 ;
36810 long val2 ;
36811 int ecode2 = 0 ;
36812 PyObject * obj0 = 0 ;
36813 PyObject * obj1 = 0 ;
36814 Swig::Director *director = 0;
36816
36817 if (!PyArg_UnpackTuple(args, "IntExpr___ne__", 2, 2, &obj0, &obj1)) SWIG_fail;
36818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36819 if (!SWIG_IsOK(res1)) {
36820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___ne__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36821 }
36822 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36823 ecode2 = SWIG_AsVal_long(obj1, &val2);
36824 if (!SWIG_IsOK(ecode2)) {
36825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr___ne__" "', argument " "2"" of type '" "int64_t""'");
36826 }
36827 arg2 = static_cast< int64_t >(val2);
36828 {
36829 try {
36831 }
36832 catch (Swig::DirectorException &e) {
36833 SWIG_fail;
36834 }
36835 }
36836 director = SWIG_DIRECTOR_CAST(result);
36837 if (director) {
36838 resultobj = director->swig_get_self();
36839 Py_INCREF(resultobj);
36840 } else {
36842 }
36843 return resultobj;
36844fail:
36845 PyErr_Clear();
36846 Py_INCREF(Py_NotImplemented);
36847 return Py_NotImplemented;
36848}
36849
36850
36851SWIGINTERN PyObject *_wrap_IntExpr___ge____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36852 PyObject *resultobj = 0;
36854 int64_t arg2 ;
36855 void *argp1 = 0 ;
36856 int res1 = 0 ;
36857 long val2 ;
36858 int ecode2 = 0 ;
36859 PyObject * obj0 = 0 ;
36860 PyObject * obj1 = 0 ;
36861 Swig::Director *director = 0;
36863
36864 if (!PyArg_UnpackTuple(args, "IntExpr___ge__", 2, 2, &obj0, &obj1)) SWIG_fail;
36865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36866 if (!SWIG_IsOK(res1)) {
36867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___ge__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36868 }
36869 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36870 ecode2 = SWIG_AsVal_long(obj1, &val2);
36871 if (!SWIG_IsOK(ecode2)) {
36872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr___ge__" "', argument " "2"" of type '" "int64_t""'");
36873 }
36874 arg2 = static_cast< int64_t >(val2);
36875 {
36876 try {
36878 }
36879 catch (Swig::DirectorException &e) {
36880 SWIG_fail;
36881 }
36882 }
36883 director = SWIG_DIRECTOR_CAST(result);
36884 if (director) {
36885 resultobj = director->swig_get_self();
36886 Py_INCREF(resultobj);
36887 } else {
36889 }
36890 return resultobj;
36891fail:
36892 PyErr_Clear();
36893 Py_INCREF(Py_NotImplemented);
36894 return Py_NotImplemented;
36895}
36896
36897
36898SWIGINTERN PyObject *_wrap_IntExpr___gt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36899 PyObject *resultobj = 0;
36901 int64_t arg2 ;
36902 void *argp1 = 0 ;
36903 int res1 = 0 ;
36904 long val2 ;
36905 int ecode2 = 0 ;
36906 PyObject * obj0 = 0 ;
36907 PyObject * obj1 = 0 ;
36908 Swig::Director *director = 0;
36910
36911 if (!PyArg_UnpackTuple(args, "IntExpr___gt__", 2, 2, &obj0, &obj1)) SWIG_fail;
36912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36913 if (!SWIG_IsOK(res1)) {
36914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___gt__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36915 }
36916 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36917 ecode2 = SWIG_AsVal_long(obj1, &val2);
36918 if (!SWIG_IsOK(ecode2)) {
36919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr___gt__" "', argument " "2"" of type '" "int64_t""'");
36920 }
36921 arg2 = static_cast< int64_t >(val2);
36922 {
36923 try {
36925 }
36926 catch (Swig::DirectorException &e) {
36927 SWIG_fail;
36928 }
36929 }
36930 director = SWIG_DIRECTOR_CAST(result);
36931 if (director) {
36932 resultobj = director->swig_get_self();
36933 Py_INCREF(resultobj);
36934 } else {
36936 }
36937 return resultobj;
36938fail:
36939 PyErr_Clear();
36940 Py_INCREF(Py_NotImplemented);
36941 return Py_NotImplemented;
36942}
36943
36944
36945SWIGINTERN PyObject *_wrap_IntExpr___le____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36946 PyObject *resultobj = 0;
36948 int64_t arg2 ;
36949 void *argp1 = 0 ;
36950 int res1 = 0 ;
36951 long val2 ;
36952 int ecode2 = 0 ;
36953 PyObject * obj0 = 0 ;
36954 PyObject * obj1 = 0 ;
36955 Swig::Director *director = 0;
36957
36958 if (!PyArg_UnpackTuple(args, "IntExpr___le__", 2, 2, &obj0, &obj1)) SWIG_fail;
36959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
36960 if (!SWIG_IsOK(res1)) {
36961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___le__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
36962 }
36963 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36964 ecode2 = SWIG_AsVal_long(obj1, &val2);
36965 if (!SWIG_IsOK(ecode2)) {
36966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr___le__" "', argument " "2"" of type '" "int64_t""'");
36967 }
36968 arg2 = static_cast< int64_t >(val2);
36969 {
36970 try {
36972 }
36973 catch (Swig::DirectorException &e) {
36974 SWIG_fail;
36975 }
36976 }
36977 director = SWIG_DIRECTOR_CAST(result);
36978 if (director) {
36979 resultobj = director->swig_get_self();
36980 Py_INCREF(resultobj);
36981 } else {
36983 }
36984 return resultobj;
36985fail:
36986 PyErr_Clear();
36987 Py_INCREF(Py_NotImplemented);
36988 return Py_NotImplemented;
36989}
36990
36991
36992SWIGINTERN PyObject *_wrap_IntExpr___lt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36993 PyObject *resultobj = 0;
36995 int64_t arg2 ;
36996 void *argp1 = 0 ;
36997 int res1 = 0 ;
36998 long val2 ;
36999 int ecode2 = 0 ;
37000 PyObject * obj0 = 0 ;
37001 PyObject * obj1 = 0 ;
37002 Swig::Director *director = 0;
37004
37005 if (!PyArg_UnpackTuple(args, "IntExpr___lt__", 2, 2, &obj0, &obj1)) SWIG_fail;
37006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37007 if (!SWIG_IsOK(res1)) {
37008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___lt__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
37009 }
37010 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37011 ecode2 = SWIG_AsVal_long(obj1, &val2);
37012 if (!SWIG_IsOK(ecode2)) {
37013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntExpr___lt__" "', argument " "2"" of type '" "int64_t""'");
37014 }
37015 arg2 = static_cast< int64_t >(val2);
37016 {
37017 try {
37019 }
37020 catch (Swig::DirectorException &e) {
37021 SWIG_fail;
37022 }
37023 }
37024 director = SWIG_DIRECTOR_CAST(result);
37025 if (director) {
37026 resultobj = director->swig_get_self();
37027 Py_INCREF(resultobj);
37028 } else {
37030 }
37031 return resultobj;
37032fail:
37033 PyErr_Clear();
37034 Py_INCREF(Py_NotImplemented);
37035 return Py_NotImplemented;
37036}
37037
37038
37039SWIGINTERN PyObject *_wrap_IntExpr___eq____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37040 PyObject *resultobj = 0;
37043 void *argp1 = 0 ;
37044 int res1 = 0 ;
37045 void *argp2 = 0 ;
37046 int res2 = 0 ;
37047 PyObject * obj0 = 0 ;
37048 PyObject * obj1 = 0 ;
37049 Swig::Director *director = 0;
37051
37052 if (!PyArg_UnpackTuple(args, "IntExpr___eq__", 2, 2, &obj0, &obj1)) SWIG_fail;
37053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37054 if (!SWIG_IsOK(res1)) {
37055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___eq__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
37056 }
37057 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37058 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37059 if (!SWIG_IsOK(res2)) {
37060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___eq__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
37061 }
37062 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
37063 {
37064 try {
37066 }
37067 catch (Swig::DirectorException &e) {
37068 SWIG_fail;
37069 }
37070 }
37071 director = SWIG_DIRECTOR_CAST(result);
37072 if (director) {
37073 resultobj = director->swig_get_self();
37074 Py_INCREF(resultobj);
37075 } else {
37077 }
37078 return resultobj;
37079fail:
37080 PyErr_Clear();
37081 Py_INCREF(Py_NotImplemented);
37082 return Py_NotImplemented;
37083}
37084
37085
37086SWIGINTERN PyObject *_wrap_IntExpr___ne____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37087 PyObject *resultobj = 0;
37090 void *argp1 = 0 ;
37091 int res1 = 0 ;
37092 void *argp2 = 0 ;
37093 int res2 = 0 ;
37094 PyObject * obj0 = 0 ;
37095 PyObject * obj1 = 0 ;
37096 Swig::Director *director = 0;
37098
37099 if (!PyArg_UnpackTuple(args, "IntExpr___ne__", 2, 2, &obj0, &obj1)) SWIG_fail;
37100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37101 if (!SWIG_IsOK(res1)) {
37102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___ne__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
37103 }
37104 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37105 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37106 if (!SWIG_IsOK(res2)) {
37107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___ne__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
37108 }
37109 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
37110 {
37111 try {
37113 }
37114 catch (Swig::DirectorException &e) {
37115 SWIG_fail;
37116 }
37117 }
37118 director = SWIG_DIRECTOR_CAST(result);
37119 if (director) {
37120 resultobj = director->swig_get_self();
37121 Py_INCREF(resultobj);
37122 } else {
37124 }
37125 return resultobj;
37126fail:
37127 PyErr_Clear();
37128 Py_INCREF(Py_NotImplemented);
37129 return Py_NotImplemented;
37130}
37131
37132
37133SWIGINTERN PyObject *_wrap_IntExpr___ge____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37134 PyObject *resultobj = 0;
37137 void *argp1 = 0 ;
37138 int res1 = 0 ;
37139 void *argp2 = 0 ;
37140 int res2 = 0 ;
37141 PyObject * obj0 = 0 ;
37142 PyObject * obj1 = 0 ;
37143 Swig::Director *director = 0;
37145
37146 if (!PyArg_UnpackTuple(args, "IntExpr___ge__", 2, 2, &obj0, &obj1)) SWIG_fail;
37147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37148 if (!SWIG_IsOK(res1)) {
37149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___ge__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
37150 }
37151 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37152 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37153 if (!SWIG_IsOK(res2)) {
37154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___ge__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
37155 }
37156 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
37157 {
37158 try {
37160 }
37161 catch (Swig::DirectorException &e) {
37162 SWIG_fail;
37163 }
37164 }
37165 director = SWIG_DIRECTOR_CAST(result);
37166 if (director) {
37167 resultobj = director->swig_get_self();
37168 Py_INCREF(resultobj);
37169 } else {
37171 }
37172 return resultobj;
37173fail:
37174 PyErr_Clear();
37175 Py_INCREF(Py_NotImplemented);
37176 return Py_NotImplemented;
37177}
37178
37179
37180SWIGINTERN PyObject *_wrap_IntExpr___gt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37181 PyObject *resultobj = 0;
37184 void *argp1 = 0 ;
37185 int res1 = 0 ;
37186 void *argp2 = 0 ;
37187 int res2 = 0 ;
37188 PyObject * obj0 = 0 ;
37189 PyObject * obj1 = 0 ;
37190 Swig::Director *director = 0;
37192
37193 if (!PyArg_UnpackTuple(args, "IntExpr___gt__", 2, 2, &obj0, &obj1)) SWIG_fail;
37194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37195 if (!SWIG_IsOK(res1)) {
37196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___gt__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
37197 }
37198 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37199 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37200 if (!SWIG_IsOK(res2)) {
37201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___gt__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
37202 }
37203 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
37204 {
37205 try {
37207 }
37208 catch (Swig::DirectorException &e) {
37209 SWIG_fail;
37210 }
37211 }
37212 director = SWIG_DIRECTOR_CAST(result);
37213 if (director) {
37214 resultobj = director->swig_get_self();
37215 Py_INCREF(resultobj);
37216 } else {
37218 }
37219 return resultobj;
37220fail:
37221 PyErr_Clear();
37222 Py_INCREF(Py_NotImplemented);
37223 return Py_NotImplemented;
37224}
37225
37226
37227SWIGINTERN PyObject *_wrap_IntExpr___le____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37228 PyObject *resultobj = 0;
37231 void *argp1 = 0 ;
37232 int res1 = 0 ;
37233 void *argp2 = 0 ;
37234 int res2 = 0 ;
37235 PyObject * obj0 = 0 ;
37236 PyObject * obj1 = 0 ;
37237 Swig::Director *director = 0;
37239
37240 if (!PyArg_UnpackTuple(args, "IntExpr___le__", 2, 2, &obj0, &obj1)) SWIG_fail;
37241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37242 if (!SWIG_IsOK(res1)) {
37243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___le__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
37244 }
37245 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37246 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37247 if (!SWIG_IsOK(res2)) {
37248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___le__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
37249 }
37250 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
37251 {
37252 try {
37254 }
37255 catch (Swig::DirectorException &e) {
37256 SWIG_fail;
37257 }
37258 }
37259 director = SWIG_DIRECTOR_CAST(result);
37260 if (director) {
37261 resultobj = director->swig_get_self();
37262 Py_INCREF(resultobj);
37263 } else {
37265 }
37266 return resultobj;
37267fail:
37268 PyErr_Clear();
37269 Py_INCREF(Py_NotImplemented);
37270 return Py_NotImplemented;
37271}
37272
37273
37274SWIGINTERN PyObject *_wrap_IntExpr___lt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37275 PyObject *resultobj = 0;
37278 void *argp1 = 0 ;
37279 int res1 = 0 ;
37280 void *argp2 = 0 ;
37281 int res2 = 0 ;
37282 PyObject * obj0 = 0 ;
37283 PyObject * obj1 = 0 ;
37284 Swig::Director *director = 0;
37286
37287 if (!PyArg_UnpackTuple(args, "IntExpr___lt__", 2, 2, &obj0, &obj1)) SWIG_fail;
37288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37289 if (!SWIG_IsOK(res1)) {
37290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___lt__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
37291 }
37292 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37293 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37294 if (!SWIG_IsOK(res2)) {
37295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___lt__" "', argument " "2"" of type '" "operations_research::IntExpr *""'");
37296 }
37297 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
37298 {
37299 try {
37301 }
37302 catch (Swig::DirectorException &e) {
37303 SWIG_fail;
37304 }
37305 }
37306 director = SWIG_DIRECTOR_CAST(result);
37307 if (director) {
37308 resultobj = director->swig_get_self();
37309 Py_INCREF(resultobj);
37310 } else {
37312 }
37313 return resultobj;
37314fail:
37315 PyErr_Clear();
37316 Py_INCREF(Py_NotImplemented);
37317 return Py_NotImplemented;
37318}
37319
37320
37321SWIGINTERN PyObject *_wrap_IntExpr___eq____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37322 PyObject *resultobj = 0;
37325 void *argp1 = 0 ;
37326 int res1 = 0 ;
37327 void *argp2 = 0 ;
37328 int res2 = 0 ;
37329 PyObject * obj0 = 0 ;
37330 PyObject * obj1 = 0 ;
37331 Swig::Director *director = 0;
37333
37334 if (!PyArg_UnpackTuple(args, "IntExpr___eq__", 2, 2, &obj0, &obj1)) SWIG_fail;
37335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37336 if (!SWIG_IsOK(res1)) {
37337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___eq__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
37338 }
37339 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37341 if (!SWIG_IsOK(res2)) {
37342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___eq__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
37343 }
37344 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
37345 {
37346 try {
37348 }
37349 catch (Swig::DirectorException &e) {
37350 SWIG_fail;
37351 }
37352 }
37353 director = SWIG_DIRECTOR_CAST(result);
37354 if (director) {
37355 resultobj = director->swig_get_self();
37356 Py_INCREF(resultobj);
37357 } else {
37359 }
37360 return resultobj;
37361fail:
37362 PyErr_Clear();
37363 Py_INCREF(Py_NotImplemented);
37364 return Py_NotImplemented;
37365}
37366
37367
37368SWIGINTERN PyObject *_wrap_IntExpr___eq__(PyObject *self, PyObject *args) {
37369 Py_ssize_t argc;
37370 PyObject *argv[3] = {
37371 0
37372 };
37373 Py_ssize_t ii;
37374
37375 if (!PyTuple_Check(args)) SWIG_fail;
37376 argc = PyObject_Length(args);
37377 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37378 argv[ii] = PyTuple_GET_ITEM(args,ii);
37379 }
37380 if (argc == 2) {
37381 int _v;
37382 void *vptr = 0;
37383 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37384 _v = SWIG_CheckState(res);
37385 if (_v) {
37386 void *vptr = 0;
37387 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37388 _v = SWIG_CheckState(res);
37389 if (_v) {
37390 return _wrap_IntExpr___eq____SWIG_1(self, args);
37391 }
37392 }
37393 }
37394 if (argc == 2) {
37395 int _v;
37396 void *vptr = 0;
37397 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37398 _v = SWIG_CheckState(res);
37399 if (_v) {
37400 void *vptr = 0;
37401 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
37402 _v = SWIG_CheckState(res);
37403 if (_v) {
37404 return _wrap_IntExpr___eq____SWIG_2(self, args);
37405 }
37406 }
37407 }
37408 if (argc == 2) {
37409 int _v;
37410 void *vptr = 0;
37411 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37412 _v = SWIG_CheckState(res);
37413 if (_v) {
37414 {
37415 int res = SWIG_AsVal_long(argv[1], NULL);
37416 _v = SWIG_CheckState(res);
37417 }
37418 if (_v) {
37419 return _wrap_IntExpr___eq____SWIG_0(self, args);
37420 }
37421 }
37422 }
37423
37424fail:
37425 Py_INCREF(Py_NotImplemented);
37426 return Py_NotImplemented;
37427}
37428
37429
37430SWIGINTERN PyObject *_wrap_IntExpr___ne____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37431 PyObject *resultobj = 0;
37434 void *argp1 = 0 ;
37435 int res1 = 0 ;
37436 void *argp2 = 0 ;
37437 int res2 = 0 ;
37438 PyObject * obj0 = 0 ;
37439 PyObject * obj1 = 0 ;
37440 Swig::Director *director = 0;
37442
37443 if (!PyArg_UnpackTuple(args, "IntExpr___ne__", 2, 2, &obj0, &obj1)) SWIG_fail;
37444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37445 if (!SWIG_IsOK(res1)) {
37446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___ne__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
37447 }
37448 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37450 if (!SWIG_IsOK(res2)) {
37451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___ne__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
37452 }
37453 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
37454 {
37455 try {
37457 }
37458 catch (Swig::DirectorException &e) {
37459 SWIG_fail;
37460 }
37461 }
37462 director = SWIG_DIRECTOR_CAST(result);
37463 if (director) {
37464 resultobj = director->swig_get_self();
37465 Py_INCREF(resultobj);
37466 } else {
37468 }
37469 return resultobj;
37470fail:
37471 PyErr_Clear();
37472 Py_INCREF(Py_NotImplemented);
37473 return Py_NotImplemented;
37474}
37475
37476
37477SWIGINTERN PyObject *_wrap_IntExpr___ne__(PyObject *self, PyObject *args) {
37478 Py_ssize_t argc;
37479 PyObject *argv[3] = {
37480 0
37481 };
37482 Py_ssize_t ii;
37483
37484 if (!PyTuple_Check(args)) SWIG_fail;
37485 argc = PyObject_Length(args);
37486 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37487 argv[ii] = PyTuple_GET_ITEM(args,ii);
37488 }
37489 if (argc == 2) {
37490 int _v;
37491 void *vptr = 0;
37492 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37493 _v = SWIG_CheckState(res);
37494 if (_v) {
37495 void *vptr = 0;
37496 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37497 _v = SWIG_CheckState(res);
37498 if (_v) {
37499 return _wrap_IntExpr___ne____SWIG_1(self, args);
37500 }
37501 }
37502 }
37503 if (argc == 2) {
37504 int _v;
37505 void *vptr = 0;
37506 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37507 _v = SWIG_CheckState(res);
37508 if (_v) {
37509 void *vptr = 0;
37510 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
37511 _v = SWIG_CheckState(res);
37512 if (_v) {
37513 return _wrap_IntExpr___ne____SWIG_2(self, args);
37514 }
37515 }
37516 }
37517 if (argc == 2) {
37518 int _v;
37519 void *vptr = 0;
37520 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37521 _v = SWIG_CheckState(res);
37522 if (_v) {
37523 {
37524 int res = SWIG_AsVal_long(argv[1], NULL);
37525 _v = SWIG_CheckState(res);
37526 }
37527 if (_v) {
37528 return _wrap_IntExpr___ne____SWIG_0(self, args);
37529 }
37530 }
37531 }
37532
37533fail:
37534 Py_INCREF(Py_NotImplemented);
37535 return Py_NotImplemented;
37536}
37537
37538
37539SWIGINTERN PyObject *_wrap_IntExpr___ge____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37540 PyObject *resultobj = 0;
37543 void *argp1 = 0 ;
37544 int res1 = 0 ;
37545 void *argp2 = 0 ;
37546 int res2 = 0 ;
37547 PyObject * obj0 = 0 ;
37548 PyObject * obj1 = 0 ;
37549 Swig::Director *director = 0;
37551
37552 if (!PyArg_UnpackTuple(args, "IntExpr___ge__", 2, 2, &obj0, &obj1)) SWIG_fail;
37553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37554 if (!SWIG_IsOK(res1)) {
37555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___ge__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
37556 }
37557 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37559 if (!SWIG_IsOK(res2)) {
37560 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___ge__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
37561 }
37562 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
37563 {
37564 try {
37566 }
37567 catch (Swig::DirectorException &e) {
37568 SWIG_fail;
37569 }
37570 }
37571 director = SWIG_DIRECTOR_CAST(result);
37572 if (director) {
37573 resultobj = director->swig_get_self();
37574 Py_INCREF(resultobj);
37575 } else {
37577 }
37578 return resultobj;
37579fail:
37580 PyErr_Clear();
37581 Py_INCREF(Py_NotImplemented);
37582 return Py_NotImplemented;
37583}
37584
37585
37586SWIGINTERN PyObject *_wrap_IntExpr___ge__(PyObject *self, PyObject *args) {
37587 Py_ssize_t argc;
37588 PyObject *argv[3] = {
37589 0
37590 };
37591 Py_ssize_t ii;
37592
37593 if (!PyTuple_Check(args)) SWIG_fail;
37594 argc = PyObject_Length(args);
37595 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37596 argv[ii] = PyTuple_GET_ITEM(args,ii);
37597 }
37598 if (argc == 2) {
37599 int _v;
37600 void *vptr = 0;
37601 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37602 _v = SWIG_CheckState(res);
37603 if (_v) {
37604 void *vptr = 0;
37605 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37606 _v = SWIG_CheckState(res);
37607 if (_v) {
37608 return _wrap_IntExpr___ge____SWIG_1(self, args);
37609 }
37610 }
37611 }
37612 if (argc == 2) {
37613 int _v;
37614 void *vptr = 0;
37615 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37616 _v = SWIG_CheckState(res);
37617 if (_v) {
37618 void *vptr = 0;
37619 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
37620 _v = SWIG_CheckState(res);
37621 if (_v) {
37622 return _wrap_IntExpr___ge____SWIG_2(self, args);
37623 }
37624 }
37625 }
37626 if (argc == 2) {
37627 int _v;
37628 void *vptr = 0;
37629 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37630 _v = SWIG_CheckState(res);
37631 if (_v) {
37632 {
37633 int res = SWIG_AsVal_long(argv[1], NULL);
37634 _v = SWIG_CheckState(res);
37635 }
37636 if (_v) {
37637 return _wrap_IntExpr___ge____SWIG_0(self, args);
37638 }
37639 }
37640 }
37641
37642fail:
37643 Py_INCREF(Py_NotImplemented);
37644 return Py_NotImplemented;
37645}
37646
37647
37648SWIGINTERN PyObject *_wrap_IntExpr___gt____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37649 PyObject *resultobj = 0;
37652 void *argp1 = 0 ;
37653 int res1 = 0 ;
37654 void *argp2 = 0 ;
37655 int res2 = 0 ;
37656 PyObject * obj0 = 0 ;
37657 PyObject * obj1 = 0 ;
37658 Swig::Director *director = 0;
37660
37661 if (!PyArg_UnpackTuple(args, "IntExpr___gt__", 2, 2, &obj0, &obj1)) SWIG_fail;
37662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37663 if (!SWIG_IsOK(res1)) {
37664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___gt__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
37665 }
37666 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37668 if (!SWIG_IsOK(res2)) {
37669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___gt__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
37670 }
37671 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
37672 {
37673 try {
37675 }
37676 catch (Swig::DirectorException &e) {
37677 SWIG_fail;
37678 }
37679 }
37680 director = SWIG_DIRECTOR_CAST(result);
37681 if (director) {
37682 resultobj = director->swig_get_self();
37683 Py_INCREF(resultobj);
37684 } else {
37686 }
37687 return resultobj;
37688fail:
37689 PyErr_Clear();
37690 Py_INCREF(Py_NotImplemented);
37691 return Py_NotImplemented;
37692}
37693
37694
37695SWIGINTERN PyObject *_wrap_IntExpr___gt__(PyObject *self, PyObject *args) {
37696 Py_ssize_t argc;
37697 PyObject *argv[3] = {
37698 0
37699 };
37700 Py_ssize_t ii;
37701
37702 if (!PyTuple_Check(args)) SWIG_fail;
37703 argc = PyObject_Length(args);
37704 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37705 argv[ii] = PyTuple_GET_ITEM(args,ii);
37706 }
37707 if (argc == 2) {
37708 int _v;
37709 void *vptr = 0;
37710 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37711 _v = SWIG_CheckState(res);
37712 if (_v) {
37713 void *vptr = 0;
37714 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37715 _v = SWIG_CheckState(res);
37716 if (_v) {
37717 return _wrap_IntExpr___gt____SWIG_1(self, args);
37718 }
37719 }
37720 }
37721 if (argc == 2) {
37722 int _v;
37723 void *vptr = 0;
37724 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37725 _v = SWIG_CheckState(res);
37726 if (_v) {
37727 void *vptr = 0;
37728 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
37729 _v = SWIG_CheckState(res);
37730 if (_v) {
37731 return _wrap_IntExpr___gt____SWIG_2(self, args);
37732 }
37733 }
37734 }
37735 if (argc == 2) {
37736 int _v;
37737 void *vptr = 0;
37738 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37739 _v = SWIG_CheckState(res);
37740 if (_v) {
37741 {
37742 int res = SWIG_AsVal_long(argv[1], NULL);
37743 _v = SWIG_CheckState(res);
37744 }
37745 if (_v) {
37746 return _wrap_IntExpr___gt____SWIG_0(self, args);
37747 }
37748 }
37749 }
37750
37751fail:
37752 Py_INCREF(Py_NotImplemented);
37753 return Py_NotImplemented;
37754}
37755
37756
37757SWIGINTERN PyObject *_wrap_IntExpr___le____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37758 PyObject *resultobj = 0;
37761 void *argp1 = 0 ;
37762 int res1 = 0 ;
37763 void *argp2 = 0 ;
37764 int res2 = 0 ;
37765 PyObject * obj0 = 0 ;
37766 PyObject * obj1 = 0 ;
37767 Swig::Director *director = 0;
37769
37770 if (!PyArg_UnpackTuple(args, "IntExpr___le__", 2, 2, &obj0, &obj1)) SWIG_fail;
37771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37772 if (!SWIG_IsOK(res1)) {
37773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___le__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
37774 }
37775 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37777 if (!SWIG_IsOK(res2)) {
37778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___le__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
37779 }
37780 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
37781 {
37782 try {
37784 }
37785 catch (Swig::DirectorException &e) {
37786 SWIG_fail;
37787 }
37788 }
37789 director = SWIG_DIRECTOR_CAST(result);
37790 if (director) {
37791 resultobj = director->swig_get_self();
37792 Py_INCREF(resultobj);
37793 } else {
37795 }
37796 return resultobj;
37797fail:
37798 PyErr_Clear();
37799 Py_INCREF(Py_NotImplemented);
37800 return Py_NotImplemented;
37801}
37802
37803
37804SWIGINTERN PyObject *_wrap_IntExpr___le__(PyObject *self, PyObject *args) {
37805 Py_ssize_t argc;
37806 PyObject *argv[3] = {
37807 0
37808 };
37809 Py_ssize_t ii;
37810
37811 if (!PyTuple_Check(args)) SWIG_fail;
37812 argc = PyObject_Length(args);
37813 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37814 argv[ii] = PyTuple_GET_ITEM(args,ii);
37815 }
37816 if (argc == 2) {
37817 int _v;
37818 void *vptr = 0;
37819 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37820 _v = SWIG_CheckState(res);
37821 if (_v) {
37822 void *vptr = 0;
37823 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37824 _v = SWIG_CheckState(res);
37825 if (_v) {
37826 return _wrap_IntExpr___le____SWIG_1(self, args);
37827 }
37828 }
37829 }
37830 if (argc == 2) {
37831 int _v;
37832 void *vptr = 0;
37833 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37834 _v = SWIG_CheckState(res);
37835 if (_v) {
37836 void *vptr = 0;
37837 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
37838 _v = SWIG_CheckState(res);
37839 if (_v) {
37840 return _wrap_IntExpr___le____SWIG_2(self, args);
37841 }
37842 }
37843 }
37844 if (argc == 2) {
37845 int _v;
37846 void *vptr = 0;
37847 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37848 _v = SWIG_CheckState(res);
37849 if (_v) {
37850 {
37851 int res = SWIG_AsVal_long(argv[1], NULL);
37852 _v = SWIG_CheckState(res);
37853 }
37854 if (_v) {
37855 return _wrap_IntExpr___le____SWIG_0(self, args);
37856 }
37857 }
37858 }
37859
37860fail:
37861 Py_INCREF(Py_NotImplemented);
37862 return Py_NotImplemented;
37863}
37864
37865
37866SWIGINTERN PyObject *_wrap_IntExpr___lt____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37867 PyObject *resultobj = 0;
37870 void *argp1 = 0 ;
37871 int res1 = 0 ;
37872 void *argp2 = 0 ;
37873 int res2 = 0 ;
37874 PyObject * obj0 = 0 ;
37875 PyObject * obj1 = 0 ;
37876 Swig::Director *director = 0;
37878
37879 if (!PyArg_UnpackTuple(args, "IntExpr___lt__", 2, 2, &obj0, &obj1)) SWIG_fail;
37880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37881 if (!SWIG_IsOK(res1)) {
37882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr___lt__" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
37883 }
37884 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37886 if (!SWIG_IsOK(res2)) {
37887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntExpr___lt__" "', argument " "2"" of type '" "operations_research::Constraint *""'");
37888 }
37889 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
37890 {
37891 try {
37893 }
37894 catch (Swig::DirectorException &e) {
37895 SWIG_fail;
37896 }
37897 }
37898 director = SWIG_DIRECTOR_CAST(result);
37899 if (director) {
37900 resultobj = director->swig_get_self();
37901 Py_INCREF(resultobj);
37902 } else {
37904 }
37905 return resultobj;
37906fail:
37907 PyErr_Clear();
37908 Py_INCREF(Py_NotImplemented);
37909 return Py_NotImplemented;
37910}
37911
37912
37913SWIGINTERN PyObject *_wrap_IntExpr___lt__(PyObject *self, PyObject *args) {
37914 Py_ssize_t argc;
37915 PyObject *argv[3] = {
37916 0
37917 };
37918 Py_ssize_t ii;
37919
37920 if (!PyTuple_Check(args)) SWIG_fail;
37921 argc = PyObject_Length(args);
37922 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37923 argv[ii] = PyTuple_GET_ITEM(args,ii);
37924 }
37925 if (argc == 2) {
37926 int _v;
37927 void *vptr = 0;
37928 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37929 _v = SWIG_CheckState(res);
37930 if (_v) {
37931 void *vptr = 0;
37932 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37933 _v = SWIG_CheckState(res);
37934 if (_v) {
37935 return _wrap_IntExpr___lt____SWIG_1(self, args);
37936 }
37937 }
37938 }
37939 if (argc == 2) {
37940 int _v;
37941 void *vptr = 0;
37942 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37943 _v = SWIG_CheckState(res);
37944 if (_v) {
37945 void *vptr = 0;
37946 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Constraint, 0);
37947 _v = SWIG_CheckState(res);
37948 if (_v) {
37949 return _wrap_IntExpr___lt____SWIG_2(self, args);
37950 }
37951 }
37952 }
37953 if (argc == 2) {
37954 int _v;
37955 void *vptr = 0;
37956 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
37957 _v = SWIG_CheckState(res);
37958 if (_v) {
37959 {
37960 int res = SWIG_AsVal_long(argv[1], NULL);
37961 _v = SWIG_CheckState(res);
37962 }
37963 if (_v) {
37964 return _wrap_IntExpr___lt____SWIG_0(self, args);
37965 }
37966 }
37967 }
37968
37969fail:
37970 Py_INCREF(Py_NotImplemented);
37971 return Py_NotImplemented;
37972}
37973
37974
37975SWIGINTERN PyObject *_wrap_IntExpr_MapTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37976 PyObject *resultobj = 0;
37978 std::vector< operations_research::IntVar * > *arg2 = 0 ;
37979 void *argp1 = 0 ;
37980 int res1 = 0 ;
37981 std::vector< operations_research::IntVar * > temp2 ;
37982 PyObject * obj0 = 0 ;
37983 PyObject * obj1 = 0 ;
37984 Swig::Director *director = 0;
37986
37987 if (!PyArg_UnpackTuple(args, "IntExpr_MapTo", 2, 2, &obj0, &obj1)) SWIG_fail;
37988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
37989 if (!SWIG_IsOK(res1)) {
37990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_MapTo" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
37991 }
37992 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37993 {
37994 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
37995 if (!PyErr_Occurred())
37996 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
37997 return NULL;
37998 }
37999 arg2 = &temp2;
38000 }
38001 {
38002 try {
38003 result = (operations_research::Constraint *)operations_research_IntExpr_MapTo(arg1,(std::vector< operations_research::IntVar * > const &)*arg2);
38004 }
38005 catch (Swig::DirectorException &e) {
38006 SWIG_fail;
38007 }
38008 }
38009 director = SWIG_DIRECTOR_CAST(result);
38010 if (director) {
38011 resultobj = director->swig_get_self();
38012 Py_INCREF(resultobj);
38013 } else {
38015 }
38016 return resultobj;
38017fail:
38018 return NULL;
38019}
38020
38021
38022SWIGINTERN PyObject *_wrap_IntExpr_IndexOf__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38023 PyObject *resultobj = 0;
38025 std::vector< int64_t > *arg2 = 0 ;
38026 void *argp1 = 0 ;
38027 int res1 = 0 ;
38028 std::vector< int64_t > temp2 ;
38029 PyObject * obj0 = 0 ;
38030 PyObject * obj1 = 0 ;
38031 operations_research::IntExpr *result = 0 ;
38032
38033 if (!PyArg_UnpackTuple(args, "IntExpr_IndexOf", 2, 2, &obj0, &obj1)) SWIG_fail;
38034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
38035 if (!SWIG_IsOK(res1)) {
38036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_IndexOf" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
38037 }
38038 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
38039 {
38040 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38041 if (!PyErr_Occurred())
38042 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
38043 return NULL;
38044 }
38045 arg2 = &temp2;
38046 }
38047 {
38048 try {
38049 result = (operations_research::IntExpr *)operations_research_IntExpr_IndexOf__SWIG_0(arg1,(std::vector< long > const &)*arg2);
38050 }
38051 catch (Swig::DirectorException &e) {
38052 SWIG_fail;
38053 }
38054 }
38056 return resultobj;
38057fail:
38058 return NULL;
38059}
38060
38061
38062SWIGINTERN PyObject *_wrap_IntExpr_IndexOf__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38063 PyObject *resultobj = 0;
38065 std::vector< operations_research::IntVar * > *arg2 = 0 ;
38066 void *argp1 = 0 ;
38067 int res1 = 0 ;
38068 std::vector< operations_research::IntVar * > temp2 ;
38069 PyObject * obj0 = 0 ;
38070 PyObject * obj1 = 0 ;
38071 operations_research::IntExpr *result = 0 ;
38072
38073 if (!PyArg_UnpackTuple(args, "IntExpr_IndexOf", 2, 2, &obj0, &obj1)) SWIG_fail;
38074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
38075 if (!SWIG_IsOK(res1)) {
38076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_IndexOf" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
38077 }
38078 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
38079 {
38080 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
38081 if (!PyErr_Occurred())
38082 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
38083 return NULL;
38084 }
38085 arg2 = &temp2;
38086 }
38087 {
38088 try {
38089 result = (operations_research::IntExpr *)operations_research_IntExpr_IndexOf__SWIG_1(arg1,(std::vector< operations_research::IntVar * > const &)*arg2);
38090 }
38091 catch (Swig::DirectorException &e) {
38092 SWIG_fail;
38093 }
38094 }
38096 return resultobj;
38097fail:
38098 return NULL;
38099}
38100
38101
38102SWIGINTERN PyObject *_wrap_IntExpr_IndexOf(PyObject *self, PyObject *args) {
38103 Py_ssize_t argc;
38104 PyObject *argv[3] = {
38105 0
38106 };
38107 Py_ssize_t ii;
38108
38109 if (!PyTuple_Check(args)) SWIG_fail;
38110 argc = PyObject_Length(args);
38111 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
38112 argv[ii] = PyTuple_GET_ITEM(args,ii);
38113 }
38114 if (argc == 2) {
38115 int _v;
38116 void *vptr = 0;
38117 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
38118 _v = SWIG_CheckState(res);
38119 if (_v) {
38120 {
38121 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
38122 _v = 0;
38123 } else {
38124 const bool is_tuple = PyTuple_Check(argv[1]);
38125 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
38126 size_t i = 0;
38127 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
38128 :PyList_GetItem(argv[1], i))) {
38129 ++i;
38130 }
38131 _v = i == size;
38132 }
38133 }
38134 if (_v) {
38135 return _wrap_IntExpr_IndexOf__SWIG_0(self, args);
38136 }
38137 }
38138 }
38139 if (argc == 2) {
38140 int _v;
38141 void *vptr = 0;
38142 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntExpr, 0);
38143 _v = SWIG_CheckState(res);
38144 if (_v) {
38145 {
38146 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
38147 _v = 0;
38148 } else {
38149 const bool is_tuple = PyTuple_Check(argv[1]);
38150 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
38151 size_t i = 0;
38152 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
38153 :PyList_GetItem(argv[1], i))) {
38154 ++i;
38155 }
38156 _v = i == size;
38157 }
38158 }
38159 if (_v) {
38160 return _wrap_IntExpr_IndexOf__SWIG_1(self, args);
38161 }
38162 }
38163 }
38164
38165fail:
38166 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntExpr_IndexOf'.\n"
38167 " Possible C/C++ prototypes are:\n"
38168 " operations_research::IntExpr::IndexOf(std::vector< int64_t > const &)\n"
38169 " operations_research::IntExpr::IndexOf(std::vector< operations_research::IntVar * > const &)\n");
38170 return 0;
38171}
38172
38173
38174SWIGINTERN PyObject *_wrap_IntExpr_IsMember(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38175 PyObject *resultobj = 0;
38177 std::vector< int64_t > *arg2 = 0 ;
38178 void *argp1 = 0 ;
38179 int res1 = 0 ;
38180 std::vector< int64_t > temp2 ;
38181 PyObject * obj0 = 0 ;
38182 PyObject * obj1 = 0 ;
38183 operations_research::IntVar *result = 0 ;
38184
38185 if (!PyArg_UnpackTuple(args, "IntExpr_IsMember", 2, 2, &obj0, &obj1)) SWIG_fail;
38186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
38187 if (!SWIG_IsOK(res1)) {
38188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_IsMember" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
38189 }
38190 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
38191 {
38192 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38193 if (!PyErr_Occurred())
38194 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
38195 return NULL;
38196 }
38197 arg2 = &temp2;
38198 }
38199 {
38200 try {
38201 result = (operations_research::IntVar *)operations_research_IntExpr_IsMember(arg1,(std::vector< long > const &)*arg2);
38202 }
38203 catch (Swig::DirectorException &e) {
38204 SWIG_fail;
38205 }
38206 }
38208 return resultobj;
38209fail:
38210 return NULL;
38211}
38212
38213
38214SWIGINTERN PyObject *_wrap_IntExpr_Member(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38215 PyObject *resultobj = 0;
38217 std::vector< int64_t > *arg2 = 0 ;
38218 void *argp1 = 0 ;
38219 int res1 = 0 ;
38220 std::vector< int64_t > temp2 ;
38221 PyObject * obj0 = 0 ;
38222 PyObject * obj1 = 0 ;
38223 Swig::Director *director = 0;
38225
38226 if (!PyArg_UnpackTuple(args, "IntExpr_Member", 2, 2, &obj0, &obj1)) SWIG_fail;
38227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
38228 if (!SWIG_IsOK(res1)) {
38229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_Member" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
38230 }
38231 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
38232 {
38233 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38234 if (!PyErr_Occurred())
38235 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
38236 return NULL;
38237 }
38238 arg2 = &temp2;
38239 }
38240 {
38241 try {
38242 result = (operations_research::Constraint *)operations_research_IntExpr_Member(arg1,(std::vector< long > const &)*arg2);
38243 }
38244 catch (Swig::DirectorException &e) {
38245 SWIG_fail;
38246 }
38247 }
38248 director = SWIG_DIRECTOR_CAST(result);
38249 if (director) {
38250 resultobj = director->swig_get_self();
38251 Py_INCREF(resultobj);
38252 } else {
38254 }
38255 return resultobj;
38256fail:
38257 return NULL;
38258}
38259
38260
38261SWIGINTERN PyObject *_wrap_IntExpr_NotMember(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38262 PyObject *resultobj = 0;
38264 std::vector< int64_t > *arg2 = 0 ;
38265 std::vector< int64_t > *arg3 = 0 ;
38266 void *argp1 = 0 ;
38267 int res1 = 0 ;
38268 std::vector< int64_t > temp2 ;
38269 std::vector< int64_t > temp3 ;
38270 PyObject * obj0 = 0 ;
38271 PyObject * obj1 = 0 ;
38272 PyObject * obj2 = 0 ;
38273 Swig::Director *director = 0;
38275
38276 if (!PyArg_UnpackTuple(args, "IntExpr_NotMember", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
38277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntExpr, 0 | 0 );
38278 if (!SWIG_IsOK(res1)) {
38279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntExpr_NotMember" "', argument " "1"" of type '" "operations_research::IntExpr *""'");
38280 }
38281 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
38282 {
38283 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38284 if (!PyErr_Occurred())
38285 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
38286 return NULL;
38287 }
38288 arg2 = &temp2;
38289 }
38290 {
38291 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
38292 if (!PyErr_Occurred())
38293 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
38294 return NULL;
38295 }
38296 arg3 = &temp3;
38297 }
38298 {
38299 try {
38300 result = (operations_research::Constraint *)operations_research_IntExpr_NotMember(arg1,(std::vector< long > const &)*arg2,(std::vector< long > const &)*arg3);
38301 }
38302 catch (Swig::DirectorException &e) {
38303 SWIG_fail;
38304 }
38305 }
38306 director = SWIG_DIRECTOR_CAST(result);
38307 if (director) {
38308 resultobj = director->swig_get_self();
38309 Py_INCREF(resultobj);
38310 } else {
38312 }
38313 return resultobj;
38314fail:
38315 return NULL;
38316}
38317
38318
38319SWIGINTERN PyObject *IntExpr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38320 PyObject *obj;
38321 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
38323 return SWIG_Py_Void();
38324}
38325
38326SWIGINTERN PyObject *_wrap_IntVarIterator_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38327 PyObject *resultobj = 0;
38329 void *argp1 = 0 ;
38330 int res1 = 0 ;
38331 PyObject * obj0 = 0 ;
38332
38333 if (!PyArg_UnpackTuple(args, "IntVarIterator_Init", 1, 1, &obj0)) SWIG_fail;
38335 if (!SWIG_IsOK(res1)) {
38336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarIterator_Init" "', argument " "1"" of type '" "operations_research::IntVarIterator *""'");
38337 }
38338 arg1 = reinterpret_cast< operations_research::IntVarIterator * >(argp1);
38339 {
38340 try {
38341 (arg1)->Init();
38342 }
38343 catch (Swig::DirectorException &e) {
38344 SWIG_fail;
38345 }
38346 }
38347 resultobj = SWIG_Py_Void();
38348 return resultobj;
38349fail:
38350 return NULL;
38351}
38352
38353
38354SWIGINTERN PyObject *_wrap_IntVarIterator_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38355 PyObject *resultobj = 0;
38357 void *argp1 = 0 ;
38358 int res1 = 0 ;
38359 PyObject * obj0 = 0 ;
38360 bool result;
38361
38362 if (!PyArg_UnpackTuple(args, "IntVarIterator_Ok", 1, 1, &obj0)) SWIG_fail;
38364 if (!SWIG_IsOK(res1)) {
38365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarIterator_Ok" "', argument " "1"" of type '" "operations_research::IntVarIterator const *""'");
38366 }
38367 arg1 = reinterpret_cast< operations_research::IntVarIterator * >(argp1);
38368 {
38369 try {
38370 result = (bool)((operations_research::IntVarIterator const *)arg1)->Ok();
38371 }
38372 catch (Swig::DirectorException &e) {
38373 SWIG_fail;
38374 }
38375 }
38376 resultobj = SWIG_From_bool(static_cast< bool >(result));
38377 return resultobj;
38378fail:
38379 return NULL;
38380}
38381
38382
38383SWIGINTERN PyObject *_wrap_IntVarIterator_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38384 PyObject *resultobj = 0;
38386 void *argp1 = 0 ;
38387 int res1 = 0 ;
38388 PyObject * obj0 = 0 ;
38389 int64_t result;
38390
38391 if (!PyArg_UnpackTuple(args, "IntVarIterator_Value", 1, 1, &obj0)) SWIG_fail;
38393 if (!SWIG_IsOK(res1)) {
38394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarIterator_Value" "', argument " "1"" of type '" "operations_research::IntVarIterator const *""'");
38395 }
38396 arg1 = reinterpret_cast< operations_research::IntVarIterator * >(argp1);
38397 {
38398 try {
38399 result = (int64_t)((operations_research::IntVarIterator const *)arg1)->Value();
38400 }
38401 catch (Swig::DirectorException &e) {
38402 SWIG_fail;
38403 }
38404 }
38405 resultobj = SWIG_From_long(static_cast< long >(result));
38406 return resultobj;
38407fail:
38408 return NULL;
38409}
38410
38411
38412SWIGINTERN PyObject *_wrap_IntVarIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38413 PyObject *resultobj = 0;
38415 void *argp1 = 0 ;
38416 int res1 = 0 ;
38417 PyObject * obj0 = 0 ;
38418
38419 if (!PyArg_UnpackTuple(args, "IntVarIterator_Next", 1, 1, &obj0)) SWIG_fail;
38421 if (!SWIG_IsOK(res1)) {
38422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarIterator_Next" "', argument " "1"" of type '" "operations_research::IntVarIterator *""'");
38423 }
38424 arg1 = reinterpret_cast< operations_research::IntVarIterator * >(argp1);
38425 {
38426 try {
38427 (arg1)->Next();
38428 }
38429 catch (Swig::DirectorException &e) {
38430 SWIG_fail;
38431 }
38432 }
38433 resultobj = SWIG_Py_Void();
38434 return resultobj;
38435fail:
38436 return NULL;
38437}
38438
38439
38440SWIGINTERN PyObject *_wrap_IntVarIterator_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38441 PyObject *resultobj = 0;
38443 void *argp1 = 0 ;
38444 int res1 = 0 ;
38445 PyObject * obj0 = 0 ;
38446 std::string result;
38447
38448 if (!PyArg_UnpackTuple(args, "IntVarIterator_DebugString", 1, 1, &obj0)) SWIG_fail;
38450 if (!SWIG_IsOK(res1)) {
38451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarIterator_DebugString" "', argument " "1"" of type '" "operations_research::IntVarIterator const *""'");
38452 }
38453 arg1 = reinterpret_cast< operations_research::IntVarIterator * >(argp1);
38454 {
38455 try {
38456 result = ((operations_research::IntVarIterator const *)arg1)->DebugString();
38457 }
38458 catch (Swig::DirectorException &e) {
38459 SWIG_fail;
38460 }
38461 }
38462 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
38463 return resultobj;
38464fail:
38465 return NULL;
38466}
38467
38468
38469SWIGINTERN PyObject *IntVarIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38470 PyObject *obj;
38471 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
38473 return SWIG_Py_Void();
38474}
38475
38476SWIGINTERN PyObject *_wrap_IntVar_IsVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38477 PyObject *resultobj = 0;
38479 void *argp1 = 0 ;
38480 int res1 = 0 ;
38481 PyObject * obj0 = 0 ;
38482 bool result;
38483
38484 if (!PyArg_UnpackTuple(args, "IntVar_IsVar", 1, 1, &obj0)) SWIG_fail;
38485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
38486 if (!SWIG_IsOK(res1)) {
38487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar_IsVar" "', argument " "1"" of type '" "operations_research::IntVar const *""'");
38488 }
38489 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38490 {
38491 try {
38492 result = (bool)((operations_research::IntVar const *)arg1)->IsVar();
38493 }
38494 catch (Swig::DirectorException &e) {
38495 SWIG_fail;
38496 }
38497 }
38498 resultobj = SWIG_From_bool(static_cast< bool >(result));
38499 return resultobj;
38500fail:
38501 return NULL;
38502}
38503
38504
38505SWIGINTERN PyObject *_wrap_IntVar_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38506 PyObject *resultobj = 0;
38508 void *argp1 = 0 ;
38509 int res1 = 0 ;
38510 PyObject * obj0 = 0 ;
38511 operations_research::IntVar *result = 0 ;
38512
38513 if (!PyArg_UnpackTuple(args, "IntVar_Var", 1, 1, &obj0)) SWIG_fail;
38514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
38515 if (!SWIG_IsOK(res1)) {
38516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar_Var" "', argument " "1"" of type '" "operations_research::IntVar *""'");
38517 }
38518 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38519 {
38520 try {
38521 result = (operations_research::IntVar *)(arg1)->Var();
38522 }
38523 catch (Swig::DirectorException &e) {
38524 SWIG_fail;
38525 }
38526 }
38528 return resultobj;
38529fail:
38530 return NULL;
38531}
38532
38533
38534SWIGINTERN PyObject *_wrap_IntVar_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38535 PyObject *resultobj = 0;
38537 void *argp1 = 0 ;
38538 int res1 = 0 ;
38539 PyObject * obj0 = 0 ;
38540 int64_t result;
38541
38542 if (!PyArg_UnpackTuple(args, "IntVar_Value", 1, 1, &obj0)) SWIG_fail;
38543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
38544 if (!SWIG_IsOK(res1)) {
38545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar_Value" "', argument " "1"" of type '" "operations_research::IntVar const *""'");
38546 }
38547 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38548 {
38549 try {
38550 result = (int64_t)((operations_research::IntVar const *)arg1)->Value();
38551 }
38552 catch (Swig::DirectorException &e) {
38553 SWIG_fail;
38554 }
38555 }
38556 resultobj = SWIG_From_long(static_cast< long >(result));
38557 return resultobj;
38558fail:
38559 return NULL;
38560}
38561
38562
38563SWIGINTERN PyObject *_wrap_IntVar_RemoveValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38564 PyObject *resultobj = 0;
38566 int64_t arg2 ;
38567 void *argp1 = 0 ;
38568 int res1 = 0 ;
38569 long val2 ;
38570 int ecode2 = 0 ;
38571 PyObject * obj0 = 0 ;
38572 PyObject * obj1 = 0 ;
38573
38574 if (!PyArg_UnpackTuple(args, "IntVar_RemoveValue", 2, 2, &obj0, &obj1)) SWIG_fail;
38575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
38576 if (!SWIG_IsOK(res1)) {
38577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar_RemoveValue" "', argument " "1"" of type '" "operations_research::IntVar *""'");
38578 }
38579 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38580 ecode2 = SWIG_AsVal_long(obj1, &val2);
38581 if (!SWIG_IsOK(ecode2)) {
38582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVar_RemoveValue" "', argument " "2"" of type '" "int64_t""'");
38583 }
38584 arg2 = static_cast< int64_t >(val2);
38585 {
38586 operations_research::Solver* const solver = arg1->solver();
38587 FailureProtect protect;
38588 solver->set_fail_intercept([&protect]() {
38589 protect.JumpBack();
38590 });
38591 if (setjmp(protect.exception_buffer) == 0) {
38592 (arg1)->RemoveValue(arg2);
38593 solver->clear_fail_intercept();
38594 } else {
38595 solver->clear_fail_intercept();
38596 // IMPORTANT: the type and message of the exception raised matter,
38597 // because they are caught by the python overrides of some CP classes.
38598 // See the occurrences of the "PyExc_Exception" string below.
38599 PyErr_SetString(PyExc_Exception, "CP Solver fail");
38600 SWIG_fail;
38601 }
38602 }
38603 resultobj = SWIG_Py_Void();
38604 return resultobj;
38605fail:
38606 return NULL;
38607}
38608
38609
38610SWIGINTERN PyObject *_wrap_IntVar_RemoveInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38611 PyObject *resultobj = 0;
38613 int64_t arg2 ;
38614 int64_t arg3 ;
38615 void *argp1 = 0 ;
38616 int res1 = 0 ;
38617 long val2 ;
38618 int ecode2 = 0 ;
38619 long val3 ;
38620 int ecode3 = 0 ;
38621 PyObject * obj0 = 0 ;
38622 PyObject * obj1 = 0 ;
38623 PyObject * obj2 = 0 ;
38624
38625 if (!PyArg_UnpackTuple(args, "IntVar_RemoveInterval", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
38626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
38627 if (!SWIG_IsOK(res1)) {
38628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar_RemoveInterval" "', argument " "1"" of type '" "operations_research::IntVar *""'");
38629 }
38630 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38631 ecode2 = SWIG_AsVal_long(obj1, &val2);
38632 if (!SWIG_IsOK(ecode2)) {
38633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVar_RemoveInterval" "', argument " "2"" of type '" "int64_t""'");
38634 }
38635 arg2 = static_cast< int64_t >(val2);
38636 ecode3 = SWIG_AsVal_long(obj2, &val3);
38637 if (!SWIG_IsOK(ecode3)) {
38638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVar_RemoveInterval" "', argument " "3"" of type '" "int64_t""'");
38639 }
38640 arg3 = static_cast< int64_t >(val3);
38641 {
38642 try {
38643 (arg1)->RemoveInterval(arg2,arg3);
38644 }
38645 catch (Swig::DirectorException &e) {
38646 SWIG_fail;
38647 }
38648 }
38649 resultobj = SWIG_Py_Void();
38650 return resultobj;
38651fail:
38652 return NULL;
38653}
38654
38655
38656SWIGINTERN PyObject *_wrap_IntVar_RemoveValues(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38657 PyObject *resultobj = 0;
38659 std::vector< int64_t > *arg2 = 0 ;
38660 void *argp1 = 0 ;
38661 int res1 = 0 ;
38662 std::vector< int64_t > temp2 ;
38663 PyObject * obj0 = 0 ;
38664 PyObject * obj1 = 0 ;
38665
38666 if (!PyArg_UnpackTuple(args, "IntVar_RemoveValues", 2, 2, &obj0, &obj1)) SWIG_fail;
38667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
38668 if (!SWIG_IsOK(res1)) {
38669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar_RemoveValues" "', argument " "1"" of type '" "operations_research::IntVar *""'");
38670 }
38671 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38672 {
38673 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38674 if (!PyErr_Occurred())
38675 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
38676 return NULL;
38677 }
38678 arg2 = &temp2;
38679 }
38680 {
38681 operations_research::Solver* const solver = arg1->solver();
38682 FailureProtect protect;
38683 solver->set_fail_intercept([&protect]() {
38684 protect.JumpBack();
38685 });
38686 if (setjmp(protect.exception_buffer) == 0) {
38687 (arg1)->RemoveValues((std::vector< int64_t > const &)*arg2);
38688 solver->clear_fail_intercept();
38689 } else {
38690 solver->clear_fail_intercept();
38691 // IMPORTANT: the type and message of the exception raised matter,
38692 // because they are caught by the python overrides of some CP classes.
38693 // See the occurrences of the "PyExc_Exception" string below.
38694 PyErr_SetString(PyExc_Exception, "CP Solver fail");
38695 SWIG_fail;
38696 }
38697 }
38698 resultobj = SWIG_Py_Void();
38699 return resultobj;
38700fail:
38701 return NULL;
38702}
38703
38704
38705SWIGINTERN PyObject *_wrap_IntVar_SetValues(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38706 PyObject *resultobj = 0;
38708 std::vector< int64_t > *arg2 = 0 ;
38709 void *argp1 = 0 ;
38710 int res1 = 0 ;
38711 std::vector< int64_t > temp2 ;
38712 PyObject * obj0 = 0 ;
38713 PyObject * obj1 = 0 ;
38714
38715 if (!PyArg_UnpackTuple(args, "IntVar_SetValues", 2, 2, &obj0, &obj1)) SWIG_fail;
38716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
38717 if (!SWIG_IsOK(res1)) {
38718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar_SetValues" "', argument " "1"" of type '" "operations_research::IntVar *""'");
38719 }
38720 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38721 {
38722 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38723 if (!PyErr_Occurred())
38724 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
38725 return NULL;
38726 }
38727 arg2 = &temp2;
38728 }
38729 {
38730 try {
38731 (arg1)->SetValues((std::vector< int64_t > const &)*arg2);
38732 }
38733 catch (Swig::DirectorException &e) {
38734 SWIG_fail;
38735 }
38736 }
38737 resultobj = SWIG_Py_Void();
38738 return resultobj;
38739fail:
38740 return NULL;
38741}
38742
38743
38744SWIGINTERN PyObject *_wrap_IntVar_WhenBound__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38745 PyObject *resultobj = 0;
38748 void *argp1 = 0 ;
38749 int res1 = 0 ;
38750 void *argp2 = 0 ;
38751 int res2 = 0 ;
38752 PyObject * obj0 = 0 ;
38753 PyObject * obj1 = 0 ;
38754
38755 if (!PyArg_UnpackTuple(args, "IntVar_WhenBound", 2, 2, &obj0, &obj1)) SWIG_fail;
38756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
38757 if (!SWIG_IsOK(res1)) {
38758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar_WhenBound" "', argument " "1"" of type '" "operations_research::IntVar *""'");
38759 }
38760 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38761 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
38762 if (!SWIG_IsOK(res2)) {
38763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntVar_WhenBound" "', argument " "2"" of type '" "operations_research::Demon *""'");
38764 }
38765 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
38766 {
38767 try {
38768 (arg1)->WhenBound(arg2);
38769 }
38770 catch (Swig::DirectorException &e) {
38771 SWIG_fail;
38772 }
38773 }
38774 resultobj = SWIG_Py_Void();
38775 return resultobj;
38776fail:
38777 return NULL;
38778}
38779
38780
38781SWIGINTERN PyObject *_wrap_IntVar_WhenBound__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38782 PyObject *resultobj = 0;
38785 void *argp1 = 0 ;
38786 int res1 = 0 ;
38787 PyObject * obj0 = 0 ;
38788 PyObject * obj1 = 0 ;
38789
38790 if (!PyArg_UnpackTuple(args, "IntVar_WhenBound", 2, 2, &obj0, &obj1)) SWIG_fail;
38791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
38792 if (!SWIG_IsOK(res1)) {
38793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar_WhenBound" "', argument " "1"" of type '" "operations_research::IntVar *""'");
38794 }
38795 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38796 {
38797 SharedPyPtr input(obj1);
38798 arg2 = [input]() {
38799 return InvokePythonCallableReturning<void>(input.get());
38800 };
38801 }
38802 {
38803 try {
38804 (arg1)->WhenBound(arg2);
38805 }
38806 catch (Swig::DirectorException &e) {
38807 SWIG_fail;
38808 }
38809 }
38810 resultobj = SWIG_Py_Void();
38811 return resultobj;
38812fail:
38813 return NULL;
38814}
38815
38816
38817SWIGINTERN PyObject *_wrap_IntVar_WhenBound(PyObject *self, PyObject *args) {
38818 Py_ssize_t argc;
38819 PyObject *argv[3] = {
38820 0
38821 };
38822 Py_ssize_t ii;
38823
38824 if (!PyTuple_Check(args)) SWIG_fail;
38825 argc = PyObject_Length(args);
38826 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
38827 argv[ii] = PyTuple_GET_ITEM(args,ii);
38828 }
38829 if (argc == 2) {
38830 int _v;
38831 void *vptr = 0;
38832 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntVar, 0);
38833 _v = SWIG_CheckState(res);
38834 if (_v) {
38835 void *vptr = 0;
38836 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Demon, 0);
38837 _v = SWIG_CheckState(res);
38838 if (_v) {
38839 return _wrap_IntVar_WhenBound__SWIG_0(self, args);
38840 }
38841 }
38842 }
38843 if (argc == 2) {
38844 int _v;
38845 void *vptr = 0;
38846 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntVar, 0);
38847 _v = SWIG_CheckState(res);
38848 if (_v) {
38849 {
38850 _v = PyCallable_Check(argv[1]);
38851 }
38852 if (_v) {
38853 return _wrap_IntVar_WhenBound__SWIG_1(self, args);
38854 }
38855 }
38856 }
38857
38858fail:
38859 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntVar_WhenBound'.\n"
38860 " Possible C/C++ prototypes are:\n"
38861 " operations_research::IntVar::WhenBound(operations_research::Demon *)\n"
38862 " operations_research::IntVar::WhenBound(operations_research::Solver::Closure)\n");
38863 return 0;
38864}
38865
38866
38867SWIGINTERN PyObject *_wrap_IntVar_WhenDomain__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38868 PyObject *resultobj = 0;
38871 void *argp1 = 0 ;
38872 int res1 = 0 ;
38873 void *argp2 = 0 ;
38874 int res2 = 0 ;
38875 PyObject * obj0 = 0 ;
38876 PyObject * obj1 = 0 ;
38877
38878 if (!PyArg_UnpackTuple(args, "IntVar_WhenDomain", 2, 2, &obj0, &obj1)) SWIG_fail;
38879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
38880 if (!SWIG_IsOK(res1)) {
38881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar_WhenDomain" "', argument " "1"" of type '" "operations_research::IntVar *""'");
38882 }
38883 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38884 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
38885 if (!SWIG_IsOK(res2)) {
38886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntVar_WhenDomain" "', argument " "2"" of type '" "operations_research::Demon *""'");
38887 }
38888 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
38889 {
38890 try {
38891 (arg1)->WhenDomain(arg2);
38892 }
38893 catch (Swig::DirectorException &e) {
38894 SWIG_fail;
38895 }
38896 }
38897 resultobj = SWIG_Py_Void();
38898 return resultobj;
38899fail:
38900 return NULL;
38901}
38902
38903
38904SWIGINTERN PyObject *_wrap_IntVar_WhenDomain__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38905 PyObject *resultobj = 0;
38908 void *argp1 = 0 ;
38909 int res1 = 0 ;
38910 PyObject * obj0 = 0 ;
38911 PyObject * obj1 = 0 ;
38912
38913 if (!PyArg_UnpackTuple(args, "IntVar_WhenDomain", 2, 2, &obj0, &obj1)) SWIG_fail;
38914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
38915 if (!SWIG_IsOK(res1)) {
38916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar_WhenDomain" "', argument " "1"" of type '" "operations_research::IntVar *""'");
38917 }
38918 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38919 {
38920 SharedPyPtr input(obj1);
38921 arg2 = [input]() {
38922 return InvokePythonCallableReturning<void>(input.get());
38923 };
38924 }
38925 {
38926 try {
38927 (arg1)->WhenDomain(arg2);
38928 }
38929 catch (Swig::DirectorException &e) {
38930 SWIG_fail;
38931 }
38932 }
38933 resultobj = SWIG_Py_Void();
38934 return resultobj;
38935fail:
38936 return NULL;
38937}
38938
38939
38940SWIGINTERN PyObject *_wrap_IntVar_WhenDomain(PyObject *self, PyObject *args) {
38941 Py_ssize_t argc;
38942 PyObject *argv[3] = {
38943 0
38944 };
38945 Py_ssize_t ii;
38946
38947 if (!PyTuple_Check(args)) SWIG_fail;
38948 argc = PyObject_Length(args);
38949 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
38950 argv[ii] = PyTuple_GET_ITEM(args,ii);
38951 }
38952 if (argc == 2) {
38953 int _v;
38954 void *vptr = 0;
38955 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntVar, 0);
38956 _v = SWIG_CheckState(res);
38957 if (_v) {
38958 void *vptr = 0;
38959 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Demon, 0);
38960 _v = SWIG_CheckState(res);
38961 if (_v) {
38962 return _wrap_IntVar_WhenDomain__SWIG_0(self, args);
38963 }
38964 }
38965 }
38966 if (argc == 2) {
38967 int _v;
38968 void *vptr = 0;
38969 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__IntVar, 0);
38970 _v = SWIG_CheckState(res);
38971 if (_v) {
38972 {
38973 _v = PyCallable_Check(argv[1]);
38974 }
38975 if (_v) {
38976 return _wrap_IntVar_WhenDomain__SWIG_1(self, args);
38977 }
38978 }
38979 }
38980
38981fail:
38982 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntVar_WhenDomain'.\n"
38983 " Possible C/C++ prototypes are:\n"
38984 " operations_research::IntVar::WhenDomain(operations_research::Demon *)\n"
38985 " operations_research::IntVar::WhenDomain(operations_research::Solver::Closure)\n");
38986 return 0;
38987}
38988
38989
38990SWIGINTERN PyObject *_wrap_IntVar_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38991 PyObject *resultobj = 0;
38993 void *argp1 = 0 ;
38994 int res1 = 0 ;
38995 PyObject * obj0 = 0 ;
38996 uint64_t result;
38997
38998 if (!PyArg_UnpackTuple(args, "IntVar_Size", 1, 1, &obj0)) SWIG_fail;
38999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
39000 if (!SWIG_IsOK(res1)) {
39001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar_Size" "', argument " "1"" of type '" "operations_research::IntVar const *""'");
39002 }
39003 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
39004 {
39005 try {
39006 result = (uint64_t)((operations_research::IntVar const *)arg1)->Size();
39007 }
39008 catch (Swig::DirectorException &e) {
39009 SWIG_fail;
39010 }
39011 }
39012 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
39013 return resultobj;
39014fail:
39015 return NULL;
39016}
39017
39018
39019SWIGINTERN PyObject *_wrap_IntVar_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39020 PyObject *resultobj = 0;
39022 int64_t arg2 ;
39023 void *argp1 = 0 ;
39024 int res1 = 0 ;
39025 long val2 ;
39026 int ecode2 = 0 ;
39027 PyObject * obj0 = 0 ;
39028 PyObject * obj1 = 0 ;
39029 bool result;
39030
39031 if (!PyArg_UnpackTuple(args, "IntVar_Contains", 2, 2, &obj0, &obj1)) SWIG_fail;
39032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
39033 if (!SWIG_IsOK(res1)) {
39034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar_Contains" "', argument " "1"" of type '" "operations_research::IntVar const *""'");
39035 }
39036 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
39037 ecode2 = SWIG_AsVal_long(obj1, &val2);
39038 if (!SWIG_IsOK(ecode2)) {
39039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVar_Contains" "', argument " "2"" of type '" "int64_t""'");
39040 }
39041 arg2 = static_cast< int64_t >(val2);
39042 {
39043 try {
39044 result = (bool)((operations_research::IntVar const *)arg1)->Contains(arg2);
39045 }
39046 catch (Swig::DirectorException &e) {
39047 SWIG_fail;
39048 }
39049 }
39050 resultobj = SWIG_From_bool(static_cast< bool >(result));
39051 return resultobj;
39052fail:
39053 return NULL;
39054}
39055
39056
39057SWIGINTERN PyObject *_wrap_IntVar_HoleIteratorAux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39058 PyObject *resultobj = 0;
39060 bool arg2 ;
39061 void *argp1 = 0 ;
39062 int res1 = 0 ;
39063 bool val2 ;
39064 int ecode2 = 0 ;
39065 PyObject * obj0 = 0 ;
39066 PyObject * obj1 = 0 ;
39068
39069 if (!PyArg_UnpackTuple(args, "IntVar_HoleIteratorAux", 2, 2, &obj0, &obj1)) SWIG_fail;
39070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
39071 if (!SWIG_IsOK(res1)) {
39072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar_HoleIteratorAux" "', argument " "1"" of type '" "operations_research::IntVar const *""'");
39073 }
39074 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
39075 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39076 if (!SWIG_IsOK(ecode2)) {
39077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVar_HoleIteratorAux" "', argument " "2"" of type '" "bool""'");
39078 }
39079 arg2 = static_cast< bool >(val2);
39080 {
39081 try {
39082 result = (operations_research::IntVarIterator *)((operations_research::IntVar const *)arg1)->MakeHoleIterator(arg2);
39083 }
39084 catch (Swig::DirectorException &e) {
39085 SWIG_fail;
39086 }
39087 }
39089 return resultobj;
39090fail:
39091 return NULL;
39092}
39093
39094
39095SWIGINTERN PyObject *_wrap_IntVar_DomainIteratorAux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39096 PyObject *resultobj = 0;
39098 bool arg2 ;
39099 void *argp1 = 0 ;
39100 int res1 = 0 ;
39101 bool val2 ;
39102 int ecode2 = 0 ;
39103 PyObject * obj0 = 0 ;
39104 PyObject * obj1 = 0 ;
39106
39107 if (!PyArg_UnpackTuple(args, "IntVar_DomainIteratorAux", 2, 2, &obj0, &obj1)) SWIG_fail;
39108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
39109 if (!SWIG_IsOK(res1)) {
39110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar_DomainIteratorAux" "', argument " "1"" of type '" "operations_research::IntVar const *""'");
39111 }
39112 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
39113 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39114 if (!SWIG_IsOK(ecode2)) {
39115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVar_DomainIteratorAux" "', argument " "2"" of type '" "bool""'");
39116 }
39117 arg2 = static_cast< bool >(val2);
39118 {
39119 try {
39120 result = (operations_research::IntVarIterator *)((operations_research::IntVar const *)arg1)->MakeDomainIterator(arg2);
39121 }
39122 catch (Swig::DirectorException &e) {
39123 SWIG_fail;
39124 }
39125 }
39127 return resultobj;
39128fail:
39129 return NULL;
39130}
39131
39132
39133SWIGINTERN PyObject *_wrap_IntVar_OldMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39134 PyObject *resultobj = 0;
39136 void *argp1 = 0 ;
39137 int res1 = 0 ;
39138 PyObject * obj0 = 0 ;
39139 int64_t result;
39140
39141 if (!PyArg_UnpackTuple(args, "IntVar_OldMin", 1, 1, &obj0)) SWIG_fail;
39142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
39143 if (!SWIG_IsOK(res1)) {
39144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar_OldMin" "', argument " "1"" of type '" "operations_research::IntVar const *""'");
39145 }
39146 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
39147 {
39148 try {
39149 result = (int64_t)((operations_research::IntVar const *)arg1)->OldMin();
39150 }
39151 catch (Swig::DirectorException &e) {
39152 SWIG_fail;
39153 }
39154 }
39155 resultobj = SWIG_From_long(static_cast< long >(result));
39156 return resultobj;
39157fail:
39158 return NULL;
39159}
39160
39161
39162SWIGINTERN PyObject *_wrap_IntVar_OldMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39163 PyObject *resultobj = 0;
39165 void *argp1 = 0 ;
39166 int res1 = 0 ;
39167 PyObject * obj0 = 0 ;
39168 int64_t result;
39169
39170 if (!PyArg_UnpackTuple(args, "IntVar_OldMax", 1, 1, &obj0)) SWIG_fail;
39171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
39172 if (!SWIG_IsOK(res1)) {
39173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar_OldMax" "', argument " "1"" of type '" "operations_research::IntVar const *""'");
39174 }
39175 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
39176 {
39177 try {
39178 result = (int64_t)((operations_research::IntVar const *)arg1)->OldMax();
39179 }
39180 catch (Swig::DirectorException &e) {
39181 SWIG_fail;
39182 }
39183 }
39184 resultobj = SWIG_From_long(static_cast< long >(result));
39185 return resultobj;
39186fail:
39187 return NULL;
39188}
39189
39190
39191SWIGINTERN PyObject *_wrap_IntVar___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39192 PyObject *resultobj = 0;
39194 void *argp1 = 0 ;
39195 int res1 = 0 ;
39196 PyObject * obj0 = 0 ;
39197 std::string result;
39198
39199 if (!PyArg_UnpackTuple(args, "IntVar___repr__", 1, 1, &obj0)) SWIG_fail;
39200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
39201 if (!SWIG_IsOK(res1)) {
39202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar___repr__" "', argument " "1"" of type '" "operations_research::IntVar *""'");
39203 }
39204 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
39205 {
39206 try {
39208 }
39209 catch (Swig::DirectorException &e) {
39210 SWIG_fail;
39211 }
39212 }
39213 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
39214 return resultobj;
39215fail:
39216 return NULL;
39217}
39218
39219
39220SWIGINTERN PyObject *_wrap_IntVar___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39221 PyObject *resultobj = 0;
39223 void *argp1 = 0 ;
39224 int res1 = 0 ;
39225 PyObject * obj0 = 0 ;
39226 std::string result;
39227
39228 if (!PyArg_UnpackTuple(args, "IntVar___str__", 1, 1, &obj0)) SWIG_fail;
39229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
39230 if (!SWIG_IsOK(res1)) {
39231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVar___str__" "', argument " "1"" of type '" "operations_research::IntVar *""'");
39232 }
39233 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
39234 {
39235 try {
39236 result = operations_research_IntVar___str__(arg1);
39237 }
39238 catch (Swig::DirectorException &e) {
39239 SWIG_fail;
39240 }
39241 }
39242 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
39243 return resultobj;
39244fail:
39245 return NULL;
39246}
39247
39248
39249SWIGINTERN PyObject *IntVar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39250 PyObject *obj;
39251 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
39253 return SWIG_Py_Void();
39254}
39255
39256SWIGINTERN PyObject *_wrap_SolutionCollector_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39257 PyObject *resultobj = 0;
39259 void *argp1 = 0 ;
39260 int res1 = 0 ;
39261 PyObject * obj0 = 0 ;
39262 std::string result;
39263
39264 if (!PyArg_UnpackTuple(args, "SolutionCollector_DebugString", 1, 1, &obj0)) SWIG_fail;
39266 if (!SWIG_IsOK(res1)) {
39267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_DebugString" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39268 }
39269 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39270 {
39271 try {
39272 result = ((operations_research::SolutionCollector const *)arg1)->DebugString();
39273 }
39274 catch (Swig::DirectorException &e) {
39275 SWIG_fail;
39276 }
39277 }
39278 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
39279 return resultobj;
39280fail:
39281 return NULL;
39282}
39283
39284
39285SWIGINTERN PyObject *_wrap_SolutionCollector_Add__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39286 PyObject *resultobj = 0;
39289 void *argp1 = 0 ;
39290 int res1 = 0 ;
39291 PyObject * obj0 = 0 ;
39292 PyObject * obj1 = 0 ;
39293
39294 if (!PyArg_UnpackTuple(args, "SolutionCollector_Add", 2, 2, &obj0, &obj1)) SWIG_fail;
39296 if (!SWIG_IsOK(res1)) {
39297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_Add" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39298 }
39299 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39300 {
39301 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
39302 }
39303 {
39304 try {
39305 (arg1)->Add(arg2);
39306 }
39307 catch (Swig::DirectorException &e) {
39308 SWIG_fail;
39309 }
39310 }
39311 resultobj = SWIG_Py_Void();
39312 return resultobj;
39313fail:
39314 return NULL;
39315}
39316
39317
39318SWIGINTERN PyObject *_wrap_SolutionCollector_Add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39319 PyObject *resultobj = 0;
39321 std::vector< operations_research::IntVar * > *arg2 = 0 ;
39322 void *argp1 = 0 ;
39323 int res1 = 0 ;
39324 std::vector< operations_research::IntVar * > temp2 ;
39325 PyObject * obj0 = 0 ;
39326 PyObject * obj1 = 0 ;
39327
39328 if (!PyArg_UnpackTuple(args, "SolutionCollector_Add", 2, 2, &obj0, &obj1)) SWIG_fail;
39330 if (!SWIG_IsOK(res1)) {
39331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_Add" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39332 }
39333 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39334 {
39335 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
39336 if (!PyErr_Occurred())
39337 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
39338 return NULL;
39339 }
39340 arg2 = &temp2;
39341 }
39342 {
39343 try {
39344 (arg1)->Add((std::vector< operations_research::IntVar * > const &)*arg2);
39345 }
39346 catch (Swig::DirectorException &e) {
39347 SWIG_fail;
39348 }
39349 }
39350 resultobj = SWIG_Py_Void();
39351 return resultobj;
39352fail:
39353 return NULL;
39354}
39355
39356
39357SWIGINTERN PyObject *_wrap_SolutionCollector_Add__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39358 PyObject *resultobj = 0;
39361 void *argp1 = 0 ;
39362 int res1 = 0 ;
39363 PyObject * obj0 = 0 ;
39364 PyObject * obj1 = 0 ;
39365
39366 if (!PyArg_UnpackTuple(args, "SolutionCollector_Add", 2, 2, &obj0, &obj1)) SWIG_fail;
39368 if (!SWIG_IsOK(res1)) {
39369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_Add" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39370 }
39371 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39372 {
39373 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
39374 }
39375 {
39376 try {
39377 (arg1)->Add(arg2);
39378 }
39379 catch (Swig::DirectorException &e) {
39380 SWIG_fail;
39381 }
39382 }
39383 resultobj = SWIG_Py_Void();
39384 return resultobj;
39385fail:
39386 return NULL;
39387}
39388
39389
39390SWIGINTERN PyObject *_wrap_SolutionCollector_Add__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39391 PyObject *resultobj = 0;
39393 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
39394 void *argp1 = 0 ;
39395 int res1 = 0 ;
39396 std::vector< operations_research::IntervalVar * > temp2 ;
39397 PyObject * obj0 = 0 ;
39398 PyObject * obj1 = 0 ;
39399
39400 if (!PyArg_UnpackTuple(args, "SolutionCollector_Add", 2, 2, &obj0, &obj1)) SWIG_fail;
39402 if (!SWIG_IsOK(res1)) {
39403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_Add" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39404 }
39405 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39406 {
39407 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
39408 if (!PyErr_Occurred())
39409 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntervalVar*) expected");
39410 return NULL;
39411 }
39412 arg2 = &temp2;
39413 }
39414 {
39415 try {
39416 (arg1)->Add((std::vector< operations_research::IntervalVar * > const &)*arg2);
39417 }
39418 catch (Swig::DirectorException &e) {
39419 SWIG_fail;
39420 }
39421 }
39422 resultobj = SWIG_Py_Void();
39423 return resultobj;
39424fail:
39425 return NULL;
39426}
39427
39428
39429SWIGINTERN PyObject *_wrap_SolutionCollector_Add__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39430 PyObject *resultobj = 0;
39433 void *argp1 = 0 ;
39434 int res1 = 0 ;
39435 PyObject * obj0 = 0 ;
39436 PyObject * obj1 = 0 ;
39437
39438 if (!PyArg_UnpackTuple(args, "SolutionCollector_Add", 2, 2, &obj0, &obj1)) SWIG_fail;
39440 if (!SWIG_IsOK(res1)) {
39441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_Add" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39442 }
39443 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39444 {
39445 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
39446 }
39447 {
39448 try {
39449 (arg1)->Add(arg2);
39450 }
39451 catch (Swig::DirectorException &e) {
39452 SWIG_fail;
39453 }
39454 }
39455 resultobj = SWIG_Py_Void();
39456 return resultobj;
39457fail:
39458 return NULL;
39459}
39460
39461
39462SWIGINTERN PyObject *_wrap_SolutionCollector_Add__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39463 PyObject *resultobj = 0;
39465 std::vector< operations_research::SequenceVar * > *arg2 = 0 ;
39466 void *argp1 = 0 ;
39467 int res1 = 0 ;
39468 std::vector< operations_research::SequenceVar * > temp2 ;
39469 PyObject * obj0 = 0 ;
39470 PyObject * obj1 = 0 ;
39471
39472 if (!PyArg_UnpackTuple(args, "SolutionCollector_Add", 2, 2, &obj0, &obj1)) SWIG_fail;
39474 if (!SWIG_IsOK(res1)) {
39475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_Add" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39476 }
39477 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39478 {
39479 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::SequenceVar*>)) {
39480 if (!PyErr_Occurred())
39481 SWIG_Error(SWIG_TypeError, "sequence(operations_research::SequenceVar*) expected");
39482 return NULL;
39483 }
39484 arg2 = &temp2;
39485 }
39486 {
39487 try {
39488 (arg1)->Add((std::vector< operations_research::SequenceVar * > const &)*arg2);
39489 }
39490 catch (Swig::DirectorException &e) {
39491 SWIG_fail;
39492 }
39493 }
39494 resultobj = SWIG_Py_Void();
39495 return resultobj;
39496fail:
39497 return NULL;
39498}
39499
39500
39501SWIGINTERN PyObject *_wrap_SolutionCollector_Add(PyObject *self, PyObject *args) {
39502 Py_ssize_t argc;
39503 PyObject *argv[3] = {
39504 0
39505 };
39506 Py_ssize_t ii;
39507
39508 if (!PyTuple_Check(args)) SWIG_fail;
39509 argc = PyObject_Length(args);
39510 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
39511 argv[ii] = PyTuple_GET_ITEM(args,ii);
39512 }
39513 if (argc == 2) {
39514 int _v;
39515 void *vptr = 0;
39517 _v = SWIG_CheckState(res);
39518 if (_v) {
39519 {
39520 _v = CanConvertToIntVar(argv[1]);
39521 if (_v == 0) PyErr_Clear();
39522 }
39523 if (_v) {
39524 return _wrap_SolutionCollector_Add__SWIG_0(self, args);
39525 }
39526 }
39527 }
39528 if (argc == 2) {
39529 int _v;
39530 void *vptr = 0;
39532 _v = SWIG_CheckState(res);
39533 if (_v) {
39534 {
39535 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
39536 _v = 0;
39537 } else {
39538 const bool is_tuple = PyTuple_Check(argv[1]);
39539 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
39540 size_t i = 0;
39541 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
39542 :PyList_GetItem(argv[1], i))) {
39543 ++i;
39544 }
39545 _v = i == size;
39546 }
39547 }
39548 if (_v) {
39549 return _wrap_SolutionCollector_Add__SWIG_1(self, args);
39550 }
39551 }
39552 }
39553 if (argc == 2) {
39554 int _v;
39555 void *vptr = 0;
39557 _v = SWIG_CheckState(res);
39558 if (_v) {
39559 {
39560 _v = CanConvertToIntervalVar(argv[1]);
39561 if (_v == 0) PyErr_Clear();
39562 }
39563 if (_v) {
39564 return _wrap_SolutionCollector_Add__SWIG_2(self, args);
39565 }
39566 }
39567 }
39568 if (argc == 2) {
39569 int _v;
39570 void *vptr = 0;
39572 _v = SWIG_CheckState(res);
39573 if (_v) {
39574 {
39575 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
39576 _v = 0;
39577 } else {
39578 const bool is_tuple = PyTuple_Check(argv[1]);
39579 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
39580 size_t i = 0;
39581 while (i < size && CanConvertToIntervalVar(is_tuple ? PyTuple_GetItem(argv[1], i)
39582 :PyList_GetItem(argv[1], i))) {
39583 ++i;
39584 }
39585 _v = i == size;
39586 }
39587 }
39588 if (_v) {
39589 return _wrap_SolutionCollector_Add__SWIG_3(self, args);
39590 }
39591 }
39592 }
39593 if (argc == 2) {
39594 int _v;
39595 void *vptr = 0;
39597 _v = SWIG_CheckState(res);
39598 if (_v) {
39599 {
39600 _v = CanConvertToSequenceVar(argv[1]);
39601 if (_v == 0) PyErr_Clear();
39602 }
39603 if (_v) {
39604 return _wrap_SolutionCollector_Add__SWIG_4(self, args);
39605 }
39606 }
39607 }
39608 if (argc == 2) {
39609 int _v;
39610 void *vptr = 0;
39612 _v = SWIG_CheckState(res);
39613 if (_v) {
39614 {
39615 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
39616 _v = 0;
39617 } else {
39618 const bool is_tuple = PyTuple_Check(argv[1]);
39619 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
39620 size_t i = 0;
39621 while (i < size && CanConvertToSequenceVar(is_tuple ? PyTuple_GetItem(argv[1], i)
39622 :PyList_GetItem(argv[1], i))) {
39623 ++i;
39624 }
39625 _v = i == size;
39626 }
39627 }
39628 if (_v) {
39629 return _wrap_SolutionCollector_Add__SWIG_5(self, args);
39630 }
39631 }
39632 }
39633
39634fail:
39635 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SolutionCollector_Add'.\n"
39636 " Possible C/C++ prototypes are:\n"
39637 " operations_research::SolutionCollector::Add(operations_research::IntVar *const)\n"
39638 " operations_research::SolutionCollector::Add(std::vector< operations_research::IntVar * > const &)\n"
39639 " operations_research::SolutionCollector::Add(operations_research::IntervalVar *const)\n"
39640 " operations_research::SolutionCollector::Add(std::vector< operations_research::IntervalVar * > const &)\n"
39641 " operations_research::SolutionCollector::Add(operations_research::SequenceVar *const)\n"
39642 " operations_research::SolutionCollector::Add(std::vector< operations_research::SequenceVar * > const &)\n");
39643 return 0;
39644}
39645
39646
39647SWIGINTERN PyObject *_wrap_SolutionCollector_AddObjective(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39648 PyObject *resultobj = 0;
39651 void *argp1 = 0 ;
39652 int res1 = 0 ;
39653 PyObject * obj0 = 0 ;
39654 PyObject * obj1 = 0 ;
39655
39656 if (!PyArg_UnpackTuple(args, "SolutionCollector_AddObjective", 2, 2, &obj0, &obj1)) SWIG_fail;
39658 if (!SWIG_IsOK(res1)) {
39659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_AddObjective" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39660 }
39661 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39662 {
39663 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
39664 }
39665 {
39666 try {
39667 (arg1)->AddObjective(arg2);
39668 }
39669 catch (Swig::DirectorException &e) {
39670 SWIG_fail;
39671 }
39672 }
39673 resultobj = SWIG_Py_Void();
39674 return resultobj;
39675fail:
39676 return NULL;
39677}
39678
39679
39680SWIGINTERN PyObject *_wrap_SolutionCollector_EnterSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39681 PyObject *resultobj = 0;
39683 void *argp1 = 0 ;
39684 int res1 = 0 ;
39685 PyObject * obj0 = 0 ;
39686
39687 if (!PyArg_UnpackTuple(args, "SolutionCollector_EnterSearch", 1, 1, &obj0)) SWIG_fail;
39689 if (!SWIG_IsOK(res1)) {
39690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_EnterSearch" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39691 }
39692 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39693 {
39694 try {
39695 (arg1)->EnterSearch();
39696 }
39697 catch (Swig::DirectorException &e) {
39698 SWIG_fail;
39699 }
39700 }
39701 resultobj = SWIG_Py_Void();
39702 return resultobj;
39703fail:
39704 return NULL;
39705}
39706
39707
39708SWIGINTERN PyObject *_wrap_SolutionCollector_SolutionCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39709 PyObject *resultobj = 0;
39711 void *argp1 = 0 ;
39712 int res1 = 0 ;
39713 PyObject * obj0 = 0 ;
39714 int result;
39715
39716 if (!PyArg_UnpackTuple(args, "SolutionCollector_SolutionCount", 1, 1, &obj0)) SWIG_fail;
39718 if (!SWIG_IsOK(res1)) {
39719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_SolutionCount" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39720 }
39721 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39722 {
39723 try {
39724 result = (int)((operations_research::SolutionCollector const *)arg1)->solution_count();
39725 }
39726 catch (Swig::DirectorException &e) {
39727 SWIG_fail;
39728 }
39729 }
39730 resultobj = SWIG_From_int(static_cast< int >(result));
39731 return resultobj;
39732fail:
39733 return NULL;
39734}
39735
39736
39737SWIGINTERN PyObject *_wrap_SolutionCollector_Solution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39738 PyObject *resultobj = 0;
39740 int arg2 ;
39741 void *argp1 = 0 ;
39742 int res1 = 0 ;
39743 int val2 ;
39744 int ecode2 = 0 ;
39745 PyObject * obj0 = 0 ;
39746 PyObject * obj1 = 0 ;
39748
39749 if (!PyArg_UnpackTuple(args, "SolutionCollector_Solution", 2, 2, &obj0, &obj1)) SWIG_fail;
39751 if (!SWIG_IsOK(res1)) {
39752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_Solution" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39753 }
39754 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39755 ecode2 = SWIG_AsVal_int(obj1, &val2);
39756 if (!SWIG_IsOK(ecode2)) {
39757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SolutionCollector_Solution" "', argument " "2"" of type '" "int""'");
39758 }
39759 arg2 = static_cast< int >(val2);
39760 {
39761 try {
39762 result = (operations_research::Assignment *)((operations_research::SolutionCollector const *)arg1)->solution(arg2);
39763 }
39764 catch (Swig::DirectorException &e) {
39765 SWIG_fail;
39766 }
39767 }
39769 return resultobj;
39770fail:
39771 return NULL;
39772}
39773
39774
39775SWIGINTERN PyObject *_wrap_SolutionCollector_WallTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39776 PyObject *resultobj = 0;
39778 int arg2 ;
39779 void *argp1 = 0 ;
39780 int res1 = 0 ;
39781 int val2 ;
39782 int ecode2 = 0 ;
39783 PyObject * obj0 = 0 ;
39784 PyObject * obj1 = 0 ;
39785 int64_t result;
39786
39787 if (!PyArg_UnpackTuple(args, "SolutionCollector_WallTime", 2, 2, &obj0, &obj1)) SWIG_fail;
39789 if (!SWIG_IsOK(res1)) {
39790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_WallTime" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39791 }
39792 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39793 ecode2 = SWIG_AsVal_int(obj1, &val2);
39794 if (!SWIG_IsOK(ecode2)) {
39795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SolutionCollector_WallTime" "', argument " "2"" of type '" "int""'");
39796 }
39797 arg2 = static_cast< int >(val2);
39798 {
39799 try {
39800 result = (int64_t)((operations_research::SolutionCollector const *)arg1)->wall_time(arg2);
39801 }
39802 catch (Swig::DirectorException &e) {
39803 SWIG_fail;
39804 }
39805 }
39806 resultobj = SWIG_From_long(static_cast< long >(result));
39807 return resultobj;
39808fail:
39809 return NULL;
39810}
39811
39812
39813SWIGINTERN PyObject *_wrap_SolutionCollector_Branches(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39814 PyObject *resultobj = 0;
39816 int arg2 ;
39817 void *argp1 = 0 ;
39818 int res1 = 0 ;
39819 int val2 ;
39820 int ecode2 = 0 ;
39821 PyObject * obj0 = 0 ;
39822 PyObject * obj1 = 0 ;
39823 int64_t result;
39824
39825 if (!PyArg_UnpackTuple(args, "SolutionCollector_Branches", 2, 2, &obj0, &obj1)) SWIG_fail;
39827 if (!SWIG_IsOK(res1)) {
39828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_Branches" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39829 }
39830 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39831 ecode2 = SWIG_AsVal_int(obj1, &val2);
39832 if (!SWIG_IsOK(ecode2)) {
39833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SolutionCollector_Branches" "', argument " "2"" of type '" "int""'");
39834 }
39835 arg2 = static_cast< int >(val2);
39836 {
39837 try {
39838 result = (int64_t)((operations_research::SolutionCollector const *)arg1)->branches(arg2);
39839 }
39840 catch (Swig::DirectorException &e) {
39841 SWIG_fail;
39842 }
39843 }
39844 resultobj = SWIG_From_long(static_cast< long >(result));
39845 return resultobj;
39846fail:
39847 return NULL;
39848}
39849
39850
39851SWIGINTERN PyObject *_wrap_SolutionCollector_Failures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39852 PyObject *resultobj = 0;
39854 int arg2 ;
39855 void *argp1 = 0 ;
39856 int res1 = 0 ;
39857 int val2 ;
39858 int ecode2 = 0 ;
39859 PyObject * obj0 = 0 ;
39860 PyObject * obj1 = 0 ;
39861 int64_t result;
39862
39863 if (!PyArg_UnpackTuple(args, "SolutionCollector_Failures", 2, 2, &obj0, &obj1)) SWIG_fail;
39865 if (!SWIG_IsOK(res1)) {
39866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_Failures" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39867 }
39868 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39869 ecode2 = SWIG_AsVal_int(obj1, &val2);
39870 if (!SWIG_IsOK(ecode2)) {
39871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SolutionCollector_Failures" "', argument " "2"" of type '" "int""'");
39872 }
39873 arg2 = static_cast< int >(val2);
39874 {
39875 try {
39876 result = (int64_t)((operations_research::SolutionCollector const *)arg1)->failures(arg2);
39877 }
39878 catch (Swig::DirectorException &e) {
39879 SWIG_fail;
39880 }
39881 }
39882 resultobj = SWIG_From_long(static_cast< long >(result));
39883 return resultobj;
39884fail:
39885 return NULL;
39886}
39887
39888
39889SWIGINTERN PyObject *_wrap_SolutionCollector_ObjectiveValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39890 PyObject *resultobj = 0;
39892 int arg2 ;
39893 void *argp1 = 0 ;
39894 int res1 = 0 ;
39895 int val2 ;
39896 int ecode2 = 0 ;
39897 PyObject * obj0 = 0 ;
39898 PyObject * obj1 = 0 ;
39899 int64_t result;
39900
39901 if (!PyArg_UnpackTuple(args, "SolutionCollector_ObjectiveValue", 2, 2, &obj0, &obj1)) SWIG_fail;
39903 if (!SWIG_IsOK(res1)) {
39904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_ObjectiveValue" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39905 }
39906 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39907 ecode2 = SWIG_AsVal_int(obj1, &val2);
39908 if (!SWIG_IsOK(ecode2)) {
39909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SolutionCollector_ObjectiveValue" "', argument " "2"" of type '" "int""'");
39910 }
39911 arg2 = static_cast< int >(val2);
39912 {
39913 try {
39914 result = (int64_t)((operations_research::SolutionCollector const *)arg1)->objective_value(arg2);
39915 }
39916 catch (Swig::DirectorException &e) {
39917 SWIG_fail;
39918 }
39919 }
39920 resultobj = SWIG_From_long(static_cast< long >(result));
39921 return resultobj;
39922fail:
39923 return NULL;
39924}
39925
39926
39927SWIGINTERN PyObject *_wrap_SolutionCollector_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39928 PyObject *resultobj = 0;
39930 int arg2 ;
39932 void *argp1 = 0 ;
39933 int res1 = 0 ;
39934 int val2 ;
39935 int ecode2 = 0 ;
39936 PyObject * obj0 = 0 ;
39937 PyObject * obj1 = 0 ;
39938 PyObject * obj2 = 0 ;
39939 int64_t result;
39940
39941 if (!PyArg_UnpackTuple(args, "SolutionCollector_Value", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
39943 if (!SWIG_IsOK(res1)) {
39944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_Value" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39945 }
39946 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39947 ecode2 = SWIG_AsVal_int(obj1, &val2);
39948 if (!SWIG_IsOK(ecode2)) {
39949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SolutionCollector_Value" "', argument " "2"" of type '" "int""'");
39950 }
39951 arg2 = static_cast< int >(val2);
39952 {
39953 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
39954 }
39955 {
39956 try {
39957 result = (int64_t)((operations_research::SolutionCollector const *)arg1)->Value(arg2,arg3);
39958 }
39959 catch (Swig::DirectorException &e) {
39960 SWIG_fail;
39961 }
39962 }
39963 resultobj = SWIG_From_long(static_cast< long >(result));
39964 return resultobj;
39965fail:
39966 return NULL;
39967}
39968
39969
39970SWIGINTERN PyObject *_wrap_SolutionCollector_StartValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39971 PyObject *resultobj = 0;
39973 int arg2 ;
39975 void *argp1 = 0 ;
39976 int res1 = 0 ;
39977 int val2 ;
39978 int ecode2 = 0 ;
39979 PyObject * obj0 = 0 ;
39980 PyObject * obj1 = 0 ;
39981 PyObject * obj2 = 0 ;
39982 int64_t result;
39983
39984 if (!PyArg_UnpackTuple(args, "SolutionCollector_StartValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
39986 if (!SWIG_IsOK(res1)) {
39987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_StartValue" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39988 }
39989 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39990 ecode2 = SWIG_AsVal_int(obj1, &val2);
39991 if (!SWIG_IsOK(ecode2)) {
39992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SolutionCollector_StartValue" "', argument " "2"" of type '" "int""'");
39993 }
39994 arg2 = static_cast< int >(val2);
39995 {
39996 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
39997 }
39998 {
39999 try {
40000 result = (int64_t)((operations_research::SolutionCollector const *)arg1)->StartValue(arg2,arg3);
40001 }
40002 catch (Swig::DirectorException &e) {
40003 SWIG_fail;
40004 }
40005 }
40006 resultobj = SWIG_From_long(static_cast< long >(result));
40007 return resultobj;
40008fail:
40009 return NULL;
40010}
40011
40012
40013SWIGINTERN PyObject *_wrap_SolutionCollector_EndValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40014 PyObject *resultobj = 0;
40016 int arg2 ;
40018 void *argp1 = 0 ;
40019 int res1 = 0 ;
40020 int val2 ;
40021 int ecode2 = 0 ;
40022 PyObject * obj0 = 0 ;
40023 PyObject * obj1 = 0 ;
40024 PyObject * obj2 = 0 ;
40025 int64_t result;
40026
40027 if (!PyArg_UnpackTuple(args, "SolutionCollector_EndValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
40029 if (!SWIG_IsOK(res1)) {
40030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_EndValue" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
40031 }
40032 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
40033 ecode2 = SWIG_AsVal_int(obj1, &val2);
40034 if (!SWIG_IsOK(ecode2)) {
40035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SolutionCollector_EndValue" "', argument " "2"" of type '" "int""'");
40036 }
40037 arg2 = static_cast< int >(val2);
40038 {
40039 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
40040 }
40041 {
40042 try {
40043 result = (int64_t)((operations_research::SolutionCollector const *)arg1)->EndValue(arg2,arg3);
40044 }
40045 catch (Swig::DirectorException &e) {
40046 SWIG_fail;
40047 }
40048 }
40049 resultobj = SWIG_From_long(static_cast< long >(result));
40050 return resultobj;
40051fail:
40052 return NULL;
40053}
40054
40055
40056SWIGINTERN PyObject *_wrap_SolutionCollector_DurationValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40057 PyObject *resultobj = 0;
40059 int arg2 ;
40061 void *argp1 = 0 ;
40062 int res1 = 0 ;
40063 int val2 ;
40064 int ecode2 = 0 ;
40065 PyObject * obj0 = 0 ;
40066 PyObject * obj1 = 0 ;
40067 PyObject * obj2 = 0 ;
40068 int64_t result;
40069
40070 if (!PyArg_UnpackTuple(args, "SolutionCollector_DurationValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
40072 if (!SWIG_IsOK(res1)) {
40073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_DurationValue" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
40074 }
40075 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
40076 ecode2 = SWIG_AsVal_int(obj1, &val2);
40077 if (!SWIG_IsOK(ecode2)) {
40078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SolutionCollector_DurationValue" "', argument " "2"" of type '" "int""'");
40079 }
40080 arg2 = static_cast< int >(val2);
40081 {
40082 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
40083 }
40084 {
40085 try {
40086 result = (int64_t)((operations_research::SolutionCollector const *)arg1)->DurationValue(arg2,arg3);
40087 }
40088 catch (Swig::DirectorException &e) {
40089 SWIG_fail;
40090 }
40091 }
40092 resultobj = SWIG_From_long(static_cast< long >(result));
40093 return resultobj;
40094fail:
40095 return NULL;
40096}
40097
40098
40099SWIGINTERN PyObject *_wrap_SolutionCollector_PerformedValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40100 PyObject *resultobj = 0;
40102 int arg2 ;
40104 void *argp1 = 0 ;
40105 int res1 = 0 ;
40106 int val2 ;
40107 int ecode2 = 0 ;
40108 PyObject * obj0 = 0 ;
40109 PyObject * obj1 = 0 ;
40110 PyObject * obj2 = 0 ;
40111 int64_t result;
40112
40113 if (!PyArg_UnpackTuple(args, "SolutionCollector_PerformedValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
40115 if (!SWIG_IsOK(res1)) {
40116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_PerformedValue" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
40117 }
40118 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
40119 ecode2 = SWIG_AsVal_int(obj1, &val2);
40120 if (!SWIG_IsOK(ecode2)) {
40121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SolutionCollector_PerformedValue" "', argument " "2"" of type '" "int""'");
40122 }
40123 arg2 = static_cast< int >(val2);
40124 {
40125 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
40126 }
40127 {
40128 try {
40129 result = (int64_t)((operations_research::SolutionCollector const *)arg1)->PerformedValue(arg2,arg3);
40130 }
40131 catch (Swig::DirectorException &e) {
40132 SWIG_fail;
40133 }
40134 }
40135 resultobj = SWIG_From_long(static_cast< long >(result));
40136 return resultobj;
40137fail:
40138 return NULL;
40139}
40140
40141
40142SWIGINTERN PyObject *_wrap_SolutionCollector_ForwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40143 PyObject *resultobj = 0;
40145 int arg2 ;
40147 void *argp1 = 0 ;
40148 int res1 = 0 ;
40149 int val2 ;
40150 int ecode2 = 0 ;
40151 PyObject * obj0 = 0 ;
40152 PyObject * obj1 = 0 ;
40153 PyObject * obj2 = 0 ;
40154 std::vector< int > *result = 0 ;
40155
40156 if (!PyArg_UnpackTuple(args, "SolutionCollector_ForwardSequence", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
40158 if (!SWIG_IsOK(res1)) {
40159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_ForwardSequence" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
40160 }
40161 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
40162 ecode2 = SWIG_AsVal_int(obj1, &val2);
40163 if (!SWIG_IsOK(ecode2)) {
40164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SolutionCollector_ForwardSequence" "', argument " "2"" of type '" "int""'");
40165 }
40166 arg2 = static_cast< int >(val2);
40167 {
40168 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
40169 }
40170 {
40171 try {
40172 result = (std::vector< int > *) &((operations_research::SolutionCollector const *)arg1)->ForwardSequence(arg2,arg3);
40173 }
40174 catch (Swig::DirectorException &e) {
40175 SWIG_fail;
40176 }
40177 }
40178 {
40179 resultobj = vector_output_helper(result, &PyInt_FromLong);
40180 }
40181 return resultobj;
40182fail:
40183 return NULL;
40184}
40185
40186
40187SWIGINTERN PyObject *_wrap_SolutionCollector_BackwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40188 PyObject *resultobj = 0;
40190 int arg2 ;
40192 void *argp1 = 0 ;
40193 int res1 = 0 ;
40194 int val2 ;
40195 int ecode2 = 0 ;
40196 PyObject * obj0 = 0 ;
40197 PyObject * obj1 = 0 ;
40198 PyObject * obj2 = 0 ;
40199 std::vector< int > *result = 0 ;
40200
40201 if (!PyArg_UnpackTuple(args, "SolutionCollector_BackwardSequence", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
40203 if (!SWIG_IsOK(res1)) {
40204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_BackwardSequence" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
40205 }
40206 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
40207 ecode2 = SWIG_AsVal_int(obj1, &val2);
40208 if (!SWIG_IsOK(ecode2)) {
40209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SolutionCollector_BackwardSequence" "', argument " "2"" of type '" "int""'");
40210 }
40211 arg2 = static_cast< int >(val2);
40212 {
40213 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
40214 }
40215 {
40216 try {
40217 result = (std::vector< int > *) &((operations_research::SolutionCollector const *)arg1)->BackwardSequence(arg2,arg3);
40218 }
40219 catch (Swig::DirectorException &e) {
40220 SWIG_fail;
40221 }
40222 }
40223 {
40224 resultobj = vector_output_helper(result, &PyInt_FromLong);
40225 }
40226 return resultobj;
40227fail:
40228 return NULL;
40229}
40230
40231
40232SWIGINTERN PyObject *_wrap_SolutionCollector_Unperformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40233 PyObject *resultobj = 0;
40235 int arg2 ;
40237 void *argp1 = 0 ;
40238 int res1 = 0 ;
40239 int val2 ;
40240 int ecode2 = 0 ;
40241 PyObject * obj0 = 0 ;
40242 PyObject * obj1 = 0 ;
40243 PyObject * obj2 = 0 ;
40244 std::vector< int > *result = 0 ;
40245
40246 if (!PyArg_UnpackTuple(args, "SolutionCollector_Unperformed", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
40248 if (!SWIG_IsOK(res1)) {
40249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolutionCollector_Unperformed" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
40250 }
40251 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
40252 ecode2 = SWIG_AsVal_int(obj1, &val2);
40253 if (!SWIG_IsOK(ecode2)) {
40254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SolutionCollector_Unperformed" "', argument " "2"" of type '" "int""'");
40255 }
40256 arg2 = static_cast< int >(val2);
40257 {
40258 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
40259 }
40260 {
40261 try {
40262 result = (std::vector< int > *) &((operations_research::SolutionCollector const *)arg1)->Unperformed(arg2,arg3);
40263 }
40264 catch (Swig::DirectorException &e) {
40265 SWIG_fail;
40266 }
40267 }
40268 {
40269 resultobj = vector_output_helper(result, &PyInt_FromLong);
40270 }
40271 return resultobj;
40272fail:
40273 return NULL;
40274}
40275
40276
40277SWIGINTERN PyObject *SolutionCollector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40278 PyObject *obj;
40279 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
40281 return SWIG_Py_Void();
40282}
40283
40284SWIGINTERN PyObject *_wrap_OptimizeVar_Best(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40285 PyObject *resultobj = 0;
40287 void *argp1 = 0 ;
40288 int res1 = 0 ;
40289 PyObject * obj0 = 0 ;
40290 int64_t result;
40291
40292 if (!PyArg_UnpackTuple(args, "OptimizeVar_Best", 1, 1, &obj0)) SWIG_fail;
40294 if (!SWIG_IsOK(res1)) {
40295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptimizeVar_Best" "', argument " "1"" of type '" "operations_research::OptimizeVar const *""'");
40296 }
40297 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40298 {
40299 try {
40300 result = (int64_t)((operations_research::OptimizeVar const *)arg1)->best();
40301 }
40302 catch (Swig::DirectorException &e) {
40303 SWIG_fail;
40304 }
40305 }
40306 resultobj = SWIG_From_long(static_cast< long >(result));
40307 return resultobj;
40308fail:
40309 return NULL;
40310}
40311
40312
40313SWIGINTERN PyObject *_wrap_OptimizeVar_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40314 PyObject *resultobj = 0;
40316 void *argp1 = 0 ;
40317 int res1 = 0 ;
40318 PyObject * obj0 = 0 ;
40319 operations_research::IntVar *result = 0 ;
40320
40321 if (!PyArg_UnpackTuple(args, "OptimizeVar_Var", 1, 1, &obj0)) SWIG_fail;
40323 if (!SWIG_IsOK(res1)) {
40324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptimizeVar_Var" "', argument " "1"" of type '" "operations_research::OptimizeVar const *""'");
40325 }
40326 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40327 {
40328 try {
40329 result = (operations_research::IntVar *)((operations_research::OptimizeVar const *)arg1)->Var();
40330 }
40331 catch (Swig::DirectorException &e) {
40332 SWIG_fail;
40333 }
40334 }
40336 return resultobj;
40337fail:
40338 return NULL;
40339}
40340
40341
40342SWIGINTERN PyObject *_wrap_OptimizeVar_AcceptDelta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40343 PyObject *resultobj = 0;
40347 void *argp1 = 0 ;
40348 int res1 = 0 ;
40349 void *argp2 = 0 ;
40350 int res2 = 0 ;
40351 void *argp3 = 0 ;
40352 int res3 = 0 ;
40353 PyObject * obj0 = 0 ;
40354 PyObject * obj1 = 0 ;
40355 PyObject * obj2 = 0 ;
40356 bool result;
40357
40358 if (!PyArg_UnpackTuple(args, "OptimizeVar_AcceptDelta", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
40360 if (!SWIG_IsOK(res1)) {
40361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptimizeVar_AcceptDelta" "', argument " "1"" of type '" "operations_research::OptimizeVar *""'");
40362 }
40363 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40365 if (!SWIG_IsOK(res2)) {
40366 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptimizeVar_AcceptDelta" "', argument " "2"" of type '" "operations_research::Assignment *""'");
40367 }
40368 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
40370 if (!SWIG_IsOK(res3)) {
40371 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "OptimizeVar_AcceptDelta" "', argument " "3"" of type '" "operations_research::Assignment *""'");
40372 }
40373 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
40374 {
40375 try {
40376 result = (bool)(arg1)->AcceptDelta(arg2,arg3);
40377 }
40378 catch (Swig::DirectorException &e) {
40379 SWIG_fail;
40380 }
40381 }
40382 resultobj = SWIG_From_bool(static_cast< bool >(result));
40383 return resultobj;
40384fail:
40385 return NULL;
40386}
40387
40388
40389SWIGINTERN PyObject *_wrap_OptimizeVar_EnterSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40390 PyObject *resultobj = 0;
40392 void *argp1 = 0 ;
40393 int res1 = 0 ;
40394 PyObject * obj0 = 0 ;
40395
40396 if (!PyArg_UnpackTuple(args, "OptimizeVar_EnterSearch", 1, 1, &obj0)) SWIG_fail;
40398 if (!SWIG_IsOK(res1)) {
40399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptimizeVar_EnterSearch" "', argument " "1"" of type '" "operations_research::OptimizeVar *""'");
40400 }
40401 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40402 {
40403 try {
40404 (arg1)->EnterSearch();
40405 }
40406 catch (Swig::DirectorException &e) {
40407 SWIG_fail;
40408 }
40409 }
40410 resultobj = SWIG_Py_Void();
40411 return resultobj;
40412fail:
40413 return NULL;
40414}
40415
40416
40417SWIGINTERN PyObject *_wrap_OptimizeVar_BeginNextDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40418 PyObject *resultobj = 0;
40421 void *argp1 = 0 ;
40422 int res1 = 0 ;
40423 PyObject * obj0 = 0 ;
40424 PyObject * obj1 = 0 ;
40425
40426 if (!PyArg_UnpackTuple(args, "OptimizeVar_BeginNextDecision", 2, 2, &obj0, &obj1)) SWIG_fail;
40428 if (!SWIG_IsOK(res1)) {
40429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptimizeVar_BeginNextDecision" "', argument " "1"" of type '" "operations_research::OptimizeVar *""'");
40430 }
40431 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40432 {
40433 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
40434 }
40435 {
40436 try {
40437 (arg1)->BeginNextDecision(arg2);
40438 }
40439 catch (Swig::DirectorException &e) {
40440 SWIG_fail;
40441 }
40442 }
40443 resultobj = SWIG_Py_Void();
40444 return resultobj;
40445fail:
40446 return NULL;
40447}
40448
40449
40450SWIGINTERN PyObject *_wrap_OptimizeVar_RefuteDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40451 PyObject *resultobj = 0;
40454 void *argp1 = 0 ;
40455 int res1 = 0 ;
40456 PyObject * obj0 = 0 ;
40457 PyObject * obj1 = 0 ;
40458
40459 if (!PyArg_UnpackTuple(args, "OptimizeVar_RefuteDecision", 2, 2, &obj0, &obj1)) SWIG_fail;
40461 if (!SWIG_IsOK(res1)) {
40462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptimizeVar_RefuteDecision" "', argument " "1"" of type '" "operations_research::OptimizeVar *""'");
40463 }
40464 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40465 {
40466 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
40467 }
40468 {
40469 try {
40470 (arg1)->RefuteDecision(arg2);
40471 }
40472 catch (Swig::DirectorException &e) {
40473 SWIG_fail;
40474 }
40475 }
40476 resultobj = SWIG_Py_Void();
40477 return resultobj;
40478fail:
40479 return NULL;
40480}
40481
40482
40483SWIGINTERN PyObject *_wrap_OptimizeVar_AtSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40484 PyObject *resultobj = 0;
40486 void *argp1 = 0 ;
40487 int res1 = 0 ;
40488 PyObject * obj0 = 0 ;
40489 bool result;
40490
40491 if (!PyArg_UnpackTuple(args, "OptimizeVar_AtSolution", 1, 1, &obj0)) SWIG_fail;
40493 if (!SWIG_IsOK(res1)) {
40494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptimizeVar_AtSolution" "', argument " "1"" of type '" "operations_research::OptimizeVar *""'");
40495 }
40496 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40497 {
40498 try {
40499 result = (bool)(arg1)->AtSolution();
40500 }
40501 catch (Swig::DirectorException &e) {
40502 SWIG_fail;
40503 }
40504 }
40505 resultobj = SWIG_From_bool(static_cast< bool >(result));
40506 return resultobj;
40507fail:
40508 return NULL;
40509}
40510
40511
40512SWIGINTERN PyObject *_wrap_OptimizeVar_AcceptSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40513 PyObject *resultobj = 0;
40515 void *argp1 = 0 ;
40516 int res1 = 0 ;
40517 PyObject * obj0 = 0 ;
40518 bool result;
40519
40520 if (!PyArg_UnpackTuple(args, "OptimizeVar_AcceptSolution", 1, 1, &obj0)) SWIG_fail;
40522 if (!SWIG_IsOK(res1)) {
40523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptimizeVar_AcceptSolution" "', argument " "1"" of type '" "operations_research::OptimizeVar *""'");
40524 }
40525 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40526 {
40527 try {
40528 result = (bool)(arg1)->AcceptSolution();
40529 }
40530 catch (Swig::DirectorException &e) {
40531 SWIG_fail;
40532 }
40533 }
40534 resultobj = SWIG_From_bool(static_cast< bool >(result));
40535 return resultobj;
40536fail:
40537 return NULL;
40538}
40539
40540
40541SWIGINTERN PyObject *_wrap_OptimizeVar_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40542 PyObject *resultobj = 0;
40544 void *argp1 = 0 ;
40545 int res1 = 0 ;
40546 PyObject * obj0 = 0 ;
40547 std::string result;
40548
40549 if (!PyArg_UnpackTuple(args, "OptimizeVar_DebugString", 1, 1, &obj0)) SWIG_fail;
40551 if (!SWIG_IsOK(res1)) {
40552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptimizeVar_DebugString" "', argument " "1"" of type '" "operations_research::OptimizeVar const *""'");
40553 }
40554 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40555 {
40556 try {
40557 result = ((operations_research::OptimizeVar const *)arg1)->DebugString();
40558 }
40559 catch (Swig::DirectorException &e) {
40560 SWIG_fail;
40561 }
40562 }
40563 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
40564 return resultobj;
40565fail:
40566 return NULL;
40567}
40568
40569
40570SWIGINTERN PyObject *OptimizeVar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40571 PyObject *obj;
40572 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
40574 return SWIG_Py_Void();
40575}
40576
40577SWIGINTERN PyObject *_wrap_delete_SearchLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40578 PyObject *resultobj = 0;
40580 void *argp1 = 0 ;
40581 int res1 = 0 ;
40582 PyObject * obj0 = 0 ;
40583
40584 if (!PyArg_UnpackTuple(args, "delete_SearchLimit", 1, 1, &obj0)) SWIG_fail;
40586 if (!SWIG_IsOK(res1)) {
40587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SearchLimit" "', argument " "1"" of type '" "operations_research::SearchLimit *""'");
40588 }
40589 arg1 = reinterpret_cast< operations_research::SearchLimit * >(argp1);
40590 {
40591 try {
40592 delete arg1;
40593 }
40594 catch (Swig::DirectorException &e) {
40595 SWIG_fail;
40596 }
40597 }
40598 resultobj = SWIG_Py_Void();
40599 return resultobj;
40600fail:
40601 return NULL;
40602}
40603
40604
40605SWIGINTERN PyObject *_wrap_SearchLimit_Crossed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40606 PyObject *resultobj = 0;
40608 void *argp1 = 0 ;
40609 int res1 = 0 ;
40610 PyObject * obj0 = 0 ;
40611 bool result;
40612
40613 if (!PyArg_UnpackTuple(args, "SearchLimit_Crossed", 1, 1, &obj0)) SWIG_fail;
40615 if (!SWIG_IsOK(res1)) {
40616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchLimit_Crossed" "', argument " "1"" of type '" "operations_research::SearchLimit const *""'");
40617 }
40618 arg1 = reinterpret_cast< operations_research::SearchLimit * >(argp1);
40619 {
40620 try {
40621 result = (bool)((operations_research::SearchLimit const *)arg1)->crossed();
40622 }
40623 catch (Swig::DirectorException &e) {
40624 SWIG_fail;
40625 }
40626 }
40627 resultobj = SWIG_From_bool(static_cast< bool >(result));
40628 return resultobj;
40629fail:
40630 return NULL;
40631}
40632
40633
40634SWIGINTERN PyObject *_wrap_SearchLimit_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40635 PyObject *resultobj = 0;
40637 void *argp1 = 0 ;
40638 int res1 = 0 ;
40639 PyObject * obj0 = 0 ;
40640 bool result;
40641
40642 if (!PyArg_UnpackTuple(args, "SearchLimit_Check", 1, 1, &obj0)) SWIG_fail;
40644 if (!SWIG_IsOK(res1)) {
40645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchLimit_Check" "', argument " "1"" of type '" "operations_research::SearchLimit *""'");
40646 }
40647 arg1 = reinterpret_cast< operations_research::SearchLimit * >(argp1);
40648 {
40649 try {
40650 result = (bool)(arg1)->Check();
40651 }
40652 catch (Swig::DirectorException &e) {
40653 SWIG_fail;
40654 }
40655 }
40656 resultobj = SWIG_From_bool(static_cast< bool >(result));
40657 return resultobj;
40658fail:
40659 return NULL;
40660}
40661
40662
40663SWIGINTERN PyObject *_wrap_SearchLimit_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40664 PyObject *resultobj = 0;
40666 void *argp1 = 0 ;
40667 int res1 = 0 ;
40668 PyObject * obj0 = 0 ;
40669
40670 if (!PyArg_UnpackTuple(args, "SearchLimit_Init", 1, 1, &obj0)) SWIG_fail;
40672 if (!SWIG_IsOK(res1)) {
40673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchLimit_Init" "', argument " "1"" of type '" "operations_research::SearchLimit *""'");
40674 }
40675 arg1 = reinterpret_cast< operations_research::SearchLimit * >(argp1);
40676 {
40677 try {
40678 (arg1)->Init();
40679 }
40680 catch (Swig::DirectorException &e) {
40681 SWIG_fail;
40682 }
40683 }
40684 resultobj = SWIG_Py_Void();
40685 return resultobj;
40686fail:
40687 return NULL;
40688}
40689
40690
40691SWIGINTERN PyObject *_wrap_SearchLimit_EnterSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40692 PyObject *resultobj = 0;
40694 void *argp1 = 0 ;
40695 int res1 = 0 ;
40696 PyObject * obj0 = 0 ;
40697
40698 if (!PyArg_UnpackTuple(args, "SearchLimit_EnterSearch", 1, 1, &obj0)) SWIG_fail;
40700 if (!SWIG_IsOK(res1)) {
40701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchLimit_EnterSearch" "', argument " "1"" of type '" "operations_research::SearchLimit *""'");
40702 }
40703 arg1 = reinterpret_cast< operations_research::SearchLimit * >(argp1);
40704 {
40705 try {
40706 (arg1)->EnterSearch();
40707 }
40708 catch (Swig::DirectorException &e) {
40709 SWIG_fail;
40710 }
40711 }
40712 resultobj = SWIG_Py_Void();
40713 return resultobj;
40714fail:
40715 return NULL;
40716}
40717
40718
40719SWIGINTERN PyObject *_wrap_SearchLimit_BeginNextDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40720 PyObject *resultobj = 0;
40723 void *argp1 = 0 ;
40724 int res1 = 0 ;
40725 PyObject * obj0 = 0 ;
40726 PyObject * obj1 = 0 ;
40727
40728 if (!PyArg_UnpackTuple(args, "SearchLimit_BeginNextDecision", 2, 2, &obj0, &obj1)) SWIG_fail;
40730 if (!SWIG_IsOK(res1)) {
40731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchLimit_BeginNextDecision" "', argument " "1"" of type '" "operations_research::SearchLimit *""'");
40732 }
40733 arg1 = reinterpret_cast< operations_research::SearchLimit * >(argp1);
40734 {
40735 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
40736 }
40737 {
40738 try {
40739 (arg1)->BeginNextDecision(arg2);
40740 }
40741 catch (Swig::DirectorException &e) {
40742 SWIG_fail;
40743 }
40744 }
40745 resultobj = SWIG_Py_Void();
40746 return resultobj;
40747fail:
40748 return NULL;
40749}
40750
40751
40752SWIGINTERN PyObject *_wrap_SearchLimit_RefuteDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40753 PyObject *resultobj = 0;
40756 void *argp1 = 0 ;
40757 int res1 = 0 ;
40758 PyObject * obj0 = 0 ;
40759 PyObject * obj1 = 0 ;
40760
40761 if (!PyArg_UnpackTuple(args, "SearchLimit_RefuteDecision", 2, 2, &obj0, &obj1)) SWIG_fail;
40763 if (!SWIG_IsOK(res1)) {
40764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchLimit_RefuteDecision" "', argument " "1"" of type '" "operations_research::SearchLimit *""'");
40765 }
40766 arg1 = reinterpret_cast< operations_research::SearchLimit * >(argp1);
40767 {
40768 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
40769 }
40770 {
40771 try {
40772 (arg1)->RefuteDecision(arg2);
40773 }
40774 catch (Swig::DirectorException &e) {
40775 SWIG_fail;
40776 }
40777 }
40778 resultobj = SWIG_Py_Void();
40779 return resultobj;
40780fail:
40781 return NULL;
40782}
40783
40784
40785SWIGINTERN PyObject *_wrap_SearchLimit_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40786 PyObject *resultobj = 0;
40788 void *argp1 = 0 ;
40789 int res1 = 0 ;
40790 PyObject * obj0 = 0 ;
40791 std::string result;
40792
40793 if (!PyArg_UnpackTuple(args, "SearchLimit_DebugString", 1, 1, &obj0)) SWIG_fail;
40795 if (!SWIG_IsOK(res1)) {
40796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchLimit_DebugString" "', argument " "1"" of type '" "operations_research::SearchLimit const *""'");
40797 }
40798 arg1 = reinterpret_cast< operations_research::SearchLimit * >(argp1);
40799 {
40800 try {
40801 result = ((operations_research::SearchLimit const *)arg1)->DebugString();
40802 }
40803 catch (Swig::DirectorException &e) {
40804 SWIG_fail;
40805 }
40806 }
40807 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
40808 return resultobj;
40809fail:
40810 return NULL;
40811}
40812
40813
40814SWIGINTERN PyObject *SearchLimit_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40815 PyObject *obj;
40816 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
40818 return SWIG_Py_Void();
40819}
40820
40821SWIGINTERN PyObject *_wrap_IntervalVar_StartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40822 PyObject *resultobj = 0;
40824 void *argp1 = 0 ;
40825 int res1 = 0 ;
40826 PyObject * obj0 = 0 ;
40827 int64_t result;
40828
40829 if (!PyArg_UnpackTuple(args, "IntervalVar_StartMin", 1, 1, &obj0)) SWIG_fail;
40831 if (!SWIG_IsOK(res1)) {
40832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_StartMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
40833 }
40834 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
40835 {
40836 try {
40837 result = (int64_t)((operations_research::IntervalVar const *)arg1)->StartMin();
40838 }
40839 catch (Swig::DirectorException &e) {
40840 SWIG_fail;
40841 }
40842 }
40843 resultobj = SWIG_From_long(static_cast< long >(result));
40844 return resultobj;
40845fail:
40846 return NULL;
40847}
40848
40849
40850SWIGINTERN PyObject *_wrap_IntervalVar_StartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40851 PyObject *resultobj = 0;
40853 void *argp1 = 0 ;
40854 int res1 = 0 ;
40855 PyObject * obj0 = 0 ;
40856 int64_t result;
40857
40858 if (!PyArg_UnpackTuple(args, "IntervalVar_StartMax", 1, 1, &obj0)) SWIG_fail;
40860 if (!SWIG_IsOK(res1)) {
40861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_StartMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
40862 }
40863 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
40864 {
40865 try {
40866 result = (int64_t)((operations_research::IntervalVar const *)arg1)->StartMax();
40867 }
40868 catch (Swig::DirectorException &e) {
40869 SWIG_fail;
40870 }
40871 }
40872 resultobj = SWIG_From_long(static_cast< long >(result));
40873 return resultobj;
40874fail:
40875 return NULL;
40876}
40877
40878
40879SWIGINTERN PyObject *_wrap_IntervalVar_SetStartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40880 PyObject *resultobj = 0;
40882 int64_t arg2 ;
40883 void *argp1 = 0 ;
40884 int res1 = 0 ;
40885 long val2 ;
40886 int ecode2 = 0 ;
40887 PyObject * obj0 = 0 ;
40888 PyObject * obj1 = 0 ;
40889
40890 if (!PyArg_UnpackTuple(args, "IntervalVar_SetStartMin", 2, 2, &obj0, &obj1)) SWIG_fail;
40892 if (!SWIG_IsOK(res1)) {
40893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_SetStartMin" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
40894 }
40895 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
40896 ecode2 = SWIG_AsVal_long(obj1, &val2);
40897 if (!SWIG_IsOK(ecode2)) {
40898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_SetStartMin" "', argument " "2"" of type '" "int64_t""'");
40899 }
40900 arg2 = static_cast< int64_t >(val2);
40901 {
40902 operations_research::Solver* const solver = arg1->solver();
40903 FailureProtect protect;
40904 solver->set_fail_intercept([&protect]() {
40905 protect.JumpBack();
40906 });
40907 if (setjmp(protect.exception_buffer) == 0) {
40908 (arg1)->SetStartMin(arg2);
40909 solver->clear_fail_intercept();
40910 } else {
40911 solver->clear_fail_intercept();
40912 // IMPORTANT: the type and message of the exception raised matter,
40913 // because they are caught by the python overrides of some CP classes.
40914 // See the occurrences of the "PyExc_Exception" string below.
40915 PyErr_SetString(PyExc_Exception, "CP Solver fail");
40916 SWIG_fail;
40917 }
40918 }
40919 resultobj = SWIG_Py_Void();
40920 return resultobj;
40921fail:
40922 return NULL;
40923}
40924
40925
40926SWIGINTERN PyObject *_wrap_IntervalVar_SetStartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40927 PyObject *resultobj = 0;
40929 int64_t arg2 ;
40930 void *argp1 = 0 ;
40931 int res1 = 0 ;
40932 long val2 ;
40933 int ecode2 = 0 ;
40934 PyObject * obj0 = 0 ;
40935 PyObject * obj1 = 0 ;
40936
40937 if (!PyArg_UnpackTuple(args, "IntervalVar_SetStartMax", 2, 2, &obj0, &obj1)) SWIG_fail;
40939 if (!SWIG_IsOK(res1)) {
40940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_SetStartMax" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
40941 }
40942 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
40943 ecode2 = SWIG_AsVal_long(obj1, &val2);
40944 if (!SWIG_IsOK(ecode2)) {
40945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_SetStartMax" "', argument " "2"" of type '" "int64_t""'");
40946 }
40947 arg2 = static_cast< int64_t >(val2);
40948 {
40949 operations_research::Solver* const solver = arg1->solver();
40950 FailureProtect protect;
40951 solver->set_fail_intercept([&protect]() {
40952 protect.JumpBack();
40953 });
40954 if (setjmp(protect.exception_buffer) == 0) {
40955 (arg1)->SetStartMax(arg2);
40956 solver->clear_fail_intercept();
40957 } else {
40958 solver->clear_fail_intercept();
40959 // IMPORTANT: the type and message of the exception raised matter,
40960 // because they are caught by the python overrides of some CP classes.
40961 // See the occurrences of the "PyExc_Exception" string below.
40962 PyErr_SetString(PyExc_Exception, "CP Solver fail");
40963 SWIG_fail;
40964 }
40965 }
40966 resultobj = SWIG_Py_Void();
40967 return resultobj;
40968fail:
40969 return NULL;
40970}
40971
40972
40973SWIGINTERN PyObject *_wrap_IntervalVar_SetStartRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40974 PyObject *resultobj = 0;
40976 int64_t arg2 ;
40977 int64_t arg3 ;
40978 void *argp1 = 0 ;
40979 int res1 = 0 ;
40980 long val2 ;
40981 int ecode2 = 0 ;
40982 long val3 ;
40983 int ecode3 = 0 ;
40984 PyObject * obj0 = 0 ;
40985 PyObject * obj1 = 0 ;
40986 PyObject * obj2 = 0 ;
40987
40988 if (!PyArg_UnpackTuple(args, "IntervalVar_SetStartRange", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
40990 if (!SWIG_IsOK(res1)) {
40991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_SetStartRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
40992 }
40993 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
40994 ecode2 = SWIG_AsVal_long(obj1, &val2);
40995 if (!SWIG_IsOK(ecode2)) {
40996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_SetStartRange" "', argument " "2"" of type '" "int64_t""'");
40997 }
40998 arg2 = static_cast< int64_t >(val2);
40999 ecode3 = SWIG_AsVal_long(obj2, &val3);
41000 if (!SWIG_IsOK(ecode3)) {
41001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalVar_SetStartRange" "', argument " "3"" of type '" "int64_t""'");
41002 }
41003 arg3 = static_cast< int64_t >(val3);
41004 {
41005 operations_research::Solver* const solver = arg1->solver();
41006 FailureProtect protect;
41007 solver->set_fail_intercept([&protect]() {
41008 protect.JumpBack();
41009 });
41010 if (setjmp(protect.exception_buffer) == 0) {
41011 (arg1)->SetStartRange(arg2,arg3);
41012 solver->clear_fail_intercept();
41013 } else {
41014 solver->clear_fail_intercept();
41015 // IMPORTANT: the type and message of the exception raised matter,
41016 // because they are caught by the python overrides of some CP classes.
41017 // See the occurrences of the "PyExc_Exception" string below.
41018 PyErr_SetString(PyExc_Exception, "CP Solver fail");
41019 SWIG_fail;
41020 }
41021 }
41022 resultobj = SWIG_Py_Void();
41023 return resultobj;
41024fail:
41025 return NULL;
41026}
41027
41028
41029SWIGINTERN PyObject *_wrap_IntervalVar_OldStartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41030 PyObject *resultobj = 0;
41032 void *argp1 = 0 ;
41033 int res1 = 0 ;
41034 PyObject * obj0 = 0 ;
41035 int64_t result;
41036
41037 if (!PyArg_UnpackTuple(args, "IntervalVar_OldStartMin", 1, 1, &obj0)) SWIG_fail;
41039 if (!SWIG_IsOK(res1)) {
41040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_OldStartMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41041 }
41042 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41043 {
41044 try {
41045 result = (int64_t)((operations_research::IntervalVar const *)arg1)->OldStartMin();
41046 }
41047 catch (Swig::DirectorException &e) {
41048 SWIG_fail;
41049 }
41050 }
41051 resultobj = SWIG_From_long(static_cast< long >(result));
41052 return resultobj;
41053fail:
41054 return NULL;
41055}
41056
41057
41058SWIGINTERN PyObject *_wrap_IntervalVar_OldStartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41059 PyObject *resultobj = 0;
41061 void *argp1 = 0 ;
41062 int res1 = 0 ;
41063 PyObject * obj0 = 0 ;
41064 int64_t result;
41065
41066 if (!PyArg_UnpackTuple(args, "IntervalVar_OldStartMax", 1, 1, &obj0)) SWIG_fail;
41068 if (!SWIG_IsOK(res1)) {
41069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_OldStartMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41070 }
41071 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41072 {
41073 try {
41074 result = (int64_t)((operations_research::IntervalVar const *)arg1)->OldStartMax();
41075 }
41076 catch (Swig::DirectorException &e) {
41077 SWIG_fail;
41078 }
41079 }
41080 resultobj = SWIG_From_long(static_cast< long >(result));
41081 return resultobj;
41082fail:
41083 return NULL;
41084}
41085
41086
41087SWIGINTERN PyObject *_wrap_IntervalVar_WhenStartRange__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41088 PyObject *resultobj = 0;
41091 void *argp1 = 0 ;
41092 int res1 = 0 ;
41093 void *argp2 = 0 ;
41094 int res2 = 0 ;
41095 PyObject * obj0 = 0 ;
41096 PyObject * obj1 = 0 ;
41097
41098 if (!PyArg_UnpackTuple(args, "IntervalVar_WhenStartRange", 2, 2, &obj0, &obj1)) SWIG_fail;
41100 if (!SWIG_IsOK(res1)) {
41101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_WhenStartRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41102 }
41103 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41104 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
41105 if (!SWIG_IsOK(res2)) {
41106 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_WhenStartRange" "', argument " "2"" of type '" "operations_research::Demon *const""'");
41107 }
41108 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
41109 {
41110 try {
41111 (arg1)->WhenStartRange(arg2);
41112 }
41113 catch (Swig::DirectorException &e) {
41114 SWIG_fail;
41115 }
41116 }
41117 resultobj = SWIG_Py_Void();
41118 return resultobj;
41119fail:
41120 return NULL;
41121}
41122
41123
41124SWIGINTERN PyObject *_wrap_IntervalVar_WhenStartRange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41125 PyObject *resultobj = 0;
41128 void *argp1 = 0 ;
41129 int res1 = 0 ;
41130 PyObject * obj0 = 0 ;
41131 PyObject * obj1 = 0 ;
41132
41133 if (!PyArg_UnpackTuple(args, "IntervalVar_WhenStartRange", 2, 2, &obj0, &obj1)) SWIG_fail;
41135 if (!SWIG_IsOK(res1)) {
41136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_WhenStartRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41137 }
41138 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41139 {
41140 SharedPyPtr input(obj1);
41141 arg2 = [input]() {
41142 return InvokePythonCallableReturning<void>(input.get());
41143 };
41144 }
41145 {
41146 try {
41147 (arg1)->WhenStartRange(arg2);
41148 }
41149 catch (Swig::DirectorException &e) {
41150 SWIG_fail;
41151 }
41152 }
41153 resultobj = SWIG_Py_Void();
41154 return resultobj;
41155fail:
41156 return NULL;
41157}
41158
41159
41160SWIGINTERN PyObject *_wrap_IntervalVar_WhenStartRange(PyObject *self, PyObject *args) {
41161 Py_ssize_t argc;
41162 PyObject *argv[3] = {
41163 0
41164 };
41165 Py_ssize_t ii;
41166
41167 if (!PyTuple_Check(args)) SWIG_fail;
41168 argc = PyObject_Length(args);
41169 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
41170 argv[ii] = PyTuple_GET_ITEM(args,ii);
41171 }
41172 if (argc == 2) {
41173 int _v;
41174 void *vptr = 0;
41176 _v = SWIG_CheckState(res);
41177 if (_v) {
41178 void *vptr = 0;
41179 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Demon, 0);
41180 _v = SWIG_CheckState(res);
41181 if (_v) {
41183 }
41184 }
41185 }
41186 if (argc == 2) {
41187 int _v;
41188 void *vptr = 0;
41190 _v = SWIG_CheckState(res);
41191 if (_v) {
41192 {
41193 _v = PyCallable_Check(argv[1]);
41194 }
41195 if (_v) {
41197 }
41198 }
41199 }
41200
41201fail:
41202 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntervalVar_WhenStartRange'.\n"
41203 " Possible C/C++ prototypes are:\n"
41204 " operations_research::IntervalVar::WhenStartRange(operations_research::Demon *const)\n"
41205 " operations_research::IntervalVar::WhenStartRange(operations_research::Solver::Closure)\n");
41206 return 0;
41207}
41208
41209
41210SWIGINTERN PyObject *_wrap_IntervalVar_WhenStartBound__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41211 PyObject *resultobj = 0;
41214 void *argp1 = 0 ;
41215 int res1 = 0 ;
41216 void *argp2 = 0 ;
41217 int res2 = 0 ;
41218 PyObject * obj0 = 0 ;
41219 PyObject * obj1 = 0 ;
41220
41221 if (!PyArg_UnpackTuple(args, "IntervalVar_WhenStartBound", 2, 2, &obj0, &obj1)) SWIG_fail;
41223 if (!SWIG_IsOK(res1)) {
41224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_WhenStartBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41225 }
41226 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41227 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
41228 if (!SWIG_IsOK(res2)) {
41229 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_WhenStartBound" "', argument " "2"" of type '" "operations_research::Demon *const""'");
41230 }
41231 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
41232 {
41233 try {
41234 (arg1)->WhenStartBound(arg2);
41235 }
41236 catch (Swig::DirectorException &e) {
41237 SWIG_fail;
41238 }
41239 }
41240 resultobj = SWIG_Py_Void();
41241 return resultobj;
41242fail:
41243 return NULL;
41244}
41245
41246
41247SWIGINTERN PyObject *_wrap_IntervalVar_WhenStartBound__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41248 PyObject *resultobj = 0;
41251 void *argp1 = 0 ;
41252 int res1 = 0 ;
41253 PyObject * obj0 = 0 ;
41254 PyObject * obj1 = 0 ;
41255
41256 if (!PyArg_UnpackTuple(args, "IntervalVar_WhenStartBound", 2, 2, &obj0, &obj1)) SWIG_fail;
41258 if (!SWIG_IsOK(res1)) {
41259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_WhenStartBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41260 }
41261 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41262 {
41263 SharedPyPtr input(obj1);
41264 arg2 = [input]() {
41265 return InvokePythonCallableReturning<void>(input.get());
41266 };
41267 }
41268 {
41269 try {
41270 (arg1)->WhenStartBound(arg2);
41271 }
41272 catch (Swig::DirectorException &e) {
41273 SWIG_fail;
41274 }
41275 }
41276 resultobj = SWIG_Py_Void();
41277 return resultobj;
41278fail:
41279 return NULL;
41280}
41281
41282
41283SWIGINTERN PyObject *_wrap_IntervalVar_WhenStartBound(PyObject *self, PyObject *args) {
41284 Py_ssize_t argc;
41285 PyObject *argv[3] = {
41286 0
41287 };
41288 Py_ssize_t ii;
41289
41290 if (!PyTuple_Check(args)) SWIG_fail;
41291 argc = PyObject_Length(args);
41292 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
41293 argv[ii] = PyTuple_GET_ITEM(args,ii);
41294 }
41295 if (argc == 2) {
41296 int _v;
41297 void *vptr = 0;
41299 _v = SWIG_CheckState(res);
41300 if (_v) {
41301 void *vptr = 0;
41302 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Demon, 0);
41303 _v = SWIG_CheckState(res);
41304 if (_v) {
41306 }
41307 }
41308 }
41309 if (argc == 2) {
41310 int _v;
41311 void *vptr = 0;
41313 _v = SWIG_CheckState(res);
41314 if (_v) {
41315 {
41316 _v = PyCallable_Check(argv[1]);
41317 }
41318 if (_v) {
41320 }
41321 }
41322 }
41323
41324fail:
41325 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntervalVar_WhenStartBound'.\n"
41326 " Possible C/C++ prototypes are:\n"
41327 " operations_research::IntervalVar::WhenStartBound(operations_research::Demon *const)\n"
41328 " operations_research::IntervalVar::WhenStartBound(operations_research::Solver::Closure)\n");
41329 return 0;
41330}
41331
41332
41333SWIGINTERN PyObject *_wrap_IntervalVar_DurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41334 PyObject *resultobj = 0;
41336 void *argp1 = 0 ;
41337 int res1 = 0 ;
41338 PyObject * obj0 = 0 ;
41339 int64_t result;
41340
41341 if (!PyArg_UnpackTuple(args, "IntervalVar_DurationMin", 1, 1, &obj0)) SWIG_fail;
41343 if (!SWIG_IsOK(res1)) {
41344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_DurationMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41345 }
41346 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41347 {
41348 try {
41349 result = (int64_t)((operations_research::IntervalVar const *)arg1)->DurationMin();
41350 }
41351 catch (Swig::DirectorException &e) {
41352 SWIG_fail;
41353 }
41354 }
41355 resultobj = SWIG_From_long(static_cast< long >(result));
41356 return resultobj;
41357fail:
41358 return NULL;
41359}
41360
41361
41362SWIGINTERN PyObject *_wrap_IntervalVar_DurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41363 PyObject *resultobj = 0;
41365 void *argp1 = 0 ;
41366 int res1 = 0 ;
41367 PyObject * obj0 = 0 ;
41368 int64_t result;
41369
41370 if (!PyArg_UnpackTuple(args, "IntervalVar_DurationMax", 1, 1, &obj0)) SWIG_fail;
41372 if (!SWIG_IsOK(res1)) {
41373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_DurationMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41374 }
41375 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41376 {
41377 try {
41378 result = (int64_t)((operations_research::IntervalVar const *)arg1)->DurationMax();
41379 }
41380 catch (Swig::DirectorException &e) {
41381 SWIG_fail;
41382 }
41383 }
41384 resultobj = SWIG_From_long(static_cast< long >(result));
41385 return resultobj;
41386fail:
41387 return NULL;
41388}
41389
41390
41391SWIGINTERN PyObject *_wrap_IntervalVar_SetDurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41392 PyObject *resultobj = 0;
41394 int64_t arg2 ;
41395 void *argp1 = 0 ;
41396 int res1 = 0 ;
41397 long val2 ;
41398 int ecode2 = 0 ;
41399 PyObject * obj0 = 0 ;
41400 PyObject * obj1 = 0 ;
41401
41402 if (!PyArg_UnpackTuple(args, "IntervalVar_SetDurationMin", 2, 2, &obj0, &obj1)) SWIG_fail;
41404 if (!SWIG_IsOK(res1)) {
41405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_SetDurationMin" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41406 }
41407 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41408 ecode2 = SWIG_AsVal_long(obj1, &val2);
41409 if (!SWIG_IsOK(ecode2)) {
41410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_SetDurationMin" "', argument " "2"" of type '" "int64_t""'");
41411 }
41412 arg2 = static_cast< int64_t >(val2);
41413 {
41414 operations_research::Solver* const solver = arg1->solver();
41415 FailureProtect protect;
41416 solver->set_fail_intercept([&protect]() {
41417 protect.JumpBack();
41418 });
41419 if (setjmp(protect.exception_buffer) == 0) {
41420 (arg1)->SetDurationMin(arg2);
41421 solver->clear_fail_intercept();
41422 } else {
41423 solver->clear_fail_intercept();
41424 // IMPORTANT: the type and message of the exception raised matter,
41425 // because they are caught by the python overrides of some CP classes.
41426 // See the occurrences of the "PyExc_Exception" string below.
41427 PyErr_SetString(PyExc_Exception, "CP Solver fail");
41428 SWIG_fail;
41429 }
41430 }
41431 resultobj = SWIG_Py_Void();
41432 return resultobj;
41433fail:
41434 return NULL;
41435}
41436
41437
41438SWIGINTERN PyObject *_wrap_IntervalVar_SetDurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41439 PyObject *resultobj = 0;
41441 int64_t arg2 ;
41442 void *argp1 = 0 ;
41443 int res1 = 0 ;
41444 long val2 ;
41445 int ecode2 = 0 ;
41446 PyObject * obj0 = 0 ;
41447 PyObject * obj1 = 0 ;
41448
41449 if (!PyArg_UnpackTuple(args, "IntervalVar_SetDurationMax", 2, 2, &obj0, &obj1)) SWIG_fail;
41451 if (!SWIG_IsOK(res1)) {
41452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_SetDurationMax" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41453 }
41454 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41455 ecode2 = SWIG_AsVal_long(obj1, &val2);
41456 if (!SWIG_IsOK(ecode2)) {
41457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_SetDurationMax" "', argument " "2"" of type '" "int64_t""'");
41458 }
41459 arg2 = static_cast< int64_t >(val2);
41460 {
41461 operations_research::Solver* const solver = arg1->solver();
41462 FailureProtect protect;
41463 solver->set_fail_intercept([&protect]() {
41464 protect.JumpBack();
41465 });
41466 if (setjmp(protect.exception_buffer) == 0) {
41467 (arg1)->SetDurationMax(arg2);
41468 solver->clear_fail_intercept();
41469 } else {
41470 solver->clear_fail_intercept();
41471 // IMPORTANT: the type and message of the exception raised matter,
41472 // because they are caught by the python overrides of some CP classes.
41473 // See the occurrences of the "PyExc_Exception" string below.
41474 PyErr_SetString(PyExc_Exception, "CP Solver fail");
41475 SWIG_fail;
41476 }
41477 }
41478 resultobj = SWIG_Py_Void();
41479 return resultobj;
41480fail:
41481 return NULL;
41482}
41483
41484
41485SWIGINTERN PyObject *_wrap_IntervalVar_SetDurationRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41486 PyObject *resultobj = 0;
41488 int64_t arg2 ;
41489 int64_t arg3 ;
41490 void *argp1 = 0 ;
41491 int res1 = 0 ;
41492 long val2 ;
41493 int ecode2 = 0 ;
41494 long val3 ;
41495 int ecode3 = 0 ;
41496 PyObject * obj0 = 0 ;
41497 PyObject * obj1 = 0 ;
41498 PyObject * obj2 = 0 ;
41499
41500 if (!PyArg_UnpackTuple(args, "IntervalVar_SetDurationRange", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
41502 if (!SWIG_IsOK(res1)) {
41503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_SetDurationRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41504 }
41505 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41506 ecode2 = SWIG_AsVal_long(obj1, &val2);
41507 if (!SWIG_IsOK(ecode2)) {
41508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_SetDurationRange" "', argument " "2"" of type '" "int64_t""'");
41509 }
41510 arg2 = static_cast< int64_t >(val2);
41511 ecode3 = SWIG_AsVal_long(obj2, &val3);
41512 if (!SWIG_IsOK(ecode3)) {
41513 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalVar_SetDurationRange" "', argument " "3"" of type '" "int64_t""'");
41514 }
41515 arg3 = static_cast< int64_t >(val3);
41516 {
41517 operations_research::Solver* const solver = arg1->solver();
41518 FailureProtect protect;
41519 solver->set_fail_intercept([&protect]() {
41520 protect.JumpBack();
41521 });
41522 if (setjmp(protect.exception_buffer) == 0) {
41523 (arg1)->SetDurationRange(arg2,arg3);
41524 solver->clear_fail_intercept();
41525 } else {
41526 solver->clear_fail_intercept();
41527 // IMPORTANT: the type and message of the exception raised matter,
41528 // because they are caught by the python overrides of some CP classes.
41529 // See the occurrences of the "PyExc_Exception" string below.
41530 PyErr_SetString(PyExc_Exception, "CP Solver fail");
41531 SWIG_fail;
41532 }
41533 }
41534 resultobj = SWIG_Py_Void();
41535 return resultobj;
41536fail:
41537 return NULL;
41538}
41539
41540
41541SWIGINTERN PyObject *_wrap_IntervalVar_OldDurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41542 PyObject *resultobj = 0;
41544 void *argp1 = 0 ;
41545 int res1 = 0 ;
41546 PyObject * obj0 = 0 ;
41547 int64_t result;
41548
41549 if (!PyArg_UnpackTuple(args, "IntervalVar_OldDurationMin", 1, 1, &obj0)) SWIG_fail;
41551 if (!SWIG_IsOK(res1)) {
41552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_OldDurationMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41553 }
41554 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41555 {
41556 try {
41557 result = (int64_t)((operations_research::IntervalVar const *)arg1)->OldDurationMin();
41558 }
41559 catch (Swig::DirectorException &e) {
41560 SWIG_fail;
41561 }
41562 }
41563 resultobj = SWIG_From_long(static_cast< long >(result));
41564 return resultobj;
41565fail:
41566 return NULL;
41567}
41568
41569
41570SWIGINTERN PyObject *_wrap_IntervalVar_OldDurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41571 PyObject *resultobj = 0;
41573 void *argp1 = 0 ;
41574 int res1 = 0 ;
41575 PyObject * obj0 = 0 ;
41576 int64_t result;
41577
41578 if (!PyArg_UnpackTuple(args, "IntervalVar_OldDurationMax", 1, 1, &obj0)) SWIG_fail;
41580 if (!SWIG_IsOK(res1)) {
41581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_OldDurationMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41582 }
41583 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41584 {
41585 try {
41586 result = (int64_t)((operations_research::IntervalVar const *)arg1)->OldDurationMax();
41587 }
41588 catch (Swig::DirectorException &e) {
41589 SWIG_fail;
41590 }
41591 }
41592 resultobj = SWIG_From_long(static_cast< long >(result));
41593 return resultobj;
41594fail:
41595 return NULL;
41596}
41597
41598
41600 PyObject *resultobj = 0;
41603 void *argp1 = 0 ;
41604 int res1 = 0 ;
41605 void *argp2 = 0 ;
41606 int res2 = 0 ;
41607 PyObject * obj0 = 0 ;
41608 PyObject * obj1 = 0 ;
41609
41610 if (!PyArg_UnpackTuple(args, "IntervalVar_WhenDurationRange", 2, 2, &obj0, &obj1)) SWIG_fail;
41612 if (!SWIG_IsOK(res1)) {
41613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_WhenDurationRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41614 }
41615 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41616 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
41617 if (!SWIG_IsOK(res2)) {
41618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_WhenDurationRange" "', argument " "2"" of type '" "operations_research::Demon *const""'");
41619 }
41620 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
41621 {
41622 try {
41623 (arg1)->WhenDurationRange(arg2);
41624 }
41625 catch (Swig::DirectorException &e) {
41626 SWIG_fail;
41627 }
41628 }
41629 resultobj = SWIG_Py_Void();
41630 return resultobj;
41631fail:
41632 return NULL;
41633}
41634
41635
41637 PyObject *resultobj = 0;
41640 void *argp1 = 0 ;
41641 int res1 = 0 ;
41642 PyObject * obj0 = 0 ;
41643 PyObject * obj1 = 0 ;
41644
41645 if (!PyArg_UnpackTuple(args, "IntervalVar_WhenDurationRange", 2, 2, &obj0, &obj1)) SWIG_fail;
41647 if (!SWIG_IsOK(res1)) {
41648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_WhenDurationRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41649 }
41650 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41651 {
41652 SharedPyPtr input(obj1);
41653 arg2 = [input]() {
41654 return InvokePythonCallableReturning<void>(input.get());
41655 };
41656 }
41657 {
41658 try {
41659 (arg1)->WhenDurationRange(arg2);
41660 }
41661 catch (Swig::DirectorException &e) {
41662 SWIG_fail;
41663 }
41664 }
41665 resultobj = SWIG_Py_Void();
41666 return resultobj;
41667fail:
41668 return NULL;
41669}
41670
41671
41672SWIGINTERN PyObject *_wrap_IntervalVar_WhenDurationRange(PyObject *self, PyObject *args) {
41673 Py_ssize_t argc;
41674 PyObject *argv[3] = {
41675 0
41676 };
41677 Py_ssize_t ii;
41678
41679 if (!PyTuple_Check(args)) SWIG_fail;
41680 argc = PyObject_Length(args);
41681 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
41682 argv[ii] = PyTuple_GET_ITEM(args,ii);
41683 }
41684 if (argc == 2) {
41685 int _v;
41686 void *vptr = 0;
41688 _v = SWIG_CheckState(res);
41689 if (_v) {
41690 void *vptr = 0;
41691 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Demon, 0);
41692 _v = SWIG_CheckState(res);
41693 if (_v) {
41695 }
41696 }
41697 }
41698 if (argc == 2) {
41699 int _v;
41700 void *vptr = 0;
41702 _v = SWIG_CheckState(res);
41703 if (_v) {
41704 {
41705 _v = PyCallable_Check(argv[1]);
41706 }
41707 if (_v) {
41709 }
41710 }
41711 }
41712
41713fail:
41714 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntervalVar_WhenDurationRange'.\n"
41715 " Possible C/C++ prototypes are:\n"
41716 " operations_research::IntervalVar::WhenDurationRange(operations_research::Demon *const)\n"
41717 " operations_research::IntervalVar::WhenDurationRange(operations_research::Solver::Closure)\n");
41718 return 0;
41719}
41720
41721
41723 PyObject *resultobj = 0;
41726 void *argp1 = 0 ;
41727 int res1 = 0 ;
41728 void *argp2 = 0 ;
41729 int res2 = 0 ;
41730 PyObject * obj0 = 0 ;
41731 PyObject * obj1 = 0 ;
41732
41733 if (!PyArg_UnpackTuple(args, "IntervalVar_WhenDurationBound", 2, 2, &obj0, &obj1)) SWIG_fail;
41735 if (!SWIG_IsOK(res1)) {
41736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_WhenDurationBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41737 }
41738 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41739 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
41740 if (!SWIG_IsOK(res2)) {
41741 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_WhenDurationBound" "', argument " "2"" of type '" "operations_research::Demon *const""'");
41742 }
41743 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
41744 {
41745 try {
41746 (arg1)->WhenDurationBound(arg2);
41747 }
41748 catch (Swig::DirectorException &e) {
41749 SWIG_fail;
41750 }
41751 }
41752 resultobj = SWIG_Py_Void();
41753 return resultobj;
41754fail:
41755 return NULL;
41756}
41757
41758
41760 PyObject *resultobj = 0;
41763 void *argp1 = 0 ;
41764 int res1 = 0 ;
41765 PyObject * obj0 = 0 ;
41766 PyObject * obj1 = 0 ;
41767
41768 if (!PyArg_UnpackTuple(args, "IntervalVar_WhenDurationBound", 2, 2, &obj0, &obj1)) SWIG_fail;
41770 if (!SWIG_IsOK(res1)) {
41771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_WhenDurationBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41772 }
41773 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41774 {
41775 SharedPyPtr input(obj1);
41776 arg2 = [input]() {
41777 return InvokePythonCallableReturning<void>(input.get());
41778 };
41779 }
41780 {
41781 try {
41782 (arg1)->WhenDurationBound(arg2);
41783 }
41784 catch (Swig::DirectorException &e) {
41785 SWIG_fail;
41786 }
41787 }
41788 resultobj = SWIG_Py_Void();
41789 return resultobj;
41790fail:
41791 return NULL;
41792}
41793
41794
41795SWIGINTERN PyObject *_wrap_IntervalVar_WhenDurationBound(PyObject *self, PyObject *args) {
41796 Py_ssize_t argc;
41797 PyObject *argv[3] = {
41798 0
41799 };
41800 Py_ssize_t ii;
41801
41802 if (!PyTuple_Check(args)) SWIG_fail;
41803 argc = PyObject_Length(args);
41804 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
41805 argv[ii] = PyTuple_GET_ITEM(args,ii);
41806 }
41807 if (argc == 2) {
41808 int _v;
41809 void *vptr = 0;
41811 _v = SWIG_CheckState(res);
41812 if (_v) {
41813 void *vptr = 0;
41814 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Demon, 0);
41815 _v = SWIG_CheckState(res);
41816 if (_v) {
41818 }
41819 }
41820 }
41821 if (argc == 2) {
41822 int _v;
41823 void *vptr = 0;
41825 _v = SWIG_CheckState(res);
41826 if (_v) {
41827 {
41828 _v = PyCallable_Check(argv[1]);
41829 }
41830 if (_v) {
41832 }
41833 }
41834 }
41835
41836fail:
41837 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntervalVar_WhenDurationBound'.\n"
41838 " Possible C/C++ prototypes are:\n"
41839 " operations_research::IntervalVar::WhenDurationBound(operations_research::Demon *const)\n"
41840 " operations_research::IntervalVar::WhenDurationBound(operations_research::Solver::Closure)\n");
41841 return 0;
41842}
41843
41844
41845SWIGINTERN PyObject *_wrap_IntervalVar_EndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41846 PyObject *resultobj = 0;
41848 void *argp1 = 0 ;
41849 int res1 = 0 ;
41850 PyObject * obj0 = 0 ;
41851 int64_t result;
41852
41853 if (!PyArg_UnpackTuple(args, "IntervalVar_EndMin", 1, 1, &obj0)) SWIG_fail;
41855 if (!SWIG_IsOK(res1)) {
41856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_EndMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41857 }
41858 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41859 {
41860 try {
41861 result = (int64_t)((operations_research::IntervalVar const *)arg1)->EndMin();
41862 }
41863 catch (Swig::DirectorException &e) {
41864 SWIG_fail;
41865 }
41866 }
41867 resultobj = SWIG_From_long(static_cast< long >(result));
41868 return resultobj;
41869fail:
41870 return NULL;
41871}
41872
41873
41874SWIGINTERN PyObject *_wrap_IntervalVar_EndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41875 PyObject *resultobj = 0;
41877 void *argp1 = 0 ;
41878 int res1 = 0 ;
41879 PyObject * obj0 = 0 ;
41880 int64_t result;
41881
41882 if (!PyArg_UnpackTuple(args, "IntervalVar_EndMax", 1, 1, &obj0)) SWIG_fail;
41884 if (!SWIG_IsOK(res1)) {
41885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_EndMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41886 }
41887 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41888 {
41889 try {
41890 result = (int64_t)((operations_research::IntervalVar const *)arg1)->EndMax();
41891 }
41892 catch (Swig::DirectorException &e) {
41893 SWIG_fail;
41894 }
41895 }
41896 resultobj = SWIG_From_long(static_cast< long >(result));
41897 return resultobj;
41898fail:
41899 return NULL;
41900}
41901
41902
41903SWIGINTERN PyObject *_wrap_IntervalVar_SetEndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41904 PyObject *resultobj = 0;
41906 int64_t arg2 ;
41907 void *argp1 = 0 ;
41908 int res1 = 0 ;
41909 long val2 ;
41910 int ecode2 = 0 ;
41911 PyObject * obj0 = 0 ;
41912 PyObject * obj1 = 0 ;
41913
41914 if (!PyArg_UnpackTuple(args, "IntervalVar_SetEndMin", 2, 2, &obj0, &obj1)) SWIG_fail;
41916 if (!SWIG_IsOK(res1)) {
41917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_SetEndMin" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41918 }
41919 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41920 ecode2 = SWIG_AsVal_long(obj1, &val2);
41921 if (!SWIG_IsOK(ecode2)) {
41922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_SetEndMin" "', argument " "2"" of type '" "int64_t""'");
41923 }
41924 arg2 = static_cast< int64_t >(val2);
41925 {
41926 operations_research::Solver* const solver = arg1->solver();
41927 FailureProtect protect;
41928 solver->set_fail_intercept([&protect]() {
41929 protect.JumpBack();
41930 });
41931 if (setjmp(protect.exception_buffer) == 0) {
41932 (arg1)->SetEndMin(arg2);
41933 solver->clear_fail_intercept();
41934 } else {
41935 solver->clear_fail_intercept();
41936 // IMPORTANT: the type and message of the exception raised matter,
41937 // because they are caught by the python overrides of some CP classes.
41938 // See the occurrences of the "PyExc_Exception" string below.
41939 PyErr_SetString(PyExc_Exception, "CP Solver fail");
41940 SWIG_fail;
41941 }
41942 }
41943 resultobj = SWIG_Py_Void();
41944 return resultobj;
41945fail:
41946 return NULL;
41947}
41948
41949
41950SWIGINTERN PyObject *_wrap_IntervalVar_SetEndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41951 PyObject *resultobj = 0;
41953 int64_t arg2 ;
41954 void *argp1 = 0 ;
41955 int res1 = 0 ;
41956 long val2 ;
41957 int ecode2 = 0 ;
41958 PyObject * obj0 = 0 ;
41959 PyObject * obj1 = 0 ;
41960
41961 if (!PyArg_UnpackTuple(args, "IntervalVar_SetEndMax", 2, 2, &obj0, &obj1)) SWIG_fail;
41963 if (!SWIG_IsOK(res1)) {
41964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_SetEndMax" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41965 }
41966 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41967 ecode2 = SWIG_AsVal_long(obj1, &val2);
41968 if (!SWIG_IsOK(ecode2)) {
41969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_SetEndMax" "', argument " "2"" of type '" "int64_t""'");
41970 }
41971 arg2 = static_cast< int64_t >(val2);
41972 {
41973 operations_research::Solver* const solver = arg1->solver();
41974 FailureProtect protect;
41975 solver->set_fail_intercept([&protect]() {
41976 protect.JumpBack();
41977 });
41978 if (setjmp(protect.exception_buffer) == 0) {
41979 (arg1)->SetEndMax(arg2);
41980 solver->clear_fail_intercept();
41981 } else {
41982 solver->clear_fail_intercept();
41983 // IMPORTANT: the type and message of the exception raised matter,
41984 // because they are caught by the python overrides of some CP classes.
41985 // See the occurrences of the "PyExc_Exception" string below.
41986 PyErr_SetString(PyExc_Exception, "CP Solver fail");
41987 SWIG_fail;
41988 }
41989 }
41990 resultobj = SWIG_Py_Void();
41991 return resultobj;
41992fail:
41993 return NULL;
41994}
41995
41996
41997SWIGINTERN PyObject *_wrap_IntervalVar_SetEndRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41998 PyObject *resultobj = 0;
42000 int64_t arg2 ;
42001 int64_t arg3 ;
42002 void *argp1 = 0 ;
42003 int res1 = 0 ;
42004 long val2 ;
42005 int ecode2 = 0 ;
42006 long val3 ;
42007 int ecode3 = 0 ;
42008 PyObject * obj0 = 0 ;
42009 PyObject * obj1 = 0 ;
42010 PyObject * obj2 = 0 ;
42011
42012 if (!PyArg_UnpackTuple(args, "IntervalVar_SetEndRange", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
42014 if (!SWIG_IsOK(res1)) {
42015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_SetEndRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42016 }
42017 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42018 ecode2 = SWIG_AsVal_long(obj1, &val2);
42019 if (!SWIG_IsOK(ecode2)) {
42020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_SetEndRange" "', argument " "2"" of type '" "int64_t""'");
42021 }
42022 arg2 = static_cast< int64_t >(val2);
42023 ecode3 = SWIG_AsVal_long(obj2, &val3);
42024 if (!SWIG_IsOK(ecode3)) {
42025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalVar_SetEndRange" "', argument " "3"" of type '" "int64_t""'");
42026 }
42027 arg3 = static_cast< int64_t >(val3);
42028 {
42029 operations_research::Solver* const solver = arg1->solver();
42030 FailureProtect protect;
42031 solver->set_fail_intercept([&protect]() {
42032 protect.JumpBack();
42033 });
42034 if (setjmp(protect.exception_buffer) == 0) {
42035 (arg1)->SetEndRange(arg2,arg3);
42036 solver->clear_fail_intercept();
42037 } else {
42038 solver->clear_fail_intercept();
42039 // IMPORTANT: the type and message of the exception raised matter,
42040 // because they are caught by the python overrides of some CP classes.
42041 // See the occurrences of the "PyExc_Exception" string below.
42042 PyErr_SetString(PyExc_Exception, "CP Solver fail");
42043 SWIG_fail;
42044 }
42045 }
42046 resultobj = SWIG_Py_Void();
42047 return resultobj;
42048fail:
42049 return NULL;
42050}
42051
42052
42053SWIGINTERN PyObject *_wrap_IntervalVar_OldEndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42054 PyObject *resultobj = 0;
42056 void *argp1 = 0 ;
42057 int res1 = 0 ;
42058 PyObject * obj0 = 0 ;
42059 int64_t result;
42060
42061 if (!PyArg_UnpackTuple(args, "IntervalVar_OldEndMin", 1, 1, &obj0)) SWIG_fail;
42063 if (!SWIG_IsOK(res1)) {
42064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_OldEndMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42065 }
42066 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42067 {
42068 try {
42069 result = (int64_t)((operations_research::IntervalVar const *)arg1)->OldEndMin();
42070 }
42071 catch (Swig::DirectorException &e) {
42072 SWIG_fail;
42073 }
42074 }
42075 resultobj = SWIG_From_long(static_cast< long >(result));
42076 return resultobj;
42077fail:
42078 return NULL;
42079}
42080
42081
42082SWIGINTERN PyObject *_wrap_IntervalVar_OldEndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42083 PyObject *resultobj = 0;
42085 void *argp1 = 0 ;
42086 int res1 = 0 ;
42087 PyObject * obj0 = 0 ;
42088 int64_t result;
42089
42090 if (!PyArg_UnpackTuple(args, "IntervalVar_OldEndMax", 1, 1, &obj0)) SWIG_fail;
42092 if (!SWIG_IsOK(res1)) {
42093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_OldEndMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42094 }
42095 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42096 {
42097 try {
42098 result = (int64_t)((operations_research::IntervalVar const *)arg1)->OldEndMax();
42099 }
42100 catch (Swig::DirectorException &e) {
42101 SWIG_fail;
42102 }
42103 }
42104 resultobj = SWIG_From_long(static_cast< long >(result));
42105 return resultobj;
42106fail:
42107 return NULL;
42108}
42109
42110
42111SWIGINTERN PyObject *_wrap_IntervalVar_WhenEndRange__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42112 PyObject *resultobj = 0;
42115 void *argp1 = 0 ;
42116 int res1 = 0 ;
42117 void *argp2 = 0 ;
42118 int res2 = 0 ;
42119 PyObject * obj0 = 0 ;
42120 PyObject * obj1 = 0 ;
42121
42122 if (!PyArg_UnpackTuple(args, "IntervalVar_WhenEndRange", 2, 2, &obj0, &obj1)) SWIG_fail;
42124 if (!SWIG_IsOK(res1)) {
42125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_WhenEndRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42126 }
42127 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42128 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
42129 if (!SWIG_IsOK(res2)) {
42130 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_WhenEndRange" "', argument " "2"" of type '" "operations_research::Demon *const""'");
42131 }
42132 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
42133 {
42134 try {
42135 (arg1)->WhenEndRange(arg2);
42136 }
42137 catch (Swig::DirectorException &e) {
42138 SWIG_fail;
42139 }
42140 }
42141 resultobj = SWIG_Py_Void();
42142 return resultobj;
42143fail:
42144 return NULL;
42145}
42146
42147
42148SWIGINTERN PyObject *_wrap_IntervalVar_WhenEndRange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42149 PyObject *resultobj = 0;
42152 void *argp1 = 0 ;
42153 int res1 = 0 ;
42154 PyObject * obj0 = 0 ;
42155 PyObject * obj1 = 0 ;
42156
42157 if (!PyArg_UnpackTuple(args, "IntervalVar_WhenEndRange", 2, 2, &obj0, &obj1)) SWIG_fail;
42159 if (!SWIG_IsOK(res1)) {
42160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_WhenEndRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42161 }
42162 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42163 {
42164 SharedPyPtr input(obj1);
42165 arg2 = [input]() {
42166 return InvokePythonCallableReturning<void>(input.get());
42167 };
42168 }
42169 {
42170 try {
42171 (arg1)->WhenEndRange(arg2);
42172 }
42173 catch (Swig::DirectorException &e) {
42174 SWIG_fail;
42175 }
42176 }
42177 resultobj = SWIG_Py_Void();
42178 return resultobj;
42179fail:
42180 return NULL;
42181}
42182
42183
42184SWIGINTERN PyObject *_wrap_IntervalVar_WhenEndRange(PyObject *self, PyObject *args) {
42185 Py_ssize_t argc;
42186 PyObject *argv[3] = {
42187 0
42188 };
42189 Py_ssize_t ii;
42190
42191 if (!PyTuple_Check(args)) SWIG_fail;
42192 argc = PyObject_Length(args);
42193 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
42194 argv[ii] = PyTuple_GET_ITEM(args,ii);
42195 }
42196 if (argc == 2) {
42197 int _v;
42198 void *vptr = 0;
42200 _v = SWIG_CheckState(res);
42201 if (_v) {
42202 void *vptr = 0;
42203 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Demon, 0);
42204 _v = SWIG_CheckState(res);
42205 if (_v) {
42206 return _wrap_IntervalVar_WhenEndRange__SWIG_0(self, args);
42207 }
42208 }
42209 }
42210 if (argc == 2) {
42211 int _v;
42212 void *vptr = 0;
42214 _v = SWIG_CheckState(res);
42215 if (_v) {
42216 {
42217 _v = PyCallable_Check(argv[1]);
42218 }
42219 if (_v) {
42220 return _wrap_IntervalVar_WhenEndRange__SWIG_1(self, args);
42221 }
42222 }
42223 }
42224
42225fail:
42226 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntervalVar_WhenEndRange'.\n"
42227 " Possible C/C++ prototypes are:\n"
42228 " operations_research::IntervalVar::WhenEndRange(operations_research::Demon *const)\n"
42229 " operations_research::IntervalVar::WhenEndRange(operations_research::Solver::Closure)\n");
42230 return 0;
42231}
42232
42233
42234SWIGINTERN PyObject *_wrap_IntervalVar_WhenEndBound__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42235 PyObject *resultobj = 0;
42238 void *argp1 = 0 ;
42239 int res1 = 0 ;
42240 void *argp2 = 0 ;
42241 int res2 = 0 ;
42242 PyObject * obj0 = 0 ;
42243 PyObject * obj1 = 0 ;
42244
42245 if (!PyArg_UnpackTuple(args, "IntervalVar_WhenEndBound", 2, 2, &obj0, &obj1)) SWIG_fail;
42247 if (!SWIG_IsOK(res1)) {
42248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_WhenEndBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42249 }
42250 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42251 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
42252 if (!SWIG_IsOK(res2)) {
42253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_WhenEndBound" "', argument " "2"" of type '" "operations_research::Demon *const""'");
42254 }
42255 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
42256 {
42257 try {
42258 (arg1)->WhenEndBound(arg2);
42259 }
42260 catch (Swig::DirectorException &e) {
42261 SWIG_fail;
42262 }
42263 }
42264 resultobj = SWIG_Py_Void();
42265 return resultobj;
42266fail:
42267 return NULL;
42268}
42269
42270
42271SWIGINTERN PyObject *_wrap_IntervalVar_WhenEndBound__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42272 PyObject *resultobj = 0;
42275 void *argp1 = 0 ;
42276 int res1 = 0 ;
42277 PyObject * obj0 = 0 ;
42278 PyObject * obj1 = 0 ;
42279
42280 if (!PyArg_UnpackTuple(args, "IntervalVar_WhenEndBound", 2, 2, &obj0, &obj1)) SWIG_fail;
42282 if (!SWIG_IsOK(res1)) {
42283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_WhenEndBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42284 }
42285 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42286 {
42287 SharedPyPtr input(obj1);
42288 arg2 = [input]() {
42289 return InvokePythonCallableReturning<void>(input.get());
42290 };
42291 }
42292 {
42293 try {
42294 (arg1)->WhenEndBound(arg2);
42295 }
42296 catch (Swig::DirectorException &e) {
42297 SWIG_fail;
42298 }
42299 }
42300 resultobj = SWIG_Py_Void();
42301 return resultobj;
42302fail:
42303 return NULL;
42304}
42305
42306
42307SWIGINTERN PyObject *_wrap_IntervalVar_WhenEndBound(PyObject *self, PyObject *args) {
42308 Py_ssize_t argc;
42309 PyObject *argv[3] = {
42310 0
42311 };
42312 Py_ssize_t ii;
42313
42314 if (!PyTuple_Check(args)) SWIG_fail;
42315 argc = PyObject_Length(args);
42316 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
42317 argv[ii] = PyTuple_GET_ITEM(args,ii);
42318 }
42319 if (argc == 2) {
42320 int _v;
42321 void *vptr = 0;
42323 _v = SWIG_CheckState(res);
42324 if (_v) {
42325 void *vptr = 0;
42326 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Demon, 0);
42327 _v = SWIG_CheckState(res);
42328 if (_v) {
42329 return _wrap_IntervalVar_WhenEndBound__SWIG_0(self, args);
42330 }
42331 }
42332 }
42333 if (argc == 2) {
42334 int _v;
42335 void *vptr = 0;
42337 _v = SWIG_CheckState(res);
42338 if (_v) {
42339 {
42340 _v = PyCallable_Check(argv[1]);
42341 }
42342 if (_v) {
42343 return _wrap_IntervalVar_WhenEndBound__SWIG_1(self, args);
42344 }
42345 }
42346 }
42347
42348fail:
42349 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntervalVar_WhenEndBound'.\n"
42350 " Possible C/C++ prototypes are:\n"
42351 " operations_research::IntervalVar::WhenEndBound(operations_research::Demon *const)\n"
42352 " operations_research::IntervalVar::WhenEndBound(operations_research::Solver::Closure)\n");
42353 return 0;
42354}
42355
42356
42357SWIGINTERN PyObject *_wrap_IntervalVar_MustBePerformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42358 PyObject *resultobj = 0;
42360 void *argp1 = 0 ;
42361 int res1 = 0 ;
42362 PyObject * obj0 = 0 ;
42363 bool result;
42364
42365 if (!PyArg_UnpackTuple(args, "IntervalVar_MustBePerformed", 1, 1, &obj0)) SWIG_fail;
42367 if (!SWIG_IsOK(res1)) {
42368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_MustBePerformed" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42369 }
42370 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42371 {
42372 try {
42373 result = (bool)((operations_research::IntervalVar const *)arg1)->MustBePerformed();
42374 }
42375 catch (Swig::DirectorException &e) {
42376 SWIG_fail;
42377 }
42378 }
42379 resultobj = SWIG_From_bool(static_cast< bool >(result));
42380 return resultobj;
42381fail:
42382 return NULL;
42383}
42384
42385
42386SWIGINTERN PyObject *_wrap_IntervalVar_MayBePerformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42387 PyObject *resultobj = 0;
42389 void *argp1 = 0 ;
42390 int res1 = 0 ;
42391 PyObject * obj0 = 0 ;
42392 bool result;
42393
42394 if (!PyArg_UnpackTuple(args, "IntervalVar_MayBePerformed", 1, 1, &obj0)) SWIG_fail;
42396 if (!SWIG_IsOK(res1)) {
42397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_MayBePerformed" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42398 }
42399 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42400 {
42401 try {
42402 result = (bool)((operations_research::IntervalVar const *)arg1)->MayBePerformed();
42403 }
42404 catch (Swig::DirectorException &e) {
42405 SWIG_fail;
42406 }
42407 }
42408 resultobj = SWIG_From_bool(static_cast< bool >(result));
42409 return resultobj;
42410fail:
42411 return NULL;
42412}
42413
42414
42415SWIGINTERN PyObject *_wrap_IntervalVar_CannotBePerformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42416 PyObject *resultobj = 0;
42418 void *argp1 = 0 ;
42419 int res1 = 0 ;
42420 PyObject * obj0 = 0 ;
42421 bool result;
42422
42423 if (!PyArg_UnpackTuple(args, "IntervalVar_CannotBePerformed", 1, 1, &obj0)) SWIG_fail;
42425 if (!SWIG_IsOK(res1)) {
42426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_CannotBePerformed" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42427 }
42428 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42429 {
42430 try {
42431 result = (bool)((operations_research::IntervalVar const *)arg1)->CannotBePerformed();
42432 }
42433 catch (Swig::DirectorException &e) {
42434 SWIG_fail;
42435 }
42436 }
42437 resultobj = SWIG_From_bool(static_cast< bool >(result));
42438 return resultobj;
42439fail:
42440 return NULL;
42441}
42442
42443
42444SWIGINTERN PyObject *_wrap_IntervalVar_IsPerformedBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42445 PyObject *resultobj = 0;
42447 void *argp1 = 0 ;
42448 int res1 = 0 ;
42449 PyObject * obj0 = 0 ;
42450 bool result;
42451
42452 if (!PyArg_UnpackTuple(args, "IntervalVar_IsPerformedBound", 1, 1, &obj0)) SWIG_fail;
42454 if (!SWIG_IsOK(res1)) {
42455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_IsPerformedBound" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42456 }
42457 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42458 {
42459 try {
42460 result = (bool)((operations_research::IntervalVar const *)arg1)->IsPerformedBound();
42461 }
42462 catch (Swig::DirectorException &e) {
42463 SWIG_fail;
42464 }
42465 }
42466 resultobj = SWIG_From_bool(static_cast< bool >(result));
42467 return resultobj;
42468fail:
42469 return NULL;
42470}
42471
42472
42473SWIGINTERN PyObject *_wrap_IntervalVar_SetPerformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42474 PyObject *resultobj = 0;
42476 bool arg2 ;
42477 void *argp1 = 0 ;
42478 int res1 = 0 ;
42479 bool val2 ;
42480 int ecode2 = 0 ;
42481 PyObject * obj0 = 0 ;
42482 PyObject * obj1 = 0 ;
42483
42484 if (!PyArg_UnpackTuple(args, "IntervalVar_SetPerformed", 2, 2, &obj0, &obj1)) SWIG_fail;
42486 if (!SWIG_IsOK(res1)) {
42487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_SetPerformed" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42488 }
42489 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42490 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42491 if (!SWIG_IsOK(ecode2)) {
42492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_SetPerformed" "', argument " "2"" of type '" "bool""'");
42493 }
42494 arg2 = static_cast< bool >(val2);
42495 {
42496 operations_research::Solver* const solver = arg1->solver();
42497 FailureProtect protect;
42498 solver->set_fail_intercept([&protect]() {
42499 protect.JumpBack();
42500 });
42501 if (setjmp(protect.exception_buffer) == 0) {
42502 (arg1)->SetPerformed(arg2);
42503 solver->clear_fail_intercept();
42504 } else {
42505 solver->clear_fail_intercept();
42506 // IMPORTANT: the type and message of the exception raised matter,
42507 // because they are caught by the python overrides of some CP classes.
42508 // See the occurrences of the "PyExc_Exception" string below.
42509 PyErr_SetString(PyExc_Exception, "CP Solver fail");
42510 SWIG_fail;
42511 }
42512 }
42513 resultobj = SWIG_Py_Void();
42514 return resultobj;
42515fail:
42516 return NULL;
42517}
42518
42519
42520SWIGINTERN PyObject *_wrap_IntervalVar_WasPerformedBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42521 PyObject *resultobj = 0;
42523 void *argp1 = 0 ;
42524 int res1 = 0 ;
42525 PyObject * obj0 = 0 ;
42526 bool result;
42527
42528 if (!PyArg_UnpackTuple(args, "IntervalVar_WasPerformedBound", 1, 1, &obj0)) SWIG_fail;
42530 if (!SWIG_IsOK(res1)) {
42531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_WasPerformedBound" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42532 }
42533 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42534 {
42535 try {
42536 result = (bool)((operations_research::IntervalVar const *)arg1)->WasPerformedBound();
42537 }
42538 catch (Swig::DirectorException &e) {
42539 SWIG_fail;
42540 }
42541 }
42542 resultobj = SWIG_From_bool(static_cast< bool >(result));
42543 return resultobj;
42544fail:
42545 return NULL;
42546}
42547
42548
42550 PyObject *resultobj = 0;
42553 void *argp1 = 0 ;
42554 int res1 = 0 ;
42555 void *argp2 = 0 ;
42556 int res2 = 0 ;
42557 PyObject * obj0 = 0 ;
42558 PyObject * obj1 = 0 ;
42559
42560 if (!PyArg_UnpackTuple(args, "IntervalVar_WhenPerformedBound", 2, 2, &obj0, &obj1)) SWIG_fail;
42562 if (!SWIG_IsOK(res1)) {
42563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_WhenPerformedBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42564 }
42565 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42566 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
42567 if (!SWIG_IsOK(res2)) {
42568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_WhenPerformedBound" "', argument " "2"" of type '" "operations_research::Demon *const""'");
42569 }
42570 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
42571 {
42572 try {
42573 (arg1)->WhenPerformedBound(arg2);
42574 }
42575 catch (Swig::DirectorException &e) {
42576 SWIG_fail;
42577 }
42578 }
42579 resultobj = SWIG_Py_Void();
42580 return resultobj;
42581fail:
42582 return NULL;
42583}
42584
42585
42587 PyObject *resultobj = 0;
42590 void *argp1 = 0 ;
42591 int res1 = 0 ;
42592 PyObject * obj0 = 0 ;
42593 PyObject * obj1 = 0 ;
42594
42595 if (!PyArg_UnpackTuple(args, "IntervalVar_WhenPerformedBound", 2, 2, &obj0, &obj1)) SWIG_fail;
42597 if (!SWIG_IsOK(res1)) {
42598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_WhenPerformedBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42599 }
42600 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42601 {
42602 SharedPyPtr input(obj1);
42603 arg2 = [input]() {
42604 return InvokePythonCallableReturning<void>(input.get());
42605 };
42606 }
42607 {
42608 try {
42609 (arg1)->WhenPerformedBound(arg2);
42610 }
42611 catch (Swig::DirectorException &e) {
42612 SWIG_fail;
42613 }
42614 }
42615 resultobj = SWIG_Py_Void();
42616 return resultobj;
42617fail:
42618 return NULL;
42619}
42620
42621
42622SWIGINTERN PyObject *_wrap_IntervalVar_WhenPerformedBound(PyObject *self, PyObject *args) {
42623 Py_ssize_t argc;
42624 PyObject *argv[3] = {
42625 0
42626 };
42627 Py_ssize_t ii;
42628
42629 if (!PyTuple_Check(args)) SWIG_fail;
42630 argc = PyObject_Length(args);
42631 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
42632 argv[ii] = PyTuple_GET_ITEM(args,ii);
42633 }
42634 if (argc == 2) {
42635 int _v;
42636 void *vptr = 0;
42638 _v = SWIG_CheckState(res);
42639 if (_v) {
42640 void *vptr = 0;
42641 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Demon, 0);
42642 _v = SWIG_CheckState(res);
42643 if (_v) {
42645 }
42646 }
42647 }
42648 if (argc == 2) {
42649 int _v;
42650 void *vptr = 0;
42652 _v = SWIG_CheckState(res);
42653 if (_v) {
42654 {
42655 _v = PyCallable_Check(argv[1]);
42656 }
42657 if (_v) {
42659 }
42660 }
42661 }
42662
42663fail:
42664 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntervalVar_WhenPerformedBound'.\n"
42665 " Possible C/C++ prototypes are:\n"
42666 " operations_research::IntervalVar::WhenPerformedBound(operations_research::Demon *const)\n"
42667 " operations_research::IntervalVar::WhenPerformedBound(operations_research::Solver::Closure)\n");
42668 return 0;
42669}
42670
42671
42672SWIGINTERN PyObject *_wrap_IntervalVar_WhenAnything__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42673 PyObject *resultobj = 0;
42676 void *argp1 = 0 ;
42677 int res1 = 0 ;
42678 void *argp2 = 0 ;
42679 int res2 = 0 ;
42680 PyObject * obj0 = 0 ;
42681 PyObject * obj1 = 0 ;
42682
42683 if (!PyArg_UnpackTuple(args, "IntervalVar_WhenAnything", 2, 2, &obj0, &obj1)) SWIG_fail;
42685 if (!SWIG_IsOK(res1)) {
42686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_WhenAnything" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42687 }
42688 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42689 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
42690 if (!SWIG_IsOK(res2)) {
42691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_WhenAnything" "', argument " "2"" of type '" "operations_research::Demon *const""'");
42692 }
42693 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
42694 {
42695 try {
42696 (arg1)->WhenAnything(arg2);
42697 }
42698 catch (Swig::DirectorException &e) {
42699 SWIG_fail;
42700 }
42701 }
42702 resultobj = SWIG_Py_Void();
42703 return resultobj;
42704fail:
42705 return NULL;
42706}
42707
42708
42709SWIGINTERN PyObject *_wrap_IntervalVar_WhenAnything__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42710 PyObject *resultobj = 0;
42713 void *argp1 = 0 ;
42714 int res1 = 0 ;
42715 PyObject * obj0 = 0 ;
42716 PyObject * obj1 = 0 ;
42717
42718 if (!PyArg_UnpackTuple(args, "IntervalVar_WhenAnything", 2, 2, &obj0, &obj1)) SWIG_fail;
42720 if (!SWIG_IsOK(res1)) {
42721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_WhenAnything" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42722 }
42723 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42724 {
42725 SharedPyPtr input(obj1);
42726 arg2 = [input]() {
42727 return InvokePythonCallableReturning<void>(input.get());
42728 };
42729 }
42730 {
42731 try {
42732 (arg1)->WhenAnything(arg2);
42733 }
42734 catch (Swig::DirectorException &e) {
42735 SWIG_fail;
42736 }
42737 }
42738 resultobj = SWIG_Py_Void();
42739 return resultobj;
42740fail:
42741 return NULL;
42742}
42743
42744
42745SWIGINTERN PyObject *_wrap_IntervalVar_WhenAnything(PyObject *self, PyObject *args) {
42746 Py_ssize_t argc;
42747 PyObject *argv[3] = {
42748 0
42749 };
42750 Py_ssize_t ii;
42751
42752 if (!PyTuple_Check(args)) SWIG_fail;
42753 argc = PyObject_Length(args);
42754 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
42755 argv[ii] = PyTuple_GET_ITEM(args,ii);
42756 }
42757 if (argc == 2) {
42758 int _v;
42759 void *vptr = 0;
42761 _v = SWIG_CheckState(res);
42762 if (_v) {
42763 void *vptr = 0;
42764 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Demon, 0);
42765 _v = SWIG_CheckState(res);
42766 if (_v) {
42767 return _wrap_IntervalVar_WhenAnything__SWIG_0(self, args);
42768 }
42769 }
42770 }
42771 if (argc == 2) {
42772 int _v;
42773 void *vptr = 0;
42775 _v = SWIG_CheckState(res);
42776 if (_v) {
42777 {
42778 _v = PyCallable_Check(argv[1]);
42779 }
42780 if (_v) {
42781 return _wrap_IntervalVar_WhenAnything__SWIG_1(self, args);
42782 }
42783 }
42784 }
42785
42786fail:
42787 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntervalVar_WhenAnything'.\n"
42788 " Possible C/C++ prototypes are:\n"
42789 " operations_research::IntervalVar::WhenAnything(operations_research::Demon *const)\n"
42790 " operations_research::IntervalVar::WhenAnything(operations_research::Solver::Closure)\n");
42791 return 0;
42792}
42793
42794
42795SWIGINTERN PyObject *_wrap_IntervalVar_StartExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42796 PyObject *resultobj = 0;
42798 void *argp1 = 0 ;
42799 int res1 = 0 ;
42800 PyObject * obj0 = 0 ;
42801 operations_research::IntExpr *result = 0 ;
42802
42803 if (!PyArg_UnpackTuple(args, "IntervalVar_StartExpr", 1, 1, &obj0)) SWIG_fail;
42805 if (!SWIG_IsOK(res1)) {
42806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_StartExpr" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42807 }
42808 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42809 {
42810 try {
42811 result = (operations_research::IntExpr *)(arg1)->StartExpr();
42812 }
42813 catch (Swig::DirectorException &e) {
42814 SWIG_fail;
42815 }
42816 }
42818 return resultobj;
42819fail:
42820 return NULL;
42821}
42822
42823
42824SWIGINTERN PyObject *_wrap_IntervalVar_DurationExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42825 PyObject *resultobj = 0;
42827 void *argp1 = 0 ;
42828 int res1 = 0 ;
42829 PyObject * obj0 = 0 ;
42830 operations_research::IntExpr *result = 0 ;
42831
42832 if (!PyArg_UnpackTuple(args, "IntervalVar_DurationExpr", 1, 1, &obj0)) SWIG_fail;
42834 if (!SWIG_IsOK(res1)) {
42835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_DurationExpr" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42836 }
42837 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42838 {
42839 try {
42840 result = (operations_research::IntExpr *)(arg1)->DurationExpr();
42841 }
42842 catch (Swig::DirectorException &e) {
42843 SWIG_fail;
42844 }
42845 }
42847 return resultobj;
42848fail:
42849 return NULL;
42850}
42851
42852
42853SWIGINTERN PyObject *_wrap_IntervalVar_EndExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42854 PyObject *resultobj = 0;
42856 void *argp1 = 0 ;
42857 int res1 = 0 ;
42858 PyObject * obj0 = 0 ;
42859 operations_research::IntExpr *result = 0 ;
42860
42861 if (!PyArg_UnpackTuple(args, "IntervalVar_EndExpr", 1, 1, &obj0)) SWIG_fail;
42863 if (!SWIG_IsOK(res1)) {
42864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_EndExpr" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42865 }
42866 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42867 {
42868 try {
42869 result = (operations_research::IntExpr *)(arg1)->EndExpr();
42870 }
42871 catch (Swig::DirectorException &e) {
42872 SWIG_fail;
42873 }
42874 }
42876 return resultobj;
42877fail:
42878 return NULL;
42879}
42880
42881
42882SWIGINTERN PyObject *_wrap_IntervalVar_PerformedExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42883 PyObject *resultobj = 0;
42885 void *argp1 = 0 ;
42886 int res1 = 0 ;
42887 PyObject * obj0 = 0 ;
42888 operations_research::IntExpr *result = 0 ;
42889
42890 if (!PyArg_UnpackTuple(args, "IntervalVar_PerformedExpr", 1, 1, &obj0)) SWIG_fail;
42892 if (!SWIG_IsOK(res1)) {
42893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_PerformedExpr" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42894 }
42895 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42896 {
42897 try {
42898 result = (operations_research::IntExpr *)(arg1)->PerformedExpr();
42899 }
42900 catch (Swig::DirectorException &e) {
42901 SWIG_fail;
42902 }
42903 }
42905 return resultobj;
42906fail:
42907 return NULL;
42908}
42909
42910
42911SWIGINTERN PyObject *_wrap_IntervalVar_SafeStartExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42912 PyObject *resultobj = 0;
42914 int64_t arg2 ;
42915 void *argp1 = 0 ;
42916 int res1 = 0 ;
42917 long val2 ;
42918 int ecode2 = 0 ;
42919 PyObject * obj0 = 0 ;
42920 PyObject * obj1 = 0 ;
42921 operations_research::IntExpr *result = 0 ;
42922
42923 if (!PyArg_UnpackTuple(args, "IntervalVar_SafeStartExpr", 2, 2, &obj0, &obj1)) SWIG_fail;
42925 if (!SWIG_IsOK(res1)) {
42926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_SafeStartExpr" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42927 }
42928 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42929 ecode2 = SWIG_AsVal_long(obj1, &val2);
42930 if (!SWIG_IsOK(ecode2)) {
42931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_SafeStartExpr" "', argument " "2"" of type '" "int64_t""'");
42932 }
42933 arg2 = static_cast< int64_t >(val2);
42934 {
42935 try {
42936 result = (operations_research::IntExpr *)(arg1)->SafeStartExpr(arg2);
42937 }
42938 catch (Swig::DirectorException &e) {
42939 SWIG_fail;
42940 }
42941 }
42943 return resultobj;
42944fail:
42945 return NULL;
42946}
42947
42948
42949SWIGINTERN PyObject *_wrap_IntervalVar_SafeDurationExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42950 PyObject *resultobj = 0;
42952 int64_t arg2 ;
42953 void *argp1 = 0 ;
42954 int res1 = 0 ;
42955 long val2 ;
42956 int ecode2 = 0 ;
42957 PyObject * obj0 = 0 ;
42958 PyObject * obj1 = 0 ;
42959 operations_research::IntExpr *result = 0 ;
42960
42961 if (!PyArg_UnpackTuple(args, "IntervalVar_SafeDurationExpr", 2, 2, &obj0, &obj1)) SWIG_fail;
42963 if (!SWIG_IsOK(res1)) {
42964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_SafeDurationExpr" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42965 }
42966 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42967 ecode2 = SWIG_AsVal_long(obj1, &val2);
42968 if (!SWIG_IsOK(ecode2)) {
42969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_SafeDurationExpr" "', argument " "2"" of type '" "int64_t""'");
42970 }
42971 arg2 = static_cast< int64_t >(val2);
42972 {
42973 try {
42974 result = (operations_research::IntExpr *)(arg1)->SafeDurationExpr(arg2);
42975 }
42976 catch (Swig::DirectorException &e) {
42977 SWIG_fail;
42978 }
42979 }
42981 return resultobj;
42982fail:
42983 return NULL;
42984}
42985
42986
42987SWIGINTERN PyObject *_wrap_IntervalVar_SafeEndExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42988 PyObject *resultobj = 0;
42990 int64_t arg2 ;
42991 void *argp1 = 0 ;
42992 int res1 = 0 ;
42993 long val2 ;
42994 int ecode2 = 0 ;
42995 PyObject * obj0 = 0 ;
42996 PyObject * obj1 = 0 ;
42997 operations_research::IntExpr *result = 0 ;
42998
42999 if (!PyArg_UnpackTuple(args, "IntervalVar_SafeEndExpr", 2, 2, &obj0, &obj1)) SWIG_fail;
43001 if (!SWIG_IsOK(res1)) {
43002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_SafeEndExpr" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43003 }
43004 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43005 ecode2 = SWIG_AsVal_long(obj1, &val2);
43006 if (!SWIG_IsOK(ecode2)) {
43007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_SafeEndExpr" "', argument " "2"" of type '" "int64_t""'");
43008 }
43009 arg2 = static_cast< int64_t >(val2);
43010 {
43011 try {
43012 result = (operations_research::IntExpr *)(arg1)->SafeEndExpr(arg2);
43013 }
43014 catch (Swig::DirectorException &e) {
43015 SWIG_fail;
43016 }
43017 }
43019 return resultobj;
43020fail:
43021 return NULL;
43022}
43023
43024
43025SWIGINTERN PyObject *_wrap_IntervalVar_EndsAfterEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43026 PyObject *resultobj = 0;
43029 void *argp1 = 0 ;
43030 int res1 = 0 ;
43031 void *argp2 = 0 ;
43032 int res2 = 0 ;
43033 PyObject * obj0 = 0 ;
43034 PyObject * obj1 = 0 ;
43035 Swig::Director *director = 0;
43037
43038 if (!PyArg_UnpackTuple(args, "IntervalVar_EndsAfterEnd", 2, 2, &obj0, &obj1)) SWIG_fail;
43040 if (!SWIG_IsOK(res1)) {
43041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_EndsAfterEnd" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43042 }
43043 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43045 if (!SWIG_IsOK(res2)) {
43046 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_EndsAfterEnd" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43047 }
43048 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43049 {
43050 try {
43052 }
43053 catch (Swig::DirectorException &e) {
43054 SWIG_fail;
43055 }
43056 }
43057 director = SWIG_DIRECTOR_CAST(result);
43058 if (director) {
43059 resultobj = director->swig_get_self();
43060 Py_INCREF(resultobj);
43061 } else {
43063 }
43064 return resultobj;
43065fail:
43066 return NULL;
43067}
43068
43069
43070SWIGINTERN PyObject *_wrap_IntervalVar_EndsAfterEndWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43071 PyObject *resultobj = 0;
43074 int64_t arg3 ;
43075 void *argp1 = 0 ;
43076 int res1 = 0 ;
43077 void *argp2 = 0 ;
43078 int res2 = 0 ;
43079 long val3 ;
43080 int ecode3 = 0 ;
43081 PyObject * obj0 = 0 ;
43082 PyObject * obj1 = 0 ;
43083 PyObject * obj2 = 0 ;
43084 Swig::Director *director = 0;
43086
43087 if (!PyArg_UnpackTuple(args, "IntervalVar_EndsAfterEndWithDelay", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
43089 if (!SWIG_IsOK(res1)) {
43090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_EndsAfterEndWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43091 }
43092 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43094 if (!SWIG_IsOK(res2)) {
43095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_EndsAfterEndWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43096 }
43097 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43098 ecode3 = SWIG_AsVal_long(obj2, &val3);
43099 if (!SWIG_IsOK(ecode3)) {
43100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalVar_EndsAfterEndWithDelay" "', argument " "3"" of type '" "int64_t""'");
43101 }
43102 arg3 = static_cast< int64_t >(val3);
43103 {
43104 try {
43106 }
43107 catch (Swig::DirectorException &e) {
43108 SWIG_fail;
43109 }
43110 }
43111 director = SWIG_DIRECTOR_CAST(result);
43112 if (director) {
43113 resultobj = director->swig_get_self();
43114 Py_INCREF(resultobj);
43115 } else {
43117 }
43118 return resultobj;
43119fail:
43120 return NULL;
43121}
43122
43123
43124SWIGINTERN PyObject *_wrap_IntervalVar_EndsAfterStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43125 PyObject *resultobj = 0;
43128 void *argp1 = 0 ;
43129 int res1 = 0 ;
43130 void *argp2 = 0 ;
43131 int res2 = 0 ;
43132 PyObject * obj0 = 0 ;
43133 PyObject * obj1 = 0 ;
43134 Swig::Director *director = 0;
43136
43137 if (!PyArg_UnpackTuple(args, "IntervalVar_EndsAfterStart", 2, 2, &obj0, &obj1)) SWIG_fail;
43139 if (!SWIG_IsOK(res1)) {
43140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_EndsAfterStart" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43141 }
43142 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43144 if (!SWIG_IsOK(res2)) {
43145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_EndsAfterStart" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43146 }
43147 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43148 {
43149 try {
43151 }
43152 catch (Swig::DirectorException &e) {
43153 SWIG_fail;
43154 }
43155 }
43156 director = SWIG_DIRECTOR_CAST(result);
43157 if (director) {
43158 resultobj = director->swig_get_self();
43159 Py_INCREF(resultobj);
43160 } else {
43162 }
43163 return resultobj;
43164fail:
43165 return NULL;
43166}
43167
43168
43169SWIGINTERN PyObject *_wrap_IntervalVar_EndsAfterStartWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43170 PyObject *resultobj = 0;
43173 int64_t arg3 ;
43174 void *argp1 = 0 ;
43175 int res1 = 0 ;
43176 void *argp2 = 0 ;
43177 int res2 = 0 ;
43178 long val3 ;
43179 int ecode3 = 0 ;
43180 PyObject * obj0 = 0 ;
43181 PyObject * obj1 = 0 ;
43182 PyObject * obj2 = 0 ;
43183 Swig::Director *director = 0;
43185
43186 if (!PyArg_UnpackTuple(args, "IntervalVar_EndsAfterStartWithDelay", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
43188 if (!SWIG_IsOK(res1)) {
43189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_EndsAfterStartWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43190 }
43191 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43193 if (!SWIG_IsOK(res2)) {
43194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_EndsAfterStartWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43195 }
43196 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43197 ecode3 = SWIG_AsVal_long(obj2, &val3);
43198 if (!SWIG_IsOK(ecode3)) {
43199 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalVar_EndsAfterStartWithDelay" "', argument " "3"" of type '" "int64_t""'");
43200 }
43201 arg3 = static_cast< int64_t >(val3);
43202 {
43203 try {
43205 }
43206 catch (Swig::DirectorException &e) {
43207 SWIG_fail;
43208 }
43209 }
43210 director = SWIG_DIRECTOR_CAST(result);
43211 if (director) {
43212 resultobj = director->swig_get_self();
43213 Py_INCREF(resultobj);
43214 } else {
43216 }
43217 return resultobj;
43218fail:
43219 return NULL;
43220}
43221
43222
43223SWIGINTERN PyObject *_wrap_IntervalVar_EndsAtEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43224 PyObject *resultobj = 0;
43227 void *argp1 = 0 ;
43228 int res1 = 0 ;
43229 void *argp2 = 0 ;
43230 int res2 = 0 ;
43231 PyObject * obj0 = 0 ;
43232 PyObject * obj1 = 0 ;
43233 Swig::Director *director = 0;
43235
43236 if (!PyArg_UnpackTuple(args, "IntervalVar_EndsAtEnd", 2, 2, &obj0, &obj1)) SWIG_fail;
43238 if (!SWIG_IsOK(res1)) {
43239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_EndsAtEnd" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43240 }
43241 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43243 if (!SWIG_IsOK(res2)) {
43244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_EndsAtEnd" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43245 }
43246 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43247 {
43248 try {
43250 }
43251 catch (Swig::DirectorException &e) {
43252 SWIG_fail;
43253 }
43254 }
43255 director = SWIG_DIRECTOR_CAST(result);
43256 if (director) {
43257 resultobj = director->swig_get_self();
43258 Py_INCREF(resultobj);
43259 } else {
43261 }
43262 return resultobj;
43263fail:
43264 return NULL;
43265}
43266
43267
43268SWIGINTERN PyObject *_wrap_IntervalVar_EndsAtEndWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43269 PyObject *resultobj = 0;
43272 int64_t arg3 ;
43273 void *argp1 = 0 ;
43274 int res1 = 0 ;
43275 void *argp2 = 0 ;
43276 int res2 = 0 ;
43277 long val3 ;
43278 int ecode3 = 0 ;
43279 PyObject * obj0 = 0 ;
43280 PyObject * obj1 = 0 ;
43281 PyObject * obj2 = 0 ;
43282 Swig::Director *director = 0;
43284
43285 if (!PyArg_UnpackTuple(args, "IntervalVar_EndsAtEndWithDelay", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
43287 if (!SWIG_IsOK(res1)) {
43288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_EndsAtEndWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43289 }
43290 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43292 if (!SWIG_IsOK(res2)) {
43293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_EndsAtEndWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43294 }
43295 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43296 ecode3 = SWIG_AsVal_long(obj2, &val3);
43297 if (!SWIG_IsOK(ecode3)) {
43298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalVar_EndsAtEndWithDelay" "', argument " "3"" of type '" "int64_t""'");
43299 }
43300 arg3 = static_cast< int64_t >(val3);
43301 {
43302 try {
43304 }
43305 catch (Swig::DirectorException &e) {
43306 SWIG_fail;
43307 }
43308 }
43309 director = SWIG_DIRECTOR_CAST(result);
43310 if (director) {
43311 resultobj = director->swig_get_self();
43312 Py_INCREF(resultobj);
43313 } else {
43315 }
43316 return resultobj;
43317fail:
43318 return NULL;
43319}
43320
43321
43322SWIGINTERN PyObject *_wrap_IntervalVar_EndsAtStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43323 PyObject *resultobj = 0;
43326 void *argp1 = 0 ;
43327 int res1 = 0 ;
43328 void *argp2 = 0 ;
43329 int res2 = 0 ;
43330 PyObject * obj0 = 0 ;
43331 PyObject * obj1 = 0 ;
43332 Swig::Director *director = 0;
43334
43335 if (!PyArg_UnpackTuple(args, "IntervalVar_EndsAtStart", 2, 2, &obj0, &obj1)) SWIG_fail;
43337 if (!SWIG_IsOK(res1)) {
43338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_EndsAtStart" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43339 }
43340 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43342 if (!SWIG_IsOK(res2)) {
43343 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_EndsAtStart" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43344 }
43345 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43346 {
43347 try {
43349 }
43350 catch (Swig::DirectorException &e) {
43351 SWIG_fail;
43352 }
43353 }
43354 director = SWIG_DIRECTOR_CAST(result);
43355 if (director) {
43356 resultobj = director->swig_get_self();
43357 Py_INCREF(resultobj);
43358 } else {
43360 }
43361 return resultobj;
43362fail:
43363 return NULL;
43364}
43365
43366
43367SWIGINTERN PyObject *_wrap_IntervalVar_EndsAtStartWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43368 PyObject *resultobj = 0;
43371 int64_t arg3 ;
43372 void *argp1 = 0 ;
43373 int res1 = 0 ;
43374 void *argp2 = 0 ;
43375 int res2 = 0 ;
43376 long val3 ;
43377 int ecode3 = 0 ;
43378 PyObject * obj0 = 0 ;
43379 PyObject * obj1 = 0 ;
43380 PyObject * obj2 = 0 ;
43381 Swig::Director *director = 0;
43383
43384 if (!PyArg_UnpackTuple(args, "IntervalVar_EndsAtStartWithDelay", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
43386 if (!SWIG_IsOK(res1)) {
43387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_EndsAtStartWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43388 }
43389 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43391 if (!SWIG_IsOK(res2)) {
43392 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_EndsAtStartWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43393 }
43394 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43395 ecode3 = SWIG_AsVal_long(obj2, &val3);
43396 if (!SWIG_IsOK(ecode3)) {
43397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalVar_EndsAtStartWithDelay" "', argument " "3"" of type '" "int64_t""'");
43398 }
43399 arg3 = static_cast< int64_t >(val3);
43400 {
43401 try {
43403 }
43404 catch (Swig::DirectorException &e) {
43405 SWIG_fail;
43406 }
43407 }
43408 director = SWIG_DIRECTOR_CAST(result);
43409 if (director) {
43410 resultobj = director->swig_get_self();
43411 Py_INCREF(resultobj);
43412 } else {
43414 }
43415 return resultobj;
43416fail:
43417 return NULL;
43418}
43419
43420
43421SWIGINTERN PyObject *_wrap_IntervalVar_StartsAfterEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43422 PyObject *resultobj = 0;
43425 void *argp1 = 0 ;
43426 int res1 = 0 ;
43427 void *argp2 = 0 ;
43428 int res2 = 0 ;
43429 PyObject * obj0 = 0 ;
43430 PyObject * obj1 = 0 ;
43431 Swig::Director *director = 0;
43433
43434 if (!PyArg_UnpackTuple(args, "IntervalVar_StartsAfterEnd", 2, 2, &obj0, &obj1)) SWIG_fail;
43436 if (!SWIG_IsOK(res1)) {
43437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_StartsAfterEnd" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43438 }
43439 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43441 if (!SWIG_IsOK(res2)) {
43442 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_StartsAfterEnd" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43443 }
43444 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43445 {
43446 try {
43448 }
43449 catch (Swig::DirectorException &e) {
43450 SWIG_fail;
43451 }
43452 }
43453 director = SWIG_DIRECTOR_CAST(result);
43454 if (director) {
43455 resultobj = director->swig_get_self();
43456 Py_INCREF(resultobj);
43457 } else {
43459 }
43460 return resultobj;
43461fail:
43462 return NULL;
43463}
43464
43465
43466SWIGINTERN PyObject *_wrap_IntervalVar_StartsAfterEndWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43467 PyObject *resultobj = 0;
43470 int64_t arg3 ;
43471 void *argp1 = 0 ;
43472 int res1 = 0 ;
43473 void *argp2 = 0 ;
43474 int res2 = 0 ;
43475 long val3 ;
43476 int ecode3 = 0 ;
43477 PyObject * obj0 = 0 ;
43478 PyObject * obj1 = 0 ;
43479 PyObject * obj2 = 0 ;
43480 Swig::Director *director = 0;
43482
43483 if (!PyArg_UnpackTuple(args, "IntervalVar_StartsAfterEndWithDelay", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
43485 if (!SWIG_IsOK(res1)) {
43486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_StartsAfterEndWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43487 }
43488 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43490 if (!SWIG_IsOK(res2)) {
43491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_StartsAfterEndWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43492 }
43493 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43494 ecode3 = SWIG_AsVal_long(obj2, &val3);
43495 if (!SWIG_IsOK(ecode3)) {
43496 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalVar_StartsAfterEndWithDelay" "', argument " "3"" of type '" "int64_t""'");
43497 }
43498 arg3 = static_cast< int64_t >(val3);
43499 {
43500 try {
43502 }
43503 catch (Swig::DirectorException &e) {
43504 SWIG_fail;
43505 }
43506 }
43507 director = SWIG_DIRECTOR_CAST(result);
43508 if (director) {
43509 resultobj = director->swig_get_self();
43510 Py_INCREF(resultobj);
43511 } else {
43513 }
43514 return resultobj;
43515fail:
43516 return NULL;
43517}
43518
43519
43520SWIGINTERN PyObject *_wrap_IntervalVar_StartsAfterStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43521 PyObject *resultobj = 0;
43524 void *argp1 = 0 ;
43525 int res1 = 0 ;
43526 void *argp2 = 0 ;
43527 int res2 = 0 ;
43528 PyObject * obj0 = 0 ;
43529 PyObject * obj1 = 0 ;
43530 Swig::Director *director = 0;
43532
43533 if (!PyArg_UnpackTuple(args, "IntervalVar_StartsAfterStart", 2, 2, &obj0, &obj1)) SWIG_fail;
43535 if (!SWIG_IsOK(res1)) {
43536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_StartsAfterStart" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43537 }
43538 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43540 if (!SWIG_IsOK(res2)) {
43541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_StartsAfterStart" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43542 }
43543 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43544 {
43545 try {
43547 }
43548 catch (Swig::DirectorException &e) {
43549 SWIG_fail;
43550 }
43551 }
43552 director = SWIG_DIRECTOR_CAST(result);
43553 if (director) {
43554 resultobj = director->swig_get_self();
43555 Py_INCREF(resultobj);
43556 } else {
43558 }
43559 return resultobj;
43560fail:
43561 return NULL;
43562}
43563
43564
43566 PyObject *resultobj = 0;
43569 int64_t arg3 ;
43570 void *argp1 = 0 ;
43571 int res1 = 0 ;
43572 void *argp2 = 0 ;
43573 int res2 = 0 ;
43574 long val3 ;
43575 int ecode3 = 0 ;
43576 PyObject * obj0 = 0 ;
43577 PyObject * obj1 = 0 ;
43578 PyObject * obj2 = 0 ;
43579 Swig::Director *director = 0;
43581
43582 if (!PyArg_UnpackTuple(args, "IntervalVar_StartsAfterStartWithDelay", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
43584 if (!SWIG_IsOK(res1)) {
43585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_StartsAfterStartWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43586 }
43587 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43589 if (!SWIG_IsOK(res2)) {
43590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_StartsAfterStartWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43591 }
43592 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43593 ecode3 = SWIG_AsVal_long(obj2, &val3);
43594 if (!SWIG_IsOK(ecode3)) {
43595 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalVar_StartsAfterStartWithDelay" "', argument " "3"" of type '" "int64_t""'");
43596 }
43597 arg3 = static_cast< int64_t >(val3);
43598 {
43599 try {
43601 }
43602 catch (Swig::DirectorException &e) {
43603 SWIG_fail;
43604 }
43605 }
43606 director = SWIG_DIRECTOR_CAST(result);
43607 if (director) {
43608 resultobj = director->swig_get_self();
43609 Py_INCREF(resultobj);
43610 } else {
43612 }
43613 return resultobj;
43614fail:
43615 return NULL;
43616}
43617
43618
43619SWIGINTERN PyObject *_wrap_IntervalVar_StartsAtEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43620 PyObject *resultobj = 0;
43623 void *argp1 = 0 ;
43624 int res1 = 0 ;
43625 void *argp2 = 0 ;
43626 int res2 = 0 ;
43627 PyObject * obj0 = 0 ;
43628 PyObject * obj1 = 0 ;
43629 Swig::Director *director = 0;
43631
43632 if (!PyArg_UnpackTuple(args, "IntervalVar_StartsAtEnd", 2, 2, &obj0, &obj1)) SWIG_fail;
43634 if (!SWIG_IsOK(res1)) {
43635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_StartsAtEnd" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43636 }
43637 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43639 if (!SWIG_IsOK(res2)) {
43640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_StartsAtEnd" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43641 }
43642 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43643 {
43644 try {
43646 }
43647 catch (Swig::DirectorException &e) {
43648 SWIG_fail;
43649 }
43650 }
43651 director = SWIG_DIRECTOR_CAST(result);
43652 if (director) {
43653 resultobj = director->swig_get_self();
43654 Py_INCREF(resultobj);
43655 } else {
43657 }
43658 return resultobj;
43659fail:
43660 return NULL;
43661}
43662
43663
43664SWIGINTERN PyObject *_wrap_IntervalVar_StartsAtEndWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43665 PyObject *resultobj = 0;
43668 int64_t arg3 ;
43669 void *argp1 = 0 ;
43670 int res1 = 0 ;
43671 void *argp2 = 0 ;
43672 int res2 = 0 ;
43673 long val3 ;
43674 int ecode3 = 0 ;
43675 PyObject * obj0 = 0 ;
43676 PyObject * obj1 = 0 ;
43677 PyObject * obj2 = 0 ;
43678 Swig::Director *director = 0;
43680
43681 if (!PyArg_UnpackTuple(args, "IntervalVar_StartsAtEndWithDelay", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
43683 if (!SWIG_IsOK(res1)) {
43684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_StartsAtEndWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43685 }
43686 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43688 if (!SWIG_IsOK(res2)) {
43689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_StartsAtEndWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43690 }
43691 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43692 ecode3 = SWIG_AsVal_long(obj2, &val3);
43693 if (!SWIG_IsOK(ecode3)) {
43694 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalVar_StartsAtEndWithDelay" "', argument " "3"" of type '" "int64_t""'");
43695 }
43696 arg3 = static_cast< int64_t >(val3);
43697 {
43698 try {
43700 }
43701 catch (Swig::DirectorException &e) {
43702 SWIG_fail;
43703 }
43704 }
43705 director = SWIG_DIRECTOR_CAST(result);
43706 if (director) {
43707 resultobj = director->swig_get_self();
43708 Py_INCREF(resultobj);
43709 } else {
43711 }
43712 return resultobj;
43713fail:
43714 return NULL;
43715}
43716
43717
43718SWIGINTERN PyObject *_wrap_IntervalVar_StartsAtStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43719 PyObject *resultobj = 0;
43722 void *argp1 = 0 ;
43723 int res1 = 0 ;
43724 void *argp2 = 0 ;
43725 int res2 = 0 ;
43726 PyObject * obj0 = 0 ;
43727 PyObject * obj1 = 0 ;
43728 Swig::Director *director = 0;
43730
43731 if (!PyArg_UnpackTuple(args, "IntervalVar_StartsAtStart", 2, 2, &obj0, &obj1)) SWIG_fail;
43733 if (!SWIG_IsOK(res1)) {
43734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_StartsAtStart" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43735 }
43736 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43738 if (!SWIG_IsOK(res2)) {
43739 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_StartsAtStart" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43740 }
43741 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43742 {
43743 try {
43745 }
43746 catch (Swig::DirectorException &e) {
43747 SWIG_fail;
43748 }
43749 }
43750 director = SWIG_DIRECTOR_CAST(result);
43751 if (director) {
43752 resultobj = director->swig_get_self();
43753 Py_INCREF(resultobj);
43754 } else {
43756 }
43757 return resultobj;
43758fail:
43759 return NULL;
43760}
43761
43762
43763SWIGINTERN PyObject *_wrap_IntervalVar_StartsAtStartWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43764 PyObject *resultobj = 0;
43767 int64_t arg3 ;
43768 void *argp1 = 0 ;
43769 int res1 = 0 ;
43770 void *argp2 = 0 ;
43771 int res2 = 0 ;
43772 long val3 ;
43773 int ecode3 = 0 ;
43774 PyObject * obj0 = 0 ;
43775 PyObject * obj1 = 0 ;
43776 PyObject * obj2 = 0 ;
43777 Swig::Director *director = 0;
43779
43780 if (!PyArg_UnpackTuple(args, "IntervalVar_StartsAtStartWithDelay", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
43782 if (!SWIG_IsOK(res1)) {
43783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_StartsAtStartWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43784 }
43785 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43787 if (!SWIG_IsOK(res2)) {
43788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_StartsAtStartWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43789 }
43790 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43791 ecode3 = SWIG_AsVal_long(obj2, &val3);
43792 if (!SWIG_IsOK(ecode3)) {
43793 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalVar_StartsAtStartWithDelay" "', argument " "3"" of type '" "int64_t""'");
43794 }
43795 arg3 = static_cast< int64_t >(val3);
43796 {
43797 try {
43799 }
43800 catch (Swig::DirectorException &e) {
43801 SWIG_fail;
43802 }
43803 }
43804 director = SWIG_DIRECTOR_CAST(result);
43805 if (director) {
43806 resultobj = director->swig_get_self();
43807 Py_INCREF(resultobj);
43808 } else {
43810 }
43811 return resultobj;
43812fail:
43813 return NULL;
43814}
43815
43816
43817SWIGINTERN PyObject *_wrap_IntervalVar_StaysInSync(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43818 PyObject *resultobj = 0;
43821 void *argp1 = 0 ;
43822 int res1 = 0 ;
43823 void *argp2 = 0 ;
43824 int res2 = 0 ;
43825 PyObject * obj0 = 0 ;
43826 PyObject * obj1 = 0 ;
43827 Swig::Director *director = 0;
43829
43830 if (!PyArg_UnpackTuple(args, "IntervalVar_StaysInSync", 2, 2, &obj0, &obj1)) SWIG_fail;
43832 if (!SWIG_IsOK(res1)) {
43833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_StaysInSync" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43834 }
43835 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43837 if (!SWIG_IsOK(res2)) {
43838 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_StaysInSync" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43839 }
43840 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43841 {
43842 try {
43844 }
43845 catch (Swig::DirectorException &e) {
43846 SWIG_fail;
43847 }
43848 }
43849 director = SWIG_DIRECTOR_CAST(result);
43850 if (director) {
43851 resultobj = director->swig_get_self();
43852 Py_INCREF(resultobj);
43853 } else {
43855 }
43856 return resultobj;
43857fail:
43858 return NULL;
43859}
43860
43861
43862SWIGINTERN PyObject *_wrap_IntervalVar_StaysInSyncWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43863 PyObject *resultobj = 0;
43866 int64_t arg3 ;
43867 void *argp1 = 0 ;
43868 int res1 = 0 ;
43869 void *argp2 = 0 ;
43870 int res2 = 0 ;
43871 long val3 ;
43872 int ecode3 = 0 ;
43873 PyObject * obj0 = 0 ;
43874 PyObject * obj1 = 0 ;
43875 PyObject * obj2 = 0 ;
43876 Swig::Director *director = 0;
43878
43879 if (!PyArg_UnpackTuple(args, "IntervalVar_StaysInSyncWithDelay", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
43881 if (!SWIG_IsOK(res1)) {
43882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_StaysInSyncWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43883 }
43884 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43886 if (!SWIG_IsOK(res2)) {
43887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVar_StaysInSyncWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43888 }
43889 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43890 ecode3 = SWIG_AsVal_long(obj2, &val3);
43891 if (!SWIG_IsOK(ecode3)) {
43892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalVar_StaysInSyncWithDelay" "', argument " "3"" of type '" "int64_t""'");
43893 }
43894 arg3 = static_cast< int64_t >(val3);
43895 {
43896 try {
43898 }
43899 catch (Swig::DirectorException &e) {
43900 SWIG_fail;
43901 }
43902 }
43903 director = SWIG_DIRECTOR_CAST(result);
43904 if (director) {
43905 resultobj = director->swig_get_self();
43906 Py_INCREF(resultobj);
43907 } else {
43909 }
43910 return resultobj;
43911fail:
43912 return NULL;
43913}
43914
43915
43916SWIGINTERN PyObject *_wrap_IntervalVar_EndsAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43917 PyObject *resultobj = 0;
43919 int64_t arg2 ;
43920 void *argp1 = 0 ;
43921 int res1 = 0 ;
43922 long val2 ;
43923 int ecode2 = 0 ;
43924 PyObject * obj0 = 0 ;
43925 PyObject * obj1 = 0 ;
43926 Swig::Director *director = 0;
43928
43929 if (!PyArg_UnpackTuple(args, "IntervalVar_EndsAfter", 2, 2, &obj0, &obj1)) SWIG_fail;
43931 if (!SWIG_IsOK(res1)) {
43932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_EndsAfter" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43933 }
43934 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43935 ecode2 = SWIG_AsVal_long(obj1, &val2);
43936 if (!SWIG_IsOK(ecode2)) {
43937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_EndsAfter" "', argument " "2"" of type '" "int64_t""'");
43938 }
43939 arg2 = static_cast< int64_t >(val2);
43940 {
43941 try {
43943 }
43944 catch (Swig::DirectorException &e) {
43945 SWIG_fail;
43946 }
43947 }
43948 director = SWIG_DIRECTOR_CAST(result);
43949 if (director) {
43950 resultobj = director->swig_get_self();
43951 Py_INCREF(resultobj);
43952 } else {
43954 }
43955 return resultobj;
43956fail:
43957 return NULL;
43958}
43959
43960
43961SWIGINTERN PyObject *_wrap_IntervalVar_EndsAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43962 PyObject *resultobj = 0;
43964 int64_t arg2 ;
43965 void *argp1 = 0 ;
43966 int res1 = 0 ;
43967 long val2 ;
43968 int ecode2 = 0 ;
43969 PyObject * obj0 = 0 ;
43970 PyObject * obj1 = 0 ;
43971 Swig::Director *director = 0;
43973
43974 if (!PyArg_UnpackTuple(args, "IntervalVar_EndsAt", 2, 2, &obj0, &obj1)) SWIG_fail;
43976 if (!SWIG_IsOK(res1)) {
43977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_EndsAt" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43978 }
43979 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43980 ecode2 = SWIG_AsVal_long(obj1, &val2);
43981 if (!SWIG_IsOK(ecode2)) {
43982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_EndsAt" "', argument " "2"" of type '" "int64_t""'");
43983 }
43984 arg2 = static_cast< int64_t >(val2);
43985 {
43986 try {
43988 }
43989 catch (Swig::DirectorException &e) {
43990 SWIG_fail;
43991 }
43992 }
43993 director = SWIG_DIRECTOR_CAST(result);
43994 if (director) {
43995 resultobj = director->swig_get_self();
43996 Py_INCREF(resultobj);
43997 } else {
43999 }
44000 return resultobj;
44001fail:
44002 return NULL;
44003}
44004
44005
44006SWIGINTERN PyObject *_wrap_IntervalVar_EndsBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44007 PyObject *resultobj = 0;
44009 int64_t arg2 ;
44010 void *argp1 = 0 ;
44011 int res1 = 0 ;
44012 long val2 ;
44013 int ecode2 = 0 ;
44014 PyObject * obj0 = 0 ;
44015 PyObject * obj1 = 0 ;
44016 Swig::Director *director = 0;
44018
44019 if (!PyArg_UnpackTuple(args, "IntervalVar_EndsBefore", 2, 2, &obj0, &obj1)) SWIG_fail;
44021 if (!SWIG_IsOK(res1)) {
44022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_EndsBefore" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
44023 }
44024 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
44025 ecode2 = SWIG_AsVal_long(obj1, &val2);
44026 if (!SWIG_IsOK(ecode2)) {
44027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_EndsBefore" "', argument " "2"" of type '" "int64_t""'");
44028 }
44029 arg2 = static_cast< int64_t >(val2);
44030 {
44031 try {
44033 }
44034 catch (Swig::DirectorException &e) {
44035 SWIG_fail;
44036 }
44037 }
44038 director = SWIG_DIRECTOR_CAST(result);
44039 if (director) {
44040 resultobj = director->swig_get_self();
44041 Py_INCREF(resultobj);
44042 } else {
44044 }
44045 return resultobj;
44046fail:
44047 return NULL;
44048}
44049
44050
44051SWIGINTERN PyObject *_wrap_IntervalVar_StartsAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44052 PyObject *resultobj = 0;
44054 int64_t arg2 ;
44055 void *argp1 = 0 ;
44056 int res1 = 0 ;
44057 long val2 ;
44058 int ecode2 = 0 ;
44059 PyObject * obj0 = 0 ;
44060 PyObject * obj1 = 0 ;
44061 Swig::Director *director = 0;
44063
44064 if (!PyArg_UnpackTuple(args, "IntervalVar_StartsAfter", 2, 2, &obj0, &obj1)) SWIG_fail;
44066 if (!SWIG_IsOK(res1)) {
44067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_StartsAfter" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
44068 }
44069 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
44070 ecode2 = SWIG_AsVal_long(obj1, &val2);
44071 if (!SWIG_IsOK(ecode2)) {
44072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_StartsAfter" "', argument " "2"" of type '" "int64_t""'");
44073 }
44074 arg2 = static_cast< int64_t >(val2);
44075 {
44076 try {
44078 }
44079 catch (Swig::DirectorException &e) {
44080 SWIG_fail;
44081 }
44082 }
44083 director = SWIG_DIRECTOR_CAST(result);
44084 if (director) {
44085 resultobj = director->swig_get_self();
44086 Py_INCREF(resultobj);
44087 } else {
44089 }
44090 return resultobj;
44091fail:
44092 return NULL;
44093}
44094
44095
44096SWIGINTERN PyObject *_wrap_IntervalVar_StartsAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44097 PyObject *resultobj = 0;
44099 int64_t arg2 ;
44100 void *argp1 = 0 ;
44101 int res1 = 0 ;
44102 long val2 ;
44103 int ecode2 = 0 ;
44104 PyObject * obj0 = 0 ;
44105 PyObject * obj1 = 0 ;
44106 Swig::Director *director = 0;
44108
44109 if (!PyArg_UnpackTuple(args, "IntervalVar_StartsAt", 2, 2, &obj0, &obj1)) SWIG_fail;
44111 if (!SWIG_IsOK(res1)) {
44112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_StartsAt" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
44113 }
44114 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
44115 ecode2 = SWIG_AsVal_long(obj1, &val2);
44116 if (!SWIG_IsOK(ecode2)) {
44117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_StartsAt" "', argument " "2"" of type '" "int64_t""'");
44118 }
44119 arg2 = static_cast< int64_t >(val2);
44120 {
44121 try {
44123 }
44124 catch (Swig::DirectorException &e) {
44125 SWIG_fail;
44126 }
44127 }
44128 director = SWIG_DIRECTOR_CAST(result);
44129 if (director) {
44130 resultobj = director->swig_get_self();
44131 Py_INCREF(resultobj);
44132 } else {
44134 }
44135 return resultobj;
44136fail:
44137 return NULL;
44138}
44139
44140
44141SWIGINTERN PyObject *_wrap_IntervalVar_StartsBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44142 PyObject *resultobj = 0;
44144 int64_t arg2 ;
44145 void *argp1 = 0 ;
44146 int res1 = 0 ;
44147 long val2 ;
44148 int ecode2 = 0 ;
44149 PyObject * obj0 = 0 ;
44150 PyObject * obj1 = 0 ;
44151 Swig::Director *director = 0;
44153
44154 if (!PyArg_UnpackTuple(args, "IntervalVar_StartsBefore", 2, 2, &obj0, &obj1)) SWIG_fail;
44156 if (!SWIG_IsOK(res1)) {
44157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_StartsBefore" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
44158 }
44159 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
44160 ecode2 = SWIG_AsVal_long(obj1, &val2);
44161 if (!SWIG_IsOK(ecode2)) {
44162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_StartsBefore" "', argument " "2"" of type '" "int64_t""'");
44163 }
44164 arg2 = static_cast< int64_t >(val2);
44165 {
44166 try {
44168 }
44169 catch (Swig::DirectorException &e) {
44170 SWIG_fail;
44171 }
44172 }
44173 director = SWIG_DIRECTOR_CAST(result);
44174 if (director) {
44175 resultobj = director->swig_get_self();
44176 Py_INCREF(resultobj);
44177 } else {
44179 }
44180 return resultobj;
44181fail:
44182 return NULL;
44183}
44184
44185
44186SWIGINTERN PyObject *_wrap_IntervalVar_CrossesDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44187 PyObject *resultobj = 0;
44189 int64_t arg2 ;
44190 void *argp1 = 0 ;
44191 int res1 = 0 ;
44192 long val2 ;
44193 int ecode2 = 0 ;
44194 PyObject * obj0 = 0 ;
44195 PyObject * obj1 = 0 ;
44196 Swig::Director *director = 0;
44198
44199 if (!PyArg_UnpackTuple(args, "IntervalVar_CrossesDate", 2, 2, &obj0, &obj1)) SWIG_fail;
44201 if (!SWIG_IsOK(res1)) {
44202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_CrossesDate" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
44203 }
44204 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
44205 ecode2 = SWIG_AsVal_long(obj1, &val2);
44206 if (!SWIG_IsOK(ecode2)) {
44207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_CrossesDate" "', argument " "2"" of type '" "int64_t""'");
44208 }
44209 arg2 = static_cast< int64_t >(val2);
44210 {
44211 try {
44213 }
44214 catch (Swig::DirectorException &e) {
44215 SWIG_fail;
44216 }
44217 }
44218 director = SWIG_DIRECTOR_CAST(result);
44219 if (director) {
44220 resultobj = director->swig_get_self();
44221 Py_INCREF(resultobj);
44222 } else {
44224 }
44225 return resultobj;
44226fail:
44227 return NULL;
44228}
44229
44230
44231SWIGINTERN PyObject *_wrap_IntervalVar_AvoidsDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44232 PyObject *resultobj = 0;
44234 int64_t arg2 ;
44235 void *argp1 = 0 ;
44236 int res1 = 0 ;
44237 long val2 ;
44238 int ecode2 = 0 ;
44239 PyObject * obj0 = 0 ;
44240 PyObject * obj1 = 0 ;
44241 Swig::Director *director = 0;
44243
44244 if (!PyArg_UnpackTuple(args, "IntervalVar_AvoidsDate", 2, 2, &obj0, &obj1)) SWIG_fail;
44246 if (!SWIG_IsOK(res1)) {
44247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar_AvoidsDate" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
44248 }
44249 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
44250 ecode2 = SWIG_AsVal_long(obj1, &val2);
44251 if (!SWIG_IsOK(ecode2)) {
44252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVar_AvoidsDate" "', argument " "2"" of type '" "int64_t""'");
44253 }
44254 arg2 = static_cast< int64_t >(val2);
44255 {
44256 try {
44258 }
44259 catch (Swig::DirectorException &e) {
44260 SWIG_fail;
44261 }
44262 }
44263 director = SWIG_DIRECTOR_CAST(result);
44264 if (director) {
44265 resultobj = director->swig_get_self();
44266 Py_INCREF(resultobj);
44267 } else {
44269 }
44270 return resultobj;
44271fail:
44272 return NULL;
44273}
44274
44275
44276SWIGINTERN PyObject *_wrap_IntervalVar___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44277 PyObject *resultobj = 0;
44279 void *argp1 = 0 ;
44280 int res1 = 0 ;
44281 PyObject * obj0 = 0 ;
44282 std::string result;
44283
44284 if (!PyArg_UnpackTuple(args, "IntervalVar___repr__", 1, 1, &obj0)) SWIG_fail;
44286 if (!SWIG_IsOK(res1)) {
44287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar___repr__" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
44288 }
44289 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
44290 {
44291 try {
44293 }
44294 catch (Swig::DirectorException &e) {
44295 SWIG_fail;
44296 }
44297 }
44298 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
44299 return resultobj;
44300fail:
44301 return NULL;
44302}
44303
44304
44305SWIGINTERN PyObject *_wrap_IntervalVar___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44306 PyObject *resultobj = 0;
44308 void *argp1 = 0 ;
44309 int res1 = 0 ;
44310 PyObject * obj0 = 0 ;
44311 std::string result;
44312
44313 if (!PyArg_UnpackTuple(args, "IntervalVar___str__", 1, 1, &obj0)) SWIG_fail;
44315 if (!SWIG_IsOK(res1)) {
44316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVar___str__" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
44317 }
44318 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
44319 {
44320 try {
44322 }
44323 catch (Swig::DirectorException &e) {
44324 SWIG_fail;
44325 }
44326 }
44327 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
44328 return resultobj;
44329fail:
44330 return NULL;
44331}
44332
44333
44334SWIGINTERN PyObject *IntervalVar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44335 PyObject *obj;
44336 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
44338 return SWIG_Py_Void();
44339}
44340
44341SWIGINTERN PyObject *_wrap_SequenceVar_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44342 PyObject *resultobj = 0;
44344 void *argp1 = 0 ;
44345 int res1 = 0 ;
44346 PyObject * obj0 = 0 ;
44347 std::string result;
44348
44349 if (!PyArg_UnpackTuple(args, "SequenceVar_DebugString", 1, 1, &obj0)) SWIG_fail;
44351 if (!SWIG_IsOK(res1)) {
44352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVar_DebugString" "', argument " "1"" of type '" "operations_research::SequenceVar const *""'");
44353 }
44354 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44355 {
44356 try {
44357 result = ((operations_research::SequenceVar const *)arg1)->DebugString();
44358 }
44359 catch (Swig::DirectorException &e) {
44360 SWIG_fail;
44361 }
44362 }
44363 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
44364 return resultobj;
44365fail:
44366 return NULL;
44367}
44368
44369
44370SWIGINTERN PyObject *_wrap_SequenceVar_RankFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44371 PyObject *resultobj = 0;
44373 int arg2 ;
44374 void *argp1 = 0 ;
44375 int res1 = 0 ;
44376 int val2 ;
44377 int ecode2 = 0 ;
44378 PyObject * obj0 = 0 ;
44379 PyObject * obj1 = 0 ;
44380
44381 if (!PyArg_UnpackTuple(args, "SequenceVar_RankFirst", 2, 2, &obj0, &obj1)) SWIG_fail;
44383 if (!SWIG_IsOK(res1)) {
44384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVar_RankFirst" "', argument " "1"" of type '" "operations_research::SequenceVar *""'");
44385 }
44386 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44387 ecode2 = SWIG_AsVal_int(obj1, &val2);
44388 if (!SWIG_IsOK(ecode2)) {
44389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SequenceVar_RankFirst" "', argument " "2"" of type '" "int""'");
44390 }
44391 arg2 = static_cast< int >(val2);
44392 {
44393 try {
44394 (arg1)->RankFirst(arg2);
44395 }
44396 catch (Swig::DirectorException &e) {
44397 SWIG_fail;
44398 }
44399 }
44400 resultobj = SWIG_Py_Void();
44401 return resultobj;
44402fail:
44403 return NULL;
44404}
44405
44406
44407SWIGINTERN PyObject *_wrap_SequenceVar_RankNotFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44408 PyObject *resultobj = 0;
44410 int arg2 ;
44411 void *argp1 = 0 ;
44412 int res1 = 0 ;
44413 int val2 ;
44414 int ecode2 = 0 ;
44415 PyObject * obj0 = 0 ;
44416 PyObject * obj1 = 0 ;
44417
44418 if (!PyArg_UnpackTuple(args, "SequenceVar_RankNotFirst", 2, 2, &obj0, &obj1)) SWIG_fail;
44420 if (!SWIG_IsOK(res1)) {
44421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVar_RankNotFirst" "', argument " "1"" of type '" "operations_research::SequenceVar *""'");
44422 }
44423 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44424 ecode2 = SWIG_AsVal_int(obj1, &val2);
44425 if (!SWIG_IsOK(ecode2)) {
44426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SequenceVar_RankNotFirst" "', argument " "2"" of type '" "int""'");
44427 }
44428 arg2 = static_cast< int >(val2);
44429 {
44430 try {
44431 (arg1)->RankNotFirst(arg2);
44432 }
44433 catch (Swig::DirectorException &e) {
44434 SWIG_fail;
44435 }
44436 }
44437 resultobj = SWIG_Py_Void();
44438 return resultobj;
44439fail:
44440 return NULL;
44441}
44442
44443
44444SWIGINTERN PyObject *_wrap_SequenceVar_RankLast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44445 PyObject *resultobj = 0;
44447 int arg2 ;
44448 void *argp1 = 0 ;
44449 int res1 = 0 ;
44450 int val2 ;
44451 int ecode2 = 0 ;
44452 PyObject * obj0 = 0 ;
44453 PyObject * obj1 = 0 ;
44454
44455 if (!PyArg_UnpackTuple(args, "SequenceVar_RankLast", 2, 2, &obj0, &obj1)) SWIG_fail;
44457 if (!SWIG_IsOK(res1)) {
44458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVar_RankLast" "', argument " "1"" of type '" "operations_research::SequenceVar *""'");
44459 }
44460 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44461 ecode2 = SWIG_AsVal_int(obj1, &val2);
44462 if (!SWIG_IsOK(ecode2)) {
44463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SequenceVar_RankLast" "', argument " "2"" of type '" "int""'");
44464 }
44465 arg2 = static_cast< int >(val2);
44466 {
44467 try {
44468 (arg1)->RankLast(arg2);
44469 }
44470 catch (Swig::DirectorException &e) {
44471 SWIG_fail;
44472 }
44473 }
44474 resultobj = SWIG_Py_Void();
44475 return resultobj;
44476fail:
44477 return NULL;
44478}
44479
44480
44481SWIGINTERN PyObject *_wrap_SequenceVar_RankNotLast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44482 PyObject *resultobj = 0;
44484 int arg2 ;
44485 void *argp1 = 0 ;
44486 int res1 = 0 ;
44487 int val2 ;
44488 int ecode2 = 0 ;
44489 PyObject * obj0 = 0 ;
44490 PyObject * obj1 = 0 ;
44491
44492 if (!PyArg_UnpackTuple(args, "SequenceVar_RankNotLast", 2, 2, &obj0, &obj1)) SWIG_fail;
44494 if (!SWIG_IsOK(res1)) {
44495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVar_RankNotLast" "', argument " "1"" of type '" "operations_research::SequenceVar *""'");
44496 }
44497 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44498 ecode2 = SWIG_AsVal_int(obj1, &val2);
44499 if (!SWIG_IsOK(ecode2)) {
44500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SequenceVar_RankNotLast" "', argument " "2"" of type '" "int""'");
44501 }
44502 arg2 = static_cast< int >(val2);
44503 {
44504 try {
44505 (arg1)->RankNotLast(arg2);
44506 }
44507 catch (Swig::DirectorException &e) {
44508 SWIG_fail;
44509 }
44510 }
44511 resultobj = SWIG_Py_Void();
44512 return resultobj;
44513fail:
44514 return NULL;
44515}
44516
44517
44518SWIGINTERN PyObject *_wrap_SequenceVar_Interval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44519 PyObject *resultobj = 0;
44521 int arg2 ;
44522 void *argp1 = 0 ;
44523 int res1 = 0 ;
44524 int val2 ;
44525 int ecode2 = 0 ;
44526 PyObject * obj0 = 0 ;
44527 PyObject * obj1 = 0 ;
44529
44530 if (!PyArg_UnpackTuple(args, "SequenceVar_Interval", 2, 2, &obj0, &obj1)) SWIG_fail;
44532 if (!SWIG_IsOK(res1)) {
44533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVar_Interval" "', argument " "1"" of type '" "operations_research::SequenceVar const *""'");
44534 }
44535 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44536 ecode2 = SWIG_AsVal_int(obj1, &val2);
44537 if (!SWIG_IsOK(ecode2)) {
44538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SequenceVar_Interval" "', argument " "2"" of type '" "int""'");
44539 }
44540 arg2 = static_cast< int >(val2);
44541 {
44542 try {
44543 result = (operations_research::IntervalVar *)((operations_research::SequenceVar const *)arg1)->Interval(arg2);
44544 }
44545 catch (Swig::DirectorException &e) {
44546 SWIG_fail;
44547 }
44548 }
44550 return resultobj;
44551fail:
44552 return NULL;
44553}
44554
44555
44556SWIGINTERN PyObject *_wrap_SequenceVar_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44557 PyObject *resultobj = 0;
44559 int arg2 ;
44560 void *argp1 = 0 ;
44561 int res1 = 0 ;
44562 int val2 ;
44563 int ecode2 = 0 ;
44564 PyObject * obj0 = 0 ;
44565 PyObject * obj1 = 0 ;
44566 operations_research::IntVar *result = 0 ;
44567
44568 if (!PyArg_UnpackTuple(args, "SequenceVar_Next", 2, 2, &obj0, &obj1)) SWIG_fail;
44570 if (!SWIG_IsOK(res1)) {
44571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVar_Next" "', argument " "1"" of type '" "operations_research::SequenceVar const *""'");
44572 }
44573 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44574 ecode2 = SWIG_AsVal_int(obj1, &val2);
44575 if (!SWIG_IsOK(ecode2)) {
44576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SequenceVar_Next" "', argument " "2"" of type '" "int""'");
44577 }
44578 arg2 = static_cast< int >(val2);
44579 {
44580 try {
44581 result = (operations_research::IntVar *)((operations_research::SequenceVar const *)arg1)->Next(arg2);
44582 }
44583 catch (Swig::DirectorException &e) {
44584 SWIG_fail;
44585 }
44586 }
44588 return resultobj;
44589fail:
44590 return NULL;
44591}
44592
44593
44594SWIGINTERN PyObject *_wrap_SequenceVar_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44595 PyObject *resultobj = 0;
44597 void *argp1 = 0 ;
44598 int res1 = 0 ;
44599 PyObject * obj0 = 0 ;
44600 int64_t result;
44601
44602 if (!PyArg_UnpackTuple(args, "SequenceVar_Size", 1, 1, &obj0)) SWIG_fail;
44604 if (!SWIG_IsOK(res1)) {
44605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVar_Size" "', argument " "1"" of type '" "operations_research::SequenceVar const *""'");
44606 }
44607 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44608 {
44609 try {
44610 result = (int64_t)((operations_research::SequenceVar const *)arg1)->size();
44611 }
44612 catch (Swig::DirectorException &e) {
44613 SWIG_fail;
44614 }
44615 }
44616 resultobj = SWIG_From_long(static_cast< long >(result));
44617 return resultobj;
44618fail:
44619 return NULL;
44620}
44621
44622
44623SWIGINTERN PyObject *_wrap_SequenceVar___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44624 PyObject *resultobj = 0;
44626 void *argp1 = 0 ;
44627 int res1 = 0 ;
44628 PyObject * obj0 = 0 ;
44629 std::string result;
44630
44631 if (!PyArg_UnpackTuple(args, "SequenceVar___repr__", 1, 1, &obj0)) SWIG_fail;
44633 if (!SWIG_IsOK(res1)) {
44634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVar___repr__" "', argument " "1"" of type '" "operations_research::SequenceVar *""'");
44635 }
44636 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44637 {
44638 try {
44640 }
44641 catch (Swig::DirectorException &e) {
44642 SWIG_fail;
44643 }
44644 }
44645 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
44646 return resultobj;
44647fail:
44648 return NULL;
44649}
44650
44651
44652SWIGINTERN PyObject *_wrap_SequenceVar___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44653 PyObject *resultobj = 0;
44655 void *argp1 = 0 ;
44656 int res1 = 0 ;
44657 PyObject * obj0 = 0 ;
44658 std::string result;
44659
44660 if (!PyArg_UnpackTuple(args, "SequenceVar___str__", 1, 1, &obj0)) SWIG_fail;
44662 if (!SWIG_IsOK(res1)) {
44663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVar___str__" "', argument " "1"" of type '" "operations_research::SequenceVar *""'");
44664 }
44665 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44666 {
44667 try {
44669 }
44670 catch (Swig::DirectorException &e) {
44671 SWIG_fail;
44672 }
44673 }
44674 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
44675 return resultobj;
44676fail:
44677 return NULL;
44678}
44679
44680
44681SWIGINTERN PyObject *SequenceVar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44682 PyObject *obj;
44683 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
44685 return SWIG_Py_Void();
44686}
44687
44688SWIGINTERN PyObject *_wrap_AssignmentElement_Activate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44689 PyObject *resultobj = 0;
44691 void *argp1 = 0 ;
44692 int res1 = 0 ;
44693 PyObject * obj0 = 0 ;
44694
44695 if (!PyArg_UnpackTuple(args, "AssignmentElement_Activate", 1, 1, &obj0)) SWIG_fail;
44697 if (!SWIG_IsOK(res1)) {
44698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssignmentElement_Activate" "', argument " "1"" of type '" "operations_research::AssignmentElement *""'");
44699 }
44700 arg1 = reinterpret_cast< operations_research::AssignmentElement * >(argp1);
44701 {
44702 try {
44703 (arg1)->Activate();
44704 }
44705 catch (Swig::DirectorException &e) {
44706 SWIG_fail;
44707 }
44708 }
44709 resultobj = SWIG_Py_Void();
44710 return resultobj;
44711fail:
44712 return NULL;
44713}
44714
44715
44716SWIGINTERN PyObject *_wrap_AssignmentElement_Deactivate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44717 PyObject *resultobj = 0;
44719 void *argp1 = 0 ;
44720 int res1 = 0 ;
44721 PyObject * obj0 = 0 ;
44722
44723 if (!PyArg_UnpackTuple(args, "AssignmentElement_Deactivate", 1, 1, &obj0)) SWIG_fail;
44725 if (!SWIG_IsOK(res1)) {
44726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssignmentElement_Deactivate" "', argument " "1"" of type '" "operations_research::AssignmentElement *""'");
44727 }
44728 arg1 = reinterpret_cast< operations_research::AssignmentElement * >(argp1);
44729 {
44730 try {
44731 (arg1)->Deactivate();
44732 }
44733 catch (Swig::DirectorException &e) {
44734 SWIG_fail;
44735 }
44736 }
44737 resultobj = SWIG_Py_Void();
44738 return resultobj;
44739fail:
44740 return NULL;
44741}
44742
44743
44744SWIGINTERN PyObject *_wrap_AssignmentElement_Activated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44745 PyObject *resultobj = 0;
44747 void *argp1 = 0 ;
44748 int res1 = 0 ;
44749 PyObject * obj0 = 0 ;
44750 bool result;
44751
44752 if (!PyArg_UnpackTuple(args, "AssignmentElement_Activated", 1, 1, &obj0)) SWIG_fail;
44754 if (!SWIG_IsOK(res1)) {
44755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssignmentElement_Activated" "', argument " "1"" of type '" "operations_research::AssignmentElement const *""'");
44756 }
44757 arg1 = reinterpret_cast< operations_research::AssignmentElement * >(argp1);
44758 {
44759 try {
44760 result = (bool)((operations_research::AssignmentElement const *)arg1)->Activated();
44761 }
44762 catch (Swig::DirectorException &e) {
44763 SWIG_fail;
44764 }
44765 }
44766 resultobj = SWIG_From_bool(static_cast< bool >(result));
44767 return resultobj;
44768fail:
44769 return NULL;
44770}
44771
44772
44773SWIGINTERN PyObject *_wrap_delete_AssignmentElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44774 PyObject *resultobj = 0;
44776 void *argp1 = 0 ;
44777 int res1 = 0 ;
44778 PyObject * obj0 = 0 ;
44779
44780 if (!PyArg_UnpackTuple(args, "delete_AssignmentElement", 1, 1, &obj0)) SWIG_fail;
44782 if (!SWIG_IsOK(res1)) {
44783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AssignmentElement" "', argument " "1"" of type '" "operations_research::AssignmentElement *""'");
44784 }
44785 arg1 = reinterpret_cast< operations_research::AssignmentElement * >(argp1);
44786 {
44787 try {
44788 delete arg1;
44789 }
44790 catch (Swig::DirectorException &e) {
44791 SWIG_fail;
44792 }
44793 }
44794 resultobj = SWIG_Py_Void();
44795 return resultobj;
44796fail:
44797 return NULL;
44798}
44799
44800
44801SWIGINTERN PyObject *AssignmentElement_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44802 PyObject *obj;
44803 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
44805 return SWIG_Py_Void();
44806}
44807
44808SWIGINTERN PyObject *_wrap_IntVarElement_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44809 PyObject *resultobj = 0;
44811 void *argp1 = 0 ;
44812 int res1 = 0 ;
44813 PyObject * obj0 = 0 ;
44814 operations_research::IntVar *result = 0 ;
44815
44816 if (!PyArg_UnpackTuple(args, "IntVarElement_Var", 1, 1, &obj0)) SWIG_fail;
44818 if (!SWIG_IsOK(res1)) {
44819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarElement_Var" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
44820 }
44821 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
44822 {
44823 try {
44824 result = (operations_research::IntVar *)((operations_research::IntVarElement const *)arg1)->Var();
44825 }
44826 catch (Swig::DirectorException &e) {
44827 SWIG_fail;
44828 }
44829 }
44831 return resultobj;
44832fail:
44833 return NULL;
44834}
44835
44836
44837SWIGINTERN PyObject *_wrap_IntVarElement_Min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44838 PyObject *resultobj = 0;
44840 void *argp1 = 0 ;
44841 int res1 = 0 ;
44842 PyObject * obj0 = 0 ;
44843 int64_t result;
44844
44845 if (!PyArg_UnpackTuple(args, "IntVarElement_Min", 1, 1, &obj0)) SWIG_fail;
44847 if (!SWIG_IsOK(res1)) {
44848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarElement_Min" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
44849 }
44850 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
44851 {
44852 try {
44853 result = (int64_t)((operations_research::IntVarElement const *)arg1)->Min();
44854 }
44855 catch (Swig::DirectorException &e) {
44856 SWIG_fail;
44857 }
44858 }
44859 resultobj = SWIG_From_long(static_cast< long >(result));
44860 return resultobj;
44861fail:
44862 return NULL;
44863}
44864
44865
44866SWIGINTERN PyObject *_wrap_IntVarElement_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44867 PyObject *resultobj = 0;
44869 int64_t arg2 ;
44870 void *argp1 = 0 ;
44871 int res1 = 0 ;
44872 long val2 ;
44873 int ecode2 = 0 ;
44874 PyObject * obj0 = 0 ;
44875 PyObject * obj1 = 0 ;
44876
44877 if (!PyArg_UnpackTuple(args, "IntVarElement_SetMin", 2, 2, &obj0, &obj1)) SWIG_fail;
44879 if (!SWIG_IsOK(res1)) {
44880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarElement_SetMin" "', argument " "1"" of type '" "operations_research::IntVarElement *""'");
44881 }
44882 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
44883 ecode2 = SWIG_AsVal_long(obj1, &val2);
44884 if (!SWIG_IsOK(ecode2)) {
44885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVarElement_SetMin" "', argument " "2"" of type '" "int64_t""'");
44886 }
44887 arg2 = static_cast< int64_t >(val2);
44888 {
44889 try {
44890 (arg1)->SetMin(arg2);
44891 }
44892 catch (Swig::DirectorException &e) {
44893 SWIG_fail;
44894 }
44895 }
44896 resultobj = SWIG_Py_Void();
44897 return resultobj;
44898fail:
44899 return NULL;
44900}
44901
44902
44903SWIGINTERN PyObject *_wrap_IntVarElement_Max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44904 PyObject *resultobj = 0;
44906 void *argp1 = 0 ;
44907 int res1 = 0 ;
44908 PyObject * obj0 = 0 ;
44909 int64_t result;
44910
44911 if (!PyArg_UnpackTuple(args, "IntVarElement_Max", 1, 1, &obj0)) SWIG_fail;
44913 if (!SWIG_IsOK(res1)) {
44914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarElement_Max" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
44915 }
44916 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
44917 {
44918 try {
44919 result = (int64_t)((operations_research::IntVarElement const *)arg1)->Max();
44920 }
44921 catch (Swig::DirectorException &e) {
44922 SWIG_fail;
44923 }
44924 }
44925 resultobj = SWIG_From_long(static_cast< long >(result));
44926 return resultobj;
44927fail:
44928 return NULL;
44929}
44930
44931
44932SWIGINTERN PyObject *_wrap_IntVarElement_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44933 PyObject *resultobj = 0;
44935 int64_t arg2 ;
44936 void *argp1 = 0 ;
44937 int res1 = 0 ;
44938 long val2 ;
44939 int ecode2 = 0 ;
44940 PyObject * obj0 = 0 ;
44941 PyObject * obj1 = 0 ;
44942
44943 if (!PyArg_UnpackTuple(args, "IntVarElement_SetMax", 2, 2, &obj0, &obj1)) SWIG_fail;
44945 if (!SWIG_IsOK(res1)) {
44946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarElement_SetMax" "', argument " "1"" of type '" "operations_research::IntVarElement *""'");
44947 }
44948 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
44949 ecode2 = SWIG_AsVal_long(obj1, &val2);
44950 if (!SWIG_IsOK(ecode2)) {
44951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVarElement_SetMax" "', argument " "2"" of type '" "int64_t""'");
44952 }
44953 arg2 = static_cast< int64_t >(val2);
44954 {
44955 try {
44956 (arg1)->SetMax(arg2);
44957 }
44958 catch (Swig::DirectorException &e) {
44959 SWIG_fail;
44960 }
44961 }
44962 resultobj = SWIG_Py_Void();
44963 return resultobj;
44964fail:
44965 return NULL;
44966}
44967
44968
44969SWIGINTERN PyObject *_wrap_IntVarElement_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44970 PyObject *resultobj = 0;
44972 void *argp1 = 0 ;
44973 int res1 = 0 ;
44974 PyObject * obj0 = 0 ;
44975 int64_t result;
44976
44977 if (!PyArg_UnpackTuple(args, "IntVarElement_Value", 1, 1, &obj0)) SWIG_fail;
44979 if (!SWIG_IsOK(res1)) {
44980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarElement_Value" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
44981 }
44982 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
44983 {
44984 try {
44985 result = (int64_t)((operations_research::IntVarElement const *)arg1)->Value();
44986 }
44987 catch (Swig::DirectorException &e) {
44988 SWIG_fail;
44989 }
44990 }
44991 resultobj = SWIG_From_long(static_cast< long >(result));
44992 return resultobj;
44993fail:
44994 return NULL;
44995}
44996
44997
44998SWIGINTERN PyObject *_wrap_IntVarElement_Bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44999 PyObject *resultobj = 0;
45001 void *argp1 = 0 ;
45002 int res1 = 0 ;
45003 PyObject * obj0 = 0 ;
45004 bool result;
45005
45006 if (!PyArg_UnpackTuple(args, "IntVarElement_Bound", 1, 1, &obj0)) SWIG_fail;
45008 if (!SWIG_IsOK(res1)) {
45009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarElement_Bound" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
45010 }
45011 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
45012 {
45013 try {
45014 result = (bool)((operations_research::IntVarElement const *)arg1)->Bound();
45015 }
45016 catch (Swig::DirectorException &e) {
45017 SWIG_fail;
45018 }
45019 }
45020 resultobj = SWIG_From_bool(static_cast< bool >(result));
45021 return resultobj;
45022fail:
45023 return NULL;
45024}
45025
45026
45027SWIGINTERN PyObject *_wrap_IntVarElement_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45028 PyObject *resultobj = 0;
45030 int64_t arg2 ;
45031 int64_t arg3 ;
45032 void *argp1 = 0 ;
45033 int res1 = 0 ;
45034 long val2 ;
45035 int ecode2 = 0 ;
45036 long val3 ;
45037 int ecode3 = 0 ;
45038 PyObject * obj0 = 0 ;
45039 PyObject * obj1 = 0 ;
45040 PyObject * obj2 = 0 ;
45041
45042 if (!PyArg_UnpackTuple(args, "IntVarElement_SetRange", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
45044 if (!SWIG_IsOK(res1)) {
45045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarElement_SetRange" "', argument " "1"" of type '" "operations_research::IntVarElement *""'");
45046 }
45047 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
45048 ecode2 = SWIG_AsVal_long(obj1, &val2);
45049 if (!SWIG_IsOK(ecode2)) {
45050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVarElement_SetRange" "', argument " "2"" of type '" "int64_t""'");
45051 }
45052 arg2 = static_cast< int64_t >(val2);
45053 ecode3 = SWIG_AsVal_long(obj2, &val3);
45054 if (!SWIG_IsOK(ecode3)) {
45055 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVarElement_SetRange" "', argument " "3"" of type '" "int64_t""'");
45056 }
45057 arg3 = static_cast< int64_t >(val3);
45058 {
45059 try {
45060 (arg1)->SetRange(arg2,arg3);
45061 }
45062 catch (Swig::DirectorException &e) {
45063 SWIG_fail;
45064 }
45065 }
45066 resultobj = SWIG_Py_Void();
45067 return resultobj;
45068fail:
45069 return NULL;
45070}
45071
45072
45073SWIGINTERN PyObject *_wrap_IntVarElement_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45074 PyObject *resultobj = 0;
45076 int64_t arg2 ;
45077 void *argp1 = 0 ;
45078 int res1 = 0 ;
45079 long val2 ;
45080 int ecode2 = 0 ;
45081 PyObject * obj0 = 0 ;
45082 PyObject * obj1 = 0 ;
45083
45084 if (!PyArg_UnpackTuple(args, "IntVarElement_SetValue", 2, 2, &obj0, &obj1)) SWIG_fail;
45086 if (!SWIG_IsOK(res1)) {
45087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarElement_SetValue" "', argument " "1"" of type '" "operations_research::IntVarElement *""'");
45088 }
45089 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
45090 ecode2 = SWIG_AsVal_long(obj1, &val2);
45091 if (!SWIG_IsOK(ecode2)) {
45092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVarElement_SetValue" "', argument " "2"" of type '" "int64_t""'");
45093 }
45094 arg2 = static_cast< int64_t >(val2);
45095 {
45096 try {
45097 (arg1)->SetValue(arg2);
45098 }
45099 catch (Swig::DirectorException &e) {
45100 SWIG_fail;
45101 }
45102 }
45103 resultobj = SWIG_Py_Void();
45104 return resultobj;
45105fail:
45106 return NULL;
45107}
45108
45109
45110SWIGINTERN PyObject *_wrap_IntVarElement___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45111 PyObject *resultobj = 0;
45114 void *argp1 = 0 ;
45115 int res1 = 0 ;
45116 void *argp2 = 0 ;
45117 int res2 = 0 ;
45118 PyObject * obj0 = 0 ;
45119 PyObject * obj1 = 0 ;
45120 bool result;
45121
45122 if (!PyArg_UnpackTuple(args, "IntVarElement___eq__", 2, 2, &obj0, &obj1)) SWIG_fail;
45124 if (!SWIG_IsOK(res1)) {
45125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarElement___eq__" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
45126 }
45127 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
45129 if (!SWIG_IsOK(res2)) {
45130 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntVarElement___eq__" "', argument " "2"" of type '" "operations_research::IntVarElement const &""'");
45131 }
45132 if (!argp2) {
45133 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVarElement___eq__" "', argument " "2"" of type '" "operations_research::IntVarElement const &""'");
45134 }
45135 arg2 = reinterpret_cast< operations_research::IntVarElement * >(argp2);
45136 {
45137 try {
45138 result = (bool)((operations_research::IntVarElement const *)arg1)->operator ==((operations_research::IntVarElement const &)*arg2);
45139 }
45140 catch (Swig::DirectorException &e) {
45141 SWIG_fail;
45142 }
45143 }
45144 resultobj = SWIG_From_bool(static_cast< bool >(result));
45145 return resultobj;
45146fail:
45147 PyErr_Clear();
45148 Py_INCREF(Py_NotImplemented);
45149 return Py_NotImplemented;
45150}
45151
45152
45153SWIGINTERN PyObject *_wrap_IntVarElement___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45154 PyObject *resultobj = 0;
45157 void *argp1 = 0 ;
45158 int res1 = 0 ;
45159 void *argp2 = 0 ;
45160 int res2 = 0 ;
45161 PyObject * obj0 = 0 ;
45162 PyObject * obj1 = 0 ;
45163 bool result;
45164
45165 if (!PyArg_UnpackTuple(args, "IntVarElement___ne__", 2, 2, &obj0, &obj1)) SWIG_fail;
45167 if (!SWIG_IsOK(res1)) {
45168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarElement___ne__" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
45169 }
45170 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
45172 if (!SWIG_IsOK(res2)) {
45173 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntVarElement___ne__" "', argument " "2"" of type '" "operations_research::IntVarElement const &""'");
45174 }
45175 if (!argp2) {
45176 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVarElement___ne__" "', argument " "2"" of type '" "operations_research::IntVarElement const &""'");
45177 }
45178 arg2 = reinterpret_cast< operations_research::IntVarElement * >(argp2);
45179 {
45180 try {
45181 result = (bool)((operations_research::IntVarElement const *)arg1)->operator !=((operations_research::IntVarElement const &)*arg2);
45182 }
45183 catch (Swig::DirectorException &e) {
45184 SWIG_fail;
45185 }
45186 }
45187 resultobj = SWIG_From_bool(static_cast< bool >(result));
45188 return resultobj;
45189fail:
45190 PyErr_Clear();
45191 Py_INCREF(Py_NotImplemented);
45192 return Py_NotImplemented;
45193}
45194
45195
45196SWIGINTERN PyObject *_wrap_delete_IntVarElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45197 PyObject *resultobj = 0;
45199 void *argp1 = 0 ;
45200 int res1 = 0 ;
45201 PyObject * obj0 = 0 ;
45202
45203 if (!PyArg_UnpackTuple(args, "delete_IntVarElement", 1, 1, &obj0)) SWIG_fail;
45205 if (!SWIG_IsOK(res1)) {
45206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntVarElement" "', argument " "1"" of type '" "operations_research::IntVarElement *""'");
45207 }
45208 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
45209 {
45210 try {
45211 delete arg1;
45212 }
45213 catch (Swig::DirectorException &e) {
45214 SWIG_fail;
45215 }
45216 }
45217 resultobj = SWIG_Py_Void();
45218 return resultobj;
45219fail:
45220 return NULL;
45221}
45222
45223
45224SWIGINTERN PyObject *IntVarElement_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45225 PyObject *obj;
45226 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
45228 return SWIG_Py_Void();
45229}
45230
45231SWIGINTERN PyObject *_wrap_IntervalVarElement_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45232 PyObject *resultobj = 0;
45234 void *argp1 = 0 ;
45235 int res1 = 0 ;
45236 PyObject * obj0 = 0 ;
45238
45239 if (!PyArg_UnpackTuple(args, "IntervalVarElement_Var", 1, 1, &obj0)) SWIG_fail;
45241 if (!SWIG_IsOK(res1)) {
45242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_Var" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45243 }
45244 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45245 {
45246 try {
45248 }
45249 catch (Swig::DirectorException &e) {
45250 SWIG_fail;
45251 }
45252 }
45254 return resultobj;
45255fail:
45256 return NULL;
45257}
45258
45259
45260SWIGINTERN PyObject *_wrap_IntervalVarElement_StartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45261 PyObject *resultobj = 0;
45263 void *argp1 = 0 ;
45264 int res1 = 0 ;
45265 PyObject * obj0 = 0 ;
45266 int64_t result;
45267
45268 if (!PyArg_UnpackTuple(args, "IntervalVarElement_StartMin", 1, 1, &obj0)) SWIG_fail;
45270 if (!SWIG_IsOK(res1)) {
45271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_StartMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45272 }
45273 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45274 {
45275 try {
45276 result = (int64_t)((operations_research::IntervalVarElement const *)arg1)->StartMin();
45277 }
45278 catch (Swig::DirectorException &e) {
45279 SWIG_fail;
45280 }
45281 }
45282 resultobj = SWIG_From_long(static_cast< long >(result));
45283 return resultobj;
45284fail:
45285 return NULL;
45286}
45287
45288
45289SWIGINTERN PyObject *_wrap_IntervalVarElement_StartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45290 PyObject *resultobj = 0;
45292 void *argp1 = 0 ;
45293 int res1 = 0 ;
45294 PyObject * obj0 = 0 ;
45295 int64_t result;
45296
45297 if (!PyArg_UnpackTuple(args, "IntervalVarElement_StartMax", 1, 1, &obj0)) SWIG_fail;
45299 if (!SWIG_IsOK(res1)) {
45300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_StartMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45301 }
45302 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45303 {
45304 try {
45305 result = (int64_t)((operations_research::IntervalVarElement const *)arg1)->StartMax();
45306 }
45307 catch (Swig::DirectorException &e) {
45308 SWIG_fail;
45309 }
45310 }
45311 resultobj = SWIG_From_long(static_cast< long >(result));
45312 return resultobj;
45313fail:
45314 return NULL;
45315}
45316
45317
45318SWIGINTERN PyObject *_wrap_IntervalVarElement_StartValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45319 PyObject *resultobj = 0;
45321 void *argp1 = 0 ;
45322 int res1 = 0 ;
45323 PyObject * obj0 = 0 ;
45324 int64_t result;
45325
45326 if (!PyArg_UnpackTuple(args, "IntervalVarElement_StartValue", 1, 1, &obj0)) SWIG_fail;
45328 if (!SWIG_IsOK(res1)) {
45329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_StartValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45330 }
45331 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45332 {
45333 try {
45334 result = (int64_t)((operations_research::IntervalVarElement const *)arg1)->StartValue();
45335 }
45336 catch (Swig::DirectorException &e) {
45337 SWIG_fail;
45338 }
45339 }
45340 resultobj = SWIG_From_long(static_cast< long >(result));
45341 return resultobj;
45342fail:
45343 return NULL;
45344}
45345
45346
45347SWIGINTERN PyObject *_wrap_IntervalVarElement_DurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45348 PyObject *resultobj = 0;
45350 void *argp1 = 0 ;
45351 int res1 = 0 ;
45352 PyObject * obj0 = 0 ;
45353 int64_t result;
45354
45355 if (!PyArg_UnpackTuple(args, "IntervalVarElement_DurationMin", 1, 1, &obj0)) SWIG_fail;
45357 if (!SWIG_IsOK(res1)) {
45358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_DurationMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45359 }
45360 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45361 {
45362 try {
45363 result = (int64_t)((operations_research::IntervalVarElement const *)arg1)->DurationMin();
45364 }
45365 catch (Swig::DirectorException &e) {
45366 SWIG_fail;
45367 }
45368 }
45369 resultobj = SWIG_From_long(static_cast< long >(result));
45370 return resultobj;
45371fail:
45372 return NULL;
45373}
45374
45375
45376SWIGINTERN PyObject *_wrap_IntervalVarElement_DurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45377 PyObject *resultobj = 0;
45379 void *argp1 = 0 ;
45380 int res1 = 0 ;
45381 PyObject * obj0 = 0 ;
45382 int64_t result;
45383
45384 if (!PyArg_UnpackTuple(args, "IntervalVarElement_DurationMax", 1, 1, &obj0)) SWIG_fail;
45386 if (!SWIG_IsOK(res1)) {
45387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_DurationMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45388 }
45389 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45390 {
45391 try {
45392 result = (int64_t)((operations_research::IntervalVarElement const *)arg1)->DurationMax();
45393 }
45394 catch (Swig::DirectorException &e) {
45395 SWIG_fail;
45396 }
45397 }
45398 resultobj = SWIG_From_long(static_cast< long >(result));
45399 return resultobj;
45400fail:
45401 return NULL;
45402}
45403
45404
45405SWIGINTERN PyObject *_wrap_IntervalVarElement_DurationValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45406 PyObject *resultobj = 0;
45408 void *argp1 = 0 ;
45409 int res1 = 0 ;
45410 PyObject * obj0 = 0 ;
45411 int64_t result;
45412
45413 if (!PyArg_UnpackTuple(args, "IntervalVarElement_DurationValue", 1, 1, &obj0)) SWIG_fail;
45415 if (!SWIG_IsOK(res1)) {
45416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_DurationValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45417 }
45418 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45419 {
45420 try {
45421 result = (int64_t)((operations_research::IntervalVarElement const *)arg1)->DurationValue();
45422 }
45423 catch (Swig::DirectorException &e) {
45424 SWIG_fail;
45425 }
45426 }
45427 resultobj = SWIG_From_long(static_cast< long >(result));
45428 return resultobj;
45429fail:
45430 return NULL;
45431}
45432
45433
45434SWIGINTERN PyObject *_wrap_IntervalVarElement_EndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45435 PyObject *resultobj = 0;
45437 void *argp1 = 0 ;
45438 int res1 = 0 ;
45439 PyObject * obj0 = 0 ;
45440 int64_t result;
45441
45442 if (!PyArg_UnpackTuple(args, "IntervalVarElement_EndMin", 1, 1, &obj0)) SWIG_fail;
45444 if (!SWIG_IsOK(res1)) {
45445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_EndMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45446 }
45447 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45448 {
45449 try {
45450 result = (int64_t)((operations_research::IntervalVarElement const *)arg1)->EndMin();
45451 }
45452 catch (Swig::DirectorException &e) {
45453 SWIG_fail;
45454 }
45455 }
45456 resultobj = SWIG_From_long(static_cast< long >(result));
45457 return resultobj;
45458fail:
45459 return NULL;
45460}
45461
45462
45463SWIGINTERN PyObject *_wrap_IntervalVarElement_EndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45464 PyObject *resultobj = 0;
45466 void *argp1 = 0 ;
45467 int res1 = 0 ;
45468 PyObject * obj0 = 0 ;
45469 int64_t result;
45470
45471 if (!PyArg_UnpackTuple(args, "IntervalVarElement_EndMax", 1, 1, &obj0)) SWIG_fail;
45473 if (!SWIG_IsOK(res1)) {
45474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_EndMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45475 }
45476 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45477 {
45478 try {
45479 result = (int64_t)((operations_research::IntervalVarElement const *)arg1)->EndMax();
45480 }
45481 catch (Swig::DirectorException &e) {
45482 SWIG_fail;
45483 }
45484 }
45485 resultobj = SWIG_From_long(static_cast< long >(result));
45486 return resultobj;
45487fail:
45488 return NULL;
45489}
45490
45491
45492SWIGINTERN PyObject *_wrap_IntervalVarElement_EndValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45493 PyObject *resultobj = 0;
45495 void *argp1 = 0 ;
45496 int res1 = 0 ;
45497 PyObject * obj0 = 0 ;
45498 int64_t result;
45499
45500 if (!PyArg_UnpackTuple(args, "IntervalVarElement_EndValue", 1, 1, &obj0)) SWIG_fail;
45502 if (!SWIG_IsOK(res1)) {
45503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_EndValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45504 }
45505 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45506 {
45507 try {
45508 result = (int64_t)((operations_research::IntervalVarElement const *)arg1)->EndValue();
45509 }
45510 catch (Swig::DirectorException &e) {
45511 SWIG_fail;
45512 }
45513 }
45514 resultobj = SWIG_From_long(static_cast< long >(result));
45515 return resultobj;
45516fail:
45517 return NULL;
45518}
45519
45520
45521SWIGINTERN PyObject *_wrap_IntervalVarElement_PerformedMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45522 PyObject *resultobj = 0;
45524 void *argp1 = 0 ;
45525 int res1 = 0 ;
45526 PyObject * obj0 = 0 ;
45527 int64_t result;
45528
45529 if (!PyArg_UnpackTuple(args, "IntervalVarElement_PerformedMin", 1, 1, &obj0)) SWIG_fail;
45531 if (!SWIG_IsOK(res1)) {
45532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_PerformedMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45533 }
45534 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45535 {
45536 try {
45537 result = (int64_t)((operations_research::IntervalVarElement const *)arg1)->PerformedMin();
45538 }
45539 catch (Swig::DirectorException &e) {
45540 SWIG_fail;
45541 }
45542 }
45543 resultobj = SWIG_From_long(static_cast< long >(result));
45544 return resultobj;
45545fail:
45546 return NULL;
45547}
45548
45549
45550SWIGINTERN PyObject *_wrap_IntervalVarElement_PerformedMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45551 PyObject *resultobj = 0;
45553 void *argp1 = 0 ;
45554 int res1 = 0 ;
45555 PyObject * obj0 = 0 ;
45556 int64_t result;
45557
45558 if (!PyArg_UnpackTuple(args, "IntervalVarElement_PerformedMax", 1, 1, &obj0)) SWIG_fail;
45560 if (!SWIG_IsOK(res1)) {
45561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_PerformedMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45562 }
45563 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45564 {
45565 try {
45566 result = (int64_t)((operations_research::IntervalVarElement const *)arg1)->PerformedMax();
45567 }
45568 catch (Swig::DirectorException &e) {
45569 SWIG_fail;
45570 }
45571 }
45572 resultobj = SWIG_From_long(static_cast< long >(result));
45573 return resultobj;
45574fail:
45575 return NULL;
45576}
45577
45578
45579SWIGINTERN PyObject *_wrap_IntervalVarElement_PerformedValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45580 PyObject *resultobj = 0;
45582 void *argp1 = 0 ;
45583 int res1 = 0 ;
45584 PyObject * obj0 = 0 ;
45585 int64_t result;
45586
45587 if (!PyArg_UnpackTuple(args, "IntervalVarElement_PerformedValue", 1, 1, &obj0)) SWIG_fail;
45589 if (!SWIG_IsOK(res1)) {
45590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_PerformedValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45591 }
45592 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45593 {
45594 try {
45595 result = (int64_t)((operations_research::IntervalVarElement const *)arg1)->PerformedValue();
45596 }
45597 catch (Swig::DirectorException &e) {
45598 SWIG_fail;
45599 }
45600 }
45601 resultobj = SWIG_From_long(static_cast< long >(result));
45602 return resultobj;
45603fail:
45604 return NULL;
45605}
45606
45607
45608SWIGINTERN PyObject *_wrap_IntervalVarElement_SetStartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45609 PyObject *resultobj = 0;
45611 int64_t arg2 ;
45612 void *argp1 = 0 ;
45613 int res1 = 0 ;
45614 long val2 ;
45615 int ecode2 = 0 ;
45616 PyObject * obj0 = 0 ;
45617 PyObject * obj1 = 0 ;
45618
45619 if (!PyArg_UnpackTuple(args, "IntervalVarElement_SetStartMin", 2, 2, &obj0, &obj1)) SWIG_fail;
45621 if (!SWIG_IsOK(res1)) {
45622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_SetStartMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45623 }
45624 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45625 ecode2 = SWIG_AsVal_long(obj1, &val2);
45626 if (!SWIG_IsOK(ecode2)) {
45627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVarElement_SetStartMin" "', argument " "2"" of type '" "int64_t""'");
45628 }
45629 arg2 = static_cast< int64_t >(val2);
45630 {
45631 try {
45632 (arg1)->SetStartMin(arg2);
45633 }
45634 catch (Swig::DirectorException &e) {
45635 SWIG_fail;
45636 }
45637 }
45638 resultobj = SWIG_Py_Void();
45639 return resultobj;
45640fail:
45641 return NULL;
45642}
45643
45644
45645SWIGINTERN PyObject *_wrap_IntervalVarElement_SetStartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45646 PyObject *resultobj = 0;
45648 int64_t arg2 ;
45649 void *argp1 = 0 ;
45650 int res1 = 0 ;
45651 long val2 ;
45652 int ecode2 = 0 ;
45653 PyObject * obj0 = 0 ;
45654 PyObject * obj1 = 0 ;
45655
45656 if (!PyArg_UnpackTuple(args, "IntervalVarElement_SetStartMax", 2, 2, &obj0, &obj1)) SWIG_fail;
45658 if (!SWIG_IsOK(res1)) {
45659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_SetStartMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45660 }
45661 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45662 ecode2 = SWIG_AsVal_long(obj1, &val2);
45663 if (!SWIG_IsOK(ecode2)) {
45664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVarElement_SetStartMax" "', argument " "2"" of type '" "int64_t""'");
45665 }
45666 arg2 = static_cast< int64_t >(val2);
45667 {
45668 try {
45669 (arg1)->SetStartMax(arg2);
45670 }
45671 catch (Swig::DirectorException &e) {
45672 SWIG_fail;
45673 }
45674 }
45675 resultobj = SWIG_Py_Void();
45676 return resultobj;
45677fail:
45678 return NULL;
45679}
45680
45681
45682SWIGINTERN PyObject *_wrap_IntervalVarElement_SetStartRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45683 PyObject *resultobj = 0;
45685 int64_t arg2 ;
45686 int64_t arg3 ;
45687 void *argp1 = 0 ;
45688 int res1 = 0 ;
45689 long val2 ;
45690 int ecode2 = 0 ;
45691 long val3 ;
45692 int ecode3 = 0 ;
45693 PyObject * obj0 = 0 ;
45694 PyObject * obj1 = 0 ;
45695 PyObject * obj2 = 0 ;
45696
45697 if (!PyArg_UnpackTuple(args, "IntervalVarElement_SetStartRange", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
45699 if (!SWIG_IsOK(res1)) {
45700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_SetStartRange" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45701 }
45702 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45703 ecode2 = SWIG_AsVal_long(obj1, &val2);
45704 if (!SWIG_IsOK(ecode2)) {
45705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVarElement_SetStartRange" "', argument " "2"" of type '" "int64_t""'");
45706 }
45707 arg2 = static_cast< int64_t >(val2);
45708 ecode3 = SWIG_AsVal_long(obj2, &val3);
45709 if (!SWIG_IsOK(ecode3)) {
45710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalVarElement_SetStartRange" "', argument " "3"" of type '" "int64_t""'");
45711 }
45712 arg3 = static_cast< int64_t >(val3);
45713 {
45714 try {
45715 (arg1)->SetStartRange(arg2,arg3);
45716 }
45717 catch (Swig::DirectorException &e) {
45718 SWIG_fail;
45719 }
45720 }
45721 resultobj = SWIG_Py_Void();
45722 return resultobj;
45723fail:
45724 return NULL;
45725}
45726
45727
45728SWIGINTERN PyObject *_wrap_IntervalVarElement_SetStartValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45729 PyObject *resultobj = 0;
45731 int64_t arg2 ;
45732 void *argp1 = 0 ;
45733 int res1 = 0 ;
45734 long val2 ;
45735 int ecode2 = 0 ;
45736 PyObject * obj0 = 0 ;
45737 PyObject * obj1 = 0 ;
45738
45739 if (!PyArg_UnpackTuple(args, "IntervalVarElement_SetStartValue", 2, 2, &obj0, &obj1)) SWIG_fail;
45741 if (!SWIG_IsOK(res1)) {
45742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_SetStartValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45743 }
45744 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45745 ecode2 = SWIG_AsVal_long(obj1, &val2);
45746 if (!SWIG_IsOK(ecode2)) {
45747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVarElement_SetStartValue" "', argument " "2"" of type '" "int64_t""'");
45748 }
45749 arg2 = static_cast< int64_t >(val2);
45750 {
45751 try {
45752 (arg1)->SetStartValue(arg2);
45753 }
45754 catch (Swig::DirectorException &e) {
45755 SWIG_fail;
45756 }
45757 }
45758 resultobj = SWIG_Py_Void();
45759 return resultobj;
45760fail:
45761 return NULL;
45762}
45763
45764
45765SWIGINTERN PyObject *_wrap_IntervalVarElement_SetDurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45766 PyObject *resultobj = 0;
45768 int64_t arg2 ;
45769 void *argp1 = 0 ;
45770 int res1 = 0 ;
45771 long val2 ;
45772 int ecode2 = 0 ;
45773 PyObject * obj0 = 0 ;
45774 PyObject * obj1 = 0 ;
45775
45776 if (!PyArg_UnpackTuple(args, "IntervalVarElement_SetDurationMin", 2, 2, &obj0, &obj1)) SWIG_fail;
45778 if (!SWIG_IsOK(res1)) {
45779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_SetDurationMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45780 }
45781 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45782 ecode2 = SWIG_AsVal_long(obj1, &val2);
45783 if (!SWIG_IsOK(ecode2)) {
45784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVarElement_SetDurationMin" "', argument " "2"" of type '" "int64_t""'");
45785 }
45786 arg2 = static_cast< int64_t >(val2);
45787 {
45788 try {
45789 (arg1)->SetDurationMin(arg2);
45790 }
45791 catch (Swig::DirectorException &e) {
45792 SWIG_fail;
45793 }
45794 }
45795 resultobj = SWIG_Py_Void();
45796 return resultobj;
45797fail:
45798 return NULL;
45799}
45800
45801
45802SWIGINTERN PyObject *_wrap_IntervalVarElement_SetDurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45803 PyObject *resultobj = 0;
45805 int64_t arg2 ;
45806 void *argp1 = 0 ;
45807 int res1 = 0 ;
45808 long val2 ;
45809 int ecode2 = 0 ;
45810 PyObject * obj0 = 0 ;
45811 PyObject * obj1 = 0 ;
45812
45813 if (!PyArg_UnpackTuple(args, "IntervalVarElement_SetDurationMax", 2, 2, &obj0, &obj1)) SWIG_fail;
45815 if (!SWIG_IsOK(res1)) {
45816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_SetDurationMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45817 }
45818 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45819 ecode2 = SWIG_AsVal_long(obj1, &val2);
45820 if (!SWIG_IsOK(ecode2)) {
45821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVarElement_SetDurationMax" "', argument " "2"" of type '" "int64_t""'");
45822 }
45823 arg2 = static_cast< int64_t >(val2);
45824 {
45825 try {
45826 (arg1)->SetDurationMax(arg2);
45827 }
45828 catch (Swig::DirectorException &e) {
45829 SWIG_fail;
45830 }
45831 }
45832 resultobj = SWIG_Py_Void();
45833 return resultobj;
45834fail:
45835 return NULL;
45836}
45837
45838
45839SWIGINTERN PyObject *_wrap_IntervalVarElement_SetDurationRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45840 PyObject *resultobj = 0;
45842 int64_t arg2 ;
45843 int64_t arg3 ;
45844 void *argp1 = 0 ;
45845 int res1 = 0 ;
45846 long val2 ;
45847 int ecode2 = 0 ;
45848 long val3 ;
45849 int ecode3 = 0 ;
45850 PyObject * obj0 = 0 ;
45851 PyObject * obj1 = 0 ;
45852 PyObject * obj2 = 0 ;
45853
45854 if (!PyArg_UnpackTuple(args, "IntervalVarElement_SetDurationRange", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
45856 if (!SWIG_IsOK(res1)) {
45857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_SetDurationRange" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45858 }
45859 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45860 ecode2 = SWIG_AsVal_long(obj1, &val2);
45861 if (!SWIG_IsOK(ecode2)) {
45862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVarElement_SetDurationRange" "', argument " "2"" of type '" "int64_t""'");
45863 }
45864 arg2 = static_cast< int64_t >(val2);
45865 ecode3 = SWIG_AsVal_long(obj2, &val3);
45866 if (!SWIG_IsOK(ecode3)) {
45867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalVarElement_SetDurationRange" "', argument " "3"" of type '" "int64_t""'");
45868 }
45869 arg3 = static_cast< int64_t >(val3);
45870 {
45871 try {
45872 (arg1)->SetDurationRange(arg2,arg3);
45873 }
45874 catch (Swig::DirectorException &e) {
45875 SWIG_fail;
45876 }
45877 }
45878 resultobj = SWIG_Py_Void();
45879 return resultobj;
45880fail:
45881 return NULL;
45882}
45883
45884
45885SWIGINTERN PyObject *_wrap_IntervalVarElement_SetDurationValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45886 PyObject *resultobj = 0;
45888 int64_t arg2 ;
45889 void *argp1 = 0 ;
45890 int res1 = 0 ;
45891 long val2 ;
45892 int ecode2 = 0 ;
45893 PyObject * obj0 = 0 ;
45894 PyObject * obj1 = 0 ;
45895
45896 if (!PyArg_UnpackTuple(args, "IntervalVarElement_SetDurationValue", 2, 2, &obj0, &obj1)) SWIG_fail;
45898 if (!SWIG_IsOK(res1)) {
45899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_SetDurationValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45900 }
45901 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45902 ecode2 = SWIG_AsVal_long(obj1, &val2);
45903 if (!SWIG_IsOK(ecode2)) {
45904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVarElement_SetDurationValue" "', argument " "2"" of type '" "int64_t""'");
45905 }
45906 arg2 = static_cast< int64_t >(val2);
45907 {
45908 try {
45909 (arg1)->SetDurationValue(arg2);
45910 }
45911 catch (Swig::DirectorException &e) {
45912 SWIG_fail;
45913 }
45914 }
45915 resultobj = SWIG_Py_Void();
45916 return resultobj;
45917fail:
45918 return NULL;
45919}
45920
45921
45922SWIGINTERN PyObject *_wrap_IntervalVarElement_SetEndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45923 PyObject *resultobj = 0;
45925 int64_t arg2 ;
45926 void *argp1 = 0 ;
45927 int res1 = 0 ;
45928 long val2 ;
45929 int ecode2 = 0 ;
45930 PyObject * obj0 = 0 ;
45931 PyObject * obj1 = 0 ;
45932
45933 if (!PyArg_UnpackTuple(args, "IntervalVarElement_SetEndMin", 2, 2, &obj0, &obj1)) SWIG_fail;
45935 if (!SWIG_IsOK(res1)) {
45936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_SetEndMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45937 }
45938 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45939 ecode2 = SWIG_AsVal_long(obj1, &val2);
45940 if (!SWIG_IsOK(ecode2)) {
45941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVarElement_SetEndMin" "', argument " "2"" of type '" "int64_t""'");
45942 }
45943 arg2 = static_cast< int64_t >(val2);
45944 {
45945 try {
45946 (arg1)->SetEndMin(arg2);
45947 }
45948 catch (Swig::DirectorException &e) {
45949 SWIG_fail;
45950 }
45951 }
45952 resultobj = SWIG_Py_Void();
45953 return resultobj;
45954fail:
45955 return NULL;
45956}
45957
45958
45959SWIGINTERN PyObject *_wrap_IntervalVarElement_SetEndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45960 PyObject *resultobj = 0;
45962 int64_t arg2 ;
45963 void *argp1 = 0 ;
45964 int res1 = 0 ;
45965 long val2 ;
45966 int ecode2 = 0 ;
45967 PyObject * obj0 = 0 ;
45968 PyObject * obj1 = 0 ;
45969
45970 if (!PyArg_UnpackTuple(args, "IntervalVarElement_SetEndMax", 2, 2, &obj0, &obj1)) SWIG_fail;
45972 if (!SWIG_IsOK(res1)) {
45973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_SetEndMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45974 }
45975 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45976 ecode2 = SWIG_AsVal_long(obj1, &val2);
45977 if (!SWIG_IsOK(ecode2)) {
45978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVarElement_SetEndMax" "', argument " "2"" of type '" "int64_t""'");
45979 }
45980 arg2 = static_cast< int64_t >(val2);
45981 {
45982 try {
45983 (arg1)->SetEndMax(arg2);
45984 }
45985 catch (Swig::DirectorException &e) {
45986 SWIG_fail;
45987 }
45988 }
45989 resultobj = SWIG_Py_Void();
45990 return resultobj;
45991fail:
45992 return NULL;
45993}
45994
45995
45996SWIGINTERN PyObject *_wrap_IntervalVarElement_SetEndRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45997 PyObject *resultobj = 0;
45999 int64_t arg2 ;
46000 int64_t arg3 ;
46001 void *argp1 = 0 ;
46002 int res1 = 0 ;
46003 long val2 ;
46004 int ecode2 = 0 ;
46005 long val3 ;
46006 int ecode3 = 0 ;
46007 PyObject * obj0 = 0 ;
46008 PyObject * obj1 = 0 ;
46009 PyObject * obj2 = 0 ;
46010
46011 if (!PyArg_UnpackTuple(args, "IntervalVarElement_SetEndRange", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
46013 if (!SWIG_IsOK(res1)) {
46014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_SetEndRange" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46015 }
46016 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
46017 ecode2 = SWIG_AsVal_long(obj1, &val2);
46018 if (!SWIG_IsOK(ecode2)) {
46019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVarElement_SetEndRange" "', argument " "2"" of type '" "int64_t""'");
46020 }
46021 arg2 = static_cast< int64_t >(val2);
46022 ecode3 = SWIG_AsVal_long(obj2, &val3);
46023 if (!SWIG_IsOK(ecode3)) {
46024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalVarElement_SetEndRange" "', argument " "3"" of type '" "int64_t""'");
46025 }
46026 arg3 = static_cast< int64_t >(val3);
46027 {
46028 try {
46029 (arg1)->SetEndRange(arg2,arg3);
46030 }
46031 catch (Swig::DirectorException &e) {
46032 SWIG_fail;
46033 }
46034 }
46035 resultobj = SWIG_Py_Void();
46036 return resultobj;
46037fail:
46038 return NULL;
46039}
46040
46041
46042SWIGINTERN PyObject *_wrap_IntervalVarElement_SetEndValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46043 PyObject *resultobj = 0;
46045 int64_t arg2 ;
46046 void *argp1 = 0 ;
46047 int res1 = 0 ;
46048 long val2 ;
46049 int ecode2 = 0 ;
46050 PyObject * obj0 = 0 ;
46051 PyObject * obj1 = 0 ;
46052
46053 if (!PyArg_UnpackTuple(args, "IntervalVarElement_SetEndValue", 2, 2, &obj0, &obj1)) SWIG_fail;
46055 if (!SWIG_IsOK(res1)) {
46056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_SetEndValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46057 }
46058 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
46059 ecode2 = SWIG_AsVal_long(obj1, &val2);
46060 if (!SWIG_IsOK(ecode2)) {
46061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVarElement_SetEndValue" "', argument " "2"" of type '" "int64_t""'");
46062 }
46063 arg2 = static_cast< int64_t >(val2);
46064 {
46065 try {
46066 (arg1)->SetEndValue(arg2);
46067 }
46068 catch (Swig::DirectorException &e) {
46069 SWIG_fail;
46070 }
46071 }
46072 resultobj = SWIG_Py_Void();
46073 return resultobj;
46074fail:
46075 return NULL;
46076}
46077
46078
46079SWIGINTERN PyObject *_wrap_IntervalVarElement_SetPerformedMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46080 PyObject *resultobj = 0;
46082 int64_t arg2 ;
46083 void *argp1 = 0 ;
46084 int res1 = 0 ;
46085 long val2 ;
46086 int ecode2 = 0 ;
46087 PyObject * obj0 = 0 ;
46088 PyObject * obj1 = 0 ;
46089
46090 if (!PyArg_UnpackTuple(args, "IntervalVarElement_SetPerformedMin", 2, 2, &obj0, &obj1)) SWIG_fail;
46092 if (!SWIG_IsOK(res1)) {
46093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_SetPerformedMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46094 }
46095 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
46096 ecode2 = SWIG_AsVal_long(obj1, &val2);
46097 if (!SWIG_IsOK(ecode2)) {
46098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVarElement_SetPerformedMin" "', argument " "2"" of type '" "int64_t""'");
46099 }
46100 arg2 = static_cast< int64_t >(val2);
46101 {
46102 try {
46103 (arg1)->SetPerformedMin(arg2);
46104 }
46105 catch (Swig::DirectorException &e) {
46106 SWIG_fail;
46107 }
46108 }
46109 resultobj = SWIG_Py_Void();
46110 return resultobj;
46111fail:
46112 return NULL;
46113}
46114
46115
46116SWIGINTERN PyObject *_wrap_IntervalVarElement_SetPerformedMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46117 PyObject *resultobj = 0;
46119 int64_t arg2 ;
46120 void *argp1 = 0 ;
46121 int res1 = 0 ;
46122 long val2 ;
46123 int ecode2 = 0 ;
46124 PyObject * obj0 = 0 ;
46125 PyObject * obj1 = 0 ;
46126
46127 if (!PyArg_UnpackTuple(args, "IntervalVarElement_SetPerformedMax", 2, 2, &obj0, &obj1)) SWIG_fail;
46129 if (!SWIG_IsOK(res1)) {
46130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_SetPerformedMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46131 }
46132 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
46133 ecode2 = SWIG_AsVal_long(obj1, &val2);
46134 if (!SWIG_IsOK(ecode2)) {
46135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVarElement_SetPerformedMax" "', argument " "2"" of type '" "int64_t""'");
46136 }
46137 arg2 = static_cast< int64_t >(val2);
46138 {
46139 try {
46140 (arg1)->SetPerformedMax(arg2);
46141 }
46142 catch (Swig::DirectorException &e) {
46143 SWIG_fail;
46144 }
46145 }
46146 resultobj = SWIG_Py_Void();
46147 return resultobj;
46148fail:
46149 return NULL;
46150}
46151
46152
46154 PyObject *resultobj = 0;
46156 int64_t arg2 ;
46157 int64_t arg3 ;
46158 void *argp1 = 0 ;
46159 int res1 = 0 ;
46160 long val2 ;
46161 int ecode2 = 0 ;
46162 long val3 ;
46163 int ecode3 = 0 ;
46164 PyObject * obj0 = 0 ;
46165 PyObject * obj1 = 0 ;
46166 PyObject * obj2 = 0 ;
46167
46168 if (!PyArg_UnpackTuple(args, "IntervalVarElement_SetPerformedRange", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
46170 if (!SWIG_IsOK(res1)) {
46171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_SetPerformedRange" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46172 }
46173 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
46174 ecode2 = SWIG_AsVal_long(obj1, &val2);
46175 if (!SWIG_IsOK(ecode2)) {
46176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVarElement_SetPerformedRange" "', argument " "2"" of type '" "int64_t""'");
46177 }
46178 arg2 = static_cast< int64_t >(val2);
46179 ecode3 = SWIG_AsVal_long(obj2, &val3);
46180 if (!SWIG_IsOK(ecode3)) {
46181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalVarElement_SetPerformedRange" "', argument " "3"" of type '" "int64_t""'");
46182 }
46183 arg3 = static_cast< int64_t >(val3);
46184 {
46185 try {
46186 (arg1)->SetPerformedRange(arg2,arg3);
46187 }
46188 catch (Swig::DirectorException &e) {
46189 SWIG_fail;
46190 }
46191 }
46192 resultobj = SWIG_Py_Void();
46193 return resultobj;
46194fail:
46195 return NULL;
46196}
46197
46198
46200 PyObject *resultobj = 0;
46202 int64_t arg2 ;
46203 void *argp1 = 0 ;
46204 int res1 = 0 ;
46205 long val2 ;
46206 int ecode2 = 0 ;
46207 PyObject * obj0 = 0 ;
46208 PyObject * obj1 = 0 ;
46209
46210 if (!PyArg_UnpackTuple(args, "IntervalVarElement_SetPerformedValue", 2, 2, &obj0, &obj1)) SWIG_fail;
46212 if (!SWIG_IsOK(res1)) {
46213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement_SetPerformedValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46214 }
46215 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
46216 ecode2 = SWIG_AsVal_long(obj1, &val2);
46217 if (!SWIG_IsOK(ecode2)) {
46218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVarElement_SetPerformedValue" "', argument " "2"" of type '" "int64_t""'");
46219 }
46220 arg2 = static_cast< int64_t >(val2);
46221 {
46222 try {
46223 (arg1)->SetPerformedValue(arg2);
46224 }
46225 catch (Swig::DirectorException &e) {
46226 SWIG_fail;
46227 }
46228 }
46229 resultobj = SWIG_Py_Void();
46230 return resultobj;
46231fail:
46232 return NULL;
46233}
46234
46235
46236SWIGINTERN PyObject *_wrap_IntervalVarElement___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46237 PyObject *resultobj = 0;
46240 void *argp1 = 0 ;
46241 int res1 = 0 ;
46242 void *argp2 = 0 ;
46243 int res2 = 0 ;
46244 PyObject * obj0 = 0 ;
46245 PyObject * obj1 = 0 ;
46246 bool result;
46247
46248 if (!PyArg_UnpackTuple(args, "IntervalVarElement___eq__", 2, 2, &obj0, &obj1)) SWIG_fail;
46250 if (!SWIG_IsOK(res1)) {
46251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement___eq__" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
46252 }
46253 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
46255 if (!SWIG_IsOK(res2)) {
46256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVarElement___eq__" "', argument " "2"" of type '" "operations_research::IntervalVarElement const &""'");
46257 }
46258 if (!argp2) {
46259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalVarElement___eq__" "', argument " "2"" of type '" "operations_research::IntervalVarElement const &""'");
46260 }
46261 arg2 = reinterpret_cast< operations_research::IntervalVarElement * >(argp2);
46262 {
46263 try {
46264 result = (bool)((operations_research::IntervalVarElement const *)arg1)->operator ==((operations_research::IntervalVarElement const &)*arg2);
46265 }
46266 catch (Swig::DirectorException &e) {
46267 SWIG_fail;
46268 }
46269 }
46270 resultobj = SWIG_From_bool(static_cast< bool >(result));
46271 return resultobj;
46272fail:
46273 PyErr_Clear();
46274 Py_INCREF(Py_NotImplemented);
46275 return Py_NotImplemented;
46276}
46277
46278
46279SWIGINTERN PyObject *_wrap_IntervalVarElement___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46280 PyObject *resultobj = 0;
46283 void *argp1 = 0 ;
46284 int res1 = 0 ;
46285 void *argp2 = 0 ;
46286 int res2 = 0 ;
46287 PyObject * obj0 = 0 ;
46288 PyObject * obj1 = 0 ;
46289 bool result;
46290
46291 if (!PyArg_UnpackTuple(args, "IntervalVarElement___ne__", 2, 2, &obj0, &obj1)) SWIG_fail;
46293 if (!SWIG_IsOK(res1)) {
46294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarElement___ne__" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
46295 }
46296 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
46298 if (!SWIG_IsOK(res2)) {
46299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVarElement___ne__" "', argument " "2"" of type '" "operations_research::IntervalVarElement const &""'");
46300 }
46301 if (!argp2) {
46302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalVarElement___ne__" "', argument " "2"" of type '" "operations_research::IntervalVarElement const &""'");
46303 }
46304 arg2 = reinterpret_cast< operations_research::IntervalVarElement * >(argp2);
46305 {
46306 try {
46307 result = (bool)((operations_research::IntervalVarElement const *)arg1)->operator !=((operations_research::IntervalVarElement const &)*arg2);
46308 }
46309 catch (Swig::DirectorException &e) {
46310 SWIG_fail;
46311 }
46312 }
46313 resultobj = SWIG_From_bool(static_cast< bool >(result));
46314 return resultobj;
46315fail:
46316 PyErr_Clear();
46317 Py_INCREF(Py_NotImplemented);
46318 return Py_NotImplemented;
46319}
46320
46321
46322SWIGINTERN PyObject *_wrap_delete_IntervalVarElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46323 PyObject *resultobj = 0;
46325 void *argp1 = 0 ;
46326 int res1 = 0 ;
46327 PyObject * obj0 = 0 ;
46328
46329 if (!PyArg_UnpackTuple(args, "delete_IntervalVarElement", 1, 1, &obj0)) SWIG_fail;
46331 if (!SWIG_IsOK(res1)) {
46332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntervalVarElement" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46333 }
46334 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
46335 {
46336 try {
46337 delete arg1;
46338 }
46339 catch (Swig::DirectorException &e) {
46340 SWIG_fail;
46341 }
46342 }
46343 resultobj = SWIG_Py_Void();
46344 return resultobj;
46345fail:
46346 return NULL;
46347}
46348
46349
46350SWIGINTERN PyObject *IntervalVarElement_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46351 PyObject *obj;
46352 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
46354 return SWIG_Py_Void();
46355}
46356
46357SWIGINTERN PyObject *_wrap_SequenceVarElement_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46358 PyObject *resultobj = 0;
46360 void *argp1 = 0 ;
46361 int res1 = 0 ;
46362 PyObject * obj0 = 0 ;
46364
46365 if (!PyArg_UnpackTuple(args, "SequenceVarElement_Var", 1, 1, &obj0)) SWIG_fail;
46367 if (!SWIG_IsOK(res1)) {
46368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarElement_Var" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46369 }
46370 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46371 {
46372 try {
46374 }
46375 catch (Swig::DirectorException &e) {
46376 SWIG_fail;
46377 }
46378 }
46380 return resultobj;
46381fail:
46382 return NULL;
46383}
46384
46385
46386SWIGINTERN PyObject *_wrap_SequenceVarElement_ForwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46387 PyObject *resultobj = 0;
46389 void *argp1 = 0 ;
46390 int res1 = 0 ;
46391 PyObject * obj0 = 0 ;
46392 std::vector< int > *result = 0 ;
46393
46394 if (!PyArg_UnpackTuple(args, "SequenceVarElement_ForwardSequence", 1, 1, &obj0)) SWIG_fail;
46396 if (!SWIG_IsOK(res1)) {
46397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarElement_ForwardSequence" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46398 }
46399 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46400 {
46401 try {
46402 result = (std::vector< int > *) &((operations_research::SequenceVarElement const *)arg1)->ForwardSequence();
46403 }
46404 catch (Swig::DirectorException &e) {
46405 SWIG_fail;
46406 }
46407 }
46408 {
46409 resultobj = vector_output_helper(result, &PyInt_FromLong);
46410 }
46411 return resultobj;
46412fail:
46413 return NULL;
46414}
46415
46416
46417SWIGINTERN PyObject *_wrap_SequenceVarElement_BackwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46418 PyObject *resultobj = 0;
46420 void *argp1 = 0 ;
46421 int res1 = 0 ;
46422 PyObject * obj0 = 0 ;
46423 std::vector< int > *result = 0 ;
46424
46425 if (!PyArg_UnpackTuple(args, "SequenceVarElement_BackwardSequence", 1, 1, &obj0)) SWIG_fail;
46427 if (!SWIG_IsOK(res1)) {
46428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarElement_BackwardSequence" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46429 }
46430 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46431 {
46432 try {
46433 result = (std::vector< int > *) &((operations_research::SequenceVarElement const *)arg1)->BackwardSequence();
46434 }
46435 catch (Swig::DirectorException &e) {
46436 SWIG_fail;
46437 }
46438 }
46439 {
46440 resultobj = vector_output_helper(result, &PyInt_FromLong);
46441 }
46442 return resultobj;
46443fail:
46444 return NULL;
46445}
46446
46447
46448SWIGINTERN PyObject *_wrap_SequenceVarElement_Unperformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46449 PyObject *resultobj = 0;
46451 void *argp1 = 0 ;
46452 int res1 = 0 ;
46453 PyObject * obj0 = 0 ;
46454 std::vector< int > *result = 0 ;
46455
46456 if (!PyArg_UnpackTuple(args, "SequenceVarElement_Unperformed", 1, 1, &obj0)) SWIG_fail;
46458 if (!SWIG_IsOK(res1)) {
46459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarElement_Unperformed" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46460 }
46461 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46462 {
46463 try {
46464 result = (std::vector< int > *) &((operations_research::SequenceVarElement const *)arg1)->Unperformed();
46465 }
46466 catch (Swig::DirectorException &e) {
46467 SWIG_fail;
46468 }
46469 }
46470 {
46471 resultobj = vector_output_helper(result, &PyInt_FromLong);
46472 }
46473 return resultobj;
46474fail:
46475 return NULL;
46476}
46477
46478
46479SWIGINTERN PyObject *_wrap_SequenceVarElement_SetSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46480 PyObject *resultobj = 0;
46482 std::vector< int > *arg2 = 0 ;
46483 std::vector< int > *arg3 = 0 ;
46484 std::vector< int > *arg4 = 0 ;
46485 void *argp1 = 0 ;
46486 int res1 = 0 ;
46487 std::vector< int > temp2 ;
46488 std::vector< int > temp3 ;
46489 std::vector< int > temp4 ;
46490 PyObject * obj0 = 0 ;
46491 PyObject * obj1 = 0 ;
46492 PyObject * obj2 = 0 ;
46493 PyObject * obj3 = 0 ;
46494
46495 if (!PyArg_UnpackTuple(args, "SequenceVarElement_SetSequence", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
46497 if (!SWIG_IsOK(res1)) {
46498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarElement_SetSequence" "', argument " "1"" of type '" "operations_research::SequenceVarElement *""'");
46499 }
46500 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46501 {
46502 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
46503 if (!PyErr_Occurred())
46504 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
46505 return NULL;
46506 }
46507 arg2 = &temp2;
46508 }
46509 {
46510 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
46511 if (!PyErr_Occurred())
46512 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
46513 return NULL;
46514 }
46515 arg3 = &temp3;
46516 }
46517 {
46518 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
46519 if (!PyErr_Occurred())
46520 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
46521 return NULL;
46522 }
46523 arg4 = &temp4;
46524 }
46525 {
46526 try {
46527 (arg1)->SetSequence((std::vector< int > const &)*arg2,(std::vector< int > const &)*arg3,(std::vector< int > const &)*arg4);
46528 }
46529 catch (Swig::DirectorException &e) {
46530 SWIG_fail;
46531 }
46532 }
46533 resultobj = SWIG_Py_Void();
46534 return resultobj;
46535fail:
46536 return NULL;
46537}
46538
46539
46541 PyObject *resultobj = 0;
46543 std::vector< int > *arg2 = 0 ;
46544 void *argp1 = 0 ;
46545 int res1 = 0 ;
46546 std::vector< int > temp2 ;
46547 PyObject * obj0 = 0 ;
46548 PyObject * obj1 = 0 ;
46549
46550 if (!PyArg_UnpackTuple(args, "SequenceVarElement_SetForwardSequence", 2, 2, &obj0, &obj1)) SWIG_fail;
46552 if (!SWIG_IsOK(res1)) {
46553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarElement_SetForwardSequence" "', argument " "1"" of type '" "operations_research::SequenceVarElement *""'");
46554 }
46555 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46556 {
46557 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
46558 if (!PyErr_Occurred())
46559 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
46560 return NULL;
46561 }
46562 arg2 = &temp2;
46563 }
46564 {
46565 try {
46566 (arg1)->SetForwardSequence((std::vector< int > const &)*arg2);
46567 }
46568 catch (Swig::DirectorException &e) {
46569 SWIG_fail;
46570 }
46571 }
46572 resultobj = SWIG_Py_Void();
46573 return resultobj;
46574fail:
46575 return NULL;
46576}
46577
46578
46580 PyObject *resultobj = 0;
46582 std::vector< int > *arg2 = 0 ;
46583 void *argp1 = 0 ;
46584 int res1 = 0 ;
46585 std::vector< int > temp2 ;
46586 PyObject * obj0 = 0 ;
46587 PyObject * obj1 = 0 ;
46588
46589 if (!PyArg_UnpackTuple(args, "SequenceVarElement_SetBackwardSequence", 2, 2, &obj0, &obj1)) SWIG_fail;
46591 if (!SWIG_IsOK(res1)) {
46592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarElement_SetBackwardSequence" "', argument " "1"" of type '" "operations_research::SequenceVarElement *""'");
46593 }
46594 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46595 {
46596 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
46597 if (!PyErr_Occurred())
46598 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
46599 return NULL;
46600 }
46601 arg2 = &temp2;
46602 }
46603 {
46604 try {
46605 (arg1)->SetBackwardSequence((std::vector< int > const &)*arg2);
46606 }
46607 catch (Swig::DirectorException &e) {
46608 SWIG_fail;
46609 }
46610 }
46611 resultobj = SWIG_Py_Void();
46612 return resultobj;
46613fail:
46614 return NULL;
46615}
46616
46617
46618SWIGINTERN PyObject *_wrap_SequenceVarElement_SetUnperformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46619 PyObject *resultobj = 0;
46621 std::vector< int > *arg2 = 0 ;
46622 void *argp1 = 0 ;
46623 int res1 = 0 ;
46624 std::vector< int > temp2 ;
46625 PyObject * obj0 = 0 ;
46626 PyObject * obj1 = 0 ;
46627
46628 if (!PyArg_UnpackTuple(args, "SequenceVarElement_SetUnperformed", 2, 2, &obj0, &obj1)) SWIG_fail;
46630 if (!SWIG_IsOK(res1)) {
46631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarElement_SetUnperformed" "', argument " "1"" of type '" "operations_research::SequenceVarElement *""'");
46632 }
46633 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46634 {
46635 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
46636 if (!PyErr_Occurred())
46637 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
46638 return NULL;
46639 }
46640 arg2 = &temp2;
46641 }
46642 {
46643 try {
46644 (arg1)->SetUnperformed((std::vector< int > const &)*arg2);
46645 }
46646 catch (Swig::DirectorException &e) {
46647 SWIG_fail;
46648 }
46649 }
46650 resultobj = SWIG_Py_Void();
46651 return resultobj;
46652fail:
46653 return NULL;
46654}
46655
46656
46657SWIGINTERN PyObject *_wrap_SequenceVarElement___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46658 PyObject *resultobj = 0;
46661 void *argp1 = 0 ;
46662 int res1 = 0 ;
46663 void *argp2 = 0 ;
46664 int res2 = 0 ;
46665 PyObject * obj0 = 0 ;
46666 PyObject * obj1 = 0 ;
46667 bool result;
46668
46669 if (!PyArg_UnpackTuple(args, "SequenceVarElement___eq__", 2, 2, &obj0, &obj1)) SWIG_fail;
46671 if (!SWIG_IsOK(res1)) {
46672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarElement___eq__" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46673 }
46674 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46676 if (!SWIG_IsOK(res2)) {
46677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SequenceVarElement___eq__" "', argument " "2"" of type '" "operations_research::SequenceVarElement const &""'");
46678 }
46679 if (!argp2) {
46680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SequenceVarElement___eq__" "', argument " "2"" of type '" "operations_research::SequenceVarElement const &""'");
46681 }
46682 arg2 = reinterpret_cast< operations_research::SequenceVarElement * >(argp2);
46683 {
46684 try {
46685 result = (bool)((operations_research::SequenceVarElement const *)arg1)->operator ==((operations_research::SequenceVarElement const &)*arg2);
46686 }
46687 catch (Swig::DirectorException &e) {
46688 SWIG_fail;
46689 }
46690 }
46691 resultobj = SWIG_From_bool(static_cast< bool >(result));
46692 return resultobj;
46693fail:
46694 PyErr_Clear();
46695 Py_INCREF(Py_NotImplemented);
46696 return Py_NotImplemented;
46697}
46698
46699
46700SWIGINTERN PyObject *_wrap_SequenceVarElement___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46701 PyObject *resultobj = 0;
46704 void *argp1 = 0 ;
46705 int res1 = 0 ;
46706 void *argp2 = 0 ;
46707 int res2 = 0 ;
46708 PyObject * obj0 = 0 ;
46709 PyObject * obj1 = 0 ;
46710 bool result;
46711
46712 if (!PyArg_UnpackTuple(args, "SequenceVarElement___ne__", 2, 2, &obj0, &obj1)) SWIG_fail;
46714 if (!SWIG_IsOK(res1)) {
46715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarElement___ne__" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46716 }
46717 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46719 if (!SWIG_IsOK(res2)) {
46720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SequenceVarElement___ne__" "', argument " "2"" of type '" "operations_research::SequenceVarElement const &""'");
46721 }
46722 if (!argp2) {
46723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SequenceVarElement___ne__" "', argument " "2"" of type '" "operations_research::SequenceVarElement const &""'");
46724 }
46725 arg2 = reinterpret_cast< operations_research::SequenceVarElement * >(argp2);
46726 {
46727 try {
46728 result = (bool)((operations_research::SequenceVarElement const *)arg1)->operator !=((operations_research::SequenceVarElement const &)*arg2);
46729 }
46730 catch (Swig::DirectorException &e) {
46731 SWIG_fail;
46732 }
46733 }
46734 resultobj = SWIG_From_bool(static_cast< bool >(result));
46735 return resultobj;
46736fail:
46737 PyErr_Clear();
46738 Py_INCREF(Py_NotImplemented);
46739 return Py_NotImplemented;
46740}
46741
46742
46743SWIGINTERN PyObject *_wrap_delete_SequenceVarElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46744 PyObject *resultobj = 0;
46746 void *argp1 = 0 ;
46747 int res1 = 0 ;
46748 PyObject * obj0 = 0 ;
46749
46750 if (!PyArg_UnpackTuple(args, "delete_SequenceVarElement", 1, 1, &obj0)) SWIG_fail;
46752 if (!SWIG_IsOK(res1)) {
46753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SequenceVarElement" "', argument " "1"" of type '" "operations_research::SequenceVarElement *""'");
46754 }
46755 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46756 {
46757 try {
46758 delete arg1;
46759 }
46760 catch (Swig::DirectorException &e) {
46761 SWIG_fail;
46762 }
46763 }
46764 resultobj = SWIG_Py_Void();
46765 return resultobj;
46766fail:
46767 return NULL;
46768}
46769
46770
46771SWIGINTERN PyObject *SequenceVarElement_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46772 PyObject *obj;
46773 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
46775 return SWIG_Py_Void();
46776}
46777
46778SWIGINTERN PyObject *_wrap_Assignment_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46779 PyObject *resultobj = 0;
46781 void *argp1 = 0 ;
46782 int res1 = 0 ;
46783 PyObject * obj0 = 0 ;
46784
46785 if (!PyArg_UnpackTuple(args, "Assignment_Clear", 1, 1, &obj0)) SWIG_fail;
46787 if (!SWIG_IsOK(res1)) {
46788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Clear" "', argument " "1"" of type '" "operations_research::Assignment *""'");
46789 }
46790 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
46791 {
46792 try {
46793 (arg1)->Clear();
46794 }
46795 catch (Swig::DirectorException &e) {
46796 SWIG_fail;
46797 }
46798 }
46799 resultobj = SWIG_Py_Void();
46800 return resultobj;
46801fail:
46802 return NULL;
46803}
46804
46805
46806SWIGINTERN PyObject *_wrap_Assignment_Empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46807 PyObject *resultobj = 0;
46809 void *argp1 = 0 ;
46810 int res1 = 0 ;
46811 PyObject * obj0 = 0 ;
46812 bool result;
46813
46814 if (!PyArg_UnpackTuple(args, "Assignment_Empty", 1, 1, &obj0)) SWIG_fail;
46816 if (!SWIG_IsOK(res1)) {
46817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Empty" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
46818 }
46819 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
46820 {
46821 try {
46822 result = (bool)((operations_research::Assignment const *)arg1)->Empty();
46823 }
46824 catch (Swig::DirectorException &e) {
46825 SWIG_fail;
46826 }
46827 }
46828 resultobj = SWIG_From_bool(static_cast< bool >(result));
46829 return resultobj;
46830fail:
46831 return NULL;
46832}
46833
46834
46835SWIGINTERN PyObject *_wrap_Assignment_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46836 PyObject *resultobj = 0;
46838 void *argp1 = 0 ;
46839 int res1 = 0 ;
46840 PyObject * obj0 = 0 ;
46841 int result;
46842
46843 if (!PyArg_UnpackTuple(args, "Assignment_Size", 1, 1, &obj0)) SWIG_fail;
46845 if (!SWIG_IsOK(res1)) {
46846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Size" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
46847 }
46848 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
46849 {
46850 try {
46851 result = (int)((operations_research::Assignment const *)arg1)->Size();
46852 }
46853 catch (Swig::DirectorException &e) {
46854 SWIG_fail;
46855 }
46856 }
46857 resultobj = SWIG_From_int(static_cast< int >(result));
46858 return resultobj;
46859fail:
46860 return NULL;
46861}
46862
46863
46864SWIGINTERN PyObject *_wrap_Assignment_NumIntVars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46865 PyObject *resultobj = 0;
46867 void *argp1 = 0 ;
46868 int res1 = 0 ;
46869 PyObject * obj0 = 0 ;
46870 int result;
46871
46872 if (!PyArg_UnpackTuple(args, "Assignment_NumIntVars", 1, 1, &obj0)) SWIG_fail;
46874 if (!SWIG_IsOK(res1)) {
46875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_NumIntVars" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
46876 }
46877 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
46878 {
46879 try {
46880 result = (int)((operations_research::Assignment const *)arg1)->NumIntVars();
46881 }
46882 catch (Swig::DirectorException &e) {
46883 SWIG_fail;
46884 }
46885 }
46886 resultobj = SWIG_From_int(static_cast< int >(result));
46887 return resultobj;
46888fail:
46889 return NULL;
46890}
46891
46892
46893SWIGINTERN PyObject *_wrap_Assignment_NumIntervalVars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46894 PyObject *resultobj = 0;
46896 void *argp1 = 0 ;
46897 int res1 = 0 ;
46898 PyObject * obj0 = 0 ;
46899 int result;
46900
46901 if (!PyArg_UnpackTuple(args, "Assignment_NumIntervalVars", 1, 1, &obj0)) SWIG_fail;
46903 if (!SWIG_IsOK(res1)) {
46904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_NumIntervalVars" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
46905 }
46906 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
46907 {
46908 try {
46909 result = (int)((operations_research::Assignment const *)arg1)->NumIntervalVars();
46910 }
46911 catch (Swig::DirectorException &e) {
46912 SWIG_fail;
46913 }
46914 }
46915 resultobj = SWIG_From_int(static_cast< int >(result));
46916 return resultobj;
46917fail:
46918 return NULL;
46919}
46920
46921
46922SWIGINTERN PyObject *_wrap_Assignment_NumSequenceVars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46923 PyObject *resultobj = 0;
46925 void *argp1 = 0 ;
46926 int res1 = 0 ;
46927 PyObject * obj0 = 0 ;
46928 int result;
46929
46930 if (!PyArg_UnpackTuple(args, "Assignment_NumSequenceVars", 1, 1, &obj0)) SWIG_fail;
46932 if (!SWIG_IsOK(res1)) {
46933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_NumSequenceVars" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
46934 }
46935 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
46936 {
46937 try {
46938 result = (int)((operations_research::Assignment const *)arg1)->NumSequenceVars();
46939 }
46940 catch (Swig::DirectorException &e) {
46941 SWIG_fail;
46942 }
46943 }
46944 resultobj = SWIG_From_int(static_cast< int >(result));
46945 return resultobj;
46946fail:
46947 return NULL;
46948}
46949
46950
46951SWIGINTERN PyObject *_wrap_Assignment_Store(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46952 PyObject *resultobj = 0;
46954 void *argp1 = 0 ;
46955 int res1 = 0 ;
46956 PyObject * obj0 = 0 ;
46957
46958 if (!PyArg_UnpackTuple(args, "Assignment_Store", 1, 1, &obj0)) SWIG_fail;
46960 if (!SWIG_IsOK(res1)) {
46961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Store" "', argument " "1"" of type '" "operations_research::Assignment *""'");
46962 }
46963 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
46964 {
46965 try {
46966 (arg1)->Store();
46967 }
46968 catch (Swig::DirectorException &e) {
46969 SWIG_fail;
46970 }
46971 }
46972 resultobj = SWIG_Py_Void();
46973 return resultobj;
46974fail:
46975 return NULL;
46976}
46977
46978
46979SWIGINTERN PyObject *_wrap_Assignment_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46980 PyObject *resultobj = 0;
46982 void *argp1 = 0 ;
46983 int res1 = 0 ;
46984 PyObject * obj0 = 0 ;
46985
46986 if (!PyArg_UnpackTuple(args, "Assignment_Restore", 1, 1, &obj0)) SWIG_fail;
46988 if (!SWIG_IsOK(res1)) {
46989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Restore" "', argument " "1"" of type '" "operations_research::Assignment *""'");
46990 }
46991 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
46992 {
46993 try {
46994 (arg1)->Restore();
46995 }
46996 catch (Swig::DirectorException &e) {
46997 SWIG_fail;
46998 }
46999 }
47000 resultobj = SWIG_Py_Void();
47001 return resultobj;
47002fail:
47003 return NULL;
47004}
47005
47006
47007SWIGINTERN PyObject *_wrap_Assignment_Load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47008 PyObject *resultobj = 0;
47010 std::string *arg2 = 0 ;
47011 void *argp1 = 0 ;
47012 int res1 = 0 ;
47013 int res2 = SWIG_OLDOBJ ;
47014 PyObject * obj0 = 0 ;
47015 PyObject * obj1 = 0 ;
47016 bool result;
47017
47018 if (!PyArg_UnpackTuple(args, "Assignment_Load", 2, 2, &obj0, &obj1)) SWIG_fail;
47020 if (!SWIG_IsOK(res1)) {
47021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Load" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47022 }
47023 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47024 {
47025 std::string *ptr = (std::string *)0;
47026 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
47027 if (!SWIG_IsOK(res2)) {
47028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Assignment_Load" "', argument " "2"" of type '" "std::string const &""'");
47029 }
47030 if (!ptr) {
47031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Assignment_Load" "', argument " "2"" of type '" "std::string const &""'");
47032 }
47033 arg2 = ptr;
47034 }
47035 {
47036 try {
47037 result = (bool)(arg1)->Load((std::string const &)*arg2);
47038 }
47039 catch (Swig::DirectorException &e) {
47040 SWIG_fail;
47041 }
47042 }
47043 resultobj = SWIG_From_bool(static_cast< bool >(result));
47044 if (SWIG_IsNewObj(res2)) delete arg2;
47045 return resultobj;
47046fail:
47047 if (SWIG_IsNewObj(res2)) delete arg2;
47048 return NULL;
47049}
47050
47051
47052SWIGINTERN PyObject *_wrap_Assignment_Load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47053 PyObject *resultobj = 0;
47056 void *argp1 = 0 ;
47057 int res1 = 0 ;
47058 PyObject * obj0 = 0 ;
47059 PyObject * obj1 = 0 ;
47060
47061 if (!PyArg_UnpackTuple(args, "Assignment_Load", 2, 2, &obj0, &obj1)) SWIG_fail;
47063 if (!SWIG_IsOK(res1)) {
47064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Load" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47065 }
47066 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47067 {
47069 PyObject* const pyresult = PyObject_CallMethod(
47070 obj1, const_cast<char*>("SerializeToString"), nullptr);
47071 if (pyresult != nullptr) {
47072 char* buffer = nullptr;
47073 Py_ssize_t length = 0;
47074 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
47075 if (buffer != nullptr) {
47076 arg2->ParseFromArray(buffer, length);
47077 }
47078 Py_DECREF(pyresult);
47079 }
47080 }
47081 {
47082 try {
47083 (arg1)->Load((operations_research::AssignmentProto const &)*arg2);
47084 }
47085 catch (Swig::DirectorException &e) {
47086 SWIG_fail;
47087 }
47088 }
47089 resultobj = SWIG_Py_Void();
47090 {
47091 delete arg2;
47092 }
47093 return resultobj;
47094fail:
47095 {
47096 delete arg2;
47097 }
47098 return NULL;
47099}
47100
47101
47102SWIGINTERN PyObject *_wrap_Assignment_Load(PyObject *self, PyObject *args) {
47103 Py_ssize_t argc;
47104 PyObject *argv[3] = {
47105 0
47106 };
47107 Py_ssize_t ii;
47108
47109 if (!PyTuple_Check(args)) SWIG_fail;
47110 argc = PyObject_Length(args);
47111 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
47112 argv[ii] = PyTuple_GET_ITEM(args,ii);
47113 }
47114 if (argc == 2) {
47115 int _v;
47116 void *vptr = 0;
47117 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
47118 _v = SWIG_CheckState(res);
47119 if (_v) {
47120 {
47121 bool ok = false;
47122 PyObject* const module = PyImport_ImportModule("ortools.constraint_solver.assignment_pb2");
47123 if (module != nullptr) {
47124 PyObject* const dict = PyModule_GetDict(module);
47125 if (dict != nullptr) {
47126 PyObject* const clss = PyDict_GetItemString(dict, "AssignmentProto");
47127 if (clss != nullptr) {
47128 if (PyObject_IsInstance(argv[1], clss)) {
47129 ok = true;
47130 }
47131 }
47132 }
47133 Py_DECREF(module);
47134 }
47135 _v = ok ? 1 : 0;
47136 }
47137 if (_v) {
47138 return _wrap_Assignment_Load__SWIG_1(self, args);
47139 }
47140 }
47141 }
47142 if (argc == 2) {
47143 int _v;
47144 void *vptr = 0;
47145 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
47146 _v = SWIG_CheckState(res);
47147 if (_v) {
47148 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
47149 _v = SWIG_CheckState(res);
47150 if (_v) {
47151 return _wrap_Assignment_Load__SWIG_0(self, args);
47152 }
47153 }
47154 }
47155
47156fail:
47157 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Assignment_Load'.\n"
47158 " Possible C/C++ prototypes are:\n"
47159 " operations_research::Assignment::Load(std::string const &)\n"
47160 " operations_research::Assignment::Load(operations_research::AssignmentProto const &)\n");
47161 return 0;
47162}
47163
47164
47165SWIGINTERN PyObject *_wrap_Assignment_Save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47166 PyObject *resultobj = 0;
47168 std::string *arg2 = 0 ;
47169 void *argp1 = 0 ;
47170 int res1 = 0 ;
47171 int res2 = SWIG_OLDOBJ ;
47172 PyObject * obj0 = 0 ;
47173 PyObject * obj1 = 0 ;
47174 bool result;
47175
47176 if (!PyArg_UnpackTuple(args, "Assignment_Save", 2, 2, &obj0, &obj1)) SWIG_fail;
47178 if (!SWIG_IsOK(res1)) {
47179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Save" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47180 }
47181 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47182 {
47183 std::string *ptr = (std::string *)0;
47184 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
47185 if (!SWIG_IsOK(res2)) {
47186 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Assignment_Save" "', argument " "2"" of type '" "std::string const &""'");
47187 }
47188 if (!ptr) {
47189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Assignment_Save" "', argument " "2"" of type '" "std::string const &""'");
47190 }
47191 arg2 = ptr;
47192 }
47193 {
47194 try {
47195 result = (bool)((operations_research::Assignment const *)arg1)->Save((std::string const &)*arg2);
47196 }
47197 catch (Swig::DirectorException &e) {
47198 SWIG_fail;
47199 }
47200 }
47201 resultobj = SWIG_From_bool(static_cast< bool >(result));
47202 if (SWIG_IsNewObj(res2)) delete arg2;
47203 return resultobj;
47204fail:
47205 if (SWIG_IsNewObj(res2)) delete arg2;
47206 return NULL;
47207}
47208
47209
47210SWIGINTERN PyObject *_wrap_Assignment_Save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47211 PyObject *resultobj = 0;
47214 void *argp1 = 0 ;
47215 int res1 = 0 ;
47216 PyObject * obj0 = 0 ;
47217 PyObject * obj1 = 0 ;
47218
47219 if (!PyArg_UnpackTuple(args, "Assignment_Save", 2, 2, &obj0, &obj1)) SWIG_fail;
47221 if (!SWIG_IsOK(res1)) {
47222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Save" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47223 }
47224 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47225 {
47227 PyObject* const pyresult = PyObject_CallMethod(
47228 obj1, const_cast<char*>("SerializeToString"), nullptr);
47229 if (pyresult != nullptr) {
47230 char* buffer = nullptr;
47231 Py_ssize_t length = 0;
47232 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
47233 if (buffer != nullptr) {
47234 arg2->ParseFromArray(buffer, length);
47235 }
47236 Py_DECREF(pyresult);
47237 }
47238 }
47239 {
47240 try {
47241 ((operations_research::Assignment const *)arg1)->Save(arg2);
47242 }
47243 catch (Swig::DirectorException &e) {
47244 SWIG_fail;
47245 }
47246 }
47247 resultobj = SWIG_Py_Void();
47248 {
47249 std::string encoded_protobuf;
47250 arg2->SerializeToString(&encoded_protobuf);
47251
47252 PyObject* const python_encoded_protobuf =
47253 PyBytes_FromStringAndSize(encoded_protobuf.c_str(),
47254 encoded_protobuf.size());
47255
47256
47257
47258
47259
47260 if (python_encoded_protobuf != nullptr) {
47261 PyObject* const result = PyObject_CallMethod(
47262 obj1, const_cast<char*>("ParseFromString"),
47263 const_cast<char*>("(O)"), python_encoded_protobuf);
47264 Py_DECREF(python_encoded_protobuf);
47265 if (result != nullptr) {
47266 Py_DECREF(result);
47267 }
47268 }
47269 }
47270 {
47271 delete arg2;
47272 }
47273 return resultobj;
47274fail:
47275 {
47276 delete arg2;
47277 }
47278 return NULL;
47279}
47280
47281
47282SWIGINTERN PyObject *_wrap_Assignment_Save(PyObject *self, PyObject *args) {
47283 Py_ssize_t argc;
47284 PyObject *argv[3] = {
47285 0
47286 };
47287 Py_ssize_t ii;
47288
47289 if (!PyTuple_Check(args)) SWIG_fail;
47290 argc = PyObject_Length(args);
47291 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
47292 argv[ii] = PyTuple_GET_ITEM(args,ii);
47293 }
47294 if (argc == 2) {
47295 int _v;
47296 void *vptr = 0;
47297 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
47298 _v = SWIG_CheckState(res);
47299 if (_v) {
47300 {
47301 bool ok = false;
47302 PyObject* const module = PyImport_ImportModule("ortools.constraint_solver.assignment_pb2");
47303 if (module != nullptr) {
47304 PyObject* const dict = PyModule_GetDict(module);
47305 if (dict != nullptr) {
47306 PyObject* const clss = PyDict_GetItemString(dict, "AssignmentProto");
47307 if (clss != nullptr) {
47308 if (PyObject_IsInstance(argv[1], clss)) {
47309 ok = true;
47310 }
47311 }
47312 }
47313 Py_DECREF(module);
47314 }
47315 _v = ok ? 1 : 0;
47316 }
47317 if (_v) {
47318 return _wrap_Assignment_Save__SWIG_1(self, args);
47319 }
47320 }
47321 }
47322 if (argc == 2) {
47323 int _v;
47324 void *vptr = 0;
47325 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
47326 _v = SWIG_CheckState(res);
47327 if (_v) {
47328 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
47329 _v = SWIG_CheckState(res);
47330 if (_v) {
47331 return _wrap_Assignment_Save__SWIG_0(self, args);
47332 }
47333 }
47334 }
47335
47336fail:
47337 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Assignment_Save'.\n"
47338 " Possible C/C++ prototypes are:\n"
47339 " operations_research::Assignment::Save(std::string const &) const\n"
47340 " operations_research::Assignment::Save(operations_research::AssignmentProto *const) const\n");
47341 return 0;
47342}
47343
47344
47345SWIGINTERN PyObject *_wrap_Assignment_AddObjective(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47346 PyObject *resultobj = 0;
47349 void *argp1 = 0 ;
47350 int res1 = 0 ;
47351 PyObject * obj0 = 0 ;
47352 PyObject * obj1 = 0 ;
47353
47354 if (!PyArg_UnpackTuple(args, "Assignment_AddObjective", 2, 2, &obj0, &obj1)) SWIG_fail;
47356 if (!SWIG_IsOK(res1)) {
47357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_AddObjective" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47358 }
47359 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47360 {
47361 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
47362 }
47363 {
47364 try {
47365 (arg1)->AddObjective(arg2);
47366 }
47367 catch (Swig::DirectorException &e) {
47368 SWIG_fail;
47369 }
47370 }
47371 resultobj = SWIG_Py_Void();
47372 return resultobj;
47373fail:
47374 return NULL;
47375}
47376
47377
47378SWIGINTERN PyObject *_wrap_Assignment_Objective(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47379 PyObject *resultobj = 0;
47381 void *argp1 = 0 ;
47382 int res1 = 0 ;
47383 PyObject * obj0 = 0 ;
47384 operations_research::IntVar *result = 0 ;
47385
47386 if (!PyArg_UnpackTuple(args, "Assignment_Objective", 1, 1, &obj0)) SWIG_fail;
47388 if (!SWIG_IsOK(res1)) {
47389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Objective" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47390 }
47391 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47392 {
47393 try {
47394 result = (operations_research::IntVar *)((operations_research::Assignment const *)arg1)->Objective();
47395 }
47396 catch (Swig::DirectorException &e) {
47397 SWIG_fail;
47398 }
47399 }
47401 return resultobj;
47402fail:
47403 return NULL;
47404}
47405
47406
47407SWIGINTERN PyObject *_wrap_Assignment_HasObjective(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47408 PyObject *resultobj = 0;
47410 void *argp1 = 0 ;
47411 int res1 = 0 ;
47412 PyObject * obj0 = 0 ;
47413 bool result;
47414
47415 if (!PyArg_UnpackTuple(args, "Assignment_HasObjective", 1, 1, &obj0)) SWIG_fail;
47417 if (!SWIG_IsOK(res1)) {
47418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_HasObjective" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47419 }
47420 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47421 {
47422 try {
47423 result = (bool)((operations_research::Assignment const *)arg1)->HasObjective();
47424 }
47425 catch (Swig::DirectorException &e) {
47426 SWIG_fail;
47427 }
47428 }
47429 resultobj = SWIG_From_bool(static_cast< bool >(result));
47430 return resultobj;
47431fail:
47432 return NULL;
47433}
47434
47435
47436SWIGINTERN PyObject *_wrap_Assignment_ObjectiveMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47437 PyObject *resultobj = 0;
47439 void *argp1 = 0 ;
47440 int res1 = 0 ;
47441 PyObject * obj0 = 0 ;
47442 int64_t result;
47443
47444 if (!PyArg_UnpackTuple(args, "Assignment_ObjectiveMin", 1, 1, &obj0)) SWIG_fail;
47446 if (!SWIG_IsOK(res1)) {
47447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_ObjectiveMin" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47448 }
47449 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47450 {
47451 try {
47452 result = (int64_t)((operations_research::Assignment const *)arg1)->ObjectiveMin();
47453 }
47454 catch (Swig::DirectorException &e) {
47455 SWIG_fail;
47456 }
47457 }
47458 resultobj = SWIG_From_long(static_cast< long >(result));
47459 return resultobj;
47460fail:
47461 return NULL;
47462}
47463
47464
47465SWIGINTERN PyObject *_wrap_Assignment_ObjectiveMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47466 PyObject *resultobj = 0;
47468 void *argp1 = 0 ;
47469 int res1 = 0 ;
47470 PyObject * obj0 = 0 ;
47471 int64_t result;
47472
47473 if (!PyArg_UnpackTuple(args, "Assignment_ObjectiveMax", 1, 1, &obj0)) SWIG_fail;
47475 if (!SWIG_IsOK(res1)) {
47476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_ObjectiveMax" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47477 }
47478 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47479 {
47480 try {
47481 result = (int64_t)((operations_research::Assignment const *)arg1)->ObjectiveMax();
47482 }
47483 catch (Swig::DirectorException &e) {
47484 SWIG_fail;
47485 }
47486 }
47487 resultobj = SWIG_From_long(static_cast< long >(result));
47488 return resultobj;
47489fail:
47490 return NULL;
47491}
47492
47493
47494SWIGINTERN PyObject *_wrap_Assignment_ObjectiveValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47495 PyObject *resultobj = 0;
47497 void *argp1 = 0 ;
47498 int res1 = 0 ;
47499 PyObject * obj0 = 0 ;
47500 int64_t result;
47501
47502 if (!PyArg_UnpackTuple(args, "Assignment_ObjectiveValue", 1, 1, &obj0)) SWIG_fail;
47504 if (!SWIG_IsOK(res1)) {
47505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_ObjectiveValue" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47506 }
47507 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47508 {
47509 try {
47510 result = (int64_t)((operations_research::Assignment const *)arg1)->ObjectiveValue();
47511 }
47512 catch (Swig::DirectorException &e) {
47513 SWIG_fail;
47514 }
47515 }
47516 resultobj = SWIG_From_long(static_cast< long >(result));
47517 return resultobj;
47518fail:
47519 return NULL;
47520}
47521
47522
47523SWIGINTERN PyObject *_wrap_Assignment_ObjectiveBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47524 PyObject *resultobj = 0;
47526 void *argp1 = 0 ;
47527 int res1 = 0 ;
47528 PyObject * obj0 = 0 ;
47529 bool result;
47530
47531 if (!PyArg_UnpackTuple(args, "Assignment_ObjectiveBound", 1, 1, &obj0)) SWIG_fail;
47533 if (!SWIG_IsOK(res1)) {
47534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_ObjectiveBound" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47535 }
47536 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47537 {
47538 try {
47539 result = (bool)((operations_research::Assignment const *)arg1)->ObjectiveBound();
47540 }
47541 catch (Swig::DirectorException &e) {
47542 SWIG_fail;
47543 }
47544 }
47545 resultobj = SWIG_From_bool(static_cast< bool >(result));
47546 return resultobj;
47547fail:
47548 return NULL;
47549}
47550
47551
47552SWIGINTERN PyObject *_wrap_Assignment_SetObjectiveMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47553 PyObject *resultobj = 0;
47555 int64_t arg2 ;
47556 void *argp1 = 0 ;
47557 int res1 = 0 ;
47558 long val2 ;
47559 int ecode2 = 0 ;
47560 PyObject * obj0 = 0 ;
47561 PyObject * obj1 = 0 ;
47562
47563 if (!PyArg_UnpackTuple(args, "Assignment_SetObjectiveMin", 2, 2, &obj0, &obj1)) SWIG_fail;
47565 if (!SWIG_IsOK(res1)) {
47566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetObjectiveMin" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47567 }
47568 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47569 ecode2 = SWIG_AsVal_long(obj1, &val2);
47570 if (!SWIG_IsOK(ecode2)) {
47571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Assignment_SetObjectiveMin" "', argument " "2"" of type '" "int64_t""'");
47572 }
47573 arg2 = static_cast< int64_t >(val2);
47574 {
47575 try {
47576 (arg1)->SetObjectiveMin(arg2);
47577 }
47578 catch (Swig::DirectorException &e) {
47579 SWIG_fail;
47580 }
47581 }
47582 resultobj = SWIG_Py_Void();
47583 return resultobj;
47584fail:
47585 return NULL;
47586}
47587
47588
47589SWIGINTERN PyObject *_wrap_Assignment_SetObjectiveMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47590 PyObject *resultobj = 0;
47592 int64_t arg2 ;
47593 void *argp1 = 0 ;
47594 int res1 = 0 ;
47595 long val2 ;
47596 int ecode2 = 0 ;
47597 PyObject * obj0 = 0 ;
47598 PyObject * obj1 = 0 ;
47599
47600 if (!PyArg_UnpackTuple(args, "Assignment_SetObjectiveMax", 2, 2, &obj0, &obj1)) SWIG_fail;
47602 if (!SWIG_IsOK(res1)) {
47603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetObjectiveMax" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47604 }
47605 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47606 ecode2 = SWIG_AsVal_long(obj1, &val2);
47607 if (!SWIG_IsOK(ecode2)) {
47608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Assignment_SetObjectiveMax" "', argument " "2"" of type '" "int64_t""'");
47609 }
47610 arg2 = static_cast< int64_t >(val2);
47611 {
47612 try {
47613 (arg1)->SetObjectiveMax(arg2);
47614 }
47615 catch (Swig::DirectorException &e) {
47616 SWIG_fail;
47617 }
47618 }
47619 resultobj = SWIG_Py_Void();
47620 return resultobj;
47621fail:
47622 return NULL;
47623}
47624
47625
47626SWIGINTERN PyObject *_wrap_Assignment_SetObjectiveValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47627 PyObject *resultobj = 0;
47629 int64_t arg2 ;
47630 void *argp1 = 0 ;
47631 int res1 = 0 ;
47632 long val2 ;
47633 int ecode2 = 0 ;
47634 PyObject * obj0 = 0 ;
47635 PyObject * obj1 = 0 ;
47636
47637 if (!PyArg_UnpackTuple(args, "Assignment_SetObjectiveValue", 2, 2, &obj0, &obj1)) SWIG_fail;
47639 if (!SWIG_IsOK(res1)) {
47640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetObjectiveValue" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47641 }
47642 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47643 ecode2 = SWIG_AsVal_long(obj1, &val2);
47644 if (!SWIG_IsOK(ecode2)) {
47645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Assignment_SetObjectiveValue" "', argument " "2"" of type '" "int64_t""'");
47646 }
47647 arg2 = static_cast< int64_t >(val2);
47648 {
47649 try {
47650 (arg1)->SetObjectiveValue(arg2);
47651 }
47652 catch (Swig::DirectorException &e) {
47653 SWIG_fail;
47654 }
47655 }
47656 resultobj = SWIG_Py_Void();
47657 return resultobj;
47658fail:
47659 return NULL;
47660}
47661
47662
47663SWIGINTERN PyObject *_wrap_Assignment_SetObjectiveRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47664 PyObject *resultobj = 0;
47666 int64_t arg2 ;
47667 int64_t arg3 ;
47668 void *argp1 = 0 ;
47669 int res1 = 0 ;
47670 long val2 ;
47671 int ecode2 = 0 ;
47672 long val3 ;
47673 int ecode3 = 0 ;
47674 PyObject * obj0 = 0 ;
47675 PyObject * obj1 = 0 ;
47676 PyObject * obj2 = 0 ;
47677
47678 if (!PyArg_UnpackTuple(args, "Assignment_SetObjectiveRange", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
47680 if (!SWIG_IsOK(res1)) {
47681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetObjectiveRange" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47682 }
47683 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47684 ecode2 = SWIG_AsVal_long(obj1, &val2);
47685 if (!SWIG_IsOK(ecode2)) {
47686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Assignment_SetObjectiveRange" "', argument " "2"" of type '" "int64_t""'");
47687 }
47688 arg2 = static_cast< int64_t >(val2);
47689 ecode3 = SWIG_AsVal_long(obj2, &val3);
47690 if (!SWIG_IsOK(ecode3)) {
47691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetObjectiveRange" "', argument " "3"" of type '" "int64_t""'");
47692 }
47693 arg3 = static_cast< int64_t >(val3);
47694 {
47695 try {
47696 (arg1)->SetObjectiveRange(arg2,arg3);
47697 }
47698 catch (Swig::DirectorException &e) {
47699 SWIG_fail;
47700 }
47701 }
47702 resultobj = SWIG_Py_Void();
47703 return resultobj;
47704fail:
47705 return NULL;
47706}
47707
47708
47709SWIGINTERN PyObject *_wrap_Assignment_Add__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47710 PyObject *resultobj = 0;
47713 void *argp1 = 0 ;
47714 int res1 = 0 ;
47715 PyObject * obj0 = 0 ;
47716 PyObject * obj1 = 0 ;
47718
47719 if (!PyArg_UnpackTuple(args, "Assignment_Add", 2, 2, &obj0, &obj1)) SWIG_fail;
47721 if (!SWIG_IsOK(res1)) {
47722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Add" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47723 }
47724 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47725 {
47726 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
47727 }
47728 {
47729 try {
47730 result = (operations_research::IntVarElement *)(arg1)->Add(arg2);
47731 }
47732 catch (Swig::DirectorException &e) {
47733 SWIG_fail;
47734 }
47735 }
47737 return resultobj;
47738fail:
47739 return NULL;
47740}
47741
47742
47743SWIGINTERN PyObject *_wrap_Assignment_Add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47744 PyObject *resultobj = 0;
47746 std::vector< operations_research::IntVar * > *arg2 = 0 ;
47747 void *argp1 = 0 ;
47748 int res1 = 0 ;
47749 std::vector< operations_research::IntVar * > temp2 ;
47750 PyObject * obj0 = 0 ;
47751 PyObject * obj1 = 0 ;
47752
47753 if (!PyArg_UnpackTuple(args, "Assignment_Add", 2, 2, &obj0, &obj1)) SWIG_fail;
47755 if (!SWIG_IsOK(res1)) {
47756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Add" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47757 }
47758 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47759 {
47760 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
47761 if (!PyErr_Occurred())
47762 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
47763 return NULL;
47764 }
47765 arg2 = &temp2;
47766 }
47767 {
47768 try {
47769 (arg1)->Add((std::vector< operations_research::IntVar * > const &)*arg2);
47770 }
47771 catch (Swig::DirectorException &e) {
47772 SWIG_fail;
47773 }
47774 }
47775 resultobj = SWIG_Py_Void();
47776 return resultobj;
47777fail:
47778 return NULL;
47779}
47780
47781
47782SWIGINTERN PyObject *_wrap_Assignment_Min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47783 PyObject *resultobj = 0;
47786 void *argp1 = 0 ;
47787 int res1 = 0 ;
47788 PyObject * obj0 = 0 ;
47789 PyObject * obj1 = 0 ;
47790 int64_t result;
47791
47792 if (!PyArg_UnpackTuple(args, "Assignment_Min", 2, 2, &obj0, &obj1)) SWIG_fail;
47794 if (!SWIG_IsOK(res1)) {
47795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Min" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47796 }
47797 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47798 {
47799 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
47800 }
47801 {
47802 try {
47803 result = (int64_t)((operations_research::Assignment const *)arg1)->Min((operations_research::IntVar const *)arg2);
47804 }
47805 catch (Swig::DirectorException &e) {
47806 SWIG_fail;
47807 }
47808 }
47809 resultobj = SWIG_From_long(static_cast< long >(result));
47810 return resultobj;
47811fail:
47812 return NULL;
47813}
47814
47815
47816SWIGINTERN PyObject *_wrap_Assignment_Max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47817 PyObject *resultobj = 0;
47820 void *argp1 = 0 ;
47821 int res1 = 0 ;
47822 PyObject * obj0 = 0 ;
47823 PyObject * obj1 = 0 ;
47824 int64_t result;
47825
47826 if (!PyArg_UnpackTuple(args, "Assignment_Max", 2, 2, &obj0, &obj1)) SWIG_fail;
47828 if (!SWIG_IsOK(res1)) {
47829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Max" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47830 }
47831 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47832 {
47833 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
47834 }
47835 {
47836 try {
47837 result = (int64_t)((operations_research::Assignment const *)arg1)->Max((operations_research::IntVar const *)arg2);
47838 }
47839 catch (Swig::DirectorException &e) {
47840 SWIG_fail;
47841 }
47842 }
47843 resultobj = SWIG_From_long(static_cast< long >(result));
47844 return resultobj;
47845fail:
47846 return NULL;
47847}
47848
47849
47850SWIGINTERN PyObject *_wrap_Assignment_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47851 PyObject *resultobj = 0;
47854 void *argp1 = 0 ;
47855 int res1 = 0 ;
47856 PyObject * obj0 = 0 ;
47857 PyObject * obj1 = 0 ;
47858 int64_t result;
47859
47860 if (!PyArg_UnpackTuple(args, "Assignment_Value", 2, 2, &obj0, &obj1)) SWIG_fail;
47862 if (!SWIG_IsOK(res1)) {
47863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Value" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47864 }
47865 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47866 {
47867 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
47868 }
47869 {
47870 try {
47871 result = (int64_t)((operations_research::Assignment const *)arg1)->Value((operations_research::IntVar const *)arg2);
47872 }
47873 catch (Swig::DirectorException &e) {
47874 SWIG_fail;
47875 }
47876 }
47877 resultobj = SWIG_From_long(static_cast< long >(result));
47878 return resultobj;
47879fail:
47880 return NULL;
47881}
47882
47883
47884SWIGINTERN PyObject *_wrap_Assignment_Bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47885 PyObject *resultobj = 0;
47888 void *argp1 = 0 ;
47889 int res1 = 0 ;
47890 PyObject * obj0 = 0 ;
47891 PyObject * obj1 = 0 ;
47892 bool result;
47893
47894 if (!PyArg_UnpackTuple(args, "Assignment_Bound", 2, 2, &obj0, &obj1)) SWIG_fail;
47896 if (!SWIG_IsOK(res1)) {
47897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Bound" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47898 }
47899 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47900 {
47901 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
47902 }
47903 {
47904 try {
47905 result = (bool)((operations_research::Assignment const *)arg1)->Bound((operations_research::IntVar const *)arg2);
47906 }
47907 catch (Swig::DirectorException &e) {
47908 SWIG_fail;
47909 }
47910 }
47911 resultobj = SWIG_From_bool(static_cast< bool >(result));
47912 return resultobj;
47913fail:
47914 return NULL;
47915}
47916
47917
47918SWIGINTERN PyObject *_wrap_Assignment_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47919 PyObject *resultobj = 0;
47922 int64_t arg3 ;
47923 void *argp1 = 0 ;
47924 int res1 = 0 ;
47925 long val3 ;
47926 int ecode3 = 0 ;
47927 PyObject * obj0 = 0 ;
47928 PyObject * obj1 = 0 ;
47929 PyObject * obj2 = 0 ;
47930
47931 if (!PyArg_UnpackTuple(args, "Assignment_SetMin", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
47933 if (!SWIG_IsOK(res1)) {
47934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetMin" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47935 }
47936 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47937 {
47938 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
47939 }
47940 ecode3 = SWIG_AsVal_long(obj2, &val3);
47941 if (!SWIG_IsOK(ecode3)) {
47942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetMin" "', argument " "3"" of type '" "int64_t""'");
47943 }
47944 arg3 = static_cast< int64_t >(val3);
47945 {
47946 try {
47947 (arg1)->SetMin((operations_research::IntVar const *)arg2,arg3);
47948 }
47949 catch (Swig::DirectorException &e) {
47950 SWIG_fail;
47951 }
47952 }
47953 resultobj = SWIG_Py_Void();
47954 return resultobj;
47955fail:
47956 return NULL;
47957}
47958
47959
47960SWIGINTERN PyObject *_wrap_Assignment_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47961 PyObject *resultobj = 0;
47964 int64_t arg3 ;
47965 void *argp1 = 0 ;
47966 int res1 = 0 ;
47967 long val3 ;
47968 int ecode3 = 0 ;
47969 PyObject * obj0 = 0 ;
47970 PyObject * obj1 = 0 ;
47971 PyObject * obj2 = 0 ;
47972
47973 if (!PyArg_UnpackTuple(args, "Assignment_SetMax", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
47975 if (!SWIG_IsOK(res1)) {
47976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetMax" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47977 }
47978 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47979 {
47980 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
47981 }
47982 ecode3 = SWIG_AsVal_long(obj2, &val3);
47983 if (!SWIG_IsOK(ecode3)) {
47984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetMax" "', argument " "3"" of type '" "int64_t""'");
47985 }
47986 arg3 = static_cast< int64_t >(val3);
47987 {
47988 try {
47989 (arg1)->SetMax((operations_research::IntVar const *)arg2,arg3);
47990 }
47991 catch (Swig::DirectorException &e) {
47992 SWIG_fail;
47993 }
47994 }
47995 resultobj = SWIG_Py_Void();
47996 return resultobj;
47997fail:
47998 return NULL;
47999}
48000
48001
48002SWIGINTERN PyObject *_wrap_Assignment_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48003 PyObject *resultobj = 0;
48006 int64_t arg3 ;
48007 int64_t arg4 ;
48008 void *argp1 = 0 ;
48009 int res1 = 0 ;
48010 long val3 ;
48011 int ecode3 = 0 ;
48012 long val4 ;
48013 int ecode4 = 0 ;
48014 PyObject * obj0 = 0 ;
48015 PyObject * obj1 = 0 ;
48016 PyObject * obj2 = 0 ;
48017 PyObject * obj3 = 0 ;
48018
48019 if (!PyArg_UnpackTuple(args, "Assignment_SetRange", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
48021 if (!SWIG_IsOK(res1)) {
48022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetRange" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48023 }
48024 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48025 {
48026 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48027 }
48028 ecode3 = SWIG_AsVal_long(obj2, &val3);
48029 if (!SWIG_IsOK(ecode3)) {
48030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetRange" "', argument " "3"" of type '" "int64_t""'");
48031 }
48032 arg3 = static_cast< int64_t >(val3);
48033 ecode4 = SWIG_AsVal_long(obj3, &val4);
48034 if (!SWIG_IsOK(ecode4)) {
48035 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Assignment_SetRange" "', argument " "4"" of type '" "int64_t""'");
48036 }
48037 arg4 = static_cast< int64_t >(val4);
48038 {
48039 try {
48040 (arg1)->SetRange((operations_research::IntVar const *)arg2,arg3,arg4);
48041 }
48042 catch (Swig::DirectorException &e) {
48043 SWIG_fail;
48044 }
48045 }
48046 resultobj = SWIG_Py_Void();
48047 return resultobj;
48048fail:
48049 return NULL;
48050}
48051
48052
48053SWIGINTERN PyObject *_wrap_Assignment_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48054 PyObject *resultobj = 0;
48057 int64_t arg3 ;
48058 void *argp1 = 0 ;
48059 int res1 = 0 ;
48060 long val3 ;
48061 int ecode3 = 0 ;
48062 PyObject * obj0 = 0 ;
48063 PyObject * obj1 = 0 ;
48064 PyObject * obj2 = 0 ;
48065
48066 if (!PyArg_UnpackTuple(args, "Assignment_SetValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
48068 if (!SWIG_IsOK(res1)) {
48069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetValue" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48070 }
48071 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48072 {
48073 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48074 }
48075 ecode3 = SWIG_AsVal_long(obj2, &val3);
48076 if (!SWIG_IsOK(ecode3)) {
48077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetValue" "', argument " "3"" of type '" "int64_t""'");
48078 }
48079 arg3 = static_cast< int64_t >(val3);
48080 {
48081 try {
48082 (arg1)->SetValue((operations_research::IntVar const *)arg2,arg3);
48083 }
48084 catch (Swig::DirectorException &e) {
48085 SWIG_fail;
48086 }
48087 }
48088 resultobj = SWIG_Py_Void();
48089 return resultobj;
48090fail:
48091 return NULL;
48092}
48093
48094
48095SWIGINTERN PyObject *_wrap_Assignment_Add__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48096 PyObject *resultobj = 0;
48099 void *argp1 = 0 ;
48100 int res1 = 0 ;
48101 PyObject * obj0 = 0 ;
48102 PyObject * obj1 = 0 ;
48104
48105 if (!PyArg_UnpackTuple(args, "Assignment_Add", 2, 2, &obj0, &obj1)) SWIG_fail;
48107 if (!SWIG_IsOK(res1)) {
48108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Add" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48109 }
48110 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48111 {
48112 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48113 }
48114 {
48115 try {
48116 result = (operations_research::IntervalVarElement *)(arg1)->Add(arg2);
48117 }
48118 catch (Swig::DirectorException &e) {
48119 SWIG_fail;
48120 }
48121 }
48123 return resultobj;
48124fail:
48125 return NULL;
48126}
48127
48128
48129SWIGINTERN PyObject *_wrap_Assignment_Add__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48130 PyObject *resultobj = 0;
48132 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
48133 void *argp1 = 0 ;
48134 int res1 = 0 ;
48135 std::vector< operations_research::IntervalVar * > temp2 ;
48136 PyObject * obj0 = 0 ;
48137 PyObject * obj1 = 0 ;
48138
48139 if (!PyArg_UnpackTuple(args, "Assignment_Add", 2, 2, &obj0, &obj1)) SWIG_fail;
48141 if (!SWIG_IsOK(res1)) {
48142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Add" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48143 }
48144 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48145 {
48146 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
48147 if (!PyErr_Occurred())
48148 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntervalVar*) expected");
48149 return NULL;
48150 }
48151 arg2 = &temp2;
48152 }
48153 {
48154 try {
48155 (arg1)->Add((std::vector< operations_research::IntervalVar * > const &)*arg2);
48156 }
48157 catch (Swig::DirectorException &e) {
48158 SWIG_fail;
48159 }
48160 }
48161 resultobj = SWIG_Py_Void();
48162 return resultobj;
48163fail:
48164 return NULL;
48165}
48166
48167
48168SWIGINTERN PyObject *_wrap_Assignment_StartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48169 PyObject *resultobj = 0;
48172 void *argp1 = 0 ;
48173 int res1 = 0 ;
48174 PyObject * obj0 = 0 ;
48175 PyObject * obj1 = 0 ;
48176 int64_t result;
48177
48178 if (!PyArg_UnpackTuple(args, "Assignment_StartMin", 2, 2, &obj0, &obj1)) SWIG_fail;
48180 if (!SWIG_IsOK(res1)) {
48181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_StartMin" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48182 }
48183 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48184 {
48185 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48186 }
48187 {
48188 try {
48189 result = (int64_t)((operations_research::Assignment const *)arg1)->StartMin((operations_research::IntervalVar const *)arg2);
48190 }
48191 catch (Swig::DirectorException &e) {
48192 SWIG_fail;
48193 }
48194 }
48195 resultobj = SWIG_From_long(static_cast< long >(result));
48196 return resultobj;
48197fail:
48198 return NULL;
48199}
48200
48201
48202SWIGINTERN PyObject *_wrap_Assignment_StartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48203 PyObject *resultobj = 0;
48206 void *argp1 = 0 ;
48207 int res1 = 0 ;
48208 PyObject * obj0 = 0 ;
48209 PyObject * obj1 = 0 ;
48210 int64_t result;
48211
48212 if (!PyArg_UnpackTuple(args, "Assignment_StartMax", 2, 2, &obj0, &obj1)) SWIG_fail;
48214 if (!SWIG_IsOK(res1)) {
48215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_StartMax" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48216 }
48217 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48218 {
48219 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48220 }
48221 {
48222 try {
48223 result = (int64_t)((operations_research::Assignment const *)arg1)->StartMax((operations_research::IntervalVar const *)arg2);
48224 }
48225 catch (Swig::DirectorException &e) {
48226 SWIG_fail;
48227 }
48228 }
48229 resultobj = SWIG_From_long(static_cast< long >(result));
48230 return resultobj;
48231fail:
48232 return NULL;
48233}
48234
48235
48236SWIGINTERN PyObject *_wrap_Assignment_StartValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48237 PyObject *resultobj = 0;
48240 void *argp1 = 0 ;
48241 int res1 = 0 ;
48242 PyObject * obj0 = 0 ;
48243 PyObject * obj1 = 0 ;
48244 int64_t result;
48245
48246 if (!PyArg_UnpackTuple(args, "Assignment_StartValue", 2, 2, &obj0, &obj1)) SWIG_fail;
48248 if (!SWIG_IsOK(res1)) {
48249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_StartValue" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48250 }
48251 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48252 {
48253 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48254 }
48255 {
48256 try {
48257 result = (int64_t)((operations_research::Assignment const *)arg1)->StartValue((operations_research::IntervalVar const *)arg2);
48258 }
48259 catch (Swig::DirectorException &e) {
48260 SWIG_fail;
48261 }
48262 }
48263 resultobj = SWIG_From_long(static_cast< long >(result));
48264 return resultobj;
48265fail:
48266 return NULL;
48267}
48268
48269
48270SWIGINTERN PyObject *_wrap_Assignment_DurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48271 PyObject *resultobj = 0;
48274 void *argp1 = 0 ;
48275 int res1 = 0 ;
48276 PyObject * obj0 = 0 ;
48277 PyObject * obj1 = 0 ;
48278 int64_t result;
48279
48280 if (!PyArg_UnpackTuple(args, "Assignment_DurationMin", 2, 2, &obj0, &obj1)) SWIG_fail;
48282 if (!SWIG_IsOK(res1)) {
48283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_DurationMin" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48284 }
48285 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48286 {
48287 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48288 }
48289 {
48290 try {
48291 result = (int64_t)((operations_research::Assignment const *)arg1)->DurationMin((operations_research::IntervalVar const *)arg2);
48292 }
48293 catch (Swig::DirectorException &e) {
48294 SWIG_fail;
48295 }
48296 }
48297 resultobj = SWIG_From_long(static_cast< long >(result));
48298 return resultobj;
48299fail:
48300 return NULL;
48301}
48302
48303
48304SWIGINTERN PyObject *_wrap_Assignment_DurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48305 PyObject *resultobj = 0;
48308 void *argp1 = 0 ;
48309 int res1 = 0 ;
48310 PyObject * obj0 = 0 ;
48311 PyObject * obj1 = 0 ;
48312 int64_t result;
48313
48314 if (!PyArg_UnpackTuple(args, "Assignment_DurationMax", 2, 2, &obj0, &obj1)) SWIG_fail;
48316 if (!SWIG_IsOK(res1)) {
48317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_DurationMax" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48318 }
48319 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48320 {
48321 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48322 }
48323 {
48324 try {
48325 result = (int64_t)((operations_research::Assignment const *)arg1)->DurationMax((operations_research::IntervalVar const *)arg2);
48326 }
48327 catch (Swig::DirectorException &e) {
48328 SWIG_fail;
48329 }
48330 }
48331 resultobj = SWIG_From_long(static_cast< long >(result));
48332 return resultobj;
48333fail:
48334 return NULL;
48335}
48336
48337
48338SWIGINTERN PyObject *_wrap_Assignment_DurationValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48339 PyObject *resultobj = 0;
48342 void *argp1 = 0 ;
48343 int res1 = 0 ;
48344 PyObject * obj0 = 0 ;
48345 PyObject * obj1 = 0 ;
48346 int64_t result;
48347
48348 if (!PyArg_UnpackTuple(args, "Assignment_DurationValue", 2, 2, &obj0, &obj1)) SWIG_fail;
48350 if (!SWIG_IsOK(res1)) {
48351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_DurationValue" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48352 }
48353 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48354 {
48355 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48356 }
48357 {
48358 try {
48359 result = (int64_t)((operations_research::Assignment const *)arg1)->DurationValue((operations_research::IntervalVar const *)arg2);
48360 }
48361 catch (Swig::DirectorException &e) {
48362 SWIG_fail;
48363 }
48364 }
48365 resultobj = SWIG_From_long(static_cast< long >(result));
48366 return resultobj;
48367fail:
48368 return NULL;
48369}
48370
48371
48372SWIGINTERN PyObject *_wrap_Assignment_EndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48373 PyObject *resultobj = 0;
48376 void *argp1 = 0 ;
48377 int res1 = 0 ;
48378 PyObject * obj0 = 0 ;
48379 PyObject * obj1 = 0 ;
48380 int64_t result;
48381
48382 if (!PyArg_UnpackTuple(args, "Assignment_EndMin", 2, 2, &obj0, &obj1)) SWIG_fail;
48384 if (!SWIG_IsOK(res1)) {
48385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_EndMin" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48386 }
48387 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48388 {
48389 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48390 }
48391 {
48392 try {
48393 result = (int64_t)((operations_research::Assignment const *)arg1)->EndMin((operations_research::IntervalVar const *)arg2);
48394 }
48395 catch (Swig::DirectorException &e) {
48396 SWIG_fail;
48397 }
48398 }
48399 resultobj = SWIG_From_long(static_cast< long >(result));
48400 return resultobj;
48401fail:
48402 return NULL;
48403}
48404
48405
48406SWIGINTERN PyObject *_wrap_Assignment_EndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48407 PyObject *resultobj = 0;
48410 void *argp1 = 0 ;
48411 int res1 = 0 ;
48412 PyObject * obj0 = 0 ;
48413 PyObject * obj1 = 0 ;
48414 int64_t result;
48415
48416 if (!PyArg_UnpackTuple(args, "Assignment_EndMax", 2, 2, &obj0, &obj1)) SWIG_fail;
48418 if (!SWIG_IsOK(res1)) {
48419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_EndMax" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48420 }
48421 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48422 {
48423 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48424 }
48425 {
48426 try {
48427 result = (int64_t)((operations_research::Assignment const *)arg1)->EndMax((operations_research::IntervalVar const *)arg2);
48428 }
48429 catch (Swig::DirectorException &e) {
48430 SWIG_fail;
48431 }
48432 }
48433 resultobj = SWIG_From_long(static_cast< long >(result));
48434 return resultobj;
48435fail:
48436 return NULL;
48437}
48438
48439
48440SWIGINTERN PyObject *_wrap_Assignment_EndValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48441 PyObject *resultobj = 0;
48444 void *argp1 = 0 ;
48445 int res1 = 0 ;
48446 PyObject * obj0 = 0 ;
48447 PyObject * obj1 = 0 ;
48448 int64_t result;
48449
48450 if (!PyArg_UnpackTuple(args, "Assignment_EndValue", 2, 2, &obj0, &obj1)) SWIG_fail;
48452 if (!SWIG_IsOK(res1)) {
48453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_EndValue" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48454 }
48455 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48456 {
48457 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48458 }
48459 {
48460 try {
48461 result = (int64_t)((operations_research::Assignment const *)arg1)->EndValue((operations_research::IntervalVar const *)arg2);
48462 }
48463 catch (Swig::DirectorException &e) {
48464 SWIG_fail;
48465 }
48466 }
48467 resultobj = SWIG_From_long(static_cast< long >(result));
48468 return resultobj;
48469fail:
48470 return NULL;
48471}
48472
48473
48474SWIGINTERN PyObject *_wrap_Assignment_PerformedMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48475 PyObject *resultobj = 0;
48478 void *argp1 = 0 ;
48479 int res1 = 0 ;
48480 PyObject * obj0 = 0 ;
48481 PyObject * obj1 = 0 ;
48482 int64_t result;
48483
48484 if (!PyArg_UnpackTuple(args, "Assignment_PerformedMin", 2, 2, &obj0, &obj1)) SWIG_fail;
48486 if (!SWIG_IsOK(res1)) {
48487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_PerformedMin" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48488 }
48489 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48490 {
48491 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48492 }
48493 {
48494 try {
48495 result = (int64_t)((operations_research::Assignment const *)arg1)->PerformedMin((operations_research::IntervalVar const *)arg2);
48496 }
48497 catch (Swig::DirectorException &e) {
48498 SWIG_fail;
48499 }
48500 }
48501 resultobj = SWIG_From_long(static_cast< long >(result));
48502 return resultobj;
48503fail:
48504 return NULL;
48505}
48506
48507
48508SWIGINTERN PyObject *_wrap_Assignment_PerformedMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48509 PyObject *resultobj = 0;
48512 void *argp1 = 0 ;
48513 int res1 = 0 ;
48514 PyObject * obj0 = 0 ;
48515 PyObject * obj1 = 0 ;
48516 int64_t result;
48517
48518 if (!PyArg_UnpackTuple(args, "Assignment_PerformedMax", 2, 2, &obj0, &obj1)) SWIG_fail;
48520 if (!SWIG_IsOK(res1)) {
48521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_PerformedMax" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48522 }
48523 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48524 {
48525 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48526 }
48527 {
48528 try {
48529 result = (int64_t)((operations_research::Assignment const *)arg1)->PerformedMax((operations_research::IntervalVar const *)arg2);
48530 }
48531 catch (Swig::DirectorException &e) {
48532 SWIG_fail;
48533 }
48534 }
48535 resultobj = SWIG_From_long(static_cast< long >(result));
48536 return resultobj;
48537fail:
48538 return NULL;
48539}
48540
48541
48542SWIGINTERN PyObject *_wrap_Assignment_PerformedValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48543 PyObject *resultobj = 0;
48546 void *argp1 = 0 ;
48547 int res1 = 0 ;
48548 PyObject * obj0 = 0 ;
48549 PyObject * obj1 = 0 ;
48550 int64_t result;
48551
48552 if (!PyArg_UnpackTuple(args, "Assignment_PerformedValue", 2, 2, &obj0, &obj1)) SWIG_fail;
48554 if (!SWIG_IsOK(res1)) {
48555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_PerformedValue" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48556 }
48557 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48558 {
48559 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48560 }
48561 {
48562 try {
48563 result = (int64_t)((operations_research::Assignment const *)arg1)->PerformedValue((operations_research::IntervalVar const *)arg2);
48564 }
48565 catch (Swig::DirectorException &e) {
48566 SWIG_fail;
48567 }
48568 }
48569 resultobj = SWIG_From_long(static_cast< long >(result));
48570 return resultobj;
48571fail:
48572 return NULL;
48573}
48574
48575
48576SWIGINTERN PyObject *_wrap_Assignment_SetStartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48577 PyObject *resultobj = 0;
48580 int64_t arg3 ;
48581 void *argp1 = 0 ;
48582 int res1 = 0 ;
48583 long val3 ;
48584 int ecode3 = 0 ;
48585 PyObject * obj0 = 0 ;
48586 PyObject * obj1 = 0 ;
48587 PyObject * obj2 = 0 ;
48588
48589 if (!PyArg_UnpackTuple(args, "Assignment_SetStartMin", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
48591 if (!SWIG_IsOK(res1)) {
48592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetStartMin" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48593 }
48594 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48595 {
48596 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48597 }
48598 ecode3 = SWIG_AsVal_long(obj2, &val3);
48599 if (!SWIG_IsOK(ecode3)) {
48600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetStartMin" "', argument " "3"" of type '" "int64_t""'");
48601 }
48602 arg3 = static_cast< int64_t >(val3);
48603 {
48604 try {
48605 (arg1)->SetStartMin((operations_research::IntervalVar const *)arg2,arg3);
48606 }
48607 catch (Swig::DirectorException &e) {
48608 SWIG_fail;
48609 }
48610 }
48611 resultobj = SWIG_Py_Void();
48612 return resultobj;
48613fail:
48614 return NULL;
48615}
48616
48617
48618SWIGINTERN PyObject *_wrap_Assignment_SetStartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48619 PyObject *resultobj = 0;
48622 int64_t arg3 ;
48623 void *argp1 = 0 ;
48624 int res1 = 0 ;
48625 long val3 ;
48626 int ecode3 = 0 ;
48627 PyObject * obj0 = 0 ;
48628 PyObject * obj1 = 0 ;
48629 PyObject * obj2 = 0 ;
48630
48631 if (!PyArg_UnpackTuple(args, "Assignment_SetStartMax", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
48633 if (!SWIG_IsOK(res1)) {
48634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetStartMax" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48635 }
48636 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48637 {
48638 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48639 }
48640 ecode3 = SWIG_AsVal_long(obj2, &val3);
48641 if (!SWIG_IsOK(ecode3)) {
48642 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetStartMax" "', argument " "3"" of type '" "int64_t""'");
48643 }
48644 arg3 = static_cast< int64_t >(val3);
48645 {
48646 try {
48647 (arg1)->SetStartMax((operations_research::IntervalVar const *)arg2,arg3);
48648 }
48649 catch (Swig::DirectorException &e) {
48650 SWIG_fail;
48651 }
48652 }
48653 resultobj = SWIG_Py_Void();
48654 return resultobj;
48655fail:
48656 return NULL;
48657}
48658
48659
48660SWIGINTERN PyObject *_wrap_Assignment_SetStartRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48661 PyObject *resultobj = 0;
48664 int64_t arg3 ;
48665 int64_t arg4 ;
48666 void *argp1 = 0 ;
48667 int res1 = 0 ;
48668 long val3 ;
48669 int ecode3 = 0 ;
48670 long val4 ;
48671 int ecode4 = 0 ;
48672 PyObject * obj0 = 0 ;
48673 PyObject * obj1 = 0 ;
48674 PyObject * obj2 = 0 ;
48675 PyObject * obj3 = 0 ;
48676
48677 if (!PyArg_UnpackTuple(args, "Assignment_SetStartRange", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
48679 if (!SWIG_IsOK(res1)) {
48680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetStartRange" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48681 }
48682 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48683 {
48684 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48685 }
48686 ecode3 = SWIG_AsVal_long(obj2, &val3);
48687 if (!SWIG_IsOK(ecode3)) {
48688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetStartRange" "', argument " "3"" of type '" "int64_t""'");
48689 }
48690 arg3 = static_cast< int64_t >(val3);
48691 ecode4 = SWIG_AsVal_long(obj3, &val4);
48692 if (!SWIG_IsOK(ecode4)) {
48693 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Assignment_SetStartRange" "', argument " "4"" of type '" "int64_t""'");
48694 }
48695 arg4 = static_cast< int64_t >(val4);
48696 {
48697 try {
48698 (arg1)->SetStartRange((operations_research::IntervalVar const *)arg2,arg3,arg4);
48699 }
48700 catch (Swig::DirectorException &e) {
48701 SWIG_fail;
48702 }
48703 }
48704 resultobj = SWIG_Py_Void();
48705 return resultobj;
48706fail:
48707 return NULL;
48708}
48709
48710
48711SWIGINTERN PyObject *_wrap_Assignment_SetStartValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48712 PyObject *resultobj = 0;
48715 int64_t arg3 ;
48716 void *argp1 = 0 ;
48717 int res1 = 0 ;
48718 long val3 ;
48719 int ecode3 = 0 ;
48720 PyObject * obj0 = 0 ;
48721 PyObject * obj1 = 0 ;
48722 PyObject * obj2 = 0 ;
48723
48724 if (!PyArg_UnpackTuple(args, "Assignment_SetStartValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
48726 if (!SWIG_IsOK(res1)) {
48727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetStartValue" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48728 }
48729 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48730 {
48731 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48732 }
48733 ecode3 = SWIG_AsVal_long(obj2, &val3);
48734 if (!SWIG_IsOK(ecode3)) {
48735 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetStartValue" "', argument " "3"" of type '" "int64_t""'");
48736 }
48737 arg3 = static_cast< int64_t >(val3);
48738 {
48739 try {
48740 (arg1)->SetStartValue((operations_research::IntervalVar const *)arg2,arg3);
48741 }
48742 catch (Swig::DirectorException &e) {
48743 SWIG_fail;
48744 }
48745 }
48746 resultobj = SWIG_Py_Void();
48747 return resultobj;
48748fail:
48749 return NULL;
48750}
48751
48752
48753SWIGINTERN PyObject *_wrap_Assignment_SetDurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48754 PyObject *resultobj = 0;
48757 int64_t arg3 ;
48758 void *argp1 = 0 ;
48759 int res1 = 0 ;
48760 long val3 ;
48761 int ecode3 = 0 ;
48762 PyObject * obj0 = 0 ;
48763 PyObject * obj1 = 0 ;
48764 PyObject * obj2 = 0 ;
48765
48766 if (!PyArg_UnpackTuple(args, "Assignment_SetDurationMin", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
48768 if (!SWIG_IsOK(res1)) {
48769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetDurationMin" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48770 }
48771 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48772 {
48773 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48774 }
48775 ecode3 = SWIG_AsVal_long(obj2, &val3);
48776 if (!SWIG_IsOK(ecode3)) {
48777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetDurationMin" "', argument " "3"" of type '" "int64_t""'");
48778 }
48779 arg3 = static_cast< int64_t >(val3);
48780 {
48781 try {
48782 (arg1)->SetDurationMin((operations_research::IntervalVar const *)arg2,arg3);
48783 }
48784 catch (Swig::DirectorException &e) {
48785 SWIG_fail;
48786 }
48787 }
48788 resultobj = SWIG_Py_Void();
48789 return resultobj;
48790fail:
48791 return NULL;
48792}
48793
48794
48795SWIGINTERN PyObject *_wrap_Assignment_SetDurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48796 PyObject *resultobj = 0;
48799 int64_t arg3 ;
48800 void *argp1 = 0 ;
48801 int res1 = 0 ;
48802 long val3 ;
48803 int ecode3 = 0 ;
48804 PyObject * obj0 = 0 ;
48805 PyObject * obj1 = 0 ;
48806 PyObject * obj2 = 0 ;
48807
48808 if (!PyArg_UnpackTuple(args, "Assignment_SetDurationMax", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
48810 if (!SWIG_IsOK(res1)) {
48811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetDurationMax" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48812 }
48813 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48814 {
48815 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48816 }
48817 ecode3 = SWIG_AsVal_long(obj2, &val3);
48818 if (!SWIG_IsOK(ecode3)) {
48819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetDurationMax" "', argument " "3"" of type '" "int64_t""'");
48820 }
48821 arg3 = static_cast< int64_t >(val3);
48822 {
48823 try {
48824 (arg1)->SetDurationMax((operations_research::IntervalVar const *)arg2,arg3);
48825 }
48826 catch (Swig::DirectorException &e) {
48827 SWIG_fail;
48828 }
48829 }
48830 resultobj = SWIG_Py_Void();
48831 return resultobj;
48832fail:
48833 return NULL;
48834}
48835
48836
48837SWIGINTERN PyObject *_wrap_Assignment_SetDurationRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48838 PyObject *resultobj = 0;
48841 int64_t arg3 ;
48842 int64_t arg4 ;
48843 void *argp1 = 0 ;
48844 int res1 = 0 ;
48845 long val3 ;
48846 int ecode3 = 0 ;
48847 long val4 ;
48848 int ecode4 = 0 ;
48849 PyObject * obj0 = 0 ;
48850 PyObject * obj1 = 0 ;
48851 PyObject * obj2 = 0 ;
48852 PyObject * obj3 = 0 ;
48853
48854 if (!PyArg_UnpackTuple(args, "Assignment_SetDurationRange", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
48856 if (!SWIG_IsOK(res1)) {
48857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetDurationRange" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48858 }
48859 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48860 {
48861 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48862 }
48863 ecode3 = SWIG_AsVal_long(obj2, &val3);
48864 if (!SWIG_IsOK(ecode3)) {
48865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetDurationRange" "', argument " "3"" of type '" "int64_t""'");
48866 }
48867 arg3 = static_cast< int64_t >(val3);
48868 ecode4 = SWIG_AsVal_long(obj3, &val4);
48869 if (!SWIG_IsOK(ecode4)) {
48870 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Assignment_SetDurationRange" "', argument " "4"" of type '" "int64_t""'");
48871 }
48872 arg4 = static_cast< int64_t >(val4);
48873 {
48874 try {
48875 (arg1)->SetDurationRange((operations_research::IntervalVar const *)arg2,arg3,arg4);
48876 }
48877 catch (Swig::DirectorException &e) {
48878 SWIG_fail;
48879 }
48880 }
48881 resultobj = SWIG_Py_Void();
48882 return resultobj;
48883fail:
48884 return NULL;
48885}
48886
48887
48888SWIGINTERN PyObject *_wrap_Assignment_SetDurationValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48889 PyObject *resultobj = 0;
48892 int64_t arg3 ;
48893 void *argp1 = 0 ;
48894 int res1 = 0 ;
48895 long val3 ;
48896 int ecode3 = 0 ;
48897 PyObject * obj0 = 0 ;
48898 PyObject * obj1 = 0 ;
48899 PyObject * obj2 = 0 ;
48900
48901 if (!PyArg_UnpackTuple(args, "Assignment_SetDurationValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
48903 if (!SWIG_IsOK(res1)) {
48904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetDurationValue" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48905 }
48906 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48907 {
48908 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48909 }
48910 ecode3 = SWIG_AsVal_long(obj2, &val3);
48911 if (!SWIG_IsOK(ecode3)) {
48912 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetDurationValue" "', argument " "3"" of type '" "int64_t""'");
48913 }
48914 arg3 = static_cast< int64_t >(val3);
48915 {
48916 try {
48917 (arg1)->SetDurationValue((operations_research::IntervalVar const *)arg2,arg3);
48918 }
48919 catch (Swig::DirectorException &e) {
48920 SWIG_fail;
48921 }
48922 }
48923 resultobj = SWIG_Py_Void();
48924 return resultobj;
48925fail:
48926 return NULL;
48927}
48928
48929
48930SWIGINTERN PyObject *_wrap_Assignment_SetEndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48931 PyObject *resultobj = 0;
48934 int64_t arg3 ;
48935 void *argp1 = 0 ;
48936 int res1 = 0 ;
48937 long val3 ;
48938 int ecode3 = 0 ;
48939 PyObject * obj0 = 0 ;
48940 PyObject * obj1 = 0 ;
48941 PyObject * obj2 = 0 ;
48942
48943 if (!PyArg_UnpackTuple(args, "Assignment_SetEndMin", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
48945 if (!SWIG_IsOK(res1)) {
48946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetEndMin" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48947 }
48948 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48949 {
48950 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48951 }
48952 ecode3 = SWIG_AsVal_long(obj2, &val3);
48953 if (!SWIG_IsOK(ecode3)) {
48954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetEndMin" "', argument " "3"" of type '" "int64_t""'");
48955 }
48956 arg3 = static_cast< int64_t >(val3);
48957 {
48958 try {
48959 (arg1)->SetEndMin((operations_research::IntervalVar const *)arg2,arg3);
48960 }
48961 catch (Swig::DirectorException &e) {
48962 SWIG_fail;
48963 }
48964 }
48965 resultobj = SWIG_Py_Void();
48966 return resultobj;
48967fail:
48968 return NULL;
48969}
48970
48971
48972SWIGINTERN PyObject *_wrap_Assignment_SetEndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48973 PyObject *resultobj = 0;
48976 int64_t arg3 ;
48977 void *argp1 = 0 ;
48978 int res1 = 0 ;
48979 long val3 ;
48980 int ecode3 = 0 ;
48981 PyObject * obj0 = 0 ;
48982 PyObject * obj1 = 0 ;
48983 PyObject * obj2 = 0 ;
48984
48985 if (!PyArg_UnpackTuple(args, "Assignment_SetEndMax", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
48987 if (!SWIG_IsOK(res1)) {
48988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetEndMax" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48989 }
48990 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48991 {
48992 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
48993 }
48994 ecode3 = SWIG_AsVal_long(obj2, &val3);
48995 if (!SWIG_IsOK(ecode3)) {
48996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetEndMax" "', argument " "3"" of type '" "int64_t""'");
48997 }
48998 arg3 = static_cast< int64_t >(val3);
48999 {
49000 try {
49001 (arg1)->SetEndMax((operations_research::IntervalVar const *)arg2,arg3);
49002 }
49003 catch (Swig::DirectorException &e) {
49004 SWIG_fail;
49005 }
49006 }
49007 resultobj = SWIG_Py_Void();
49008 return resultobj;
49009fail:
49010 return NULL;
49011}
49012
49013
49014SWIGINTERN PyObject *_wrap_Assignment_SetEndRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49015 PyObject *resultobj = 0;
49018 int64_t arg3 ;
49019 int64_t arg4 ;
49020 void *argp1 = 0 ;
49021 int res1 = 0 ;
49022 long val3 ;
49023 int ecode3 = 0 ;
49024 long val4 ;
49025 int ecode4 = 0 ;
49026 PyObject * obj0 = 0 ;
49027 PyObject * obj1 = 0 ;
49028 PyObject * obj2 = 0 ;
49029 PyObject * obj3 = 0 ;
49030
49031 if (!PyArg_UnpackTuple(args, "Assignment_SetEndRange", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
49033 if (!SWIG_IsOK(res1)) {
49034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetEndRange" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49035 }
49036 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49037 {
49038 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49039 }
49040 ecode3 = SWIG_AsVal_long(obj2, &val3);
49041 if (!SWIG_IsOK(ecode3)) {
49042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetEndRange" "', argument " "3"" of type '" "int64_t""'");
49043 }
49044 arg3 = static_cast< int64_t >(val3);
49045 ecode4 = SWIG_AsVal_long(obj3, &val4);
49046 if (!SWIG_IsOK(ecode4)) {
49047 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Assignment_SetEndRange" "', argument " "4"" of type '" "int64_t""'");
49048 }
49049 arg4 = static_cast< int64_t >(val4);
49050 {
49051 try {
49052 (arg1)->SetEndRange((operations_research::IntervalVar const *)arg2,arg3,arg4);
49053 }
49054 catch (Swig::DirectorException &e) {
49055 SWIG_fail;
49056 }
49057 }
49058 resultobj = SWIG_Py_Void();
49059 return resultobj;
49060fail:
49061 return NULL;
49062}
49063
49064
49065SWIGINTERN PyObject *_wrap_Assignment_SetEndValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49066 PyObject *resultobj = 0;
49069 int64_t arg3 ;
49070 void *argp1 = 0 ;
49071 int res1 = 0 ;
49072 long val3 ;
49073 int ecode3 = 0 ;
49074 PyObject * obj0 = 0 ;
49075 PyObject * obj1 = 0 ;
49076 PyObject * obj2 = 0 ;
49077
49078 if (!PyArg_UnpackTuple(args, "Assignment_SetEndValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
49080 if (!SWIG_IsOK(res1)) {
49081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetEndValue" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49082 }
49083 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49084 {
49085 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49086 }
49087 ecode3 = SWIG_AsVal_long(obj2, &val3);
49088 if (!SWIG_IsOK(ecode3)) {
49089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetEndValue" "', argument " "3"" of type '" "int64_t""'");
49090 }
49091 arg3 = static_cast< int64_t >(val3);
49092 {
49093 try {
49094 (arg1)->SetEndValue((operations_research::IntervalVar const *)arg2,arg3);
49095 }
49096 catch (Swig::DirectorException &e) {
49097 SWIG_fail;
49098 }
49099 }
49100 resultobj = SWIG_Py_Void();
49101 return resultobj;
49102fail:
49103 return NULL;
49104}
49105
49106
49107SWIGINTERN PyObject *_wrap_Assignment_SetPerformedMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49108 PyObject *resultobj = 0;
49111 int64_t arg3 ;
49112 void *argp1 = 0 ;
49113 int res1 = 0 ;
49114 long val3 ;
49115 int ecode3 = 0 ;
49116 PyObject * obj0 = 0 ;
49117 PyObject * obj1 = 0 ;
49118 PyObject * obj2 = 0 ;
49119
49120 if (!PyArg_UnpackTuple(args, "Assignment_SetPerformedMin", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
49122 if (!SWIG_IsOK(res1)) {
49123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetPerformedMin" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49124 }
49125 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49126 {
49127 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49128 }
49129 ecode3 = SWIG_AsVal_long(obj2, &val3);
49130 if (!SWIG_IsOK(ecode3)) {
49131 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetPerformedMin" "', argument " "3"" of type '" "int64_t""'");
49132 }
49133 arg3 = static_cast< int64_t >(val3);
49134 {
49135 try {
49136 (arg1)->SetPerformedMin((operations_research::IntervalVar const *)arg2,arg3);
49137 }
49138 catch (Swig::DirectorException &e) {
49139 SWIG_fail;
49140 }
49141 }
49142 resultobj = SWIG_Py_Void();
49143 return resultobj;
49144fail:
49145 return NULL;
49146}
49147
49148
49149SWIGINTERN PyObject *_wrap_Assignment_SetPerformedMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49150 PyObject *resultobj = 0;
49153 int64_t arg3 ;
49154 void *argp1 = 0 ;
49155 int res1 = 0 ;
49156 long val3 ;
49157 int ecode3 = 0 ;
49158 PyObject * obj0 = 0 ;
49159 PyObject * obj1 = 0 ;
49160 PyObject * obj2 = 0 ;
49161
49162 if (!PyArg_UnpackTuple(args, "Assignment_SetPerformedMax", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
49164 if (!SWIG_IsOK(res1)) {
49165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetPerformedMax" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49166 }
49167 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49168 {
49169 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49170 }
49171 ecode3 = SWIG_AsVal_long(obj2, &val3);
49172 if (!SWIG_IsOK(ecode3)) {
49173 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetPerformedMax" "', argument " "3"" of type '" "int64_t""'");
49174 }
49175 arg3 = static_cast< int64_t >(val3);
49176 {
49177 try {
49178 (arg1)->SetPerformedMax((operations_research::IntervalVar const *)arg2,arg3);
49179 }
49180 catch (Swig::DirectorException &e) {
49181 SWIG_fail;
49182 }
49183 }
49184 resultobj = SWIG_Py_Void();
49185 return resultobj;
49186fail:
49187 return NULL;
49188}
49189
49190
49191SWIGINTERN PyObject *_wrap_Assignment_SetPerformedRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49192 PyObject *resultobj = 0;
49195 int64_t arg3 ;
49196 int64_t arg4 ;
49197 void *argp1 = 0 ;
49198 int res1 = 0 ;
49199 long val3 ;
49200 int ecode3 = 0 ;
49201 long val4 ;
49202 int ecode4 = 0 ;
49203 PyObject * obj0 = 0 ;
49204 PyObject * obj1 = 0 ;
49205 PyObject * obj2 = 0 ;
49206 PyObject * obj3 = 0 ;
49207
49208 if (!PyArg_UnpackTuple(args, "Assignment_SetPerformedRange", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
49210 if (!SWIG_IsOK(res1)) {
49211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetPerformedRange" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49212 }
49213 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49214 {
49215 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49216 }
49217 ecode3 = SWIG_AsVal_long(obj2, &val3);
49218 if (!SWIG_IsOK(ecode3)) {
49219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetPerformedRange" "', argument " "3"" of type '" "int64_t""'");
49220 }
49221 arg3 = static_cast< int64_t >(val3);
49222 ecode4 = SWIG_AsVal_long(obj3, &val4);
49223 if (!SWIG_IsOK(ecode4)) {
49224 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Assignment_SetPerformedRange" "', argument " "4"" of type '" "int64_t""'");
49225 }
49226 arg4 = static_cast< int64_t >(val4);
49227 {
49228 try {
49229 (arg1)->SetPerformedRange((operations_research::IntervalVar const *)arg2,arg3,arg4);
49230 }
49231 catch (Swig::DirectorException &e) {
49232 SWIG_fail;
49233 }
49234 }
49235 resultobj = SWIG_Py_Void();
49236 return resultobj;
49237fail:
49238 return NULL;
49239}
49240
49241
49242SWIGINTERN PyObject *_wrap_Assignment_SetPerformedValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49243 PyObject *resultobj = 0;
49246 int64_t arg3 ;
49247 void *argp1 = 0 ;
49248 int res1 = 0 ;
49249 long val3 ;
49250 int ecode3 = 0 ;
49251 PyObject * obj0 = 0 ;
49252 PyObject * obj1 = 0 ;
49253 PyObject * obj2 = 0 ;
49254
49255 if (!PyArg_UnpackTuple(args, "Assignment_SetPerformedValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
49257 if (!SWIG_IsOK(res1)) {
49258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetPerformedValue" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49259 }
49260 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49261 {
49262 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49263 }
49264 ecode3 = SWIG_AsVal_long(obj2, &val3);
49265 if (!SWIG_IsOK(ecode3)) {
49266 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Assignment_SetPerformedValue" "', argument " "3"" of type '" "int64_t""'");
49267 }
49268 arg3 = static_cast< int64_t >(val3);
49269 {
49270 try {
49271 (arg1)->SetPerformedValue((operations_research::IntervalVar const *)arg2,arg3);
49272 }
49273 catch (Swig::DirectorException &e) {
49274 SWIG_fail;
49275 }
49276 }
49277 resultobj = SWIG_Py_Void();
49278 return resultobj;
49279fail:
49280 return NULL;
49281}
49282
49283
49284SWIGINTERN PyObject *_wrap_Assignment_Add__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49285 PyObject *resultobj = 0;
49288 void *argp1 = 0 ;
49289 int res1 = 0 ;
49290 PyObject * obj0 = 0 ;
49291 PyObject * obj1 = 0 ;
49293
49294 if (!PyArg_UnpackTuple(args, "Assignment_Add", 2, 2, &obj0, &obj1)) SWIG_fail;
49296 if (!SWIG_IsOK(res1)) {
49297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Add" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49298 }
49299 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49300 {
49301 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49302 }
49303 {
49304 try {
49305 result = (operations_research::SequenceVarElement *)(arg1)->Add(arg2);
49306 }
49307 catch (Swig::DirectorException &e) {
49308 SWIG_fail;
49309 }
49310 }
49312 return resultobj;
49313fail:
49314 return NULL;
49315}
49316
49317
49318SWIGINTERN PyObject *_wrap_Assignment_Add__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49319 PyObject *resultobj = 0;
49321 std::vector< operations_research::SequenceVar * > *arg2 = 0 ;
49322 void *argp1 = 0 ;
49323 int res1 = 0 ;
49324 std::vector< operations_research::SequenceVar * > temp2 ;
49325 PyObject * obj0 = 0 ;
49326 PyObject * obj1 = 0 ;
49327
49328 if (!PyArg_UnpackTuple(args, "Assignment_Add", 2, 2, &obj0, &obj1)) SWIG_fail;
49330 if (!SWIG_IsOK(res1)) {
49331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Add" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49332 }
49333 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49334 {
49335 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::SequenceVar*>)) {
49336 if (!PyErr_Occurred())
49337 SWIG_Error(SWIG_TypeError, "sequence(operations_research::SequenceVar*) expected");
49338 return NULL;
49339 }
49340 arg2 = &temp2;
49341 }
49342 {
49343 try {
49344 (arg1)->Add((std::vector< operations_research::SequenceVar * > const &)*arg2);
49345 }
49346 catch (Swig::DirectorException &e) {
49347 SWIG_fail;
49348 }
49349 }
49350 resultobj = SWIG_Py_Void();
49351 return resultobj;
49352fail:
49353 return NULL;
49354}
49355
49356
49357SWIGINTERN PyObject *_wrap_Assignment_Add(PyObject *self, PyObject *args) {
49358 Py_ssize_t argc;
49359 PyObject *argv[3] = {
49360 0
49361 };
49362 Py_ssize_t ii;
49363
49364 if (!PyTuple_Check(args)) SWIG_fail;
49365 argc = PyObject_Length(args);
49366 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
49367 argv[ii] = PyTuple_GET_ITEM(args,ii);
49368 }
49369 if (argc == 2) {
49370 int _v;
49371 void *vptr = 0;
49372 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
49373 _v = SWIG_CheckState(res);
49374 if (_v) {
49375 {
49376 _v = CanConvertToIntVar(argv[1]);
49377 if (_v == 0) PyErr_Clear();
49378 }
49379 if (_v) {
49380 return _wrap_Assignment_Add__SWIG_0(self, args);
49381 }
49382 }
49383 }
49384 if (argc == 2) {
49385 int _v;
49386 void *vptr = 0;
49387 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
49388 _v = SWIG_CheckState(res);
49389 if (_v) {
49390 {
49391 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
49392 _v = 0;
49393 } else {
49394 const bool is_tuple = PyTuple_Check(argv[1]);
49395 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
49396 size_t i = 0;
49397 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
49398 :PyList_GetItem(argv[1], i))) {
49399 ++i;
49400 }
49401 _v = i == size;
49402 }
49403 }
49404 if (_v) {
49405 return _wrap_Assignment_Add__SWIG_1(self, args);
49406 }
49407 }
49408 }
49409 if (argc == 2) {
49410 int _v;
49411 void *vptr = 0;
49412 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
49413 _v = SWIG_CheckState(res);
49414 if (_v) {
49415 {
49416 _v = CanConvertToIntervalVar(argv[1]);
49417 if (_v == 0) PyErr_Clear();
49418 }
49419 if (_v) {
49420 return _wrap_Assignment_Add__SWIG_2(self, args);
49421 }
49422 }
49423 }
49424 if (argc == 2) {
49425 int _v;
49426 void *vptr = 0;
49427 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
49428 _v = SWIG_CheckState(res);
49429 if (_v) {
49430 {
49431 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
49432 _v = 0;
49433 } else {
49434 const bool is_tuple = PyTuple_Check(argv[1]);
49435 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
49436 size_t i = 0;
49437 while (i < size && CanConvertToIntervalVar(is_tuple ? PyTuple_GetItem(argv[1], i)
49438 :PyList_GetItem(argv[1], i))) {
49439 ++i;
49440 }
49441 _v = i == size;
49442 }
49443 }
49444 if (_v) {
49445 return _wrap_Assignment_Add__SWIG_3(self, args);
49446 }
49447 }
49448 }
49449 if (argc == 2) {
49450 int _v;
49451 void *vptr = 0;
49452 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
49453 _v = SWIG_CheckState(res);
49454 if (_v) {
49455 {
49456 _v = CanConvertToSequenceVar(argv[1]);
49457 if (_v == 0) PyErr_Clear();
49458 }
49459 if (_v) {
49460 return _wrap_Assignment_Add__SWIG_4(self, args);
49461 }
49462 }
49463 }
49464 if (argc == 2) {
49465 int _v;
49466 void *vptr = 0;
49467 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
49468 _v = SWIG_CheckState(res);
49469 if (_v) {
49470 {
49471 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
49472 _v = 0;
49473 } else {
49474 const bool is_tuple = PyTuple_Check(argv[1]);
49475 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
49476 size_t i = 0;
49477 while (i < size && CanConvertToSequenceVar(is_tuple ? PyTuple_GetItem(argv[1], i)
49478 :PyList_GetItem(argv[1], i))) {
49479 ++i;
49480 }
49481 _v = i == size;
49482 }
49483 }
49484 if (_v) {
49485 return _wrap_Assignment_Add__SWIG_5(self, args);
49486 }
49487 }
49488 }
49489
49490fail:
49491 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Assignment_Add'.\n"
49492 " Possible C/C++ prototypes are:\n"
49493 " operations_research::Assignment::Add(operations_research::IntVar *const)\n"
49494 " operations_research::Assignment::Add(std::vector< operations_research::IntVar * > const &)\n"
49495 " operations_research::Assignment::Add(operations_research::IntervalVar *const)\n"
49496 " operations_research::Assignment::Add(std::vector< operations_research::IntervalVar * > const &)\n"
49497 " operations_research::Assignment::Add(operations_research::SequenceVar *const)\n"
49498 " operations_research::Assignment::Add(std::vector< operations_research::SequenceVar * > const &)\n");
49499 return 0;
49500}
49501
49502
49503SWIGINTERN PyObject *_wrap_Assignment_ForwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49504 PyObject *resultobj = 0;
49507 void *argp1 = 0 ;
49508 int res1 = 0 ;
49509 PyObject * obj0 = 0 ;
49510 PyObject * obj1 = 0 ;
49511 std::vector< int > *result = 0 ;
49512
49513 if (!PyArg_UnpackTuple(args, "Assignment_ForwardSequence", 2, 2, &obj0, &obj1)) SWIG_fail;
49515 if (!SWIG_IsOK(res1)) {
49516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_ForwardSequence" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
49517 }
49518 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49519 {
49520 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49521 }
49522 {
49523 try {
49524 result = (std::vector< int > *) &((operations_research::Assignment const *)arg1)->ForwardSequence((operations_research::SequenceVar const *)arg2);
49525 }
49526 catch (Swig::DirectorException &e) {
49527 SWIG_fail;
49528 }
49529 }
49530 {
49531 resultobj = vector_output_helper(result, &PyInt_FromLong);
49532 }
49533 return resultobj;
49534fail:
49535 return NULL;
49536}
49537
49538
49539SWIGINTERN PyObject *_wrap_Assignment_BackwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49540 PyObject *resultobj = 0;
49543 void *argp1 = 0 ;
49544 int res1 = 0 ;
49545 PyObject * obj0 = 0 ;
49546 PyObject * obj1 = 0 ;
49547 std::vector< int > *result = 0 ;
49548
49549 if (!PyArg_UnpackTuple(args, "Assignment_BackwardSequence", 2, 2, &obj0, &obj1)) SWIG_fail;
49551 if (!SWIG_IsOK(res1)) {
49552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_BackwardSequence" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
49553 }
49554 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49555 {
49556 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49557 }
49558 {
49559 try {
49560 result = (std::vector< int > *) &((operations_research::Assignment const *)arg1)->BackwardSequence((operations_research::SequenceVar const *)arg2);
49561 }
49562 catch (Swig::DirectorException &e) {
49563 SWIG_fail;
49564 }
49565 }
49566 {
49567 resultobj = vector_output_helper(result, &PyInt_FromLong);
49568 }
49569 return resultobj;
49570fail:
49571 return NULL;
49572}
49573
49574
49575SWIGINTERN PyObject *_wrap_Assignment_Unperformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49576 PyObject *resultobj = 0;
49579 void *argp1 = 0 ;
49580 int res1 = 0 ;
49581 PyObject * obj0 = 0 ;
49582 PyObject * obj1 = 0 ;
49583 std::vector< int > *result = 0 ;
49584
49585 if (!PyArg_UnpackTuple(args, "Assignment_Unperformed", 2, 2, &obj0, &obj1)) SWIG_fail;
49587 if (!SWIG_IsOK(res1)) {
49588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Unperformed" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
49589 }
49590 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49591 {
49592 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49593 }
49594 {
49595 try {
49596 result = (std::vector< int > *) &((operations_research::Assignment const *)arg1)->Unperformed((operations_research::SequenceVar const *)arg2);
49597 }
49598 catch (Swig::DirectorException &e) {
49599 SWIG_fail;
49600 }
49601 }
49602 {
49603 resultobj = vector_output_helper(result, &PyInt_FromLong);
49604 }
49605 return resultobj;
49606fail:
49607 return NULL;
49608}
49609
49610
49611SWIGINTERN PyObject *_wrap_Assignment_SetSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49612 PyObject *resultobj = 0;
49615 std::vector< int > *arg3 = 0 ;
49616 std::vector< int > *arg4 = 0 ;
49617 std::vector< int > *arg5 = 0 ;
49618 void *argp1 = 0 ;
49619 int res1 = 0 ;
49620 std::vector< int > temp3 ;
49621 std::vector< int > temp4 ;
49622 std::vector< int > temp5 ;
49623 PyObject * obj0 = 0 ;
49624 PyObject * obj1 = 0 ;
49625 PyObject * obj2 = 0 ;
49626 PyObject * obj3 = 0 ;
49627 PyObject * obj4 = 0 ;
49628
49629 if (!PyArg_UnpackTuple(args, "Assignment_SetSequence", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
49631 if (!SWIG_IsOK(res1)) {
49632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetSequence" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49633 }
49634 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49635 {
49636 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49637 }
49638 {
49639 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
49640 if (!PyErr_Occurred())
49641 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
49642 return NULL;
49643 }
49644 arg3 = &temp3;
49645 }
49646 {
49647 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
49648 if (!PyErr_Occurred())
49649 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
49650 return NULL;
49651 }
49652 arg4 = &temp4;
49653 }
49654 {
49655 if (!vector_input_helper(obj4, &temp5, PyObjAs<int>)) {
49656 if (!PyErr_Occurred())
49657 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
49658 return NULL;
49659 }
49660 arg5 = &temp5;
49661 }
49662 {
49663 try {
49664 (arg1)->SetSequence((operations_research::SequenceVar const *)arg2,(std::vector< int > const &)*arg3,(std::vector< int > const &)*arg4,(std::vector< int > const &)*arg5);
49665 }
49666 catch (Swig::DirectorException &e) {
49667 SWIG_fail;
49668 }
49669 }
49670 resultobj = SWIG_Py_Void();
49671 return resultobj;
49672fail:
49673 return NULL;
49674}
49675
49676
49677SWIGINTERN PyObject *_wrap_Assignment_SetForwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49678 PyObject *resultobj = 0;
49681 std::vector< int > *arg3 = 0 ;
49682 void *argp1 = 0 ;
49683 int res1 = 0 ;
49684 std::vector< int > temp3 ;
49685 PyObject * obj0 = 0 ;
49686 PyObject * obj1 = 0 ;
49687 PyObject * obj2 = 0 ;
49688
49689 if (!PyArg_UnpackTuple(args, "Assignment_SetForwardSequence", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
49691 if (!SWIG_IsOK(res1)) {
49692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetForwardSequence" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49693 }
49694 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49695 {
49696 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49697 }
49698 {
49699 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
49700 if (!PyErr_Occurred())
49701 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
49702 return NULL;
49703 }
49704 arg3 = &temp3;
49705 }
49706 {
49707 try {
49708 (arg1)->SetForwardSequence((operations_research::SequenceVar const *)arg2,(std::vector< int > const &)*arg3);
49709 }
49710 catch (Swig::DirectorException &e) {
49711 SWIG_fail;
49712 }
49713 }
49714 resultobj = SWIG_Py_Void();
49715 return resultobj;
49716fail:
49717 return NULL;
49718}
49719
49720
49721SWIGINTERN PyObject *_wrap_Assignment_SetBackwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49722 PyObject *resultobj = 0;
49725 std::vector< int > *arg3 = 0 ;
49726 void *argp1 = 0 ;
49727 int res1 = 0 ;
49728 std::vector< int > temp3 ;
49729 PyObject * obj0 = 0 ;
49730 PyObject * obj1 = 0 ;
49731 PyObject * obj2 = 0 ;
49732
49733 if (!PyArg_UnpackTuple(args, "Assignment_SetBackwardSequence", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
49735 if (!SWIG_IsOK(res1)) {
49736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetBackwardSequence" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49737 }
49738 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49739 {
49740 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49741 }
49742 {
49743 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
49744 if (!PyErr_Occurred())
49745 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
49746 return NULL;
49747 }
49748 arg3 = &temp3;
49749 }
49750 {
49751 try {
49752 (arg1)->SetBackwardSequence((operations_research::SequenceVar const *)arg2,(std::vector< int > const &)*arg3);
49753 }
49754 catch (Swig::DirectorException &e) {
49755 SWIG_fail;
49756 }
49757 }
49758 resultobj = SWIG_Py_Void();
49759 return resultobj;
49760fail:
49761 return NULL;
49762}
49763
49764
49765SWIGINTERN PyObject *_wrap_Assignment_SetUnperformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49766 PyObject *resultobj = 0;
49769 std::vector< int > *arg3 = 0 ;
49770 void *argp1 = 0 ;
49771 int res1 = 0 ;
49772 std::vector< int > temp3 ;
49773 PyObject * obj0 = 0 ;
49774 PyObject * obj1 = 0 ;
49775 PyObject * obj2 = 0 ;
49776
49777 if (!PyArg_UnpackTuple(args, "Assignment_SetUnperformed", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
49779 if (!SWIG_IsOK(res1)) {
49780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SetUnperformed" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49781 }
49782 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49783 {
49784 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49785 }
49786 {
49787 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
49788 if (!PyErr_Occurred())
49789 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
49790 return NULL;
49791 }
49792 arg3 = &temp3;
49793 }
49794 {
49795 try {
49796 (arg1)->SetUnperformed((operations_research::SequenceVar const *)arg2,(std::vector< int > const &)*arg3);
49797 }
49798 catch (Swig::DirectorException &e) {
49799 SWIG_fail;
49800 }
49801 }
49802 resultobj = SWIG_Py_Void();
49803 return resultobj;
49804fail:
49805 return NULL;
49806}
49807
49808
49809SWIGINTERN PyObject *_wrap_Assignment_Activate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49810 PyObject *resultobj = 0;
49813 void *argp1 = 0 ;
49814 int res1 = 0 ;
49815 PyObject * obj0 = 0 ;
49816 PyObject * obj1 = 0 ;
49817
49818 if (!PyArg_UnpackTuple(args, "Assignment_Activate", 2, 2, &obj0, &obj1)) SWIG_fail;
49820 if (!SWIG_IsOK(res1)) {
49821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Activate" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49822 }
49823 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49824 {
49825 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49826 }
49827 {
49828 try {
49829 (arg1)->Activate((operations_research::IntVar const *)arg2);
49830 }
49831 catch (Swig::DirectorException &e) {
49832 SWIG_fail;
49833 }
49834 }
49835 resultobj = SWIG_Py_Void();
49836 return resultobj;
49837fail:
49838 return NULL;
49839}
49840
49841
49842SWIGINTERN PyObject *_wrap_Assignment_Deactivate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49843 PyObject *resultobj = 0;
49846 void *argp1 = 0 ;
49847 int res1 = 0 ;
49848 PyObject * obj0 = 0 ;
49849 PyObject * obj1 = 0 ;
49850
49851 if (!PyArg_UnpackTuple(args, "Assignment_Deactivate", 2, 2, &obj0, &obj1)) SWIG_fail;
49853 if (!SWIG_IsOK(res1)) {
49854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Deactivate" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49855 }
49856 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49857 {
49858 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49859 }
49860 {
49861 try {
49862 (arg1)->Deactivate((operations_research::IntVar const *)arg2);
49863 }
49864 catch (Swig::DirectorException &e) {
49865 SWIG_fail;
49866 }
49867 }
49868 resultobj = SWIG_Py_Void();
49869 return resultobj;
49870fail:
49871 return NULL;
49872}
49873
49874
49875SWIGINTERN PyObject *_wrap_Assignment_Activated__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49876 PyObject *resultobj = 0;
49879 void *argp1 = 0 ;
49880 int res1 = 0 ;
49881 PyObject * obj0 = 0 ;
49882 PyObject * obj1 = 0 ;
49883 bool result;
49884
49885 if (!PyArg_UnpackTuple(args, "Assignment_Activated", 2, 2, &obj0, &obj1)) SWIG_fail;
49887 if (!SWIG_IsOK(res1)) {
49888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Activated" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
49889 }
49890 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49891 {
49892 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49893 }
49894 {
49895 try {
49896 result = (bool)((operations_research::Assignment const *)arg1)->Activated((operations_research::IntVar const *)arg2);
49897 }
49898 catch (Swig::DirectorException &e) {
49899 SWIG_fail;
49900 }
49901 }
49902 resultobj = SWIG_From_bool(static_cast< bool >(result));
49903 return resultobj;
49904fail:
49905 return NULL;
49906}
49907
49908
49909SWIGINTERN PyObject *_wrap_Assignment_Activate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49910 PyObject *resultobj = 0;
49913 void *argp1 = 0 ;
49914 int res1 = 0 ;
49915 PyObject * obj0 = 0 ;
49916 PyObject * obj1 = 0 ;
49917
49918 if (!PyArg_UnpackTuple(args, "Assignment_Activate", 2, 2, &obj0, &obj1)) SWIG_fail;
49920 if (!SWIG_IsOK(res1)) {
49921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Activate" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49922 }
49923 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49924 {
49925 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49926 }
49927 {
49928 try {
49929 (arg1)->Activate((operations_research::IntervalVar const *)arg2);
49930 }
49931 catch (Swig::DirectorException &e) {
49932 SWIG_fail;
49933 }
49934 }
49935 resultobj = SWIG_Py_Void();
49936 return resultobj;
49937fail:
49938 return NULL;
49939}
49940
49941
49942SWIGINTERN PyObject *_wrap_Assignment_Deactivate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49943 PyObject *resultobj = 0;
49946 void *argp1 = 0 ;
49947 int res1 = 0 ;
49948 PyObject * obj0 = 0 ;
49949 PyObject * obj1 = 0 ;
49950
49951 if (!PyArg_UnpackTuple(args, "Assignment_Deactivate", 2, 2, &obj0, &obj1)) SWIG_fail;
49953 if (!SWIG_IsOK(res1)) {
49954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Deactivate" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49955 }
49956 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49957 {
49958 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49959 }
49960 {
49961 try {
49962 (arg1)->Deactivate((operations_research::IntervalVar const *)arg2);
49963 }
49964 catch (Swig::DirectorException &e) {
49965 SWIG_fail;
49966 }
49967 }
49968 resultobj = SWIG_Py_Void();
49969 return resultobj;
49970fail:
49971 return NULL;
49972}
49973
49974
49975SWIGINTERN PyObject *_wrap_Assignment_Activated__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49976 PyObject *resultobj = 0;
49979 void *argp1 = 0 ;
49980 int res1 = 0 ;
49981 PyObject * obj0 = 0 ;
49982 PyObject * obj1 = 0 ;
49983 bool result;
49984
49985 if (!PyArg_UnpackTuple(args, "Assignment_Activated", 2, 2, &obj0, &obj1)) SWIG_fail;
49987 if (!SWIG_IsOK(res1)) {
49988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Activated" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
49989 }
49990 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49991 {
49992 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
49993 }
49994 {
49995 try {
49996 result = (bool)((operations_research::Assignment const *)arg1)->Activated((operations_research::IntervalVar const *)arg2);
49997 }
49998 catch (Swig::DirectorException &e) {
49999 SWIG_fail;
50000 }
50001 }
50002 resultobj = SWIG_From_bool(static_cast< bool >(result));
50003 return resultobj;
50004fail:
50005 return NULL;
50006}
50007
50008
50009SWIGINTERN PyObject *_wrap_Assignment_Activate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50010 PyObject *resultobj = 0;
50013 void *argp1 = 0 ;
50014 int res1 = 0 ;
50015 PyObject * obj0 = 0 ;
50016 PyObject * obj1 = 0 ;
50017
50018 if (!PyArg_UnpackTuple(args, "Assignment_Activate", 2, 2, &obj0, &obj1)) SWIG_fail;
50020 if (!SWIG_IsOK(res1)) {
50021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Activate" "', argument " "1"" of type '" "operations_research::Assignment *""'");
50022 }
50023 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50024 {
50025 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
50026 }
50027 {
50028 try {
50029 (arg1)->Activate((operations_research::SequenceVar const *)arg2);
50030 }
50031 catch (Swig::DirectorException &e) {
50032 SWIG_fail;
50033 }
50034 }
50035 resultobj = SWIG_Py_Void();
50036 return resultobj;
50037fail:
50038 return NULL;
50039}
50040
50041
50042SWIGINTERN PyObject *_wrap_Assignment_Activate(PyObject *self, PyObject *args) {
50043 Py_ssize_t argc;
50044 PyObject *argv[3] = {
50045 0
50046 };
50047 Py_ssize_t ii;
50048
50049 if (!PyTuple_Check(args)) SWIG_fail;
50050 argc = PyObject_Length(args);
50051 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
50052 argv[ii] = PyTuple_GET_ITEM(args,ii);
50053 }
50054 if (argc == 2) {
50055 int _v;
50056 void *vptr = 0;
50057 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
50058 _v = SWIG_CheckState(res);
50059 if (_v) {
50060 {
50061 _v = CanConvertToIntVar(argv[1]);
50062 if (_v == 0) PyErr_Clear();
50063 }
50064 if (_v) {
50065 return _wrap_Assignment_Activate__SWIG_0(self, args);
50066 }
50067 }
50068 }
50069 if (argc == 2) {
50070 int _v;
50071 void *vptr = 0;
50072 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
50073 _v = SWIG_CheckState(res);
50074 if (_v) {
50075 {
50076 _v = CanConvertToIntervalVar(argv[1]);
50077 if (_v == 0) PyErr_Clear();
50078 }
50079 if (_v) {
50080 return _wrap_Assignment_Activate__SWIG_1(self, args);
50081 }
50082 }
50083 }
50084 if (argc == 2) {
50085 int _v;
50086 void *vptr = 0;
50087 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
50088 _v = SWIG_CheckState(res);
50089 if (_v) {
50090 {
50091 _v = CanConvertToSequenceVar(argv[1]);
50092 if (_v == 0) PyErr_Clear();
50093 }
50094 if (_v) {
50095 return _wrap_Assignment_Activate__SWIG_2(self, args);
50096 }
50097 }
50098 }
50099
50100fail:
50101 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Assignment_Activate'.\n"
50102 " Possible C/C++ prototypes are:\n"
50103 " operations_research::Assignment::Activate(operations_research::IntVar const *const)\n"
50104 " operations_research::Assignment::Activate(operations_research::IntervalVar const *const)\n"
50105 " operations_research::Assignment::Activate(operations_research::SequenceVar const *const)\n");
50106 return 0;
50107}
50108
50109
50110SWIGINTERN PyObject *_wrap_Assignment_Deactivate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50111 PyObject *resultobj = 0;
50114 void *argp1 = 0 ;
50115 int res1 = 0 ;
50116 PyObject * obj0 = 0 ;
50117 PyObject * obj1 = 0 ;
50118
50119 if (!PyArg_UnpackTuple(args, "Assignment_Deactivate", 2, 2, &obj0, &obj1)) SWIG_fail;
50121 if (!SWIG_IsOK(res1)) {
50122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Deactivate" "', argument " "1"" of type '" "operations_research::Assignment *""'");
50123 }
50124 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50125 {
50126 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
50127 }
50128 {
50129 try {
50130 (arg1)->Deactivate((operations_research::SequenceVar const *)arg2);
50131 }
50132 catch (Swig::DirectorException &e) {
50133 SWIG_fail;
50134 }
50135 }
50136 resultobj = SWIG_Py_Void();
50137 return resultobj;
50138fail:
50139 return NULL;
50140}
50141
50142
50143SWIGINTERN PyObject *_wrap_Assignment_Deactivate(PyObject *self, PyObject *args) {
50144 Py_ssize_t argc;
50145 PyObject *argv[3] = {
50146 0
50147 };
50148 Py_ssize_t ii;
50149
50150 if (!PyTuple_Check(args)) SWIG_fail;
50151 argc = PyObject_Length(args);
50152 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
50153 argv[ii] = PyTuple_GET_ITEM(args,ii);
50154 }
50155 if (argc == 2) {
50156 int _v;
50157 void *vptr = 0;
50158 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
50159 _v = SWIG_CheckState(res);
50160 if (_v) {
50161 {
50162 _v = CanConvertToIntVar(argv[1]);
50163 if (_v == 0) PyErr_Clear();
50164 }
50165 if (_v) {
50166 return _wrap_Assignment_Deactivate__SWIG_0(self, args);
50167 }
50168 }
50169 }
50170 if (argc == 2) {
50171 int _v;
50172 void *vptr = 0;
50173 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
50174 _v = SWIG_CheckState(res);
50175 if (_v) {
50176 {
50177 _v = CanConvertToIntervalVar(argv[1]);
50178 if (_v == 0) PyErr_Clear();
50179 }
50180 if (_v) {
50181 return _wrap_Assignment_Deactivate__SWIG_1(self, args);
50182 }
50183 }
50184 }
50185 if (argc == 2) {
50186 int _v;
50187 void *vptr = 0;
50188 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
50189 _v = SWIG_CheckState(res);
50190 if (_v) {
50191 {
50192 _v = CanConvertToSequenceVar(argv[1]);
50193 if (_v == 0) PyErr_Clear();
50194 }
50195 if (_v) {
50196 return _wrap_Assignment_Deactivate__SWIG_2(self, args);
50197 }
50198 }
50199 }
50200
50201fail:
50202 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Assignment_Deactivate'.\n"
50203 " Possible C/C++ prototypes are:\n"
50204 " operations_research::Assignment::Deactivate(operations_research::IntVar const *const)\n"
50205 " operations_research::Assignment::Deactivate(operations_research::IntervalVar const *const)\n"
50206 " operations_research::Assignment::Deactivate(operations_research::SequenceVar const *const)\n");
50207 return 0;
50208}
50209
50210
50211SWIGINTERN PyObject *_wrap_Assignment_Activated__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50212 PyObject *resultobj = 0;
50215 void *argp1 = 0 ;
50216 int res1 = 0 ;
50217 PyObject * obj0 = 0 ;
50218 PyObject * obj1 = 0 ;
50219 bool result;
50220
50221 if (!PyArg_UnpackTuple(args, "Assignment_Activated", 2, 2, &obj0, &obj1)) SWIG_fail;
50223 if (!SWIG_IsOK(res1)) {
50224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_Activated" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50225 }
50226 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50227 {
50228 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
50229 }
50230 {
50231 try {
50232 result = (bool)((operations_research::Assignment const *)arg1)->Activated((operations_research::SequenceVar const *)arg2);
50233 }
50234 catch (Swig::DirectorException &e) {
50235 SWIG_fail;
50236 }
50237 }
50238 resultobj = SWIG_From_bool(static_cast< bool >(result));
50239 return resultobj;
50240fail:
50241 return NULL;
50242}
50243
50244
50245SWIGINTERN PyObject *_wrap_Assignment_Activated(PyObject *self, PyObject *args) {
50246 Py_ssize_t argc;
50247 PyObject *argv[3] = {
50248 0
50249 };
50250 Py_ssize_t ii;
50251
50252 if (!PyTuple_Check(args)) SWIG_fail;
50253 argc = PyObject_Length(args);
50254 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
50255 argv[ii] = PyTuple_GET_ITEM(args,ii);
50256 }
50257 if (argc == 2) {
50258 int _v;
50259 void *vptr = 0;
50260 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
50261 _v = SWIG_CheckState(res);
50262 if (_v) {
50263 {
50264 _v = CanConvertToIntVar(argv[1]);
50265 if (_v == 0) PyErr_Clear();
50266 }
50267 if (_v) {
50268 return _wrap_Assignment_Activated__SWIG_0(self, args);
50269 }
50270 }
50271 }
50272 if (argc == 2) {
50273 int _v;
50274 void *vptr = 0;
50275 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
50276 _v = SWIG_CheckState(res);
50277 if (_v) {
50278 {
50279 _v = CanConvertToIntervalVar(argv[1]);
50280 if (_v == 0) PyErr_Clear();
50281 }
50282 if (_v) {
50283 return _wrap_Assignment_Activated__SWIG_1(self, args);
50284 }
50285 }
50286 }
50287 if (argc == 2) {
50288 int _v;
50289 void *vptr = 0;
50290 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
50291 _v = SWIG_CheckState(res);
50292 if (_v) {
50293 {
50294 _v = CanConvertToSequenceVar(argv[1]);
50295 if (_v == 0) PyErr_Clear();
50296 }
50297 if (_v) {
50298 return _wrap_Assignment_Activated__SWIG_2(self, args);
50299 }
50300 }
50301 }
50302
50303fail:
50304 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Assignment_Activated'.\n"
50305 " Possible C/C++ prototypes are:\n"
50306 " operations_research::Assignment::Activated(operations_research::IntVar const *const) const\n"
50307 " operations_research::Assignment::Activated(operations_research::IntervalVar const *const) const\n"
50308 " operations_research::Assignment::Activated(operations_research::SequenceVar const *const) const\n");
50309 return 0;
50310}
50311
50312
50313SWIGINTERN PyObject *_wrap_Assignment_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50314 PyObject *resultobj = 0;
50316 void *argp1 = 0 ;
50317 int res1 = 0 ;
50318 PyObject * obj0 = 0 ;
50319 std::string result;
50320
50321 if (!PyArg_UnpackTuple(args, "Assignment_DebugString", 1, 1, &obj0)) SWIG_fail;
50323 if (!SWIG_IsOK(res1)) {
50324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_DebugString" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50325 }
50326 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50327 {
50328 try {
50329 result = ((operations_research::Assignment const *)arg1)->DebugString();
50330 }
50331 catch (Swig::DirectorException &e) {
50332 SWIG_fail;
50333 }
50334 }
50335 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
50336 return resultobj;
50337fail:
50338 return NULL;
50339}
50340
50341
50342SWIGINTERN PyObject *_wrap_Assignment_IntVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50343 PyObject *resultobj = 0;
50345 void *argp1 = 0 ;
50346 int res1 = 0 ;
50347 PyObject * obj0 = 0 ;
50349
50350 if (!PyArg_UnpackTuple(args, "Assignment_IntVarContainer", 1, 1, &obj0)) SWIG_fail;
50352 if (!SWIG_IsOK(res1)) {
50353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_IntVarContainer" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50354 }
50355 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50356 {
50357 try {
50358 result = (operations_research::Assignment::IntContainer *) &((operations_research::Assignment const *)arg1)->IntVarContainer();
50359 }
50360 catch (Swig::DirectorException &e) {
50361 SWIG_fail;
50362 }
50363 }
50365 return resultobj;
50366fail:
50367 return NULL;
50368}
50369
50370
50371SWIGINTERN PyObject *_wrap_Assignment_MutableIntVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50372 PyObject *resultobj = 0;
50374 void *argp1 = 0 ;
50375 int res1 = 0 ;
50376 PyObject * obj0 = 0 ;
50378
50379 if (!PyArg_UnpackTuple(args, "Assignment_MutableIntVarContainer", 1, 1, &obj0)) SWIG_fail;
50381 if (!SWIG_IsOK(res1)) {
50382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_MutableIntVarContainer" "', argument " "1"" of type '" "operations_research::Assignment *""'");
50383 }
50384 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50385 {
50386 try {
50387 result = (operations_research::Assignment::IntContainer *)(arg1)->MutableIntVarContainer();
50388 }
50389 catch (Swig::DirectorException &e) {
50390 SWIG_fail;
50391 }
50392 }
50394 return resultobj;
50395fail:
50396 return NULL;
50397}
50398
50399
50400SWIGINTERN PyObject *_wrap_Assignment_IntervalVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50401 PyObject *resultobj = 0;
50403 void *argp1 = 0 ;
50404 int res1 = 0 ;
50405 PyObject * obj0 = 0 ;
50407
50408 if (!PyArg_UnpackTuple(args, "Assignment_IntervalVarContainer", 1, 1, &obj0)) SWIG_fail;
50410 if (!SWIG_IsOK(res1)) {
50411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_IntervalVarContainer" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50412 }
50413 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50414 {
50415 try {
50416 result = (operations_research::Assignment::IntervalContainer *) &((operations_research::Assignment const *)arg1)->IntervalVarContainer();
50417 }
50418 catch (Swig::DirectorException &e) {
50419 SWIG_fail;
50420 }
50421 }
50423 return resultobj;
50424fail:
50425 return NULL;
50426}
50427
50428
50430 PyObject *resultobj = 0;
50432 void *argp1 = 0 ;
50433 int res1 = 0 ;
50434 PyObject * obj0 = 0 ;
50436
50437 if (!PyArg_UnpackTuple(args, "Assignment_MutableIntervalVarContainer", 1, 1, &obj0)) SWIG_fail;
50439 if (!SWIG_IsOK(res1)) {
50440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_MutableIntervalVarContainer" "', argument " "1"" of type '" "operations_research::Assignment *""'");
50441 }
50442 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50443 {
50444 try {
50445 result = (operations_research::Assignment::IntervalContainer *)(arg1)->MutableIntervalVarContainer();
50446 }
50447 catch (Swig::DirectorException &e) {
50448 SWIG_fail;
50449 }
50450 }
50452 return resultobj;
50453fail:
50454 return NULL;
50455}
50456
50457
50458SWIGINTERN PyObject *_wrap_Assignment_SequenceVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50459 PyObject *resultobj = 0;
50461 void *argp1 = 0 ;
50462 int res1 = 0 ;
50463 PyObject * obj0 = 0 ;
50465
50466 if (!PyArg_UnpackTuple(args, "Assignment_SequenceVarContainer", 1, 1, &obj0)) SWIG_fail;
50468 if (!SWIG_IsOK(res1)) {
50469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_SequenceVarContainer" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50470 }
50471 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50472 {
50473 try {
50474 result = (operations_research::Assignment::SequenceContainer *) &((operations_research::Assignment const *)arg1)->SequenceVarContainer();
50475 }
50476 catch (Swig::DirectorException &e) {
50477 SWIG_fail;
50478 }
50479 }
50481 return resultobj;
50482fail:
50483 return NULL;
50484}
50485
50486
50488 PyObject *resultobj = 0;
50490 void *argp1 = 0 ;
50491 int res1 = 0 ;
50492 PyObject * obj0 = 0 ;
50494
50495 if (!PyArg_UnpackTuple(args, "Assignment_MutableSequenceVarContainer", 1, 1, &obj0)) SWIG_fail;
50497 if (!SWIG_IsOK(res1)) {
50498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment_MutableSequenceVarContainer" "', argument " "1"" of type '" "operations_research::Assignment *""'");
50499 }
50500 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50501 {
50502 try {
50503 result = (operations_research::Assignment::SequenceContainer *)(arg1)->MutableSequenceVarContainer();
50504 }
50505 catch (Swig::DirectorException &e) {
50506 SWIG_fail;
50507 }
50508 }
50510 return resultobj;
50511fail:
50512 return NULL;
50513}
50514
50515
50516SWIGINTERN PyObject *_wrap_Assignment___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50517 PyObject *resultobj = 0;
50520 void *argp1 = 0 ;
50521 int res1 = 0 ;
50522 void *argp2 = 0 ;
50523 int res2 = 0 ;
50524 PyObject * obj0 = 0 ;
50525 PyObject * obj1 = 0 ;
50526 bool result;
50527
50528 if (!PyArg_UnpackTuple(args, "Assignment___eq__", 2, 2, &obj0, &obj1)) SWIG_fail;
50530 if (!SWIG_IsOK(res1)) {
50531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment___eq__" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50532 }
50533 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50535 if (!SWIG_IsOK(res2)) {
50536 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Assignment___eq__" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
50537 }
50538 if (!argp2) {
50539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Assignment___eq__" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
50540 }
50541 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
50542 {
50543 try {
50544 result = (bool)((operations_research::Assignment const *)arg1)->operator ==((operations_research::Assignment const &)*arg2);
50545 }
50546 catch (Swig::DirectorException &e) {
50547 SWIG_fail;
50548 }
50549 }
50550 resultobj = SWIG_From_bool(static_cast< bool >(result));
50551 return resultobj;
50552fail:
50553 PyErr_Clear();
50554 Py_INCREF(Py_NotImplemented);
50555 return Py_NotImplemented;
50556}
50557
50558
50559SWIGINTERN PyObject *_wrap_Assignment___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50560 PyObject *resultobj = 0;
50563 void *argp1 = 0 ;
50564 int res1 = 0 ;
50565 void *argp2 = 0 ;
50566 int res2 = 0 ;
50567 PyObject * obj0 = 0 ;
50568 PyObject * obj1 = 0 ;
50569 bool result;
50570
50571 if (!PyArg_UnpackTuple(args, "Assignment___ne__", 2, 2, &obj0, &obj1)) SWIG_fail;
50573 if (!SWIG_IsOK(res1)) {
50574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Assignment___ne__" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50575 }
50576 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50578 if (!SWIG_IsOK(res2)) {
50579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Assignment___ne__" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
50580 }
50581 if (!argp2) {
50582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Assignment___ne__" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
50583 }
50584 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
50585 {
50586 try {
50587 result = (bool)((operations_research::Assignment const *)arg1)->operator !=((operations_research::Assignment const &)*arg2);
50588 }
50589 catch (Swig::DirectorException &e) {
50590 SWIG_fail;
50591 }
50592 }
50593 resultobj = SWIG_From_bool(static_cast< bool >(result));
50594 return resultobj;
50595fail:
50596 PyErr_Clear();
50597 Py_INCREF(Py_NotImplemented);
50598 return Py_NotImplemented;
50599}
50600
50601
50602SWIGINTERN PyObject *Assignment_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50603 PyObject *obj;
50604 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
50606 return SWIG_Py_Void();
50607}
50608
50609SWIGINTERN PyObject *_wrap___lshift____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50610 PyObject *resultobj = 0;
50611 std::ostream *arg1 = 0 ;
50613 void *argp1 = 0 ;
50614 int res1 = 0 ;
50615 void *argp2 = 0 ;
50616 int res2 = 0 ;
50617 PyObject * obj0 = 0 ;
50618 PyObject * obj1 = 0 ;
50619 std::ostream *result = 0 ;
50620
50621 if (!PyArg_UnpackTuple(args, "__lshift__", 2, 2, &obj0, &obj1)) SWIG_fail;
50622 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__ostream, 0 );
50623 if (!SWIG_IsOK(res1)) {
50624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__lshift__" "', argument " "1"" of type '" "std::ostream &""'");
50625 }
50626 if (!argp1) {
50627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__lshift__" "', argument " "1"" of type '" "std::ostream &""'");
50628 }
50629 arg1 = reinterpret_cast< std::ostream * >(argp1);
50631 if (!SWIG_IsOK(res2)) {
50632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__lshift__" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
50633 }
50634 if (!argp2) {
50635 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__lshift__" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
50636 }
50637 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
50638 {
50639 try {
50640 result = (std::ostream *) &operations_research::operator <<(*arg1,(operations_research::Assignment const &)*arg2);
50641 }
50642 catch (Swig::DirectorException &e) {
50643 SWIG_fail;
50644 }
50645 }
50646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__ostream, 0 | 0 );
50647 return resultobj;
50648fail:
50649 PyErr_Clear();
50650 Py_INCREF(Py_NotImplemented);
50651 return Py_NotImplemented;
50652}
50653
50654
50655SWIGINTERN PyObject *_wrap___lshift__(PyObject *self, PyObject *args) {
50656 Py_ssize_t argc;
50657 PyObject *argv[3] = {
50658 0
50659 };
50660 Py_ssize_t ii;
50661
50662 if (!PyTuple_Check(args)) SWIG_fail;
50663 argc = PyObject_Length(args);
50664 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
50665 argv[ii] = PyTuple_GET_ITEM(args,ii);
50666 }
50667 if (argc == 2) {
50668 int _v;
50669 void *vptr = 0;
50671 _v = SWIG_CheckState(res);
50672 if (_v) {
50673 void *vptr = 0;
50674 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Solver, 0);
50675 _v = SWIG_CheckState(res);
50676 if (_v) {
50677 return _wrap___lshift____SWIG_0(self, args);
50678 }
50679 }
50680 }
50681 if (argc == 2) {
50682 int _v;
50683 void *vptr = 0;
50685 _v = SWIG_CheckState(res);
50686 if (_v) {
50688 _v = SWIG_CheckState(res);
50689 if (_v) {
50690 return _wrap___lshift____SWIG_2(self, args);
50691 }
50692 }
50693 }
50694 if (argc == 2) {
50695 int _v;
50696 void *vptr = 0;
50698 _v = SWIG_CheckState(res);
50699 if (_v) {
50700 void *vptr = 0;
50701 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__BaseObject, 0);
50702 _v = SWIG_CheckState(res);
50703 if (_v) {
50704 return _wrap___lshift____SWIG_1(self, args);
50705 }
50706 }
50707 }
50708
50709fail:
50710 Py_INCREF(Py_NotImplemented);
50711 return Py_NotImplemented;
50712}
50713
50714
50716 PyObject *resultobj = 0;
50718 std::vector< int64_t > *arg2 = 0 ;
50719 std::vector< int64_t > *arg3 = 0 ;
50720 void *argp1 = 0 ;
50721 int res1 = 0 ;
50722 std::vector< int64_t > temp2 ;
50723 std::vector< int64_t > temp3 ;
50724 PyObject * obj0 = 0 ;
50725 PyObject * obj1 = 0 ;
50726 PyObject * obj2 = 0 ;
50727
50728 if (!PyArg_UnpackTuple(args, "Pack_AddWeightedSumLessOrEqualConstantDimension", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
50729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Pack, 0 | 0 );
50730 if (!SWIG_IsOK(res1)) {
50731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pack_AddWeightedSumLessOrEqualConstantDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
50732 }
50733 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
50734 {
50735 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
50736 if (!PyErr_Occurred())
50737 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
50738 return NULL;
50739 }
50740 arg2 = &temp2;
50741 }
50742 {
50743 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
50744 if (!PyErr_Occurred())
50745 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
50746 return NULL;
50747 }
50748 arg3 = &temp3;
50749 }
50750 {
50751 try {
50752 (arg1)->AddWeightedSumLessOrEqualConstantDimension((std::vector< int64_t > const &)*arg2,(std::vector< int64_t > const &)*arg3);
50753 }
50754 catch (Swig::DirectorException &e) {
50755 SWIG_fail;
50756 }
50757 }
50758 resultobj = SWIG_Py_Void();
50759 return resultobj;
50760fail:
50761 return NULL;
50762}
50763
50764
50766 PyObject *resultobj = 0;
50769 std::vector< int64_t > *arg3 = 0 ;
50770 void *argp1 = 0 ;
50771 int res1 = 0 ;
50772 std::vector< int64_t > temp3 ;
50773 PyObject * obj0 = 0 ;
50774 PyObject * obj1 = 0 ;
50775 PyObject * obj2 = 0 ;
50776
50777 if (!PyArg_UnpackTuple(args, "Pack_AddWeightedSumLessOrEqualConstantDimension", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
50778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Pack, 0 | 0 );
50779 if (!SWIG_IsOK(res1)) {
50780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pack_AddWeightedSumLessOrEqualConstantDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
50781 }
50782 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
50783 {
50784 SharedPyPtr input(obj1);
50785 arg2 = [input](int64_t index) {
50786 return InvokePythonCallableReturning<int64_t>(input.get(), "(L)", index);
50787 };
50788 }
50789 {
50790 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
50791 if (!PyErr_Occurred())
50792 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
50793 return NULL;
50794 }
50795 arg3 = &temp3;
50796 }
50797 {
50798 try {
50799 (arg1)->AddWeightedSumLessOrEqualConstantDimension(arg2,(std::vector< int64_t > const &)*arg3);
50800 }
50801 catch (Swig::DirectorException &e) {
50802 SWIG_fail;
50803 }
50804 }
50805 resultobj = SWIG_Py_Void();
50806 return resultobj;
50807fail:
50808 return NULL;
50809}
50810
50811
50813 PyObject *resultobj = 0;
50816 std::vector< int64_t > *arg3 = 0 ;
50817 void *argp1 = 0 ;
50818 int res1 = 0 ;
50819 std::vector< int64_t > temp3 ;
50820 PyObject * obj0 = 0 ;
50821 PyObject * obj1 = 0 ;
50822 PyObject * obj2 = 0 ;
50823
50824 if (!PyArg_UnpackTuple(args, "Pack_AddWeightedSumLessOrEqualConstantDimension", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
50825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Pack, 0 | 0 );
50826 if (!SWIG_IsOK(res1)) {
50827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pack_AddWeightedSumLessOrEqualConstantDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
50828 }
50829 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
50830 {
50831 SharedPyPtr input(obj1);
50832 arg2 = [input](int64_t i, int64_t j) {
50833 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
50834 };
50835 }
50836 {
50837 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
50838 if (!PyErr_Occurred())
50839 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
50840 return NULL;
50841 }
50842 arg3 = &temp3;
50843 }
50844 {
50845 try {
50846 (arg1)->AddWeightedSumLessOrEqualConstantDimension(arg2,(std::vector< int64_t > const &)*arg3);
50847 }
50848 catch (Swig::DirectorException &e) {
50849 SWIG_fail;
50850 }
50851 }
50852 resultobj = SWIG_Py_Void();
50853 return resultobj;
50854fail:
50855 return NULL;
50856}
50857
50858
50860 Py_ssize_t argc;
50861 PyObject *argv[4] = {
50862 0
50863 };
50864 Py_ssize_t ii;
50865
50866 if (!PyTuple_Check(args)) SWIG_fail;
50867 argc = PyObject_Length(args);
50868 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
50869 argv[ii] = PyTuple_GET_ITEM(args,ii);
50870 }
50871 if (argc == 3) {
50872 int _v;
50873 void *vptr = 0;
50874 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Pack, 0);
50875 _v = SWIG_CheckState(res);
50876 if (_v) {
50877 {
50878 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
50879 _v = 0;
50880 } else {
50881 const bool is_tuple = PyTuple_Check(argv[1]);
50882 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
50883 size_t i = 0;
50884 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
50885 :PyList_GetItem(argv[1], i))) {
50886 ++i;
50887 }
50888 _v = i == size;
50889 }
50890 }
50891 if (_v) {
50892 {
50893 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
50894 _v = 0;
50895 } else {
50896 const bool is_tuple = PyTuple_Check(argv[2]);
50897 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
50898 size_t i = 0;
50899 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
50900 :PyList_GetItem(argv[2], i))) {
50901 ++i;
50902 }
50903 _v = i == size;
50904 }
50905 }
50906 if (_v) {
50908 }
50909 }
50910 }
50911 }
50912 if (argc == 3) {
50913 int _v;
50914 void *vptr = 0;
50915 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Pack, 0);
50916 _v = SWIG_CheckState(res);
50917 if (_v) {
50918 {
50919 _v = PyCallable_Check(argv[1]);
50920 }
50921 if (_v) {
50922 {
50923 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
50924 _v = 0;
50925 } else {
50926 const bool is_tuple = PyTuple_Check(argv[2]);
50927 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
50928 size_t i = 0;
50929 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
50930 :PyList_GetItem(argv[2], i))) {
50931 ++i;
50932 }
50933 _v = i == size;
50934 }
50935 }
50936 if (_v) {
50938 }
50939 }
50940 }
50941 }
50942 if (argc == 3) {
50943 int _v;
50944 void *vptr = 0;
50945 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Pack, 0);
50946 _v = SWIG_CheckState(res);
50947 if (_v) {
50948 {
50949 _v = PyCallable_Check(argv[1]);
50950 }
50951 if (_v) {
50952 {
50953 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
50954 _v = 0;
50955 } else {
50956 const bool is_tuple = PyTuple_Check(argv[2]);
50957 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
50958 size_t i = 0;
50959 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
50960 :PyList_GetItem(argv[2], i))) {
50961 ++i;
50962 }
50963 _v = i == size;
50964 }
50965 }
50966 if (_v) {
50968 }
50969 }
50970 }
50971 }
50972
50973fail:
50974 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Pack_AddWeightedSumLessOrEqualConstantDimension'.\n"
50975 " Possible C/C++ prototypes are:\n"
50976 " operations_research::Pack::AddWeightedSumLessOrEqualConstantDimension(std::vector< int64_t > const &,std::vector< int64_t > const &)\n"
50977 " operations_research::Pack::AddWeightedSumLessOrEqualConstantDimension(operations_research::Solver::IndexEvaluator1,std::vector< int64_t > const &)\n"
50978 " operations_research::Pack::AddWeightedSumLessOrEqualConstantDimension(operations_research::Solver::IndexEvaluator2,std::vector< int64_t > const &)\n");
50979 return 0;
50980}
50981
50982
50984 PyObject *resultobj = 0;
50986 std::vector< int64_t > *arg2 = 0 ;
50987 std::vector< operations_research::IntVar * > *arg3 = 0 ;
50988 void *argp1 = 0 ;
50989 int res1 = 0 ;
50990 std::vector< int64_t > temp2 ;
50991 std::vector< operations_research::IntVar * > temp3 ;
50992 PyObject * obj0 = 0 ;
50993 PyObject * obj1 = 0 ;
50994 PyObject * obj2 = 0 ;
50995
50996 if (!PyArg_UnpackTuple(args, "Pack_AddWeightedSumEqualVarDimension", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
50997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Pack, 0 | 0 );
50998 if (!SWIG_IsOK(res1)) {
50999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pack_AddWeightedSumEqualVarDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
51000 }
51001 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
51002 {
51003 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
51004 if (!PyErr_Occurred())
51005 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
51006 return NULL;
51007 }
51008 arg2 = &temp2;
51009 }
51010 {
51011 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
51012 if (!PyErr_Occurred())
51013 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
51014 return NULL;
51015 }
51016 arg3 = &temp3;
51017 }
51018 {
51019 try {
51020 (arg1)->AddWeightedSumEqualVarDimension((std::vector< int64_t > const &)*arg2,(std::vector< operations_research::IntVar * > const &)*arg3);
51021 }
51022 catch (Swig::DirectorException &e) {
51023 SWIG_fail;
51024 }
51025 }
51026 resultobj = SWIG_Py_Void();
51027 return resultobj;
51028fail:
51029 return NULL;
51030}
51031
51032
51034 PyObject *resultobj = 0;
51037 std::vector< operations_research::IntVar * > *arg3 = 0 ;
51038 void *argp1 = 0 ;
51039 int res1 = 0 ;
51040 std::vector< operations_research::IntVar * > temp3 ;
51041 PyObject * obj0 = 0 ;
51042 PyObject * obj1 = 0 ;
51043 PyObject * obj2 = 0 ;
51044
51045 if (!PyArg_UnpackTuple(args, "Pack_AddWeightedSumEqualVarDimension", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
51046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Pack, 0 | 0 );
51047 if (!SWIG_IsOK(res1)) {
51048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pack_AddWeightedSumEqualVarDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
51049 }
51050 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
51051 {
51052 SharedPyPtr input(obj1);
51053 arg2 = [input](int64_t i, int64_t j) {
51054 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
51055 };
51056 }
51057 {
51058 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
51059 if (!PyErr_Occurred())
51060 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
51061 return NULL;
51062 }
51063 arg3 = &temp3;
51064 }
51065 {
51066 try {
51067 (arg1)->AddWeightedSumEqualVarDimension(arg2,(std::vector< operations_research::IntVar * > const &)*arg3);
51068 }
51069 catch (Swig::DirectorException &e) {
51070 SWIG_fail;
51071 }
51072 }
51073 resultobj = SWIG_Py_Void();
51074 return resultobj;
51075fail:
51076 return NULL;
51077}
51078
51079
51080SWIGINTERN PyObject *_wrap_Pack_AddWeightedSumEqualVarDimension(PyObject *self, PyObject *args) {
51081 Py_ssize_t argc;
51082 PyObject *argv[4] = {
51083 0
51084 };
51085 Py_ssize_t ii;
51086
51087 if (!PyTuple_Check(args)) SWIG_fail;
51088 argc = PyObject_Length(args);
51089 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
51090 argv[ii] = PyTuple_GET_ITEM(args,ii);
51091 }
51092 if (argc == 3) {
51093 int _v;
51094 void *vptr = 0;
51095 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Pack, 0);
51096 _v = SWIG_CheckState(res);
51097 if (_v) {
51098 {
51099 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
51100 _v = 0;
51101 } else {
51102 const bool is_tuple = PyTuple_Check(argv[1]);
51103 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
51104 size_t i = 0;
51105 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
51106 :PyList_GetItem(argv[1], i))) {
51107 ++i;
51108 }
51109 _v = i == size;
51110 }
51111 }
51112 if (_v) {
51113 {
51114 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
51115 _v = 0;
51116 } else {
51117 const bool is_tuple = PyTuple_Check(argv[2]);
51118 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
51119 size_t i = 0;
51120 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[2], i)
51121 :PyList_GetItem(argv[2], i))) {
51122 ++i;
51123 }
51124 _v = i == size;
51125 }
51126 }
51127 if (_v) {
51129 }
51130 }
51131 }
51132 }
51133 if (argc == 3) {
51134 int _v;
51135 void *vptr = 0;
51136 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_operations_research__Pack, 0);
51137 _v = SWIG_CheckState(res);
51138 if (_v) {
51139 {
51140 _v = PyCallable_Check(argv[1]);
51141 }
51142 if (_v) {
51143 {
51144 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
51145 _v = 0;
51146 } else {
51147 const bool is_tuple = PyTuple_Check(argv[2]);
51148 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
51149 size_t i = 0;
51150 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[2], i)
51151 :PyList_GetItem(argv[2], i))) {
51152 ++i;
51153 }
51154 _v = i == size;
51155 }
51156 }
51157 if (_v) {
51159 }
51160 }
51161 }
51162 }
51163
51164fail:
51165 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Pack_AddWeightedSumEqualVarDimension'.\n"
51166 " Possible C/C++ prototypes are:\n"
51167 " operations_research::Pack::AddWeightedSumEqualVarDimension(std::vector< int64_t > const &,std::vector< operations_research::IntVar * > const &)\n"
51168 " operations_research::Pack::AddWeightedSumEqualVarDimension(operations_research::Solver::IndexEvaluator2,std::vector< operations_research::IntVar * > const &)\n");
51169 return 0;
51170}
51171
51172
51174 PyObject *resultobj = 0;
51176 std::vector< operations_research::IntVar * > *arg2 = 0 ;
51177 std::vector< int64_t > *arg3 = 0 ;
51178 void *argp1 = 0 ;
51179 int res1 = 0 ;
51180 std::vector< operations_research::IntVar * > temp2 ;
51181 std::vector< int64_t > temp3 ;
51182 PyObject * obj0 = 0 ;
51183 PyObject * obj1 = 0 ;
51184 PyObject * obj2 = 0 ;
51185
51186 if (!PyArg_UnpackTuple(args, "Pack_AddSumVariableWeightsLessOrEqualConstantDimension", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
51187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Pack, 0 | 0 );
51188 if (!SWIG_IsOK(res1)) {
51189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pack_AddSumVariableWeightsLessOrEqualConstantDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
51190 }
51191 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
51192 {
51193 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
51194 if (!PyErr_Occurred())
51195 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
51196 return NULL;
51197 }
51198 arg2 = &temp2;
51199 }
51200 {
51201 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
51202 if (!PyErr_Occurred())
51203 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
51204 return NULL;
51205 }
51206 arg3 = &temp3;
51207 }
51208 {
51209 try {
51210 (arg1)->AddSumVariableWeightsLessOrEqualConstantDimension((std::vector< operations_research::IntVar * > const &)*arg2,(std::vector< int64_t > const &)*arg3);
51211 }
51212 catch (Swig::DirectorException &e) {
51213 SWIG_fail;
51214 }
51215 }
51216 resultobj = SWIG_Py_Void();
51217 return resultobj;
51218fail:
51219 return NULL;
51220}
51221
51222
51224 PyObject *resultobj = 0;
51226 std::vector< int64_t > *arg2 = 0 ;
51228 void *argp1 = 0 ;
51229 int res1 = 0 ;
51230 std::vector< int64_t > temp2 ;
51231 PyObject * obj0 = 0 ;
51232 PyObject * obj1 = 0 ;
51233 PyObject * obj2 = 0 ;
51234
51235 if (!PyArg_UnpackTuple(args, "Pack_AddWeightedSumOfAssignedDimension", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
51236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Pack, 0 | 0 );
51237 if (!SWIG_IsOK(res1)) {
51238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pack_AddWeightedSumOfAssignedDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
51239 }
51240 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
51241 {
51242 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
51243 if (!PyErr_Occurred())
51244 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
51245 return NULL;
51246 }
51247 arg2 = &temp2;
51248 }
51249 {
51250 if (!PyObjAs(obj2, &arg3)) SWIG_fail;
51251 }
51252 {
51253 try {
51254 (arg1)->AddWeightedSumOfAssignedDimension((std::vector< int64_t > const &)*arg2,arg3);
51255 }
51256 catch (Swig::DirectorException &e) {
51257 SWIG_fail;
51258 }
51259 }
51260 resultobj = SWIG_Py_Void();
51261 return resultobj;
51262fail:
51263 return NULL;
51264}
51265
51266
51267SWIGINTERN PyObject *_wrap_Pack_AddCountUsedBinDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51268 PyObject *resultobj = 0;
51271 void *argp1 = 0 ;
51272 int res1 = 0 ;
51273 PyObject * obj0 = 0 ;
51274 PyObject * obj1 = 0 ;
51275
51276 if (!PyArg_UnpackTuple(args, "Pack_AddCountUsedBinDimension", 2, 2, &obj0, &obj1)) SWIG_fail;
51277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Pack, 0 | 0 );
51278 if (!SWIG_IsOK(res1)) {
51279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pack_AddCountUsedBinDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
51280 }
51281 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
51282 {
51283 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
51284 }
51285 {
51286 try {
51287 (arg1)->AddCountUsedBinDimension(arg2);
51288 }
51289 catch (Swig::DirectorException &e) {
51290 SWIG_fail;
51291 }
51292 }
51293 resultobj = SWIG_Py_Void();
51294 return resultobj;
51295fail:
51296 return NULL;
51297}
51298
51299
51300SWIGINTERN PyObject *_wrap_Pack_AddCountAssignedItemsDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51301 PyObject *resultobj = 0;
51304 void *argp1 = 0 ;
51305 int res1 = 0 ;
51306 PyObject * obj0 = 0 ;
51307 PyObject * obj1 = 0 ;
51308
51309 if (!PyArg_UnpackTuple(args, "Pack_AddCountAssignedItemsDimension", 2, 2, &obj0, &obj1)) SWIG_fail;
51310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Pack, 0 | 0 );
51311 if (!SWIG_IsOK(res1)) {
51312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pack_AddCountAssignedItemsDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
51313 }
51314 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
51315 {
51316 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
51317 }
51318 {
51319 try {
51320 (arg1)->AddCountAssignedItemsDimension(arg2);
51321 }
51322 catch (Swig::DirectorException &e) {
51323 SWIG_fail;
51324 }
51325 }
51326 resultobj = SWIG_Py_Void();
51327 return resultobj;
51328fail:
51329 return NULL;
51330}
51331
51332
51333SWIGINTERN PyObject *_wrap_Pack_Post(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51334 PyObject *resultobj = 0;
51336 void *argp1 = 0 ;
51337 int res1 = 0 ;
51338 PyObject * obj0 = 0 ;
51339
51340 if (!PyArg_UnpackTuple(args, "Pack_Post", 1, 1, &obj0)) SWIG_fail;
51341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Pack, 0 | 0 );
51342 if (!SWIG_IsOK(res1)) {
51343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pack_Post" "', argument " "1"" of type '" "operations_research::Pack *""'");
51344 }
51345 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
51346 {
51347 try {
51348 (arg1)->Post();
51349 }
51350 catch (Swig::DirectorException &e) {
51351 SWIG_fail;
51352 }
51353 }
51354 resultobj = SWIG_Py_Void();
51355 return resultobj;
51356fail:
51357 return NULL;
51358}
51359
51360
51361SWIGINTERN PyObject *_wrap_Pack_InitialPropagateWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51362 PyObject *resultobj = 0;
51364 void *argp1 = 0 ;
51365 int res1 = 0 ;
51366 PyObject * obj0 = 0 ;
51367
51368 if (!PyArg_UnpackTuple(args, "Pack_InitialPropagateWrapper", 1, 1, &obj0)) SWIG_fail;
51369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Pack, 0 | 0 );
51370 if (!SWIG_IsOK(res1)) {
51371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pack_InitialPropagateWrapper" "', argument " "1"" of type '" "operations_research::Pack *""'");
51372 }
51373 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
51374 {
51375 try {
51376 (arg1)->InitialPropagate();
51377 }
51378 catch (Swig::DirectorException &e) {
51379 SWIG_fail;
51380 }
51381 }
51382 resultobj = SWIG_Py_Void();
51383 return resultobj;
51384fail:
51385 return NULL;
51386}
51387
51388
51389SWIGINTERN PyObject *_wrap_Pack_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51390 PyObject *resultobj = 0;
51392 void *argp1 = 0 ;
51393 int res1 = 0 ;
51394 PyObject * obj0 = 0 ;
51395 std::string result;
51396
51397 if (!PyArg_UnpackTuple(args, "Pack_DebugString", 1, 1, &obj0)) SWIG_fail;
51398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Pack, 0 | 0 );
51399 if (!SWIG_IsOK(res1)) {
51400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pack_DebugString" "', argument " "1"" of type '" "operations_research::Pack const *""'");
51401 }
51402 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
51403 {
51404 try {
51405 result = ((operations_research::Pack const *)arg1)->DebugString();
51406 }
51407 catch (Swig::DirectorException &e) {
51408 SWIG_fail;
51409 }
51410 }
51411 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
51412 return resultobj;
51413fail:
51414 return NULL;
51415}
51416
51417
51418SWIGINTERN PyObject *Pack_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51419 PyObject *obj;
51420 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
51422 return SWIG_Py_Void();
51423}
51424
51425SWIGINTERN PyObject *_wrap_DisjunctiveConstraint_SequenceVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51426 PyObject *resultobj = 0;
51428 void *argp1 = 0 ;
51429 int res1 = 0 ;
51430 PyObject * obj0 = 0 ;
51432
51433 if (!PyArg_UnpackTuple(args, "DisjunctiveConstraint_SequenceVar", 1, 1, &obj0)) SWIG_fail;
51435 if (!SWIG_IsOK(res1)) {
51436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisjunctiveConstraint_SequenceVar" "', argument " "1"" of type '" "operations_research::DisjunctiveConstraint *""'");
51437 }
51438 arg1 = reinterpret_cast< operations_research::DisjunctiveConstraint * >(argp1);
51439 {
51440 try {
51441 result = (operations_research::SequenceVar *)(arg1)->MakeSequenceVar();
51442 }
51443 catch (Swig::DirectorException &e) {
51444 SWIG_fail;
51445 }
51446 }
51448 return resultobj;
51449fail:
51450 return NULL;
51451}
51452
51453
51455 PyObject *resultobj = 0;
51458 void *argp1 = 0 ;
51459 int res1 = 0 ;
51460 PyObject * obj0 = 0 ;
51461 PyObject * obj1 = 0 ;
51462
51463 if (!PyArg_UnpackTuple(args, "DisjunctiveConstraint_SetTransitionTime", 2, 2, &obj0, &obj1)) SWIG_fail;
51465 if (!SWIG_IsOK(res1)) {
51466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisjunctiveConstraint_SetTransitionTime" "', argument " "1"" of type '" "operations_research::DisjunctiveConstraint *""'");
51467 }
51468 arg1 = reinterpret_cast< operations_research::DisjunctiveConstraint * >(argp1);
51469 {
51470 SharedPyPtr input(obj1);
51471 arg2 = [input](int64_t i, int64_t j) {
51472 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
51473 };
51474 }
51475 {
51476 try {
51477 (arg1)->SetTransitionTime(arg2);
51478 }
51479 catch (Swig::DirectorException &e) {
51480 SWIG_fail;
51481 }
51482 }
51483 resultobj = SWIG_Py_Void();
51484 return resultobj;
51485fail:
51486 return NULL;
51487}
51488
51489
51491 PyObject *resultobj = 0;
51493 int arg2 ;
51494 int arg3 ;
51495 void *argp1 = 0 ;
51496 int res1 = 0 ;
51497 int val2 ;
51498 int ecode2 = 0 ;
51499 int val3 ;
51500 int ecode3 = 0 ;
51501 PyObject * obj0 = 0 ;
51502 PyObject * obj1 = 0 ;
51503 PyObject * obj2 = 0 ;
51504 int64_t result;
51505
51506 if (!PyArg_UnpackTuple(args, "DisjunctiveConstraint_TransitionTime", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
51508 if (!SWIG_IsOK(res1)) {
51509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisjunctiveConstraint_TransitionTime" "', argument " "1"" of type '" "operations_research::DisjunctiveConstraint *""'");
51510 }
51511 arg1 = reinterpret_cast< operations_research::DisjunctiveConstraint * >(argp1);
51512 ecode2 = SWIG_AsVal_int(obj1, &val2);
51513 if (!SWIG_IsOK(ecode2)) {
51514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DisjunctiveConstraint_TransitionTime" "', argument " "2"" of type '" "int""'");
51515 }
51516 arg2 = static_cast< int >(val2);
51517 ecode3 = SWIG_AsVal_int(obj2, &val3);
51518 if (!SWIG_IsOK(ecode3)) {
51519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DisjunctiveConstraint_TransitionTime" "', argument " "3"" of type '" "int""'");
51520 }
51521 arg3 = static_cast< int >(val3);
51522 {
51523 try {
51524 result = (int64_t)(arg1)->TransitionTime(arg2,arg3);
51525 }
51526 catch (Swig::DirectorException &e) {
51527 SWIG_fail;
51528 }
51529 }
51530 resultobj = SWIG_From_long(static_cast< long >(result));
51531 return resultobj;
51532fail:
51533 return NULL;
51534}
51535
51536
51537SWIGINTERN PyObject *DisjunctiveConstraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51538 PyObject *obj;
51539 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
51541 return SWIG_Py_Void();
51542}
51543
51544SWIGINTERN PyObject *_wrap_new_RevInteger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51545 PyObject *resultobj = 0;
51546 long *arg1 = 0 ;
51547 long temp1 ;
51548 long val1 ;
51549 int ecode1 = 0 ;
51550 PyObject * obj0 = 0 ;
51552
51553 if (!PyArg_UnpackTuple(args, "new_RevInteger", 1, 1, &obj0)) SWIG_fail;
51554 ecode1 = SWIG_AsVal_long(obj0, &val1);
51555 if (!SWIG_IsOK(ecode1)) {
51556 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RevInteger" "', argument " "1"" of type '" "long""'");
51557 }
51558 temp1 = static_cast< long >(val1);
51559 arg1 = &temp1;
51560 {
51561 try {
51563 }
51564 catch (Swig::DirectorException &e) {
51565 SWIG_fail;
51566 }
51567 }
51569 return resultobj;
51570fail:
51571 return NULL;
51572}
51573
51574
51575SWIGINTERN PyObject *_wrap_RevInteger_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51576 PyObject *resultobj = 0;
51578 void *argp1 = 0 ;
51579 int res1 = 0 ;
51580 PyObject * obj0 = 0 ;
51581 long *result = 0 ;
51582
51583 if (!PyArg_UnpackTuple(args, "RevInteger_Value", 1, 1, &obj0)) SWIG_fail;
51585 if (!SWIG_IsOK(res1)) {
51586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RevInteger_Value" "', argument " "1"" of type '" "operations_research::Rev< int64_t > const *""'");
51587 }
51588 arg1 = reinterpret_cast< operations_research::Rev< int64_t > * >(argp1);
51589 {
51590 try {
51591 result = (long *) &((operations_research::Rev< int64_t > const *)arg1)->Value();
51592 }
51593 catch (Swig::DirectorException &e) {
51594 SWIG_fail;
51595 }
51596 }
51597 resultobj = SWIG_From_long(static_cast< long >(*result));
51598 return resultobj;
51599fail:
51600 return NULL;
51601}
51602
51603
51604SWIGINTERN PyObject *_wrap_RevInteger_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51605 PyObject *resultobj = 0;
51608 long *arg3 = 0 ;
51609 void *argp1 = 0 ;
51610 int res1 = 0 ;
51611 void *argp2 = 0 ;
51612 int res2 = 0 ;
51613 long temp3 ;
51614 long val3 ;
51615 int ecode3 = 0 ;
51616 PyObject * obj0 = 0 ;
51617 PyObject * obj1 = 0 ;
51618 PyObject * obj2 = 0 ;
51619
51620 if (!PyArg_UnpackTuple(args, "RevInteger_SetValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
51622 if (!SWIG_IsOK(res1)) {
51623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RevInteger_SetValue" "', argument " "1"" of type '" "operations_research::Rev< int64_t > *""'");
51624 }
51625 arg1 = reinterpret_cast< operations_research::Rev< int64_t > * >(argp1);
51626 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
51627 if (!SWIG_IsOK(res2)) {
51628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RevInteger_SetValue" "', argument " "2"" of type '" "operations_research::Solver *const""'");
51629 }
51630 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
51631 ecode3 = SWIG_AsVal_long(obj2, &val3);
51632 if (!SWIG_IsOK(ecode3)) {
51633 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RevInteger_SetValue" "', argument " "3"" of type '" "long""'");
51634 }
51635 temp3 = static_cast< long >(val3);
51636 arg3 = &temp3;
51637 {
51638 try {
51639 (arg1)->SetValue(arg2,(long const &)*arg3);
51640 }
51641 catch (Swig::DirectorException &e) {
51642 SWIG_fail;
51643 }
51644 }
51645 resultobj = SWIG_Py_Void();
51646 return resultobj;
51647fail:
51648 return NULL;
51649}
51650
51651
51652SWIGINTERN PyObject *_wrap_delete_RevInteger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51653 PyObject *resultobj = 0;
51655 void *argp1 = 0 ;
51656 int res1 = 0 ;
51657 PyObject * obj0 = 0 ;
51658
51659 if (!PyArg_UnpackTuple(args, "delete_RevInteger", 1, 1, &obj0)) SWIG_fail;
51661 if (!SWIG_IsOK(res1)) {
51662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RevInteger" "', argument " "1"" of type '" "operations_research::Rev< int64_t > *""'");
51663 }
51664 arg1 = reinterpret_cast< operations_research::Rev< int64_t > * >(argp1);
51665 {
51666 try {
51667 delete arg1;
51668 }
51669 catch (Swig::DirectorException &e) {
51670 SWIG_fail;
51671 }
51672 }
51673 resultobj = SWIG_Py_Void();
51674 return resultobj;
51675fail:
51676 return NULL;
51677}
51678
51679
51680SWIGINTERN PyObject *RevInteger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51681 PyObject *obj;
51682 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
51684 return SWIG_Py_Void();
51685}
51686
51687SWIGINTERN PyObject *RevInteger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51688 return SWIG_Python_InitShadowInstance(args);
51689}
51690
51691SWIGINTERN PyObject *_wrap_new_NumericalRevInteger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51692 PyObject *resultobj = 0;
51693 long *arg1 = 0 ;
51694 long temp1 ;
51695 long val1 ;
51696 int ecode1 = 0 ;
51697 PyObject * obj0 = 0 ;
51699
51700 if (!PyArg_UnpackTuple(args, "new_NumericalRevInteger", 1, 1, &obj0)) SWIG_fail;
51701 ecode1 = SWIG_AsVal_long(obj0, &val1);
51702 if (!SWIG_IsOK(ecode1)) {
51703 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumericalRevInteger" "', argument " "1"" of type '" "long""'");
51704 }
51705 temp1 = static_cast< long >(val1);
51706 arg1 = &temp1;
51707 {
51708 try {
51710 }
51711 catch (Swig::DirectorException &e) {
51712 SWIG_fail;
51713 }
51714 }
51716 return resultobj;
51717fail:
51718 return NULL;
51719}
51720
51721
51722SWIGINTERN PyObject *_wrap_NumericalRevInteger_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51723 PyObject *resultobj = 0;
51726 long *arg3 = 0 ;
51727 void *argp1 = 0 ;
51728 int res1 = 0 ;
51729 void *argp2 = 0 ;
51730 int res2 = 0 ;
51731 long temp3 ;
51732 long val3 ;
51733 int ecode3 = 0 ;
51734 PyObject * obj0 = 0 ;
51735 PyObject * obj1 = 0 ;
51736 PyObject * obj2 = 0 ;
51737
51738 if (!PyArg_UnpackTuple(args, "NumericalRevInteger_Add", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
51740 if (!SWIG_IsOK(res1)) {
51741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NumericalRevInteger_Add" "', argument " "1"" of type '" "operations_research::NumericalRev< int64_t > *""'");
51742 }
51743 arg1 = reinterpret_cast< operations_research::NumericalRev< int64_t > * >(argp1);
51744 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
51745 if (!SWIG_IsOK(res2)) {
51746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NumericalRevInteger_Add" "', argument " "2"" of type '" "operations_research::Solver *const""'");
51747 }
51748 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
51749 ecode3 = SWIG_AsVal_long(obj2, &val3);
51750 if (!SWIG_IsOK(ecode3)) {
51751 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NumericalRevInteger_Add" "', argument " "3"" of type '" "long""'");
51752 }
51753 temp3 = static_cast< long >(val3);
51754 arg3 = &temp3;
51755 {
51756 try {
51757 (arg1)->Add(arg2,(long const &)*arg3);
51758 }
51759 catch (Swig::DirectorException &e) {
51760 SWIG_fail;
51761 }
51762 }
51763 resultobj = SWIG_Py_Void();
51764 return resultobj;
51765fail:
51766 return NULL;
51767}
51768
51769
51770SWIGINTERN PyObject *_wrap_NumericalRevInteger_Incr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51771 PyObject *resultobj = 0;
51774 void *argp1 = 0 ;
51775 int res1 = 0 ;
51776 void *argp2 = 0 ;
51777 int res2 = 0 ;
51778 PyObject * obj0 = 0 ;
51779 PyObject * obj1 = 0 ;
51780
51781 if (!PyArg_UnpackTuple(args, "NumericalRevInteger_Incr", 2, 2, &obj0, &obj1)) SWIG_fail;
51783 if (!SWIG_IsOK(res1)) {
51784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NumericalRevInteger_Incr" "', argument " "1"" of type '" "operations_research::NumericalRev< int64_t > *""'");
51785 }
51786 arg1 = reinterpret_cast< operations_research::NumericalRev< int64_t > * >(argp1);
51787 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
51788 if (!SWIG_IsOK(res2)) {
51789 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NumericalRevInteger_Incr" "', argument " "2"" of type '" "operations_research::Solver *const""'");
51790 }
51791 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
51792 {
51793 try {
51794 (arg1)->Incr(arg2);
51795 }
51796 catch (Swig::DirectorException &e) {
51797 SWIG_fail;
51798 }
51799 }
51800 resultobj = SWIG_Py_Void();
51801 return resultobj;
51802fail:
51803 return NULL;
51804}
51805
51806
51807SWIGINTERN PyObject *_wrap_NumericalRevInteger_Decr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51808 PyObject *resultobj = 0;
51811 void *argp1 = 0 ;
51812 int res1 = 0 ;
51813 void *argp2 = 0 ;
51814 int res2 = 0 ;
51815 PyObject * obj0 = 0 ;
51816 PyObject * obj1 = 0 ;
51817
51818 if (!PyArg_UnpackTuple(args, "NumericalRevInteger_Decr", 2, 2, &obj0, &obj1)) SWIG_fail;
51820 if (!SWIG_IsOK(res1)) {
51821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NumericalRevInteger_Decr" "', argument " "1"" of type '" "operations_research::NumericalRev< int64_t > *""'");
51822 }
51823 arg1 = reinterpret_cast< operations_research::NumericalRev< int64_t > * >(argp1);
51824 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
51825 if (!SWIG_IsOK(res2)) {
51826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NumericalRevInteger_Decr" "', argument " "2"" of type '" "operations_research::Solver *const""'");
51827 }
51828 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
51829 {
51830 try {
51831 (arg1)->Decr(arg2);
51832 }
51833 catch (Swig::DirectorException &e) {
51834 SWIG_fail;
51835 }
51836 }
51837 resultobj = SWIG_Py_Void();
51838 return resultobj;
51839fail:
51840 return NULL;
51841}
51842
51843
51844SWIGINTERN PyObject *_wrap_delete_NumericalRevInteger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51845 PyObject *resultobj = 0;
51847 void *argp1 = 0 ;
51848 int res1 = 0 ;
51849 PyObject * obj0 = 0 ;
51850
51851 if (!PyArg_UnpackTuple(args, "delete_NumericalRevInteger", 1, 1, &obj0)) SWIG_fail;
51853 if (!SWIG_IsOK(res1)) {
51854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NumericalRevInteger" "', argument " "1"" of type '" "operations_research::NumericalRev< int64_t > *""'");
51855 }
51856 arg1 = reinterpret_cast< operations_research::NumericalRev< int64_t > * >(argp1);
51857 {
51858 try {
51859 delete arg1;
51860 }
51861 catch (Swig::DirectorException &e) {
51862 SWIG_fail;
51863 }
51864 }
51865 resultobj = SWIG_Py_Void();
51866 return resultobj;
51867fail:
51868 return NULL;
51869}
51870
51871
51872SWIGINTERN PyObject *NumericalRevInteger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51873 PyObject *obj;
51874 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
51876 return SWIG_Py_Void();
51877}
51878
51879SWIGINTERN PyObject *NumericalRevInteger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51880 return SWIG_Python_InitShadowInstance(args);
51881}
51882
51883SWIGINTERN PyObject *_wrap_new_RevBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51884 PyObject *resultobj = 0;
51885 bool *arg1 = 0 ;
51886 bool temp1 ;
51887 bool val1 ;
51888 int ecode1 = 0 ;
51889 PyObject * obj0 = 0 ;
51891
51892 if (!PyArg_UnpackTuple(args, "new_RevBool", 1, 1, &obj0)) SWIG_fail;
51893 ecode1 = SWIG_AsVal_bool(obj0, &val1);
51894 if (!SWIG_IsOK(ecode1)) {
51895 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RevBool" "', argument " "1"" of type '" "bool""'");
51896 }
51897 temp1 = static_cast< bool >(val1);
51898 arg1 = &temp1;
51899 {
51900 try {
51901 result = (operations_research::Rev< bool > *)new operations_research::Rev< bool >((bool const &)*arg1);
51902 }
51903 catch (Swig::DirectorException &e) {
51904 SWIG_fail;
51905 }
51906 }
51908 return resultobj;
51909fail:
51910 return NULL;
51911}
51912
51913
51914SWIGINTERN PyObject *_wrap_RevBool_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51915 PyObject *resultobj = 0;
51917 void *argp1 = 0 ;
51918 int res1 = 0 ;
51919 PyObject * obj0 = 0 ;
51920 bool *result = 0 ;
51921
51922 if (!PyArg_UnpackTuple(args, "RevBool_Value", 1, 1, &obj0)) SWIG_fail;
51924 if (!SWIG_IsOK(res1)) {
51925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RevBool_Value" "', argument " "1"" of type '" "operations_research::Rev< bool > const *""'");
51926 }
51927 arg1 = reinterpret_cast< operations_research::Rev< bool > * >(argp1);
51928 {
51929 try {
51930 result = (bool *) &((operations_research::Rev< bool > const *)arg1)->Value();
51931 }
51932 catch (Swig::DirectorException &e) {
51933 SWIG_fail;
51934 }
51935 }
51936 resultobj = SWIG_From_bool(static_cast< bool >(*result));
51937 return resultobj;
51938fail:
51939 return NULL;
51940}
51941
51942
51943SWIGINTERN PyObject *_wrap_RevBool_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51944 PyObject *resultobj = 0;
51947 bool *arg3 = 0 ;
51948 void *argp1 = 0 ;
51949 int res1 = 0 ;
51950 void *argp2 = 0 ;
51951 int res2 = 0 ;
51952 bool temp3 ;
51953 bool val3 ;
51954 int ecode3 = 0 ;
51955 PyObject * obj0 = 0 ;
51956 PyObject * obj1 = 0 ;
51957 PyObject * obj2 = 0 ;
51958
51959 if (!PyArg_UnpackTuple(args, "RevBool_SetValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
51961 if (!SWIG_IsOK(res1)) {
51962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RevBool_SetValue" "', argument " "1"" of type '" "operations_research::Rev< bool > *""'");
51963 }
51964 arg1 = reinterpret_cast< operations_research::Rev< bool > * >(argp1);
51965 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
51966 if (!SWIG_IsOK(res2)) {
51967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RevBool_SetValue" "', argument " "2"" of type '" "operations_research::Solver *const""'");
51968 }
51969 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
51970 ecode3 = SWIG_AsVal_bool(obj2, &val3);
51971 if (!SWIG_IsOK(ecode3)) {
51972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RevBool_SetValue" "', argument " "3"" of type '" "bool""'");
51973 }
51974 temp3 = static_cast< bool >(val3);
51975 arg3 = &temp3;
51976 {
51977 try {
51978 (arg1)->SetValue(arg2,(bool const &)*arg3);
51979 }
51980 catch (Swig::DirectorException &e) {
51981 SWIG_fail;
51982 }
51983 }
51984 resultobj = SWIG_Py_Void();
51985 return resultobj;
51986fail:
51987 return NULL;
51988}
51989
51990
51991SWIGINTERN PyObject *_wrap_delete_RevBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51992 PyObject *resultobj = 0;
51994 void *argp1 = 0 ;
51995 int res1 = 0 ;
51996 PyObject * obj0 = 0 ;
51997
51998 if (!PyArg_UnpackTuple(args, "delete_RevBool", 1, 1, &obj0)) SWIG_fail;
52000 if (!SWIG_IsOK(res1)) {
52001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RevBool" "', argument " "1"" of type '" "operations_research::Rev< bool > *""'");
52002 }
52003 arg1 = reinterpret_cast< operations_research::Rev< bool > * >(argp1);
52004 {
52005 try {
52006 delete arg1;
52007 }
52008 catch (Swig::DirectorException &e) {
52009 SWIG_fail;
52010 }
52011 }
52012 resultobj = SWIG_Py_Void();
52013 return resultobj;
52014fail:
52015 return NULL;
52016}
52017
52018
52019SWIGINTERN PyObject *RevBool_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52020 PyObject *obj;
52021 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
52023 return SWIG_Py_Void();
52024}
52025
52026SWIGINTERN PyObject *RevBool_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52027 return SWIG_Python_InitShadowInstance(args);
52028}
52029
52030SWIGINTERN PyObject *_wrap_IntVarContainer_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52031 PyObject *resultobj = 0;
52034 void *argp1 = 0 ;
52035 int res1 = 0 ;
52036 PyObject * obj0 = 0 ;
52037 PyObject * obj1 = 0 ;
52038 bool result;
52039
52040 if (!PyArg_UnpackTuple(args, "IntVarContainer_Contains", 2, 2, &obj0, &obj1)) SWIG_fail;
52042 if (!SWIG_IsOK(res1)) {
52043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarContainer_Contains" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > const *""'");
52044 }
52046 {
52047 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
52048 }
52049 {
52050 try {
52052 }
52053 catch (Swig::DirectorException &e) {
52054 SWIG_fail;
52055 }
52056 }
52057 resultobj = SWIG_From_bool(static_cast< bool >(result));
52058 return resultobj;
52059fail:
52060 return NULL;
52061}
52062
52063
52064SWIGINTERN PyObject *_wrap_IntVarContainer_Element(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52065 PyObject *resultobj = 0;
52067 int arg2 ;
52068 void *argp1 = 0 ;
52069 int res1 = 0 ;
52070 int val2 ;
52071 int ecode2 = 0 ;
52072 PyObject * obj0 = 0 ;
52073 PyObject * obj1 = 0 ;
52075
52076 if (!PyArg_UnpackTuple(args, "IntVarContainer_Element", 2, 2, &obj0, &obj1)) SWIG_fail;
52078 if (!SWIG_IsOK(res1)) {
52079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarContainer_Element" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > *""'");
52080 }
52082 ecode2 = SWIG_AsVal_int(obj1, &val2);
52083 if (!SWIG_IsOK(ecode2)) {
52084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVarContainer_Element" "', argument " "2"" of type '" "int""'");
52085 }
52086 arg2 = static_cast< int >(val2);
52087 {
52088 try {
52089 result = (operations_research::IntVarElement *)(arg1)->MutableElement(arg2);
52090 }
52091 catch (Swig::DirectorException &e) {
52092 SWIG_fail;
52093 }
52094 }
52096 return resultobj;
52097fail:
52098 return NULL;
52099}
52100
52101
52102SWIGINTERN PyObject *_wrap_IntVarContainer_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52103 PyObject *resultobj = 0;
52105 void *argp1 = 0 ;
52106 int res1 = 0 ;
52107 PyObject * obj0 = 0 ;
52108 int result;
52109
52110 if (!PyArg_UnpackTuple(args, "IntVarContainer_Size", 1, 1, &obj0)) SWIG_fail;
52112 if (!SWIG_IsOK(res1)) {
52113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarContainer_Size" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > const *""'");
52114 }
52116 {
52117 try {
52119 }
52120 catch (Swig::DirectorException &e) {
52121 SWIG_fail;
52122 }
52123 }
52124 resultobj = SWIG_From_int(static_cast< int >(result));
52125 return resultobj;
52126fail:
52127 return NULL;
52128}
52129
52130
52131SWIGINTERN PyObject *_wrap_IntVarContainer_Store(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52132 PyObject *resultobj = 0;
52134 void *argp1 = 0 ;
52135 int res1 = 0 ;
52136 PyObject * obj0 = 0 ;
52137
52138 if (!PyArg_UnpackTuple(args, "IntVarContainer_Store", 1, 1, &obj0)) SWIG_fail;
52140 if (!SWIG_IsOK(res1)) {
52141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarContainer_Store" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > *""'");
52142 }
52144 {
52145 try {
52146 (arg1)->Store();
52147 }
52148 catch (Swig::DirectorException &e) {
52149 SWIG_fail;
52150 }
52151 }
52152 resultobj = SWIG_Py_Void();
52153 return resultobj;
52154fail:
52155 return NULL;
52156}
52157
52158
52159SWIGINTERN PyObject *_wrap_IntVarContainer_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52160 PyObject *resultobj = 0;
52162 void *argp1 = 0 ;
52163 int res1 = 0 ;
52164 PyObject * obj0 = 0 ;
52165
52166 if (!PyArg_UnpackTuple(args, "IntVarContainer_Restore", 1, 1, &obj0)) SWIG_fail;
52168 if (!SWIG_IsOK(res1)) {
52169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarContainer_Restore" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > *""'");
52170 }
52172 {
52173 try {
52174 (arg1)->Restore();
52175 }
52176 catch (Swig::DirectorException &e) {
52177 SWIG_fail;
52178 }
52179 }
52180 resultobj = SWIG_Py_Void();
52181 return resultobj;
52182fail:
52183 return NULL;
52184}
52185
52186
52187SWIGINTERN PyObject *_wrap_IntVarContainer___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52188 PyObject *resultobj = 0;
52191 void *argp1 = 0 ;
52192 int res1 = 0 ;
52193 void *argp2 = 0 ;
52194 int res2 = 0 ;
52195 PyObject * obj0 = 0 ;
52196 PyObject * obj1 = 0 ;
52197 bool result;
52198
52199 if (!PyArg_UnpackTuple(args, "IntVarContainer___eq__", 2, 2, &obj0, &obj1)) SWIG_fail;
52201 if (!SWIG_IsOK(res1)) {
52202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarContainer___eq__" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > const *""'");
52203 }
52206 if (!SWIG_IsOK(res2)) {
52207 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntVarContainer___eq__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > const &""'");
52208 }
52209 if (!argp2) {
52210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVarContainer___eq__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > const &""'");
52211 }
52213 {
52214 try {
52216 }
52217 catch (Swig::DirectorException &e) {
52218 SWIG_fail;
52219 }
52220 }
52221 resultobj = SWIG_From_bool(static_cast< bool >(result));
52222 return resultobj;
52223fail:
52224 PyErr_Clear();
52225 Py_INCREF(Py_NotImplemented);
52226 return Py_NotImplemented;
52227}
52228
52229
52230SWIGINTERN PyObject *_wrap_IntVarContainer___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52231 PyObject *resultobj = 0;
52234 void *argp1 = 0 ;
52235 int res1 = 0 ;
52236 void *argp2 = 0 ;
52237 int res2 = 0 ;
52238 PyObject * obj0 = 0 ;
52239 PyObject * obj1 = 0 ;
52240 bool result;
52241
52242 if (!PyArg_UnpackTuple(args, "IntVarContainer___ne__", 2, 2, &obj0, &obj1)) SWIG_fail;
52244 if (!SWIG_IsOK(res1)) {
52245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarContainer___ne__" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > const *""'");
52246 }
52249 if (!SWIG_IsOK(res2)) {
52250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntVarContainer___ne__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > const &""'");
52251 }
52252 if (!argp2) {
52253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVarContainer___ne__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > const &""'");
52254 }
52256 {
52257 try {
52259 }
52260 catch (Swig::DirectorException &e) {
52261 SWIG_fail;
52262 }
52263 }
52264 resultobj = SWIG_From_bool(static_cast< bool >(result));
52265 return resultobj;
52266fail:
52267 PyErr_Clear();
52268 Py_INCREF(Py_NotImplemented);
52269 return Py_NotImplemented;
52270}
52271
52272
52273SWIGINTERN PyObject *_wrap_delete_IntVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52274 PyObject *resultobj = 0;
52276 void *argp1 = 0 ;
52277 int res1 = 0 ;
52278 PyObject * obj0 = 0 ;
52279
52280 if (!PyArg_UnpackTuple(args, "delete_IntVarContainer", 1, 1, &obj0)) SWIG_fail;
52282 if (!SWIG_IsOK(res1)) {
52283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntVarContainer" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > *""'");
52284 }
52286 {
52287 try {
52288 delete arg1;
52289 }
52290 catch (Swig::DirectorException &e) {
52291 SWIG_fail;
52292 }
52293 }
52294 resultobj = SWIG_Py_Void();
52295 return resultobj;
52296fail:
52297 return NULL;
52298}
52299
52300
52301SWIGINTERN PyObject *IntVarContainer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52302 PyObject *obj;
52303 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
52305 return SWIG_Py_Void();
52306}
52307
52308SWIGINTERN PyObject *_wrap_IntervalVarContainer_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52309 PyObject *resultobj = 0;
52312 void *argp1 = 0 ;
52313 int res1 = 0 ;
52314 PyObject * obj0 = 0 ;
52315 PyObject * obj1 = 0 ;
52316 bool result;
52317
52318 if (!PyArg_UnpackTuple(args, "IntervalVarContainer_Contains", 2, 2, &obj0, &obj1)) SWIG_fail;
52320 if (!SWIG_IsOK(res1)) {
52321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarContainer_Contains" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > const *""'");
52322 }
52324 {
52325 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
52326 }
52327 {
52328 try {
52330 }
52331 catch (Swig::DirectorException &e) {
52332 SWIG_fail;
52333 }
52334 }
52335 resultobj = SWIG_From_bool(static_cast< bool >(result));
52336 return resultobj;
52337fail:
52338 return NULL;
52339}
52340
52341
52342SWIGINTERN PyObject *_wrap_IntervalVarContainer_Element(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52343 PyObject *resultobj = 0;
52345 int arg2 ;
52346 void *argp1 = 0 ;
52347 int res1 = 0 ;
52348 int val2 ;
52349 int ecode2 = 0 ;
52350 PyObject * obj0 = 0 ;
52351 PyObject * obj1 = 0 ;
52353
52354 if (!PyArg_UnpackTuple(args, "IntervalVarContainer_Element", 2, 2, &obj0, &obj1)) SWIG_fail;
52356 if (!SWIG_IsOK(res1)) {
52357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarContainer_Element" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > *""'");
52358 }
52360 ecode2 = SWIG_AsVal_int(obj1, &val2);
52361 if (!SWIG_IsOK(ecode2)) {
52362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalVarContainer_Element" "', argument " "2"" of type '" "int""'");
52363 }
52364 arg2 = static_cast< int >(val2);
52365 {
52366 try {
52367 result = (operations_research::IntervalVarElement *)(arg1)->MutableElement(arg2);
52368 }
52369 catch (Swig::DirectorException &e) {
52370 SWIG_fail;
52371 }
52372 }
52374 return resultobj;
52375fail:
52376 return NULL;
52377}
52378
52379
52380SWIGINTERN PyObject *_wrap_IntervalVarContainer_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52381 PyObject *resultobj = 0;
52383 void *argp1 = 0 ;
52384 int res1 = 0 ;
52385 PyObject * obj0 = 0 ;
52386 int result;
52387
52388 if (!PyArg_UnpackTuple(args, "IntervalVarContainer_Size", 1, 1, &obj0)) SWIG_fail;
52390 if (!SWIG_IsOK(res1)) {
52391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarContainer_Size" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > const *""'");
52392 }
52394 {
52395 try {
52397 }
52398 catch (Swig::DirectorException &e) {
52399 SWIG_fail;
52400 }
52401 }
52402 resultobj = SWIG_From_int(static_cast< int >(result));
52403 return resultobj;
52404fail:
52405 return NULL;
52406}
52407
52408
52409SWIGINTERN PyObject *_wrap_IntervalVarContainer_Store(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52410 PyObject *resultobj = 0;
52412 void *argp1 = 0 ;
52413 int res1 = 0 ;
52414 PyObject * obj0 = 0 ;
52415
52416 if (!PyArg_UnpackTuple(args, "IntervalVarContainer_Store", 1, 1, &obj0)) SWIG_fail;
52418 if (!SWIG_IsOK(res1)) {
52419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarContainer_Store" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > *""'");
52420 }
52422 {
52423 try {
52424 (arg1)->Store();
52425 }
52426 catch (Swig::DirectorException &e) {
52427 SWIG_fail;
52428 }
52429 }
52430 resultobj = SWIG_Py_Void();
52431 return resultobj;
52432fail:
52433 return NULL;
52434}
52435
52436
52437SWIGINTERN PyObject *_wrap_IntervalVarContainer_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52438 PyObject *resultobj = 0;
52440 void *argp1 = 0 ;
52441 int res1 = 0 ;
52442 PyObject * obj0 = 0 ;
52443
52444 if (!PyArg_UnpackTuple(args, "IntervalVarContainer_Restore", 1, 1, &obj0)) SWIG_fail;
52446 if (!SWIG_IsOK(res1)) {
52447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarContainer_Restore" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > *""'");
52448 }
52450 {
52451 try {
52452 (arg1)->Restore();
52453 }
52454 catch (Swig::DirectorException &e) {
52455 SWIG_fail;
52456 }
52457 }
52458 resultobj = SWIG_Py_Void();
52459 return resultobj;
52460fail:
52461 return NULL;
52462}
52463
52464
52465SWIGINTERN PyObject *_wrap_IntervalVarContainer___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52466 PyObject *resultobj = 0;
52469 void *argp1 = 0 ;
52470 int res1 = 0 ;
52471 void *argp2 = 0 ;
52472 int res2 = 0 ;
52473 PyObject * obj0 = 0 ;
52474 PyObject * obj1 = 0 ;
52475 bool result;
52476
52477 if (!PyArg_UnpackTuple(args, "IntervalVarContainer___eq__", 2, 2, &obj0, &obj1)) SWIG_fail;
52479 if (!SWIG_IsOK(res1)) {
52480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarContainer___eq__" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > const *""'");
52481 }
52484 if (!SWIG_IsOK(res2)) {
52485 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVarContainer___eq__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > const &""'");
52486 }
52487 if (!argp2) {
52488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalVarContainer___eq__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > const &""'");
52489 }
52491 {
52492 try {
52494 }
52495 catch (Swig::DirectorException &e) {
52496 SWIG_fail;
52497 }
52498 }
52499 resultobj = SWIG_From_bool(static_cast< bool >(result));
52500 return resultobj;
52501fail:
52502 PyErr_Clear();
52503 Py_INCREF(Py_NotImplemented);
52504 return Py_NotImplemented;
52505}
52506
52507
52508SWIGINTERN PyObject *_wrap_IntervalVarContainer___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52509 PyObject *resultobj = 0;
52512 void *argp1 = 0 ;
52513 int res1 = 0 ;
52514 void *argp2 = 0 ;
52515 int res2 = 0 ;
52516 PyObject * obj0 = 0 ;
52517 PyObject * obj1 = 0 ;
52518 bool result;
52519
52520 if (!PyArg_UnpackTuple(args, "IntervalVarContainer___ne__", 2, 2, &obj0, &obj1)) SWIG_fail;
52522 if (!SWIG_IsOK(res1)) {
52523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalVarContainer___ne__" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > const *""'");
52524 }
52527 if (!SWIG_IsOK(res2)) {
52528 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalVarContainer___ne__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > const &""'");
52529 }
52530 if (!argp2) {
52531 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalVarContainer___ne__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > const &""'");
52532 }
52534 {
52535 try {
52537 }
52538 catch (Swig::DirectorException &e) {
52539 SWIG_fail;
52540 }
52541 }
52542 resultobj = SWIG_From_bool(static_cast< bool >(result));
52543 return resultobj;
52544fail:
52545 PyErr_Clear();
52546 Py_INCREF(Py_NotImplemented);
52547 return Py_NotImplemented;
52548}
52549
52550
52551SWIGINTERN PyObject *_wrap_delete_IntervalVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52552 PyObject *resultobj = 0;
52554 void *argp1 = 0 ;
52555 int res1 = 0 ;
52556 PyObject * obj0 = 0 ;
52557
52558 if (!PyArg_UnpackTuple(args, "delete_IntervalVarContainer", 1, 1, &obj0)) SWIG_fail;
52560 if (!SWIG_IsOK(res1)) {
52561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntervalVarContainer" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > *""'");
52562 }
52564 {
52565 try {
52566 delete arg1;
52567 }
52568 catch (Swig::DirectorException &e) {
52569 SWIG_fail;
52570 }
52571 }
52572 resultobj = SWIG_Py_Void();
52573 return resultobj;
52574fail:
52575 return NULL;
52576}
52577
52578
52579SWIGINTERN PyObject *IntervalVarContainer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52580 PyObject *obj;
52581 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
52583 return SWIG_Py_Void();
52584}
52585
52586SWIGINTERN PyObject *_wrap_SequenceVarContainer_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52587 PyObject *resultobj = 0;
52590 void *argp1 = 0 ;
52591 int res1 = 0 ;
52592 PyObject * obj0 = 0 ;
52593 PyObject * obj1 = 0 ;
52594 bool result;
52595
52596 if (!PyArg_UnpackTuple(args, "SequenceVarContainer_Contains", 2, 2, &obj0, &obj1)) SWIG_fail;
52598 if (!SWIG_IsOK(res1)) {
52599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarContainer_Contains" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > const *""'");
52600 }
52602 {
52603 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
52604 }
52605 {
52606 try {
52608 }
52609 catch (Swig::DirectorException &e) {
52610 SWIG_fail;
52611 }
52612 }
52613 resultobj = SWIG_From_bool(static_cast< bool >(result));
52614 return resultobj;
52615fail:
52616 return NULL;
52617}
52618
52619
52620SWIGINTERN PyObject *_wrap_SequenceVarContainer_Element(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52621 PyObject *resultobj = 0;
52623 int arg2 ;
52624 void *argp1 = 0 ;
52625 int res1 = 0 ;
52626 int val2 ;
52627 int ecode2 = 0 ;
52628 PyObject * obj0 = 0 ;
52629 PyObject * obj1 = 0 ;
52631
52632 if (!PyArg_UnpackTuple(args, "SequenceVarContainer_Element", 2, 2, &obj0, &obj1)) SWIG_fail;
52634 if (!SWIG_IsOK(res1)) {
52635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarContainer_Element" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > *""'");
52636 }
52638 ecode2 = SWIG_AsVal_int(obj1, &val2);
52639 if (!SWIG_IsOK(ecode2)) {
52640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SequenceVarContainer_Element" "', argument " "2"" of type '" "int""'");
52641 }
52642 arg2 = static_cast< int >(val2);
52643 {
52644 try {
52645 result = (operations_research::SequenceVarElement *)(arg1)->MutableElement(arg2);
52646 }
52647 catch (Swig::DirectorException &e) {
52648 SWIG_fail;
52649 }
52650 }
52652 return resultobj;
52653fail:
52654 return NULL;
52655}
52656
52657
52658SWIGINTERN PyObject *_wrap_SequenceVarContainer_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52659 PyObject *resultobj = 0;
52661 void *argp1 = 0 ;
52662 int res1 = 0 ;
52663 PyObject * obj0 = 0 ;
52664 int result;
52665
52666 if (!PyArg_UnpackTuple(args, "SequenceVarContainer_Size", 1, 1, &obj0)) SWIG_fail;
52668 if (!SWIG_IsOK(res1)) {
52669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarContainer_Size" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > const *""'");
52670 }
52672 {
52673 try {
52675 }
52676 catch (Swig::DirectorException &e) {
52677 SWIG_fail;
52678 }
52679 }
52680 resultobj = SWIG_From_int(static_cast< int >(result));
52681 return resultobj;
52682fail:
52683 return NULL;
52684}
52685
52686
52687SWIGINTERN PyObject *_wrap_SequenceVarContainer_Store(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52688 PyObject *resultobj = 0;
52690 void *argp1 = 0 ;
52691 int res1 = 0 ;
52692 PyObject * obj0 = 0 ;
52693
52694 if (!PyArg_UnpackTuple(args, "SequenceVarContainer_Store", 1, 1, &obj0)) SWIG_fail;
52696 if (!SWIG_IsOK(res1)) {
52697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarContainer_Store" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > *""'");
52698 }
52700 {
52701 try {
52702 (arg1)->Store();
52703 }
52704 catch (Swig::DirectorException &e) {
52705 SWIG_fail;
52706 }
52707 }
52708 resultobj = SWIG_Py_Void();
52709 return resultobj;
52710fail:
52711 return NULL;
52712}
52713
52714
52715SWIGINTERN PyObject *_wrap_SequenceVarContainer_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52716 PyObject *resultobj = 0;
52718 void *argp1 = 0 ;
52719 int res1 = 0 ;
52720 PyObject * obj0 = 0 ;
52721
52722 if (!PyArg_UnpackTuple(args, "SequenceVarContainer_Restore", 1, 1, &obj0)) SWIG_fail;
52724 if (!SWIG_IsOK(res1)) {
52725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarContainer_Restore" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > *""'");
52726 }
52728 {
52729 try {
52730 (arg1)->Restore();
52731 }
52732 catch (Swig::DirectorException &e) {
52733 SWIG_fail;
52734 }
52735 }
52736 resultobj = SWIG_Py_Void();
52737 return resultobj;
52738fail:
52739 return NULL;
52740}
52741
52742
52743SWIGINTERN PyObject *_wrap_SequenceVarContainer___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52744 PyObject *resultobj = 0;
52747 void *argp1 = 0 ;
52748 int res1 = 0 ;
52749 void *argp2 = 0 ;
52750 int res2 = 0 ;
52751 PyObject * obj0 = 0 ;
52752 PyObject * obj1 = 0 ;
52753 bool result;
52754
52755 if (!PyArg_UnpackTuple(args, "SequenceVarContainer___eq__", 2, 2, &obj0, &obj1)) SWIG_fail;
52757 if (!SWIG_IsOK(res1)) {
52758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarContainer___eq__" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > const *""'");
52759 }
52762 if (!SWIG_IsOK(res2)) {
52763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SequenceVarContainer___eq__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > const &""'");
52764 }
52765 if (!argp2) {
52766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SequenceVarContainer___eq__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > const &""'");
52767 }
52769 {
52770 try {
52772 }
52773 catch (Swig::DirectorException &e) {
52774 SWIG_fail;
52775 }
52776 }
52777 resultobj = SWIG_From_bool(static_cast< bool >(result));
52778 return resultobj;
52779fail:
52780 PyErr_Clear();
52781 Py_INCREF(Py_NotImplemented);
52782 return Py_NotImplemented;
52783}
52784
52785
52786SWIGINTERN PyObject *_wrap_SequenceVarContainer___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52787 PyObject *resultobj = 0;
52790 void *argp1 = 0 ;
52791 int res1 = 0 ;
52792 void *argp2 = 0 ;
52793 int res2 = 0 ;
52794 PyObject * obj0 = 0 ;
52795 PyObject * obj1 = 0 ;
52796 bool result;
52797
52798 if (!PyArg_UnpackTuple(args, "SequenceVarContainer___ne__", 2, 2, &obj0, &obj1)) SWIG_fail;
52800 if (!SWIG_IsOK(res1)) {
52801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarContainer___ne__" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > const *""'");
52802 }
52805 if (!SWIG_IsOK(res2)) {
52806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SequenceVarContainer___ne__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > const &""'");
52807 }
52808 if (!argp2) {
52809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SequenceVarContainer___ne__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > const &""'");
52810 }
52812 {
52813 try {
52815 }
52816 catch (Swig::DirectorException &e) {
52817 SWIG_fail;
52818 }
52819 }
52820 resultobj = SWIG_From_bool(static_cast< bool >(result));
52821 return resultobj;
52822fail:
52823 PyErr_Clear();
52824 Py_INCREF(Py_NotImplemented);
52825 return Py_NotImplemented;
52826}
52827
52828
52829SWIGINTERN PyObject *_wrap_delete_SequenceVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52830 PyObject *resultobj = 0;
52832 void *argp1 = 0 ;
52833 int res1 = 0 ;
52834 PyObject * obj0 = 0 ;
52835
52836 if (!PyArg_UnpackTuple(args, "delete_SequenceVarContainer", 1, 1, &obj0)) SWIG_fail;
52838 if (!SWIG_IsOK(res1)) {
52839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SequenceVarContainer" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > *""'");
52840 }
52842 {
52843 try {
52844 delete arg1;
52845 }
52846 catch (Swig::DirectorException &e) {
52847 SWIG_fail;
52848 }
52849 }
52850 resultobj = SWIG_Py_Void();
52851 return resultobj;
52852fail:
52853 return NULL;
52854}
52855
52856
52857SWIGINTERN PyObject *SequenceVarContainer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52858 PyObject *obj;
52859 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
52861 return SWIG_Py_Void();
52862}
52863
52864SWIGINTERN PyObject *_wrap_LocalSearchOperator_NextNeighbor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52865 PyObject *resultobj = 0;
52869 void *argp1 = 0 ;
52870 int res1 = 0 ;
52871 void *argp2 = 0 ;
52872 int res2 = 0 ;
52873 void *argp3 = 0 ;
52874 int res3 = 0 ;
52875 PyObject * obj0 = 0 ;
52876 PyObject * obj1 = 0 ;
52877 PyObject * obj2 = 0 ;
52878 Swig::Director *director = 0;
52879 bool upcall = false;
52880 bool result;
52881
52882 if (!PyArg_UnpackTuple(args, "LocalSearchOperator_NextNeighbor", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
52884 if (!SWIG_IsOK(res1)) {
52885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalSearchOperator_NextNeighbor" "', argument " "1"" of type '" "operations_research::LocalSearchOperator *""'");
52886 }
52887 arg1 = reinterpret_cast< operations_research::LocalSearchOperator * >(argp1);
52889 if (!SWIG_IsOK(res2)) {
52890 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LocalSearchOperator_NextNeighbor" "', argument " "2"" of type '" "operations_research::Assignment *""'");
52891 }
52892 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
52894 if (!SWIG_IsOK(res3)) {
52895 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LocalSearchOperator_NextNeighbor" "', argument " "3"" of type '" "operations_research::Assignment *""'");
52896 }
52897 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
52898 director = SWIG_DIRECTOR_CAST(arg1);
52899 upcall = (director && (director->swig_get_self()==obj0));
52900 try {
52901 {
52902 try {
52903 if (upcall) {
52904 Swig::DirectorPureVirtualException::raise("operations_research::LocalSearchOperator::MakeNextNeighbor");
52905 } else {
52906 result = (bool)(arg1)->MakeNextNeighbor(arg2,arg3);
52907 }
52908 }
52909 catch (Swig::DirectorException &e) {
52910 SWIG_fail;
52911 }
52912 }
52913 } catch (Swig::DirectorException&) {
52914 SWIG_fail;
52915 }
52916 resultobj = SWIG_From_bool(static_cast< bool >(result));
52917 return resultobj;
52918fail:
52919 return NULL;
52920}
52921
52922
52923SWIGINTERN PyObject *_wrap_LocalSearchOperator_Start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52924 PyObject *resultobj = 0;
52927 void *argp1 = 0 ;
52928 int res1 = 0 ;
52929 void *argp2 = 0 ;
52930 int res2 = 0 ;
52931 PyObject * obj0 = 0 ;
52932 PyObject * obj1 = 0 ;
52933 Swig::Director *director = 0;
52934 bool upcall = false;
52935
52936 if (!PyArg_UnpackTuple(args, "LocalSearchOperator_Start", 2, 2, &obj0, &obj1)) SWIG_fail;
52938 if (!SWIG_IsOK(res1)) {
52939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalSearchOperator_Start" "', argument " "1"" of type '" "operations_research::LocalSearchOperator *""'");
52940 }
52941 arg1 = reinterpret_cast< operations_research::LocalSearchOperator * >(argp1);
52943 if (!SWIG_IsOK(res2)) {
52944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LocalSearchOperator_Start" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
52945 }
52946 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
52947 director = SWIG_DIRECTOR_CAST(arg1);
52948 upcall = (director && (director->swig_get_self()==obj0));
52949 try {
52950 {
52951 try {
52952 if (upcall) {
52953 Swig::DirectorPureVirtualException::raise("operations_research::LocalSearchOperator::Start");
52954 } else {
52955 (arg1)->Start((operations_research::Assignment const *)arg2);
52956 }
52957 }
52958 catch (Swig::DirectorException &e) {
52959 SWIG_fail;
52960 }
52961 }
52962 } catch (Swig::DirectorException&) {
52963 SWIG_fail;
52964 }
52965 resultobj = SWIG_Py_Void();
52966 return resultobj;
52967fail:
52968 return NULL;
52969}
52970
52971
52972SWIGINTERN PyObject *_wrap_disown_LocalSearchOperator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52973 PyObject *resultobj = 0;
52975 void *argp1 = 0 ;
52976 int res1 = 0 ;
52977 PyObject * obj0 = 0 ;
52978
52979 if (!PyArg_UnpackTuple(args, "disown_LocalSearchOperator", 1, 1, &obj0)) SWIG_fail;
52981 if (!SWIG_IsOK(res1)) {
52982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_LocalSearchOperator" "', argument " "1"" of type '" "operations_research::LocalSearchOperator *""'");
52983 }
52984 arg1 = reinterpret_cast< operations_research::LocalSearchOperator * >(argp1);
52985 {
52986 Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
52987 if (director) director->swig_disown();
52988 }
52989
52990 resultobj = SWIG_Py_Void();
52991 return resultobj;
52992fail:
52993 return NULL;
52994}
52995
52996
52997SWIGINTERN PyObject *LocalSearchOperator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52998 PyObject *obj;
52999 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
53001 return SWIG_Py_Void();
53002}
53003
53005 PyObject *resultobj = 0;
53008 void *argp1 = 0 ;
53009 int res1 = 0 ;
53010 void *argp2 = 0 ;
53011 int res2 = 0 ;
53012 PyObject * obj0 = 0 ;
53013 PyObject * obj1 = 0 ;
53014
53015 if (!PyArg_UnpackTuple(args, "IntVarLocalSearchOperatorTemplate_Start", 2, 2, &obj0, &obj1)) SWIG_fail;
53017 if (!SWIG_IsOK(res1)) {
53018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarLocalSearchOperatorTemplate_Start" "', argument " "1"" of type '" "operations_research::VarLocalSearchOperator< operations_research::IntVar,int64_t,operations_research::IntVarLocalSearchHandler > *""'");
53019 }
53022 if (!SWIG_IsOK(res2)) {
53023 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntVarLocalSearchOperatorTemplate_Start" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
53024 }
53025 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
53026 {
53027 try {
53028 (arg1)->Start((operations_research::Assignment const *)arg2);
53029 }
53030 catch (Swig::DirectorException &e) {
53031 SWIG_fail;
53032 }
53033 }
53034 resultobj = SWIG_Py_Void();
53035 return resultobj;
53036fail:
53037 return NULL;
53038}
53039
53040
53042 PyObject *resultobj = 0;
53044 void *argp1 = 0 ;
53045 int res1 = 0 ;
53046 PyObject * obj0 = 0 ;
53047 Swig::Director *director = 0;
53048 bool upcall = false;
53049 bool result;
53050
53051 if (!PyArg_UnpackTuple(args, "IntVarLocalSearchOperatorTemplate_IsIncremental", 1, 1, &obj0)) SWIG_fail;
53053 if (!SWIG_IsOK(res1)) {
53054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarLocalSearchOperatorTemplate_IsIncremental" "', argument " "1"" of type '" "operations_research::VarLocalSearchOperator< operations_research::IntVar,int64_t,operations_research::IntVarLocalSearchHandler > const *""'");
53055 }
53057 director = SWIG_DIRECTOR_CAST(arg1);
53058 upcall = (director && (director->swig_get_self()==obj0));
53059 try {
53060 {
53061 try {
53062 if (upcall) {
53064 } else {
53066 }
53067 }
53068 catch (Swig::DirectorException &e) {
53069 SWIG_fail;
53070 }
53071 }
53072 } catch (Swig::DirectorException&) {
53073 SWIG_fail;
53074 }
53075 resultobj = SWIG_From_bool(static_cast< bool >(result));
53076 return resultobj;
53077fail:
53078 return NULL;
53079}
53080
53081
53083 PyObject *resultobj = 0;
53085 void *argp1 = 0 ;
53086 int res1 = 0 ;
53087 PyObject * obj0 = 0 ;
53088 int result;
53089
53090 if (!PyArg_UnpackTuple(args, "IntVarLocalSearchOperatorTemplate_Size", 1, 1, &obj0)) SWIG_fail;
53092 if (!SWIG_IsOK(res1)) {
53093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarLocalSearchOperatorTemplate_Size" "', argument " "1"" of type '" "operations_research::VarLocalSearchOperator< operations_research::IntVar,int64_t,operations_research::IntVarLocalSearchHandler > const *""'");
53094 }
53096 {
53097 try {
53099 }
53100 catch (Swig::DirectorException &e) {
53101 SWIG_fail;
53102 }
53103 }
53104 resultobj = SWIG_From_int(static_cast< int >(result));
53105 return resultobj;
53106fail:
53107 return NULL;
53108}
53109
53110
53112 PyObject *resultobj = 0;
53114 int64_t arg2 ;
53115 void *argp1 = 0 ;
53116 int res1 = 0 ;
53117 long val2 ;
53118 int ecode2 = 0 ;
53119 PyObject * obj0 = 0 ;
53120 PyObject * obj1 = 0 ;
53121 long *result = 0 ;
53122
53123 if (!PyArg_UnpackTuple(args, "IntVarLocalSearchOperatorTemplate_Value", 2, 2, &obj0, &obj1)) SWIG_fail;
53125 if (!SWIG_IsOK(res1)) {
53126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarLocalSearchOperatorTemplate_Value" "', argument " "1"" of type '" "operations_research::VarLocalSearchOperator< operations_research::IntVar,int64_t,operations_research::IntVarLocalSearchHandler > const *""'");
53127 }
53129 ecode2 = SWIG_AsVal_long(obj1, &val2);
53130 if (!SWIG_IsOK(ecode2)) {
53131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVarLocalSearchOperatorTemplate_Value" "', argument " "2"" of type '" "int64_t""'");
53132 }
53133 arg2 = static_cast< int64_t >(val2);
53134 {
53135 try {
53137 }
53138 catch (Swig::DirectorException &e) {
53139 SWIG_fail;
53140 }
53141 }
53142 resultobj = SWIG_From_long(static_cast< long >(*result));
53143 return resultobj;
53144fail:
53145 return NULL;
53146}
53147
53148
53150 PyObject *resultobj = 0;
53152 int64_t arg2 ;
53153 void *argp1 = 0 ;
53154 int res1 = 0 ;
53155 long val2 ;
53156 int ecode2 = 0 ;
53157 PyObject * obj0 = 0 ;
53158 PyObject * obj1 = 0 ;
53159 long *result = 0 ;
53160
53161 if (!PyArg_UnpackTuple(args, "IntVarLocalSearchOperatorTemplate_OldValue", 2, 2, &obj0, &obj1)) SWIG_fail;
53163 if (!SWIG_IsOK(res1)) {
53164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarLocalSearchOperatorTemplate_OldValue" "', argument " "1"" of type '" "operations_research::VarLocalSearchOperator< operations_research::IntVar,int64_t,operations_research::IntVarLocalSearchHandler > const *""'");
53165 }
53167 ecode2 = SWIG_AsVal_long(obj1, &val2);
53168 if (!SWIG_IsOK(ecode2)) {
53169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVarLocalSearchOperatorTemplate_OldValue" "', argument " "2"" of type '" "int64_t""'");
53170 }
53171 arg2 = static_cast< int64_t >(val2);
53172 {
53173 try {
53175 }
53176 catch (Swig::DirectorException &e) {
53177 SWIG_fail;
53178 }
53179 }
53180 resultobj = SWIG_From_long(static_cast< long >(*result));
53181 return resultobj;
53182fail:
53183 return NULL;
53184}
53185
53186
53188 PyObject *resultobj = 0;
53190 int64_t arg2 ;
53191 long *arg3 = 0 ;
53192 void *argp1 = 0 ;
53193 int res1 = 0 ;
53194 long val2 ;
53195 int ecode2 = 0 ;
53196 long temp3 ;
53197 long val3 ;
53198 int ecode3 = 0 ;
53199 PyObject * obj0 = 0 ;
53200 PyObject * obj1 = 0 ;
53201 PyObject * obj2 = 0 ;
53202
53203 if (!PyArg_UnpackTuple(args, "IntVarLocalSearchOperatorTemplate_SetValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
53205 if (!SWIG_IsOK(res1)) {
53206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarLocalSearchOperatorTemplate_SetValue" "', argument " "1"" of type '" "operations_research::VarLocalSearchOperator< operations_research::IntVar,int64_t,operations_research::IntVarLocalSearchHandler > *""'");
53207 }
53209 ecode2 = SWIG_AsVal_long(obj1, &val2);
53210 if (!SWIG_IsOK(ecode2)) {
53211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVarLocalSearchOperatorTemplate_SetValue" "', argument " "2"" of type '" "int64_t""'");
53212 }
53213 arg2 = static_cast< int64_t >(val2);
53214 ecode3 = SWIG_AsVal_long(obj2, &val3);
53215 if (!SWIG_IsOK(ecode3)) {
53216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVarLocalSearchOperatorTemplate_SetValue" "', argument " "3"" of type '" "long""'");
53217 }
53218 temp3 = static_cast< long >(val3);
53219 arg3 = &temp3;
53220 {
53221 try {
53222 (arg1)->SetValue(arg2,(long const &)*arg3);
53223 }
53224 catch (Swig::DirectorException &e) {
53225 SWIG_fail;
53226 }
53227 }
53228 resultobj = SWIG_Py_Void();
53229 return resultobj;
53230fail:
53231 return NULL;
53232}
53233
53234
53236 PyObject *resultobj = 0;
53238 void *argp1 = 0 ;
53239 int res1 = 0 ;
53240 PyObject * obj0 = 0 ;
53241 Swig::Director *director = 0;
53242 bool upcall = false;
53243
53244 if (!PyArg_UnpackTuple(args, "IntVarLocalSearchOperatorTemplate_OnStart", 1, 1, &obj0)) SWIG_fail;
53246 if (!SWIG_IsOK(res1)) {
53247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarLocalSearchOperatorTemplate_OnStart" "', argument " "1"" of type '" "operations_research::VarLocalSearchOperator< operations_research::IntVar,int64_t,operations_research::IntVarLocalSearchHandler > *""'");
53248 }
53250 director = SWIG_DIRECTOR_CAST(arg1);
53251 upcall = (director && (director->swig_get_self()==obj0));
53252 try {
53253 {
53254 try {
53255 if (upcall) {
53257 } else {
53258 (arg1)->OnStart();
53259 }
53260 }
53261 catch (Swig::DirectorException &e) {
53262 SWIG_fail;
53263 }
53264 }
53265 } catch (Swig::DirectorException&) {
53266 SWIG_fail;
53267 }
53268 resultobj = SWIG_Py_Void();
53269 return resultobj;
53270fail:
53271 return NULL;
53272}
53273
53274
53276 PyObject *obj;
53277 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
53279 return SWIG_Py_Void();
53280}
53281
53283 PyObject *resultobj = 0;
53284 PyObject *arg1 = (PyObject *) 0 ;
53285 PyObject * obj0 = 0 ;
53287
53288 if (!PyArg_UnpackTuple(args, "new_IntVarLocalSearchOperator", 1, 1, &obj0)) SWIG_fail;
53289 arg1 = obj0;
53290 {
53291 try {
53292 if ( arg1 != Py_None ) {
53293 /* subclassed */
53295 } else {
53297 }
53298 }
53299 catch (Swig::DirectorException &e) {
53300 SWIG_fail;
53301 }
53302 }
53304 return resultobj;
53305fail:
53306 return NULL;
53307}
53308
53309
53311 PyObject *resultobj = 0;
53312 PyObject *arg1 = (PyObject *) 0 ;
53313 std::vector< operations_research::IntVar * > *arg2 = 0 ;
53314 bool arg3 ;
53315 std::vector< operations_research::IntVar * > temp2 ;
53316 bool val3 ;
53317 int ecode3 = 0 ;
53318 PyObject * obj0 = 0 ;
53319 PyObject * obj1 = 0 ;
53320 PyObject * obj2 = 0 ;
53322
53323 if (!PyArg_UnpackTuple(args, "new_IntVarLocalSearchOperator", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
53324 arg1 = obj0;
53325 {
53326 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
53327 if (!PyErr_Occurred())
53328 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
53329 return NULL;
53330 }
53331 arg2 = &temp2;
53332 }
53333 ecode3 = SWIG_AsVal_bool(obj2, &val3);
53334 if (!SWIG_IsOK(ecode3)) {
53335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_IntVarLocalSearchOperator" "', argument " "3"" of type '" "bool""'");
53336 }
53337 arg3 = static_cast< bool >(val3);
53338 {
53339 try {
53340 if ( arg1 != Py_None ) {
53341 /* subclassed */
53342 result = (operations_research::IntVarLocalSearchOperator *)new SwigDirector_IntVarLocalSearchOperator(arg1,(std::vector< operations_research::IntVar * > const &)*arg2,arg3);
53343 } else {
53344 result = (operations_research::IntVarLocalSearchOperator *)new operations_research::IntVarLocalSearchOperator((std::vector< operations_research::IntVar * > const &)*arg2,arg3);
53345 }
53346 }
53347 catch (Swig::DirectorException &e) {
53348 SWIG_fail;
53349 }
53350 }
53352 return resultobj;
53353fail:
53354 return NULL;
53355}
53356
53357
53359 PyObject *resultobj = 0;
53360 PyObject *arg1 = (PyObject *) 0 ;
53361 std::vector< operations_research::IntVar * > *arg2 = 0 ;
53362 std::vector< operations_research::IntVar * > temp2 ;
53363 PyObject * obj0 = 0 ;
53364 PyObject * obj1 = 0 ;
53366
53367 if (!PyArg_UnpackTuple(args, "new_IntVarLocalSearchOperator", 2, 2, &obj0, &obj1)) SWIG_fail;
53368 arg1 = obj0;
53369 {
53370 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
53371 if (!PyErr_Occurred())
53372 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
53373 return NULL;
53374 }
53375 arg2 = &temp2;
53376 }
53377 {
53378 try {
53379 if ( arg1 != Py_None ) {
53380 /* subclassed */
53381 result = (operations_research::IntVarLocalSearchOperator *)new SwigDirector_IntVarLocalSearchOperator(arg1,(std::vector< operations_research::IntVar * > const &)*arg2);
53382 } else {
53383 result = (operations_research::IntVarLocalSearchOperator *)new operations_research::IntVarLocalSearchOperator((std::vector< operations_research::IntVar * > const &)*arg2);
53384 }
53385 }
53386 catch (Swig::DirectorException &e) {
53387 SWIG_fail;
53388 }
53389 }
53391 return resultobj;
53392fail:
53393 return NULL;
53394}
53395
53396
53397SWIGINTERN PyObject *_wrap_new_IntVarLocalSearchOperator(PyObject *self, PyObject *args) {
53398 Py_ssize_t argc;
53399 PyObject *argv[4] = {
53400 0
53401 };
53402 Py_ssize_t ii;
53403
53404 if (!PyTuple_Check(args)) SWIG_fail;
53405 argc = PyObject_Length(args);
53406 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
53407 argv[ii] = PyTuple_GET_ITEM(args,ii);
53408 }
53409 if (argc == 1) {
53410 int _v;
53411 _v = (argv[0] != 0);
53412 if (_v) {
53414 }
53415 }
53416 if (argc == 2) {
53417 int _v;
53418 _v = (argv[0] != 0);
53419 if (_v) {
53420 {
53421 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
53422 _v = 0;
53423 } else {
53424 const bool is_tuple = PyTuple_Check(argv[1]);
53425 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
53426 size_t i = 0;
53427 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
53428 :PyList_GetItem(argv[1], i))) {
53429 ++i;
53430 }
53431 _v = i == size;
53432 }
53433 }
53434 if (_v) {
53436 }
53437 }
53438 }
53439 if (argc == 3) {
53440 int _v;
53441 _v = (argv[0] != 0);
53442 if (_v) {
53443 {
53444 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
53445 _v = 0;
53446 } else {
53447 const bool is_tuple = PyTuple_Check(argv[1]);
53448 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
53449 size_t i = 0;
53450 while (i < size && CanConvertToIntVar(is_tuple ? PyTuple_GetItem(argv[1], i)
53451 :PyList_GetItem(argv[1], i))) {
53452 ++i;
53453 }
53454 _v = i == size;
53455 }
53456 }
53457 if (_v) {
53458 {
53459 int res = SWIG_AsVal_bool(argv[2], NULL);
53460 _v = SWIG_CheckState(res);
53461 }
53462 if (_v) {
53464 }
53465 }
53466 }
53467 }
53468
53469fail:
53470 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_IntVarLocalSearchOperator'.\n"
53471 " Possible C/C++ prototypes are:\n"
53472 " operations_research::IntVarLocalSearchOperator::IntVarLocalSearchOperator()\n"
53473 " operations_research::IntVarLocalSearchOperator::IntVarLocalSearchOperator(std::vector< operations_research::IntVar * > const &,bool)\n"
53474 " operations_research::IntVarLocalSearchOperator::IntVarLocalSearchOperator(PyObject *,std::vector< operations_research::IntVar * > const &)\n");
53475 return 0;
53476}
53477
53478
53479SWIGINTERN PyObject *_wrap_delete_IntVarLocalSearchOperator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53480 PyObject *resultobj = 0;
53482 void *argp1 = 0 ;
53483 int res1 = 0 ;
53484 PyObject * obj0 = 0 ;
53485
53486 if (!PyArg_UnpackTuple(args, "delete_IntVarLocalSearchOperator", 1, 1, &obj0)) SWIG_fail;
53488 if (!SWIG_IsOK(res1)) {
53489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntVarLocalSearchOperator" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchOperator *""'");
53490 }
53491 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchOperator * >(argp1);
53492 {
53493 try {
53494 delete arg1;
53495 }
53496 catch (Swig::DirectorException &e) {
53497 SWIG_fail;
53498 }
53499 }
53500 resultobj = SWIG_Py_Void();
53501 return resultobj;
53502fail:
53503 return NULL;
53504}
53505
53506
53508 PyObject *resultobj = 0;
53512 void *argp1 = 0 ;
53513 int res1 = 0 ;
53514 void *argp2 = 0 ;
53515 int res2 = 0 ;
53516 void *argp3 = 0 ;
53517 int res3 = 0 ;
53518 PyObject * obj0 = 0 ;
53519 PyObject * obj1 = 0 ;
53520 PyObject * obj2 = 0 ;
53521 Swig::Director *director = 0;
53522 bool upcall = false;
53523 bool result;
53524
53525 if (!PyArg_UnpackTuple(args, "IntVarLocalSearchOperator_NextNeighbor", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
53527 if (!SWIG_IsOK(res1)) {
53528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarLocalSearchOperator_NextNeighbor" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchOperator *""'");
53529 }
53530 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchOperator * >(argp1);
53532 if (!SWIG_IsOK(res2)) {
53533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntVarLocalSearchOperator_NextNeighbor" "', argument " "2"" of type '" "operations_research::Assignment *""'");
53534 }
53535 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
53537 if (!SWIG_IsOK(res3)) {
53538 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntVarLocalSearchOperator_NextNeighbor" "', argument " "3"" of type '" "operations_research::Assignment *""'");
53539 }
53540 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
53541 director = SWIG_DIRECTOR_CAST(arg1);
53542 upcall = (director && (director->swig_get_self()==obj0));
53543 try {
53544 {
53545 try {
53546 if (upcall) {
53547 result = (bool)(arg1)->operations_research::IntVarLocalSearchOperator::MakeNextNeighbor(arg2,arg3);
53548 } else {
53549 result = (bool)(arg1)->MakeNextNeighbor(arg2,arg3);
53550 }
53551 }
53552 catch (Swig::DirectorException &e) {
53553 SWIG_fail;
53554 }
53555 }
53556 } catch (Swig::DirectorException&) {
53557 SWIG_fail;
53558 }
53559 resultobj = SWIG_From_bool(static_cast< bool >(result));
53560 return resultobj;
53561fail:
53562 return NULL;
53563}
53564
53565
53567 PyObject *resultobj = 0;
53569 void *argp1 = 0 ;
53570 int res1 = 0 ;
53571 PyObject * obj0 = 0 ;
53572 Swig::Director *director = 0;
53573 bool upcall = false;
53575 bool result;
53576
53577 if (!PyArg_UnpackTuple(args, "IntVarLocalSearchOperator_OneNeighbor", 1, 1, &obj0)) SWIG_fail;
53579 if (!SWIG_IsOK(res1)) {
53580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarLocalSearchOperator_OneNeighbor" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchOperator *""'");
53581 }
53582 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchOperator * >(argp1);
53583 director = SWIG_DIRECTOR_CAST(arg1);
53584 if (!director || !(director->swig_get_inner("MakeOneNeighbor"))) {
53585 SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing protected member MakeOneNeighbor");
53586 SWIG_fail;
53587 }
53588 upcall = (director && (director->swig_get_self()==obj0));
53589 try {
53590 darg = dynamic_cast<SwigDirector_IntVarLocalSearchOperator *>(arg1);
53591 {
53592 try {
53593 if (upcall) {
53594 result = (bool)(darg)->MakeOneNeighborSwigPublic();
53595 } else {
53596 result = (bool)(darg)->MakeOneNeighbor();
53597 }
53598 }
53599 catch (Swig::DirectorException &e) {
53600 SWIG_fail;
53601 }
53602 }
53603 } catch (Swig::DirectorException&) {
53604 SWIG_fail;
53605 }
53606 resultobj = SWIG_From_bool(static_cast< bool >(result));
53607 return resultobj;
53608fail:
53609 return NULL;
53610}
53611
53612
53613SWIGINTERN PyObject *_wrap_disown_IntVarLocalSearchOperator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53614 PyObject *resultobj = 0;
53616 void *argp1 = 0 ;
53617 int res1 = 0 ;
53618 PyObject * obj0 = 0 ;
53619
53620 if (!PyArg_UnpackTuple(args, "disown_IntVarLocalSearchOperator", 1, 1, &obj0)) SWIG_fail;
53622 if (!SWIG_IsOK(res1)) {
53623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_IntVarLocalSearchOperator" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchOperator *""'");
53624 }
53625 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchOperator * >(argp1);
53626 {
53627 Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
53628 if (director) director->swig_disown();
53629 }
53630
53631 resultobj = SWIG_Py_Void();
53632 return resultobj;
53633fail:
53634 return NULL;
53635}
53636
53637
53638SWIGINTERN PyObject *IntVarLocalSearchOperator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53639 PyObject *obj;
53640 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
53642 return SWIG_Py_Void();
53643}
53644
53645SWIGINTERN PyObject *IntVarLocalSearchOperator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53646 return SWIG_Python_InitShadowInstance(args);
53647}
53648
53650 PyObject *resultobj = 0;
53653 void *argp1 = 0 ;
53654 int res1 = 0 ;
53655 void *argp2 = 0 ;
53656 int res2 = 0 ;
53657 PyObject * obj0 = 0 ;
53658 PyObject * obj1 = 0 ;
53659
53660 if (!PyArg_UnpackTuple(args, "SequenceVarLocalSearchOperatorTemplate_Start", 2, 2, &obj0, &obj1)) SWIG_fail;
53662 if (!SWIG_IsOK(res1)) {
53663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarLocalSearchOperatorTemplate_Start" "', argument " "1"" of type '" "operations_research::VarLocalSearchOperator< operations_research::SequenceVar,std::vector< int >,operations_research::SequenceVarLocalSearchHandler > *""'");
53664 }
53667 if (!SWIG_IsOK(res2)) {
53668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SequenceVarLocalSearchOperatorTemplate_Start" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
53669 }
53670 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
53671 {
53672 try {
53673 (arg1)->Start((operations_research::Assignment const *)arg2);
53674 }
53675 catch (Swig::DirectorException &e) {
53676 SWIG_fail;
53677 }
53678 }
53679 resultobj = SWIG_Py_Void();
53680 return resultobj;
53681fail:
53682 return NULL;
53683}
53684
53685
53687 PyObject *resultobj = 0;
53689 void *argp1 = 0 ;
53690 int res1 = 0 ;
53691 PyObject * obj0 = 0 ;
53692 bool result;
53693
53694 if (!PyArg_UnpackTuple(args, "SequenceVarLocalSearchOperatorTemplate_IsIncremental", 1, 1, &obj0)) SWIG_fail;
53696 if (!SWIG_IsOK(res1)) {
53697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarLocalSearchOperatorTemplate_IsIncremental" "', argument " "1"" of type '" "operations_research::VarLocalSearchOperator< operations_research::SequenceVar,std::vector< int >,operations_research::SequenceVarLocalSearchHandler > const *""'");
53698 }
53700 {
53701 try {
53703 }
53704 catch (Swig::DirectorException &e) {
53705 SWIG_fail;
53706 }
53707 }
53708 resultobj = SWIG_From_bool(static_cast< bool >(result));
53709 return resultobj;
53710fail:
53711 return NULL;
53712}
53713
53714
53716 PyObject *resultobj = 0;
53718 void *argp1 = 0 ;
53719 int res1 = 0 ;
53720 PyObject * obj0 = 0 ;
53721 int result;
53722
53723 if (!PyArg_UnpackTuple(args, "SequenceVarLocalSearchOperatorTemplate_Size", 1, 1, &obj0)) SWIG_fail;
53725 if (!SWIG_IsOK(res1)) {
53726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarLocalSearchOperatorTemplate_Size" "', argument " "1"" of type '" "operations_research::VarLocalSearchOperator< operations_research::SequenceVar,std::vector< int >,operations_research::SequenceVarLocalSearchHandler > const *""'");
53727 }
53729 {
53730 try {
53732 }
53733 catch (Swig::DirectorException &e) {
53734 SWIG_fail;
53735 }
53736 }
53737 resultobj = SWIG_From_int(static_cast< int >(result));
53738 return resultobj;
53739fail:
53740 return NULL;
53741}
53742
53743
53745 PyObject *resultobj = 0;
53747 int64_t arg2 ;
53748 void *argp1 = 0 ;
53749 int res1 = 0 ;
53750 long val2 ;
53751 int ecode2 = 0 ;
53752 PyObject * obj0 = 0 ;
53753 PyObject * obj1 = 0 ;
53754 std::vector< int > *result = 0 ;
53755
53756 if (!PyArg_UnpackTuple(args, "SequenceVarLocalSearchOperatorTemplate_Value", 2, 2, &obj0, &obj1)) SWIG_fail;
53758 if (!SWIG_IsOK(res1)) {
53759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarLocalSearchOperatorTemplate_Value" "', argument " "1"" of type '" "operations_research::VarLocalSearchOperator< operations_research::SequenceVar,std::vector< int >,operations_research::SequenceVarLocalSearchHandler > const *""'");
53760 }
53762 ecode2 = SWIG_AsVal_long(obj1, &val2);
53763 if (!SWIG_IsOK(ecode2)) {
53764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SequenceVarLocalSearchOperatorTemplate_Value" "', argument " "2"" of type '" "int64_t""'");
53765 }
53766 arg2 = static_cast< int64_t >(val2);
53767 {
53768 try {
53769 result = (std::vector< int > *) &((operations_research::VarLocalSearchOperator< operations_research::SequenceVar,std::vector< int >,operations_research::SequenceVarLocalSearchHandler > const *)arg1)->Value(arg2);
53770 }
53771 catch (Swig::DirectorException &e) {
53772 SWIG_fail;
53773 }
53774 }
53775 {
53776 resultobj = vector_output_helper(result, &PyInt_FromLong);
53777 }
53778 return resultobj;
53779fail:
53780 return NULL;
53781}
53782
53783
53785 PyObject *resultobj = 0;
53787 int64_t arg2 ;
53788 void *argp1 = 0 ;
53789 int res1 = 0 ;
53790 long val2 ;
53791 int ecode2 = 0 ;
53792 PyObject * obj0 = 0 ;
53793 PyObject * obj1 = 0 ;
53794 std::vector< int > *result = 0 ;
53795
53796 if (!PyArg_UnpackTuple(args, "SequenceVarLocalSearchOperatorTemplate_OldValue", 2, 2, &obj0, &obj1)) SWIG_fail;
53798 if (!SWIG_IsOK(res1)) {
53799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarLocalSearchOperatorTemplate_OldValue" "', argument " "1"" of type '" "operations_research::VarLocalSearchOperator< operations_research::SequenceVar,std::vector< int >,operations_research::SequenceVarLocalSearchHandler > const *""'");
53800 }
53802 ecode2 = SWIG_AsVal_long(obj1, &val2);
53803 if (!SWIG_IsOK(ecode2)) {
53804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SequenceVarLocalSearchOperatorTemplate_OldValue" "', argument " "2"" of type '" "int64_t""'");
53805 }
53806 arg2 = static_cast< int64_t >(val2);
53807 {
53808 try {
53809 result = (std::vector< int > *) &((operations_research::VarLocalSearchOperator< operations_research::SequenceVar,std::vector< int >,operations_research::SequenceVarLocalSearchHandler > const *)arg1)->OldValue(arg2);
53810 }
53811 catch (Swig::DirectorException &e) {
53812 SWIG_fail;
53813 }
53814 }
53815 {
53816 resultobj = vector_output_helper(result, &PyInt_FromLong);
53817 }
53818 return resultobj;
53819fail:
53820 return NULL;
53821}
53822
53823
53825 PyObject *resultobj = 0;
53827 int64_t arg2 ;
53828 std::vector< int > *arg3 = 0 ;
53829 void *argp1 = 0 ;
53830 int res1 = 0 ;
53831 long val2 ;
53832 int ecode2 = 0 ;
53833 std::vector< int > temp3 ;
53834 PyObject * obj0 = 0 ;
53835 PyObject * obj1 = 0 ;
53836 PyObject * obj2 = 0 ;
53837
53838 if (!PyArg_UnpackTuple(args, "SequenceVarLocalSearchOperatorTemplate_SetValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
53840 if (!SWIG_IsOK(res1)) {
53841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarLocalSearchOperatorTemplate_SetValue" "', argument " "1"" of type '" "operations_research::VarLocalSearchOperator< operations_research::SequenceVar,std::vector< int >,operations_research::SequenceVarLocalSearchHandler > *""'");
53842 }
53844 ecode2 = SWIG_AsVal_long(obj1, &val2);
53845 if (!SWIG_IsOK(ecode2)) {
53846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SequenceVarLocalSearchOperatorTemplate_SetValue" "', argument " "2"" of type '" "int64_t""'");
53847 }
53848 arg2 = static_cast< int64_t >(val2);
53849 {
53850 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
53851 if (!PyErr_Occurred())
53852 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
53853 return NULL;
53854 }
53855 arg3 = &temp3;
53856 }
53857 {
53858 try {
53859 (arg1)->SetValue(arg2,(std::vector< int > const &)*arg3);
53860 }
53861 catch (Swig::DirectorException &e) {
53862 SWIG_fail;
53863 }
53864 }
53865 resultobj = SWIG_Py_Void();
53866 return resultobj;
53867fail:
53868 return NULL;
53869}
53870
53871
53873 PyObject *resultobj = 0;
53875 void *argp1 = 0 ;
53876 int res1 = 0 ;
53877 PyObject * obj0 = 0 ;
53878
53879 if (!PyArg_UnpackTuple(args, "SequenceVarLocalSearchOperatorTemplate_OnStart", 1, 1, &obj0)) SWIG_fail;
53881 if (!SWIG_IsOK(res1)) {
53882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceVarLocalSearchOperatorTemplate_OnStart" "', argument " "1"" of type '" "operations_research::VarLocalSearchOperator< operations_research::SequenceVar,std::vector< int >,operations_research::SequenceVarLocalSearchHandler > *""'");
53883 }
53885 {
53886 try {
53887 (arg1)->OnStart();
53888 }
53889 catch (Swig::DirectorException &e) {
53890 SWIG_fail;
53891 }
53892 }
53893 resultobj = SWIG_Py_Void();
53894 return resultobj;
53895fail:
53896 return NULL;
53897}
53898
53899
53901 PyObject *obj;
53902 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
53904 return SWIG_Py_Void();
53905}
53906
53908 PyObject *obj;
53909 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
53911 return SWIG_Py_Void();
53912}
53913
53914SWIGINTERN PyObject *_wrap_new_BaseLns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53915 PyObject *resultobj = 0;
53916 PyObject *arg1 = (PyObject *) 0 ;
53917 std::vector< operations_research::IntVar * > *arg2 = 0 ;
53918 std::vector< operations_research::IntVar * > temp2 ;
53919 PyObject * obj0 = 0 ;
53920 PyObject * obj1 = 0 ;
53921 operations_research::BaseLns *result = 0 ;
53922
53923 if (!PyArg_UnpackTuple(args, "new_BaseLns", 2, 2, &obj0, &obj1)) SWIG_fail;
53924 arg1 = obj0;
53925 {
53926 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
53927 if (!PyErr_Occurred())
53928 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
53929 return NULL;
53930 }
53931 arg2 = &temp2;
53932 }
53933 {
53934 try {
53935 if ( arg1 != Py_None ) {
53936 /* subclassed */
53937 result = (operations_research::BaseLns *)new SwigDirector_BaseLns(arg1,(std::vector< operations_research::IntVar * > const &)*arg2);
53938 } else {
53939 SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
53940 SWIG_fail;
53941 }
53942 }
53943 catch (Swig::DirectorException &e) {
53944 SWIG_fail;
53945 }
53946 }
53948 return resultobj;
53949fail:
53950 return NULL;
53951}
53952
53953
53954SWIGINTERN PyObject *_wrap_delete_BaseLns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53955 PyObject *resultobj = 0;
53957 void *argp1 = 0 ;
53958 int res1 = 0 ;
53959 PyObject * obj0 = 0 ;
53960
53961 if (!PyArg_UnpackTuple(args, "delete_BaseLns", 1, 1, &obj0)) SWIG_fail;
53963 if (!SWIG_IsOK(res1)) {
53964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BaseLns" "', argument " "1"" of type '" "operations_research::BaseLns *""'");
53965 }
53966 arg1 = reinterpret_cast< operations_research::BaseLns * >(argp1);
53967 {
53968 try {
53969 delete arg1;
53970 }
53971 catch (Swig::DirectorException &e) {
53972 SWIG_fail;
53973 }
53974 }
53975 resultobj = SWIG_Py_Void();
53976 return resultobj;
53977fail:
53978 return NULL;
53979}
53980
53981
53982SWIGINTERN PyObject *_wrap_BaseLns_InitFragments(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53983 PyObject *resultobj = 0;
53985 void *argp1 = 0 ;
53986 int res1 = 0 ;
53987 PyObject * obj0 = 0 ;
53988 Swig::Director *director = 0;
53989 bool upcall = false;
53990
53991 if (!PyArg_UnpackTuple(args, "BaseLns_InitFragments", 1, 1, &obj0)) SWIG_fail;
53992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__BaseLns, 0 | 0 );
53993 if (!SWIG_IsOK(res1)) {
53994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BaseLns_InitFragments" "', argument " "1"" of type '" "operations_research::BaseLns *""'");
53995 }
53996 arg1 = reinterpret_cast< operations_research::BaseLns * >(argp1);
53997 director = SWIG_DIRECTOR_CAST(arg1);
53998 upcall = (director && (director->swig_get_self()==obj0));
53999 try {
54000 {
54001 try {
54002 if (upcall) {
54004 } else {
54005 (arg1)->InitFragments();
54006 }
54007 }
54008 catch (Swig::DirectorException &e) {
54009 SWIG_fail;
54010 }
54011 }
54012 } catch (Swig::DirectorException&) {
54013 SWIG_fail;
54014 }
54015 resultobj = SWIG_Py_Void();
54016 return resultobj;
54017fail:
54018 return NULL;
54019}
54020
54021
54022SWIGINTERN PyObject *_wrap_BaseLns_NextFragment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54023 PyObject *resultobj = 0;
54025 void *argp1 = 0 ;
54026 int res1 = 0 ;
54027 PyObject * obj0 = 0 ;
54028 Swig::Director *director = 0;
54029 bool upcall = false;
54030 bool result;
54031
54032 if (!PyArg_UnpackTuple(args, "BaseLns_NextFragment", 1, 1, &obj0)) SWIG_fail;
54033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__BaseLns, 0 | 0 );
54034 if (!SWIG_IsOK(res1)) {
54035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BaseLns_NextFragment" "', argument " "1"" of type '" "operations_research::BaseLns *""'");
54036 }
54037 arg1 = reinterpret_cast< operations_research::BaseLns * >(argp1);
54038 director = SWIG_DIRECTOR_CAST(arg1);
54039 upcall = (director && (director->swig_get_self()==obj0));
54040 try {
54041 {
54042 try {
54043 if (upcall) {
54044 Swig::DirectorPureVirtualException::raise("operations_research::BaseLns::NextFragment");
54045 } else {
54046 result = (bool)(arg1)->NextFragment();
54047 }
54048 }
54049 catch (Swig::DirectorException &e) {
54050 SWIG_fail;
54051 }
54052 }
54053 } catch (Swig::DirectorException&) {
54054 SWIG_fail;
54055 }
54056 resultobj = SWIG_From_bool(static_cast< bool >(result));
54057 return resultobj;
54058fail:
54059 return NULL;
54060}
54061
54062
54063SWIGINTERN PyObject *_wrap_BaseLns_AppendToFragment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54064 PyObject *resultobj = 0;
54066 int arg2 ;
54067 void *argp1 = 0 ;
54068 int res1 = 0 ;
54069 int val2 ;
54070 int ecode2 = 0 ;
54071 PyObject * obj0 = 0 ;
54072 PyObject * obj1 = 0 ;
54073
54074 if (!PyArg_UnpackTuple(args, "BaseLns_AppendToFragment", 2, 2, &obj0, &obj1)) SWIG_fail;
54075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__BaseLns, 0 | 0 );
54076 if (!SWIG_IsOK(res1)) {
54077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BaseLns_AppendToFragment" "', argument " "1"" of type '" "operations_research::BaseLns *""'");
54078 }
54079 arg1 = reinterpret_cast< operations_research::BaseLns * >(argp1);
54080 ecode2 = SWIG_AsVal_int(obj1, &val2);
54081 if (!SWIG_IsOK(ecode2)) {
54082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BaseLns_AppendToFragment" "', argument " "2"" of type '" "int""'");
54083 }
54084 arg2 = static_cast< int >(val2);
54085 {
54086 try {
54087 (arg1)->AppendToFragment(arg2);
54088 }
54089 catch (Swig::DirectorException &e) {
54090 SWIG_fail;
54091 }
54092 }
54093 resultobj = SWIG_Py_Void();
54094 return resultobj;
54095fail:
54096 return NULL;
54097}
54098
54099
54100SWIGINTERN PyObject *_wrap_BaseLns_FragmentSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54101 PyObject *resultobj = 0;
54103 void *argp1 = 0 ;
54104 int res1 = 0 ;
54105 PyObject * obj0 = 0 ;
54106 int result;
54107
54108 if (!PyArg_UnpackTuple(args, "BaseLns_FragmentSize", 1, 1, &obj0)) SWIG_fail;
54109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__BaseLns, 0 | 0 );
54110 if (!SWIG_IsOK(res1)) {
54111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BaseLns_FragmentSize" "', argument " "1"" of type '" "operations_research::BaseLns const *""'");
54112 }
54113 arg1 = reinterpret_cast< operations_research::BaseLns * >(argp1);
54114 {
54115 try {
54116 result = (int)((operations_research::BaseLns const *)arg1)->FragmentSize();
54117 }
54118 catch (Swig::DirectorException &e) {
54119 SWIG_fail;
54120 }
54121 }
54122 resultobj = SWIG_From_int(static_cast< int >(result));
54123 return resultobj;
54124fail:
54125 return NULL;
54126}
54127
54128
54129SWIGINTERN PyObject *_wrap_BaseLns___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54130 PyObject *resultobj = 0;
54132 int arg2 ;
54133 void *argp1 = 0 ;
54134 int res1 = 0 ;
54135 int val2 ;
54136 int ecode2 = 0 ;
54137 PyObject * obj0 = 0 ;
54138 PyObject * obj1 = 0 ;
54139 int64_t result;
54140
54141 if (!PyArg_UnpackTuple(args, "BaseLns___getitem__", 2, 2, &obj0, &obj1)) SWIG_fail;
54142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__BaseLns, 0 | 0 );
54143 if (!SWIG_IsOK(res1)) {
54144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BaseLns___getitem__" "', argument " "1"" of type '" "operations_research::BaseLns *""'");
54145 }
54146 arg1 = reinterpret_cast< operations_research::BaseLns * >(argp1);
54147 ecode2 = SWIG_AsVal_int(obj1, &val2);
54148 if (!SWIG_IsOK(ecode2)) {
54149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BaseLns___getitem__" "', argument " "2"" of type '" "int""'");
54150 }
54151 arg2 = static_cast< int >(val2);
54152 {
54153 try {
54154 result = (int64_t)operations_research_BaseLns___getitem__(arg1,arg2);
54155 }
54156 catch (Swig::DirectorException &e) {
54157 SWIG_fail;
54158 }
54159 }
54160 resultobj = SWIG_From_long(static_cast< long >(result));
54161 return resultobj;
54162fail:
54163 return NULL;
54164}
54165
54166
54167SWIGINTERN PyObject *_wrap_BaseLns___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54168 PyObject *resultobj = 0;
54170 void *argp1 = 0 ;
54171 int res1 = 0 ;
54172 PyObject * obj0 = 0 ;
54173 int result;
54174
54175 if (!PyArg_UnpackTuple(args, "BaseLns___len__", 1, 1, &obj0)) SWIG_fail;
54176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__BaseLns, 0 | 0 );
54177 if (!SWIG_IsOK(res1)) {
54178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BaseLns___len__" "', argument " "1"" of type '" "operations_research::BaseLns *""'");
54179 }
54180 arg1 = reinterpret_cast< operations_research::BaseLns * >(argp1);
54181 {
54182 try {
54183 result = (int)operations_research_BaseLns___len__(arg1);
54184 }
54185 catch (Swig::DirectorException &e) {
54186 SWIG_fail;
54187 }
54188 }
54189 resultobj = SWIG_From_int(static_cast< int >(result));
54190 return resultobj;
54191fail:
54192 return NULL;
54193}
54194
54195
54196SWIGINTERN PyObject *_wrap_disown_BaseLns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54197 PyObject *resultobj = 0;
54199 void *argp1 = 0 ;
54200 int res1 = 0 ;
54201 PyObject * obj0 = 0 ;
54202
54203 if (!PyArg_UnpackTuple(args, "disown_BaseLns", 1, 1, &obj0)) SWIG_fail;
54204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__BaseLns, 0 | 0 );
54205 if (!SWIG_IsOK(res1)) {
54206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_BaseLns" "', argument " "1"" of type '" "operations_research::BaseLns *""'");
54207 }
54208 arg1 = reinterpret_cast< operations_research::BaseLns * >(argp1);
54209 {
54210 Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
54211 if (director) director->swig_disown();
54212 }
54213
54214 resultobj = SWIG_Py_Void();
54215 return resultobj;
54216fail:
54217 return NULL;
54218}
54219
54220
54221SWIGINTERN PyObject *BaseLns_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54222 PyObject *obj;
54223 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
54225 return SWIG_Py_Void();
54226}
54227
54228SWIGINTERN PyObject *BaseLns_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54229 return SWIG_Python_InitShadowInstance(args);
54230}
54231
54232SWIGINTERN PyObject *_wrap_new_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54233 PyObject *resultobj = 0;
54234 PyObject *arg1 = (PyObject *) 0 ;
54235 std::vector< operations_research::IntVar * > *arg2 = 0 ;
54236 std::vector< operations_research::IntVar * > temp2 ;
54237 PyObject * obj0 = 0 ;
54238 PyObject * obj1 = 0 ;
54240
54241 if (!PyArg_UnpackTuple(args, "new_ChangeValue", 2, 2, &obj0, &obj1)) SWIG_fail;
54242 arg1 = obj0;
54243 {
54244 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
54245 if (!PyErr_Occurred())
54246 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
54247 return NULL;
54248 }
54249 arg2 = &temp2;
54250 }
54251 {
54252 try {
54253 if ( arg1 != Py_None ) {
54254 /* subclassed */
54255 result = (operations_research::ChangeValue *)new SwigDirector_ChangeValue(arg1,(std::vector< operations_research::IntVar * > const &)*arg2);
54256 } else {
54257 SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
54258 SWIG_fail;
54259 }
54260 }
54261 catch (Swig::DirectorException &e) {
54262 SWIG_fail;
54263 }
54264 }
54266 return resultobj;
54267fail:
54268 return NULL;
54269}
54270
54271
54272SWIGINTERN PyObject *_wrap_delete_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54273 PyObject *resultobj = 0;
54275 void *argp1 = 0 ;
54276 int res1 = 0 ;
54277 PyObject * obj0 = 0 ;
54278
54279 if (!PyArg_UnpackTuple(args, "delete_ChangeValue", 1, 1, &obj0)) SWIG_fail;
54281 if (!SWIG_IsOK(res1)) {
54282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ChangeValue" "', argument " "1"" of type '" "operations_research::ChangeValue *""'");
54283 }
54284 arg1 = reinterpret_cast< operations_research::ChangeValue * >(argp1);
54285 {
54286 try {
54287 delete arg1;
54288 }
54289 catch (Swig::DirectorException &e) {
54290 SWIG_fail;
54291 }
54292 }
54293 resultobj = SWIG_Py_Void();
54294 return resultobj;
54295fail:
54296 return NULL;
54297}
54298
54299
54300SWIGINTERN PyObject *_wrap_ChangeValue_ModifyValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54301 PyObject *resultobj = 0;
54303 int64_t arg2 ;
54304 int64_t arg3 ;
54305 void *argp1 = 0 ;
54306 int res1 = 0 ;
54307 long val2 ;
54308 int ecode2 = 0 ;
54309 long val3 ;
54310 int ecode3 = 0 ;
54311 PyObject * obj0 = 0 ;
54312 PyObject * obj1 = 0 ;
54313 PyObject * obj2 = 0 ;
54314 Swig::Director *director = 0;
54315 bool upcall = false;
54316 int64_t result;
54317
54318 if (!PyArg_UnpackTuple(args, "ChangeValue_ModifyValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
54320 if (!SWIG_IsOK(res1)) {
54321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChangeValue_ModifyValue" "', argument " "1"" of type '" "operations_research::ChangeValue *""'");
54322 }
54323 arg1 = reinterpret_cast< operations_research::ChangeValue * >(argp1);
54324 ecode2 = SWIG_AsVal_long(obj1, &val2);
54325 if (!SWIG_IsOK(ecode2)) {
54326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ChangeValue_ModifyValue" "', argument " "2"" of type '" "int64_t""'");
54327 }
54328 arg2 = static_cast< int64_t >(val2);
54329 ecode3 = SWIG_AsVal_long(obj2, &val3);
54330 if (!SWIG_IsOK(ecode3)) {
54331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ChangeValue_ModifyValue" "', argument " "3"" of type '" "int64_t""'");
54332 }
54333 arg3 = static_cast< int64_t >(val3);
54334 director = SWIG_DIRECTOR_CAST(arg1);
54335 upcall = (director && (director->swig_get_self()==obj0));
54336 try {
54337 {
54338 try {
54339 if (upcall) {
54340 Swig::DirectorPureVirtualException::raise("operations_research::ChangeValue::ModifyValue");
54341 } else {
54342 result = (int64_t)(arg1)->ModifyValue(arg2,arg3);
54343 }
54344 }
54345 catch (Swig::DirectorException &e) {
54346 SWIG_fail;
54347 }
54348 }
54349 } catch (Swig::DirectorException&) {
54350 SWIG_fail;
54351 }
54352 resultobj = SWIG_From_long(static_cast< long >(result));
54353 return resultobj;
54354fail:
54355 return NULL;
54356}
54357
54358
54359SWIGINTERN PyObject *_wrap_ChangeValue_OneNeighbor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54360 PyObject *resultobj = 0;
54362 void *argp1 = 0 ;
54363 int res1 = 0 ;
54364 PyObject * obj0 = 0 ;
54365 Swig::Director *director = 0;
54366 bool upcall = false;
54367 SwigDirector_ChangeValue *darg = 0;
54368 bool result;
54369
54370 if (!PyArg_UnpackTuple(args, "ChangeValue_OneNeighbor", 1, 1, &obj0)) SWIG_fail;
54372 if (!SWIG_IsOK(res1)) {
54373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChangeValue_OneNeighbor" "', argument " "1"" of type '" "operations_research::ChangeValue *""'");
54374 }
54375 arg1 = reinterpret_cast< operations_research::ChangeValue * >(argp1);
54376 director = SWIG_DIRECTOR_CAST(arg1);
54377 if (!director || !(director->swig_get_inner("MakeOneNeighbor"))) {
54378 SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing protected member MakeOneNeighbor");
54379 SWIG_fail;
54380 }
54381 upcall = (director && (director->swig_get_self()==obj0));
54382 try {
54383 darg = dynamic_cast<SwigDirector_ChangeValue *>(arg1);
54384 {
54385 try {
54386 if (upcall) {
54387 result = (bool)(darg)->MakeOneNeighborSwigPublic();
54388 } else {
54389 result = (bool)(darg)->MakeOneNeighbor();
54390 }
54391 }
54392 catch (Swig::DirectorException &e) {
54393 SWIG_fail;
54394 }
54395 }
54396 } catch (Swig::DirectorException&) {
54397 SWIG_fail;
54398 }
54399 resultobj = SWIG_From_bool(static_cast< bool >(result));
54400 return resultobj;
54401fail:
54402 return NULL;
54403}
54404
54405
54406SWIGINTERN PyObject *_wrap_disown_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54407 PyObject *resultobj = 0;
54409 void *argp1 = 0 ;
54410 int res1 = 0 ;
54411 PyObject * obj0 = 0 ;
54412
54413 if (!PyArg_UnpackTuple(args, "disown_ChangeValue", 1, 1, &obj0)) SWIG_fail;
54415 if (!SWIG_IsOK(res1)) {
54416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_ChangeValue" "', argument " "1"" of type '" "operations_research::ChangeValue *""'");
54417 }
54418 arg1 = reinterpret_cast< operations_research::ChangeValue * >(argp1);
54419 {
54420 Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
54421 if (director) director->swig_disown();
54422 }
54423
54424 resultobj = SWIG_Py_Void();
54425 return resultobj;
54426fail:
54427 return NULL;
54428}
54429
54430
54431SWIGINTERN PyObject *ChangeValue_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54432 PyObject *obj;
54433 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
54435 return SWIG_Py_Void();
54436}
54437
54438SWIGINTERN PyObject *ChangeValue_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54439 return SWIG_Python_InitShadowInstance(args);
54440}
54441
54442SWIGINTERN PyObject *_wrap_PathOperator_Neighbor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54443 PyObject *resultobj = 0;
54445 void *argp1 = 0 ;
54446 int res1 = 0 ;
54447 PyObject * obj0 = 0 ;
54448 bool result;
54449
54450 if (!PyArg_UnpackTuple(args, "PathOperator_Neighbor", 1, 1, &obj0)) SWIG_fail;
54452 if (!SWIG_IsOK(res1)) {
54453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathOperator_Neighbor" "', argument " "1"" of type '" "operations_research::PathOperator *""'");
54454 }
54455 arg1 = reinterpret_cast< operations_research::PathOperator * >(argp1);
54456 {
54457 try {
54458 result = (bool)(arg1)->MakeNeighbor();
54459 }
54460 catch (Swig::DirectorException &e) {
54461 SWIG_fail;
54462 }
54463 }
54464 resultobj = SWIG_From_bool(static_cast< bool >(result));
54465 return resultobj;
54466fail:
54467 return NULL;
54468}
54469
54470
54471SWIGINTERN PyObject *PathOperator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54472 PyObject *obj;
54473 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
54475 return SWIG_Py_Void();
54476}
54477
54478SWIGINTERN PyObject *_wrap_LocalSearchFilter_Accept(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54479 PyObject *resultobj = 0;
54483 int64_t arg4 ;
54484 int64_t arg5 ;
54485 void *argp1 = 0 ;
54486 int res1 = 0 ;
54487 void *argp2 = 0 ;
54488 int res2 = 0 ;
54489 void *argp3 = 0 ;
54490 int res3 = 0 ;
54491 long val4 ;
54492 int ecode4 = 0 ;
54493 long val5 ;
54494 int ecode5 = 0 ;
54495 PyObject * obj0 = 0 ;
54496 PyObject * obj1 = 0 ;
54497 PyObject * obj2 = 0 ;
54498 PyObject * obj3 = 0 ;
54499 PyObject * obj4 = 0 ;
54500 bool result;
54501
54502 if (!PyArg_UnpackTuple(args, "LocalSearchFilter_Accept", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
54504 if (!SWIG_IsOK(res1)) {
54505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalSearchFilter_Accept" "', argument " "1"" of type '" "operations_research::LocalSearchFilter *""'");
54506 }
54507 arg1 = reinterpret_cast< operations_research::LocalSearchFilter * >(argp1);
54509 if (!SWIG_IsOK(res2)) {
54510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LocalSearchFilter_Accept" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
54511 }
54512 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
54514 if (!SWIG_IsOK(res3)) {
54515 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LocalSearchFilter_Accept" "', argument " "3"" of type '" "operations_research::Assignment const *""'");
54516 }
54517 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
54518 ecode4 = SWIG_AsVal_long(obj3, &val4);
54519 if (!SWIG_IsOK(ecode4)) {
54520 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "LocalSearchFilter_Accept" "', argument " "4"" of type '" "int64_t""'");
54521 }
54522 arg4 = static_cast< int64_t >(val4);
54523 ecode5 = SWIG_AsVal_long(obj4, &val5);
54524 if (!SWIG_IsOK(ecode5)) {
54525 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "LocalSearchFilter_Accept" "', argument " "5"" of type '" "int64_t""'");
54526 }
54527 arg5 = static_cast< int64_t >(val5);
54528 {
54529 try {
54530 result = (bool)(arg1)->Accept((operations_research::Assignment const *)arg2,(operations_research::Assignment const *)arg3,arg4,arg5);
54531 }
54532 catch (Swig::DirectorException &e) {
54533 SWIG_fail;
54534 }
54535 }
54536 resultobj = SWIG_From_bool(static_cast< bool >(result));
54537 return resultobj;
54538fail:
54539 return NULL;
54540}
54541
54542
54543SWIGINTERN PyObject *_wrap_LocalSearchFilter_IsIncremental(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54544 PyObject *resultobj = 0;
54546 void *argp1 = 0 ;
54547 int res1 = 0 ;
54548 PyObject * obj0 = 0 ;
54549 bool result;
54550
54551 if (!PyArg_UnpackTuple(args, "LocalSearchFilter_IsIncremental", 1, 1, &obj0)) SWIG_fail;
54553 if (!SWIG_IsOK(res1)) {
54554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalSearchFilter_IsIncremental" "', argument " "1"" of type '" "operations_research::LocalSearchFilter const *""'");
54555 }
54556 arg1 = reinterpret_cast< operations_research::LocalSearchFilter * >(argp1);
54557 {
54558 try {
54559 result = (bool)((operations_research::LocalSearchFilter const *)arg1)->IsIncremental();
54560 }
54561 catch (Swig::DirectorException &e) {
54562 SWIG_fail;
54563 }
54564 }
54565 resultobj = SWIG_From_bool(static_cast< bool >(result));
54566 return resultobj;
54567fail:
54568 return NULL;
54569}
54570
54571
54572SWIGINTERN PyObject *_wrap_LocalSearchFilter_Synchronize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54573 PyObject *resultobj = 0;
54577 void *argp1 = 0 ;
54578 int res1 = 0 ;
54579 void *argp2 = 0 ;
54580 int res2 = 0 ;
54581 void *argp3 = 0 ;
54582 int res3 = 0 ;
54583 PyObject * obj0 = 0 ;
54584 PyObject * obj1 = 0 ;
54585 PyObject * obj2 = 0 ;
54586
54587 if (!PyArg_UnpackTuple(args, "LocalSearchFilter_Synchronize", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
54589 if (!SWIG_IsOK(res1)) {
54590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalSearchFilter_Synchronize" "', argument " "1"" of type '" "operations_research::LocalSearchFilter *""'");
54591 }
54592 arg1 = reinterpret_cast< operations_research::LocalSearchFilter * >(argp1);
54594 if (!SWIG_IsOK(res2)) {
54595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LocalSearchFilter_Synchronize" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
54596 }
54597 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
54599 if (!SWIG_IsOK(res3)) {
54600 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LocalSearchFilter_Synchronize" "', argument " "3"" of type '" "operations_research::Assignment const *""'");
54601 }
54602 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
54603 {
54604 try {
54605 (arg1)->Synchronize((operations_research::Assignment const *)arg2,(operations_research::Assignment const *)arg3);
54606 }
54607 catch (Swig::DirectorException &e) {
54608 SWIG_fail;
54609 }
54610 }
54611 resultobj = SWIG_Py_Void();
54612 return resultobj;
54613fail:
54614 return NULL;
54615}
54616
54617
54618SWIGINTERN PyObject *_wrap_delete_LocalSearchFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54619 PyObject *resultobj = 0;
54621 void *argp1 = 0 ;
54622 int res1 = 0 ;
54623 PyObject * obj0 = 0 ;
54624
54625 if (!PyArg_UnpackTuple(args, "delete_LocalSearchFilter", 1, 1, &obj0)) SWIG_fail;
54627 if (!SWIG_IsOK(res1)) {
54628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LocalSearchFilter" "', argument " "1"" of type '" "operations_research::LocalSearchFilter *""'");
54629 }
54630 arg1 = reinterpret_cast< operations_research::LocalSearchFilter * >(argp1);
54631 {
54632 try {
54633 delete arg1;
54634 }
54635 catch (Swig::DirectorException &e) {
54636 SWIG_fail;
54637 }
54638 }
54639 resultobj = SWIG_Py_Void();
54640 return resultobj;
54641fail:
54642 return NULL;
54643}
54644
54645
54646SWIGINTERN PyObject *LocalSearchFilter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54647 PyObject *obj;
54648 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
54650 return SWIG_Py_Void();
54651}
54652
54654 PyObject *resultobj = 0;
54656 void *argp1 = 0 ;
54657 int res1 = 0 ;
54658 PyObject * obj0 = 0 ;
54659 std::string result;
54660
54661 if (!PyArg_UnpackTuple(args, "LocalSearchFilterManager_DebugString", 1, 1, &obj0)) SWIG_fail;
54663 if (!SWIG_IsOK(res1)) {
54664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalSearchFilterManager_DebugString" "', argument " "1"" of type '" "operations_research::LocalSearchFilterManager const *""'");
54665 }
54666 arg1 = reinterpret_cast< operations_research::LocalSearchFilterManager * >(argp1);
54667 {
54668 try {
54670 }
54671 catch (Swig::DirectorException &e) {
54672 SWIG_fail;
54673 }
54674 }
54675 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
54676 return resultobj;
54677fail:
54678 return NULL;
54679}
54680
54681
54683 PyObject *resultobj = 0;
54684 SwigValueWrapper< std::vector< operations_research::LocalSearchFilterManager::FilterEvent > > arg1 ;
54685 void *argp1 ;
54686 int res1 = 0 ;
54687 PyObject * obj0 = 0 ;
54689
54690 if (!PyArg_UnpackTuple(args, "new_LocalSearchFilterManager", 1, 1, &obj0)) SWIG_fail;
54691 {
54693 if (!SWIG_IsOK(res1)) {
54694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LocalSearchFilterManager" "', argument " "1"" of type '" "std::vector< operations_research::LocalSearchFilterManager::FilterEvent >""'");
54695 }
54696 if (!argp1) {
54697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalSearchFilterManager" "', argument " "1"" of type '" "std::vector< operations_research::LocalSearchFilterManager::FilterEvent >""'");
54698 } else {
54699 std::vector< operations_research::LocalSearchFilterManager::FilterEvent > * temp = reinterpret_cast< std::vector< operations_research::LocalSearchFilterManager::FilterEvent > * >(argp1);
54700 arg1 = *temp;
54701 if (SWIG_IsNewObj(res1)) delete temp;
54702 }
54703 }
54704 {
54705 try {
54707 }
54708 catch (Swig::DirectorException &e) {
54709 SWIG_fail;
54710 }
54711 }
54713 return resultobj;
54714fail:
54715 return NULL;
54716}
54717
54718
54720 PyObject *resultobj = 0;
54721 SwigValueWrapper< std::vector< operations_research::LocalSearchFilter * > > arg1 ;
54722 std::vector< operations_research::LocalSearchFilter * > temp1 ;
54723 PyObject * obj0 = 0 ;
54725
54726 if (!PyArg_UnpackTuple(args, "new_LocalSearchFilterManager", 1, 1, &obj0)) SWIG_fail;
54727 {
54728 if (!vector_input_helper(obj0, &temp1, PyObjAs<operations_research::LocalSearchFilter*>)) {
54729 if (!PyErr_Occurred())
54730 SWIG_Error(SWIG_TypeError, "sequence(operations_research::LocalSearchFilter*) expected");
54731 return NULL;
54732 }
54733 arg1 = std::move(temp1);
54734 }
54735 {
54736 try {
54738 }
54739 catch (Swig::DirectorException &e) {
54740 SWIG_fail;
54741 }
54742 }
54744 return resultobj;
54745fail:
54746 return NULL;
54747}
54748
54749
54750SWIGINTERN PyObject *_wrap_new_LocalSearchFilterManager(PyObject *self, PyObject *args) {
54751 Py_ssize_t argc;
54752 PyObject *argv[2] = {
54753 0
54754 };
54755 Py_ssize_t ii;
54756
54757 if (!PyTuple_Check(args)) SWIG_fail;
54758 argc = PyObject_Length(args);
54759 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
54760 argv[ii] = PyTuple_GET_ITEM(args,ii);
54761 }
54762 if (argc == 1) {
54763 int _v;
54765 _v = SWIG_CheckState(res);
54766 if (_v) {
54768 }
54769 }
54770 if (argc == 1) {
54771 int _v;
54772 {
54773 if (!PyTuple_Check(argv[0]) && !PyList_Check(argv[0])) {
54774 _v = 0;
54775 } else {
54776 const bool is_tuple = PyTuple_Check(argv[0]);
54777 const size_t size = is_tuple ? PyTuple_Size(argv[0]) : PyList_Size(argv[0]);
54778 size_t i = 0;
54779 while (i < size && CanConvertToLocalSearchFilter(is_tuple ? PyTuple_GetItem(argv[0], i)
54780 :PyList_GetItem(argv[0], i))) {
54781 ++i;
54782 }
54783 _v = i == size;
54784 }
54785 }
54786 if (_v) {
54788 }
54789 }
54790
54791fail:
54792 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_LocalSearchFilterManager'.\n"
54793 " Possible C/C++ prototypes are:\n"
54794 " operations_research::LocalSearchFilterManager::LocalSearchFilterManager(std::vector< operations_research::LocalSearchFilterManager::FilterEvent >)\n"
54795 " operations_research::LocalSearchFilterManager::LocalSearchFilterManager(std::vector< operations_research::LocalSearchFilter * >)\n");
54796 return 0;
54797}
54798
54799
54800SWIGINTERN PyObject *_wrap_LocalSearchFilterManager_Accept(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54801 PyObject *resultobj = 0;
54806 int64_t arg5 ;
54807 int64_t arg6 ;
54808 void *argp1 = 0 ;
54809 int res1 = 0 ;
54810 void *argp2 = 0 ;
54811 int res2 = 0 ;
54812 void *argp3 = 0 ;
54813 int res3 = 0 ;
54814 void *argp4 = 0 ;
54815 int res4 = 0 ;
54816 long val5 ;
54817 int ecode5 = 0 ;
54818 long val6 ;
54819 int ecode6 = 0 ;
54820 PyObject * obj0 = 0 ;
54821 PyObject * obj1 = 0 ;
54822 PyObject * obj2 = 0 ;
54823 PyObject * obj3 = 0 ;
54824 PyObject * obj4 = 0 ;
54825 PyObject * obj5 = 0 ;
54826 bool result;
54827
54828 if (!PyArg_UnpackTuple(args, "LocalSearchFilterManager_Accept", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
54830 if (!SWIG_IsOK(res1)) {
54831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalSearchFilterManager_Accept" "', argument " "1"" of type '" "operations_research::LocalSearchFilterManager *""'");
54832 }
54833 arg1 = reinterpret_cast< operations_research::LocalSearchFilterManager * >(argp1);
54835 if (!SWIG_IsOK(res2)) {
54836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LocalSearchFilterManager_Accept" "', argument " "2"" of type '" "operations_research::LocalSearchMonitor *const""'");
54837 }
54838 arg2 = reinterpret_cast< operations_research::LocalSearchMonitor * >(argp2);
54840 if (!SWIG_IsOK(res3)) {
54841 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LocalSearchFilterManager_Accept" "', argument " "3"" of type '" "operations_research::Assignment const *""'");
54842 }
54843 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
54845 if (!SWIG_IsOK(res4)) {
54846 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "LocalSearchFilterManager_Accept" "', argument " "4"" of type '" "operations_research::Assignment const *""'");
54847 }
54848 arg4 = reinterpret_cast< operations_research::Assignment * >(argp4);
54849 ecode5 = SWIG_AsVal_long(obj4, &val5);
54850 if (!SWIG_IsOK(ecode5)) {
54851 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "LocalSearchFilterManager_Accept" "', argument " "5"" of type '" "int64_t""'");
54852 }
54853 arg5 = static_cast< int64_t >(val5);
54854 ecode6 = SWIG_AsVal_long(obj5, &val6);
54855 if (!SWIG_IsOK(ecode6)) {
54856 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "LocalSearchFilterManager_Accept" "', argument " "6"" of type '" "int64_t""'");
54857 }
54858 arg6 = static_cast< int64_t >(val6);
54859 {
54860 try {
54861 result = (bool)(arg1)->Accept(arg2,(operations_research::Assignment const *)arg3,(operations_research::Assignment const *)arg4,arg5,arg6);
54862 }
54863 catch (Swig::DirectorException &e) {
54864 SWIG_fail;
54865 }
54866 }
54867 resultobj = SWIG_From_bool(static_cast< bool >(result));
54868 return resultobj;
54869fail:
54870 return NULL;
54871}
54872
54873
54875 PyObject *resultobj = 0;
54879 void *argp1 = 0 ;
54880 int res1 = 0 ;
54881 void *argp2 = 0 ;
54882 int res2 = 0 ;
54883 void *argp3 = 0 ;
54884 int res3 = 0 ;
54885 PyObject * obj0 = 0 ;
54886 PyObject * obj1 = 0 ;
54887 PyObject * obj2 = 0 ;
54888
54889 if (!PyArg_UnpackTuple(args, "LocalSearchFilterManager_Synchronize", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
54891 if (!SWIG_IsOK(res1)) {
54892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalSearchFilterManager_Synchronize" "', argument " "1"" of type '" "operations_research::LocalSearchFilterManager *""'");
54893 }
54894 arg1 = reinterpret_cast< operations_research::LocalSearchFilterManager * >(argp1);
54896 if (!SWIG_IsOK(res2)) {
54897 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LocalSearchFilterManager_Synchronize" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
54898 }
54899 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
54901 if (!SWIG_IsOK(res3)) {
54902 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LocalSearchFilterManager_Synchronize" "', argument " "3"" of type '" "operations_research::Assignment const *""'");
54903 }
54904 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
54905 {
54906 try {
54907 (arg1)->Synchronize((operations_research::Assignment const *)arg2,(operations_research::Assignment const *)arg3);
54908 }
54909 catch (Swig::DirectorException &e) {
54910 SWIG_fail;
54911 }
54912 }
54913 resultobj = SWIG_Py_Void();
54914 return resultobj;
54915fail:
54916 return NULL;
54917}
54918
54919
54920SWIGINTERN PyObject *_wrap_delete_LocalSearchFilterManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54921 PyObject *resultobj = 0;
54923 void *argp1 = 0 ;
54924 int res1 = 0 ;
54925 PyObject * obj0 = 0 ;
54926
54927 if (!PyArg_UnpackTuple(args, "delete_LocalSearchFilterManager", 1, 1, &obj0)) SWIG_fail;
54929 if (!SWIG_IsOK(res1)) {
54930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LocalSearchFilterManager" "', argument " "1"" of type '" "operations_research::LocalSearchFilterManager *""'");
54931 }
54932 arg1 = reinterpret_cast< operations_research::LocalSearchFilterManager * >(argp1);
54933 {
54934 try {
54935 delete arg1;
54936 }
54937 catch (Swig::DirectorException &e) {
54938 SWIG_fail;
54939 }
54940 }
54941 resultobj = SWIG_Py_Void();
54942 return resultobj;
54943fail:
54944 return NULL;
54945}
54946
54947
54948SWIGINTERN PyObject *LocalSearchFilterManager_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54949 PyObject *obj;
54950 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
54952 return SWIG_Py_Void();
54953}
54954
54955SWIGINTERN PyObject *LocalSearchFilterManager_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54956 return SWIG_Python_InitShadowInstance(args);
54957}
54958
54959SWIGINTERN PyObject *_wrap_new_IntVarLocalSearchFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54960 PyObject *resultobj = 0;
54961 PyObject *arg1 = (PyObject *) 0 ;
54962 std::vector< operations_research::IntVar * > *arg2 = 0 ;
54963 std::vector< operations_research::IntVar * > temp2 ;
54964 PyObject * obj0 = 0 ;
54965 PyObject * obj1 = 0 ;
54967
54968 if (!PyArg_UnpackTuple(args, "new_IntVarLocalSearchFilter", 2, 2, &obj0, &obj1)) SWIG_fail;
54969 arg1 = obj0;
54970 {
54971 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
54972 if (!PyErr_Occurred())
54973 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
54974 return NULL;
54975 }
54976 arg2 = &temp2;
54977 }
54978 {
54979 try {
54980 if ( arg1 != Py_None ) {
54981 /* subclassed */
54982 result = (operations_research::IntVarLocalSearchFilter *)new SwigDirector_IntVarLocalSearchFilter(arg1,(std::vector< operations_research::IntVar * > const &)*arg2);
54983 } else {
54984 SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
54985 SWIG_fail;
54986 }
54987 }
54988 catch (Swig::DirectorException &e) {
54989 SWIG_fail;
54990 }
54991 }
54993 return resultobj;
54994fail:
54995 return NULL;
54996}
54997
54998
54999SWIGINTERN PyObject *_wrap_delete_IntVarLocalSearchFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55000 PyObject *resultobj = 0;
55002 void *argp1 = 0 ;
55003 int res1 = 0 ;
55004 PyObject * obj0 = 0 ;
55005
55006 if (!PyArg_UnpackTuple(args, "delete_IntVarLocalSearchFilter", 1, 1, &obj0)) SWIG_fail;
55008 if (!SWIG_IsOK(res1)) {
55009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntVarLocalSearchFilter" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter *""'");
55010 }
55011 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchFilter * >(argp1);
55012 {
55013 try {
55014 delete arg1;
55015 }
55016 catch (Swig::DirectorException &e) {
55017 SWIG_fail;
55018 }
55019 }
55020 resultobj = SWIG_Py_Void();
55021 return resultobj;
55022fail:
55023 return NULL;
55024}
55025
55026
55027SWIGINTERN PyObject *_wrap_IntVarLocalSearchFilter_Synchronize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55028 PyObject *resultobj = 0;
55032 void *argp1 = 0 ;
55033 int res1 = 0 ;
55034 void *argp2 = 0 ;
55035 int res2 = 0 ;
55036 void *argp3 = 0 ;
55037 int res3 = 0 ;
55038 PyObject * obj0 = 0 ;
55039 PyObject * obj1 = 0 ;
55040 PyObject * obj2 = 0 ;
55041 Swig::Director *director = 0;
55042 bool upcall = false;
55043
55044 if (!PyArg_UnpackTuple(args, "IntVarLocalSearchFilter_Synchronize", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
55046 if (!SWIG_IsOK(res1)) {
55047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarLocalSearchFilter_Synchronize" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter *""'");
55048 }
55049 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchFilter * >(argp1);
55051 if (!SWIG_IsOK(res2)) {
55052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntVarLocalSearchFilter_Synchronize" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
55053 }
55054 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
55056 if (!SWIG_IsOK(res3)) {
55057 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntVarLocalSearchFilter_Synchronize" "', argument " "3"" of type '" "operations_research::Assignment const *""'");
55058 }
55059 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
55060 director = SWIG_DIRECTOR_CAST(arg1);
55061 upcall = (director && (director->swig_get_self()==obj0));
55062 try {
55063 {
55064 try {
55065 if (upcall) {
55067 } else {
55068 (arg1)->Synchronize((operations_research::Assignment const *)arg2,(operations_research::Assignment const *)arg3);
55069 }
55070 }
55071 catch (Swig::DirectorException &e) {
55072 SWIG_fail;
55073 }
55074 }
55075 } catch (Swig::DirectorException&) {
55076 SWIG_fail;
55077 }
55078 resultobj = SWIG_Py_Void();
55079 return resultobj;
55080fail:
55081 return NULL;
55082}
55083
55084
55085SWIGINTERN PyObject *_wrap_IntVarLocalSearchFilter_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55086 PyObject *resultobj = 0;
55088 void *argp1 = 0 ;
55089 int res1 = 0 ;
55090 PyObject * obj0 = 0 ;
55091 int result;
55092
55093 if (!PyArg_UnpackTuple(args, "IntVarLocalSearchFilter_Size", 1, 1, &obj0)) SWIG_fail;
55095 if (!SWIG_IsOK(res1)) {
55096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarLocalSearchFilter_Size" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter const *""'");
55097 }
55098 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchFilter * >(argp1);
55099 {
55100 try {
55101 result = (int)((operations_research::IntVarLocalSearchFilter const *)arg1)->Size();
55102 }
55103 catch (Swig::DirectorException &e) {
55104 SWIG_fail;
55105 }
55106 }
55107 resultobj = SWIG_From_int(static_cast< int >(result));
55108 return resultobj;
55109fail:
55110 return NULL;
55111}
55112
55113
55114SWIGINTERN PyObject *_wrap_IntVarLocalSearchFilter_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55115 PyObject *resultobj = 0;
55117 int arg2 ;
55118 void *argp1 = 0 ;
55119 int res1 = 0 ;
55120 int val2 ;
55121 int ecode2 = 0 ;
55122 PyObject * obj0 = 0 ;
55123 PyObject * obj1 = 0 ;
55124 int64_t result;
55125
55126 if (!PyArg_UnpackTuple(args, "IntVarLocalSearchFilter_Value", 2, 2, &obj0, &obj1)) SWIG_fail;
55128 if (!SWIG_IsOK(res1)) {
55129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarLocalSearchFilter_Value" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter const *""'");
55130 }
55131 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchFilter * >(argp1);
55132 ecode2 = SWIG_AsVal_int(obj1, &val2);
55133 if (!SWIG_IsOK(ecode2)) {
55134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVarLocalSearchFilter_Value" "', argument " "2"" of type '" "int""'");
55135 }
55136 arg2 = static_cast< int >(val2);
55137 {
55138 try {
55139 result = (int64_t)((operations_research::IntVarLocalSearchFilter const *)arg1)->Value(arg2);
55140 }
55141 catch (Swig::DirectorException &e) {
55142 SWIG_fail;
55143 }
55144 }
55145 resultobj = SWIG_From_long(static_cast< long >(result));
55146 return resultobj;
55147fail:
55148 return NULL;
55149}
55150
55151
55153 PyObject *resultobj = 0;
55156 void *argp1 = 0 ;
55157 int res1 = 0 ;
55158 PyObject * obj0 = 0 ;
55159 PyObject * obj1 = 0 ;
55160 int64_t result;
55161
55162 if (!PyArg_UnpackTuple(args, "IntVarLocalSearchFilter_IndexFromVar", 2, 2, &obj0, &obj1)) SWIG_fail;
55164 if (!SWIG_IsOK(res1)) {
55165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVarLocalSearchFilter_IndexFromVar" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter const *""'");
55166 }
55167 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchFilter * >(argp1);
55168 {
55169 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
55170 }
55171 {
55172 try {
55174 }
55175 catch (Swig::DirectorException &e) {
55176 SWIG_fail;
55177 }
55178 }
55179 resultobj = SWIG_From_long(static_cast< long >(result));
55180 return resultobj;
55181fail:
55182 return NULL;
55183}
55184
55185
55186SWIGINTERN PyObject *_wrap_disown_IntVarLocalSearchFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55187 PyObject *resultobj = 0;
55189 void *argp1 = 0 ;
55190 int res1 = 0 ;
55191 PyObject * obj0 = 0 ;
55192
55193 if (!PyArg_UnpackTuple(args, "disown_IntVarLocalSearchFilter", 1, 1, &obj0)) SWIG_fail;
55195 if (!SWIG_IsOK(res1)) {
55196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_IntVarLocalSearchFilter" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter *""'");
55197 }
55198 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchFilter * >(argp1);
55199 {
55200 Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
55201 if (director) director->swig_disown();
55202 }
55203
55204 resultobj = SWIG_Py_Void();
55205 return resultobj;
55206fail:
55207 return NULL;
55208}
55209
55210
55211SWIGINTERN PyObject *IntVarLocalSearchFilter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55212 PyObject *obj;
55213 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
55215 return SWIG_Py_Void();
55216}
55217
55218SWIGINTERN PyObject *IntVarLocalSearchFilter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55219 return SWIG_Python_InitShadowInstance(args);
55220}
55221
55222SWIGINTERN PyObject *_wrap_BooleanVar_Min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55223 PyObject *resultobj = 0;
55225 void *argp1 = 0 ;
55226 int res1 = 0 ;
55227 PyObject * obj0 = 0 ;
55228 int64_t result;
55229
55230 if (!PyArg_UnpackTuple(args, "BooleanVar_Min", 1, 1, &obj0)) SWIG_fail;
55232 if (!SWIG_IsOK(res1)) {
55233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BooleanVar_Min" "', argument " "1"" of type '" "operations_research::BooleanVar const *""'");
55234 }
55235 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55236 {
55237 try {
55238 result = (int64_t)((operations_research::BooleanVar const *)arg1)->Min();
55239 }
55240 catch (Swig::DirectorException &e) {
55241 SWIG_fail;
55242 }
55243 }
55244 resultobj = SWIG_From_long(static_cast< long >(result));
55245 return resultobj;
55246fail:
55247 return NULL;
55248}
55249
55250
55251SWIGINTERN PyObject *_wrap_BooleanVar_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55252 PyObject *resultobj = 0;
55254 int64_t arg2 ;
55255 void *argp1 = 0 ;
55256 int res1 = 0 ;
55257 long val2 ;
55258 int ecode2 = 0 ;
55259 PyObject * obj0 = 0 ;
55260 PyObject * obj1 = 0 ;
55261
55262 if (!PyArg_UnpackTuple(args, "BooleanVar_SetMin", 2, 2, &obj0, &obj1)) SWIG_fail;
55264 if (!SWIG_IsOK(res1)) {
55265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BooleanVar_SetMin" "', argument " "1"" of type '" "operations_research::BooleanVar *""'");
55266 }
55267 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55268 ecode2 = SWIG_AsVal_long(obj1, &val2);
55269 if (!SWIG_IsOK(ecode2)) {
55270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BooleanVar_SetMin" "', argument " "2"" of type '" "int64_t""'");
55271 }
55272 arg2 = static_cast< int64_t >(val2);
55273 {
55274 operations_research::Solver* const solver = arg1->solver();
55275 FailureProtect protect;
55276 solver->set_fail_intercept([&protect]() {
55277 protect.JumpBack();
55278 });
55279 if (setjmp(protect.exception_buffer) == 0) {
55280 (arg1)->SetMin(arg2);
55281 solver->clear_fail_intercept();
55282 } else {
55283 solver->clear_fail_intercept();
55284 // IMPORTANT: the type and message of the exception raised matter,
55285 // because they are caught by the python overrides of some CP classes.
55286 // See the occurrences of the "PyExc_Exception" string below.
55287 PyErr_SetString(PyExc_Exception, "CP Solver fail");
55288 SWIG_fail;
55289 }
55290 }
55291 resultobj = SWIG_Py_Void();
55292 return resultobj;
55293fail:
55294 return NULL;
55295}
55296
55297
55298SWIGINTERN PyObject *_wrap_BooleanVar_Max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55299 PyObject *resultobj = 0;
55301 void *argp1 = 0 ;
55302 int res1 = 0 ;
55303 PyObject * obj0 = 0 ;
55304 int64_t result;
55305
55306 if (!PyArg_UnpackTuple(args, "BooleanVar_Max", 1, 1, &obj0)) SWIG_fail;
55308 if (!SWIG_IsOK(res1)) {
55309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BooleanVar_Max" "', argument " "1"" of type '" "operations_research::BooleanVar const *""'");
55310 }
55311 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55312 {
55313 try {
55314 result = (int64_t)((operations_research::BooleanVar const *)arg1)->Max();
55315 }
55316 catch (Swig::DirectorException &e) {
55317 SWIG_fail;
55318 }
55319 }
55320 resultobj = SWIG_From_long(static_cast< long >(result));
55321 return resultobj;
55322fail:
55323 return NULL;
55324}
55325
55326
55327SWIGINTERN PyObject *_wrap_BooleanVar_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55328 PyObject *resultobj = 0;
55330 int64_t arg2 ;
55331 void *argp1 = 0 ;
55332 int res1 = 0 ;
55333 long val2 ;
55334 int ecode2 = 0 ;
55335 PyObject * obj0 = 0 ;
55336 PyObject * obj1 = 0 ;
55337
55338 if (!PyArg_UnpackTuple(args, "BooleanVar_SetMax", 2, 2, &obj0, &obj1)) SWIG_fail;
55340 if (!SWIG_IsOK(res1)) {
55341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BooleanVar_SetMax" "', argument " "1"" of type '" "operations_research::BooleanVar *""'");
55342 }
55343 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55344 ecode2 = SWIG_AsVal_long(obj1, &val2);
55345 if (!SWIG_IsOK(ecode2)) {
55346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BooleanVar_SetMax" "', argument " "2"" of type '" "int64_t""'");
55347 }
55348 arg2 = static_cast< int64_t >(val2);
55349 {
55350 operations_research::Solver* const solver = arg1->solver();
55351 FailureProtect protect;
55352 solver->set_fail_intercept([&protect]() {
55353 protect.JumpBack();
55354 });
55355 if (setjmp(protect.exception_buffer) == 0) {
55356 (arg1)->SetMax(arg2);
55357 solver->clear_fail_intercept();
55358 } else {
55359 solver->clear_fail_intercept();
55360 // IMPORTANT: the type and message of the exception raised matter,
55361 // because they are caught by the python overrides of some CP classes.
55362 // See the occurrences of the "PyExc_Exception" string below.
55363 PyErr_SetString(PyExc_Exception, "CP Solver fail");
55364 SWIG_fail;
55365 }
55366 }
55367 resultobj = SWIG_Py_Void();
55368 return resultobj;
55369fail:
55370 return NULL;
55371}
55372
55373
55374SWIGINTERN PyObject *_wrap_BooleanVar_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55375 PyObject *resultobj = 0;
55377 int64_t arg2 ;
55378 int64_t arg3 ;
55379 void *argp1 = 0 ;
55380 int res1 = 0 ;
55381 long val2 ;
55382 int ecode2 = 0 ;
55383 long val3 ;
55384 int ecode3 = 0 ;
55385 PyObject * obj0 = 0 ;
55386 PyObject * obj1 = 0 ;
55387 PyObject * obj2 = 0 ;
55388
55389 if (!PyArg_UnpackTuple(args, "BooleanVar_SetRange", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
55391 if (!SWIG_IsOK(res1)) {
55392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BooleanVar_SetRange" "', argument " "1"" of type '" "operations_research::BooleanVar *""'");
55393 }
55394 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55395 ecode2 = SWIG_AsVal_long(obj1, &val2);
55396 if (!SWIG_IsOK(ecode2)) {
55397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BooleanVar_SetRange" "', argument " "2"" of type '" "int64_t""'");
55398 }
55399 arg2 = static_cast< int64_t >(val2);
55400 ecode3 = SWIG_AsVal_long(obj2, &val3);
55401 if (!SWIG_IsOK(ecode3)) {
55402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BooleanVar_SetRange" "', argument " "3"" of type '" "int64_t""'");
55403 }
55404 arg3 = static_cast< int64_t >(val3);
55405 {
55406 operations_research::Solver* const solver = arg1->solver();
55407 FailureProtect protect;
55408 solver->set_fail_intercept([&protect]() {
55409 protect.JumpBack();
55410 });
55411 if (setjmp(protect.exception_buffer) == 0) {
55412 (arg1)->SetRange(arg2,arg3);
55413 solver->clear_fail_intercept();
55414 } else {
55415 solver->clear_fail_intercept();
55416 // IMPORTANT: the type and message of the exception raised matter,
55417 // because they are caught by the python overrides of some CP classes.
55418 // See the occurrences of the "PyExc_Exception" string below.
55419 PyErr_SetString(PyExc_Exception, "CP Solver fail");
55420 SWIG_fail;
55421 }
55422 }
55423 resultobj = SWIG_Py_Void();
55424 return resultobj;
55425fail:
55426 return NULL;
55427}
55428
55429
55430SWIGINTERN PyObject *_wrap_BooleanVar_Bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55431 PyObject *resultobj = 0;
55433 void *argp1 = 0 ;
55434 int res1 = 0 ;
55435 PyObject * obj0 = 0 ;
55436 bool result;
55437
55438 if (!PyArg_UnpackTuple(args, "BooleanVar_Bound", 1, 1, &obj0)) SWIG_fail;
55440 if (!SWIG_IsOK(res1)) {
55441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BooleanVar_Bound" "', argument " "1"" of type '" "operations_research::BooleanVar const *""'");
55442 }
55443 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55444 {
55445 try {
55446 result = (bool)((operations_research::BooleanVar const *)arg1)->Bound();
55447 }
55448 catch (Swig::DirectorException &e) {
55449 SWIG_fail;
55450 }
55451 }
55452 resultobj = SWIG_From_bool(static_cast< bool >(result));
55453 return resultobj;
55454fail:
55455 return NULL;
55456}
55457
55458
55459SWIGINTERN PyObject *_wrap_BooleanVar_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55460 PyObject *resultobj = 0;
55462 void *argp1 = 0 ;
55463 int res1 = 0 ;
55464 PyObject * obj0 = 0 ;
55465 int64_t result;
55466
55467 if (!PyArg_UnpackTuple(args, "BooleanVar_Value", 1, 1, &obj0)) SWIG_fail;
55469 if (!SWIG_IsOK(res1)) {
55470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BooleanVar_Value" "', argument " "1"" of type '" "operations_research::BooleanVar const *""'");
55471 }
55472 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55473 {
55474 try {
55475 result = (int64_t)((operations_research::BooleanVar const *)arg1)->Value();
55476 }
55477 catch (Swig::DirectorException &e) {
55478 SWIG_fail;
55479 }
55480 }
55481 resultobj = SWIG_From_long(static_cast< long >(result));
55482 return resultobj;
55483fail:
55484 return NULL;
55485}
55486
55487
55488SWIGINTERN PyObject *_wrap_BooleanVar_RemoveValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55489 PyObject *resultobj = 0;
55491 int64_t arg2 ;
55492 void *argp1 = 0 ;
55493 int res1 = 0 ;
55494 long val2 ;
55495 int ecode2 = 0 ;
55496 PyObject * obj0 = 0 ;
55497 PyObject * obj1 = 0 ;
55498
55499 if (!PyArg_UnpackTuple(args, "BooleanVar_RemoveValue", 2, 2, &obj0, &obj1)) SWIG_fail;
55501 if (!SWIG_IsOK(res1)) {
55502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BooleanVar_RemoveValue" "', argument " "1"" of type '" "operations_research::BooleanVar *""'");
55503 }
55504 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55505 ecode2 = SWIG_AsVal_long(obj1, &val2);
55506 if (!SWIG_IsOK(ecode2)) {
55507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BooleanVar_RemoveValue" "', argument " "2"" of type '" "int64_t""'");
55508 }
55509 arg2 = static_cast< int64_t >(val2);
55510 {
55511 operations_research::Solver* const solver = arg1->solver();
55512 FailureProtect protect;
55513 solver->set_fail_intercept([&protect]() {
55514 protect.JumpBack();
55515 });
55516 if (setjmp(protect.exception_buffer) == 0) {
55517 (arg1)->RemoveValue(arg2);
55518 solver->clear_fail_intercept();
55519 } else {
55520 solver->clear_fail_intercept();
55521 // IMPORTANT: the type and message of the exception raised matter,
55522 // because they are caught by the python overrides of some CP classes.
55523 // See the occurrences of the "PyExc_Exception" string below.
55524 PyErr_SetString(PyExc_Exception, "CP Solver fail");
55525 SWIG_fail;
55526 }
55527 }
55528 resultobj = SWIG_Py_Void();
55529 return resultobj;
55530fail:
55531 return NULL;
55532}
55533
55534
55535SWIGINTERN PyObject *_wrap_BooleanVar_RemoveInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55536 PyObject *resultobj = 0;
55538 int64_t arg2 ;
55539 int64_t arg3 ;
55540 void *argp1 = 0 ;
55541 int res1 = 0 ;
55542 long val2 ;
55543 int ecode2 = 0 ;
55544 long val3 ;
55545 int ecode3 = 0 ;
55546 PyObject * obj0 = 0 ;
55547 PyObject * obj1 = 0 ;
55548 PyObject * obj2 = 0 ;
55549
55550 if (!PyArg_UnpackTuple(args, "BooleanVar_RemoveInterval", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
55552 if (!SWIG_IsOK(res1)) {
55553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BooleanVar_RemoveInterval" "', argument " "1"" of type '" "operations_research::BooleanVar *""'");
55554 }
55555 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55556 ecode2 = SWIG_AsVal_long(obj1, &val2);
55557 if (!SWIG_IsOK(ecode2)) {
55558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BooleanVar_RemoveInterval" "', argument " "2"" of type '" "int64_t""'");
55559 }
55560 arg2 = static_cast< int64_t >(val2);
55561 ecode3 = SWIG_AsVal_long(obj2, &val3);
55562 if (!SWIG_IsOK(ecode3)) {
55563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BooleanVar_RemoveInterval" "', argument " "3"" of type '" "int64_t""'");
55564 }
55565 arg3 = static_cast< int64_t >(val3);
55566 {
55567 try {
55568 (arg1)->RemoveInterval(arg2,arg3);
55569 }
55570 catch (Swig::DirectorException &e) {
55571 SWIG_fail;
55572 }
55573 }
55574 resultobj = SWIG_Py_Void();
55575 return resultobj;
55576fail:
55577 return NULL;
55578}
55579
55580
55581SWIGINTERN PyObject *_wrap_BooleanVar_WhenBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55582 PyObject *resultobj = 0;
55585 void *argp1 = 0 ;
55586 int res1 = 0 ;
55587 void *argp2 = 0 ;
55588 int res2 = 0 ;
55589 PyObject * obj0 = 0 ;
55590 PyObject * obj1 = 0 ;
55591
55592 if (!PyArg_UnpackTuple(args, "BooleanVar_WhenBound", 2, 2, &obj0, &obj1)) SWIG_fail;
55594 if (!SWIG_IsOK(res1)) {
55595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BooleanVar_WhenBound" "', argument " "1"" of type '" "operations_research::BooleanVar *""'");
55596 }
55597 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55598 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
55599 if (!SWIG_IsOK(res2)) {
55600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BooleanVar_WhenBound" "', argument " "2"" of type '" "operations_research::Demon *""'");
55601 }
55602 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
55603 {
55604 try {
55605 (arg1)->WhenBound(arg2);
55606 }
55607 catch (Swig::DirectorException &e) {
55608 SWIG_fail;
55609 }
55610 }
55611 resultobj = SWIG_Py_Void();
55612 return resultobj;
55613fail:
55614 return NULL;
55615}
55616
55617
55618SWIGINTERN PyObject *_wrap_BooleanVar_WhenRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55619 PyObject *resultobj = 0;
55622 void *argp1 = 0 ;
55623 int res1 = 0 ;
55624 void *argp2 = 0 ;
55625 int res2 = 0 ;
55626 PyObject * obj0 = 0 ;
55627 PyObject * obj1 = 0 ;
55628
55629 if (!PyArg_UnpackTuple(args, "BooleanVar_WhenRange", 2, 2, &obj0, &obj1)) SWIG_fail;
55631 if (!SWIG_IsOK(res1)) {
55632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BooleanVar_WhenRange" "', argument " "1"" of type '" "operations_research::BooleanVar *""'");
55633 }
55634 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55635 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
55636 if (!SWIG_IsOK(res2)) {
55637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BooleanVar_WhenRange" "', argument " "2"" of type '" "operations_research::Demon *""'");
55638 }
55639 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
55640 {
55641 try {
55642 (arg1)->WhenRange(arg2);
55643 }
55644 catch (Swig::DirectorException &e) {
55645 SWIG_fail;
55646 }
55647 }
55648 resultobj = SWIG_Py_Void();
55649 return resultobj;
55650fail:
55651 return NULL;
55652}
55653
55654
55655SWIGINTERN PyObject *_wrap_BooleanVar_WhenDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55656 PyObject *resultobj = 0;
55659 void *argp1 = 0 ;
55660 int res1 = 0 ;
55661 void *argp2 = 0 ;
55662 int res2 = 0 ;
55663 PyObject * obj0 = 0 ;
55664 PyObject * obj1 = 0 ;
55665
55666 if (!PyArg_UnpackTuple(args, "BooleanVar_WhenDomain", 2, 2, &obj0, &obj1)) SWIG_fail;
55668 if (!SWIG_IsOK(res1)) {
55669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BooleanVar_WhenDomain" "', argument " "1"" of type '" "operations_research::BooleanVar *""'");
55670 }
55671 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55672 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__Demon, 0 | 0 );
55673 if (!SWIG_IsOK(res2)) {
55674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BooleanVar_WhenDomain" "', argument " "2"" of type '" "operations_research::Demon *""'");
55675 }
55676 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
55677 {
55678 try {
55679 (arg1)->WhenDomain(arg2);
55680 }
55681 catch (Swig::DirectorException &e) {
55682 SWIG_fail;
55683 }
55684 }
55685 resultobj = SWIG_Py_Void();
55686 return resultobj;
55687fail:
55688 return NULL;
55689}
55690
55691
55692SWIGINTERN PyObject *_wrap_BooleanVar_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55693 PyObject *resultobj = 0;
55695 void *argp1 = 0 ;
55696 int res1 = 0 ;
55697 PyObject * obj0 = 0 ;
55698 uint64_t result;
55699
55700 if (!PyArg_UnpackTuple(args, "BooleanVar_Size", 1, 1, &obj0)) SWIG_fail;
55702 if (!SWIG_IsOK(res1)) {
55703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BooleanVar_Size" "', argument " "1"" of type '" "operations_research::BooleanVar const *""'");
55704 }
55705 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55706 {
55707 try {
55708 result = (uint64_t)((operations_research::BooleanVar const *)arg1)->Size();
55709 }
55710 catch (Swig::DirectorException &e) {
55711 SWIG_fail;
55712 }
55713 }
55714 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
55715 return resultobj;
55716fail:
55717 return NULL;
55718}
55719
55720
55721SWIGINTERN PyObject *_wrap_BooleanVar_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55722 PyObject *resultobj = 0;
55724 int64_t arg2 ;
55725 void *argp1 = 0 ;
55726 int res1 = 0 ;
55727 long val2 ;
55728 int ecode2 = 0 ;
55729 PyObject * obj0 = 0 ;
55730 PyObject * obj1 = 0 ;
55731 bool result;
55732
55733 if (!PyArg_UnpackTuple(args, "BooleanVar_Contains", 2, 2, &obj0, &obj1)) SWIG_fail;
55735 if (!SWIG_IsOK(res1)) {
55736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BooleanVar_Contains" "', argument " "1"" of type '" "operations_research::BooleanVar const *""'");
55737 }
55738 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55739 ecode2 = SWIG_AsVal_long(obj1, &val2);
55740 if (!SWIG_IsOK(ecode2)) {
55741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BooleanVar_Contains" "', argument " "2"" of type '" "int64_t""'");
55742 }
55743 arg2 = static_cast< int64_t >(val2);
55744 {
55745 try {
55746 result = (bool)((operations_research::BooleanVar const *)arg1)->Contains(arg2);
55747 }
55748 catch (Swig::DirectorException &e) {
55749 SWIG_fail;
55750 }
55751 }
55752 resultobj = SWIG_From_bool(static_cast< bool >(result));
55753 return resultobj;
55754fail:
55755 return NULL;
55756}
55757
55758
55759SWIGINTERN PyObject *_wrap_BooleanVar_HoleIteratorAux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55760 PyObject *resultobj = 0;
55762 bool arg2 ;
55763 void *argp1 = 0 ;
55764 int res1 = 0 ;
55765 bool val2 ;
55766 int ecode2 = 0 ;
55767 PyObject * obj0 = 0 ;
55768 PyObject * obj1 = 0 ;
55770
55771 if (!PyArg_UnpackTuple(args, "BooleanVar_HoleIteratorAux", 2, 2, &obj0, &obj1)) SWIG_fail;
55773 if (!SWIG_IsOK(res1)) {
55774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BooleanVar_HoleIteratorAux" "', argument " "1"" of type '" "operations_research::BooleanVar const *""'");
55775 }
55776 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55777 ecode2 = SWIG_AsVal_bool(obj1, &val2);
55778 if (!SWIG_IsOK(ecode2)) {
55779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BooleanVar_HoleIteratorAux" "', argument " "2"" of type '" "bool""'");
55780 }
55781 arg2 = static_cast< bool >(val2);
55782 {
55783 try {
55784 result = (operations_research::IntVarIterator *)((operations_research::BooleanVar const *)arg1)->MakeHoleIterator(arg2);
55785 }
55786 catch (Swig::DirectorException &e) {
55787 SWIG_fail;
55788 }
55789 }
55791 return resultobj;
55792fail:
55793 return NULL;
55794}
55795
55796
55797SWIGINTERN PyObject *_wrap_BooleanVar_DomainIteratorAux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55798 PyObject *resultobj = 0;
55800 bool arg2 ;
55801 void *argp1 = 0 ;
55802 int res1 = 0 ;
55803 bool val2 ;
55804 int ecode2 = 0 ;
55805 PyObject * obj0 = 0 ;
55806 PyObject * obj1 = 0 ;
55808
55809 if (!PyArg_UnpackTuple(args, "BooleanVar_DomainIteratorAux", 2, 2, &obj0, &obj1)) SWIG_fail;
55811 if (!SWIG_IsOK(res1)) {
55812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BooleanVar_DomainIteratorAux" "', argument " "1"" of type '" "operations_research::BooleanVar const *""'");
55813 }
55814 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55815 ecode2 = SWIG_AsVal_bool(obj1, &val2);
55816 if (!SWIG_IsOK(ecode2)) {
55817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BooleanVar_DomainIteratorAux" "', argument " "2"" of type '" "bool""'");
55818 }
55819 arg2 = static_cast< bool >(val2);
55820 {
55821 try {
55822 result = (operations_research::IntVarIterator *)((operations_research::BooleanVar const *)arg1)->MakeDomainIterator(arg2);
55823 }
55824 catch (Swig::DirectorException &e) {
55825 SWIG_fail;
55826 }
55827 }
55829 return resultobj;
55830fail:
55831 return NULL;
55832}
55833
55834
55835SWIGINTERN PyObject *_wrap_BooleanVar_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55836 PyObject *resultobj = 0;
55838 void *argp1 = 0 ;
55839 int res1 = 0 ;
55840 PyObject * obj0 = 0 ;
55841 std::string result;
55842
55843 if (!PyArg_UnpackTuple(args, "BooleanVar_DebugString", 1, 1, &obj0)) SWIG_fail;
55845 if (!SWIG_IsOK(res1)) {
55846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BooleanVar_DebugString" "', argument " "1"" of type '" "operations_research::BooleanVar const *""'");
55847 }
55848 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55849 {
55850 try {
55851 result = ((operations_research::BooleanVar const *)arg1)->DebugString();
55852 }
55853 catch (Swig::DirectorException &e) {
55854 SWIG_fail;
55855 }
55856 }
55857 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
55858 return resultobj;
55859fail:
55860 return NULL;
55861}
55862
55863
55864SWIGINTERN PyObject *BooleanVar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55865 PyObject *obj;
55866 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
55868 return SWIG_Py_Void();
55869}
55870
55871SWIGINTERN PyObject *_wrap_new_RoutingIndexManager__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55872 PyObject *resultobj = 0;
55873 int arg1 ;
55874 int arg2 ;
55876 int val1 ;
55877 int ecode1 = 0 ;
55878 int val2 ;
55879 int ecode2 = 0 ;
55880 PyObject * obj0 = 0 ;
55881 PyObject * obj1 = 0 ;
55882 PyObject * obj2 = 0 ;
55884
55885 if (!PyArg_UnpackTuple(args, "new_RoutingIndexManager", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
55886 ecode1 = SWIG_AsVal_int(obj0, &val1);
55887 if (!SWIG_IsOK(ecode1)) {
55888 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RoutingIndexManager" "', argument " "1"" of type '" "int""'");
55889 }
55890 arg1 = static_cast< int >(val1);
55891 ecode2 = SWIG_AsVal_int(obj1, &val2);
55892 if (!SWIG_IsOK(ecode2)) {
55893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RoutingIndexManager" "', argument " "2"" of type '" "int""'");
55894 }
55895 arg2 = static_cast< int >(val2);
55896 {
55897 arg3 = operations_research::RoutingNodeIndex(PyInt_AsLong(obj2));
55898 }
55899 {
55900 try {
55902 }
55903 catch (Swig::DirectorException &e) {
55904 SWIG_fail;
55905 }
55906 }
55908 return resultobj;
55909fail:
55910 return NULL;
55911}
55912
55913
55914SWIGINTERN PyObject *_wrap_new_RoutingIndexManager__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55915 PyObject *resultobj = 0;
55916 int arg1 ;
55917 int arg2 ;
55918 std::vector< operations_research::RoutingIndexManager::NodeIndex > *arg3 = 0 ;
55919 std::vector< operations_research::RoutingIndexManager::NodeIndex > *arg4 = 0 ;
55920 int val1 ;
55921 int ecode1 = 0 ;
55922 int val2 ;
55923 int ecode2 = 0 ;
55924 std::vector< operations_research::RoutingNodeIndex > temp3 ;
55925 std::vector< operations_research::RoutingNodeIndex > temp4 ;
55926 PyObject * obj0 = 0 ;
55927 PyObject * obj1 = 0 ;
55928 PyObject * obj2 = 0 ;
55929 PyObject * obj3 = 0 ;
55931
55932 if (!PyArg_UnpackTuple(args, "new_RoutingIndexManager", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
55933 ecode1 = SWIG_AsVal_int(obj0, &val1);
55934 if (!SWIG_IsOK(ecode1)) {
55935 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RoutingIndexManager" "', argument " "1"" of type '" "int""'");
55936 }
55937 arg1 = static_cast< int >(val1);
55938 ecode2 = SWIG_AsVal_int(obj1, &val2);
55939 if (!SWIG_IsOK(ecode2)) {
55940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RoutingIndexManager" "', argument " "2"" of type '" "int""'");
55941 }
55942 arg2 = static_cast< int >(val2);
55943 {
55944 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::RoutingNodeIndex>)) {
55945 if (!PyErr_Occurred())
55946 SWIG_Error(SWIG_TypeError, "sequence(operations_research::RoutingNodeIndex) expected");
55947 return NULL;
55948 }
55949 arg3 = &temp3;
55950 }
55951 {
55952 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::RoutingNodeIndex>)) {
55953 if (!PyErr_Occurred())
55954 SWIG_Error(SWIG_TypeError, "sequence(operations_research::RoutingNodeIndex) expected");
55955 return NULL;
55956 }
55957 arg4 = &temp4;
55958 }
55959 {
55960 try {
55961 result = (operations_research::RoutingIndexManager *)new operations_research::RoutingIndexManager(arg1,arg2,(std::vector< operations_research::RoutingIndexManager::NodeIndex > const &)*arg3,(std::vector< operations_research::RoutingIndexManager::NodeIndex > const &)*arg4);
55962 }
55963 catch (Swig::DirectorException &e) {
55964 SWIG_fail;
55965 }
55966 }
55968 return resultobj;
55969fail:
55970 return NULL;
55971}
55972
55973
55974SWIGINTERN PyObject *_wrap_new_RoutingIndexManager(PyObject *self, PyObject *args) {
55975 Py_ssize_t argc;
55976 PyObject *argv[5] = {
55977 0
55978 };
55979 Py_ssize_t ii;
55980
55981 if (!PyTuple_Check(args)) SWIG_fail;
55982 argc = PyObject_Length(args);
55983 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
55984 argv[ii] = PyTuple_GET_ITEM(args,ii);
55985 }
55986 if (argc == 3) {
55987 int _v;
55988 {
55989 int res = SWIG_AsVal_int(argv[0], NULL);
55990 _v = SWIG_CheckState(res);
55991 }
55992 if (_v) {
55993 {
55994 int res = SWIG_AsVal_int(argv[1], NULL);
55995 _v = SWIG_CheckState(res);
55996 }
55997 if (_v) {
55998 {
55999 int res = SWIG_AsVal_int(argv[2], NULL);
56000 _v = SWIG_CheckState(res);
56001 }
56002 if (_v) {
56003 return _wrap_new_RoutingIndexManager__SWIG_0(self, args);
56004 }
56005 }
56006 }
56007 }
56008 if (argc == 4) {
56009 int _v;
56010 {
56011 int res = SWIG_AsVal_int(argv[0], NULL);
56012 _v = SWIG_CheckState(res);
56013 }
56014 if (_v) {
56015 {
56016 int res = SWIG_AsVal_int(argv[1], NULL);
56017 _v = SWIG_CheckState(res);
56018 }
56019 if (_v) {
56020 {
56021 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
56022 _v = 0;
56023 } else {
56024 const bool is_tuple = PyTuple_Check(argv[2]);
56025 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
56026 size_t i = 0;
56027 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
56028 :PyList_GetItem(argv[2], i))) {
56029 ++i;
56030 }
56031 _v = i == size;
56032 }
56033 }
56034 if (_v) {
56035 {
56036 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
56037 _v = 0;
56038 } else {
56039 const bool is_tuple = PyTuple_Check(argv[3]);
56040 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
56041 size_t i = 0;
56042 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
56043 :PyList_GetItem(argv[3], i))) {
56044 ++i;
56045 }
56046 _v = i == size;
56047 }
56048 }
56049 if (_v) {
56050 return _wrap_new_RoutingIndexManager__SWIG_1(self, args);
56051 }
56052 }
56053 }
56054 }
56055 }
56056
56057fail:
56058 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_RoutingIndexManager'.\n"
56059 " Possible C/C++ prototypes are:\n"
56060 " operations_research::RoutingIndexManager::RoutingIndexManager(int,int,operations_research::RoutingIndexManager::NodeIndex)\n"
56061 " operations_research::RoutingIndexManager::RoutingIndexManager(int,int,std::vector< operations_research::RoutingIndexManager::NodeIndex > const &,std::vector< operations_research::RoutingIndexManager::NodeIndex > const &)\n");
56062 return 0;
56063}
56064
56065
56066SWIGINTERN PyObject *_wrap_delete_RoutingIndexManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56067 PyObject *resultobj = 0;
56069 void *argp1 = 0 ;
56070 int res1 = 0 ;
56071 PyObject * obj0 = 0 ;
56072
56073 if (!PyArg_UnpackTuple(args, "delete_RoutingIndexManager", 1, 1, &obj0)) SWIG_fail;
56075 if (!SWIG_IsOK(res1)) {
56076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RoutingIndexManager" "', argument " "1"" of type '" "operations_research::RoutingIndexManager *""'");
56077 }
56078 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56079 {
56080 try {
56081 delete arg1;
56082 }
56083 catch (Swig::DirectorException &e) {
56084 SWIG_fail;
56085 }
56086 }
56087 resultobj = SWIG_Py_Void();
56088 return resultobj;
56089fail:
56090 return NULL;
56091}
56092
56093
56095 PyObject *resultobj = 0;
56097 void *argp1 = 0 ;
56098 int res1 = 0 ;
56099 PyObject * obj0 = 0 ;
56100 int result;
56101
56102 if (!PyArg_UnpackTuple(args, "RoutingIndexManager_GetNumberOfNodes", 1, 1, &obj0)) SWIG_fail;
56104 if (!SWIG_IsOK(res1)) {
56105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingIndexManager_GetNumberOfNodes" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56106 }
56107 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56108 {
56109 try {
56110 result = (int)((operations_research::RoutingIndexManager const *)arg1)->num_nodes();
56111 }
56112 catch (Swig::DirectorException &e) {
56113 SWIG_fail;
56114 }
56115 }
56116 resultobj = SWIG_From_int(static_cast< int >(result));
56117 return resultobj;
56118fail:
56119 return NULL;
56120}
56121
56122
56124 PyObject *resultobj = 0;
56126 void *argp1 = 0 ;
56127 int res1 = 0 ;
56128 PyObject * obj0 = 0 ;
56129 int result;
56130
56131 if (!PyArg_UnpackTuple(args, "RoutingIndexManager_GetNumberOfVehicles", 1, 1, &obj0)) SWIG_fail;
56133 if (!SWIG_IsOK(res1)) {
56134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingIndexManager_GetNumberOfVehicles" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56135 }
56136 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56137 {
56138 try {
56139 result = (int)((operations_research::RoutingIndexManager const *)arg1)->num_vehicles();
56140 }
56141 catch (Swig::DirectorException &e) {
56142 SWIG_fail;
56143 }
56144 }
56145 resultobj = SWIG_From_int(static_cast< int >(result));
56146 return resultobj;
56147fail:
56148 return NULL;
56149}
56150
56151
56153 PyObject *resultobj = 0;
56155 void *argp1 = 0 ;
56156 int res1 = 0 ;
56157 PyObject * obj0 = 0 ;
56158 int result;
56159
56160 if (!PyArg_UnpackTuple(args, "RoutingIndexManager_GetNumberOfIndices", 1, 1, &obj0)) SWIG_fail;
56162 if (!SWIG_IsOK(res1)) {
56163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingIndexManager_GetNumberOfIndices" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56164 }
56165 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56166 {
56167 try {
56168 result = (int)((operations_research::RoutingIndexManager const *)arg1)->num_indices();
56169 }
56170 catch (Swig::DirectorException &e) {
56171 SWIG_fail;
56172 }
56173 }
56174 resultobj = SWIG_From_int(static_cast< int >(result));
56175 return resultobj;
56176fail:
56177 return NULL;
56178}
56179
56180
56181SWIGINTERN PyObject *_wrap_RoutingIndexManager_GetStartIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56182 PyObject *resultobj = 0;
56184 int arg2 ;
56185 void *argp1 = 0 ;
56186 int res1 = 0 ;
56187 int val2 ;
56188 int ecode2 = 0 ;
56189 PyObject * obj0 = 0 ;
56190 PyObject * obj1 = 0 ;
56191 int64_t result;
56192
56193 if (!PyArg_UnpackTuple(args, "RoutingIndexManager_GetStartIndex", 2, 2, &obj0, &obj1)) SWIG_fail;
56195 if (!SWIG_IsOK(res1)) {
56196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingIndexManager_GetStartIndex" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56197 }
56198 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56199 ecode2 = SWIG_AsVal_int(obj1, &val2);
56200 if (!SWIG_IsOK(ecode2)) {
56201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingIndexManager_GetStartIndex" "', argument " "2"" of type '" "int""'");
56202 }
56203 arg2 = static_cast< int >(val2);
56204 {
56205 try {
56206 result = (int64_t)((operations_research::RoutingIndexManager const *)arg1)->GetStartIndex(arg2);
56207 }
56208 catch (Swig::DirectorException &e) {
56209 SWIG_fail;
56210 }
56211 }
56212 resultobj = SWIG_From_long(static_cast< long >(result));
56213 return resultobj;
56214fail:
56215 return NULL;
56216}
56217
56218
56219SWIGINTERN PyObject *_wrap_RoutingIndexManager_GetEndIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56220 PyObject *resultobj = 0;
56222 int arg2 ;
56223 void *argp1 = 0 ;
56224 int res1 = 0 ;
56225 int val2 ;
56226 int ecode2 = 0 ;
56227 PyObject * obj0 = 0 ;
56228 PyObject * obj1 = 0 ;
56229 int64_t result;
56230
56231 if (!PyArg_UnpackTuple(args, "RoutingIndexManager_GetEndIndex", 2, 2, &obj0, &obj1)) SWIG_fail;
56233 if (!SWIG_IsOK(res1)) {
56234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingIndexManager_GetEndIndex" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56235 }
56236 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56237 ecode2 = SWIG_AsVal_int(obj1, &val2);
56238 if (!SWIG_IsOK(ecode2)) {
56239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingIndexManager_GetEndIndex" "', argument " "2"" of type '" "int""'");
56240 }
56241 arg2 = static_cast< int >(val2);
56242 {
56243 try {
56244 result = (int64_t)((operations_research::RoutingIndexManager const *)arg1)->GetEndIndex(arg2);
56245 }
56246 catch (Swig::DirectorException &e) {
56247 SWIG_fail;
56248 }
56249 }
56250 resultobj = SWIG_From_long(static_cast< long >(result));
56251 return resultobj;
56252fail:
56253 return NULL;
56254}
56255
56256
56257SWIGINTERN PyObject *_wrap_RoutingIndexManager_NodeToIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56258 PyObject *resultobj = 0;
56261 void *argp1 = 0 ;
56262 int res1 = 0 ;
56263 PyObject * obj0 = 0 ;
56264 PyObject * obj1 = 0 ;
56265 int64_t result;
56266
56267 if (!PyArg_UnpackTuple(args, "RoutingIndexManager_NodeToIndex", 2, 2, &obj0, &obj1)) SWIG_fail;
56269 if (!SWIG_IsOK(res1)) {
56270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingIndexManager_NodeToIndex" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56271 }
56272 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56273 {
56274 arg2 = operations_research::RoutingNodeIndex(PyInt_AsLong(obj1));
56275 }
56276 {
56277 try {
56278 result = (int64_t)((operations_research::RoutingIndexManager const *)arg1)->NodeToIndex(arg2);
56279 }
56280 catch (Swig::DirectorException &e) {
56281 SWIG_fail;
56282 }
56283 }
56284 resultobj = SWIG_From_long(static_cast< long >(result));
56285 return resultobj;
56286fail:
56287 return NULL;
56288}
56289
56290
56291SWIGINTERN PyObject *_wrap_RoutingIndexManager_IndexToNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56292 PyObject *resultobj = 0;
56294 int64_t arg2 ;
56295 void *argp1 = 0 ;
56296 int res1 = 0 ;
56297 long val2 ;
56298 int ecode2 = 0 ;
56299 PyObject * obj0 = 0 ;
56300 PyObject * obj1 = 0 ;
56302
56303 if (!PyArg_UnpackTuple(args, "RoutingIndexManager_IndexToNode", 2, 2, &obj0, &obj1)) SWIG_fail;
56305 if (!SWIG_IsOK(res1)) {
56306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingIndexManager_IndexToNode" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56307 }
56308 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56309 ecode2 = SWIG_AsVal_long(obj1, &val2);
56310 if (!SWIG_IsOK(ecode2)) {
56311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingIndexManager_IndexToNode" "', argument " "2"" of type '" "int64_t""'");
56312 }
56313 arg2 = static_cast< int64_t >(val2);
56314 {
56315 try {
56316 result = ((operations_research::RoutingIndexManager const *)arg1)->IndexToNode(arg2);
56317 }
56318 catch (Swig::DirectorException &e) {
56319 SWIG_fail;
56320 }
56321 }
56322 {
56323 resultobj = PyInt_FromLong((&result)->value());
56324 }
56325 return resultobj;
56326fail:
56327 return NULL;
56328}
56329
56330
56331SWIGINTERN PyObject *RoutingIndexManager_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56332 PyObject *obj;
56333 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
56335 return SWIG_Py_Void();
56336}
56337
56338SWIGINTERN PyObject *RoutingIndexManager_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56339 return SWIG_Python_InitShadowInstance(args);
56340}
56341
56342SWIGINTERN PyObject *_wrap_DefaultRoutingModelParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56343 PyObject *resultobj = 0;
56345
56346 if (!PyArg_UnpackTuple(args, "DefaultRoutingModelParameters", 0, 0)) SWIG_fail;
56347 {
56348 try {
56350 }
56351 catch (Swig::DirectorException &e) {
56352 SWIG_fail;
56353 }
56354 }
56355 {
56356 PyObject* const module = PyImport_ImportModule("ortools.constraint_solver.routing_parameters_pb2");
56357 if (module != nullptr) {
56358 PyObject* const dict = PyModule_GetDict(module);
56359 if (dict != nullptr) {
56360 PyObject* const clss = PyDict_GetItemString(dict, "RoutingModelParameters");
56361 if (clss != nullptr) {
56362 std::string encoded_protobuf;
56363 (&result)->SerializeToString(&encoded_protobuf);
56364
56365 PyObject* const python_encoded_protobuf = PyBytes_FromStringAndSize(
56366 encoded_protobuf.c_str(), encoded_protobuf.size());
56367
56368
56369
56370
56371 PyObject* const result = PyObject_CallMethod(
56372 clss, const_cast<char*>("FromString"),
56373 const_cast<char*>("(O)"),
56374 python_encoded_protobuf);
56375 Py_DECREF(python_encoded_protobuf);
56376 resultobj = result;
56377 }
56378 }
56379 Py_DECREF(module);
56380 }
56381 }
56382 return resultobj;
56383fail:
56384 return NULL;
56385}
56386
56387
56388SWIGINTERN PyObject *_wrap_DefaultRoutingSearchParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56389 PyObject *resultobj = 0;
56391
56392 if (!PyArg_UnpackTuple(args, "DefaultRoutingSearchParameters", 0, 0)) SWIG_fail;
56393 {
56394 try {
56396 }
56397 catch (Swig::DirectorException &e) {
56398 SWIG_fail;
56399 }
56400 }
56401 {
56402 PyObject* const module = PyImport_ImportModule("ortools.constraint_solver.routing_parameters_pb2");
56403 if (module != nullptr) {
56404 PyObject* const dict = PyModule_GetDict(module);
56405 if (dict != nullptr) {
56406 PyObject* const clss = PyDict_GetItemString(dict, "RoutingSearchParameters");
56407 if (clss != nullptr) {
56408 std::string encoded_protobuf;
56409 (&result)->SerializeToString(&encoded_protobuf);
56410
56411 PyObject* const python_encoded_protobuf = PyBytes_FromStringAndSize(
56412 encoded_protobuf.c_str(), encoded_protobuf.size());
56413
56414
56415
56416
56417 PyObject* const result = PyObject_CallMethod(
56418 clss, const_cast<char*>("FromString"),
56419 const_cast<char*>("(O)"),
56420 python_encoded_protobuf);
56421 Py_DECREF(python_encoded_protobuf);
56422 resultobj = result;
56423 }
56424 }
56425 Py_DECREF(module);
56426 }
56427 }
56428 return resultobj;
56429fail:
56430 return NULL;
56431}
56432
56433
56434SWIGINTERN PyObject *_wrap_FindErrorInRoutingSearchParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56435 PyObject *resultobj = 0;
56437 PyObject * obj0 = 0 ;
56438 std::string result;
56439
56440 if (!PyArg_UnpackTuple(args, "FindErrorInRoutingSearchParameters", 1, 1, &obj0)) SWIG_fail;
56441 {
56443 PyObject* const pyresult = PyObject_CallMethod(
56444 obj0, const_cast<char*>("SerializeToString"), nullptr);
56445 if (pyresult != nullptr) {
56446 char* buffer = nullptr;
56447 Py_ssize_t length = 0;
56448 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
56449 if (buffer != nullptr) {
56450 arg1->ParseFromArray(buffer, length);
56451 }
56452 Py_DECREF(pyresult);
56453 }
56454 }
56455 {
56456 try {
56458 }
56459 catch (Swig::DirectorException &e) {
56460 SWIG_fail;
56461 }
56462 }
56463 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
56464 {
56465 delete arg1;
56466 }
56467 return resultobj;
56468fail:
56469 {
56470 delete arg1;
56471 }
56472 return NULL;
56473}
56474
56475
56477 SWIG_Error(SWIG_AttributeError,"Variable RoutingModel_kNoPenalty is read-only.");
56478 return 1;
56479}
56480
56481
56483 PyObject *pyobj = 0;
56484
56486 return pyobj;
56487}
56488
56489
56491 SWIG_Error(SWIG_AttributeError,"Variable RoutingModel_kNoDisjunction is read-only.");
56492 return 1;
56493}
56494
56495
56497 PyObject *pyobj = 0;
56498
56500 return pyobj;
56501}
56502
56503
56505 SWIG_Error(SWIG_AttributeError,"Variable RoutingModel_kNoDimension is read-only.");
56506 return 1;
56507}
56508
56509
56511 PyObject *pyobj = 0;
56512
56514 return pyobj;
56515}
56516
56517
56518SWIGINTERN PyObject *_wrap_new_RoutingModel__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56519 PyObject *resultobj = 0;
56521 void *argp1 = 0 ;
56522 int res1 = 0 ;
56523 PyObject * obj0 = 0 ;
56525
56526 if (!PyArg_UnpackTuple(args, "new_RoutingModel", 1, 1, &obj0)) SWIG_fail;
56528 if (!SWIG_IsOK(res1)) {
56529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RoutingModel" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const &""'");
56530 }
56531 if (!argp1) {
56532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RoutingModel" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const &""'");
56533 }
56534 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56535 {
56536 try {
56538 }
56539 catch (Swig::DirectorException &e) {
56540 SWIG_fail;
56541 }
56542 }
56544 return resultobj;
56545fail:
56546 return NULL;
56547}
56548
56549
56550SWIGINTERN PyObject *_wrap_new_RoutingModel__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56551 PyObject *resultobj = 0;
56554 void *argp1 = 0 ;
56555 int res1 = 0 ;
56556 PyObject * obj0 = 0 ;
56557 PyObject * obj1 = 0 ;
56559
56560 if (!PyArg_UnpackTuple(args, "new_RoutingModel", 2, 2, &obj0, &obj1)) SWIG_fail;
56562 if (!SWIG_IsOK(res1)) {
56563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RoutingModel" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const &""'");
56564 }
56565 if (!argp1) {
56566 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RoutingModel" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const &""'");
56567 }
56568 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56569 {
56571 PyObject* const pyresult = PyObject_CallMethod(
56572 obj1, const_cast<char*>("SerializeToString"), nullptr);
56573 if (pyresult != nullptr) {
56574 char* buffer = nullptr;
56575 Py_ssize_t length = 0;
56576 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
56577 if (buffer != nullptr) {
56578 arg2->ParseFromArray(buffer, length);
56579 }
56580 Py_DECREF(pyresult);
56581 }
56582 }
56583 {
56584 try {
56586 }
56587 catch (Swig::DirectorException &e) {
56588 SWIG_fail;
56589 }
56590 }
56592 {
56593 delete arg2;
56594 }
56595 return resultobj;
56596fail:
56597 {
56598 delete arg2;
56599 }
56600 return NULL;
56601}
56602
56603
56604SWIGINTERN PyObject *_wrap_new_RoutingModel(PyObject *self, PyObject *args) {
56605 Py_ssize_t argc;
56606 PyObject *argv[3] = {
56607 0
56608 };
56609 Py_ssize_t ii;
56610
56611 if (!PyTuple_Check(args)) SWIG_fail;
56612 argc = PyObject_Length(args);
56613 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
56614 argv[ii] = PyTuple_GET_ITEM(args,ii);
56615 }
56616 if (argc == 1) {
56617 int _v;
56619 _v = SWIG_CheckState(res);
56620 if (_v) {
56621 return _wrap_new_RoutingModel__SWIG_0(self, args);
56622 }
56623 }
56624 if (argc == 2) {
56625 int _v;
56627 _v = SWIG_CheckState(res);
56628 if (_v) {
56629 {
56630 bool ok = false;
56631 PyObject* const module = PyImport_ImportModule("ortools.constraint_solver.routing_parameters_pb2");
56632 if (module != nullptr) {
56633 PyObject* const dict = PyModule_GetDict(module);
56634 if (dict != nullptr) {
56635 PyObject* const clss = PyDict_GetItemString(dict, "RoutingModelParameters");
56636 if (clss != nullptr) {
56637 if (PyObject_IsInstance(argv[1], clss)) {
56638 ok = true;
56639 }
56640 }
56641 }
56642 Py_DECREF(module);
56643 }
56644 _v = ok ? 1 : 0;
56645 }
56646 if (_v) {
56647 return _wrap_new_RoutingModel__SWIG_1(self, args);
56648 }
56649 }
56650 }
56651
56652fail:
56653 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_RoutingModel'.\n"
56654 " Possible C/C++ prototypes are:\n"
56655 " operations_research::RoutingModel::RoutingModel(operations_research::RoutingIndexManager const &)\n"
56656 " operations_research::RoutingModel::RoutingModel(operations_research::RoutingIndexManager const &,operations_research::RoutingModelParameters const &)\n");
56657 return 0;
56658}
56659
56660
56661SWIGINTERN PyObject *_wrap_delete_RoutingModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56662 PyObject *resultobj = 0;
56664 void *argp1 = 0 ;
56665 int res1 = 0 ;
56666 PyObject * obj0 = 0 ;
56667
56668 if (!PyArg_UnpackTuple(args, "delete_RoutingModel", 1, 1, &obj0)) SWIG_fail;
56670 if (!SWIG_IsOK(res1)) {
56671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RoutingModel" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56672 }
56673 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56674 {
56675 try {
56676 delete arg1;
56677 }
56678 catch (Swig::DirectorException &e) {
56679 SWIG_fail;
56680 }
56681 }
56682 resultobj = SWIG_Py_Void();
56683 return resultobj;
56684fail:
56685 return NULL;
56686}
56687
56688
56690 PyObject *resultobj = 0;
56692 std::vector< int64_t > arg2 ;
56693 void *argp1 = 0 ;
56694 int res1 = 0 ;
56695 std::vector< int64_t > temp2 ;
56696 PyObject * obj0 = 0 ;
56697 PyObject * obj1 = 0 ;
56698 int result;
56699
56700 if (!PyArg_UnpackTuple(args, "RoutingModel_RegisterUnaryTransitVector", 2, 2, &obj0, &obj1)) SWIG_fail;
56702 if (!SWIG_IsOK(res1)) {
56703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_RegisterUnaryTransitVector" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56704 }
56705 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56706 {
56707 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
56708 if (!PyErr_Occurred())
56709 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
56710 return NULL;
56711 }
56712 arg2 = std::move(temp2);
56713 }
56714 {
56715 try {
56716 result = (int)(arg1)->RegisterUnaryTransitVector(arg2);
56717 }
56718 catch (Swig::DirectorException &e) {
56719 SWIG_fail;
56720 }
56721 }
56722 resultobj = SWIG_From_int(static_cast< int >(result));
56723 return resultobj;
56724fail:
56725 return NULL;
56726}
56727
56728
56730 PyObject *resultobj = 0;
56733 void *argp1 = 0 ;
56734 int res1 = 0 ;
56735 PyObject * obj0 = 0 ;
56736 PyObject * obj1 = 0 ;
56737 int result;
56738
56739 if (!PyArg_UnpackTuple(args, "RoutingModel_RegisterUnaryTransitCallback", 2, 2, &obj0, &obj1)) SWIG_fail;
56741 if (!SWIG_IsOK(res1)) {
56742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_RegisterUnaryTransitCallback" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56743 }
56744 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56745 {
56746 SharedPyPtr input(obj1);
56747 arg2 = [input](int64_t index) {
56748 return InvokePythonCallableReturning<int64_t>(input.get(), "(L)", index);
56749 };
56750 }
56751 {
56752 try {
56753 result = (int)(arg1)->RegisterUnaryTransitCallback(arg2);
56754 }
56755 catch (Swig::DirectorException &e) {
56756 SWIG_fail;
56757 }
56758 }
56759 resultobj = SWIG_From_int(static_cast< int >(result));
56760 return resultobj;
56761fail:
56762 return NULL;
56763}
56764
56765
56767 PyObject *resultobj = 0;
56770 void *argp1 = 0 ;
56771 int res1 = 0 ;
56772 PyObject * obj0 = 0 ;
56773 PyObject * obj1 = 0 ;
56774 int result;
56775
56776 if (!PyArg_UnpackTuple(args, "RoutingModel_RegisterPositiveUnaryTransitCallback", 2, 2, &obj0, &obj1)) SWIG_fail;
56778 if (!SWIG_IsOK(res1)) {
56779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_RegisterPositiveUnaryTransitCallback" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56780 }
56781 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56782 {
56783 SharedPyPtr input(obj1);
56784 arg2 = [input](int64_t index) {
56785 return InvokePythonCallableReturning<int64_t>(input.get(), "(L)", index);
56786 };
56787 }
56788 {
56789 try {
56790 result = (int)(arg1)->RegisterPositiveUnaryTransitCallback(arg2);
56791 }
56792 catch (Swig::DirectorException &e) {
56793 SWIG_fail;
56794 }
56795 }
56796 resultobj = SWIG_From_int(static_cast< int >(result));
56797 return resultobj;
56798fail:
56799 return NULL;
56800}
56801
56802
56803SWIGINTERN PyObject *_wrap_RoutingModel_RegisterTransitMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56804 PyObject *resultobj = 0;
56806 std::vector< std::vector< int64_t > > arg2 ;
56807 void *argp1 = 0 ;
56808 int res1 = 0 ;
56809 std::vector< std::vector< int64_t > > temp2 ;
56810 PyObject * obj0 = 0 ;
56811 PyObject * obj1 = 0 ;
56812 int result;
56813
56814 if (!PyArg_UnpackTuple(args, "RoutingModel_RegisterTransitMatrix", 2, 2, &obj0, &obj1)) SWIG_fail;
56816 if (!SWIG_IsOK(res1)) {
56817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_RegisterTransitMatrix" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56818 }
56819 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56820 {
56821 if (!PyList_Check(obj1)) {
56822 PyErr_SetString(PyExc_TypeError, "Expecting a list of tuples");
56823 SWIG_fail;
56824 }
56825 int len = PyList_Size(obj1);
56826 int arity = -1;
56827 if (len > 0) {
56828 temp2.resize(len);
56829 for (size_t i = 0; i < len; ++i) {
56830 PyObject *tuple = PyList_GetItem(obj1, i);
56831 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
56832 PyErr_SetString(PyExc_TypeError, "Expecting a sequence");
56833 SWIG_fail;
56834 }
56835 bool is_tuple = PyTuple_Check(tuple);
56836 int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
56837 temp2[i].resize(arity);
56838 for (size_t j = 0; j < arity; ++j) {
56839 bool success = PyObjAs<int64_t>(
56840 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j),
56841 &temp2[i][j]);
56842 if (!success) {
56843 SWIG_fail;
56844 }
56845 }
56846 }
56847 }
56848 arg2 = std::move(temp2);
56849 }
56850 {
56851 try {
56852 result = (int)(arg1)->RegisterTransitMatrix(arg2);
56853 }
56854 catch (Swig::DirectorException &e) {
56855 SWIG_fail;
56856 }
56857 }
56858 resultobj = SWIG_From_int(static_cast< int >(result));
56859 return resultobj;
56860fail:
56861 return NULL;
56862}
56863
56864
56866 PyObject *resultobj = 0;
56869 void *argp1 = 0 ;
56870 int res1 = 0 ;
56871 PyObject * obj0 = 0 ;
56872 PyObject * obj1 = 0 ;
56873 int result;
56874
56875 if (!PyArg_UnpackTuple(args, "RoutingModel_RegisterTransitCallback", 2, 2, &obj0, &obj1)) SWIG_fail;
56877 if (!SWIG_IsOK(res1)) {
56878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_RegisterTransitCallback" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56879 }
56880 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56881 {
56882 SharedPyPtr input(obj1);
56883 arg2 = [input](int64_t i, int64_t j) {
56884 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
56885 };
56886 }
56887 {
56888 try {
56889 result = (int)(arg1)->RegisterTransitCallback(arg2);
56890 }
56891 catch (Swig::DirectorException &e) {
56892 SWIG_fail;
56893 }
56894 }
56895 resultobj = SWIG_From_int(static_cast< int >(result));
56896 return resultobj;
56897fail:
56898 return NULL;
56899}
56900
56901
56903 PyObject *resultobj = 0;
56906 void *argp1 = 0 ;
56907 int res1 = 0 ;
56908 PyObject * obj0 = 0 ;
56909 PyObject * obj1 = 0 ;
56910 int result;
56911
56912 if (!PyArg_UnpackTuple(args, "RoutingModel_RegisterPositiveTransitCallback", 2, 2, &obj0, &obj1)) SWIG_fail;
56914 if (!SWIG_IsOK(res1)) {
56915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_RegisterPositiveTransitCallback" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56916 }
56917 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56918 {
56919 SharedPyPtr input(obj1);
56920 arg2 = [input](int64_t i, int64_t j) {
56921 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
56922 };
56923 }
56924 {
56925 try {
56926 result = (int)(arg1)->RegisterPositiveTransitCallback(arg2);
56927 }
56928 catch (Swig::DirectorException &e) {
56929 SWIG_fail;
56930 }
56931 }
56932 resultobj = SWIG_From_int(static_cast< int >(result));
56933 return resultobj;
56934fail:
56935 return NULL;
56936}
56937
56938
56939SWIGINTERN PyObject *_wrap_RoutingModel_TransitCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56940 PyObject *resultobj = 0;
56942 int arg2 ;
56943 void *argp1 = 0 ;
56944 int res1 = 0 ;
56945 int val2 ;
56946 int ecode2 = 0 ;
56947 PyObject * obj0 = 0 ;
56948 PyObject * obj1 = 0 ;
56950
56951 if (!PyArg_UnpackTuple(args, "RoutingModel_TransitCallback", 2, 2, &obj0, &obj1)) SWIG_fail;
56953 if (!SWIG_IsOK(res1)) {
56954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_TransitCallback" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
56955 }
56956 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56957 ecode2 = SWIG_AsVal_int(obj1, &val2);
56958 if (!SWIG_IsOK(ecode2)) {
56959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_TransitCallback" "', argument " "2"" of type '" "int""'");
56960 }
56961 arg2 = static_cast< int >(val2);
56962 {
56963 try {
56964 result = (operations_research::RoutingModel::TransitCallback2 *) &((operations_research::RoutingModel const *)arg1)->TransitCallback(arg2);
56965 }
56966 catch (Swig::DirectorException &e) {
56967 SWIG_fail;
56968 }
56969 }
56971 return resultobj;
56972fail:
56973 return NULL;
56974}
56975
56976
56978 PyObject *resultobj = 0;
56980 int arg2 ;
56981 void *argp1 = 0 ;
56982 int res1 = 0 ;
56983 int val2 ;
56984 int ecode2 = 0 ;
56985 PyObject * obj0 = 0 ;
56986 PyObject * obj1 = 0 ;
56988
56989 if (!PyArg_UnpackTuple(args, "RoutingModel_UnaryTransitCallbackOrNull", 2, 2, &obj0, &obj1)) SWIG_fail;
56991 if (!SWIG_IsOK(res1)) {
56992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_UnaryTransitCallbackOrNull" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
56993 }
56994 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56995 ecode2 = SWIG_AsVal_int(obj1, &val2);
56996 if (!SWIG_IsOK(ecode2)) {
56997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_UnaryTransitCallbackOrNull" "', argument " "2"" of type '" "int""'");
56998 }
56999 arg2 = static_cast< int >(val2);
57000 {
57001 try {
57002 result = (operations_research::RoutingModel::TransitCallback1 *) &((operations_research::RoutingModel const *)arg1)->UnaryTransitCallbackOrNull(arg2);
57003 }
57004 catch (Swig::DirectorException &e) {
57005 SWIG_fail;
57006 }
57007 }
57009 return resultobj;
57010fail:
57011 return NULL;
57012}
57013
57014
57015SWIGINTERN PyObject *_wrap_RoutingModel_AddDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57016 PyObject *resultobj = 0;
57018 int arg2 ;
57019 int64_t arg3 ;
57020 int64_t arg4 ;
57021 bool arg5 ;
57022 std::string *arg6 = 0 ;
57023 void *argp1 = 0 ;
57024 int res1 = 0 ;
57025 int val2 ;
57026 int ecode2 = 0 ;
57027 long val3 ;
57028 int ecode3 = 0 ;
57029 long val4 ;
57030 int ecode4 = 0 ;
57031 bool val5 ;
57032 int ecode5 = 0 ;
57033 int res6 = SWIG_OLDOBJ ;
57034 PyObject * obj0 = 0 ;
57035 PyObject * obj1 = 0 ;
57036 PyObject * obj2 = 0 ;
57037 PyObject * obj3 = 0 ;
57038 PyObject * obj4 = 0 ;
57039 PyObject * obj5 = 0 ;
57040 bool result;
57041
57042 if (!PyArg_UnpackTuple(args, "RoutingModel_AddDimension", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
57044 if (!SWIG_IsOK(res1)) {
57045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddDimension" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57046 }
57047 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57048 ecode2 = SWIG_AsVal_int(obj1, &val2);
57049 if (!SWIG_IsOK(ecode2)) {
57050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_AddDimension" "', argument " "2"" of type '" "int""'");
57051 }
57052 arg2 = static_cast< int >(val2);
57053 ecode3 = SWIG_AsVal_long(obj2, &val3);
57054 if (!SWIG_IsOK(ecode3)) {
57055 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_AddDimension" "', argument " "3"" of type '" "int64_t""'");
57056 }
57057 arg3 = static_cast< int64_t >(val3);
57058 ecode4 = SWIG_AsVal_long(obj3, &val4);
57059 if (!SWIG_IsOK(ecode4)) {
57060 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingModel_AddDimension" "', argument " "4"" of type '" "int64_t""'");
57061 }
57062 arg4 = static_cast< int64_t >(val4);
57063 ecode5 = SWIG_AsVal_bool(obj4, &val5);
57064 if (!SWIG_IsOK(ecode5)) {
57065 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RoutingModel_AddDimension" "', argument " "5"" of type '" "bool""'");
57066 }
57067 arg5 = static_cast< bool >(val5);
57068 {
57069 std::string *ptr = (std::string *)0;
57070 res6 = SWIG_AsPtr_std_string(obj5, &ptr);
57071 if (!SWIG_IsOK(res6)) {
57072 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "RoutingModel_AddDimension" "', argument " "6"" of type '" "std::string const &""'");
57073 }
57074 if (!ptr) {
57075 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_AddDimension" "', argument " "6"" of type '" "std::string const &""'");
57076 }
57077 arg6 = ptr;
57078 }
57079 {
57080 try {
57081 result = (bool)(arg1)->AddDimension(arg2,arg3,arg4,arg5,(std::string const &)*arg6);
57082 }
57083 catch (Swig::DirectorException &e) {
57084 SWIG_fail;
57085 }
57086 }
57087 resultobj = SWIG_From_bool(static_cast< bool >(result));
57088 if (SWIG_IsNewObj(res6)) delete arg6;
57089 return resultobj;
57090fail:
57091 if (SWIG_IsNewObj(res6)) delete arg6;
57092 return NULL;
57093}
57094
57095
57097 PyObject *resultobj = 0;
57099 std::vector< int > *arg2 = 0 ;
57100 int64_t arg3 ;
57101 int64_t arg4 ;
57102 bool arg5 ;
57103 std::string *arg6 = 0 ;
57104 void *argp1 = 0 ;
57105 int res1 = 0 ;
57106 std::vector< int > temp2 ;
57107 long val3 ;
57108 int ecode3 = 0 ;
57109 long val4 ;
57110 int ecode4 = 0 ;
57111 bool val5 ;
57112 int ecode5 = 0 ;
57113 int res6 = SWIG_OLDOBJ ;
57114 PyObject * obj0 = 0 ;
57115 PyObject * obj1 = 0 ;
57116 PyObject * obj2 = 0 ;
57117 PyObject * obj3 = 0 ;
57118 PyObject * obj4 = 0 ;
57119 PyObject * obj5 = 0 ;
57120 bool result;
57121
57122 if (!PyArg_UnpackTuple(args, "RoutingModel_AddDimensionWithVehicleTransits", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
57124 if (!SWIG_IsOK(res1)) {
57125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddDimensionWithVehicleTransits" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57126 }
57127 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57128 {
57129 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
57130 if (!PyErr_Occurred())
57131 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
57132 return NULL;
57133 }
57134 arg2 = &temp2;
57135 }
57136 ecode3 = SWIG_AsVal_long(obj2, &val3);
57137 if (!SWIG_IsOK(ecode3)) {
57138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_AddDimensionWithVehicleTransits" "', argument " "3"" of type '" "int64_t""'");
57139 }
57140 arg3 = static_cast< int64_t >(val3);
57141 ecode4 = SWIG_AsVal_long(obj3, &val4);
57142 if (!SWIG_IsOK(ecode4)) {
57143 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingModel_AddDimensionWithVehicleTransits" "', argument " "4"" of type '" "int64_t""'");
57144 }
57145 arg4 = static_cast< int64_t >(val4);
57146 ecode5 = SWIG_AsVal_bool(obj4, &val5);
57147 if (!SWIG_IsOK(ecode5)) {
57148 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RoutingModel_AddDimensionWithVehicleTransits" "', argument " "5"" of type '" "bool""'");
57149 }
57150 arg5 = static_cast< bool >(val5);
57151 {
57152 std::string *ptr = (std::string *)0;
57153 res6 = SWIG_AsPtr_std_string(obj5, &ptr);
57154 if (!SWIG_IsOK(res6)) {
57155 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "RoutingModel_AddDimensionWithVehicleTransits" "', argument " "6"" of type '" "std::string const &""'");
57156 }
57157 if (!ptr) {
57158 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_AddDimensionWithVehicleTransits" "', argument " "6"" of type '" "std::string const &""'");
57159 }
57160 arg6 = ptr;
57161 }
57162 {
57163 try {
57164 result = (bool)(arg1)->AddDimensionWithVehicleTransits((std::vector< int > const &)*arg2,arg3,arg4,arg5,(std::string const &)*arg6);
57165 }
57166 catch (Swig::DirectorException &e) {
57167 SWIG_fail;
57168 }
57169 }
57170 resultobj = SWIG_From_bool(static_cast< bool >(result));
57171 if (SWIG_IsNewObj(res6)) delete arg6;
57172 return resultobj;
57173fail:
57174 if (SWIG_IsNewObj(res6)) delete arg6;
57175 return NULL;
57176}
57177
57178
57180 PyObject *resultobj = 0;
57182 int arg2 ;
57183 int64_t arg3 ;
57184 std::vector< int64_t > arg4 ;
57185 bool arg5 ;
57186 std::string *arg6 = 0 ;
57187 void *argp1 = 0 ;
57188 int res1 = 0 ;
57189 int val2 ;
57190 int ecode2 = 0 ;
57191 long val3 ;
57192 int ecode3 = 0 ;
57193 std::vector< int64_t > temp4 ;
57194 bool val5 ;
57195 int ecode5 = 0 ;
57196 int res6 = SWIG_OLDOBJ ;
57197 PyObject * obj0 = 0 ;
57198 PyObject * obj1 = 0 ;
57199 PyObject * obj2 = 0 ;
57200 PyObject * obj3 = 0 ;
57201 PyObject * obj4 = 0 ;
57202 PyObject * obj5 = 0 ;
57203 bool result;
57204
57205 if (!PyArg_UnpackTuple(args, "RoutingModel_AddDimensionWithVehicleCapacity", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
57207 if (!SWIG_IsOK(res1)) {
57208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddDimensionWithVehicleCapacity" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57209 }
57210 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57211 ecode2 = SWIG_AsVal_int(obj1, &val2);
57212 if (!SWIG_IsOK(ecode2)) {
57213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_AddDimensionWithVehicleCapacity" "', argument " "2"" of type '" "int""'");
57214 }
57215 arg2 = static_cast< int >(val2);
57216 ecode3 = SWIG_AsVal_long(obj2, &val3);
57217 if (!SWIG_IsOK(ecode3)) {
57218 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_AddDimensionWithVehicleCapacity" "', argument " "3"" of type '" "int64_t""'");
57219 }
57220 arg3 = static_cast< int64_t >(val3);
57221 {
57222 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
57223 if (!PyErr_Occurred())
57224 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
57225 return NULL;
57226 }
57227 arg4 = std::move(temp4);
57228 }
57229 ecode5 = SWIG_AsVal_bool(obj4, &val5);
57230 if (!SWIG_IsOK(ecode5)) {
57231 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RoutingModel_AddDimensionWithVehicleCapacity" "', argument " "5"" of type '" "bool""'");
57232 }
57233 arg5 = static_cast< bool >(val5);
57234 {
57235 std::string *ptr = (std::string *)0;
57236 res6 = SWIG_AsPtr_std_string(obj5, &ptr);
57237 if (!SWIG_IsOK(res6)) {
57238 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "RoutingModel_AddDimensionWithVehicleCapacity" "', argument " "6"" of type '" "std::string const &""'");
57239 }
57240 if (!ptr) {
57241 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_AddDimensionWithVehicleCapacity" "', argument " "6"" of type '" "std::string const &""'");
57242 }
57243 arg6 = ptr;
57244 }
57245 {
57246 try {
57247 result = (bool)(arg1)->AddDimensionWithVehicleCapacity(arg2,arg3,arg4,arg5,(std::string const &)*arg6);
57248 }
57249 catch (Swig::DirectorException &e) {
57250 SWIG_fail;
57251 }
57252 }
57253 resultobj = SWIG_From_bool(static_cast< bool >(result));
57254 if (SWIG_IsNewObj(res6)) delete arg6;
57255 return resultobj;
57256fail:
57257 if (SWIG_IsNewObj(res6)) delete arg6;
57258 return NULL;
57259}
57260
57261
57263 PyObject *resultobj = 0;
57265 std::vector< int > *arg2 = 0 ;
57266 int64_t arg3 ;
57267 std::vector< int64_t > arg4 ;
57268 bool arg5 ;
57269 std::string *arg6 = 0 ;
57270 void *argp1 = 0 ;
57271 int res1 = 0 ;
57272 std::vector< int > temp2 ;
57273 long val3 ;
57274 int ecode3 = 0 ;
57275 std::vector< int64_t > temp4 ;
57276 bool val5 ;
57277 int ecode5 = 0 ;
57278 int res6 = SWIG_OLDOBJ ;
57279 PyObject * obj0 = 0 ;
57280 PyObject * obj1 = 0 ;
57281 PyObject * obj2 = 0 ;
57282 PyObject * obj3 = 0 ;
57283 PyObject * obj4 = 0 ;
57284 PyObject * obj5 = 0 ;
57285 bool result;
57286
57287 if (!PyArg_UnpackTuple(args, "RoutingModel_AddDimensionWithVehicleTransitAndCapacity", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
57289 if (!SWIG_IsOK(res1)) {
57290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddDimensionWithVehicleTransitAndCapacity" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57291 }
57292 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57293 {
57294 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
57295 if (!PyErr_Occurred())
57296 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
57297 return NULL;
57298 }
57299 arg2 = &temp2;
57300 }
57301 ecode3 = SWIG_AsVal_long(obj2, &val3);
57302 if (!SWIG_IsOK(ecode3)) {
57303 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_AddDimensionWithVehicleTransitAndCapacity" "', argument " "3"" of type '" "int64_t""'");
57304 }
57305 arg3 = static_cast< int64_t >(val3);
57306 {
57307 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
57308 if (!PyErr_Occurred())
57309 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
57310 return NULL;
57311 }
57312 arg4 = std::move(temp4);
57313 }
57314 ecode5 = SWIG_AsVal_bool(obj4, &val5);
57315 if (!SWIG_IsOK(ecode5)) {
57316 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RoutingModel_AddDimensionWithVehicleTransitAndCapacity" "', argument " "5"" of type '" "bool""'");
57317 }
57318 arg5 = static_cast< bool >(val5);
57319 {
57320 std::string *ptr = (std::string *)0;
57321 res6 = SWIG_AsPtr_std_string(obj5, &ptr);
57322 if (!SWIG_IsOK(res6)) {
57323 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "RoutingModel_AddDimensionWithVehicleTransitAndCapacity" "', argument " "6"" of type '" "std::string const &""'");
57324 }
57325 if (!ptr) {
57326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_AddDimensionWithVehicleTransitAndCapacity" "', argument " "6"" of type '" "std::string const &""'");
57327 }
57328 arg6 = ptr;
57329 }
57330 {
57331 try {
57332 result = (bool)(arg1)->AddDimensionWithVehicleTransitAndCapacity((std::vector< int > const &)*arg2,arg3,arg4,arg5,(std::string const &)*arg6);
57333 }
57334 catch (Swig::DirectorException &e) {
57335 SWIG_fail;
57336 }
57337 }
57338 resultobj = SWIG_From_bool(static_cast< bool >(result));
57339 if (SWIG_IsNewObj(res6)) delete arg6;
57340 return resultobj;
57341fail:
57342 if (SWIG_IsNewObj(res6)) delete arg6;
57343 return NULL;
57344}
57345
57346
57348 PyObject *resultobj = 0;
57350 int64_t arg2 ;
57351 int64_t arg3 ;
57352 int64_t arg4 ;
57353 bool arg5 ;
57354 std::string *arg6 = 0 ;
57355 void *argp1 = 0 ;
57356 int res1 = 0 ;
57357 long val2 ;
57358 int ecode2 = 0 ;
57359 long val3 ;
57360 int ecode3 = 0 ;
57361 long val4 ;
57362 int ecode4 = 0 ;
57363 bool val5 ;
57364 int ecode5 = 0 ;
57365 int res6 = SWIG_OLDOBJ ;
57366 PyObject * obj0 = 0 ;
57367 PyObject * obj1 = 0 ;
57368 PyObject * obj2 = 0 ;
57369 PyObject * obj3 = 0 ;
57370 PyObject * obj4 = 0 ;
57371 PyObject * obj5 = 0 ;
57372 std::pair< int,bool > result;
57373
57374 if (!PyArg_UnpackTuple(args, "RoutingModel_AddConstantDimensionWithSlack", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
57376 if (!SWIG_IsOK(res1)) {
57377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddConstantDimensionWithSlack" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57378 }
57379 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57380 ecode2 = SWIG_AsVal_long(obj1, &val2);
57381 if (!SWIG_IsOK(ecode2)) {
57382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_AddConstantDimensionWithSlack" "', argument " "2"" of type '" "int64_t""'");
57383 }
57384 arg2 = static_cast< int64_t >(val2);
57385 ecode3 = SWIG_AsVal_long(obj2, &val3);
57386 if (!SWIG_IsOK(ecode3)) {
57387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_AddConstantDimensionWithSlack" "', argument " "3"" of type '" "int64_t""'");
57388 }
57389 arg3 = static_cast< int64_t >(val3);
57390 ecode4 = SWIG_AsVal_long(obj3, &val4);
57391 if (!SWIG_IsOK(ecode4)) {
57392 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingModel_AddConstantDimensionWithSlack" "', argument " "4"" of type '" "int64_t""'");
57393 }
57394 arg4 = static_cast< int64_t >(val4);
57395 ecode5 = SWIG_AsVal_bool(obj4, &val5);
57396 if (!SWIG_IsOK(ecode5)) {
57397 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RoutingModel_AddConstantDimensionWithSlack" "', argument " "5"" of type '" "bool""'");
57398 }
57399 arg5 = static_cast< bool >(val5);
57400 {
57401 std::string *ptr = (std::string *)0;
57402 res6 = SWIG_AsPtr_std_string(obj5, &ptr);
57403 if (!SWIG_IsOK(res6)) {
57404 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "RoutingModel_AddConstantDimensionWithSlack" "', argument " "6"" of type '" "std::string const &""'");
57405 }
57406 if (!ptr) {
57407 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_AddConstantDimensionWithSlack" "', argument " "6"" of type '" "std::string const &""'");
57408 }
57409 arg6 = ptr;
57410 }
57411 {
57412 try {
57413 result = (arg1)->AddConstantDimensionWithSlack(arg2,arg3,arg4,arg5,(std::string const &)*arg6);
57414 }
57415 catch (Swig::DirectorException &e) {
57416 SWIG_fail;
57417 }
57418 }
57419 {
57420 resultobj = Py_BuildValue("(ib)", (&result)->first, (&result)->second);
57421 }
57422 if (SWIG_IsNewObj(res6)) delete arg6;
57423 return resultobj;
57424fail:
57425 if (SWIG_IsNewObj(res6)) delete arg6;
57426 return NULL;
57427}
57428
57429
57430SWIGINTERN PyObject *_wrap_RoutingModel_AddConstantDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57431 PyObject *resultobj = 0;
57433 int64_t arg2 ;
57434 int64_t arg3 ;
57435 bool arg4 ;
57436 std::string *arg5 = 0 ;
57437 void *argp1 = 0 ;
57438 int res1 = 0 ;
57439 long val2 ;
57440 int ecode2 = 0 ;
57441 long val3 ;
57442 int ecode3 = 0 ;
57443 bool val4 ;
57444 int ecode4 = 0 ;
57445 int res5 = SWIG_OLDOBJ ;
57446 PyObject * obj0 = 0 ;
57447 PyObject * obj1 = 0 ;
57448 PyObject * obj2 = 0 ;
57449 PyObject * obj3 = 0 ;
57450 PyObject * obj4 = 0 ;
57451 std::pair< int,bool > result;
57452
57453 if (!PyArg_UnpackTuple(args, "RoutingModel_AddConstantDimension", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
57455 if (!SWIG_IsOK(res1)) {
57456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddConstantDimension" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57457 }
57458 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57459 ecode2 = SWIG_AsVal_long(obj1, &val2);
57460 if (!SWIG_IsOK(ecode2)) {
57461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_AddConstantDimension" "', argument " "2"" of type '" "int64_t""'");
57462 }
57463 arg2 = static_cast< int64_t >(val2);
57464 ecode3 = SWIG_AsVal_long(obj2, &val3);
57465 if (!SWIG_IsOK(ecode3)) {
57466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_AddConstantDimension" "', argument " "3"" of type '" "int64_t""'");
57467 }
57468 arg3 = static_cast< int64_t >(val3);
57469 ecode4 = SWIG_AsVal_bool(obj3, &val4);
57470 if (!SWIG_IsOK(ecode4)) {
57471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingModel_AddConstantDimension" "', argument " "4"" of type '" "bool""'");
57472 }
57473 arg4 = static_cast< bool >(val4);
57474 {
57475 std::string *ptr = (std::string *)0;
57476 res5 = SWIG_AsPtr_std_string(obj4, &ptr);
57477 if (!SWIG_IsOK(res5)) {
57478 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "RoutingModel_AddConstantDimension" "', argument " "5"" of type '" "std::string const &""'");
57479 }
57480 if (!ptr) {
57481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_AddConstantDimension" "', argument " "5"" of type '" "std::string const &""'");
57482 }
57483 arg5 = ptr;
57484 }
57485 {
57486 try {
57487 result = (arg1)->AddConstantDimension(arg2,arg3,arg4,(std::string const &)*arg5);
57488 }
57489 catch (Swig::DirectorException &e) {
57490 SWIG_fail;
57491 }
57492 }
57493 {
57494 resultobj = Py_BuildValue("(ib)", (&result)->first, (&result)->second);
57495 }
57496 if (SWIG_IsNewObj(res5)) delete arg5;
57497 return resultobj;
57498fail:
57499 if (SWIG_IsNewObj(res5)) delete arg5;
57500 return NULL;
57501}
57502
57503
57504SWIGINTERN PyObject *_wrap_RoutingModel_AddVectorDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57505 PyObject *resultobj = 0;
57507 std::vector< int64_t > arg2 ;
57508 int64_t arg3 ;
57509 bool arg4 ;
57510 std::string *arg5 = 0 ;
57511 void *argp1 = 0 ;
57512 int res1 = 0 ;
57513 std::vector< int64_t > temp2 ;
57514 long val3 ;
57515 int ecode3 = 0 ;
57516 bool val4 ;
57517 int ecode4 = 0 ;
57518 int res5 = SWIG_OLDOBJ ;
57519 PyObject * obj0 = 0 ;
57520 PyObject * obj1 = 0 ;
57521 PyObject * obj2 = 0 ;
57522 PyObject * obj3 = 0 ;
57523 PyObject * obj4 = 0 ;
57524 std::pair< int,bool > result;
57525
57526 if (!PyArg_UnpackTuple(args, "RoutingModel_AddVectorDimension", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
57528 if (!SWIG_IsOK(res1)) {
57529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddVectorDimension" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57530 }
57531 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57532 {
57533 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
57534 if (!PyErr_Occurred())
57535 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
57536 return NULL;
57537 }
57538 arg2 = std::move(temp2);
57539 }
57540 ecode3 = SWIG_AsVal_long(obj2, &val3);
57541 if (!SWIG_IsOK(ecode3)) {
57542 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_AddVectorDimension" "', argument " "3"" of type '" "int64_t""'");
57543 }
57544 arg3 = static_cast< int64_t >(val3);
57545 ecode4 = SWIG_AsVal_bool(obj3, &val4);
57546 if (!SWIG_IsOK(ecode4)) {
57547 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingModel_AddVectorDimension" "', argument " "4"" of type '" "bool""'");
57548 }
57549 arg4 = static_cast< bool >(val4);
57550 {
57551 std::string *ptr = (std::string *)0;
57552 res5 = SWIG_AsPtr_std_string(obj4, &ptr);
57553 if (!SWIG_IsOK(res5)) {
57554 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "RoutingModel_AddVectorDimension" "', argument " "5"" of type '" "std::string const &""'");
57555 }
57556 if (!ptr) {
57557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_AddVectorDimension" "', argument " "5"" of type '" "std::string const &""'");
57558 }
57559 arg5 = ptr;
57560 }
57561 {
57562 try {
57563 result = (arg1)->AddVectorDimension(arg2,arg3,arg4,(std::string const &)*arg5);
57564 }
57565 catch (Swig::DirectorException &e) {
57566 SWIG_fail;
57567 }
57568 }
57569 {
57570 resultobj = Py_BuildValue("(ib)", (&result)->first, (&result)->second);
57571 }
57572 if (SWIG_IsNewObj(res5)) delete arg5;
57573 return resultobj;
57574fail:
57575 if (SWIG_IsNewObj(res5)) delete arg5;
57576 return NULL;
57577}
57578
57579
57580SWIGINTERN PyObject *_wrap_RoutingModel_AddMatrixDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57581 PyObject *resultobj = 0;
57583 std::vector< std::vector< int64_t > > arg2 ;
57584 int64_t arg3 ;
57585 bool arg4 ;
57586 std::string *arg5 = 0 ;
57587 void *argp1 = 0 ;
57588 int res1 = 0 ;
57589 std::vector< std::vector< int64_t > > temp2 ;
57590 long val3 ;
57591 int ecode3 = 0 ;
57592 bool val4 ;
57593 int ecode4 = 0 ;
57594 int res5 = SWIG_OLDOBJ ;
57595 PyObject * obj0 = 0 ;
57596 PyObject * obj1 = 0 ;
57597 PyObject * obj2 = 0 ;
57598 PyObject * obj3 = 0 ;
57599 PyObject * obj4 = 0 ;
57600 std::pair< int,bool > result;
57601
57602 if (!PyArg_UnpackTuple(args, "RoutingModel_AddMatrixDimension", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
57604 if (!SWIG_IsOK(res1)) {
57605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddMatrixDimension" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57606 }
57607 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57608 {
57609 if (!PyList_Check(obj1)) {
57610 PyErr_SetString(PyExc_TypeError, "Expecting a list of tuples");
57611 SWIG_fail;
57612 }
57613 int len = PyList_Size(obj1);
57614 int arity = -1;
57615 if (len > 0) {
57616 temp2.resize(len);
57617 for (size_t i = 0; i < len; ++i) {
57618 PyObject *tuple = PyList_GetItem(obj1, i);
57619 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
57620 PyErr_SetString(PyExc_TypeError, "Expecting a sequence");
57621 SWIG_fail;
57622 }
57623 bool is_tuple = PyTuple_Check(tuple);
57624 int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
57625 temp2[i].resize(arity);
57626 for (size_t j = 0; j < arity; ++j) {
57627 bool success = PyObjAs<int64_t>(
57628 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j),
57629 &temp2[i][j]);
57630 if (!success) {
57631 SWIG_fail;
57632 }
57633 }
57634 }
57635 }
57636 arg2 = std::move(temp2);
57637 }
57638 ecode3 = SWIG_AsVal_long(obj2, &val3);
57639 if (!SWIG_IsOK(ecode3)) {
57640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_AddMatrixDimension" "', argument " "3"" of type '" "int64_t""'");
57641 }
57642 arg3 = static_cast< int64_t >(val3);
57643 ecode4 = SWIG_AsVal_bool(obj3, &val4);
57644 if (!SWIG_IsOK(ecode4)) {
57645 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingModel_AddMatrixDimension" "', argument " "4"" of type '" "bool""'");
57646 }
57647 arg4 = static_cast< bool >(val4);
57648 {
57649 std::string *ptr = (std::string *)0;
57650 res5 = SWIG_AsPtr_std_string(obj4, &ptr);
57651 if (!SWIG_IsOK(res5)) {
57652 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "RoutingModel_AddMatrixDimension" "', argument " "5"" of type '" "std::string const &""'");
57653 }
57654 if (!ptr) {
57655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_AddMatrixDimension" "', argument " "5"" of type '" "std::string const &""'");
57656 }
57657 arg5 = ptr;
57658 }
57659 {
57660 try {
57661 result = (arg1)->AddMatrixDimension(arg2,arg3,arg4,(std::string const &)*arg5);
57662 }
57663 catch (Swig::DirectorException &e) {
57664 SWIG_fail;
57665 }
57666 }
57667 {
57668 resultobj = Py_BuildValue("(ib)", (&result)->first, (&result)->second);
57669 }
57670 if (SWIG_IsNewObj(res5)) delete arg5;
57671 return resultobj;
57672fail:
57673 if (SWIG_IsNewObj(res5)) delete arg5;
57674 return NULL;
57675}
57676
57677
57679 PyObject *resultobj = 0;
57682 SwigValueWrapper< std::vector< operations_research::IntVar * > > arg3 ;
57683 SwigValueWrapper< std::vector< operations_research::IntVar * > > arg4 ;
57684 void *argp1 = 0 ;
57685 int res1 = 0 ;
57686 void *argp2 = 0 ;
57687 int res2 = 0 ;
57688 std::vector< operations_research::IntVar * > temp3 ;
57689 std::vector< operations_research::IntVar * > temp4 ;
57690 PyObject * obj0 = 0 ;
57691 PyObject * obj1 = 0 ;
57692 PyObject * obj2 = 0 ;
57693 PyObject * obj3 = 0 ;
57694 Swig::Director *director = 0;
57696
57697 if (!PyArg_UnpackTuple(args, "RoutingModel_MakePathSpansAndTotalSlacks", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
57699 if (!SWIG_IsOK(res1)) {
57700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_MakePathSpansAndTotalSlacks" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57701 }
57702 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57704 if (!SWIG_IsOK(res2)) {
57705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_MakePathSpansAndTotalSlacks" "', argument " "2"" of type '" "operations_research::RoutingDimension const *""'");
57706 }
57707 arg2 = reinterpret_cast< operations_research::RoutingDimension * >(argp2);
57708 {
57709 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
57710 if (!PyErr_Occurred())
57711 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
57712 return NULL;
57713 }
57714 arg3 = std::move(temp3);
57715 }
57716 {
57717 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
57718 if (!PyErr_Occurred())
57719 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
57720 return NULL;
57721 }
57722 arg4 = std::move(temp4);
57723 }
57724 {
57725 try {
57726 result = (operations_research::Constraint *)(arg1)->MakePathSpansAndTotalSlacks((operations_research::RoutingDimension const *)arg2,arg3,arg4);
57727 }
57728 catch (Swig::DirectorException &e) {
57729 SWIG_fail;
57730 }
57731 }
57732 director = SWIG_DIRECTOR_CAST(result);
57733 if (director) {
57734 resultobj = director->swig_get_self();
57735 Py_INCREF(resultobj);
57736 } else {
57738 }
57739 return resultobj;
57740fail:
57741 return NULL;
57742}
57743
57744
57745SWIGINTERN PyObject *_wrap_RoutingModel_GetAllDimensionNames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57746 PyObject *resultobj = 0;
57748 void *argp1 = 0 ;
57749 int res1 = 0 ;
57750 PyObject * obj0 = 0 ;
57751 SwigValueWrapper< std::vector< std::string > > result;
57752
57753 if (!PyArg_UnpackTuple(args, "RoutingModel_GetAllDimensionNames", 1, 1, &obj0)) SWIG_fail;
57755 if (!SWIG_IsOK(res1)) {
57756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetAllDimensionNames" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57757 }
57758 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57759 {
57760 try {
57761 result = ((operations_research::RoutingModel const *)arg1)->GetAllDimensionNames();
57762 }
57763 catch (Swig::DirectorException &e) {
57764 SWIG_fail;
57765 }
57766 }
57767 {
57768 resultobj = vector_output_helper(&result, &SwigString_FromString);
57769 }
57770 return resultobj;
57771fail:
57772 return NULL;
57773}
57774
57775
57776SWIGINTERN PyObject *_wrap_RoutingModel_GetDimensions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57777 PyObject *resultobj = 0;
57779 void *argp1 = 0 ;
57780 int res1 = 0 ;
57781 PyObject * obj0 = 0 ;
57782 std::vector< operations_research::RoutingDimension * > *result = 0 ;
57783
57784 if (!PyArg_UnpackTuple(args, "RoutingModel_GetDimensions", 1, 1, &obj0)) SWIG_fail;
57786 if (!SWIG_IsOK(res1)) {
57787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetDimensions" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57788 }
57789 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57790 {
57791 try {
57792 result = (std::vector< operations_research::RoutingDimension * > *) &((operations_research::RoutingModel const *)arg1)->GetDimensions();
57793 }
57794 catch (Swig::DirectorException &e) {
57795 SWIG_fail;
57796 }
57797 }
57799 return resultobj;
57800fail:
57801 return NULL;
57802}
57803
57804
57806 PyObject *resultobj = 0;
57808 void *argp1 = 0 ;
57809 int res1 = 0 ;
57810 PyObject * obj0 = 0 ;
57811 SwigValueWrapper< std::vector< operations_research::RoutingDimension * > > result;
57812
57813 if (!PyArg_UnpackTuple(args, "RoutingModel_GetDimensionsWithSoftOrSpanCosts", 1, 1, &obj0)) SWIG_fail;
57815 if (!SWIG_IsOK(res1)) {
57816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetDimensionsWithSoftOrSpanCosts" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57817 }
57818 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57819 {
57820 try {
57822 }
57823 catch (Swig::DirectorException &e) {
57824 SWIG_fail;
57825 }
57826 }
57827 resultobj = SWIG_NewPointerObj((new std::vector< operations_research::RoutingDimension * >(static_cast< const std::vector< operations_research::RoutingDimension * >& >(result))), SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_p_t, SWIG_POINTER_OWN | 0 );
57828 return resultobj;
57829fail:
57830 return NULL;
57831}
57832
57833
57835 PyObject *resultobj = 0;
57837 void *argp1 = 0 ;
57838 int res1 = 0 ;
57839 PyObject * obj0 = 0 ;
57840 std::vector< std::unique_ptr< operations_research::GlobalDimensionCumulOptimizer > > *result = 0 ;
57841
57842 if (!PyArg_UnpackTuple(args, "RoutingModel_GetGlobalDimensionCumulOptimizers", 1, 1, &obj0)) SWIG_fail;
57844 if (!SWIG_IsOK(res1)) {
57845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetGlobalDimensionCumulOptimizers" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57846 }
57847 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57848 {
57849 try {
57850 result = (std::vector< std::unique_ptr< operations_research::GlobalDimensionCumulOptimizer > > *) &((operations_research::RoutingModel const *)arg1)->GetGlobalDimensionCumulOptimizers();
57851 }
57852 catch (Swig::DirectorException &e) {
57853 SWIG_fail;
57854 }
57855 }
57857 return resultobj;
57858fail:
57859 return NULL;
57860}
57861
57862
57864 PyObject *resultobj = 0;
57866 void *argp1 = 0 ;
57867 int res1 = 0 ;
57868 PyObject * obj0 = 0 ;
57869 std::vector< std::unique_ptr< operations_research::GlobalDimensionCumulOptimizer > > *result = 0 ;
57870
57871 if (!PyArg_UnpackTuple(args, "RoutingModel_GetGlobalDimensionCumulMPOptimizers", 1, 1, &obj0)) SWIG_fail;
57873 if (!SWIG_IsOK(res1)) {
57874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetGlobalDimensionCumulMPOptimizers" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57875 }
57876 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57877 {
57878 try {
57879 result = (std::vector< std::unique_ptr< operations_research::GlobalDimensionCumulOptimizer > > *) &((operations_research::RoutingModel const *)arg1)->GetGlobalDimensionCumulMPOptimizers();
57880 }
57881 catch (Swig::DirectorException &e) {
57882 SWIG_fail;
57883 }
57884 }
57886 return resultobj;
57887fail:
57888 return NULL;
57889}
57890
57891
57893 PyObject *resultobj = 0;
57895 void *argp1 = 0 ;
57896 int res1 = 0 ;
57897 PyObject * obj0 = 0 ;
57898 std::vector< std::unique_ptr< operations_research::LocalDimensionCumulOptimizer > > *result = 0 ;
57899
57900 if (!PyArg_UnpackTuple(args, "RoutingModel_GetLocalDimensionCumulOptimizers", 1, 1, &obj0)) SWIG_fail;
57902 if (!SWIG_IsOK(res1)) {
57903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetLocalDimensionCumulOptimizers" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57904 }
57905 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57906 {
57907 try {
57908 result = (std::vector< std::unique_ptr< operations_research::LocalDimensionCumulOptimizer > > *) &((operations_research::RoutingModel const *)arg1)->GetLocalDimensionCumulOptimizers();
57909 }
57910 catch (Swig::DirectorException &e) {
57911 SWIG_fail;
57912 }
57913 }
57915 return resultobj;
57916fail:
57917 return NULL;
57918}
57919
57920
57922 PyObject *resultobj = 0;
57924 void *argp1 = 0 ;
57925 int res1 = 0 ;
57926 PyObject * obj0 = 0 ;
57927 std::vector< std::unique_ptr< operations_research::LocalDimensionCumulOptimizer > > *result = 0 ;
57928
57929 if (!PyArg_UnpackTuple(args, "RoutingModel_GetLocalDimensionCumulMPOptimizers", 1, 1, &obj0)) SWIG_fail;
57931 if (!SWIG_IsOK(res1)) {
57932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetLocalDimensionCumulMPOptimizers" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57933 }
57934 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57935 {
57936 try {
57937 result = (std::vector< std::unique_ptr< operations_research::LocalDimensionCumulOptimizer > > *) &((operations_research::RoutingModel const *)arg1)->GetLocalDimensionCumulMPOptimizers();
57938 }
57939 catch (Swig::DirectorException &e) {
57940 SWIG_fail;
57941 }
57942 }
57944 return resultobj;
57945fail:
57946 return NULL;
57947}
57948
57949
57951 PyObject *resultobj = 0;
57954 void *argp1 = 0 ;
57955 int res1 = 0 ;
57956 void *argp2 = 0 ;
57957 int res2 = 0 ;
57958 PyObject * obj0 = 0 ;
57959 PyObject * obj1 = 0 ;
57961
57962 if (!PyArg_UnpackTuple(args, "RoutingModel_GetMutableGlobalCumulOptimizer", 2, 2, &obj0, &obj1)) SWIG_fail;
57964 if (!SWIG_IsOK(res1)) {
57965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetMutableGlobalCumulOptimizer" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57966 }
57967 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57969 if (!SWIG_IsOK(res2)) {
57970 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_GetMutableGlobalCumulOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
57971 }
57972 if (!argp2) {
57973 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_GetMutableGlobalCumulOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
57974 }
57975 arg2 = reinterpret_cast< operations_research::RoutingDimension * >(argp2);
57976 {
57977 try {
57978 result = (operations_research::GlobalDimensionCumulOptimizer *)((operations_research::RoutingModel const *)arg1)->GetMutableGlobalCumulOptimizer((operations_research::RoutingDimension const &)*arg2);
57979 }
57980 catch (Swig::DirectorException &e) {
57981 SWIG_fail;
57982 }
57983 }
57985 return resultobj;
57986fail:
57987 return NULL;
57988}
57989
57990
57992 PyObject *resultobj = 0;
57995 void *argp1 = 0 ;
57996 int res1 = 0 ;
57997 void *argp2 = 0 ;
57998 int res2 = 0 ;
57999 PyObject * obj0 = 0 ;
58000 PyObject * obj1 = 0 ;
58002
58003 if (!PyArg_UnpackTuple(args, "RoutingModel_GetMutableGlobalCumulMPOptimizer", 2, 2, &obj0, &obj1)) SWIG_fail;
58005 if (!SWIG_IsOK(res1)) {
58006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetMutableGlobalCumulMPOptimizer" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58007 }
58008 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58010 if (!SWIG_IsOK(res2)) {
58011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_GetMutableGlobalCumulMPOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
58012 }
58013 if (!argp2) {
58014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_GetMutableGlobalCumulMPOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
58015 }
58016 arg2 = reinterpret_cast< operations_research::RoutingDimension * >(argp2);
58017 {
58018 try {
58019 result = (operations_research::GlobalDimensionCumulOptimizer *)((operations_research::RoutingModel const *)arg1)->GetMutableGlobalCumulMPOptimizer((operations_research::RoutingDimension const &)*arg2);
58020 }
58021 catch (Swig::DirectorException &e) {
58022 SWIG_fail;
58023 }
58024 }
58026 return resultobj;
58027fail:
58028 return NULL;
58029}
58030
58031
58033 PyObject *resultobj = 0;
58036 void *argp1 = 0 ;
58037 int res1 = 0 ;
58038 void *argp2 = 0 ;
58039 int res2 = 0 ;
58040 PyObject * obj0 = 0 ;
58041 PyObject * obj1 = 0 ;
58043
58044 if (!PyArg_UnpackTuple(args, "RoutingModel_GetMutableLocalCumulOptimizer", 2, 2, &obj0, &obj1)) SWIG_fail;
58046 if (!SWIG_IsOK(res1)) {
58047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetMutableLocalCumulOptimizer" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58048 }
58049 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58051 if (!SWIG_IsOK(res2)) {
58052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_GetMutableLocalCumulOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
58053 }
58054 if (!argp2) {
58055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_GetMutableLocalCumulOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
58056 }
58057 arg2 = reinterpret_cast< operations_research::RoutingDimension * >(argp2);
58058 {
58059 try {
58060 result = (operations_research::LocalDimensionCumulOptimizer *)((operations_research::RoutingModel const *)arg1)->GetMutableLocalCumulOptimizer((operations_research::RoutingDimension const &)*arg2);
58061 }
58062 catch (Swig::DirectorException &e) {
58063 SWIG_fail;
58064 }
58065 }
58067 return resultobj;
58068fail:
58069 return NULL;
58070}
58071
58072
58074 PyObject *resultobj = 0;
58077 void *argp1 = 0 ;
58078 int res1 = 0 ;
58079 void *argp2 = 0 ;
58080 int res2 = 0 ;
58081 PyObject * obj0 = 0 ;
58082 PyObject * obj1 = 0 ;
58084
58085 if (!PyArg_UnpackTuple(args, "RoutingModel_GetMutableLocalCumulMPOptimizer", 2, 2, &obj0, &obj1)) SWIG_fail;
58087 if (!SWIG_IsOK(res1)) {
58088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetMutableLocalCumulMPOptimizer" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58089 }
58090 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58092 if (!SWIG_IsOK(res2)) {
58093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_GetMutableLocalCumulMPOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
58094 }
58095 if (!argp2) {
58096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_GetMutableLocalCumulMPOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
58097 }
58098 arg2 = reinterpret_cast< operations_research::RoutingDimension * >(argp2);
58099 {
58100 try {
58101 result = (operations_research::LocalDimensionCumulOptimizer *)((operations_research::RoutingModel const *)arg1)->GetMutableLocalCumulMPOptimizer((operations_research::RoutingDimension const &)*arg2);
58102 }
58103 catch (Swig::DirectorException &e) {
58104 SWIG_fail;
58105 }
58106 }
58108 return resultobj;
58109fail:
58110 return NULL;
58111}
58112
58113
58114SWIGINTERN PyObject *_wrap_RoutingModel_HasDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58115 PyObject *resultobj = 0;
58117 std::string *arg2 = 0 ;
58118 void *argp1 = 0 ;
58119 int res1 = 0 ;
58120 int res2 = SWIG_OLDOBJ ;
58121 PyObject * obj0 = 0 ;
58122 PyObject * obj1 = 0 ;
58123 bool result;
58124
58125 if (!PyArg_UnpackTuple(args, "RoutingModel_HasDimension", 2, 2, &obj0, &obj1)) SWIG_fail;
58127 if (!SWIG_IsOK(res1)) {
58128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_HasDimension" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58129 }
58130 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58131 {
58132 std::string *ptr = (std::string *)0;
58133 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
58134 if (!SWIG_IsOK(res2)) {
58135 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_HasDimension" "', argument " "2"" of type '" "std::string const &""'");
58136 }
58137 if (!ptr) {
58138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_HasDimension" "', argument " "2"" of type '" "std::string const &""'");
58139 }
58140 arg2 = ptr;
58141 }
58142 {
58143 try {
58144 result = (bool)((operations_research::RoutingModel const *)arg1)->HasDimension((std::string const &)*arg2);
58145 }
58146 catch (Swig::DirectorException &e) {
58147 SWIG_fail;
58148 }
58149 }
58150 resultobj = SWIG_From_bool(static_cast< bool >(result));
58151 if (SWIG_IsNewObj(res2)) delete arg2;
58152 return resultobj;
58153fail:
58154 if (SWIG_IsNewObj(res2)) delete arg2;
58155 return NULL;
58156}
58157
58158
58159SWIGINTERN PyObject *_wrap_RoutingModel_GetDimensionOrDie(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58160 PyObject *resultobj = 0;
58162 std::string *arg2 = 0 ;
58163 void *argp1 = 0 ;
58164 int res1 = 0 ;
58165 int res2 = SWIG_OLDOBJ ;
58166 PyObject * obj0 = 0 ;
58167 PyObject * obj1 = 0 ;
58169
58170 if (!PyArg_UnpackTuple(args, "RoutingModel_GetDimensionOrDie", 2, 2, &obj0, &obj1)) SWIG_fail;
58172 if (!SWIG_IsOK(res1)) {
58173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetDimensionOrDie" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58174 }
58175 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58176 {
58177 std::string *ptr = (std::string *)0;
58178 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
58179 if (!SWIG_IsOK(res2)) {
58180 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_GetDimensionOrDie" "', argument " "2"" of type '" "std::string const &""'");
58181 }
58182 if (!ptr) {
58183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_GetDimensionOrDie" "', argument " "2"" of type '" "std::string const &""'");
58184 }
58185 arg2 = ptr;
58186 }
58187 {
58188 try {
58189 result = (operations_research::RoutingDimension *) &((operations_research::RoutingModel const *)arg1)->GetDimensionOrDie((std::string const &)*arg2);
58190 }
58191 catch (Swig::DirectorException &e) {
58192 SWIG_fail;
58193 }
58194 }
58196 if (SWIG_IsNewObj(res2)) delete arg2;
58197 return resultobj;
58198fail:
58199 if (SWIG_IsNewObj(res2)) delete arg2;
58200 return NULL;
58201}
58202
58203
58204SWIGINTERN PyObject *_wrap_RoutingModel_GetMutableDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58205 PyObject *resultobj = 0;
58207 std::string *arg2 = 0 ;
58208 void *argp1 = 0 ;
58209 int res1 = 0 ;
58210 int res2 = SWIG_OLDOBJ ;
58211 PyObject * obj0 = 0 ;
58212 PyObject * obj1 = 0 ;
58214
58215 if (!PyArg_UnpackTuple(args, "RoutingModel_GetMutableDimension", 2, 2, &obj0, &obj1)) SWIG_fail;
58217 if (!SWIG_IsOK(res1)) {
58218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetMutableDimension" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58219 }
58220 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58221 {
58222 std::string *ptr = (std::string *)0;
58223 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
58224 if (!SWIG_IsOK(res2)) {
58225 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_GetMutableDimension" "', argument " "2"" of type '" "std::string const &""'");
58226 }
58227 if (!ptr) {
58228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_GetMutableDimension" "', argument " "2"" of type '" "std::string const &""'");
58229 }
58230 arg2 = ptr;
58231 }
58232 {
58233 try {
58234 result = (operations_research::RoutingDimension *)((operations_research::RoutingModel const *)arg1)->GetMutableDimension((std::string const &)*arg2);
58235 }
58236 catch (Swig::DirectorException &e) {
58237 SWIG_fail;
58238 }
58239 }
58241 if (SWIG_IsNewObj(res2)) delete arg2;
58242 return resultobj;
58243fail:
58244 if (SWIG_IsNewObj(res2)) delete arg2;
58245 return NULL;
58246}
58247
58248
58250 PyObject *resultobj = 0;
58252 std::string *arg2 = 0 ;
58253 void *argp1 = 0 ;
58254 int res1 = 0 ;
58255 int res2 = SWIG_OLDOBJ ;
58256 PyObject * obj0 = 0 ;
58257 PyObject * obj1 = 0 ;
58258
58259 if (!PyArg_UnpackTuple(args, "RoutingModel_SetPrimaryConstrainedDimension", 2, 2, &obj0, &obj1)) SWIG_fail;
58261 if (!SWIG_IsOK(res1)) {
58262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SetPrimaryConstrainedDimension" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58263 }
58264 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58265 {
58266 std::string *ptr = (std::string *)0;
58267 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
58268 if (!SWIG_IsOK(res2)) {
58269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_SetPrimaryConstrainedDimension" "', argument " "2"" of type '" "std::string const &""'");
58270 }
58271 if (!ptr) {
58272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_SetPrimaryConstrainedDimension" "', argument " "2"" of type '" "std::string const &""'");
58273 }
58274 arg2 = ptr;
58275 }
58276 {
58277 try {
58278 (arg1)->SetPrimaryConstrainedDimension((std::string const &)*arg2);
58279 }
58280 catch (Swig::DirectorException &e) {
58281 SWIG_fail;
58282 }
58283 }
58284 resultobj = SWIG_Py_Void();
58285 if (SWIG_IsNewObj(res2)) delete arg2;
58286 return resultobj;
58287fail:
58288 if (SWIG_IsNewObj(res2)) delete arg2;
58289 return NULL;
58290}
58291
58292
58294 PyObject *resultobj = 0;
58296 void *argp1 = 0 ;
58297 int res1 = 0 ;
58298 PyObject * obj0 = 0 ;
58299 std::string *result = 0 ;
58300
58301 if (!PyArg_UnpackTuple(args, "RoutingModel_GetPrimaryConstrainedDimension", 1, 1, &obj0)) SWIG_fail;
58303 if (!SWIG_IsOK(res1)) {
58304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetPrimaryConstrainedDimension" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58305 }
58306 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58307 {
58308 try {
58309 result = (std::string *) &((operations_research::RoutingModel const *)arg1)->GetPrimaryConstrainedDimension();
58310 }
58311 catch (Swig::DirectorException &e) {
58312 SWIG_fail;
58313 }
58314 }
58315 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
58316 return resultobj;
58317fail:
58318 return NULL;
58319}
58320
58321
58323 PyObject *resultobj = 0;
58326 void *argp1 = 0 ;
58327 int res1 = 0 ;
58328 void *argp2 = 0 ;
58329 int res2 = 0 ;
58330 PyObject * obj0 = 0 ;
58331 PyObject * obj1 = 0 ;
58332 std::vector< int > *result = 0 ;
58333
58334 if (!PyArg_UnpackTuple(args, "RoutingModel_GetDimensionResourceGroupIndices", 2, 2, &obj0, &obj1)) SWIG_fail;
58336 if (!SWIG_IsOK(res1)) {
58337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetDimensionResourceGroupIndices" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58338 }
58339 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58341 if (!SWIG_IsOK(res2)) {
58342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_GetDimensionResourceGroupIndices" "', argument " "2"" of type '" "operations_research::RoutingDimension const *""'");
58343 }
58344 arg2 = reinterpret_cast< operations_research::RoutingDimension * >(argp2);
58345 {
58346 try {
58347 result = (std::vector< int > *) &((operations_research::RoutingModel const *)arg1)->GetDimensionResourceGroupIndices((operations_research::RoutingDimension const *)arg2);
58348 }
58349 catch (Swig::DirectorException &e) {
58350 SWIG_fail;
58351 }
58352 }
58353 {
58354 resultobj = vector_output_helper(result, &PyInt_FromLong);
58355 }
58356 return resultobj;
58357fail:
58358 return NULL;
58359}
58360
58361
58362SWIGINTERN PyObject *_wrap_RoutingModel_AddDisjunction__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58363 PyObject *resultobj = 0;
58365 std::vector< int64_t > *arg2 = 0 ;
58366 int64_t arg3 ;
58367 int64_t arg4 ;
58368 void *argp1 = 0 ;
58369 int res1 = 0 ;
58370 std::vector< int64_t > temp2 ;
58371 long val3 ;
58372 int ecode3 = 0 ;
58373 long val4 ;
58374 int ecode4 = 0 ;
58375 PyObject * obj0 = 0 ;
58376 PyObject * obj1 = 0 ;
58377 PyObject * obj2 = 0 ;
58378 PyObject * obj3 = 0 ;
58380
58381 if (!PyArg_UnpackTuple(args, "RoutingModel_AddDisjunction", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
58383 if (!SWIG_IsOK(res1)) {
58384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddDisjunction" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58385 }
58386 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58387 {
58388 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
58389 if (!PyErr_Occurred())
58390 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
58391 return NULL;
58392 }
58393 arg2 = &temp2;
58394 }
58395 ecode3 = SWIG_AsVal_long(obj2, &val3);
58396 if (!SWIG_IsOK(ecode3)) {
58397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_AddDisjunction" "', argument " "3"" of type '" "int64_t""'");
58398 }
58399 arg3 = static_cast< int64_t >(val3);
58400 ecode4 = SWIG_AsVal_long(obj3, &val4);
58401 if (!SWIG_IsOK(ecode4)) {
58402 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingModel_AddDisjunction" "', argument " "4"" of type '" "int64_t""'");
58403 }
58404 arg4 = static_cast< int64_t >(val4);
58405 {
58406 try {
58407 result = (arg1)->AddDisjunction((std::vector< int64_t > const &)*arg2,arg3,arg4);
58408 }
58409 catch (Swig::DirectorException &e) {
58410 SWIG_fail;
58411 }
58412 }
58413 {
58414 resultobj = PyInt_FromLong((&result)->value());
58415 }
58416 return resultobj;
58417fail:
58418 return NULL;
58419}
58420
58421
58422SWIGINTERN PyObject *_wrap_RoutingModel_AddDisjunction__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58423 PyObject *resultobj = 0;
58425 std::vector< int64_t > *arg2 = 0 ;
58426 int64_t arg3 ;
58427 void *argp1 = 0 ;
58428 int res1 = 0 ;
58429 std::vector< int64_t > temp2 ;
58430 long val3 ;
58431 int ecode3 = 0 ;
58432 PyObject * obj0 = 0 ;
58433 PyObject * obj1 = 0 ;
58434 PyObject * obj2 = 0 ;
58436
58437 if (!PyArg_UnpackTuple(args, "RoutingModel_AddDisjunction", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
58439 if (!SWIG_IsOK(res1)) {
58440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddDisjunction" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58441 }
58442 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58443 {
58444 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
58445 if (!PyErr_Occurred())
58446 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
58447 return NULL;
58448 }
58449 arg2 = &temp2;
58450 }
58451 ecode3 = SWIG_AsVal_long(obj2, &val3);
58452 if (!SWIG_IsOK(ecode3)) {
58453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_AddDisjunction" "', argument " "3"" of type '" "int64_t""'");
58454 }
58455 arg3 = static_cast< int64_t >(val3);
58456 {
58457 try {
58458 result = (arg1)->AddDisjunction((std::vector< int64_t > const &)*arg2,arg3);
58459 }
58460 catch (Swig::DirectorException &e) {
58461 SWIG_fail;
58462 }
58463 }
58464 {
58465 resultobj = PyInt_FromLong((&result)->value());
58466 }
58467 return resultobj;
58468fail:
58469 return NULL;
58470}
58471
58472
58473SWIGINTERN PyObject *_wrap_RoutingModel_AddDisjunction__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58474 PyObject *resultobj = 0;
58476 std::vector< int64_t > *arg2 = 0 ;
58477 void *argp1 = 0 ;
58478 int res1 = 0 ;
58479 std::vector< int64_t > temp2 ;
58480 PyObject * obj0 = 0 ;
58481 PyObject * obj1 = 0 ;
58483
58484 if (!PyArg_UnpackTuple(args, "RoutingModel_AddDisjunction", 2, 2, &obj0, &obj1)) SWIG_fail;
58486 if (!SWIG_IsOK(res1)) {
58487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddDisjunction" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58488 }
58489 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58490 {
58491 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
58492 if (!PyErr_Occurred())
58493 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
58494 return NULL;
58495 }
58496 arg2 = &temp2;
58497 }
58498 {
58499 try {
58500 result = (arg1)->AddDisjunction((std::vector< int64_t > const &)*arg2);
58501 }
58502 catch (Swig::DirectorException &e) {
58503 SWIG_fail;
58504 }
58505 }
58506 {
58507 resultobj = PyInt_FromLong((&result)->value());
58508 }
58509 return resultobj;
58510fail:
58511 return NULL;
58512}
58513
58514
58515SWIGINTERN PyObject *_wrap_RoutingModel_AddDisjunction(PyObject *self, PyObject *args) {
58516 Py_ssize_t argc;
58517 PyObject *argv[5] = {
58518 0
58519 };
58520 Py_ssize_t ii;
58521
58522 if (!PyTuple_Check(args)) SWIG_fail;
58523 argc = PyObject_Length(args);
58524 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
58525 argv[ii] = PyTuple_GET_ITEM(args,ii);
58526 }
58527 if (argc == 2) {
58528 int _v;
58529 void *vptr = 0;
58531 _v = SWIG_CheckState(res);
58532 if (_v) {
58533 {
58534 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
58535 _v = 0;
58536 } else {
58537 const bool is_tuple = PyTuple_Check(argv[1]);
58538 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
58539 size_t i = 0;
58540 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
58541 :PyList_GetItem(argv[1], i))) {
58542 ++i;
58543 }
58544 _v = i == size;
58545 }
58546 }
58547 if (_v) {
58549 }
58550 }
58551 }
58552 if (argc == 3) {
58553 int _v;
58554 void *vptr = 0;
58556 _v = SWIG_CheckState(res);
58557 if (_v) {
58558 {
58559 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
58560 _v = 0;
58561 } else {
58562 const bool is_tuple = PyTuple_Check(argv[1]);
58563 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
58564 size_t i = 0;
58565 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
58566 :PyList_GetItem(argv[1], i))) {
58567 ++i;
58568 }
58569 _v = i == size;
58570 }
58571 }
58572 if (_v) {
58573 {
58574 int res = SWIG_AsVal_long(argv[2], NULL);
58575 _v = SWIG_CheckState(res);
58576 }
58577 if (_v) {
58579 }
58580 }
58581 }
58582 }
58583 if (argc == 4) {
58584 int _v;
58585 void *vptr = 0;
58587 _v = SWIG_CheckState(res);
58588 if (_v) {
58589 {
58590 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
58591 _v = 0;
58592 } else {
58593 const bool is_tuple = PyTuple_Check(argv[1]);
58594 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
58595 size_t i = 0;
58596 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
58597 :PyList_GetItem(argv[1], i))) {
58598 ++i;
58599 }
58600 _v = i == size;
58601 }
58602 }
58603 if (_v) {
58604 {
58605 int res = SWIG_AsVal_long(argv[2], NULL);
58606 _v = SWIG_CheckState(res);
58607 }
58608 if (_v) {
58609 {
58610 int res = SWIG_AsVal_long(argv[3], NULL);
58611 _v = SWIG_CheckState(res);
58612 }
58613 if (_v) {
58615 }
58616 }
58617 }
58618 }
58619 }
58620
58621fail:
58622 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'RoutingModel_AddDisjunction'.\n"
58623 " Possible C/C++ prototypes are:\n"
58624 " operations_research::RoutingModel::AddDisjunction(std::vector< int64_t > const &,int64_t,int64_t)\n"
58625 " operations_research::RoutingModel::AddDisjunction(std::vector< int64_t > const &,int64_t)\n"
58626 " operations_research::RoutingModel::AddDisjunction(std::vector< int64_t > const &)\n");
58627 return 0;
58628}
58629
58630
58631SWIGINTERN PyObject *_wrap_RoutingModel_GetDisjunctionIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58632 PyObject *resultobj = 0;
58634 int64_t arg2 ;
58635 void *argp1 = 0 ;
58636 int res1 = 0 ;
58637 long val2 ;
58638 int ecode2 = 0 ;
58639 PyObject * obj0 = 0 ;
58640 PyObject * obj1 = 0 ;
58641 std::vector< operations_research::RoutingModel::DisjunctionIndex > *result = 0 ;
58642
58643 if (!PyArg_UnpackTuple(args, "RoutingModel_GetDisjunctionIndices", 2, 2, &obj0, &obj1)) SWIG_fail;
58645 if (!SWIG_IsOK(res1)) {
58646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetDisjunctionIndices" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58647 }
58648 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58649 ecode2 = SWIG_AsVal_long(obj1, &val2);
58650 if (!SWIG_IsOK(ecode2)) {
58651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetDisjunctionIndices" "', argument " "2"" of type '" "int64_t""'");
58652 }
58653 arg2 = static_cast< int64_t >(val2);
58654 {
58655 try {
58656 result = (std::vector< operations_research::RoutingModel::DisjunctionIndex > *) &((operations_research::RoutingModel const *)arg1)->GetDisjunctionIndices(arg2);
58657 }
58658 catch (Swig::DirectorException &e) {
58659 SWIG_fail;
58660 }
58661 }
58662 {
58663 resultobj = vector_output_helper(result, &PyInt_FromIndexT<operations_research::RoutingDisjunctionIndex>);
58664 }
58665 return resultobj;
58666fail:
58667 return NULL;
58668}
58669
58670
58671SWIGINTERN PyObject *_wrap_RoutingModel_GetDisjunctionPenalty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58672 PyObject *resultobj = 0;
58675 void *argp1 = 0 ;
58676 int res1 = 0 ;
58677 PyObject * obj0 = 0 ;
58678 PyObject * obj1 = 0 ;
58679 int64_t result;
58680
58681 if (!PyArg_UnpackTuple(args, "RoutingModel_GetDisjunctionPenalty", 2, 2, &obj0, &obj1)) SWIG_fail;
58683 if (!SWIG_IsOK(res1)) {
58684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetDisjunctionPenalty" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58685 }
58686 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58687 {
58688 arg2 = operations_research::RoutingDisjunctionIndex(PyInt_AsLong(obj1));
58689 }
58690 {
58691 try {
58692 result = (int64_t)((operations_research::RoutingModel const *)arg1)->GetDisjunctionPenalty(arg2);
58693 }
58694 catch (Swig::DirectorException &e) {
58695 SWIG_fail;
58696 }
58697 }
58698 resultobj = SWIG_From_long(static_cast< long >(result));
58699 return resultobj;
58700fail:
58701 return NULL;
58702}
58703
58704
58706 PyObject *resultobj = 0;
58709 void *argp1 = 0 ;
58710 int res1 = 0 ;
58711 PyObject * obj0 = 0 ;
58712 PyObject * obj1 = 0 ;
58713 int64_t result;
58714
58715 if (!PyArg_UnpackTuple(args, "RoutingModel_GetDisjunctionMaxCardinality", 2, 2, &obj0, &obj1)) SWIG_fail;
58717 if (!SWIG_IsOK(res1)) {
58718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetDisjunctionMaxCardinality" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58719 }
58720 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58721 {
58722 arg2 = operations_research::RoutingDisjunctionIndex(PyInt_AsLong(obj1));
58723 }
58724 {
58725 try {
58726 result = (int64_t)((operations_research::RoutingModel const *)arg1)->GetDisjunctionMaxCardinality(arg2);
58727 }
58728 catch (Swig::DirectorException &e) {
58729 SWIG_fail;
58730 }
58731 }
58732 resultobj = SWIG_From_long(static_cast< long >(result));
58733 return resultobj;
58734fail:
58735 return NULL;
58736}
58737
58738
58740 PyObject *resultobj = 0;
58742 void *argp1 = 0 ;
58743 int res1 = 0 ;
58744 PyObject * obj0 = 0 ;
58745 int result;
58746
58747 if (!PyArg_UnpackTuple(args, "RoutingModel_GetNumberOfDisjunctions", 1, 1, &obj0)) SWIG_fail;
58749 if (!SWIG_IsOK(res1)) {
58750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetNumberOfDisjunctions" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58751 }
58752 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58753 {
58754 try {
58755 result = (int)((operations_research::RoutingModel const *)arg1)->GetNumberOfDisjunctions();
58756 }
58757 catch (Swig::DirectorException &e) {
58758 SWIG_fail;
58759 }
58760 }
58761 resultobj = SWIG_From_int(static_cast< int >(result));
58762 return resultobj;
58763fail:
58764 return NULL;
58765}
58766
58767
58769 PyObject *resultobj = 0;
58771 void *argp1 = 0 ;
58772 int res1 = 0 ;
58773 PyObject * obj0 = 0 ;
58774 std::vector< std::pair< int64_t,int64_t > > result;
58775
58776 if (!PyArg_UnpackTuple(args, "RoutingModel_GetPerfectBinaryDisjunctions", 1, 1, &obj0)) SWIG_fail;
58778 if (!SWIG_IsOK(res1)) {
58779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetPerfectBinaryDisjunctions" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58780 }
58781 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58782 {
58783 try {
58785 }
58786 catch (Swig::DirectorException &e) {
58787 SWIG_fail;
58788 }
58789 }
58790 resultobj = SWIG_NewPointerObj((new std::vector< std::pair< int64_t,int64_t > >(static_cast< const std::vector< std::pair< int64_t,int64_t > >& >(result))), SWIGTYPE_p_std__vectorT_std__pairT_long_long_t_t, SWIG_POINTER_OWN | 0 );
58791 return resultobj;
58792fail:
58793 return NULL;
58794}
58795
58796
58798 PyObject *resultobj = 0;
58800 void *argp1 = 0 ;
58801 int res1 = 0 ;
58802 PyObject * obj0 = 0 ;
58803
58804 if (!PyArg_UnpackTuple(args, "RoutingModel_IgnoreDisjunctionsAlreadyForcedToZero", 1, 1, &obj0)) SWIG_fail;
58806 if (!SWIG_IsOK(res1)) {
58807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_IgnoreDisjunctionsAlreadyForcedToZero" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58808 }
58809 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58810 {
58811 try {
58812 (arg1)->IgnoreDisjunctionsAlreadyForcedToZero();
58813 }
58814 catch (Swig::DirectorException &e) {
58815 SWIG_fail;
58816 }
58817 }
58818 resultobj = SWIG_Py_Void();
58819 return resultobj;
58820fail:
58821 return NULL;
58822}
58823
58824
58826 PyObject *resultobj = 0;
58828 std::vector< int64_t > *arg2 = 0 ;
58829 int64_t arg3 ;
58830 void *argp1 = 0 ;
58831 int res1 = 0 ;
58832 std::vector< int64_t > temp2 ;
58833 long val3 ;
58834 int ecode3 = 0 ;
58835 PyObject * obj0 = 0 ;
58836 PyObject * obj1 = 0 ;
58837 PyObject * obj2 = 0 ;
58838
58839 if (!PyArg_UnpackTuple(args, "RoutingModel_AddSoftSameVehicleConstraint", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
58841 if (!SWIG_IsOK(res1)) {
58842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddSoftSameVehicleConstraint" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58843 }
58844 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58845 {
58846 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
58847 if (!PyErr_Occurred())
58848 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
58849 return NULL;
58850 }
58851 arg2 = &temp2;
58852 }
58853 ecode3 = SWIG_AsVal_long(obj2, &val3);
58854 if (!SWIG_IsOK(ecode3)) {
58855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_AddSoftSameVehicleConstraint" "', argument " "3"" of type '" "int64_t""'");
58856 }
58857 arg3 = static_cast< int64_t >(val3);
58858 {
58859 try {
58860 (arg1)->AddSoftSameVehicleConstraint((std::vector< int64_t > const &)*arg2,arg3);
58861 }
58862 catch (Swig::DirectorException &e) {
58863 SWIG_fail;
58864 }
58865 }
58866 resultobj = SWIG_Py_Void();
58867 return resultobj;
58868fail:
58869 return NULL;
58870}
58871
58872
58874 PyObject *resultobj = 0;
58876 std::vector< int > *arg2 = 0 ;
58877 int64_t arg3 ;
58878 void *argp1 = 0 ;
58879 int res1 = 0 ;
58880 std::vector< int > temp2 ;
58881 long val3 ;
58882 int ecode3 = 0 ;
58883 PyObject * obj0 = 0 ;
58884 PyObject * obj1 = 0 ;
58885 PyObject * obj2 = 0 ;
58886
58887 if (!PyArg_UnpackTuple(args, "RoutingModel_SetAllowedVehiclesForIndex", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
58889 if (!SWIG_IsOK(res1)) {
58890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SetAllowedVehiclesForIndex" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58891 }
58892 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58893 {
58894 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
58895 if (!PyErr_Occurred())
58896 SWIG_Error(SWIG_TypeError, "sequence(int) expected");
58897 return NULL;
58898 }
58899 arg2 = &temp2;
58900 }
58901 ecode3 = SWIG_AsVal_long(obj2, &val3);
58902 if (!SWIG_IsOK(ecode3)) {
58903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_SetAllowedVehiclesForIndex" "', argument " "3"" of type '" "int64_t""'");
58904 }
58905 arg3 = static_cast< int64_t >(val3);
58906 {
58907 try {
58908 (arg1)->SetAllowedVehiclesForIndex((std::vector< int > const &)*arg2,arg3);
58909 }
58910 catch (Swig::DirectorException &e) {
58911 SWIG_fail;
58912 }
58913 }
58914 resultobj = SWIG_Py_Void();
58915 return resultobj;
58916fail:
58917 return NULL;
58918}
58919
58920
58922 PyObject *resultobj = 0;
58924 int arg2 ;
58925 int64_t arg3 ;
58926 void *argp1 = 0 ;
58927 int res1 = 0 ;
58928 int val2 ;
58929 int ecode2 = 0 ;
58930 long val3 ;
58931 int ecode3 = 0 ;
58932 PyObject * obj0 = 0 ;
58933 PyObject * obj1 = 0 ;
58934 PyObject * obj2 = 0 ;
58935 bool result;
58936
58937 if (!PyArg_UnpackTuple(args, "RoutingModel_IsVehicleAllowedForIndex", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
58939 if (!SWIG_IsOK(res1)) {
58940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_IsVehicleAllowedForIndex" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58941 }
58942 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58943 ecode2 = SWIG_AsVal_int(obj1, &val2);
58944 if (!SWIG_IsOK(ecode2)) {
58945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_IsVehicleAllowedForIndex" "', argument " "2"" of type '" "int""'");
58946 }
58947 arg2 = static_cast< int >(val2);
58948 ecode3 = SWIG_AsVal_long(obj2, &val3);
58949 if (!SWIG_IsOK(ecode3)) {
58950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_IsVehicleAllowedForIndex" "', argument " "3"" of type '" "int64_t""'");
58951 }
58952 arg3 = static_cast< int64_t >(val3);
58953 {
58954 try {
58955 result = (bool)(arg1)->IsVehicleAllowedForIndex(arg2,arg3);
58956 }
58957 catch (Swig::DirectorException &e) {
58958 SWIG_fail;
58959 }
58960 }
58961 resultobj = SWIG_From_bool(static_cast< bool >(result));
58962 return resultobj;
58963fail:
58964 return NULL;
58965}
58966
58967
58968SWIGINTERN PyObject *_wrap_RoutingModel_AddPickupAndDelivery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58969 PyObject *resultobj = 0;
58971 int64_t arg2 ;
58972 int64_t arg3 ;
58973 void *argp1 = 0 ;
58974 int res1 = 0 ;
58975 long val2 ;
58976 int ecode2 = 0 ;
58977 long val3 ;
58978 int ecode3 = 0 ;
58979 PyObject * obj0 = 0 ;
58980 PyObject * obj1 = 0 ;
58981 PyObject * obj2 = 0 ;
58982
58983 if (!PyArg_UnpackTuple(args, "RoutingModel_AddPickupAndDelivery", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
58985 if (!SWIG_IsOK(res1)) {
58986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddPickupAndDelivery" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58987 }
58988 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58989 ecode2 = SWIG_AsVal_long(obj1, &val2);
58990 if (!SWIG_IsOK(ecode2)) {
58991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_AddPickupAndDelivery" "', argument " "2"" of type '" "int64_t""'");
58992 }
58993 arg2 = static_cast< int64_t >(val2);
58994 ecode3 = SWIG_AsVal_long(obj2, &val3);
58995 if (!SWIG_IsOK(ecode3)) {
58996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_AddPickupAndDelivery" "', argument " "3"" of type '" "int64_t""'");
58997 }
58998 arg3 = static_cast< int64_t >(val3);
58999 {
59000 try {
59001 (arg1)->AddPickupAndDelivery(arg2,arg3);
59002 }
59003 catch (Swig::DirectorException &e) {
59004 SWIG_fail;
59005 }
59006 }
59007 resultobj = SWIG_Py_Void();
59008 return resultobj;
59009fail:
59010 return NULL;
59011}
59012
59013
59015 PyObject *resultobj = 0;
59019 void *argp1 = 0 ;
59020 int res1 = 0 ;
59021 PyObject * obj0 = 0 ;
59022 PyObject * obj1 = 0 ;
59023 PyObject * obj2 = 0 ;
59024
59025 if (!PyArg_UnpackTuple(args, "RoutingModel_AddPickupAndDeliverySets", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
59027 if (!SWIG_IsOK(res1)) {
59028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddPickupAndDeliverySets" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59029 }
59030 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59031 {
59032 arg2 = operations_research::RoutingDisjunctionIndex(PyInt_AsLong(obj1));
59033 }
59034 {
59035 arg3 = operations_research::RoutingDisjunctionIndex(PyInt_AsLong(obj2));
59036 }
59037 {
59038 try {
59039 (arg1)->AddPickupAndDeliverySets(arg2,arg3);
59040 }
59041 catch (Swig::DirectorException &e) {
59042 SWIG_fail;
59043 }
59044 }
59045 resultobj = SWIG_Py_Void();
59046 return resultobj;
59047fail:
59048 return NULL;
59049}
59050
59051
59052SWIGINTERN PyObject *_wrap_RoutingModel_GetPickupIndexPairs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
59053 PyObject *resultobj = 0;
59055 int64_t arg2 ;
59056 void *argp1 = 0 ;
59057 int res1 = 0 ;
59058 long val2 ;
59059 int ecode2 = 0 ;
59060 PyObject * obj0 = 0 ;
59061 PyObject * obj1 = 0 ;
59062 std::vector< std::pair< int,int > > *result = 0 ;
59063
59064 if (!PyArg_UnpackTuple(args, "RoutingModel_GetPickupIndexPairs", 2, 2, &obj0, &obj1)) SWIG_fail;
59066 if (!SWIG_IsOK(res1)) {
59067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetPickupIndexPairs" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59068 }
59069 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59070 ecode2 = SWIG_AsVal_long(obj1, &val2);
59071 if (!SWIG_IsOK(ecode2)) {
59072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetPickupIndexPairs" "', argument " "2"" of type '" "int64_t""'");
59073 }
59074 arg2 = static_cast< int64_t >(val2);
59075 {
59076 try {
59077 result = (std::vector< std::pair< int,int > > *) &((operations_research::RoutingModel const *)arg1)->GetPickupIndexPairs(arg2);
59078 }
59079 catch (Swig::DirectorException &e) {
59080 SWIG_fail;
59081 }
59082 }
59084 return resultobj;
59085fail:
59086 return NULL;
59087}
59088
59089
59090SWIGINTERN PyObject *_wrap_RoutingModel_GetDeliveryIndexPairs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
59091 PyObject *resultobj = 0;
59093 int64_t arg2 ;
59094 void *argp1 = 0 ;
59095 int res1 = 0 ;
59096 long val2 ;
59097 int ecode2 = 0 ;
59098 PyObject * obj0 = 0 ;
59099 PyObject * obj1 = 0 ;
59100 std::vector< std::pair< int,int > > *result = 0 ;
59101
59102 if (!PyArg_UnpackTuple(args, "RoutingModel_GetDeliveryIndexPairs", 2, 2, &obj0, &obj1)) SWIG_fail;
59104 if (!SWIG_IsOK(res1)) {
59105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetDeliveryIndexPairs" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59106 }
59107 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59108 ecode2 = SWIG_AsVal_long(obj1, &val2);
59109 if (!SWIG_IsOK(ecode2)) {
59110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetDeliveryIndexPairs" "', argument " "2"" of type '" "int64_t""'");
59111 }
59112 arg2 = static_cast< int64_t >(val2);
59113 {
59114 try {
59115 result = (std::vector< std::pair< int,int > > *) &((operations_research::RoutingModel const *)arg1)->GetDeliveryIndexPairs(arg2);
59116 }
59117 catch (Swig::DirectorException &e) {
59118 SWIG_fail;
59119 }
59120 }
59122 return resultobj;
59123fail:
59124 return NULL;
59125}
59126
59127
59129 PyObject *resultobj = 0;
59132 void *argp1 = 0 ;
59133 int res1 = 0 ;
59134 int val2 ;
59135 int ecode2 = 0 ;
59136 PyObject * obj0 = 0 ;
59137 PyObject * obj1 = 0 ;
59138
59139 if (!PyArg_UnpackTuple(args, "RoutingModel_SetPickupAndDeliveryPolicyOfAllVehicles", 2, 2, &obj0, &obj1)) SWIG_fail;
59141 if (!SWIG_IsOK(res1)) {
59142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SetPickupAndDeliveryPolicyOfAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59143 }
59144 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59145 ecode2 = SWIG_AsVal_int(obj1, &val2);
59146 if (!SWIG_IsOK(ecode2)) {
59147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_SetPickupAndDeliveryPolicyOfAllVehicles" "', argument " "2"" of type '" "operations_research::RoutingModel::PickupAndDeliveryPolicy""'");
59148 }
59150 {
59151 try {
59152 (arg1)->SetPickupAndDeliveryPolicyOfAllVehicles(arg2);
59153 }
59154 catch (Swig::DirectorException &e) {
59155 SWIG_fail;
59156 }
59157 }
59158 resultobj = SWIG_Py_Void();
59159 return resultobj;
59160fail:
59161 return NULL;
59162}
59163
59164
59166 PyObject *resultobj = 0;
59169 int arg3 ;
59170 void *argp1 = 0 ;
59171 int res1 = 0 ;
59172 int val2 ;
59173 int ecode2 = 0 ;
59174 int val3 ;
59175 int ecode3 = 0 ;
59176 PyObject * obj0 = 0 ;
59177 PyObject * obj1 = 0 ;
59178 PyObject * obj2 = 0 ;
59179
59180 if (!PyArg_UnpackTuple(args, "RoutingModel_SetPickupAndDeliveryPolicyOfVehicle", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
59182 if (!SWIG_IsOK(res1)) {
59183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SetPickupAndDeliveryPolicyOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59184 }
59185 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59186 ecode2 = SWIG_AsVal_int(obj1, &val2);
59187 if (!SWIG_IsOK(ecode2)) {
59188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_SetPickupAndDeliveryPolicyOfVehicle" "', argument " "2"" of type '" "operations_research::RoutingModel::PickupAndDeliveryPolicy""'");
59189 }
59191 ecode3 = SWIG_AsVal_int(obj2, &val3);
59192 if (!SWIG_IsOK(ecode3)) {
59193 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_SetPickupAndDeliveryPolicyOfVehicle" "', argument " "3"" of type '" "int""'");
59194 }
59195 arg3 = static_cast< int >(val3);
59196 {
59197 try {
59198 (arg1)->SetPickupAndDeliveryPolicyOfVehicle(arg2,arg3);
59199 }
59200 catch (Swig::DirectorException &e) {
59201 SWIG_fail;
59202 }
59203 }
59204 resultobj = SWIG_Py_Void();
59205 return resultobj;
59206fail:
59207 return NULL;
59208}
59209
59210
59212 PyObject *resultobj = 0;
59214 int arg2 ;
59215 void *argp1 = 0 ;
59216 int res1 = 0 ;
59217 int val2 ;
59218 int ecode2 = 0 ;
59219 PyObject * obj0 = 0 ;
59220 PyObject * obj1 = 0 ;
59222
59223 if (!PyArg_UnpackTuple(args, "RoutingModel_GetPickupAndDeliveryPolicyOfVehicle", 2, 2, &obj0, &obj1)) SWIG_fail;
59225 if (!SWIG_IsOK(res1)) {
59226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetPickupAndDeliveryPolicyOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59227 }
59228 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59229 ecode2 = SWIG_AsVal_int(obj1, &val2);
59230 if (!SWIG_IsOK(ecode2)) {
59231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetPickupAndDeliveryPolicyOfVehicle" "', argument " "2"" of type '" "int""'");
59232 }
59233 arg2 = static_cast< int >(val2);
59234 {
59235 try {
59236 result = (operations_research::RoutingModel::PickupAndDeliveryPolicy)((operations_research::RoutingModel const *)arg1)->GetPickupAndDeliveryPolicyOfVehicle(arg2);
59237 }
59238 catch (Swig::DirectorException &e) {
59239 SWIG_fail;
59240 }
59241 }
59242 resultobj = SWIG_From_int(static_cast< int >(result));
59243 return resultobj;
59244fail:
59245 return NULL;
59246}
59247
59248
59249SWIGINTERN PyObject *_wrap_RoutingModel_GetNumOfSingletonNodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
59250 PyObject *resultobj = 0;
59252 void *argp1 = 0 ;
59253 int res1 = 0 ;
59254 PyObject * obj0 = 0 ;
59255 int result;
59256
59257 if (!PyArg_UnpackTuple(args, "RoutingModel_GetNumOfSingletonNodes", 1, 1, &obj0)) SWIG_fail;
59259 if (!SWIG_IsOK(res1)) {
59260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetNumOfSingletonNodes" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59261 }
59262 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59263 {
59264 try {
59265 result = (int)((operations_research::RoutingModel const *)arg1)->GetNumOfSingletonNodes();
59266 }
59267 catch (Swig::DirectorException &e) {
59268 SWIG_fail;
59269 }
59270 }
59271 resultobj = SWIG_From_int(static_cast< int >(result));
59272 return resultobj;
59273fail:
59274 return NULL;
59275}
59276
59277
59278SWIGINTERN PyObject *_wrap_RoutingModel_SetVisitType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
59279 PyObject *resultobj = 0;
59281 int64_t arg2 ;
59282 int arg3 ;
59284 void *argp1 = 0 ;
59285 int res1 = 0 ;
59286 long val2 ;
59287 int ecode2 = 0 ;
59288 int val3 ;
59289 int ecode3 = 0 ;
59290 int val4 ;
59291 int ecode4 = 0 ;
59292 PyObject * obj0 = 0 ;
59293 PyObject * obj1 = 0 ;
59294 PyObject * obj2 = 0 ;
59295 PyObject * obj3 = 0 ;
59296
59297 if (!PyArg_UnpackTuple(args, "RoutingModel_SetVisitType", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
59299 if (!SWIG_IsOK(res1)) {
59300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SetVisitType" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59301 }
59302 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59303 ecode2 = SWIG_AsVal_long(obj1, &val2);
59304 if (!SWIG_IsOK(ecode2)) {
59305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_SetVisitType" "', argument " "2"" of type '" "int64_t""'");
59306 }
59307 arg2 = static_cast< int64_t >(val2);
59308 ecode3 = SWIG_AsVal_int(obj2, &val3);
59309 if (!SWIG_IsOK(ecode3)) {
59310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_SetVisitType" "', argument " "3"" of type '" "int""'");
59311 }
59312 arg3 = static_cast< int >(val3);
59313 ecode4 = SWIG_AsVal_int(obj3, &val4);
59314 if (!SWIG_IsOK(ecode4)) {
59315 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingModel_SetVisitType" "', argument " "4"" of type '" "operations_research::RoutingModel::VisitTypePolicy""'");
59316 }
59317 arg4 = static_cast< operations_research::RoutingModel::VisitTypePolicy >(val4);
59318 {
59319 try {
59320 (arg1)->SetVisitType(arg2,arg3,arg4);
59321 }
59322 catch (Swig::DirectorException &e) {
59323 SWIG_fail;
59324 }
59325 }
59326 resultobj = SWIG_Py_Void();
59327 return resultobj;
59328fail:
59329 return NULL;
59330}
59331
59332
59333SWIGINTERN PyObject *_wrap_RoutingModel_GetVisitType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
59334 PyObject *resultobj = 0;
59336 int64_t arg2 ;
59337 void *argp1 = 0 ;
59338 int res1 = 0 ;
59339 long val2 ;
59340 int ecode2 = 0 ;
59341 PyObject * obj0 = 0 ;
59342 PyObject * obj1 = 0 ;
59343 int result;
59344
59345 if (!PyArg_UnpackTuple(args, "RoutingModel_GetVisitType", 2, 2, &obj0, &obj1)) SWIG_fail;
59347 if (!SWIG_IsOK(res1)) {
59348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetVisitType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59349 }
59350 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59351 ecode2 = SWIG_AsVal_long(obj1, &val2);
59352 if (!SWIG_IsOK(ecode2)) {
59353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetVisitType" "', argument " "2"" of type '" "int64_t""'");
59354 }
59355 arg2 = static_cast< int64_t >(val2);
59356 {
59357 try {
59358 result = (int)((operations_research::RoutingModel const *)arg1)->GetVisitType(arg2);
59359 }
59360 catch (Swig::DirectorException &e) {
59361 SWIG_fail;
59362 }
59363 }
59364 resultobj = SWIG_From_int(static_cast< int >(result));
59365 return resultobj;
59366fail:
59367 return NULL;
59368}
59369
59370
59371SWIGINTERN PyObject *_wrap_RoutingModel_GetSingleNodesOfType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
59372 PyObject *resultobj = 0;
59374 int arg2 ;
59375 void *argp1 = 0 ;
59376 int res1 = 0 ;
59377 int val2 ;
59378 int ecode2 = 0 ;
59379 PyObject * obj0 = 0 ;
59380 PyObject * obj1 = 0 ;
59381 std::vector< int > *result = 0 ;
59382
59383 if (!PyArg_UnpackTuple(args, "RoutingModel_GetSingleNodesOfType", 2, 2, &obj0, &obj1)) SWIG_fail;
59385 if (!SWIG_IsOK(res1)) {
59386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetSingleNodesOfType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59387 }
59388 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59389 ecode2 = SWIG_AsVal_int(obj1, &val2);
59390 if (!SWIG_IsOK(ecode2)) {
59391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetSingleNodesOfType" "', argument " "2"" of type '" "int""'");
59392 }
59393 arg2 = static_cast< int >(val2);
59394 {
59395 try {
59396 result = (std::vector< int > *) &((operations_research::RoutingModel const *)arg1)->GetSingleNodesOfType(arg2);
59397 }
59398 catch (Swig::DirectorException &e) {
59399 SWIG_fail;
59400 }
59401 }
59402 {
59403 resultobj = vector_output_helper(result, &PyInt_FromLong);
59404 }
59405 return resultobj;
59406fail:
59407 return NULL;
59408}
59409
59410
59411SWIGINTERN PyObject *_wrap_RoutingModel_GetPairIndicesOfType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
59412 PyObject *resultobj = 0;
59414 int arg2 ;
59415 void *argp1 = 0 ;
59416 int res1 = 0 ;
59417 int val2 ;
59418 int ecode2 = 0 ;
59419 PyObject * obj0 = 0 ;
59420 PyObject * obj1 = 0 ;
59421 std::vector< int > *result = 0 ;
59422
59423 if (!PyArg_UnpackTuple(args, "RoutingModel_GetPairIndicesOfType", 2, 2, &obj0, &obj1)) SWIG_fail;
59425 if (!SWIG_IsOK(res1)) {
59426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetPairIndicesOfType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59427 }
59428 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59429 ecode2 = SWIG_AsVal_int(obj1, &val2);
59430 if (!SWIG_IsOK(ecode2)) {
59431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetPairIndicesOfType" "', argument " "2"" of type '" "int""'");
59432 }
59433 arg2 = static_cast< int >(val2);
59434 {
59435 try {
59436 result = (std::vector< int > *) &((operations_research::RoutingModel const *)arg1)->GetPairIndicesOfType(arg2);
59437 }
59438 catch (Swig::DirectorException &e) {
59439 SWIG_fail;
59440 }
59441 }
59442 {
59443 resultobj = vector_output_helper(result, &PyInt_FromLong);
59444 }
59445 return resultobj;
59446fail:
59447 return NULL;
59448}
59449
59450
59451SWIGINTERN PyObject *_wrap_RoutingModel_GetVisitTypePolicy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
59452 PyObject *resultobj = 0;
59454 int64_t arg2 ;
59455 void *argp1 = 0 ;
59456 int res1 = 0 ;
59457 long val2 ;
59458 int ecode2 = 0 ;
59459 PyObject * obj0 = 0 ;
59460 PyObject * obj1 = 0 ;
59462
59463 if (!PyArg_UnpackTuple(args, "RoutingModel_GetVisitTypePolicy", 2, 2, &obj0, &obj1)) SWIG_fail;
59465 if (!SWIG_IsOK(res1)) {
59466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetVisitTypePolicy" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59467 }
59468 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59469 ecode2 = SWIG_AsVal_long(obj1, &val2);
59470 if (!SWIG_IsOK(ecode2)) {
59471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetVisitTypePolicy" "', argument " "2"" of type '" "int64_t""'");
59472 }
59473 arg2 = static_cast< int64_t >(val2);
59474 {
59475 try {
59476 result = (operations_research::RoutingModel::VisitTypePolicy)((operations_research::RoutingModel const *)arg1)->GetVisitTypePolicy(arg2);
59477 }
59478 catch (Swig::DirectorException &e) {
59479 SWIG_fail;
59480 }
59481 }
59482 resultobj = SWIG_From_int(static_cast< int >(result));
59483 return resultobj;
59484fail:
59485 return NULL;
59486}
59487
59488
59489SWIGINTERN PyObject *_wrap_RoutingModel_CloseVisitTypes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
59490 PyObject *resultobj = 0;
59492 void *argp1 = 0 ;
59493 int res1 = 0 ;
59494 PyObject * obj0 = 0 ;
59495
59496 if (!PyArg_UnpackTuple(args, "RoutingModel_CloseVisitTypes", 1, 1, &obj0)) SWIG_fail;
59498 if (!SWIG_IsOK(res1)) {
59499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_CloseVisitTypes" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59500 }
59501 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59502 {
59503 try {
59504 (arg1)->CloseVisitTypes();
59505 }
59506 catch (Swig::DirectorException &e) {
59507 SWIG_fail;
59508 }
59509 }
59510 resultobj = SWIG_Py_Void();
59511 return resultobj;
59512fail:
59513 return NULL;
59514}
59515
59516
59517SWIGINTERN PyObject *_wrap_RoutingModel_GetNumberOfVisitTypes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
59518 PyObject *resultobj = 0;
59520 void *argp1 = 0 ;
59521 int res1 = 0 ;
59522 PyObject * obj0 = 0 ;
59523 int result;
59524
59525 if (!PyArg_UnpackTuple(args, "RoutingModel_GetNumberOfVisitTypes", 1, 1, &obj0)) SWIG_fail;
59527 if (!SWIG_IsOK(res1)) {
59528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetNumberOfVisitTypes" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59529 }
59530 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59531 {
59532 try {
59533 result = (int)((operations_research::RoutingModel const *)arg1)->GetNumberOfVisitTypes();
59534 }
59535 catch (Swig::DirectorException &e) {
59536 SWIG_fail;
59537 }
59538 }
59539 resultobj = SWIG_From_int(static_cast< int >(result));
59540 return resultobj;
59541fail:
59542 return NULL;
59543}
59544
59545
59547 PyObject *resultobj = 0;
59549 int arg2 ;
59550 int arg3 ;
59551 void *argp1 = 0 ;
59552 int res1 = 0 ;
59553 int val2 ;
59554 int ecode2 = 0 ;
59555 int val3 ;
59556 int ecode3 = 0 ;
59557 PyObject * obj0 = 0 ;
59558 PyObject * obj1 = 0 ;
59559 PyObject * obj2 = 0 ;
59560
59561 if (!PyArg_UnpackTuple(args, "RoutingModel_AddHardTypeIncompatibility", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
59563 if (!SWIG_IsOK(res1)) {
59564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddHardTypeIncompatibility" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59565 }
59566 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59567 ecode2 = SWIG_AsVal_int(obj1, &val2);
59568 if (!SWIG_IsOK(ecode2)) {
59569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_AddHardTypeIncompatibility" "', argument " "2"" of type '" "int""'");
59570 }
59571 arg2 = static_cast< int >(val2);
59572 ecode3 = SWIG_AsVal_int(obj2, &val3);
59573 if (!SWIG_IsOK(ecode3)) {
59574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_AddHardTypeIncompatibility" "', argument " "3"" of type '" "int""'");
59575 }
59576 arg3 = static_cast< int >(val3);
59577 {
59578 try {
59579 (arg1)->AddHardTypeIncompatibility(arg2,arg3);
59580 }
59581 catch (Swig::DirectorException &e) {
59582 SWIG_fail;
59583 }
59584 }
59585 resultobj = SWIG_Py_Void();
59586 return resultobj;
59587fail:
59588 return NULL;
59589}
59590
59591
59593 PyObject *resultobj = 0;
59595 int arg2 ;
59596 int arg3 ;
59597 void *argp1 = 0 ;
59598 int res1 = 0 ;
59599 int val2 ;
59600 int ecode2 = 0 ;
59601 int val3 ;
59602 int ecode3 = 0 ;
59603 PyObject * obj0 = 0 ;
59604 PyObject * obj1 = 0 ;
59605 PyObject * obj2 = 0 ;
59606
59607 if (!PyArg_UnpackTuple(args, "RoutingModel_AddTemporalTypeIncompatibility", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
59609 if (!SWIG_IsOK(res1)) {
59610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddTemporalTypeIncompatibility" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59611 }
59612 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59613 ecode2 = SWIG_AsVal_int(obj1, &val2);
59614 if (!SWIG_IsOK(ecode2)) {
59615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_AddTemporalTypeIncompatibility" "', argument " "2"" of type '" "int""'");
59616 }
59617 arg2 = static_cast< int >(val2);
59618 ecode3 = SWIG_AsVal_int(obj2, &val3);
59619 if (!SWIG_IsOK(ecode3)) {
59620 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_AddTemporalTypeIncompatibility" "', argument " "3"" of type '" "int""'");
59621 }
59622 arg3 = static_cast< int >(val3);
59623 {
59624 try {
59625 (arg1)->AddTemporalTypeIncompatibility(arg2,arg3);
59626 }
59627 catch (Swig::DirectorException &e) {
59628 SWIG_fail;
59629 }
59630 }
59631 resultobj = SWIG_Py_Void();
59632 return resultobj;
59633fail:
59634 return NULL;
59635}
59636
59637
59639 PyObject *resultobj = 0;
59641 int arg2 ;
59642 void *argp1 = 0 ;
59643 int res1 = 0 ;
59644 int val2 ;
59645 int ecode2 = 0 ;
59646 PyObject * obj0 = 0 ;
59647 PyObject * obj1 = 0 ;
59648 absl::flat_hash_set< int > *result = 0 ;
59649
59650 if (!PyArg_UnpackTuple(args, "RoutingModel_GetHardTypeIncompatibilitiesOfType", 2, 2, &obj0, &obj1)) SWIG_fail;
59652 if (!SWIG_IsOK(res1)) {
59653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetHardTypeIncompatibilitiesOfType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59654 }
59655 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59656 ecode2 = SWIG_AsVal_int(obj1, &val2);
59657 if (!SWIG_IsOK(ecode2)) {
59658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetHardTypeIncompatibilitiesOfType" "', argument " "2"" of type '" "int""'");
59659 }
59660 arg2 = static_cast< int >(val2);
59661 {
59662 try {
59663 result = (absl::flat_hash_set< int > *) &((operations_research::RoutingModel const *)arg1)->GetHardTypeIncompatibilitiesOfType(arg2);
59664 }
59665 catch (Swig::DirectorException &e) {
59666 SWIG_fail;
59667 }
59668 }
59670 return resultobj;
59671fail:
59672 return NULL;
59673}
59674
59675
59677 PyObject *resultobj = 0;
59679 int arg2 ;
59680 void *argp1 = 0 ;
59681 int res1 = 0 ;
59682 int val2 ;
59683 int ecode2 = 0 ;
59684 PyObject * obj0 = 0 ;
59685 PyObject * obj1 = 0 ;
59686 absl::flat_hash_set< int > *result = 0 ;
59687
59688 if (!PyArg_UnpackTuple(args, "RoutingModel_GetTemporalTypeIncompatibilitiesOfType", 2, 2, &obj0, &obj1)) SWIG_fail;
59690 if (!SWIG_IsOK(res1)) {
59691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetTemporalTypeIncompatibilitiesOfType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59692 }
59693 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59694 ecode2 = SWIG_AsVal_int(obj1, &val2);
59695 if (!SWIG_IsOK(ecode2)) {
59696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetTemporalTypeIncompatibilitiesOfType" "', argument " "2"" of type '" "int""'");
59697 }
59698 arg2 = static_cast< int >(val2);
59699 {
59700 try {
59701 result = (absl::flat_hash_set< int > *) &((operations_research::RoutingModel const *)arg1)->GetTemporalTypeIncompatibilitiesOfType(arg2);
59702 }
59703 catch (Swig::DirectorException &e) {
59704 SWIG_fail;
59705 }
59706 }
59708 return resultobj;
59709fail:
59710 return NULL;
59711}
59712
59713
59715 PyObject *resultobj = 0;
59717 void *argp1 = 0 ;
59718 int res1 = 0 ;
59719 PyObject * obj0 = 0 ;
59720 bool result;
59721
59722 if (!PyArg_UnpackTuple(args, "RoutingModel_HasHardTypeIncompatibilities", 1, 1, &obj0)) SWIG_fail;
59724 if (!SWIG_IsOK(res1)) {
59725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_HasHardTypeIncompatibilities" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59726 }
59727 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59728 {
59729 try {
59730 result = (bool)((operations_research::RoutingModel const *)arg1)->HasHardTypeIncompatibilities();
59731 }
59732 catch (Swig::DirectorException &e) {
59733 SWIG_fail;
59734 }
59735 }
59736 resultobj = SWIG_From_bool(static_cast< bool >(result));
59737 return resultobj;
59738fail:
59739 return NULL;
59740}
59741
59742
59744 PyObject *resultobj = 0;
59746 void *argp1 = 0 ;
59747 int res1 = 0 ;
59748 PyObject * obj0 = 0 ;
59749 bool result;
59750
59751 if (!PyArg_UnpackTuple(args, "RoutingModel_HasTemporalTypeIncompatibilities", 1, 1, &obj0)) SWIG_fail;
59753 if (!SWIG_IsOK(res1)) {
59754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_HasTemporalTypeIncompatibilities" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59755 }
59756 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59757 {
59758 try {
59759 result = (bool)((operations_research::RoutingModel const *)arg1)->HasTemporalTypeIncompatibilities();
59760 }
59761 catch (Swig::DirectorException &e) {
59762 SWIG_fail;
59763 }
59764 }
59765 resultobj = SWIG_From_bool(static_cast< bool >(result));
59766 return resultobj;
59767fail:
59768 return NULL;
59769}
59770
59771
59773 PyObject *resultobj = 0;
59775 int arg2 ;
59776 absl::flat_hash_set< int > arg3 ;
59777 void *argp1 = 0 ;
59778 int res1 = 0 ;
59779 int val2 ;
59780 int ecode2 = 0 ;
59781 void *argp3 ;
59782 int res3 = 0 ;
59783 PyObject * obj0 = 0 ;
59784 PyObject * obj1 = 0 ;
59785 PyObject * obj2 = 0 ;
59786
59787 if (!PyArg_UnpackTuple(args, "RoutingModel_AddSameVehicleRequiredTypeAlternatives", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
59789 if (!SWIG_IsOK(res1)) {
59790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddSameVehicleRequiredTypeAlternatives" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59791 }
59792 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59793 ecode2 = SWIG_AsVal_int(obj1, &val2);
59794 if (!SWIG_IsOK(ecode2)) {
59795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_AddSameVehicleRequiredTypeAlternatives" "', argument " "2"" of type '" "int""'");
59796 }
59797 arg2 = static_cast< int >(val2);
59798 {
59799 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_absl__flat_hash_setT_int_t, 0 | 0);
59800 if (!SWIG_IsOK(res3)) {
59801 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RoutingModel_AddSameVehicleRequiredTypeAlternatives" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59802 }
59803 if (!argp3) {
59804 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_AddSameVehicleRequiredTypeAlternatives" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59805 } else {
59806 absl::flat_hash_set< int > * temp = reinterpret_cast< absl::flat_hash_set< int > * >(argp3);
59807 arg3 = *temp;
59808 if (SWIG_IsNewObj(res3)) delete temp;
59809 }
59810 }
59811 {
59812 try {
59813 (arg1)->AddSameVehicleRequiredTypeAlternatives(arg2,arg3);
59814 }
59815 catch (Swig::DirectorException &e) {
59816 SWIG_fail;
59817 }
59818 }
59819 resultobj = SWIG_Py_Void();
59820 return resultobj;
59821fail:
59822 return NULL;
59823}
59824
59825
59827 PyObject *resultobj = 0;
59829 int arg2 ;
59830 absl::flat_hash_set< int > arg3 ;
59831 void *argp1 = 0 ;
59832 int res1 = 0 ;
59833 int val2 ;
59834 int ecode2 = 0 ;
59835 void *argp3 ;
59836 int res3 = 0 ;
59837 PyObject * obj0 = 0 ;
59838 PyObject * obj1 = 0 ;
59839 PyObject * obj2 = 0 ;
59840
59841 if (!PyArg_UnpackTuple(args, "RoutingModel_AddRequiredTypeAlternativesWhenAddingType", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
59843 if (!SWIG_IsOK(res1)) {
59844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddRequiredTypeAlternativesWhenAddingType" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59845 }
59846 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59847 ecode2 = SWIG_AsVal_int(obj1, &val2);
59848 if (!SWIG_IsOK(ecode2)) {
59849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_AddRequiredTypeAlternativesWhenAddingType" "', argument " "2"" of type '" "int""'");
59850 }
59851 arg2 = static_cast< int >(val2);
59852 {
59853 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_absl__flat_hash_setT_int_t, 0 | 0);
59854 if (!SWIG_IsOK(res3)) {
59855 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RoutingModel_AddRequiredTypeAlternativesWhenAddingType" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59856 }
59857 if (!argp3) {
59858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_AddRequiredTypeAlternativesWhenAddingType" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59859 } else {
59860 absl::flat_hash_set< int > * temp = reinterpret_cast< absl::flat_hash_set< int > * >(argp3);
59861 arg3 = *temp;
59862 if (SWIG_IsNewObj(res3)) delete temp;
59863 }
59864 }
59865 {
59866 try {
59867 (arg1)->AddRequiredTypeAlternativesWhenAddingType(arg2,arg3);
59868 }
59869 catch (Swig::DirectorException &e) {
59870 SWIG_fail;
59871 }
59872 }
59873 resultobj = SWIG_Py_Void();
59874 return resultobj;
59875fail:
59876 return NULL;
59877}
59878
59879
59881 PyObject *resultobj = 0;
59883 int arg2 ;
59884 absl::flat_hash_set< int > arg3 ;
59885 void *argp1 = 0 ;
59886 int res1 = 0 ;
59887 int val2 ;
59888 int ecode2 = 0 ;
59889 void *argp3 ;
59890 int res3 = 0 ;
59891 PyObject * obj0 = 0 ;
59892 PyObject * obj1 = 0 ;
59893 PyObject * obj2 = 0 ;
59894
59895 if (!PyArg_UnpackTuple(args, "RoutingModel_AddRequiredTypeAlternativesWhenRemovingType", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
59897 if (!SWIG_IsOK(res1)) {
59898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddRequiredTypeAlternativesWhenRemovingType" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59899 }
59900 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59901 ecode2 = SWIG_AsVal_int(obj1, &val2);
59902 if (!SWIG_IsOK(ecode2)) {
59903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_AddRequiredTypeAlternativesWhenRemovingType" "', argument " "2"" of type '" "int""'");
59904 }
59905 arg2 = static_cast< int >(val2);
59906 {
59907 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_absl__flat_hash_setT_int_t, 0 | 0);
59908 if (!SWIG_IsOK(res3)) {
59909 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RoutingModel_AddRequiredTypeAlternativesWhenRemovingType" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59910 }
59911 if (!argp3) {
59912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_AddRequiredTypeAlternativesWhenRemovingType" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59913 } else {
59914 absl::flat_hash_set< int > * temp = reinterpret_cast< absl::flat_hash_set< int > * >(argp3);
59915 arg3 = *temp;
59916 if (SWIG_IsNewObj(res3)) delete temp;
59917 }
59918 }
59919 {
59920 try {
59921 (arg1)->AddRequiredTypeAlternativesWhenRemovingType(arg2,arg3);
59922 }
59923 catch (Swig::DirectorException &e) {
59924 SWIG_fail;
59925 }
59926 }
59927 resultobj = SWIG_Py_Void();
59928 return resultobj;
59929fail:
59930 return NULL;
59931}
59932
59933
59935 PyObject *resultobj = 0;
59937 int arg2 ;
59938 void *argp1 = 0 ;
59939 int res1 = 0 ;
59940 int val2 ;
59941 int ecode2 = 0 ;
59942 PyObject * obj0 = 0 ;
59943 PyObject * obj1 = 0 ;
59944 std::vector< absl::flat_hash_set< int > > *result = 0 ;
59945
59946 if (!PyArg_UnpackTuple(args, "RoutingModel_GetSameVehicleRequiredTypeAlternativesOfType", 2, 2, &obj0, &obj1)) SWIG_fail;
59948 if (!SWIG_IsOK(res1)) {
59949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetSameVehicleRequiredTypeAlternativesOfType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59950 }
59951 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59952 ecode2 = SWIG_AsVal_int(obj1, &val2);
59953 if (!SWIG_IsOK(ecode2)) {
59954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetSameVehicleRequiredTypeAlternativesOfType" "', argument " "2"" of type '" "int""'");
59955 }
59956 arg2 = static_cast< int >(val2);
59957 {
59958 try {
59959 result = (std::vector< absl::flat_hash_set< int > > *) &((operations_research::RoutingModel const *)arg1)->GetSameVehicleRequiredTypeAlternativesOfType(arg2);
59960 }
59961 catch (Swig::DirectorException &e) {
59962 SWIG_fail;
59963 }
59964 }
59966 return resultobj;
59967fail:
59968 return NULL;
59969}
59970
59971
59973 PyObject *resultobj = 0;
59975 int arg2 ;
59976 void *argp1 = 0 ;
59977 int res1 = 0 ;
59978 int val2 ;
59979 int ecode2 = 0 ;
59980 PyObject * obj0 = 0 ;
59981 PyObject * obj1 = 0 ;
59982 std::vector< absl::flat_hash_set< int > > *result = 0 ;
59983
59984 if (!PyArg_UnpackTuple(args, "RoutingModel_GetRequiredTypeAlternativesWhenAddingType", 2, 2, &obj0, &obj1)) SWIG_fail;
59986 if (!SWIG_IsOK(res1)) {
59987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetRequiredTypeAlternativesWhenAddingType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59988 }
59989 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59990 ecode2 = SWIG_AsVal_int(obj1, &val2);
59991 if (!SWIG_IsOK(ecode2)) {
59992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetRequiredTypeAlternativesWhenAddingType" "', argument " "2"" of type '" "int""'");
59993 }
59994 arg2 = static_cast< int >(val2);
59995 {
59996 try {
59997 result = (std::vector< absl::flat_hash_set< int > > *) &((operations_research::RoutingModel const *)arg1)->GetRequiredTypeAlternativesWhenAddingType(arg2);
59998 }
59999 catch (Swig::DirectorException &e) {
60000 SWIG_fail;
60001 }
60002 }
60004 return resultobj;
60005fail:
60006 return NULL;
60007}
60008
60009
60011 PyObject *resultobj = 0;
60013 int arg2 ;
60014 void *argp1 = 0 ;
60015 int res1 = 0 ;
60016 int val2 ;
60017 int ecode2 = 0 ;
60018 PyObject * obj0 = 0 ;
60019 PyObject * obj1 = 0 ;
60020 std::vector< absl::flat_hash_set< int > > *result = 0 ;
60021
60022 if (!PyArg_UnpackTuple(args, "RoutingModel_GetRequiredTypeAlternativesWhenRemovingType", 2, 2, &obj0, &obj1)) SWIG_fail;
60024 if (!SWIG_IsOK(res1)) {
60025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetRequiredTypeAlternativesWhenRemovingType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60026 }
60027 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60028 ecode2 = SWIG_AsVal_int(obj1, &val2);
60029 if (!SWIG_IsOK(ecode2)) {
60030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetRequiredTypeAlternativesWhenRemovingType" "', argument " "2"" of type '" "int""'");
60031 }
60032 arg2 = static_cast< int >(val2);
60033 {
60034 try {
60035 result = (std::vector< absl::flat_hash_set< int > > *) &((operations_research::RoutingModel const *)arg1)->GetRequiredTypeAlternativesWhenRemovingType(arg2);
60036 }
60037 catch (Swig::DirectorException &e) {
60038 SWIG_fail;
60039 }
60040 }
60042 return resultobj;
60043fail:
60044 return NULL;
60045}
60046
60047
60049 PyObject *resultobj = 0;
60051 void *argp1 = 0 ;
60052 int res1 = 0 ;
60053 PyObject * obj0 = 0 ;
60054 bool result;
60055
60056 if (!PyArg_UnpackTuple(args, "RoutingModel_HasSameVehicleTypeRequirements", 1, 1, &obj0)) SWIG_fail;
60058 if (!SWIG_IsOK(res1)) {
60059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_HasSameVehicleTypeRequirements" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60060 }
60061 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60062 {
60063 try {
60064 result = (bool)((operations_research::RoutingModel const *)arg1)->HasSameVehicleTypeRequirements();
60065 }
60066 catch (Swig::DirectorException &e) {
60067 SWIG_fail;
60068 }
60069 }
60070 resultobj = SWIG_From_bool(static_cast< bool >(result));
60071 return resultobj;
60072fail:
60073 return NULL;
60074}
60075
60076
60078 PyObject *resultobj = 0;
60080 void *argp1 = 0 ;
60081 int res1 = 0 ;
60082 PyObject * obj0 = 0 ;
60083 bool result;
60084
60085 if (!PyArg_UnpackTuple(args, "RoutingModel_HasTemporalTypeRequirements", 1, 1, &obj0)) SWIG_fail;
60087 if (!SWIG_IsOK(res1)) {
60088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_HasTemporalTypeRequirements" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60089 }
60090 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60091 {
60092 try {
60093 result = (bool)((operations_research::RoutingModel const *)arg1)->HasTemporalTypeRequirements();
60094 }
60095 catch (Swig::DirectorException &e) {
60096 SWIG_fail;
60097 }
60098 }
60099 resultobj = SWIG_From_bool(static_cast< bool >(result));
60100 return resultobj;
60101fail:
60102 return NULL;
60103}
60104
60105
60106SWIGINTERN PyObject *_wrap_RoutingModel_HasTypeRegulations(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
60107 PyObject *resultobj = 0;
60109 void *argp1 = 0 ;
60110 int res1 = 0 ;
60111 PyObject * obj0 = 0 ;
60112 bool result;
60113
60114 if (!PyArg_UnpackTuple(args, "RoutingModel_HasTypeRegulations", 1, 1, &obj0)) SWIG_fail;
60116 if (!SWIG_IsOK(res1)) {
60117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_HasTypeRegulations" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60118 }
60119 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60120 {
60121 try {
60122 result = (bool)((operations_research::RoutingModel const *)arg1)->HasTypeRegulations();
60123 }
60124 catch (Swig::DirectorException &e) {
60125 SWIG_fail;
60126 }
60127 }
60128 resultobj = SWIG_From_bool(static_cast< bool >(result));
60129 return resultobj;
60130fail:
60131 return NULL;
60132}
60133
60134
60135SWIGINTERN PyObject *_wrap_RoutingModel_UnperformedPenalty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
60136 PyObject *resultobj = 0;
60138 int64_t arg2 ;
60139 void *argp1 = 0 ;
60140 int res1 = 0 ;
60141 long val2 ;
60142 int ecode2 = 0 ;
60143 PyObject * obj0 = 0 ;
60144 PyObject * obj1 = 0 ;
60145 int64_t result;
60146
60147 if (!PyArg_UnpackTuple(args, "RoutingModel_UnperformedPenalty", 2, 2, &obj0, &obj1)) SWIG_fail;
60149 if (!SWIG_IsOK(res1)) {
60150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_UnperformedPenalty" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60151 }
60152 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60153 ecode2 = SWIG_AsVal_long(obj1, &val2);
60154 if (!SWIG_IsOK(ecode2)) {
60155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_UnperformedPenalty" "', argument " "2"" of type '" "int64_t""'");
60156 }
60157 arg2 = static_cast< int64_t >(val2);
60158 {
60159 try {
60160 result = (int64_t)((operations_research::RoutingModel const *)arg1)->UnperformedPenalty(arg2);
60161 }
60162 catch (Swig::DirectorException &e) {
60163 SWIG_fail;
60164 }
60165 }
60166 resultobj = SWIG_From_long(static_cast< long >(result));
60167 return resultobj;
60168fail:
60169 return NULL;
60170}
60171
60172
60174 PyObject *resultobj = 0;
60176 int64_t arg2 ;
60177 int64_t arg3 ;
60178 void *argp1 = 0 ;
60179 int res1 = 0 ;
60180 long val2 ;
60181 int ecode2 = 0 ;
60182 long val3 ;
60183 int ecode3 = 0 ;
60184 PyObject * obj0 = 0 ;
60185 PyObject * obj1 = 0 ;
60186 PyObject * obj2 = 0 ;
60187 int64_t result;
60188
60189 if (!PyArg_UnpackTuple(args, "RoutingModel_UnperformedPenaltyOrValue", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
60191 if (!SWIG_IsOK(res1)) {
60192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_UnperformedPenaltyOrValue" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60193 }
60194 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60195 ecode2 = SWIG_AsVal_long(obj1, &val2);
60196 if (!SWIG_IsOK(ecode2)) {
60197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_UnperformedPenaltyOrValue" "', argument " "2"" of type '" "int64_t""'");
60198 }
60199 arg2 = static_cast< int64_t >(val2);
60200 ecode3 = SWIG_AsVal_long(obj2, &val3);
60201 if (!SWIG_IsOK(ecode3)) {
60202 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_UnperformedPenaltyOrValue" "', argument " "3"" of type '" "int64_t""'");
60203 }
60204 arg3 = static_cast< int64_t >(val3);
60205 {
60206 try {
60207 result = (int64_t)((operations_research::RoutingModel const *)arg1)->UnperformedPenaltyOrValue(arg2,arg3);
60208 }
60209 catch (Swig::DirectorException &e) {
60210 SWIG_fail;
60211 }
60212 }
60213 resultobj = SWIG_From_long(static_cast< long >(result));
60214 return resultobj;
60215fail:
60216 return NULL;
60217}
60218
60219
60220SWIGINTERN PyObject *_wrap_RoutingModel_GetDepot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
60221 PyObject *resultobj = 0;
60223 void *argp1 = 0 ;
60224 int res1 = 0 ;
60225 PyObject * obj0 = 0 ;
60226 int64_t result;
60227
60228 if (!PyArg_UnpackTuple(args, "RoutingModel_GetDepot", 1, 1, &obj0)) SWIG_fail;
60230 if (!SWIG_IsOK(res1)) {
60231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetDepot" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60232 }
60233 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60234 {
60235 try {
60236 result = (int64_t)((operations_research::RoutingModel const *)arg1)->GetDepot();
60237 }
60238 catch (Swig::DirectorException &e) {
60239 SWIG_fail;
60240 }
60241 }
60242 resultobj = SWIG_From_long(static_cast< long >(result));
60243 return resultobj;
60244fail:
60245 return NULL;
60246}
60247
60248
60250 PyObject *resultobj = 0;
60252 int arg2 ;
60253 void *argp1 = 0 ;
60254 int res1 = 0 ;
60255 int val2 ;
60256 int ecode2 = 0 ;
60257 PyObject * obj0 = 0 ;
60258 PyObject * obj1 = 0 ;
60259
60260 if (!PyArg_UnpackTuple(args, "RoutingModel_SetMaximumNumberOfActiveVehicles", 2, 2, &obj0, &obj1)) SWIG_fail;
60262 if (!SWIG_IsOK(res1)) {
60263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SetMaximumNumberOfActiveVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60264 }
60265 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60266 ecode2 = SWIG_AsVal_int(obj1, &val2);
60267 if (!SWIG_IsOK(ecode2)) {
60268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_SetMaximumNumberOfActiveVehicles" "', argument " "2"" of type '" "int""'");
60269 }
60270 arg2 = static_cast< int >(val2);
60271 {
60272 try {
60273 (arg1)->SetMaximumNumberOfActiveVehicles(arg2);
60274 }
60275 catch (Swig::DirectorException &e) {
60276 SWIG_fail;
60277 }
60278 }
60279 resultobj = SWIG_Py_Void();
60280 return resultobj;
60281fail:
60282 return NULL;
60283}
60284
60285
60287 PyObject *resultobj = 0;
60289 void *argp1 = 0 ;
60290 int res1 = 0 ;
60291 PyObject * obj0 = 0 ;
60292 int result;
60293
60294 if (!PyArg_UnpackTuple(args, "RoutingModel_GetMaximumNumberOfActiveVehicles", 1, 1, &obj0)) SWIG_fail;
60296 if (!SWIG_IsOK(res1)) {
60297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetMaximumNumberOfActiveVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60298 }
60299 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60300 {
60301 try {
60302 result = (int)((operations_research::RoutingModel const *)arg1)->GetMaximumNumberOfActiveVehicles();
60303 }
60304 catch (Swig::DirectorException &e) {
60305 SWIG_fail;
60306 }
60307 }
60308 resultobj = SWIG_From_int(static_cast< int >(result));
60309 return resultobj;
60310fail:
60311 return NULL;
60312}
60313
60314
60316 PyObject *resultobj = 0;
60318 int arg2 ;
60319 void *argp1 = 0 ;
60320 int res1 = 0 ;
60321 int val2 ;
60322 int ecode2 = 0 ;
60323 PyObject * obj0 = 0 ;
60324 PyObject * obj1 = 0 ;
60325
60326 if (!PyArg_UnpackTuple(args, "RoutingModel_SetArcCostEvaluatorOfAllVehicles", 2, 2, &obj0, &obj1)) SWIG_fail;
60328 if (!SWIG_IsOK(res1)) {
60329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SetArcCostEvaluatorOfAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60330 }
60331 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60332 ecode2 = SWIG_AsVal_int(obj1, &val2);
60333 if (!SWIG_IsOK(ecode2)) {
60334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_SetArcCostEvaluatorOfAllVehicles" "', argument " "2"" of type '" "int""'");
60335 }
60336 arg2 = static_cast< int >(val2);
60337 {
60338 try {
60339 (arg1)->SetArcCostEvaluatorOfAllVehicles(arg2);
60340 }
60341 catch (Swig::DirectorException &e) {
60342 SWIG_fail;
60343 }
60344 }
60345 resultobj = SWIG_Py_Void();
60346 return resultobj;
60347fail:
60348 return NULL;
60349}
60350
60351
60353 PyObject *resultobj = 0;
60355 int arg2 ;
60356 int arg3 ;
60357 void *argp1 = 0 ;
60358 int res1 = 0 ;
60359 int val2 ;
60360 int ecode2 = 0 ;
60361 int val3 ;
60362 int ecode3 = 0 ;
60363 PyObject * obj0 = 0 ;
60364 PyObject * obj1 = 0 ;
60365 PyObject * obj2 = 0 ;
60366
60367 if (!PyArg_UnpackTuple(args, "RoutingModel_SetArcCostEvaluatorOfVehicle", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
60369 if (!SWIG_IsOK(res1)) {
60370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SetArcCostEvaluatorOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60371 }
60372 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60373 ecode2 = SWIG_AsVal_int(obj1, &val2);
60374 if (!SWIG_IsOK(ecode2)) {
60375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_SetArcCostEvaluatorOfVehicle" "', argument " "2"" of type '" "int""'");
60376 }
60377 arg2 = static_cast< int >(val2);
60378 ecode3 = SWIG_AsVal_int(obj2, &val3);
60379 if (!SWIG_IsOK(ecode3)) {
60380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_SetArcCostEvaluatorOfVehicle" "', argument " "3"" of type '" "int""'");
60381 }
60382 arg3 = static_cast< int >(val3);
60383 {
60384 try {
60385 (arg1)->SetArcCostEvaluatorOfVehicle(arg2,arg3);
60386 }
60387 catch (Swig::DirectorException &e) {
60388 SWIG_fail;
60389 }
60390 }
60391 resultobj = SWIG_Py_Void();
60392 return resultobj;
60393fail:
60394 return NULL;
60395}
60396
60397
60399 PyObject *resultobj = 0;
60401 int64_t arg2 ;
60402 void *argp1 = 0 ;
60403 int res1 = 0 ;
60404 long val2 ;
60405 int ecode2 = 0 ;
60406 PyObject * obj0 = 0 ;
60407 PyObject * obj1 = 0 ;
60408
60409 if (!PyArg_UnpackTuple(args, "RoutingModel_SetFixedCostOfAllVehicles", 2, 2, &obj0, &obj1)) SWIG_fail;
60411 if (!SWIG_IsOK(res1)) {
60412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SetFixedCostOfAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60413 }
60414 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60415 ecode2 = SWIG_AsVal_long(obj1, &val2);
60416 if (!SWIG_IsOK(ecode2)) {
60417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_SetFixedCostOfAllVehicles" "', argument " "2"" of type '" "int64_t""'");
60418 }
60419 arg2 = static_cast< int64_t >(val2);
60420 {
60421 try {
60422 (arg1)->SetFixedCostOfAllVehicles(arg2);
60423 }
60424 catch (Swig::DirectorException &e) {
60425 SWIG_fail;
60426 }
60427 }
60428 resultobj = SWIG_Py_Void();
60429 return resultobj;
60430fail:
60431 return NULL;
60432}
60433
60434
60435SWIGINTERN PyObject *_wrap_RoutingModel_SetFixedCostOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
60436 PyObject *resultobj = 0;
60438 int64_t arg2 ;
60439 int arg3 ;
60440 void *argp1 = 0 ;
60441 int res1 = 0 ;
60442 long val2 ;
60443 int ecode2 = 0 ;
60444 int val3 ;
60445 int ecode3 = 0 ;
60446 PyObject * obj0 = 0 ;
60447 PyObject * obj1 = 0 ;
60448 PyObject * obj2 = 0 ;
60449
60450 if (!PyArg_UnpackTuple(args, "RoutingModel_SetFixedCostOfVehicle", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
60452 if (!SWIG_IsOK(res1)) {
60453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SetFixedCostOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60454 }
60455 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60456 ecode2 = SWIG_AsVal_long(obj1, &val2);
60457 if (!SWIG_IsOK(ecode2)) {
60458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_SetFixedCostOfVehicle" "', argument " "2"" of type '" "int64_t""'");
60459 }
60460 arg2 = static_cast< int64_t >(val2);
60461 ecode3 = SWIG_AsVal_int(obj2, &val3);
60462 if (!SWIG_IsOK(ecode3)) {
60463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_SetFixedCostOfVehicle" "', argument " "3"" of type '" "int""'");
60464 }
60465 arg3 = static_cast< int >(val3);
60466 {
60467 try {
60468 (arg1)->SetFixedCostOfVehicle(arg2,arg3);
60469 }
60470 catch (Swig::DirectorException &e) {
60471 SWIG_fail;
60472 }
60473 }
60474 resultobj = SWIG_Py_Void();
60475 return resultobj;
60476fail:
60477 return NULL;
60478}
60479
60480
60481SWIGINTERN PyObject *_wrap_RoutingModel_GetFixedCostOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
60482 PyObject *resultobj = 0;
60484 int arg2 ;
60485 void *argp1 = 0 ;
60486 int res1 = 0 ;
60487 int val2 ;
60488 int ecode2 = 0 ;
60489 PyObject * obj0 = 0 ;
60490 PyObject * obj1 = 0 ;
60491 int64_t result;
60492
60493 if (!PyArg_UnpackTuple(args, "RoutingModel_GetFixedCostOfVehicle", 2, 2, &obj0, &obj1)) SWIG_fail;
60495 if (!SWIG_IsOK(res1)) {
60496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetFixedCostOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60497 }
60498 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60499 ecode2 = SWIG_AsVal_int(obj1, &val2);
60500 if (!SWIG_IsOK(ecode2)) {
60501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetFixedCostOfVehicle" "', argument " "2"" of type '" "int""'");
60502 }
60503 arg2 = static_cast< int >(val2);
60504 {
60505 try {
60506 result = (int64_t)((operations_research::RoutingModel const *)arg1)->GetFixedCostOfVehicle(arg2);
60507 }
60508 catch (Swig::DirectorException &e) {
60509 SWIG_fail;
60510 }
60511 }
60512 resultobj = SWIG_From_long(static_cast< long >(result));
60513 return resultobj;
60514fail:
60515 return NULL;
60516}
60517
60518
60520 PyObject *resultobj = 0;
60522 int64_t arg2 ;
60523 int64_t arg3 ;
60524 void *argp1 = 0 ;
60525 int res1 = 0 ;
60526 long val2 ;
60527 int ecode2 = 0 ;
60528 long val3 ;
60529 int ecode3 = 0 ;
60530 PyObject * obj0 = 0 ;
60531 PyObject * obj1 = 0 ;
60532 PyObject * obj2 = 0 ;
60533
60534 if (!PyArg_UnpackTuple(args, "RoutingModel_SetAmortizedCostFactorsOfAllVehicles", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
60536 if (!SWIG_IsOK(res1)) {
60537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SetAmortizedCostFactorsOfAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60538 }
60539 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60540 ecode2 = SWIG_AsVal_long(obj1, &val2);
60541 if (!SWIG_IsOK(ecode2)) {
60542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_SetAmortizedCostFactorsOfAllVehicles" "', argument " "2"" of type '" "int64_t""'");
60543 }
60544 arg2 = static_cast< int64_t >(val2);
60545 ecode3 = SWIG_AsVal_long(obj2, &val3);
60546 if (!SWIG_IsOK(ecode3)) {
60547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_SetAmortizedCostFactorsOfAllVehicles" "', argument " "3"" of type '" "int64_t""'");
60548 }
60549 arg3 = static_cast< int64_t >(val3);
60550 {
60551 try {
60552 (arg1)->SetAmortizedCostFactorsOfAllVehicles(arg2,arg3);
60553 }
60554 catch (Swig::DirectorException &e) {
60555 SWIG_fail;
60556 }
60557 }
60558 resultobj = SWIG_Py_Void();
60559 return resultobj;
60560fail:
60561 return NULL;
60562}
60563
60564
60566 PyObject *resultobj = 0;
60568 int64_t arg2 ;
60569 int64_t arg3 ;
60570 int arg4 ;
60571 void *argp1 = 0 ;
60572 int res1 = 0 ;
60573 long val2 ;
60574 int ecode2 = 0 ;
60575 long val3 ;
60576 int ecode3 = 0 ;
60577 int val4 ;
60578 int ecode4 = 0 ;
60579 PyObject * obj0 = 0 ;
60580 PyObject * obj1 = 0 ;
60581 PyObject * obj2 = 0 ;
60582 PyObject * obj3 = 0 ;
60583
60584 if (!PyArg_UnpackTuple(args, "RoutingModel_SetAmortizedCostFactorsOfVehicle", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
60586 if (!SWIG_IsOK(res1)) {
60587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SetAmortizedCostFactorsOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60588 }
60589 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60590 ecode2 = SWIG_AsVal_long(obj1, &val2);
60591 if (!SWIG_IsOK(ecode2)) {
60592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_SetAmortizedCostFactorsOfVehicle" "', argument " "2"" of type '" "int64_t""'");
60593 }
60594 arg2 = static_cast< int64_t >(val2);
60595 ecode3 = SWIG_AsVal_long(obj2, &val3);
60596 if (!SWIG_IsOK(ecode3)) {
60597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_SetAmortizedCostFactorsOfVehicle" "', argument " "3"" of type '" "int64_t""'");
60598 }
60599 arg3 = static_cast< int64_t >(val3);
60600 ecode4 = SWIG_AsVal_int(obj3, &val4);
60601 if (!SWIG_IsOK(ecode4)) {
60602 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingModel_SetAmortizedCostFactorsOfVehicle" "', argument " "4"" of type '" "int""'");
60603 }
60604 arg4 = static_cast< int >(val4);
60605 {
60606 try {
60607 (arg1)->SetAmortizedCostFactorsOfVehicle(arg2,arg3,arg4);
60608 }
60609 catch (Swig::DirectorException &e) {
60610 SWIG_fail;
60611 }
60612 }
60613 resultobj = SWIG_Py_Void();
60614 return resultobj;
60615fail:
60616 return NULL;
60617}
60618
60619
60621 PyObject *resultobj = 0;
60623 void *argp1 = 0 ;
60624 int res1 = 0 ;
60625 PyObject * obj0 = 0 ;
60626 std::vector< int64_t > *result = 0 ;
60627
60628 if (!PyArg_UnpackTuple(args, "RoutingModel_GetAmortizedLinearCostFactorOfVehicles", 1, 1, &obj0)) SWIG_fail;
60630 if (!SWIG_IsOK(res1)) {
60631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetAmortizedLinearCostFactorOfVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60632 }
60633 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60634 {
60635 try {
60636 result = (std::vector< int64_t > *) &((operations_research::RoutingModel const *)arg1)->GetAmortizedLinearCostFactorOfVehicles();
60637 }
60638 catch (Swig::DirectorException &e) {
60639 SWIG_fail;
60640 }
60641 }
60642 {
60643 resultobj = vector_output_helper(result, &PyLong_FromLongLong);
60644 }
60645 return resultobj;
60646fail:
60647 return NULL;
60648}
60649
60650
60652 PyObject *resultobj = 0;
60654 void *argp1 = 0 ;
60655 int res1 = 0 ;
60656 PyObject * obj0 = 0 ;
60657 std::vector< int64_t > *result = 0 ;
60658
60659 if (!PyArg_UnpackTuple(args, "RoutingModel_GetAmortizedQuadraticCostFactorOfVehicles", 1, 1, &obj0)) SWIG_fail;
60661 if (!SWIG_IsOK(res1)) {
60662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetAmortizedQuadraticCostFactorOfVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60663 }
60664 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60665 {
60666 try {
60667 result = (std::vector< int64_t > *) &((operations_research::RoutingModel const *)arg1)->GetAmortizedQuadraticCostFactorOfVehicles();
60668 }
60669 catch (Swig::DirectorException &e) {
60670 SWIG_fail;
60671 }
60672 }
60673 {
60674 resultobj = vector_output_helper(result, &PyLong_FromLongLong);
60675 }
60676 return resultobj;
60677fail:
60678 return NULL;
60679}
60680
60681
60683 PyObject *resultobj = 0;
60685 bool arg2 ;
60686 int arg3 ;
60687 void *argp1 = 0 ;
60688 int res1 = 0 ;
60689 bool val2 ;
60690 int ecode2 = 0 ;
60691 int val3 ;
60692 int ecode3 = 0 ;
60693 PyObject * obj0 = 0 ;
60694 PyObject * obj1 = 0 ;
60695 PyObject * obj2 = 0 ;
60696
60697 if (!PyArg_UnpackTuple(args, "RoutingModel_ConsiderEmptyRouteCostsForVehicle", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
60699 if (!SWIG_IsOK(res1)) {
60700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_ConsiderEmptyRouteCostsForVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60701 }
60702 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60703 ecode2 = SWIG_AsVal_bool(obj1, &val2);
60704 if (!SWIG_IsOK(ecode2)) {
60705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_ConsiderEmptyRouteCostsForVehicle" "', argument " "2"" of type '" "bool""'");
60706 }
60707 arg2 = static_cast< bool >(val2);
60708 ecode3 = SWIG_AsVal_int(obj2, &val3);
60709 if (!SWIG_IsOK(ecode3)) {
60710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_ConsiderEmptyRouteCostsForVehicle" "', argument " "3"" of type '" "int""'");
60711 }
60712 arg3 = static_cast< int >(val3);
60713 {
60714 try {
60715 (arg1)->ConsiderEmptyRouteCostsForVehicle(arg2,arg3);
60716 }
60717 catch (Swig::DirectorException &e) {
60718 SWIG_fail;
60719 }
60720 }
60721 resultobj = SWIG_Py_Void();
60722 return resultobj;
60723fail:
60724 return NULL;
60725}
60726
60727
60729 PyObject *resultobj = 0;
60731 int arg2 ;
60732 void *argp1 = 0 ;
60733 int res1 = 0 ;
60734 int val2 ;
60735 int ecode2 = 0 ;
60736 PyObject * obj0 = 0 ;
60737 PyObject * obj1 = 0 ;
60738 bool result;
60739
60740 if (!PyArg_UnpackTuple(args, "RoutingModel_AreEmptyRouteCostsConsideredForVehicle", 2, 2, &obj0, &obj1)) SWIG_fail;
60742 if (!SWIG_IsOK(res1)) {
60743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AreEmptyRouteCostsConsideredForVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60744 }
60745 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60746 ecode2 = SWIG_AsVal_int(obj1, &val2);
60747 if (!SWIG_IsOK(ecode2)) {
60748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_AreEmptyRouteCostsConsideredForVehicle" "', argument " "2"" of type '" "int""'");
60749 }
60750 arg2 = static_cast< int >(val2);
60751 {
60752 try {
60753 result = (bool)((operations_research::RoutingModel const *)arg1)->AreEmptyRouteCostsConsideredForVehicle(arg2);
60754 }
60755 catch (Swig::DirectorException &e) {
60756 SWIG_fail;
60757 }
60758 }
60759 resultobj = SWIG_From_bool(static_cast< bool >(result));
60760 return resultobj;
60761fail:
60762 return NULL;
60763}
60764
60765
60767 PyObject *resultobj = 0;
60770 void *argp1 = 0 ;
60771 int res1 = 0 ;
60772 PyObject * obj0 = 0 ;
60773 PyObject * obj1 = 0 ;
60774
60775 if (!PyArg_UnpackTuple(args, "RoutingModel_SetFirstSolutionEvaluator", 2, 2, &obj0, &obj1)) SWIG_fail;
60777 if (!SWIG_IsOK(res1)) {
60778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SetFirstSolutionEvaluator" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60779 }
60780 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60781 {
60782 SharedPyPtr input(obj1);
60783 arg2 = [input](int64_t i, int64_t j) {
60784 return InvokePythonCallableReturning<int64_t>(input.get(), "LL", i, j);
60785 };
60786 }
60787 {
60788 try {
60789 (arg1)->SetFirstSolutionEvaluator(arg2);
60790 }
60791 catch (Swig::DirectorException &e) {
60792 SWIG_fail;
60793 }
60794 }
60795 resultobj = SWIG_Py_Void();
60796 return resultobj;
60797fail:
60798 return NULL;
60799}
60800
60801
60802SWIGINTERN PyObject *_wrap_RoutingModel_AddLocalSearchOperator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
60803 PyObject *resultobj = 0;
60806 void *argp1 = 0 ;
60807 int res1 = 0 ;
60808 void *argp2 = 0 ;
60809 int res2 = 0 ;
60810 PyObject * obj0 = 0 ;
60811 PyObject * obj1 = 0 ;
60812
60813 if (!PyArg_UnpackTuple(args, "RoutingModel_AddLocalSearchOperator", 2, 2, &obj0, &obj1)) SWIG_fail;
60815 if (!SWIG_IsOK(res1)) {
60816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddLocalSearchOperator" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60817 }
60818 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60820 if (!SWIG_IsOK(res2)) {
60821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_AddLocalSearchOperator" "', argument " "2"" of type '" "operations_research::LocalSearchOperator *""'");
60822 }
60823 arg2 = reinterpret_cast< operations_research::LocalSearchOperator * >(argp2);
60824 {
60825 try {
60826 (arg1)->AddLocalSearchOperator(arg2);
60827 }
60828 catch (Swig::DirectorException &e) {
60829 SWIG_fail;
60830 }
60831 }
60832 resultobj = SWIG_Py_Void();
60833 return resultobj;
60834fail:
60835 return NULL;
60836}
60837
60838
60839SWIGINTERN PyObject *_wrap_RoutingModel_AddSearchMonitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
60840 PyObject *resultobj = 0;
60843 void *argp1 = 0 ;
60844 int res1 = 0 ;
60845 PyObject * obj0 = 0 ;
60846 PyObject * obj1 = 0 ;
60847
60848 if (!PyArg_UnpackTuple(args, "RoutingModel_AddSearchMonitor", 2, 2, &obj0, &obj1)) SWIG_fail;
60850 if (!SWIG_IsOK(res1)) {
60851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddSearchMonitor" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60852 }
60853 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60854 {
60855 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
60856 }
60857 {
60858 try {
60859 (arg1)->AddSearchMonitor(arg2);
60860 }
60861 catch (Swig::DirectorException &e) {
60862 SWIG_fail;
60863 }
60864 }
60865 resultobj = SWIG_Py_Void();
60866 return resultobj;
60867fail:
60868 return NULL;
60869}
60870
60871
60872SWIGINTERN PyObject *_wrap_RoutingModel_AddAtSolutionCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
60873 PyObject *resultobj = 0;
60875 std::function< void () > arg2 ;
60876 void *argp1 = 0 ;
60877 int res1 = 0 ;
60878 PyObject * obj0 = 0 ;
60879 PyObject * obj1 = 0 ;
60880
60881 if (!PyArg_UnpackTuple(args, "RoutingModel_AddAtSolutionCallback", 2, 2, &obj0, &obj1)) SWIG_fail;
60883 if (!SWIG_IsOK(res1)) {
60884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddAtSolutionCallback" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60885 }
60886 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60887 {
60888 SharedPyPtr input(obj1);
60889 arg2 = [input]() {
60890 return InvokePythonCallableReturning<void>(input.get());
60891 };
60892 }
60893 {
60894 try {
60895 (arg1)->AddAtSolutionCallback(arg2);
60896 }
60897 catch (Swig::DirectorException &e) {
60898 SWIG_fail;
60899 }
60900 }
60901 resultobj = SWIG_Py_Void();
60902 return resultobj;
60903fail:
60904 return NULL;
60905}
60906
60907
60909 PyObject *resultobj = 0;
60912 void *argp1 = 0 ;
60913 int res1 = 0 ;
60914 void *argp2 = 0 ;
60915 int res2 = 0 ;
60916 PyObject * obj0 = 0 ;
60917 PyObject * obj1 = 0 ;
60918
60919 if (!PyArg_UnpackTuple(args, "RoutingModel_AddVariableMinimizedByFinalizer", 2, 2, &obj0, &obj1)) SWIG_fail;
60921 if (!SWIG_IsOK(res1)) {
60922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddVariableMinimizedByFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60923 }
60924 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60925 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
60926 if (!SWIG_IsOK(res2)) {
60927 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_AddVariableMinimizedByFinalizer" "', argument " "2"" of type '" "operations_research::IntVar *""'");
60928 }
60929 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
60930 {
60931 try {
60932 (arg1)->AddVariableMinimizedByFinalizer(arg2);
60933 }
60934 catch (Swig::DirectorException &e) {
60935 SWIG_fail;
60936 }
60937 }
60938 resultobj = SWIG_Py_Void();
60939 return resultobj;
60940fail:
60941 return NULL;
60942}
60943
60944
60946 PyObject *resultobj = 0;
60949 void *argp1 = 0 ;
60950 int res1 = 0 ;
60951 void *argp2 = 0 ;
60952 int res2 = 0 ;
60953 PyObject * obj0 = 0 ;
60954 PyObject * obj1 = 0 ;
60955
60956 if (!PyArg_UnpackTuple(args, "RoutingModel_AddVariableMaximizedByFinalizer", 2, 2, &obj0, &obj1)) SWIG_fail;
60958 if (!SWIG_IsOK(res1)) {
60959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddVariableMaximizedByFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60960 }
60961 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60962 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
60963 if (!SWIG_IsOK(res2)) {
60964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_AddVariableMaximizedByFinalizer" "', argument " "2"" of type '" "operations_research::IntVar *""'");
60965 }
60966 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
60967 {
60968 try {
60969 (arg1)->AddVariableMaximizedByFinalizer(arg2);
60970 }
60971 catch (Swig::DirectorException &e) {
60972 SWIG_fail;
60973 }
60974 }
60975 resultobj = SWIG_Py_Void();
60976 return resultobj;
60977fail:
60978 return NULL;
60979}
60980
60981
60983 PyObject *resultobj = 0;
60986 int64_t arg3 ;
60987 void *argp1 = 0 ;
60988 int res1 = 0 ;
60989 void *argp2 = 0 ;
60990 int res2 = 0 ;
60991 long val3 ;
60992 int ecode3 = 0 ;
60993 PyObject * obj0 = 0 ;
60994 PyObject * obj1 = 0 ;
60995 PyObject * obj2 = 0 ;
60996
60997 if (!PyArg_UnpackTuple(args, "RoutingModel_AddWeightedVariableMinimizedByFinalizer", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
60999 if (!SWIG_IsOK(res1)) {
61000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddWeightedVariableMinimizedByFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61001 }
61002 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61003 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
61004 if (!SWIG_IsOK(res2)) {
61005 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_AddWeightedVariableMinimizedByFinalizer" "', argument " "2"" of type '" "operations_research::IntVar *""'");
61006 }
61007 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
61008 ecode3 = SWIG_AsVal_long(obj2, &val3);
61009 if (!SWIG_IsOK(ecode3)) {
61010 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_AddWeightedVariableMinimizedByFinalizer" "', argument " "3"" of type '" "int64_t""'");
61011 }
61012 arg3 = static_cast< int64_t >(val3);
61013 {
61014 try {
61015 (arg1)->AddWeightedVariableMinimizedByFinalizer(arg2,arg3);
61016 }
61017 catch (Swig::DirectorException &e) {
61018 SWIG_fail;
61019 }
61020 }
61021 resultobj = SWIG_Py_Void();
61022 return resultobj;
61023fail:
61024 return NULL;
61025}
61026
61027
61029 PyObject *resultobj = 0;
61032 int64_t arg3 ;
61033 void *argp1 = 0 ;
61034 int res1 = 0 ;
61035 void *argp2 = 0 ;
61036 int res2 = 0 ;
61037 long val3 ;
61038 int ecode3 = 0 ;
61039 PyObject * obj0 = 0 ;
61040 PyObject * obj1 = 0 ;
61041 PyObject * obj2 = 0 ;
61042
61043 if (!PyArg_UnpackTuple(args, "RoutingModel_AddVariableTargetToFinalizer", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
61045 if (!SWIG_IsOK(res1)) {
61046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddVariableTargetToFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61047 }
61048 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61049 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_operations_research__IntVar, 0 | 0 );
61050 if (!SWIG_IsOK(res2)) {
61051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_AddVariableTargetToFinalizer" "', argument " "2"" of type '" "operations_research::IntVar *""'");
61052 }
61053 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
61054 ecode3 = SWIG_AsVal_long(obj2, &val3);
61055 if (!SWIG_IsOK(ecode3)) {
61056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_AddVariableTargetToFinalizer" "', argument " "3"" of type '" "int64_t""'");
61057 }
61058 arg3 = static_cast< int64_t >(val3);
61059 {
61060 try {
61061 (arg1)->AddVariableTargetToFinalizer(arg2,arg3);
61062 }
61063 catch (Swig::DirectorException &e) {
61064 SWIG_fail;
61065 }
61066 }
61067 resultobj = SWIG_Py_Void();
61068 return resultobj;
61069fail:
61070 return NULL;
61071}
61072
61073
61074SWIGINTERN PyObject *_wrap_RoutingModel_CloseModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61075 PyObject *resultobj = 0;
61077 void *argp1 = 0 ;
61078 int res1 = 0 ;
61079 PyObject * obj0 = 0 ;
61080
61081 if (!PyArg_UnpackTuple(args, "RoutingModel_CloseModel", 1, 1, &obj0)) SWIG_fail;
61083 if (!SWIG_IsOK(res1)) {
61084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_CloseModel" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61085 }
61086 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61087 {
61088 try {
61089 (arg1)->CloseModel();
61090 }
61091 catch (Swig::DirectorException &e) {
61092 SWIG_fail;
61093 }
61094 }
61095 resultobj = SWIG_Py_Void();
61096 return resultobj;
61097fail:
61098 return NULL;
61099}
61100
61101
61103 PyObject *resultobj = 0;
61106 void *argp1 = 0 ;
61107 int res1 = 0 ;
61108 PyObject * obj0 = 0 ;
61109 PyObject * obj1 = 0 ;
61110
61111 if (!PyArg_UnpackTuple(args, "RoutingModel_CloseModelWithParameters", 2, 2, &obj0, &obj1)) SWIG_fail;
61113 if (!SWIG_IsOK(res1)) {
61114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_CloseModelWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61115 }
61116 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61117 {
61119 PyObject* const pyresult = PyObject_CallMethod(
61120 obj1, const_cast<char*>("SerializeToString"), nullptr);
61121 if (pyresult != nullptr) {
61122 char* buffer = nullptr;
61123 Py_ssize_t length = 0;
61124 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
61125 if (buffer != nullptr) {
61126 arg2->ParseFromArray(buffer, length);
61127 }
61128 Py_DECREF(pyresult);
61129 }
61130 }
61131 {
61132 try {
61133 (arg1)->CloseModelWithParameters((operations_research::RoutingSearchParameters const &)*arg2);
61134 }
61135 catch (Swig::DirectorException &e) {
61136 SWIG_fail;
61137 }
61138 }
61139 resultobj = SWIG_Py_Void();
61140 {
61141 delete arg2;
61142 }
61143 return resultobj;
61144fail:
61145 {
61146 delete arg2;
61147 }
61148 return NULL;
61149}
61150
61151
61152SWIGINTERN PyObject *_wrap_RoutingModel_Solve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61153 PyObject *resultobj = 0;
61156 void *argp1 = 0 ;
61157 int res1 = 0 ;
61158 void *argp2 = 0 ;
61159 int res2 = 0 ;
61160 PyObject * obj0 = 0 ;
61161 PyObject * obj1 = 0 ;
61163
61164 if (!PyArg_UnpackTuple(args, "RoutingModel_Solve", 2, 2, &obj0, &obj1)) SWIG_fail;
61166 if (!SWIG_IsOK(res1)) {
61167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_Solve" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61168 }
61169 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61171 if (!SWIG_IsOK(res2)) {
61172 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_Solve" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
61173 }
61174 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
61175 {
61176 try {
61177 result = (operations_research::Assignment *)(arg1)->Solve((operations_research::Assignment const *)arg2);
61178 }
61179 catch (Swig::DirectorException &e) {
61180 SWIG_fail;
61181 }
61182 }
61184 return resultobj;
61185fail:
61186 return NULL;
61187}
61188
61189
61190SWIGINTERN PyObject *_wrap_RoutingModel_Solve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61191 PyObject *resultobj = 0;
61193 void *argp1 = 0 ;
61194 int res1 = 0 ;
61195 PyObject * obj0 = 0 ;
61197
61198 if (!PyArg_UnpackTuple(args, "RoutingModel_Solve", 1, 1, &obj0)) SWIG_fail;
61200 if (!SWIG_IsOK(res1)) {
61201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_Solve" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61202 }
61203 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61204 {
61205 try {
61206 result = (operations_research::Assignment *)(arg1)->Solve();
61207 }
61208 catch (Swig::DirectorException &e) {
61209 SWIG_fail;
61210 }
61211 }
61213 return resultobj;
61214fail:
61215 return NULL;
61216}
61217
61218
61219SWIGINTERN PyObject *_wrap_RoutingModel_Solve(PyObject *self, PyObject *args) {
61220 Py_ssize_t argc;
61221 PyObject *argv[3] = {
61222 0
61223 };
61224 Py_ssize_t ii;
61225
61226 if (!PyTuple_Check(args)) SWIG_fail;
61227 argc = PyObject_Length(args);
61228 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
61229 argv[ii] = PyTuple_GET_ITEM(args,ii);
61230 }
61231 if (argc == 1) {
61232 int _v;
61233 void *vptr = 0;
61235 _v = SWIG_CheckState(res);
61236 if (_v) {
61237 return _wrap_RoutingModel_Solve__SWIG_1(self, args);
61238 }
61239 }
61240 if (argc == 2) {
61241 int _v;
61242 void *vptr = 0;
61244 _v = SWIG_CheckState(res);
61245 if (_v) {
61246 void *vptr = 0;
61247 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
61248 _v = SWIG_CheckState(res);
61249 if (_v) {
61250 return _wrap_RoutingModel_Solve__SWIG_0(self, args);
61251 }
61252 }
61253 }
61254
61255fail:
61256 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'RoutingModel_Solve'.\n"
61257 " Possible C/C++ prototypes are:\n"
61258 " operations_research::RoutingModel::Solve(operations_research::Assignment const *)\n"
61259 " operations_research::RoutingModel::Solve()\n");
61260 return 0;
61261}
61262
61263
61265 PyObject *resultobj = 0;
61268 std::vector< operations_research::Assignment const * > *arg3 = (std::vector< operations_research::Assignment const * > *) 0 ;
61269 void *argp1 = 0 ;
61270 int res1 = 0 ;
61271 void *argp3 = 0 ;
61272 int res3 = 0 ;
61273 PyObject * obj0 = 0 ;
61274 PyObject * obj1 = 0 ;
61275 PyObject * obj2 = 0 ;
61277
61278 if (!PyArg_UnpackTuple(args, "RoutingModel_SolveWithParameters", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
61280 if (!SWIG_IsOK(res1)) {
61281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SolveWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61282 }
61283 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61284 {
61286 PyObject* const pyresult = PyObject_CallMethod(
61287 obj1, const_cast<char*>("SerializeToString"), nullptr);
61288 if (pyresult != nullptr) {
61289 char* buffer = nullptr;
61290 Py_ssize_t length = 0;
61291 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
61292 if (buffer != nullptr) {
61293 arg2->ParseFromArray(buffer, length);
61294 }
61295 Py_DECREF(pyresult);
61296 }
61297 }
61299 if (!SWIG_IsOK(res3)) {
61300 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RoutingModel_SolveWithParameters" "', argument " "3"" of type '" "std::vector< operations_research::Assignment const * > *""'");
61301 }
61302 arg3 = reinterpret_cast< std::vector< operations_research::Assignment const * > * >(argp3);
61303 {
61304 try {
61305 result = (operations_research::Assignment *)(arg1)->SolveWithParameters((operations_research::RoutingSearchParameters const &)*arg2,arg3);
61306 }
61307 catch (Swig::DirectorException &e) {
61308 SWIG_fail;
61309 }
61310 }
61312 {
61313 delete arg2;
61314 }
61315 return resultobj;
61316fail:
61317 {
61318 delete arg2;
61319 }
61320 return NULL;
61321}
61322
61323
61325 PyObject *resultobj = 0;
61328 void *argp1 = 0 ;
61329 int res1 = 0 ;
61330 PyObject * obj0 = 0 ;
61331 PyObject * obj1 = 0 ;
61333
61334 if (!PyArg_UnpackTuple(args, "RoutingModel_SolveWithParameters", 2, 2, &obj0, &obj1)) SWIG_fail;
61336 if (!SWIG_IsOK(res1)) {
61337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SolveWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61338 }
61339 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61340 {
61342 PyObject* const pyresult = PyObject_CallMethod(
61343 obj1, const_cast<char*>("SerializeToString"), nullptr);
61344 if (pyresult != nullptr) {
61345 char* buffer = nullptr;
61346 Py_ssize_t length = 0;
61347 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
61348 if (buffer != nullptr) {
61349 arg2->ParseFromArray(buffer, length);
61350 }
61351 Py_DECREF(pyresult);
61352 }
61353 }
61354 {
61355 try {
61356 result = (operations_research::Assignment *)(arg1)->SolveWithParameters((operations_research::RoutingSearchParameters const &)*arg2);
61357 }
61358 catch (Swig::DirectorException &e) {
61359 SWIG_fail;
61360 }
61361 }
61363 {
61364 delete arg2;
61365 }
61366 return resultobj;
61367fail:
61368 {
61369 delete arg2;
61370 }
61371 return NULL;
61372}
61373
61374
61375SWIGINTERN PyObject *_wrap_RoutingModel_SolveWithParameters(PyObject *self, PyObject *args) {
61376 Py_ssize_t argc;
61377 PyObject *argv[4] = {
61378 0
61379 };
61380 Py_ssize_t ii;
61381
61382 if (!PyTuple_Check(args)) SWIG_fail;
61383 argc = PyObject_Length(args);
61384 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
61385 argv[ii] = PyTuple_GET_ITEM(args,ii);
61386 }
61387 if (argc == 2) {
61388 int _v;
61389 void *vptr = 0;
61391 _v = SWIG_CheckState(res);
61392 if (_v) {
61393 {
61394 bool ok = false;
61395 PyObject* const module = PyImport_ImportModule("ortools.constraint_solver.routing_parameters_pb2");
61396 if (module != nullptr) {
61397 PyObject* const dict = PyModule_GetDict(module);
61398 if (dict != nullptr) {
61399 PyObject* const clss = PyDict_GetItemString(dict, "RoutingSearchParameters");
61400 if (clss != nullptr) {
61401 if (PyObject_IsInstance(argv[1], clss)) {
61402 ok = true;
61403 }
61404 }
61405 }
61406 Py_DECREF(module);
61407 }
61408 _v = ok ? 1 : 0;
61409 }
61410 if (_v) {
61412 }
61413 }
61414 }
61415 if (argc == 3) {
61416 int _v;
61417 void *vptr = 0;
61419 _v = SWIG_CheckState(res);
61420 if (_v) {
61421 {
61422 bool ok = false;
61423 PyObject* const module = PyImport_ImportModule("ortools.constraint_solver.routing_parameters_pb2");
61424 if (module != nullptr) {
61425 PyObject* const dict = PyModule_GetDict(module);
61426 if (dict != nullptr) {
61427 PyObject* const clss = PyDict_GetItemString(dict, "RoutingSearchParameters");
61428 if (clss != nullptr) {
61429 if (PyObject_IsInstance(argv[1], clss)) {
61430 ok = true;
61431 }
61432 }
61433 }
61434 Py_DECREF(module);
61435 }
61436 _v = ok ? 1 : 0;
61437 }
61438 if (_v) {
61439 void *vptr = 0;
61441 _v = SWIG_CheckState(res);
61442 if (_v) {
61444 }
61445 }
61446 }
61447 }
61448
61449fail:
61450 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'RoutingModel_SolveWithParameters'.\n"
61451 " Possible C/C++ prototypes are:\n"
61452 " operations_research::RoutingModel::SolveWithParameters(operations_research::RoutingSearchParameters const &,std::vector< operations_research::Assignment const * > *)\n"
61453 " operations_research::RoutingModel::SolveWithParameters(operations_research::RoutingSearchParameters const &)\n");
61454 return 0;
61455}
61456
61457
61459 PyObject *resultobj = 0;
61463 std::vector< operations_research::Assignment const * > *arg4 = (std::vector< operations_research::Assignment const * > *) 0 ;
61464 void *argp1 = 0 ;
61465 int res1 = 0 ;
61466 void *argp2 = 0 ;
61467 int res2 = 0 ;
61468 void *argp4 = 0 ;
61469 int res4 = 0 ;
61470 PyObject * obj0 = 0 ;
61471 PyObject * obj1 = 0 ;
61472 PyObject * obj2 = 0 ;
61473 PyObject * obj3 = 0 ;
61475
61476 if (!PyArg_UnpackTuple(args, "RoutingModel_SolveFromAssignmentWithParameters", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
61478 if (!SWIG_IsOK(res1)) {
61479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SolveFromAssignmentWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61480 }
61481 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61483 if (!SWIG_IsOK(res2)) {
61484 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_SolveFromAssignmentWithParameters" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
61485 }
61486 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
61487 {
61489 PyObject* const pyresult = PyObject_CallMethod(
61490 obj2, const_cast<char*>("SerializeToString"), nullptr);
61491 if (pyresult != nullptr) {
61492 char* buffer = nullptr;
61493 Py_ssize_t length = 0;
61494 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
61495 if (buffer != nullptr) {
61496 arg3->ParseFromArray(buffer, length);
61497 }
61498 Py_DECREF(pyresult);
61499 }
61500 }
61502 if (!SWIG_IsOK(res4)) {
61503 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RoutingModel_SolveFromAssignmentWithParameters" "', argument " "4"" of type '" "std::vector< operations_research::Assignment const * > *""'");
61504 }
61505 arg4 = reinterpret_cast< std::vector< operations_research::Assignment const * > * >(argp4);
61506 {
61507 try {
61508 result = (operations_research::Assignment *)(arg1)->SolveFromAssignmentWithParameters((operations_research::Assignment const *)arg2,(operations_research::RoutingSearchParameters const &)*arg3,arg4);
61509 }
61510 catch (Swig::DirectorException &e) {
61511 SWIG_fail;
61512 }
61513 }
61515 {
61516 delete arg3;
61517 }
61518 return resultobj;
61519fail:
61520 {
61521 delete arg3;
61522 }
61523 return NULL;
61524}
61525
61526
61528 PyObject *resultobj = 0;
61532 void *argp1 = 0 ;
61533 int res1 = 0 ;
61534 void *argp2 = 0 ;
61535 int res2 = 0 ;
61536 PyObject * obj0 = 0 ;
61537 PyObject * obj1 = 0 ;
61538 PyObject * obj2 = 0 ;
61540
61541 if (!PyArg_UnpackTuple(args, "RoutingModel_SolveFromAssignmentWithParameters", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
61543 if (!SWIG_IsOK(res1)) {
61544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SolveFromAssignmentWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61545 }
61546 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61548 if (!SWIG_IsOK(res2)) {
61549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_SolveFromAssignmentWithParameters" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
61550 }
61551 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
61552 {
61554 PyObject* const pyresult = PyObject_CallMethod(
61555 obj2, const_cast<char*>("SerializeToString"), nullptr);
61556 if (pyresult != nullptr) {
61557 char* buffer = nullptr;
61558 Py_ssize_t length = 0;
61559 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
61560 if (buffer != nullptr) {
61561 arg3->ParseFromArray(buffer, length);
61562 }
61563 Py_DECREF(pyresult);
61564 }
61565 }
61566 {
61567 try {
61568 result = (operations_research::Assignment *)(arg1)->SolveFromAssignmentWithParameters((operations_research::Assignment const *)arg2,(operations_research::RoutingSearchParameters const &)*arg3);
61569 }
61570 catch (Swig::DirectorException &e) {
61571 SWIG_fail;
61572 }
61573 }
61575 {
61576 delete arg3;
61577 }
61578 return resultobj;
61579fail:
61580 {
61581 delete arg3;
61582 }
61583 return NULL;
61584}
61585
61586
61587SWIGINTERN PyObject *_wrap_RoutingModel_SolveFromAssignmentWithParameters(PyObject *self, PyObject *args) {
61588 Py_ssize_t argc;
61589 PyObject *argv[5] = {
61590 0
61591 };
61592 Py_ssize_t ii;
61593
61594 if (!PyTuple_Check(args)) SWIG_fail;
61595 argc = PyObject_Length(args);
61596 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
61597 argv[ii] = PyTuple_GET_ITEM(args,ii);
61598 }
61599 if (argc == 3) {
61600 int _v;
61601 void *vptr = 0;
61603 _v = SWIG_CheckState(res);
61604 if (_v) {
61605 void *vptr = 0;
61606 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
61607 _v = SWIG_CheckState(res);
61608 if (_v) {
61609 {
61610 bool ok = false;
61611 PyObject* const module = PyImport_ImportModule("ortools.constraint_solver.routing_parameters_pb2");
61612 if (module != nullptr) {
61613 PyObject* const dict = PyModule_GetDict(module);
61614 if (dict != nullptr) {
61615 PyObject* const clss = PyDict_GetItemString(dict, "RoutingSearchParameters");
61616 if (clss != nullptr) {
61617 if (PyObject_IsInstance(argv[2], clss)) {
61618 ok = true;
61619 }
61620 }
61621 }
61622 Py_DECREF(module);
61623 }
61624 _v = ok ? 1 : 0;
61625 }
61626 if (_v) {
61628 }
61629 }
61630 }
61631 }
61632 if (argc == 4) {
61633 int _v;
61634 void *vptr = 0;
61636 _v = SWIG_CheckState(res);
61637 if (_v) {
61638 void *vptr = 0;
61639 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_operations_research__Assignment, 0);
61640 _v = SWIG_CheckState(res);
61641 if (_v) {
61642 {
61643 bool ok = false;
61644 PyObject* const module = PyImport_ImportModule("ortools.constraint_solver.routing_parameters_pb2");
61645 if (module != nullptr) {
61646 PyObject* const dict = PyModule_GetDict(module);
61647 if (dict != nullptr) {
61648 PyObject* const clss = PyDict_GetItemString(dict, "RoutingSearchParameters");
61649 if (clss != nullptr) {
61650 if (PyObject_IsInstance(argv[2], clss)) {
61651 ok = true;
61652 }
61653 }
61654 }
61655 Py_DECREF(module);
61656 }
61657 _v = ok ? 1 : 0;
61658 }
61659 if (_v) {
61660 void *vptr = 0;
61662 _v = SWIG_CheckState(res);
61663 if (_v) {
61665 }
61666 }
61667 }
61668 }
61669 }
61670
61671fail:
61672 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'RoutingModel_SolveFromAssignmentWithParameters'.\n"
61673 " Possible C/C++ prototypes are:\n"
61674 " operations_research::RoutingModel::SolveFromAssignmentWithParameters(operations_research::Assignment const *,operations_research::RoutingSearchParameters const &,std::vector< operations_research::Assignment const * > *)\n"
61675 " operations_research::RoutingModel::SolveFromAssignmentWithParameters(operations_research::Assignment const *,operations_research::RoutingSearchParameters const &)\n");
61676 return 0;
61677}
61678
61679
61681 PyObject *resultobj = 0;
61683 std::vector< operations_research::Assignment const * > *arg2 = 0 ;
61685 std::vector< operations_research::Assignment const * > *arg4 = (std::vector< operations_research::Assignment const * > *) 0 ;
61686 void *argp1 = 0 ;
61687 int res1 = 0 ;
61688 void *argp2 = 0 ;
61689 int res2 = 0 ;
61690 void *argp4 = 0 ;
61691 int res4 = 0 ;
61692 PyObject * obj0 = 0 ;
61693 PyObject * obj1 = 0 ;
61694 PyObject * obj2 = 0 ;
61695 PyObject * obj3 = 0 ;
61697
61698 if (!PyArg_UnpackTuple(args, "RoutingModel_SolveFromAssignmentsWithParameters", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
61700 if (!SWIG_IsOK(res1)) {
61701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61702 }
61703 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61705 if (!SWIG_IsOK(res2)) {
61706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "2"" of type '" "std::vector< operations_research::Assignment const * > const &""'");
61707 }
61708 if (!argp2) {
61709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "2"" of type '" "std::vector< operations_research::Assignment const * > const &""'");
61710 }
61711 arg2 = reinterpret_cast< std::vector< operations_research::Assignment const * > * >(argp2);
61712 {
61714 PyObject* const pyresult = PyObject_CallMethod(
61715 obj2, const_cast<char*>("SerializeToString"), nullptr);
61716 if (pyresult != nullptr) {
61717 char* buffer = nullptr;
61718 Py_ssize_t length = 0;
61719 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
61720 if (buffer != nullptr) {
61721 arg3->ParseFromArray(buffer, length);
61722 }
61723 Py_DECREF(pyresult);
61724 }
61725 }
61727 if (!SWIG_IsOK(res4)) {
61728 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "4"" of type '" "std::vector< operations_research::Assignment const * > *""'");
61729 }
61730 arg4 = reinterpret_cast< std::vector< operations_research::Assignment const * > * >(argp4);
61731 {
61732 try {
61733 result = (operations_research::Assignment *)(arg1)->SolveFromAssignmentsWithParameters((std::vector< operations_research::Assignment const * > const &)*arg2,(operations_research::RoutingSearchParameters const &)*arg3,arg4);
61734 }
61735 catch (Swig::DirectorException &e) {
61736 SWIG_fail;
61737 }
61738 }
61740 {
61741 delete arg3;
61742 }
61743 return resultobj;
61744fail:
61745 {
61746 delete arg3;
61747 }
61748 return NULL;
61749}
61750
61751
61753 PyObject *resultobj = 0;
61755 std::vector< operations_research::Assignment const * > *arg2 = 0 ;
61757 void *argp1 = 0 ;
61758 int res1 = 0 ;
61759 void *argp2 = 0 ;
61760 int res2 = 0 ;
61761 PyObject * obj0 = 0 ;
61762 PyObject * obj1 = 0 ;
61763 PyObject * obj2 = 0 ;
61765
61766 if (!PyArg_UnpackTuple(args, "RoutingModel_SolveFromAssignmentsWithParameters", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
61768 if (!SWIG_IsOK(res1)) {
61769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61770 }
61771 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61773 if (!SWIG_IsOK(res2)) {
61774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "2"" of type '" "std::vector< operations_research::Assignment const * > const &""'");
61775 }
61776 if (!argp2) {
61777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "2"" of type '" "std::vector< operations_research::Assignment const * > const &""'");
61778 }
61779 arg2 = reinterpret_cast< std::vector< operations_research::Assignment const * > * >(argp2);
61780 {
61782 PyObject* const pyresult = PyObject_CallMethod(
61783 obj2, const_cast<char*>("SerializeToString"), nullptr);
61784 if (pyresult != nullptr) {
61785 char* buffer = nullptr;
61786 Py_ssize_t length = 0;
61787 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
61788 if (buffer != nullptr) {
61789 arg3->ParseFromArray(buffer, length);
61790 }
61791 Py_DECREF(pyresult);
61792 }
61793 }
61794 {
61795 try {
61796 result = (operations_research::Assignment *)(arg1)->SolveFromAssignmentsWithParameters((std::vector< operations_research::Assignment const * > const &)*arg2,(operations_research::RoutingSearchParameters const &)*arg3);
61797 }
61798 catch (Swig::DirectorException &e) {
61799 SWIG_fail;
61800 }
61801 }
61803 {
61804 delete arg3;
61805 }
61806 return resultobj;
61807fail:
61808 {
61809 delete arg3;
61810 }
61811 return NULL;
61812}
61813
61814
61816 Py_ssize_t argc;
61817 PyObject *argv[5] = {
61818 0
61819 };
61820 Py_ssize_t ii;
61821
61822 if (!PyTuple_Check(args)) SWIG_fail;
61823 argc = PyObject_Length(args);
61824 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
61825 argv[ii] = PyTuple_GET_ITEM(args,ii);
61826 }
61827 if (argc == 3) {
61828 int _v;
61829 void *vptr = 0;
61831 _v = SWIG_CheckState(res);
61832 if (_v) {
61834 _v = SWIG_CheckState(res);
61835 if (_v) {
61836 {
61837 bool ok = false;
61838 PyObject* const module = PyImport_ImportModule("ortools.constraint_solver.routing_parameters_pb2");
61839 if (module != nullptr) {
61840 PyObject* const dict = PyModule_GetDict(module);
61841 if (dict != nullptr) {
61842 PyObject* const clss = PyDict_GetItemString(dict, "RoutingSearchParameters");
61843 if (clss != nullptr) {
61844 if (PyObject_IsInstance(argv[2], clss)) {
61845 ok = true;
61846 }
61847 }
61848 }
61849 Py_DECREF(module);
61850 }
61851 _v = ok ? 1 : 0;
61852 }
61853 if (_v) {
61855 }
61856 }
61857 }
61858 }
61859 if (argc == 4) {
61860 int _v;
61861 void *vptr = 0;
61863 _v = SWIG_CheckState(res);
61864 if (_v) {
61866 _v = SWIG_CheckState(res);
61867 if (_v) {
61868 {
61869 bool ok = false;
61870 PyObject* const module = PyImport_ImportModule("ortools.constraint_solver.routing_parameters_pb2");
61871 if (module != nullptr) {
61872 PyObject* const dict = PyModule_GetDict(module);
61873 if (dict != nullptr) {
61874 PyObject* const clss = PyDict_GetItemString(dict, "RoutingSearchParameters");
61875 if (clss != nullptr) {
61876 if (PyObject_IsInstance(argv[2], clss)) {
61877 ok = true;
61878 }
61879 }
61880 }
61881 Py_DECREF(module);
61882 }
61883 _v = ok ? 1 : 0;
61884 }
61885 if (_v) {
61886 void *vptr = 0;
61888 _v = SWIG_CheckState(res);
61889 if (_v) {
61891 }
61892 }
61893 }
61894 }
61895 }
61896
61897fail:
61898 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'RoutingModel_SolveFromAssignmentsWithParameters'.\n"
61899 " Possible C/C++ prototypes are:\n"
61900 " operations_research::RoutingModel::SolveFromAssignmentsWithParameters(std::vector< operations_research::Assignment const * > const &,operations_research::RoutingSearchParameters const &,std::vector< operations_research::Assignment const * > *)\n"
61901 " operations_research::RoutingModel::SolveFromAssignmentsWithParameters(std::vector< operations_research::Assignment const * > const &,operations_research::RoutingSearchParameters const &)\n");
61902 return 0;
61903}
61904
61905
61907 PyObject *resultobj = 0;
61912 void *argp1 = 0 ;
61913 int res1 = 0 ;
61914 void *argp2 = 0 ;
61915 int res2 = 0 ;
61916 void *argp3 = 0 ;
61917 int res3 = 0 ;
61918 void *argp4 = 0 ;
61919 int res4 = 0 ;
61920 PyObject * obj0 = 0 ;
61921 PyObject * obj1 = 0 ;
61922 PyObject * obj2 = 0 ;
61923 PyObject * obj3 = 0 ;
61924
61925 if (!PyArg_UnpackTuple(args, "RoutingModel_SetAssignmentFromOtherModelAssignment", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
61927 if (!SWIG_IsOK(res1)) {
61928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_SetAssignmentFromOtherModelAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61929 }
61930 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61932 if (!SWIG_IsOK(res2)) {
61933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_SetAssignmentFromOtherModelAssignment" "', argument " "2"" of type '" "operations_research::Assignment *""'");
61934 }
61935 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
61937 if (!SWIG_IsOK(res3)) {
61938 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RoutingModel_SetAssignmentFromOtherModelAssignment" "', argument " "3"" of type '" "operations_research::RoutingModel const *""'");
61939 }
61940 arg3 = reinterpret_cast< operations_research::RoutingModel * >(argp3);
61942 if (!SWIG_IsOK(res4)) {
61943 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RoutingModel_SetAssignmentFromOtherModelAssignment" "', argument " "4"" of type '" "operations_research::Assignment const *""'");
61944 }
61945 arg4 = reinterpret_cast< operations_research::Assignment * >(argp4);
61946 {
61947 try {
61948 (arg1)->SetAssignmentFromOtherModelAssignment(arg2,(operations_research::RoutingModel const *)arg3,(operations_research::Assignment const *)arg4);
61949 }
61950 catch (Swig::DirectorException &e) {
61951 SWIG_fail;
61952 }
61953 }
61954 resultobj = SWIG_Py_Void();
61955 return resultobj;
61956fail:
61957 return NULL;
61958}
61959
61960
61961SWIGINTERN PyObject *_wrap_RoutingModel_ComputeLowerBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61962 PyObject *resultobj = 0;
61964 void *argp1 = 0 ;
61965 int res1 = 0 ;
61966 PyObject * obj0 = 0 ;
61967 int64_t result;
61968
61969 if (!PyArg_UnpackTuple(args, "RoutingModel_ComputeLowerBound", 1, 1, &obj0)) SWIG_fail;
61971 if (!SWIG_IsOK(res1)) {
61972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_ComputeLowerBound" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61973 }
61974 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61975 {
61976 try {
61977 result = (int64_t)(arg1)->ComputeLowerBound();
61978 }
61979 catch (Swig::DirectorException &e) {
61980 SWIG_fail;
61981 }
61982 }
61983 resultobj = SWIG_From_long(static_cast< long >(result));
61984 return resultobj;
61985fail:
61986 return NULL;
61987}
61988
61989
61990SWIGINTERN PyObject *_wrap_RoutingModel_status(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61991 PyObject *resultobj = 0;
61993 void *argp1 = 0 ;
61994 int res1 = 0 ;
61995 PyObject * obj0 = 0 ;
61997
61998 if (!PyArg_UnpackTuple(args, "RoutingModel_status", 1, 1, &obj0)) SWIG_fail;
62000 if (!SWIG_IsOK(res1)) {
62001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_status" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62002 }
62003 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62004 {
62005 try {
62007 }
62008 catch (Swig::DirectorException &e) {
62009 SWIG_fail;
62010 }
62011 }
62012 resultobj = SWIG_From_int(static_cast< int >(result));
62013 return resultobj;
62014fail:
62015 return NULL;
62016}
62017
62018
62019SWIGINTERN PyObject *_wrap_RoutingModel_ApplyLocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62020 PyObject *resultobj = 0;
62022 std::vector< int64_t > *arg2 = 0 ;
62023 void *argp1 = 0 ;
62024 int res1 = 0 ;
62025 std::vector< int64_t > temp2 ;
62026 PyObject * obj0 = 0 ;
62027 PyObject * obj1 = 0 ;
62028 operations_research::IntVar *result = 0 ;
62029
62030 if (!PyArg_UnpackTuple(args, "RoutingModel_ApplyLocks", 2, 2, &obj0, &obj1)) SWIG_fail;
62032 if (!SWIG_IsOK(res1)) {
62033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_ApplyLocks" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62034 }
62035 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62036 {
62037 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
62038 if (!PyErr_Occurred())
62039 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
62040 return NULL;
62041 }
62042 arg2 = &temp2;
62043 }
62044 {
62045 try {
62046 result = (operations_research::IntVar *)(arg1)->ApplyLocks((std::vector< int64_t > const &)*arg2);
62047 }
62048 catch (Swig::DirectorException &e) {
62049 SWIG_fail;
62050 }
62051 }
62053 return resultobj;
62054fail:
62055 return NULL;
62056}
62057
62058
62060 PyObject *resultobj = 0;
62062 std::vector< std::vector< int64_t > > *arg2 = 0 ;
62063 bool arg3 ;
62064 void *argp1 = 0 ;
62065 int res1 = 0 ;
62066 std::vector< std::vector< int64_t > > temp2 ;
62067 bool val3 ;
62068 int ecode3 = 0 ;
62069 PyObject * obj0 = 0 ;
62070 PyObject * obj1 = 0 ;
62071 PyObject * obj2 = 0 ;
62072 bool result;
62073
62074 if (!PyArg_UnpackTuple(args, "RoutingModel_ApplyLocksToAllVehicles", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
62076 if (!SWIG_IsOK(res1)) {
62077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_ApplyLocksToAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62078 }
62079 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62080 {
62081 if (!PyList_Check(obj1)) {
62082 PyErr_SetString(PyExc_TypeError, "Expecting a list of tuples");
62083 SWIG_fail;
62084 }
62085 int len = PyList_Size(obj1);
62086 int arity = -1;
62087 if (len > 0) {
62088 temp2.resize(len);
62089 for (size_t i = 0; i < len; ++i) {
62090 PyObject *tuple = PyList_GetItem(obj1, i);
62091 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
62092 PyErr_SetString(PyExc_TypeError, "Expecting a sequence");
62093 SWIG_fail;
62094 }
62095 bool is_tuple = PyTuple_Check(tuple);
62096 int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
62097 temp2[i].resize(arity);
62098 for (size_t j = 0; j < arity; ++j) {
62099 bool success = PyObjAs<int64_t>(
62100 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j),
62101 &temp2[i][j]);
62102 if (!success) {
62103 SWIG_fail;
62104 }
62105 }
62106 }
62107 }
62108 arg2 = &temp2;
62109 }
62110 ecode3 = SWIG_AsVal_bool(obj2, &val3);
62111 if (!SWIG_IsOK(ecode3)) {
62112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_ApplyLocksToAllVehicles" "', argument " "3"" of type '" "bool""'");
62113 }
62114 arg3 = static_cast< bool >(val3);
62115 {
62116 try {
62117 result = (bool)(arg1)->ApplyLocksToAllVehicles((std::vector< std::vector< int64_t > > const &)*arg2,arg3);
62118 }
62119 catch (Swig::DirectorException &e) {
62120 SWIG_fail;
62121 }
62122 }
62123 resultobj = SWIG_From_bool(static_cast< bool >(result));
62124 return resultobj;
62125fail:
62126 return NULL;
62127}
62128
62129
62130SWIGINTERN PyObject *_wrap_RoutingModel_PreAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62131 PyObject *resultobj = 0;
62133 void *argp1 = 0 ;
62134 int res1 = 0 ;
62135 PyObject * obj0 = 0 ;
62137
62138 if (!PyArg_UnpackTuple(args, "RoutingModel_PreAssignment", 1, 1, &obj0)) SWIG_fail;
62140 if (!SWIG_IsOK(res1)) {
62141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_PreAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62142 }
62143 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62144 {
62145 try {
62146 result = (operations_research::Assignment *)((operations_research::RoutingModel const *)arg1)->PreAssignment();
62147 }
62148 catch (Swig::DirectorException &e) {
62149 SWIG_fail;
62150 }
62151 }
62153 return resultobj;
62154fail:
62155 return NULL;
62156}
62157
62158
62159SWIGINTERN PyObject *_wrap_RoutingModel_MutablePreAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62160 PyObject *resultobj = 0;
62162 void *argp1 = 0 ;
62163 int res1 = 0 ;
62164 PyObject * obj0 = 0 ;
62166
62167 if (!PyArg_UnpackTuple(args, "RoutingModel_MutablePreAssignment", 1, 1, &obj0)) SWIG_fail;
62169 if (!SWIG_IsOK(res1)) {
62170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_MutablePreAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62171 }
62172 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62173 {
62174 try {
62175 result = (operations_research::Assignment *)(arg1)->MutablePreAssignment();
62176 }
62177 catch (Swig::DirectorException &e) {
62178 SWIG_fail;
62179 }
62180 }
62182 return resultobj;
62183fail:
62184 return NULL;
62185}
62186
62187
62188SWIGINTERN PyObject *_wrap_RoutingModel_WriteAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62189 PyObject *resultobj = 0;
62191 std::string *arg2 = 0 ;
62192 void *argp1 = 0 ;
62193 int res1 = 0 ;
62194 int res2 = SWIG_OLDOBJ ;
62195 PyObject * obj0 = 0 ;
62196 PyObject * obj1 = 0 ;
62197 bool result;
62198
62199 if (!PyArg_UnpackTuple(args, "RoutingModel_WriteAssignment", 2, 2, &obj0, &obj1)) SWIG_fail;
62201 if (!SWIG_IsOK(res1)) {
62202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_WriteAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62203 }
62204 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62205 {
62206 std::string *ptr = (std::string *)0;
62207 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
62208 if (!SWIG_IsOK(res2)) {
62209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_WriteAssignment" "', argument " "2"" of type '" "std::string const &""'");
62210 }
62211 if (!ptr) {
62212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_WriteAssignment" "', argument " "2"" of type '" "std::string const &""'");
62213 }
62214 arg2 = ptr;
62215 }
62216 {
62217 try {
62218 result = (bool)((operations_research::RoutingModel const *)arg1)->WriteAssignment((std::string const &)*arg2);
62219 }
62220 catch (Swig::DirectorException &e) {
62221 SWIG_fail;
62222 }
62223 }
62224 resultobj = SWIG_From_bool(static_cast< bool >(result));
62225 if (SWIG_IsNewObj(res2)) delete arg2;
62226 return resultobj;
62227fail:
62228 if (SWIG_IsNewObj(res2)) delete arg2;
62229 return NULL;
62230}
62231
62232
62233SWIGINTERN PyObject *_wrap_RoutingModel_ReadAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62234 PyObject *resultobj = 0;
62236 std::string *arg2 = 0 ;
62237 void *argp1 = 0 ;
62238 int res1 = 0 ;
62239 int res2 = SWIG_OLDOBJ ;
62240 PyObject * obj0 = 0 ;
62241 PyObject * obj1 = 0 ;
62243
62244 if (!PyArg_UnpackTuple(args, "RoutingModel_ReadAssignment", 2, 2, &obj0, &obj1)) SWIG_fail;
62246 if (!SWIG_IsOK(res1)) {
62247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_ReadAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62248 }
62249 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62250 {
62251 std::string *ptr = (std::string *)0;
62252 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
62253 if (!SWIG_IsOK(res2)) {
62254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_ReadAssignment" "', argument " "2"" of type '" "std::string const &""'");
62255 }
62256 if (!ptr) {
62257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_ReadAssignment" "', argument " "2"" of type '" "std::string const &""'");
62258 }
62259 arg2 = ptr;
62260 }
62261 {
62262 try {
62263 result = (operations_research::Assignment *)(arg1)->ReadAssignment((std::string const &)*arg2);
62264 }
62265 catch (Swig::DirectorException &e) {
62266 SWIG_fail;
62267 }
62268 }
62270 if (SWIG_IsNewObj(res2)) delete arg2;
62271 return resultobj;
62272fail:
62273 if (SWIG_IsNewObj(res2)) delete arg2;
62274 return NULL;
62275}
62276
62277
62278SWIGINTERN PyObject *_wrap_RoutingModel_RestoreAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62279 PyObject *resultobj = 0;
62282 void *argp1 = 0 ;
62283 int res1 = 0 ;
62284 void *argp2 = 0 ;
62285 int res2 = 0 ;
62286 PyObject * obj0 = 0 ;
62287 PyObject * obj1 = 0 ;
62289
62290 if (!PyArg_UnpackTuple(args, "RoutingModel_RestoreAssignment", 2, 2, &obj0, &obj1)) SWIG_fail;
62292 if (!SWIG_IsOK(res1)) {
62293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_RestoreAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62294 }
62295 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62297 if (!SWIG_IsOK(res2)) {
62298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_RestoreAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62299 }
62300 if (!argp2) {
62301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_RestoreAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62302 }
62303 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
62304 {
62305 try {
62306 result = (operations_research::Assignment *)(arg1)->RestoreAssignment((operations_research::Assignment const &)*arg2);
62307 }
62308 catch (Swig::DirectorException &e) {
62309 SWIG_fail;
62310 }
62311 }
62313 return resultobj;
62314fail:
62315 return NULL;
62316}
62317
62318
62320 PyObject *resultobj = 0;
62322 std::vector< std::vector< int64_t > > *arg2 = 0 ;
62323 bool arg3 ;
62324 void *argp1 = 0 ;
62325 int res1 = 0 ;
62326 std::vector< std::vector< int64_t > > temp2 ;
62327 bool val3 ;
62328 int ecode3 = 0 ;
62329 PyObject * obj0 = 0 ;
62330 PyObject * obj1 = 0 ;
62331 PyObject * obj2 = 0 ;
62333
62334 if (!PyArg_UnpackTuple(args, "RoutingModel_ReadAssignmentFromRoutes", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
62336 if (!SWIG_IsOK(res1)) {
62337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_ReadAssignmentFromRoutes" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62338 }
62339 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62340 {
62341 if (!PyList_Check(obj1)) {
62342 PyErr_SetString(PyExc_TypeError, "Expecting a list of tuples");
62343 SWIG_fail;
62344 }
62345 int len = PyList_Size(obj1);
62346 int arity = -1;
62347 if (len > 0) {
62348 temp2.resize(len);
62349 for (size_t i = 0; i < len; ++i) {
62350 PyObject *tuple = PyList_GetItem(obj1, i);
62351 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
62352 PyErr_SetString(PyExc_TypeError, "Expecting a sequence");
62353 SWIG_fail;
62354 }
62355 bool is_tuple = PyTuple_Check(tuple);
62356 int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
62357 temp2[i].resize(arity);
62358 for (size_t j = 0; j < arity; ++j) {
62359 bool success = PyObjAs<int64_t>(
62360 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j),
62361 &temp2[i][j]);
62362 if (!success) {
62363 SWIG_fail;
62364 }
62365 }
62366 }
62367 }
62368 arg2 = &temp2;
62369 }
62370 ecode3 = SWIG_AsVal_bool(obj2, &val3);
62371 if (!SWIG_IsOK(ecode3)) {
62372 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_ReadAssignmentFromRoutes" "', argument " "3"" of type '" "bool""'");
62373 }
62374 arg3 = static_cast< bool >(val3);
62375 {
62376 try {
62377 result = (operations_research::Assignment *)(arg1)->ReadAssignmentFromRoutes((std::vector< std::vector< int64_t > > const &)*arg2,arg3);
62378 }
62379 catch (Swig::DirectorException &e) {
62380 SWIG_fail;
62381 }
62382 }
62384 return resultobj;
62385fail:
62386 return NULL;
62387}
62388
62389
62390SWIGINTERN PyObject *_wrap_RoutingModel_RoutesToAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62391 PyObject *resultobj = 0;
62393 std::vector< std::vector< int64_t > > *arg2 = 0 ;
62394 bool arg3 ;
62395 bool arg4 ;
62397 void *argp1 = 0 ;
62398 int res1 = 0 ;
62399 std::vector< std::vector< int64_t > > temp2 ;
62400 bool val3 ;
62401 int ecode3 = 0 ;
62402 bool val4 ;
62403 int ecode4 = 0 ;
62404 void *argp5 = 0 ;
62405 int res5 = 0 ;
62406 PyObject * obj0 = 0 ;
62407 PyObject * obj1 = 0 ;
62408 PyObject * obj2 = 0 ;
62409 PyObject * obj3 = 0 ;
62410 PyObject * obj4 = 0 ;
62411 bool result;
62412
62413 if (!PyArg_UnpackTuple(args, "RoutingModel_RoutesToAssignment", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
62415 if (!SWIG_IsOK(res1)) {
62416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_RoutesToAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62417 }
62418 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62419 {
62420 if (!PyList_Check(obj1)) {
62421 PyErr_SetString(PyExc_TypeError, "Expecting a list of tuples");
62422 SWIG_fail;
62423 }
62424 int len = PyList_Size(obj1);
62425 int arity = -1;
62426 if (len > 0) {
62427 temp2.resize(len);
62428 for (size_t i = 0; i < len; ++i) {
62429 PyObject *tuple = PyList_GetItem(obj1, i);
62430 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
62431 PyErr_SetString(PyExc_TypeError, "Expecting a sequence");
62432 SWIG_fail;
62433 }
62434 bool is_tuple = PyTuple_Check(tuple);
62435 int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
62436 temp2[i].resize(arity);
62437 for (size_t j = 0; j < arity; ++j) {
62438 bool success = PyObjAs<int64_t>(
62439 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j),
62440 &temp2[i][j]);
62441 if (!success) {
62442 SWIG_fail;
62443 }
62444 }
62445 }
62446 }
62447 arg2 = &temp2;
62448 }
62449 ecode3 = SWIG_AsVal_bool(obj2, &val3);
62450 if (!SWIG_IsOK(ecode3)) {
62451 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_RoutesToAssignment" "', argument " "3"" of type '" "bool""'");
62452 }
62453 arg3 = static_cast< bool >(val3);
62454 ecode4 = SWIG_AsVal_bool(obj3, &val4);
62455 if (!SWIG_IsOK(ecode4)) {
62456 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingModel_RoutesToAssignment" "', argument " "4"" of type '" "bool""'");
62457 }
62458 arg4 = static_cast< bool >(val4);
62460 if (!SWIG_IsOK(res5)) {
62461 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "RoutingModel_RoutesToAssignment" "', argument " "5"" of type '" "operations_research::Assignment *const""'");
62462 }
62463 arg5 = reinterpret_cast< operations_research::Assignment * >(argp5);
62464 {
62465 try {
62466 result = (bool)((operations_research::RoutingModel const *)arg1)->RoutesToAssignment((std::vector< std::vector< int64_t > > const &)*arg2,arg3,arg4,arg5);
62467 }
62468 catch (Swig::DirectorException &e) {
62469 SWIG_fail;
62470 }
62471 }
62472 resultobj = SWIG_From_bool(static_cast< bool >(result));
62473 return resultobj;
62474fail:
62475 return NULL;
62476}
62477
62478
62479SWIGINTERN PyObject *_wrap_RoutingModel_AssignmentToRoutes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62480 PyObject *resultobj = 0;
62483 std::vector< std::vector< int64_t > > *arg3 = (std::vector< std::vector< int64_t > > *) (std::vector< std::vector< int64_t > > *)0 ;
62484 void *argp1 = 0 ;
62485 int res1 = 0 ;
62486 void *argp2 = 0 ;
62487 int res2 = 0 ;
62488 void *argp3 = 0 ;
62489 int res3 = 0 ;
62490 PyObject * obj0 = 0 ;
62491 PyObject * obj1 = 0 ;
62492 PyObject * obj2 = 0 ;
62493
62494 if (!PyArg_UnpackTuple(args, "RoutingModel_AssignmentToRoutes", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
62496 if (!SWIG_IsOK(res1)) {
62497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AssignmentToRoutes" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62498 }
62499 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62501 if (!SWIG_IsOK(res2)) {
62502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_AssignmentToRoutes" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62503 }
62504 if (!argp2) {
62505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_AssignmentToRoutes" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62506 }
62507 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
62509 if (!SWIG_IsOK(res3)) {
62510 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RoutingModel_AssignmentToRoutes" "', argument " "3"" of type '" "std::vector< std::vector< int64_t > > *const""'");
62511 }
62512 arg3 = reinterpret_cast< std::vector< std::vector< int64_t > > * >(argp3);
62513 {
62514 try {
62515 ((operations_research::RoutingModel const *)arg1)->AssignmentToRoutes((operations_research::Assignment const &)*arg2,arg3);
62516 }
62517 catch (Swig::DirectorException &e) {
62518 SWIG_fail;
62519 }
62520 }
62521 resultobj = SWIG_Py_Void();
62522 return resultobj;
62523fail:
62524 return NULL;
62525}
62526
62527
62528SWIGINTERN PyObject *_wrap_RoutingModel_CompactAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62529 PyObject *resultobj = 0;
62532 void *argp1 = 0 ;
62533 int res1 = 0 ;
62534 void *argp2 = 0 ;
62535 int res2 = 0 ;
62536 PyObject * obj0 = 0 ;
62537 PyObject * obj1 = 0 ;
62539
62540 if (!PyArg_UnpackTuple(args, "RoutingModel_CompactAssignment", 2, 2, &obj0, &obj1)) SWIG_fail;
62542 if (!SWIG_IsOK(res1)) {
62543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_CompactAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62544 }
62545 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62547 if (!SWIG_IsOK(res2)) {
62548 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_CompactAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62549 }
62550 if (!argp2) {
62551 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_CompactAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62552 }
62553 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
62554 {
62555 try {
62556 result = (operations_research::Assignment *)((operations_research::RoutingModel const *)arg1)->CompactAssignment((operations_research::Assignment const &)*arg2);
62557 }
62558 catch (Swig::DirectorException &e) {
62559 SWIG_fail;
62560 }
62561 }
62563 return resultobj;
62564fail:
62565 return NULL;
62566}
62567
62568
62570 PyObject *resultobj = 0;
62573 void *argp1 = 0 ;
62574 int res1 = 0 ;
62575 void *argp2 = 0 ;
62576 int res2 = 0 ;
62577 PyObject * obj0 = 0 ;
62578 PyObject * obj1 = 0 ;
62580
62581 if (!PyArg_UnpackTuple(args, "RoutingModel_CompactAndCheckAssignment", 2, 2, &obj0, &obj1)) SWIG_fail;
62583 if (!SWIG_IsOK(res1)) {
62584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_CompactAndCheckAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62585 }
62586 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62588 if (!SWIG_IsOK(res2)) {
62589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_CompactAndCheckAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62590 }
62591 if (!argp2) {
62592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_CompactAndCheckAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62593 }
62594 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
62595 {
62596 try {
62597 result = (operations_research::Assignment *)((operations_research::RoutingModel const *)arg1)->CompactAndCheckAssignment((operations_research::Assignment const &)*arg2);
62598 }
62599 catch (Swig::DirectorException &e) {
62600 SWIG_fail;
62601 }
62602 }
62604 return resultobj;
62605fail:
62606 return NULL;
62607}
62608
62609
62610SWIGINTERN PyObject *_wrap_RoutingModel_AddToAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62611 PyObject *resultobj = 0;
62614 void *argp1 = 0 ;
62615 int res1 = 0 ;
62616 PyObject * obj0 = 0 ;
62617 PyObject * obj1 = 0 ;
62618
62619 if (!PyArg_UnpackTuple(args, "RoutingModel_AddToAssignment", 2, 2, &obj0, &obj1)) SWIG_fail;
62621 if (!SWIG_IsOK(res1)) {
62622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddToAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62623 }
62624 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62625 {
62626 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
62627 }
62628 {
62629 try {
62630 (arg1)->AddToAssignment(arg2);
62631 }
62632 catch (Swig::DirectorException &e) {
62633 SWIG_fail;
62634 }
62635 }
62636 resultobj = SWIG_Py_Void();
62637 return resultobj;
62638fail:
62639 return NULL;
62640}
62641
62642
62644 PyObject *resultobj = 0;
62647 void *argp1 = 0 ;
62648 int res1 = 0 ;
62649 PyObject * obj0 = 0 ;
62650 PyObject * obj1 = 0 ;
62651
62652 if (!PyArg_UnpackTuple(args, "RoutingModel_AddIntervalToAssignment", 2, 2, &obj0, &obj1)) SWIG_fail;
62654 if (!SWIG_IsOK(res1)) {
62655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddIntervalToAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62656 }
62657 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62658 {
62659 if (!PyObjAs(obj1, &arg2)) SWIG_fail;
62660 }
62661 {
62662 try {
62663 (arg1)->AddIntervalToAssignment(arg2);
62664 }
62665 catch (Swig::DirectorException &e) {
62666 SWIG_fail;
62667 }
62668 }
62669 resultobj = SWIG_Py_Void();
62670 return resultobj;
62671fail:
62672 return NULL;
62673}
62674
62675
62677 PyObject *resultobj = 0;
62680 absl::Duration arg3 ;
62681 void *argp1 = 0 ;
62682 int res1 = 0 ;
62683 void *argp2 = 0 ;
62684 int res2 = 0 ;
62685 void *argp3 ;
62686 int res3 = 0 ;
62687 PyObject * obj0 = 0 ;
62688 PyObject * obj1 = 0 ;
62689 PyObject * obj2 = 0 ;
62691
62692 if (!PyArg_UnpackTuple(args, "RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
62694 if (!SWIG_IsOK(res1)) {
62695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62696 }
62697 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62699 if (!SWIG_IsOK(res2)) {
62700 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
62701 }
62702 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
62703 {
62704 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_absl__Duration, 0 | 0);
62705 if (!SWIG_IsOK(res3)) {
62706 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment" "', argument " "3"" of type '" "absl::Duration""'");
62707 }
62708 if (!argp3) {
62709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment" "', argument " "3"" of type '" "absl::Duration""'");
62710 } else {
62711 absl::Duration * temp = reinterpret_cast< absl::Duration * >(argp3);
62712 arg3 = *temp;
62713 if (SWIG_IsNewObj(res3)) delete temp;
62714 }
62715 }
62716 {
62717 try {
62718 result = (operations_research::Assignment *)(arg1)->PackCumulsOfOptimizerDimensionsFromAssignment((operations_research::Assignment const *)arg2,arg3);
62719 }
62720 catch (Swig::DirectorException &e) {
62721 SWIG_fail;
62722 }
62723 }
62725 return resultobj;
62726fail:
62727 return NULL;
62728}
62729
62730
62731SWIGINTERN PyObject *_wrap_RoutingModel_AddLocalSearchFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62732 PyObject *resultobj = 0;
62735 void *argp1 = 0 ;
62736 int res1 = 0 ;
62737 void *argp2 = 0 ;
62738 int res2 = 0 ;
62739 PyObject * obj0 = 0 ;
62740 PyObject * obj1 = 0 ;
62741
62742 if (!PyArg_UnpackTuple(args, "RoutingModel_AddLocalSearchFilter", 2, 2, &obj0, &obj1)) SWIG_fail;
62744 if (!SWIG_IsOK(res1)) {
62745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_AddLocalSearchFilter" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62746 }
62747 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62749 if (!SWIG_IsOK(res2)) {
62750 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_AddLocalSearchFilter" "', argument " "2"" of type '" "operations_research::LocalSearchFilter *""'");
62751 }
62752 arg2 = reinterpret_cast< operations_research::LocalSearchFilter * >(argp2);
62753 {
62754 try {
62755 (arg1)->AddLocalSearchFilter(arg2);
62756 }
62757 catch (Swig::DirectorException &e) {
62758 SWIG_fail;
62759 }
62760 }
62761 resultobj = SWIG_Py_Void();
62762 return resultobj;
62763fail:
62764 return NULL;
62765}
62766
62767
62768SWIGINTERN PyObject *_wrap_RoutingModel_Start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62769 PyObject *resultobj = 0;
62771 int arg2 ;
62772 void *argp1 = 0 ;
62773 int res1 = 0 ;
62774 int val2 ;
62775 int ecode2 = 0 ;
62776 PyObject * obj0 = 0 ;
62777 PyObject * obj1 = 0 ;
62778 int64_t result;
62779
62780 if (!PyArg_UnpackTuple(args, "RoutingModel_Start", 2, 2, &obj0, &obj1)) SWIG_fail;
62782 if (!SWIG_IsOK(res1)) {
62783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_Start" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62784 }
62785 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62786 ecode2 = SWIG_AsVal_int(obj1, &val2);
62787 if (!SWIG_IsOK(ecode2)) {
62788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_Start" "', argument " "2"" of type '" "int""'");
62789 }
62790 arg2 = static_cast< int >(val2);
62791 {
62792 try {
62793 result = (int64_t)((operations_research::RoutingModel const *)arg1)->Start(arg2);
62794 }
62795 catch (Swig::DirectorException &e) {
62796 SWIG_fail;
62797 }
62798 }
62799 resultobj = SWIG_From_long(static_cast< long >(result));
62800 return resultobj;
62801fail:
62802 return NULL;
62803}
62804
62805
62806SWIGINTERN PyObject *_wrap_RoutingModel_End(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62807 PyObject *resultobj = 0;
62809 int arg2 ;
62810 void *argp1 = 0 ;
62811 int res1 = 0 ;
62812 int val2 ;
62813 int ecode2 = 0 ;
62814 PyObject * obj0 = 0 ;
62815 PyObject * obj1 = 0 ;
62816 int64_t result;
62817
62818 if (!PyArg_UnpackTuple(args, "RoutingModel_End", 2, 2, &obj0, &obj1)) SWIG_fail;
62820 if (!SWIG_IsOK(res1)) {
62821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_End" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62822 }
62823 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62824 ecode2 = SWIG_AsVal_int(obj1, &val2);
62825 if (!SWIG_IsOK(ecode2)) {
62826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_End" "', argument " "2"" of type '" "int""'");
62827 }
62828 arg2 = static_cast< int >(val2);
62829 {
62830 try {
62831 result = (int64_t)((operations_research::RoutingModel const *)arg1)->End(arg2);
62832 }
62833 catch (Swig::DirectorException &e) {
62834 SWIG_fail;
62835 }
62836 }
62837 resultobj = SWIG_From_long(static_cast< long >(result));
62838 return resultobj;
62839fail:
62840 return NULL;
62841}
62842
62843
62844SWIGINTERN PyObject *_wrap_RoutingModel_IsStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62845 PyObject *resultobj = 0;
62847 int64_t arg2 ;
62848 void *argp1 = 0 ;
62849 int res1 = 0 ;
62850 long val2 ;
62851 int ecode2 = 0 ;
62852 PyObject * obj0 = 0 ;
62853 PyObject * obj1 = 0 ;
62854 bool result;
62855
62856 if (!PyArg_UnpackTuple(args, "RoutingModel_IsStart", 2, 2, &obj0, &obj1)) SWIG_fail;
62858 if (!SWIG_IsOK(res1)) {
62859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_IsStart" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62860 }
62861 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62862 ecode2 = SWIG_AsVal_long(obj1, &val2);
62863 if (!SWIG_IsOK(ecode2)) {
62864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_IsStart" "', argument " "2"" of type '" "int64_t""'");
62865 }
62866 arg2 = static_cast< int64_t >(val2);
62867 {
62868 try {
62869 result = (bool)((operations_research::RoutingModel const *)arg1)->IsStart(arg2);
62870 }
62871 catch (Swig::DirectorException &e) {
62872 SWIG_fail;
62873 }
62874 }
62875 resultobj = SWIG_From_bool(static_cast< bool >(result));
62876 return resultobj;
62877fail:
62878 return NULL;
62879}
62880
62881
62882SWIGINTERN PyObject *_wrap_RoutingModel_IsEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62883 PyObject *resultobj = 0;
62885 int64_t arg2 ;
62886 void *argp1 = 0 ;
62887 int res1 = 0 ;
62888 long val2 ;
62889 int ecode2 = 0 ;
62890 PyObject * obj0 = 0 ;
62891 PyObject * obj1 = 0 ;
62892 bool result;
62893
62894 if (!PyArg_UnpackTuple(args, "RoutingModel_IsEnd", 2, 2, &obj0, &obj1)) SWIG_fail;
62896 if (!SWIG_IsOK(res1)) {
62897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_IsEnd" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62898 }
62899 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62900 ecode2 = SWIG_AsVal_long(obj1, &val2);
62901 if (!SWIG_IsOK(ecode2)) {
62902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_IsEnd" "', argument " "2"" of type '" "int64_t""'");
62903 }
62904 arg2 = static_cast< int64_t >(val2);
62905 {
62906 try {
62907 result = (bool)((operations_research::RoutingModel const *)arg1)->IsEnd(arg2);
62908 }
62909 catch (Swig::DirectorException &e) {
62910 SWIG_fail;
62911 }
62912 }
62913 resultobj = SWIG_From_bool(static_cast< bool >(result));
62914 return resultobj;
62915fail:
62916 return NULL;
62917}
62918
62919
62920SWIGINTERN PyObject *_wrap_RoutingModel_VehicleIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62921 PyObject *resultobj = 0;
62923 int64_t arg2 ;
62924 void *argp1 = 0 ;
62925 int res1 = 0 ;
62926 long val2 ;
62927 int ecode2 = 0 ;
62928 PyObject * obj0 = 0 ;
62929 PyObject * obj1 = 0 ;
62930 int result;
62931
62932 if (!PyArg_UnpackTuple(args, "RoutingModel_VehicleIndex", 2, 2, &obj0, &obj1)) SWIG_fail;
62934 if (!SWIG_IsOK(res1)) {
62935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_VehicleIndex" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62936 }
62937 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62938 ecode2 = SWIG_AsVal_long(obj1, &val2);
62939 if (!SWIG_IsOK(ecode2)) {
62940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_VehicleIndex" "', argument " "2"" of type '" "int64_t""'");
62941 }
62942 arg2 = static_cast< int64_t >(val2);
62943 {
62944 try {
62945 result = (int)((operations_research::RoutingModel const *)arg1)->VehicleIndex(arg2);
62946 }
62947 catch (Swig::DirectorException &e) {
62948 SWIG_fail;
62949 }
62950 }
62951 resultobj = SWIG_From_int(static_cast< int >(result));
62952 return resultobj;
62953fail:
62954 return NULL;
62955}
62956
62957
62958SWIGINTERN PyObject *_wrap_RoutingModel_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62959 PyObject *resultobj = 0;
62962 int64_t arg3 ;
62963 void *argp1 = 0 ;
62964 int res1 = 0 ;
62965 void *argp2 = 0 ;
62966 int res2 = 0 ;
62967 long val3 ;
62968 int ecode3 = 0 ;
62969 PyObject * obj0 = 0 ;
62970 PyObject * obj1 = 0 ;
62971 PyObject * obj2 = 0 ;
62972 int64_t result;
62973
62974 if (!PyArg_UnpackTuple(args, "RoutingModel_Next", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
62976 if (!SWIG_IsOK(res1)) {
62977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_Next" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62978 }
62979 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62981 if (!SWIG_IsOK(res2)) {
62982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_Next" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62983 }
62984 if (!argp2) {
62985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_Next" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62986 }
62987 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
62988 ecode3 = SWIG_AsVal_long(obj2, &val3);
62989 if (!SWIG_IsOK(ecode3)) {
62990 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_Next" "', argument " "3"" of type '" "int64_t""'");
62991 }
62992 arg3 = static_cast< int64_t >(val3);
62993 {
62994 try {
62995 result = (int64_t)((operations_research::RoutingModel const *)arg1)->Next((operations_research::Assignment const &)*arg2,arg3);
62996 }
62997 catch (Swig::DirectorException &e) {
62998 SWIG_fail;
62999 }
63000 }
63001 resultobj = SWIG_From_long(static_cast< long >(result));
63002 return resultobj;
63003fail:
63004 return NULL;
63005}
63006
63007
63008SWIGINTERN PyObject *_wrap_RoutingModel_IsVehicleUsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63009 PyObject *resultobj = 0;
63012 int arg3 ;
63013 void *argp1 = 0 ;
63014 int res1 = 0 ;
63015 void *argp2 = 0 ;
63016 int res2 = 0 ;
63017 int val3 ;
63018 int ecode3 = 0 ;
63019 PyObject * obj0 = 0 ;
63020 PyObject * obj1 = 0 ;
63021 PyObject * obj2 = 0 ;
63022 bool result;
63023
63024 if (!PyArg_UnpackTuple(args, "RoutingModel_IsVehicleUsed", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
63026 if (!SWIG_IsOK(res1)) {
63027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_IsVehicleUsed" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63028 }
63029 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63031 if (!SWIG_IsOK(res2)) {
63032 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_IsVehicleUsed" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
63033 }
63034 if (!argp2) {
63035 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_IsVehicleUsed" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
63036 }
63037 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
63038 ecode3 = SWIG_AsVal_int(obj2, &val3);
63039 if (!SWIG_IsOK(ecode3)) {
63040 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_IsVehicleUsed" "', argument " "3"" of type '" "int""'");
63041 }
63042 arg3 = static_cast< int >(val3);
63043 {
63044 try {
63045 result = (bool)((operations_research::RoutingModel const *)arg1)->IsVehicleUsed((operations_research::Assignment const &)*arg2,arg3);
63046 }
63047 catch (Swig::DirectorException &e) {
63048 SWIG_fail;
63049 }
63050 }
63051 resultobj = SWIG_From_bool(static_cast< bool >(result));
63052 return resultobj;
63053fail:
63054 return NULL;
63055}
63056
63057
63058SWIGINTERN PyObject *_wrap_RoutingModel_NextVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63059 PyObject *resultobj = 0;
63061 int64_t arg2 ;
63062 void *argp1 = 0 ;
63063 int res1 = 0 ;
63064 long val2 ;
63065 int ecode2 = 0 ;
63066 PyObject * obj0 = 0 ;
63067 PyObject * obj1 = 0 ;
63068 operations_research::IntVar *result = 0 ;
63069
63070 if (!PyArg_UnpackTuple(args, "RoutingModel_NextVar", 2, 2, &obj0, &obj1)) SWIG_fail;
63072 if (!SWIG_IsOK(res1)) {
63073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_NextVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63074 }
63075 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63076 ecode2 = SWIG_AsVal_long(obj1, &val2);
63077 if (!SWIG_IsOK(ecode2)) {
63078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_NextVar" "', argument " "2"" of type '" "int64_t""'");
63079 }
63080 arg2 = static_cast< int64_t >(val2);
63081 {
63082 try {
63083 result = (operations_research::IntVar *)((operations_research::RoutingModel const *)arg1)->NextVar(arg2);
63084 }
63085 catch (Swig::DirectorException &e) {
63086 SWIG_fail;
63087 }
63088 }
63090 return resultobj;
63091fail:
63092 return NULL;
63093}
63094
63095
63096SWIGINTERN PyObject *_wrap_RoutingModel_ActiveVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63097 PyObject *resultobj = 0;
63099 int64_t arg2 ;
63100 void *argp1 = 0 ;
63101 int res1 = 0 ;
63102 long val2 ;
63103 int ecode2 = 0 ;
63104 PyObject * obj0 = 0 ;
63105 PyObject * obj1 = 0 ;
63106 operations_research::IntVar *result = 0 ;
63107
63108 if (!PyArg_UnpackTuple(args, "RoutingModel_ActiveVar", 2, 2, &obj0, &obj1)) SWIG_fail;
63110 if (!SWIG_IsOK(res1)) {
63111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_ActiveVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63112 }
63113 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63114 ecode2 = SWIG_AsVal_long(obj1, &val2);
63115 if (!SWIG_IsOK(ecode2)) {
63116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_ActiveVar" "', argument " "2"" of type '" "int64_t""'");
63117 }
63118 arg2 = static_cast< int64_t >(val2);
63119 {
63120 try {
63121 result = (operations_research::IntVar *)((operations_research::RoutingModel const *)arg1)->ActiveVar(arg2);
63122 }
63123 catch (Swig::DirectorException &e) {
63124 SWIG_fail;
63125 }
63126 }
63128 return resultobj;
63129fail:
63130 return NULL;
63131}
63132
63133
63134SWIGINTERN PyObject *_wrap_RoutingModel_ActiveVehicleVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63135 PyObject *resultobj = 0;
63137 int arg2 ;
63138 void *argp1 = 0 ;
63139 int res1 = 0 ;
63140 int val2 ;
63141 int ecode2 = 0 ;
63142 PyObject * obj0 = 0 ;
63143 PyObject * obj1 = 0 ;
63144 operations_research::IntVar *result = 0 ;
63145
63146 if (!PyArg_UnpackTuple(args, "RoutingModel_ActiveVehicleVar", 2, 2, &obj0, &obj1)) SWIG_fail;
63148 if (!SWIG_IsOK(res1)) {
63149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_ActiveVehicleVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63150 }
63151 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63152 ecode2 = SWIG_AsVal_int(obj1, &val2);
63153 if (!SWIG_IsOK(ecode2)) {
63154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_ActiveVehicleVar" "', argument " "2"" of type '" "int""'");
63155 }
63156 arg2 = static_cast< int >(val2);
63157 {
63158 try {
63159 result = (operations_research::IntVar *)((operations_research::RoutingModel const *)arg1)->ActiveVehicleVar(arg2);
63160 }
63161 catch (Swig::DirectorException &e) {
63162 SWIG_fail;
63163 }
63164 }
63166 return resultobj;
63167fail:
63168 return NULL;
63169}
63170
63171
63173 PyObject *resultobj = 0;
63175 int arg2 ;
63176 void *argp1 = 0 ;
63177 int res1 = 0 ;
63178 int val2 ;
63179 int ecode2 = 0 ;
63180 PyObject * obj0 = 0 ;
63181 PyObject * obj1 = 0 ;
63182 operations_research::IntVar *result = 0 ;
63183
63184 if (!PyArg_UnpackTuple(args, "RoutingModel_VehicleCostsConsideredVar", 2, 2, &obj0, &obj1)) SWIG_fail;
63186 if (!SWIG_IsOK(res1)) {
63187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_VehicleCostsConsideredVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63188 }
63189 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63190 ecode2 = SWIG_AsVal_int(obj1, &val2);
63191 if (!SWIG_IsOK(ecode2)) {
63192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_VehicleCostsConsideredVar" "', argument " "2"" of type '" "int""'");
63193 }
63194 arg2 = static_cast< int >(val2);
63195 {
63196 try {
63197 result = (operations_research::IntVar *)((operations_research::RoutingModel const *)arg1)->VehicleCostsConsideredVar(arg2);
63198 }
63199 catch (Swig::DirectorException &e) {
63200 SWIG_fail;
63201 }
63202 }
63204 return resultobj;
63205fail:
63206 return NULL;
63207}
63208
63209
63210SWIGINTERN PyObject *_wrap_RoutingModel_VehicleVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63211 PyObject *resultobj = 0;
63213 int64_t arg2 ;
63214 void *argp1 = 0 ;
63215 int res1 = 0 ;
63216 long val2 ;
63217 int ecode2 = 0 ;
63218 PyObject * obj0 = 0 ;
63219 PyObject * obj1 = 0 ;
63220 operations_research::IntVar *result = 0 ;
63221
63222 if (!PyArg_UnpackTuple(args, "RoutingModel_VehicleVar", 2, 2, &obj0, &obj1)) SWIG_fail;
63224 if (!SWIG_IsOK(res1)) {
63225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_VehicleVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63226 }
63227 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63228 ecode2 = SWIG_AsVal_long(obj1, &val2);
63229 if (!SWIG_IsOK(ecode2)) {
63230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_VehicleVar" "', argument " "2"" of type '" "int64_t""'");
63231 }
63232 arg2 = static_cast< int64_t >(val2);
63233 {
63234 try {
63235 result = (operations_research::IntVar *)((operations_research::RoutingModel const *)arg1)->VehicleVar(arg2);
63236 }
63237 catch (Swig::DirectorException &e) {
63238 SWIG_fail;
63239 }
63240 }
63242 return resultobj;
63243fail:
63244 return NULL;
63245}
63246
63247
63248SWIGINTERN PyObject *_wrap_RoutingModel_CostVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63249 PyObject *resultobj = 0;
63251 void *argp1 = 0 ;
63252 int res1 = 0 ;
63253 PyObject * obj0 = 0 ;
63254 operations_research::IntVar *result = 0 ;
63255
63256 if (!PyArg_UnpackTuple(args, "RoutingModel_CostVar", 1, 1, &obj0)) SWIG_fail;
63258 if (!SWIG_IsOK(res1)) {
63259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_CostVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63260 }
63261 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63262 {
63263 try {
63264 result = (operations_research::IntVar *)((operations_research::RoutingModel const *)arg1)->CostVar();
63265 }
63266 catch (Swig::DirectorException &e) {
63267 SWIG_fail;
63268 }
63269 }
63271 return resultobj;
63272fail:
63273 return NULL;
63274}
63275
63276
63277SWIGINTERN PyObject *_wrap_RoutingModel_GetArcCostForVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63278 PyObject *resultobj = 0;
63280 int64_t arg2 ;
63281 int64_t arg3 ;
63282 int64_t arg4 ;
63283 void *argp1 = 0 ;
63284 int res1 = 0 ;
63285 long val2 ;
63286 int ecode2 = 0 ;
63287 long val3 ;
63288 int ecode3 = 0 ;
63289 long val4 ;
63290 int ecode4 = 0 ;
63291 PyObject * obj0 = 0 ;
63292 PyObject * obj1 = 0 ;
63293 PyObject * obj2 = 0 ;
63294 PyObject * obj3 = 0 ;
63295 int64_t result;
63296
63297 if (!PyArg_UnpackTuple(args, "RoutingModel_GetArcCostForVehicle", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
63299 if (!SWIG_IsOK(res1)) {
63300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetArcCostForVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63301 }
63302 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63303 ecode2 = SWIG_AsVal_long(obj1, &val2);
63304 if (!SWIG_IsOK(ecode2)) {
63305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetArcCostForVehicle" "', argument " "2"" of type '" "int64_t""'");
63306 }
63307 arg2 = static_cast< int64_t >(val2);
63308 ecode3 = SWIG_AsVal_long(obj2, &val3);
63309 if (!SWIG_IsOK(ecode3)) {
63310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_GetArcCostForVehicle" "', argument " "3"" of type '" "int64_t""'");
63311 }
63312 arg3 = static_cast< int64_t >(val3);
63313 ecode4 = SWIG_AsVal_long(obj3, &val4);
63314 if (!SWIG_IsOK(ecode4)) {
63315 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingModel_GetArcCostForVehicle" "', argument " "4"" of type '" "int64_t""'");
63316 }
63317 arg4 = static_cast< int64_t >(val4);
63318 {
63319 try {
63320 result = (int64_t)((operations_research::RoutingModel const *)arg1)->GetArcCostForVehicle(arg2,arg3,arg4);
63321 }
63322 catch (Swig::DirectorException &e) {
63323 SWIG_fail;
63324 }
63325 }
63326 resultobj = SWIG_From_long(static_cast< long >(result));
63327 return resultobj;
63328fail:
63329 return NULL;
63330}
63331
63332
63334 PyObject *resultobj = 0;
63336 void *argp1 = 0 ;
63337 int res1 = 0 ;
63338 PyObject * obj0 = 0 ;
63339 bool result;
63340
63341 if (!PyArg_UnpackTuple(args, "RoutingModel_CostsAreHomogeneousAcrossVehicles", 1, 1, &obj0)) SWIG_fail;
63343 if (!SWIG_IsOK(res1)) {
63344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_CostsAreHomogeneousAcrossVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63345 }
63346 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63347 {
63348 try {
63349 result = (bool)((operations_research::RoutingModel const *)arg1)->CostsAreHomogeneousAcrossVehicles();
63350 }
63351 catch (Swig::DirectorException &e) {
63352 SWIG_fail;
63353 }
63354 }
63355 resultobj = SWIG_From_bool(static_cast< bool >(result));
63356 return resultobj;
63357fail:
63358 return NULL;
63359}
63360
63361
63362SWIGINTERN PyObject *_wrap_RoutingModel_GetHomogeneousCost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63363 PyObject *resultobj = 0;
63365 int64_t arg2 ;
63366 int64_t arg3 ;
63367 void *argp1 = 0 ;
63368 int res1 = 0 ;
63369 long val2 ;
63370 int ecode2 = 0 ;
63371 long val3 ;
63372 int ecode3 = 0 ;
63373 PyObject * obj0 = 0 ;
63374 PyObject * obj1 = 0 ;
63375 PyObject * obj2 = 0 ;
63376 int64_t result;
63377
63378 if (!PyArg_UnpackTuple(args, "RoutingModel_GetHomogeneousCost", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
63380 if (!SWIG_IsOK(res1)) {
63381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetHomogeneousCost" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63382 }
63383 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63384 ecode2 = SWIG_AsVal_long(obj1, &val2);
63385 if (!SWIG_IsOK(ecode2)) {
63386 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetHomogeneousCost" "', argument " "2"" of type '" "int64_t""'");
63387 }
63388 arg2 = static_cast< int64_t >(val2);
63389 ecode3 = SWIG_AsVal_long(obj2, &val3);
63390 if (!SWIG_IsOK(ecode3)) {
63391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_GetHomogeneousCost" "', argument " "3"" of type '" "int64_t""'");
63392 }
63393 arg3 = static_cast< int64_t >(val3);
63394 {
63395 try {
63396 result = (int64_t)((operations_research::RoutingModel const *)arg1)->GetHomogeneousCost(arg2,arg3);
63397 }
63398 catch (Swig::DirectorException &e) {
63399 SWIG_fail;
63400 }
63401 }
63402 resultobj = SWIG_From_long(static_cast< long >(result));
63403 return resultobj;
63404fail:
63405 return NULL;
63406}
63407
63408
63410 PyObject *resultobj = 0;
63412 int64_t arg2 ;
63413 int64_t arg3 ;
63414 void *argp1 = 0 ;
63415 int res1 = 0 ;
63416 long val2 ;
63417 int ecode2 = 0 ;
63418 long val3 ;
63419 int ecode3 = 0 ;
63420 PyObject * obj0 = 0 ;
63421 PyObject * obj1 = 0 ;
63422 PyObject * obj2 = 0 ;
63423 int64_t result;
63424
63425 if (!PyArg_UnpackTuple(args, "RoutingModel_GetArcCostForFirstSolution", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
63427 if (!SWIG_IsOK(res1)) {
63428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetArcCostForFirstSolution" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63429 }
63430 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63431 ecode2 = SWIG_AsVal_long(obj1, &val2);
63432 if (!SWIG_IsOK(ecode2)) {
63433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetArcCostForFirstSolution" "', argument " "2"" of type '" "int64_t""'");
63434 }
63435 arg2 = static_cast< int64_t >(val2);
63436 ecode3 = SWIG_AsVal_long(obj2, &val3);
63437 if (!SWIG_IsOK(ecode3)) {
63438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_GetArcCostForFirstSolution" "', argument " "3"" of type '" "int64_t""'");
63439 }
63440 arg3 = static_cast< int64_t >(val3);
63441 {
63442 try {
63443 result = (int64_t)((operations_research::RoutingModel const *)arg1)->GetArcCostForFirstSolution(arg2,arg3);
63444 }
63445 catch (Swig::DirectorException &e) {
63446 SWIG_fail;
63447 }
63448 }
63449 resultobj = SWIG_From_long(static_cast< long >(result));
63450 return resultobj;
63451fail:
63452 return NULL;
63453}
63454
63455
63456SWIGINTERN PyObject *_wrap_RoutingModel_GetArcCostForClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63457 PyObject *resultobj = 0;
63459 int64_t arg2 ;
63460 int64_t arg3 ;
63461 int64_t arg4 ;
63462 void *argp1 = 0 ;
63463 int res1 = 0 ;
63464 long val2 ;
63465 int ecode2 = 0 ;
63466 long val3 ;
63467 int ecode3 = 0 ;
63468 long val4 ;
63469 int ecode4 = 0 ;
63470 PyObject * obj0 = 0 ;
63471 PyObject * obj1 = 0 ;
63472 PyObject * obj2 = 0 ;
63473 PyObject * obj3 = 0 ;
63474 int64_t result;
63475
63476 if (!PyArg_UnpackTuple(args, "RoutingModel_GetArcCostForClass", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
63478 if (!SWIG_IsOK(res1)) {
63479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetArcCostForClass" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63480 }
63481 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63482 ecode2 = SWIG_AsVal_long(obj1, &val2);
63483 if (!SWIG_IsOK(ecode2)) {
63484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetArcCostForClass" "', argument " "2"" of type '" "int64_t""'");
63485 }
63486 arg2 = static_cast< int64_t >(val2);
63487 ecode3 = SWIG_AsVal_long(obj2, &val3);
63488 if (!SWIG_IsOK(ecode3)) {
63489 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_GetArcCostForClass" "', argument " "3"" of type '" "int64_t""'");
63490 }
63491 arg3 = static_cast< int64_t >(val3);
63492 ecode4 = SWIG_AsVal_long(obj3, &val4);
63493 if (!SWIG_IsOK(ecode4)) {
63494 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingModel_GetArcCostForClass" "', argument " "4"" of type '" "int64_t""'");
63495 }
63496 arg4 = static_cast< int64_t >(val4);
63497 {
63498 try {
63499 result = (int64_t)((operations_research::RoutingModel const *)arg1)->GetArcCostForClass(arg2,arg3,arg4);
63500 }
63501 catch (Swig::DirectorException &e) {
63502 SWIG_fail;
63503 }
63504 }
63505 resultobj = SWIG_From_long(static_cast< long >(result));
63506 return resultobj;
63507fail:
63508 return NULL;
63509}
63510
63511
63513 PyObject *resultobj = 0;
63515 int64_t arg2 ;
63516 void *argp1 = 0 ;
63517 int res1 = 0 ;
63518 long val2 ;
63519 int ecode2 = 0 ;
63520 PyObject * obj0 = 0 ;
63521 PyObject * obj1 = 0 ;
63523
63524 if (!PyArg_UnpackTuple(args, "RoutingModel_GetCostClassIndexOfVehicle", 2, 2, &obj0, &obj1)) SWIG_fail;
63526 if (!SWIG_IsOK(res1)) {
63527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetCostClassIndexOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63528 }
63529 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63530 ecode2 = SWIG_AsVal_long(obj1, &val2);
63531 if (!SWIG_IsOK(ecode2)) {
63532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetCostClassIndexOfVehicle" "', argument " "2"" of type '" "int64_t""'");
63533 }
63534 arg2 = static_cast< int64_t >(val2);
63535 {
63536 try {
63537 result = ((operations_research::RoutingModel const *)arg1)->GetCostClassIndexOfVehicle(arg2);
63538 }
63539 catch (Swig::DirectorException &e) {
63540 SWIG_fail;
63541 }
63542 }
63543 {
63544 resultobj = PyInt_FromLong((&result)->value());
63545 }
63546 return resultobj;
63547fail:
63548 return NULL;
63549}
63550
63551
63553 PyObject *resultobj = 0;
63556 void *argp1 = 0 ;
63557 int res1 = 0 ;
63558 PyObject * obj0 = 0 ;
63559 PyObject * obj1 = 0 ;
63560 bool result;
63561
63562 if (!PyArg_UnpackTuple(args, "RoutingModel_HasVehicleWithCostClassIndex", 2, 2, &obj0, &obj1)) SWIG_fail;
63564 if (!SWIG_IsOK(res1)) {
63565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_HasVehicleWithCostClassIndex" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63566 }
63567 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63568 {
63569 arg2 = operations_research::RoutingCostClassIndex(PyInt_AsLong(obj1));
63570 }
63571 {
63572 try {
63573 result = (bool)((operations_research::RoutingModel const *)arg1)->HasVehicleWithCostClassIndex(arg2);
63574 }
63575 catch (Swig::DirectorException &e) {
63576 SWIG_fail;
63577 }
63578 }
63579 resultobj = SWIG_From_bool(static_cast< bool >(result));
63580 return resultobj;
63581fail:
63582 return NULL;
63583}
63584
63585
63586SWIGINTERN PyObject *_wrap_RoutingModel_GetCostClassesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63587 PyObject *resultobj = 0;
63589 void *argp1 = 0 ;
63590 int res1 = 0 ;
63591 PyObject * obj0 = 0 ;
63592 int result;
63593
63594 if (!PyArg_UnpackTuple(args, "RoutingModel_GetCostClassesCount", 1, 1, &obj0)) SWIG_fail;
63596 if (!SWIG_IsOK(res1)) {
63597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetCostClassesCount" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63598 }
63599 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63600 {
63601 try {
63602 result = (int)((operations_research::RoutingModel const *)arg1)->GetCostClassesCount();
63603 }
63604 catch (Swig::DirectorException &e) {
63605 SWIG_fail;
63606 }
63607 }
63608 resultobj = SWIG_From_int(static_cast< int >(result));
63609 return resultobj;
63610fail:
63611 return NULL;
63612}
63613
63614
63616 PyObject *resultobj = 0;
63618 void *argp1 = 0 ;
63619 int res1 = 0 ;
63620 PyObject * obj0 = 0 ;
63621 int result;
63622
63623 if (!PyArg_UnpackTuple(args, "RoutingModel_GetNonZeroCostClassesCount", 1, 1, &obj0)) SWIG_fail;
63625 if (!SWIG_IsOK(res1)) {
63626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetNonZeroCostClassesCount" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63627 }
63628 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63629 {
63630 try {
63631 result = (int)((operations_research::RoutingModel const *)arg1)->GetNonZeroCostClassesCount();
63632 }
63633 catch (Swig::DirectorException &e) {
63634 SWIG_fail;
63635 }
63636 }
63637 resultobj = SWIG_From_int(static_cast< int >(result));
63638 return resultobj;
63639fail:
63640 return NULL;
63641}
63642
63643
63645 PyObject *resultobj = 0;
63647 int64_t arg2 ;
63648 void *argp1 = 0 ;
63649 int res1 = 0 ;
63650 long val2 ;
63651 int ecode2 = 0 ;
63652 PyObject * obj0 = 0 ;
63653 PyObject * obj1 = 0 ;
63655
63656 if (!PyArg_UnpackTuple(args, "RoutingModel_GetVehicleClassIndexOfVehicle", 2, 2, &obj0, &obj1)) SWIG_fail;
63658 if (!SWIG_IsOK(res1)) {
63659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetVehicleClassIndexOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63660 }
63661 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63662 ecode2 = SWIG_AsVal_long(obj1, &val2);
63663 if (!SWIG_IsOK(ecode2)) {
63664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetVehicleClassIndexOfVehicle" "', argument " "2"" of type '" "int64_t""'");
63665 }
63666 arg2 = static_cast< int64_t >(val2);
63667 {
63668 try {
63669 result = ((operations_research::RoutingModel const *)arg1)->GetVehicleClassIndexOfVehicle(arg2);
63670 }
63671 catch (Swig::DirectorException &e) {
63672 SWIG_fail;
63673 }
63674 }
63675 {
63676 resultobj = PyInt_FromLong((&result)->value());
63677 }
63678 return resultobj;
63679fail:
63680 return NULL;
63681}
63682
63683
63684SWIGINTERN PyObject *_wrap_RoutingModel_GetVehicleOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63685 PyObject *resultobj = 0;
63688 void *argp1 = 0 ;
63689 int res1 = 0 ;
63690 PyObject * obj0 = 0 ;
63691 PyObject * obj1 = 0 ;
63692 int result;
63693
63694 if (!PyArg_UnpackTuple(args, "RoutingModel_GetVehicleOfClass", 2, 2, &obj0, &obj1)) SWIG_fail;
63696 if (!SWIG_IsOK(res1)) {
63697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetVehicleOfClass" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63698 }
63699 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63700 {
63701 arg2 = operations_research::RoutingVehicleClassIndex(PyInt_AsLong(obj1));
63702 }
63703 {
63704 try {
63705 result = (int)((operations_research::RoutingModel const *)arg1)->GetVehicleOfClass(arg2);
63706 }
63707 catch (Swig::DirectorException &e) {
63708 SWIG_fail;
63709 }
63710 }
63711 resultobj = SWIG_From_int(static_cast< int >(result));
63712 return resultobj;
63713fail:
63714 return NULL;
63715}
63716
63717
63718SWIGINTERN PyObject *_wrap_RoutingModel_GetVehicleClassesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63719 PyObject *resultobj = 0;
63721 void *argp1 = 0 ;
63722 int res1 = 0 ;
63723 PyObject * obj0 = 0 ;
63724 int result;
63725
63726 if (!PyArg_UnpackTuple(args, "RoutingModel_GetVehicleClassesCount", 1, 1, &obj0)) SWIG_fail;
63728 if (!SWIG_IsOK(res1)) {
63729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetVehicleClassesCount" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63730 }
63731 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63732 {
63733 try {
63734 result = (int)((operations_research::RoutingModel const *)arg1)->GetVehicleClassesCount();
63735 }
63736 catch (Swig::DirectorException &e) {
63737 SWIG_fail;
63738 }
63739 }
63740 resultobj = SWIG_From_int(static_cast< int >(result));
63741 return resultobj;
63742fail:
63743 return NULL;
63744}
63745
63746
63748 PyObject *resultobj = 0;
63750 int arg2 ;
63751 void *argp1 = 0 ;
63752 int res1 = 0 ;
63753 int val2 ;
63754 int ecode2 = 0 ;
63755 PyObject * obj0 = 0 ;
63756 PyObject * obj1 = 0 ;
63757 std::vector< int > *result = 0 ;
63758
63759 if (!PyArg_UnpackTuple(args, "RoutingModel_GetSameVehicleIndicesOfIndex", 2, 2, &obj0, &obj1)) SWIG_fail;
63761 if (!SWIG_IsOK(res1)) {
63762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetSameVehicleIndicesOfIndex" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63763 }
63764 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63765 ecode2 = SWIG_AsVal_int(obj1, &val2);
63766 if (!SWIG_IsOK(ecode2)) {
63767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_GetSameVehicleIndicesOfIndex" "', argument " "2"" of type '" "int""'");
63768 }
63769 arg2 = static_cast< int >(val2);
63770 {
63771 try {
63772 result = (std::vector< int > *) &((operations_research::RoutingModel const *)arg1)->GetSameVehicleIndicesOfIndex(arg2);
63773 }
63774 catch (Swig::DirectorException &e) {
63775 SWIG_fail;
63776 }
63777 }
63778 {
63779 resultobj = vector_output_helper(result, &PyInt_FromLong);
63780 }
63781 return resultobj;
63782fail:
63783 return NULL;
63784}
63785
63786
63788 PyObject *resultobj = 0;
63790 void *argp1 = 0 ;
63791 int res1 = 0 ;
63792 PyObject * obj0 = 0 ;
63794
63795 if (!PyArg_UnpackTuple(args, "RoutingModel_GetVehicleTypeContainer", 1, 1, &obj0)) SWIG_fail;
63797 if (!SWIG_IsOK(res1)) {
63798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetVehicleTypeContainer" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63799 }
63800 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63801 {
63802 try {
63803 result = (operations_research::RoutingModel::VehicleTypeContainer *) &((operations_research::RoutingModel const *)arg1)->GetVehicleTypeContainer();
63804 }
63805 catch (Swig::DirectorException &e) {
63806 SWIG_fail;
63807 }
63808 }
63810 return resultobj;
63811fail:
63812 return NULL;
63813}
63814
63815
63817 PyObject *resultobj = 0;
63819 int64_t arg2 ;
63820 int64_t arg3 ;
63821 int64_t arg4 ;
63822 void *argp1 = 0 ;
63823 int res1 = 0 ;
63824 long val2 ;
63825 int ecode2 = 0 ;
63826 long val3 ;
63827 int ecode3 = 0 ;
63828 long val4 ;
63829 int ecode4 = 0 ;
63830 PyObject * obj0 = 0 ;
63831 PyObject * obj1 = 0 ;
63832 PyObject * obj2 = 0 ;
63833 PyObject * obj3 = 0 ;
63834 bool result;
63835
63836 if (!PyArg_UnpackTuple(args, "RoutingModel_ArcIsMoreConstrainedThanArc", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
63838 if (!SWIG_IsOK(res1)) {
63839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_ArcIsMoreConstrainedThanArc" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
63840 }
63841 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63842 ecode2 = SWIG_AsVal_long(obj1, &val2);
63843 if (!SWIG_IsOK(ecode2)) {
63844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingModel_ArcIsMoreConstrainedThanArc" "', argument " "2"" of type '" "int64_t""'");
63845 }
63846 arg2 = static_cast< int64_t >(val2);
63847 ecode3 = SWIG_AsVal_long(obj2, &val3);
63848 if (!SWIG_IsOK(ecode3)) {
63849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingModel_ArcIsMoreConstrainedThanArc" "', argument " "3"" of type '" "int64_t""'");
63850 }
63851 arg3 = static_cast< int64_t >(val3);
63852 ecode4 = SWIG_AsVal_long(obj3, &val4);
63853 if (!SWIG_IsOK(ecode4)) {
63854 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingModel_ArcIsMoreConstrainedThanArc" "', argument " "4"" of type '" "int64_t""'");
63855 }
63856 arg4 = static_cast< int64_t >(val4);
63857 {
63858 try {
63859 result = (bool)(arg1)->ArcIsMoreConstrainedThanArc(arg2,arg3,arg4);
63860 }
63861 catch (Swig::DirectorException &e) {
63862 SWIG_fail;
63863 }
63864 }
63865 resultobj = SWIG_From_bool(static_cast< bool >(result));
63866 return resultobj;
63867fail:
63868 return NULL;
63869}
63870
63871
63872SWIGINTERN PyObject *_wrap_RoutingModel_DebugOutputAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63873 PyObject *resultobj = 0;
63876 std::string *arg3 = 0 ;
63877 void *argp1 = 0 ;
63878 int res1 = 0 ;
63879 void *argp2 = 0 ;
63880 int res2 = 0 ;
63881 int res3 = SWIG_OLDOBJ ;
63882 PyObject * obj0 = 0 ;
63883 PyObject * obj1 = 0 ;
63884 PyObject * obj2 = 0 ;
63885 std::string result;
63886
63887 if (!PyArg_UnpackTuple(args, "RoutingModel_DebugOutputAssignment", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
63889 if (!SWIG_IsOK(res1)) {
63890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_DebugOutputAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63891 }
63892 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63894 if (!SWIG_IsOK(res2)) {
63895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_DebugOutputAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
63896 }
63897 if (!argp2) {
63898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_DebugOutputAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
63899 }
63900 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
63901 {
63902 std::string *ptr = (std::string *)0;
63903 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
63904 if (!SWIG_IsOK(res3)) {
63905 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RoutingModel_DebugOutputAssignment" "', argument " "3"" of type '" "std::string const &""'");
63906 }
63907 if (!ptr) {
63908 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RoutingModel_DebugOutputAssignment" "', argument " "3"" of type '" "std::string const &""'");
63909 }
63910 arg3 = ptr;
63911 }
63912 {
63913 try {
63914 result = ((operations_research::RoutingModel const *)arg1)->DebugOutputAssignment((operations_research::Assignment const &)*arg2,(std::string const &)*arg3);
63915 }
63916 catch (Swig::DirectorException &e) {
63917 SWIG_fail;
63918 }
63919 }
63920 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
63921 if (SWIG_IsNewObj(res3)) delete arg3;
63922 return resultobj;
63923fail:
63924 if (SWIG_IsNewObj(res3)) delete arg3;
63925 return NULL;
63926}
63927
63928
63929SWIGINTERN PyObject *_wrap_RoutingModel_solver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63930 PyObject *resultobj = 0;
63932 void *argp1 = 0 ;
63933 int res1 = 0 ;
63934 PyObject * obj0 = 0 ;
63935 operations_research::Solver *result = 0 ;
63936
63937 if (!PyArg_UnpackTuple(args, "RoutingModel_solver", 1, 1, &obj0)) SWIG_fail;
63939 if (!SWIG_IsOK(res1)) {
63940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_solver" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63941 }
63942 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63943 {
63944 try {
63945 result = (operations_research::Solver *)((operations_research::RoutingModel const *)arg1)->solver();
63946 }
63947 catch (Swig::DirectorException &e) {
63948 SWIG_fail;
63949 }
63950 }
63952 return resultobj;
63953fail:
63954 return NULL;
63955}
63956
63957
63958SWIGINTERN PyObject *_wrap_RoutingModel_CheckLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63959 PyObject *resultobj = 0;
63961 void *argp1 = 0 ;
63962 int res1 = 0 ;
63963 PyObject * obj0 = 0 ;
63964 bool result;
63965
63966 if (!PyArg_UnpackTuple(args, "RoutingModel_CheckLimit", 1, 1, &obj0)) SWIG_fail;
63968 if (!SWIG_IsOK(res1)) {
63969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_CheckLimit" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
63970 }
63971 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63972 {
63973 try {
63974 result = (bool)(arg1)->CheckLimit();
63975 }
63976 catch (Swig::DirectorException &e) {
63977 SWIG_fail;
63978 }
63979 }
63980 resultobj = SWIG_From_bool(static_cast< bool >(result));
63981 return resultobj;
63982fail:
63983 return NULL;
63984}
63985
63986
63987SWIGINTERN PyObject *_wrap_RoutingModel_RemainingTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63988 PyObject *resultobj = 0;
63990 void *argp1 = 0 ;
63991 int res1 = 0 ;
63992 PyObject * obj0 = 0 ;
63993 absl::Duration result;
63994
63995 if (!PyArg_UnpackTuple(args, "RoutingModel_RemainingTime", 1, 1, &obj0)) SWIG_fail;
63997 if (!SWIG_IsOK(res1)) {
63998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_RemainingTime" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63999 }
64000 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64001 {
64002 try {
64003 result = ((operations_research::RoutingModel const *)arg1)->RemainingTime();
64004 }
64005 catch (Swig::DirectorException &e) {
64006 SWIG_fail;
64007 }
64008 }
64009 resultobj = SWIG_NewPointerObj((new absl::Duration(static_cast< const absl::Duration& >(result))), SWIGTYPE_p_absl__Duration, SWIG_POINTER_OWN | 0 );
64010 return resultobj;
64011fail:
64012 return NULL;
64013}
64014
64015
64016SWIGINTERN PyObject *_wrap_RoutingModel_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64017 PyObject *resultobj = 0;
64019 void *argp1 = 0 ;
64020 int res1 = 0 ;
64021 PyObject * obj0 = 0 ;
64022 int result;
64023
64024 if (!PyArg_UnpackTuple(args, "RoutingModel_nodes", 1, 1, &obj0)) SWIG_fail;
64026 if (!SWIG_IsOK(res1)) {
64027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_nodes" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64028 }
64029 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64030 {
64031 try {
64032 result = (int)((operations_research::RoutingModel const *)arg1)->nodes();
64033 }
64034 catch (Swig::DirectorException &e) {
64035 SWIG_fail;
64036 }
64037 }
64038 resultobj = SWIG_From_int(static_cast< int >(result));
64039 return resultobj;
64040fail:
64041 return NULL;
64042}
64043
64044
64045SWIGINTERN PyObject *_wrap_RoutingModel_vehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64046 PyObject *resultobj = 0;
64048 void *argp1 = 0 ;
64049 int res1 = 0 ;
64050 PyObject * obj0 = 0 ;
64051 int result;
64052
64053 if (!PyArg_UnpackTuple(args, "RoutingModel_vehicles", 1, 1, &obj0)) SWIG_fail;
64055 if (!SWIG_IsOK(res1)) {
64056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_vehicles" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64057 }
64058 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64059 {
64060 try {
64061 result = (int)((operations_research::RoutingModel const *)arg1)->vehicles();
64062 }
64063 catch (Swig::DirectorException &e) {
64064 SWIG_fail;
64065 }
64066 }
64067 resultobj = SWIG_From_int(static_cast< int >(result));
64068 return resultobj;
64069fail:
64070 return NULL;
64071}
64072
64073
64074SWIGINTERN PyObject *_wrap_RoutingModel_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64075 PyObject *resultobj = 0;
64077 void *argp1 = 0 ;
64078 int res1 = 0 ;
64079 PyObject * obj0 = 0 ;
64080 int64_t result;
64081
64082 if (!PyArg_UnpackTuple(args, "RoutingModel_Size", 1, 1, &obj0)) SWIG_fail;
64084 if (!SWIG_IsOK(res1)) {
64085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_Size" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64086 }
64087 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64088 {
64089 try {
64090 result = (int64_t)((operations_research::RoutingModel const *)arg1)->Size();
64091 }
64092 catch (Swig::DirectorException &e) {
64093 SWIG_fail;
64094 }
64095 }
64096 resultobj = SWIG_From_long(static_cast< long >(result));
64097 return resultobj;
64098fail:
64099 return NULL;
64100}
64101
64102
64104 PyObject *resultobj = 0;
64107 void *argp1 = 0 ;
64108 int res1 = 0 ;
64109 PyObject * obj0 = 0 ;
64110 PyObject * obj1 = 0 ;
64111 int64_t result;
64112
64113 if (!PyArg_UnpackTuple(args, "RoutingModel_GetNumberOfDecisionsInFirstSolution", 2, 2, &obj0, &obj1)) SWIG_fail;
64115 if (!SWIG_IsOK(res1)) {
64116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetNumberOfDecisionsInFirstSolution" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64117 }
64118 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64119 {
64121 PyObject* const pyresult = PyObject_CallMethod(
64122 obj1, const_cast<char*>("SerializeToString"), nullptr);
64123 if (pyresult != nullptr) {
64124 char* buffer = nullptr;
64125 Py_ssize_t length = 0;
64126 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
64127 if (buffer != nullptr) {
64128 arg2->ParseFromArray(buffer, length);
64129 }
64130 Py_DECREF(pyresult);
64131 }
64132 }
64133 {
64134 try {
64135 result = (int64_t)((operations_research::RoutingModel const *)arg1)->GetNumberOfDecisionsInFirstSolution((operations_research::RoutingSearchParameters const &)*arg2);
64136 }
64137 catch (Swig::DirectorException &e) {
64138 SWIG_fail;
64139 }
64140 }
64141 resultobj = SWIG_From_long(static_cast< long >(result));
64142 {
64143 delete arg2;
64144 }
64145 return resultobj;
64146fail:
64147 {
64148 delete arg2;
64149 }
64150 return NULL;
64151}
64152
64153
64155 PyObject *resultobj = 0;
64158 void *argp1 = 0 ;
64159 int res1 = 0 ;
64160 PyObject * obj0 = 0 ;
64161 PyObject * obj1 = 0 ;
64162 int64_t result;
64163
64164 if (!PyArg_UnpackTuple(args, "RoutingModel_GetNumberOfRejectsInFirstSolution", 2, 2, &obj0, &obj1)) SWIG_fail;
64166 if (!SWIG_IsOK(res1)) {
64167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetNumberOfRejectsInFirstSolution" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64168 }
64169 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64170 {
64172 PyObject* const pyresult = PyObject_CallMethod(
64173 obj1, const_cast<char*>("SerializeToString"), nullptr);
64174 if (pyresult != nullptr) {
64175 char* buffer = nullptr;
64176 Py_ssize_t length = 0;
64177 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
64178 if (buffer != nullptr) {
64179 arg2->ParseFromArray(buffer, length);
64180 }
64181 Py_DECREF(pyresult);
64182 }
64183 }
64184 {
64185 try {
64186 result = (int64_t)((operations_research::RoutingModel const *)arg1)->GetNumberOfRejectsInFirstSolution((operations_research::RoutingSearchParameters const &)*arg2);
64187 }
64188 catch (Swig::DirectorException &e) {
64189 SWIG_fail;
64190 }
64191 }
64192 resultobj = SWIG_From_long(static_cast< long >(result));
64193 {
64194 delete arg2;
64195 }
64196 return resultobj;
64197fail:
64198 {
64199 delete arg2;
64200 }
64201 return NULL;
64202}
64203
64204
64206 PyObject *resultobj = 0;
64208 void *argp1 = 0 ;
64209 int res1 = 0 ;
64210 PyObject * obj0 = 0 ;
64212
64213 if (!PyArg_UnpackTuple(args, "RoutingModel_GetAutomaticFirstSolutionStrategy", 1, 1, &obj0)) SWIG_fail;
64215 if (!SWIG_IsOK(res1)) {
64216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_GetAutomaticFirstSolutionStrategy" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64217 }
64218 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64219 {
64220 try {
64222 }
64223 catch (Swig::DirectorException &e) {
64224 SWIG_fail;
64225 }
64226 }
64228 return resultobj;
64229fail:
64230 return NULL;
64231}
64232
64233
64234SWIGINTERN PyObject *_wrap_RoutingModel_IsMatchingModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64235 PyObject *resultobj = 0;
64237 void *argp1 = 0 ;
64238 int res1 = 0 ;
64239 PyObject * obj0 = 0 ;
64240 bool result;
64241
64242 if (!PyArg_UnpackTuple(args, "RoutingModel_IsMatchingModel", 1, 1, &obj0)) SWIG_fail;
64244 if (!SWIG_IsOK(res1)) {
64245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_IsMatchingModel" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64246 }
64247 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64248 {
64249 try {
64250 result = (bool)((operations_research::RoutingModel const *)arg1)->IsMatchingModel();
64251 }
64252 catch (Swig::DirectorException &e) {
64253 SWIG_fail;
64254 }
64255 }
64256 resultobj = SWIG_From_bool(static_cast< bool >(result));
64257 return resultobj;
64258fail:
64259 return NULL;
64260}
64261
64262
64264 PyObject *resultobj = 0;
64267 std::function< int64_t (int64_t) > arg3 ;
64268 void *argp1 = 0 ;
64269 int res1 = 0 ;
64270 void *argp2 = 0 ;
64271 int res2 = 0 ;
64272 PyObject * obj0 = 0 ;
64273 PyObject * obj1 = 0 ;
64274 PyObject * obj2 = 0 ;
64275 Swig::Director *director = 0;
64277
64278 if (!PyArg_UnpackTuple(args, "RoutingModel_MakeGuidedSlackFinalizer", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
64280 if (!SWIG_IsOK(res1)) {
64281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_MakeGuidedSlackFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
64282 }
64283 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64285 if (!SWIG_IsOK(res2)) {
64286 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_MakeGuidedSlackFinalizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const *""'");
64287 }
64288 arg2 = reinterpret_cast< operations_research::RoutingDimension * >(argp2);
64289 {
64290 SharedPyPtr input(obj2);
64291 arg3 = [input](int64_t index) {
64292 return InvokePythonCallableReturning<int64_t>(input.get(), "(L)", index);
64293 };
64294 }
64295 {
64296 try {
64297 result = (operations_research::DecisionBuilder *)(arg1)->MakeGuidedSlackFinalizer((operations_research::RoutingDimension const *)arg2,arg3);
64298 }
64299 catch (Swig::DirectorException &e) {
64300 SWIG_fail;
64301 }
64302 }
64303 director = SWIG_DIRECTOR_CAST(result);
64304 if (director) {
64305 resultobj = director->swig_get_self();
64306 Py_INCREF(resultobj);
64307 } else {
64309 }
64310 return resultobj;
64311fail:
64312 return NULL;
64313}
64314
64315
64317 PyObject *resultobj = 0;
64320 void *argp1 = 0 ;
64321 int res1 = 0 ;
64322 void *argp2 = 0 ;
64323 int res2 = 0 ;
64324 PyObject * obj0 = 0 ;
64325 PyObject * obj1 = 0 ;
64326 Swig::Director *director = 0;
64328
64329 if (!PyArg_UnpackTuple(args, "RoutingModel_MakeSelfDependentDimensionFinalizer", 2, 2, &obj0, &obj1)) SWIG_fail;
64331 if (!SWIG_IsOK(res1)) {
64332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingModel_MakeSelfDependentDimensionFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
64333 }
64334 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64336 if (!SWIG_IsOK(res2)) {
64337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RoutingModel_MakeSelfDependentDimensionFinalizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const *""'");
64338 }
64339 arg2 = reinterpret_cast< operations_research::RoutingDimension * >(argp2);
64340 {
64341 try {
64342 result = (operations_research::DecisionBuilder *)(arg1)->MakeSelfDependentDimensionFinalizer((operations_research::RoutingDimension const *)arg2);
64343 }
64344 catch (Swig::DirectorException &e) {
64345 SWIG_fail;
64346 }
64347 }
64348 director = SWIG_DIRECTOR_CAST(result);
64349 if (director) {
64350 resultobj = director->swig_get_self();
64351 Py_INCREF(resultobj);
64352 } else {
64354 }
64355 return resultobj;
64356fail:
64357 return NULL;
64358}
64359
64360
64361SWIGINTERN PyObject *RoutingModel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64362 PyObject *obj;
64363 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
64365 return SWIG_Py_Void();
64366}
64367
64368SWIGINTERN PyObject *RoutingModel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64369 return SWIG_Python_InitShadowInstance(args);
64370}
64371
64373 SWIG_Error(SWIG_AttributeError,"Variable RoutingModelVisitor_kLightElement is read-only.");
64374 return 1;
64375}
64376
64377
64379 PyObject *pyobj = 0;
64380
64382 return pyobj;
64383}
64384
64385
64387 SWIG_Error(SWIG_AttributeError,"Variable RoutingModelVisitor_kLightElement2 is read-only.");
64388 return 1;
64389}
64390
64391
64393 PyObject *pyobj = 0;
64394
64396 return pyobj;
64397}
64398
64399
64401 SWIG_Error(SWIG_AttributeError,"Variable RoutingModelVisitor_kRemoveValues is read-only.");
64402 return 1;
64403}
64404
64405
64407 PyObject *pyobj = 0;
64408
64410 return pyobj;
64411}
64412
64413
64414SWIGINTERN PyObject *_wrap_new_RoutingModelVisitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64415 PyObject *resultobj = 0;
64417
64418 if (!PyArg_UnpackTuple(args, "new_RoutingModelVisitor", 0, 0)) SWIG_fail;
64419 {
64420 try {
64422 }
64423 catch (Swig::DirectorException &e) {
64424 SWIG_fail;
64425 }
64426 }
64428 return resultobj;
64429fail:
64430 return NULL;
64431}
64432
64433
64434SWIGINTERN PyObject *_wrap_delete_RoutingModelVisitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64435 PyObject *resultobj = 0;
64437 void *argp1 = 0 ;
64438 int res1 = 0 ;
64439 PyObject * obj0 = 0 ;
64440
64441 if (!PyArg_UnpackTuple(args, "delete_RoutingModelVisitor", 1, 1, &obj0)) SWIG_fail;
64443 if (!SWIG_IsOK(res1)) {
64444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RoutingModelVisitor" "', argument " "1"" of type '" "operations_research::RoutingModelVisitor *""'");
64445 }
64446 arg1 = reinterpret_cast< operations_research::RoutingModelVisitor * >(argp1);
64447 {
64448 try {
64449 delete arg1;
64450 }
64451 catch (Swig::DirectorException &e) {
64452 SWIG_fail;
64453 }
64454 }
64455 resultobj = SWIG_Py_Void();
64456 return resultobj;
64457fail:
64458 return NULL;
64459}
64460
64461
64462SWIGINTERN PyObject *RoutingModelVisitor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64463 PyObject *obj;
64464 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
64466 return SWIG_Py_Void();
64467}
64468
64469SWIGINTERN PyObject *RoutingModelVisitor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64470 return SWIG_Python_InitShadowInstance(args);
64471}
64472
64473SWIGINTERN PyObject *_wrap_new_GlobalVehicleBreaksConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64474 PyObject *resultobj = 0;
64476 void *argp1 = 0 ;
64477 int res1 = 0 ;
64478 PyObject * obj0 = 0 ;
64480
64481 if (!PyArg_UnpackTuple(args, "new_GlobalVehicleBreaksConstraint", 1, 1, &obj0)) SWIG_fail;
64483 if (!SWIG_IsOK(res1)) {
64484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GlobalVehicleBreaksConstraint" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
64485 }
64486 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
64487 {
64488 try {
64490 }
64491 catch (Swig::DirectorException &e) {
64492 SWIG_fail;
64493 }
64494 }
64496 return resultobj;
64497fail:
64498 return NULL;
64499}
64500
64501
64503 PyObject *resultobj = 0;
64505 void *argp1 = 0 ;
64506 int res1 = 0 ;
64507 PyObject * obj0 = 0 ;
64508 std::string result;
64509
64510 if (!PyArg_UnpackTuple(args, "GlobalVehicleBreaksConstraint_DebugString", 1, 1, &obj0)) SWIG_fail;
64512 if (!SWIG_IsOK(res1)) {
64513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GlobalVehicleBreaksConstraint_DebugString" "', argument " "1"" of type '" "operations_research::GlobalVehicleBreaksConstraint const *""'");
64514 }
64515 arg1 = reinterpret_cast< operations_research::GlobalVehicleBreaksConstraint * >(argp1);
64516 {
64517 try {
64519 }
64520 catch (Swig::DirectorException &e) {
64521 SWIG_fail;
64522 }
64523 }
64524 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
64525 return resultobj;
64526fail:
64527 return NULL;
64528}
64529
64530
64531SWIGINTERN PyObject *_wrap_GlobalVehicleBreaksConstraint_Post(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64532 PyObject *resultobj = 0;
64534 void *argp1 = 0 ;
64535 int res1 = 0 ;
64536 PyObject * obj0 = 0 ;
64537
64538 if (!PyArg_UnpackTuple(args, "GlobalVehicleBreaksConstraint_Post", 1, 1, &obj0)) SWIG_fail;
64540 if (!SWIG_IsOK(res1)) {
64541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GlobalVehicleBreaksConstraint_Post" "', argument " "1"" of type '" "operations_research::GlobalVehicleBreaksConstraint *""'");
64542 }
64543 arg1 = reinterpret_cast< operations_research::GlobalVehicleBreaksConstraint * >(argp1);
64544 {
64545 try {
64546 (arg1)->Post();
64547 }
64548 catch (Swig::DirectorException &e) {
64549 SWIG_fail;
64550 }
64551 }
64552 resultobj = SWIG_Py_Void();
64553 return resultobj;
64554fail:
64555 return NULL;
64556}
64557
64558
64560 PyObject *resultobj = 0;
64562 void *argp1 = 0 ;
64563 int res1 = 0 ;
64564 PyObject * obj0 = 0 ;
64565
64566 if (!PyArg_UnpackTuple(args, "GlobalVehicleBreaksConstraint_InitialPropagateWrapper", 1, 1, &obj0)) SWIG_fail;
64568 if (!SWIG_IsOK(res1)) {
64569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GlobalVehicleBreaksConstraint_InitialPropagateWrapper" "', argument " "1"" of type '" "operations_research::GlobalVehicleBreaksConstraint *""'");
64570 }
64571 arg1 = reinterpret_cast< operations_research::GlobalVehicleBreaksConstraint * >(argp1);
64572 {
64573 try {
64574 (arg1)->InitialPropagate();
64575 }
64576 catch (Swig::DirectorException &e) {
64577 SWIG_fail;
64578 }
64579 }
64580 resultobj = SWIG_Py_Void();
64581 return resultobj;
64582fail:
64583 return NULL;
64584}
64585
64586
64588 PyObject *resultobj = 0;
64590 void *argp1 = 0 ;
64591 int res1 = 0 ;
64592 PyObject * obj0 = 0 ;
64593
64594 if (!PyArg_UnpackTuple(args, "delete_GlobalVehicleBreaksConstraint", 1, 1, &obj0)) SWIG_fail;
64596 if (!SWIG_IsOK(res1)) {
64597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GlobalVehicleBreaksConstraint" "', argument " "1"" of type '" "operations_research::GlobalVehicleBreaksConstraint *""'");
64598 }
64599 arg1 = reinterpret_cast< operations_research::GlobalVehicleBreaksConstraint * >(argp1);
64600 {
64601 try {
64602 delete arg1;
64603 }
64604 catch (Swig::DirectorException &e) {
64605 SWIG_fail;
64606 }
64607 }
64608 resultobj = SWIG_Py_Void();
64609 return resultobj;
64610fail:
64611 return NULL;
64612}
64613
64614
64616 PyObject *obj;
64617 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
64619 return SWIG_Py_Void();
64620}
64621
64622SWIGINTERN PyObject *GlobalVehicleBreaksConstraint_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64623 return SWIG_Python_InitShadowInstance(args);
64624}
64625
64626SWIGINTERN PyObject *_wrap_delete_TypeRegulationsChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64627 PyObject *resultobj = 0;
64629 void *argp1 = 0 ;
64630 int res1 = 0 ;
64631 PyObject * obj0 = 0 ;
64632
64633 if (!PyArg_UnpackTuple(args, "delete_TypeRegulationsChecker", 1, 1, &obj0)) SWIG_fail;
64635 if (!SWIG_IsOK(res1)) {
64636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TypeRegulationsChecker" "', argument " "1"" of type '" "operations_research::TypeRegulationsChecker *""'");
64637 }
64638 arg1 = reinterpret_cast< operations_research::TypeRegulationsChecker * >(argp1);
64639 {
64640 try {
64641 delete arg1;
64642 }
64643 catch (Swig::DirectorException &e) {
64644 SWIG_fail;
64645 }
64646 }
64647 resultobj = SWIG_Py_Void();
64648 return resultobj;
64649fail:
64650 return NULL;
64651}
64652
64653
64654SWIGINTERN PyObject *_wrap_TypeRegulationsChecker_CheckVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64655 PyObject *resultobj = 0;
64657 int arg2 ;
64658 std::function< int64_t (int64_t) > *arg3 = 0 ;
64659 void *argp1 = 0 ;
64660 int res1 = 0 ;
64661 int val2 ;
64662 int ecode2 = 0 ;
64663 void *argp3 = 0 ;
64664 int res3 = 0 ;
64665 PyObject * obj0 = 0 ;
64666 PyObject * obj1 = 0 ;
64667 PyObject * obj2 = 0 ;
64668 bool result;
64669
64670 if (!PyArg_UnpackTuple(args, "TypeRegulationsChecker_CheckVehicle", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
64672 if (!SWIG_IsOK(res1)) {
64673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TypeRegulationsChecker_CheckVehicle" "', argument " "1"" of type '" "operations_research::TypeRegulationsChecker *""'");
64674 }
64675 arg1 = reinterpret_cast< operations_research::TypeRegulationsChecker * >(argp1);
64676 ecode2 = SWIG_AsVal_int(obj1, &val2);
64677 if (!SWIG_IsOK(ecode2)) {
64678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TypeRegulationsChecker_CheckVehicle" "', argument " "2"" of type '" "int""'");
64679 }
64680 arg2 = static_cast< int >(val2);
64681 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__functionT_long_flongF_t, 0 | 0);
64682 if (!SWIG_IsOK(res3)) {
64683 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TypeRegulationsChecker_CheckVehicle" "', argument " "3"" of type '" "std::function< int64_t (int64_t) > const &""'");
64684 }
64685 if (!argp3) {
64686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TypeRegulationsChecker_CheckVehicle" "', argument " "3"" of type '" "std::function< int64_t (int64_t) > const &""'");
64687 }
64688 arg3 = reinterpret_cast< std::function< int64_t (int64_t) > * >(argp3);
64689 {
64690 try {
64691 result = (bool)(arg1)->CheckVehicle(arg2,(std::function< int64_t (int64_t) > const &)*arg3);
64692 }
64693 catch (Swig::DirectorException &e) {
64694 SWIG_fail;
64695 }
64696 }
64697 resultobj = SWIG_From_bool(static_cast< bool >(result));
64698 return resultobj;
64699fail:
64700 return NULL;
64701}
64702
64703
64704SWIGINTERN PyObject *TypeRegulationsChecker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64705 PyObject *obj;
64706 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
64708 return SWIG_Py_Void();
64709}
64710
64711SWIGINTERN PyObject *_wrap_new_TypeIncompatibilityChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64712 PyObject *resultobj = 0;
64714 bool arg2 ;
64715 void *argp1 = 0 ;
64716 int res1 = 0 ;
64717 bool val2 ;
64718 int ecode2 = 0 ;
64719 PyObject * obj0 = 0 ;
64720 PyObject * obj1 = 0 ;
64722
64723 if (!PyArg_UnpackTuple(args, "new_TypeIncompatibilityChecker", 2, 2, &obj0, &obj1)) SWIG_fail;
64725 if (!SWIG_IsOK(res1)) {
64726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TypeIncompatibilityChecker" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64727 }
64728 if (!argp1) {
64729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TypeIncompatibilityChecker" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64730 }
64731 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64732 ecode2 = SWIG_AsVal_bool(obj1, &val2);
64733 if (!SWIG_IsOK(ecode2)) {
64734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TypeIncompatibilityChecker" "', argument " "2"" of type '" "bool""'");
64735 }
64736 arg2 = static_cast< bool >(val2);
64737 {
64738 try {
64740 }
64741 catch (Swig::DirectorException &e) {
64742 SWIG_fail;
64743 }
64744 }
64746 return resultobj;
64747fail:
64748 return NULL;
64749}
64750
64751
64752SWIGINTERN PyObject *_wrap_delete_TypeIncompatibilityChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64753 PyObject *resultobj = 0;
64755 void *argp1 = 0 ;
64756 int res1 = 0 ;
64757 PyObject * obj0 = 0 ;
64758
64759 if (!PyArg_UnpackTuple(args, "delete_TypeIncompatibilityChecker", 1, 1, &obj0)) SWIG_fail;
64761 if (!SWIG_IsOK(res1)) {
64762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TypeIncompatibilityChecker" "', argument " "1"" of type '" "operations_research::TypeIncompatibilityChecker *""'");
64763 }
64764 arg1 = reinterpret_cast< operations_research::TypeIncompatibilityChecker * >(argp1);
64765 {
64766 try {
64767 delete arg1;
64768 }
64769 catch (Swig::DirectorException &e) {
64770 SWIG_fail;
64771 }
64772 }
64773 resultobj = SWIG_Py_Void();
64774 return resultobj;
64775fail:
64776 return NULL;
64777}
64778
64779
64780SWIGINTERN PyObject *TypeIncompatibilityChecker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64781 PyObject *obj;
64782 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
64784 return SWIG_Py_Void();
64785}
64786
64787SWIGINTERN PyObject *TypeIncompatibilityChecker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64788 return SWIG_Python_InitShadowInstance(args);
64789}
64790
64791SWIGINTERN PyObject *_wrap_new_TypeRequirementChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64792 PyObject *resultobj = 0;
64794 void *argp1 = 0 ;
64795 int res1 = 0 ;
64796 PyObject * obj0 = 0 ;
64798
64799 if (!PyArg_UnpackTuple(args, "new_TypeRequirementChecker", 1, 1, &obj0)) SWIG_fail;
64801 if (!SWIG_IsOK(res1)) {
64802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TypeRequirementChecker" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64803 }
64804 if (!argp1) {
64805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TypeRequirementChecker" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64806 }
64807 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64808 {
64809 try {
64811 }
64812 catch (Swig::DirectorException &e) {
64813 SWIG_fail;
64814 }
64815 }
64817 return resultobj;
64818fail:
64819 return NULL;
64820}
64821
64822
64823SWIGINTERN PyObject *_wrap_delete_TypeRequirementChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64824 PyObject *resultobj = 0;
64826 void *argp1 = 0 ;
64827 int res1 = 0 ;
64828 PyObject * obj0 = 0 ;
64829
64830 if (!PyArg_UnpackTuple(args, "delete_TypeRequirementChecker", 1, 1, &obj0)) SWIG_fail;
64832 if (!SWIG_IsOK(res1)) {
64833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TypeRequirementChecker" "', argument " "1"" of type '" "operations_research::TypeRequirementChecker *""'");
64834 }
64835 arg1 = reinterpret_cast< operations_research::TypeRequirementChecker * >(argp1);
64836 {
64837 try {
64838 delete arg1;
64839 }
64840 catch (Swig::DirectorException &e) {
64841 SWIG_fail;
64842 }
64843 }
64844 resultobj = SWIG_Py_Void();
64845 return resultobj;
64846fail:
64847 return NULL;
64848}
64849
64850
64851SWIGINTERN PyObject *TypeRequirementChecker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64852 PyObject *obj;
64853 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
64855 return SWIG_Py_Void();
64856}
64857
64858SWIGINTERN PyObject *TypeRequirementChecker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64859 return SWIG_Python_InitShadowInstance(args);
64860}
64861
64862SWIGINTERN PyObject *_wrap_new_TypeRegulationsConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64863 PyObject *resultobj = 0;
64865 void *argp1 = 0 ;
64866 int res1 = 0 ;
64867 PyObject * obj0 = 0 ;
64869
64870 if (!PyArg_UnpackTuple(args, "new_TypeRegulationsConstraint", 1, 1, &obj0)) SWIG_fail;
64872 if (!SWIG_IsOK(res1)) {
64873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TypeRegulationsConstraint" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64874 }
64875 if (!argp1) {
64876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TypeRegulationsConstraint" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64877 }
64878 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64879 {
64880 try {
64882 }
64883 catch (Swig::DirectorException &e) {
64884 SWIG_fail;
64885 }
64886 }
64888 return resultobj;
64889fail:
64890 return NULL;
64891}
64892
64893
64894SWIGINTERN PyObject *_wrap_TypeRegulationsConstraint_Post(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64895 PyObject *resultobj = 0;
64897 void *argp1 = 0 ;
64898 int res1 = 0 ;
64899 PyObject * obj0 = 0 ;
64900
64901 if (!PyArg_UnpackTuple(args, "TypeRegulationsConstraint_Post", 1, 1, &obj0)) SWIG_fail;
64903 if (!SWIG_IsOK(res1)) {
64904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TypeRegulationsConstraint_Post" "', argument " "1"" of type '" "operations_research::TypeRegulationsConstraint *""'");
64905 }
64906 arg1 = reinterpret_cast< operations_research::TypeRegulationsConstraint * >(argp1);
64907 {
64908 try {
64909 (arg1)->Post();
64910 }
64911 catch (Swig::DirectorException &e) {
64912 SWIG_fail;
64913 }
64914 }
64915 resultobj = SWIG_Py_Void();
64916 return resultobj;
64917fail:
64918 return NULL;
64919}
64920
64921
64923 PyObject *resultobj = 0;
64925 void *argp1 = 0 ;
64926 int res1 = 0 ;
64927 PyObject * obj0 = 0 ;
64928
64929 if (!PyArg_UnpackTuple(args, "TypeRegulationsConstraint_InitialPropagateWrapper", 1, 1, &obj0)) SWIG_fail;
64931 if (!SWIG_IsOK(res1)) {
64932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TypeRegulationsConstraint_InitialPropagateWrapper" "', argument " "1"" of type '" "operations_research::TypeRegulationsConstraint *""'");
64933 }
64934 arg1 = reinterpret_cast< operations_research::TypeRegulationsConstraint * >(argp1);
64935 {
64936 try {
64937 (arg1)->InitialPropagate();
64938 }
64939 catch (Swig::DirectorException &e) {
64940 SWIG_fail;
64941 }
64942 }
64943 resultobj = SWIG_Py_Void();
64944 return resultobj;
64945fail:
64946 return NULL;
64947}
64948
64949
64950SWIGINTERN PyObject *_wrap_delete_TypeRegulationsConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64951 PyObject *resultobj = 0;
64953 void *argp1 = 0 ;
64954 int res1 = 0 ;
64955 PyObject * obj0 = 0 ;
64956
64957 if (!PyArg_UnpackTuple(args, "delete_TypeRegulationsConstraint", 1, 1, &obj0)) SWIG_fail;
64959 if (!SWIG_IsOK(res1)) {
64960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TypeRegulationsConstraint" "', argument " "1"" of type '" "operations_research::TypeRegulationsConstraint *""'");
64961 }
64962 arg1 = reinterpret_cast< operations_research::TypeRegulationsConstraint * >(argp1);
64963 {
64964 try {
64965 delete arg1;
64966 }
64967 catch (Swig::DirectorException &e) {
64968 SWIG_fail;
64969 }
64970 }
64971 resultobj = SWIG_Py_Void();
64972 return resultobj;
64973fail:
64974 return NULL;
64975}
64976
64977
64978SWIGINTERN PyObject *TypeRegulationsConstraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64979 PyObject *obj;
64980 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
64982 return SWIG_Py_Void();
64983}
64984
64985SWIGINTERN PyObject *TypeRegulationsConstraint_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64986 return SWIG_Python_InitShadowInstance(args);
64987}
64988
64989SWIGINTERN PyObject *_wrap_delete_RoutingDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64990 PyObject *resultobj = 0;
64992 void *argp1 = 0 ;
64993 int res1 = 0 ;
64994 PyObject * obj0 = 0 ;
64995
64996 if (!PyArg_UnpackTuple(args, "delete_RoutingDimension", 1, 1, &obj0)) SWIG_fail;
64998 if (!SWIG_IsOK(res1)) {
64999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RoutingDimension" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65000 }
65001 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65002 {
65003 try {
65004 delete arg1;
65005 }
65006 catch (Swig::DirectorException &e) {
65007 SWIG_fail;
65008 }
65009 }
65010 resultobj = SWIG_Py_Void();
65011 return resultobj;
65012fail:
65013 return NULL;
65014}
65015
65016
65017SWIGINTERN PyObject *_wrap_RoutingDimension_model(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65018 PyObject *resultobj = 0;
65020 void *argp1 = 0 ;
65021 int res1 = 0 ;
65022 PyObject * obj0 = 0 ;
65024
65025 if (!PyArg_UnpackTuple(args, "RoutingDimension_model", 1, 1, &obj0)) SWIG_fail;
65027 if (!SWIG_IsOK(res1)) {
65028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_model" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65029 }
65030 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65031 {
65032 try {
65034 }
65035 catch (Swig::DirectorException &e) {
65036 SWIG_fail;
65037 }
65038 }
65040 return resultobj;
65041fail:
65042 return NULL;
65043}
65044
65045
65046SWIGINTERN PyObject *_wrap_RoutingDimension_GetTransitValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65047 PyObject *resultobj = 0;
65049 int64_t arg2 ;
65050 int64_t arg3 ;
65051 int64_t arg4 ;
65052 void *argp1 = 0 ;
65053 int res1 = 0 ;
65054 long val2 ;
65055 int ecode2 = 0 ;
65056 long val3 ;
65057 int ecode3 = 0 ;
65058 long val4 ;
65059 int ecode4 = 0 ;
65060 PyObject * obj0 = 0 ;
65061 PyObject * obj1 = 0 ;
65062 PyObject * obj2 = 0 ;
65063 PyObject * obj3 = 0 ;
65064 int64_t result;
65065
65066 if (!PyArg_UnpackTuple(args, "RoutingDimension_GetTransitValue", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
65068 if (!SWIG_IsOK(res1)) {
65069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_GetTransitValue" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65070 }
65071 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65072 ecode2 = SWIG_AsVal_long(obj1, &val2);
65073 if (!SWIG_IsOK(ecode2)) {
65074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_GetTransitValue" "', argument " "2"" of type '" "int64_t""'");
65075 }
65076 arg2 = static_cast< int64_t >(val2);
65077 ecode3 = SWIG_AsVal_long(obj2, &val3);
65078 if (!SWIG_IsOK(ecode3)) {
65079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingDimension_GetTransitValue" "', argument " "3"" of type '" "int64_t""'");
65080 }
65081 arg3 = static_cast< int64_t >(val3);
65082 ecode4 = SWIG_AsVal_long(obj3, &val4);
65083 if (!SWIG_IsOK(ecode4)) {
65084 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingDimension_GetTransitValue" "', argument " "4"" of type '" "int64_t""'");
65085 }
65086 arg4 = static_cast< int64_t >(val4);
65087 {
65088 try {
65089 result = (int64_t)((operations_research::RoutingDimension const *)arg1)->GetTransitValue(arg2,arg3,arg4);
65090 }
65091 catch (Swig::DirectorException &e) {
65092 SWIG_fail;
65093 }
65094 }
65095 resultobj = SWIG_From_long(static_cast< long >(result));
65096 return resultobj;
65097fail:
65098 return NULL;
65099}
65100
65101
65103 PyObject *resultobj = 0;
65105 int64_t arg2 ;
65106 int64_t arg3 ;
65107 int64_t arg4 ;
65108 void *argp1 = 0 ;
65109 int res1 = 0 ;
65110 long val2 ;
65111 int ecode2 = 0 ;
65112 long val3 ;
65113 int ecode3 = 0 ;
65114 long val4 ;
65115 int ecode4 = 0 ;
65116 PyObject * obj0 = 0 ;
65117 PyObject * obj1 = 0 ;
65118 PyObject * obj2 = 0 ;
65119 PyObject * obj3 = 0 ;
65120 int64_t result;
65121
65122 if (!PyArg_UnpackTuple(args, "RoutingDimension_GetTransitValueFromClass", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
65124 if (!SWIG_IsOK(res1)) {
65125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_GetTransitValueFromClass" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65126 }
65127 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65128 ecode2 = SWIG_AsVal_long(obj1, &val2);
65129 if (!SWIG_IsOK(ecode2)) {
65130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_GetTransitValueFromClass" "', argument " "2"" of type '" "int64_t""'");
65131 }
65132 arg2 = static_cast< int64_t >(val2);
65133 ecode3 = SWIG_AsVal_long(obj2, &val3);
65134 if (!SWIG_IsOK(ecode3)) {
65135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingDimension_GetTransitValueFromClass" "', argument " "3"" of type '" "int64_t""'");
65136 }
65137 arg3 = static_cast< int64_t >(val3);
65138 ecode4 = SWIG_AsVal_long(obj3, &val4);
65139 if (!SWIG_IsOK(ecode4)) {
65140 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingDimension_GetTransitValueFromClass" "', argument " "4"" of type '" "int64_t""'");
65141 }
65142 arg4 = static_cast< int64_t >(val4);
65143 {
65144 try {
65145 result = (int64_t)((operations_research::RoutingDimension const *)arg1)->GetTransitValueFromClass(arg2,arg3,arg4);
65146 }
65147 catch (Swig::DirectorException &e) {
65148 SWIG_fail;
65149 }
65150 }
65151 resultobj = SWIG_From_long(static_cast< long >(result));
65152 return resultobj;
65153fail:
65154 return NULL;
65155}
65156
65157
65158SWIGINTERN PyObject *_wrap_RoutingDimension_CumulVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65159 PyObject *resultobj = 0;
65161 int64_t arg2 ;
65162 void *argp1 = 0 ;
65163 int res1 = 0 ;
65164 long val2 ;
65165 int ecode2 = 0 ;
65166 PyObject * obj0 = 0 ;
65167 PyObject * obj1 = 0 ;
65168 operations_research::IntVar *result = 0 ;
65169
65170 if (!PyArg_UnpackTuple(args, "RoutingDimension_CumulVar", 2, 2, &obj0, &obj1)) SWIG_fail;
65172 if (!SWIG_IsOK(res1)) {
65173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_CumulVar" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65174 }
65175 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65176 ecode2 = SWIG_AsVal_long(obj1, &val2);
65177 if (!SWIG_IsOK(ecode2)) {
65178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_CumulVar" "', argument " "2"" of type '" "int64_t""'");
65179 }
65180 arg2 = static_cast< int64_t >(val2);
65181 {
65182 try {
65183 result = (operations_research::IntVar *)((operations_research::RoutingDimension const *)arg1)->CumulVar(arg2);
65184 }
65185 catch (Swig::DirectorException &e) {
65186 SWIG_fail;
65187 }
65188 }
65190 return resultobj;
65191fail:
65192 return NULL;
65193}
65194
65195
65196SWIGINTERN PyObject *_wrap_RoutingDimension_TransitVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65197 PyObject *resultobj = 0;
65199 int64_t arg2 ;
65200 void *argp1 = 0 ;
65201 int res1 = 0 ;
65202 long val2 ;
65203 int ecode2 = 0 ;
65204 PyObject * obj0 = 0 ;
65205 PyObject * obj1 = 0 ;
65206 operations_research::IntVar *result = 0 ;
65207
65208 if (!PyArg_UnpackTuple(args, "RoutingDimension_TransitVar", 2, 2, &obj0, &obj1)) SWIG_fail;
65210 if (!SWIG_IsOK(res1)) {
65211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_TransitVar" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65212 }
65213 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65214 ecode2 = SWIG_AsVal_long(obj1, &val2);
65215 if (!SWIG_IsOK(ecode2)) {
65216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_TransitVar" "', argument " "2"" of type '" "int64_t""'");
65217 }
65218 arg2 = static_cast< int64_t >(val2);
65219 {
65220 try {
65221 result = (operations_research::IntVar *)((operations_research::RoutingDimension const *)arg1)->TransitVar(arg2);
65222 }
65223 catch (Swig::DirectorException &e) {
65224 SWIG_fail;
65225 }
65226 }
65228 return resultobj;
65229fail:
65230 return NULL;
65231}
65232
65233
65234SWIGINTERN PyObject *_wrap_RoutingDimension_FixedTransitVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65235 PyObject *resultobj = 0;
65237 int64_t arg2 ;
65238 void *argp1 = 0 ;
65239 int res1 = 0 ;
65240 long val2 ;
65241 int ecode2 = 0 ;
65242 PyObject * obj0 = 0 ;
65243 PyObject * obj1 = 0 ;
65244 operations_research::IntVar *result = 0 ;
65245
65246 if (!PyArg_UnpackTuple(args, "RoutingDimension_FixedTransitVar", 2, 2, &obj0, &obj1)) SWIG_fail;
65248 if (!SWIG_IsOK(res1)) {
65249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_FixedTransitVar" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65250 }
65251 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65252 ecode2 = SWIG_AsVal_long(obj1, &val2);
65253 if (!SWIG_IsOK(ecode2)) {
65254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_FixedTransitVar" "', argument " "2"" of type '" "int64_t""'");
65255 }
65256 arg2 = static_cast< int64_t >(val2);
65257 {
65258 try {
65259 result = (operations_research::IntVar *)((operations_research::RoutingDimension const *)arg1)->FixedTransitVar(arg2);
65260 }
65261 catch (Swig::DirectorException &e) {
65262 SWIG_fail;
65263 }
65264 }
65266 return resultobj;
65267fail:
65268 return NULL;
65269}
65270
65271
65272SWIGINTERN PyObject *_wrap_RoutingDimension_SlackVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65273 PyObject *resultobj = 0;
65275 int64_t arg2 ;
65276 void *argp1 = 0 ;
65277 int res1 = 0 ;
65278 long val2 ;
65279 int ecode2 = 0 ;
65280 PyObject * obj0 = 0 ;
65281 PyObject * obj1 = 0 ;
65282 operations_research::IntVar *result = 0 ;
65283
65284 if (!PyArg_UnpackTuple(args, "RoutingDimension_SlackVar", 2, 2, &obj0, &obj1)) SWIG_fail;
65286 if (!SWIG_IsOK(res1)) {
65287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_SlackVar" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65288 }
65289 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65290 ecode2 = SWIG_AsVal_long(obj1, &val2);
65291 if (!SWIG_IsOK(ecode2)) {
65292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_SlackVar" "', argument " "2"" of type '" "int64_t""'");
65293 }
65294 arg2 = static_cast< int64_t >(val2);
65295 {
65296 try {
65297 result = (operations_research::IntVar *)((operations_research::RoutingDimension const *)arg1)->SlackVar(arg2);
65298 }
65299 catch (Swig::DirectorException &e) {
65300 SWIG_fail;
65301 }
65302 }
65304 return resultobj;
65305fail:
65306 return NULL;
65307}
65308
65309
65311 PyObject *resultobj = 0;
65313 int64_t arg2 ;
65314 int arg3 ;
65315 void *argp1 = 0 ;
65316 int res1 = 0 ;
65317 long val2 ;
65318 int ecode2 = 0 ;
65319 int val3 ;
65320 int ecode3 = 0 ;
65321 PyObject * obj0 = 0 ;
65322 PyObject * obj1 = 0 ;
65323 PyObject * obj2 = 0 ;
65324
65325 if (!PyArg_UnpackTuple(args, "RoutingDimension_SetSpanUpperBoundForVehicle", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
65327 if (!SWIG_IsOK(res1)) {
65328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_SetSpanUpperBoundForVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65329 }
65330 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65331 ecode2 = SWIG_AsVal_long(obj1, &val2);
65332 if (!SWIG_IsOK(ecode2)) {
65333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_SetSpanUpperBoundForVehicle" "', argument " "2"" of type '" "int64_t""'");
65334 }
65335 arg2 = static_cast< int64_t >(val2);
65336 ecode3 = SWIG_AsVal_int(obj2, &val3);
65337 if (!SWIG_IsOK(ecode3)) {
65338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingDimension_SetSpanUpperBoundForVehicle" "', argument " "3"" of type '" "int""'");
65339 }
65340 arg3 = static_cast< int >(val3);
65341 {
65342 try {
65343 (arg1)->SetSpanUpperBoundForVehicle(arg2,arg3);
65344 }
65345 catch (Swig::DirectorException &e) {
65346 SWIG_fail;
65347 }
65348 }
65349 resultobj = SWIG_Py_Void();
65350 return resultobj;
65351fail:
65352 return NULL;
65353}
65354
65355
65357 PyObject *resultobj = 0;
65359 int64_t arg2 ;
65360 int arg3 ;
65361 void *argp1 = 0 ;
65362 int res1 = 0 ;
65363 long val2 ;
65364 int ecode2 = 0 ;
65365 int val3 ;
65366 int ecode3 = 0 ;
65367 PyObject * obj0 = 0 ;
65368 PyObject * obj1 = 0 ;
65369 PyObject * obj2 = 0 ;
65370
65371 if (!PyArg_UnpackTuple(args, "RoutingDimension_SetSpanCostCoefficientForVehicle", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
65373 if (!SWIG_IsOK(res1)) {
65374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_SetSpanCostCoefficientForVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65375 }
65376 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65377 ecode2 = SWIG_AsVal_long(obj1, &val2);
65378 if (!SWIG_IsOK(ecode2)) {
65379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_SetSpanCostCoefficientForVehicle" "', argument " "2"" of type '" "int64_t""'");
65380 }
65381 arg2 = static_cast< int64_t >(val2);
65382 ecode3 = SWIG_AsVal_int(obj2, &val3);
65383 if (!SWIG_IsOK(ecode3)) {
65384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingDimension_SetSpanCostCoefficientForVehicle" "', argument " "3"" of type '" "int""'");
65385 }
65386 arg3 = static_cast< int >(val3);
65387 {
65388 try {
65389 (arg1)->SetSpanCostCoefficientForVehicle(arg2,arg3);
65390 }
65391 catch (Swig::DirectorException &e) {
65392 SWIG_fail;
65393 }
65394 }
65395 resultobj = SWIG_Py_Void();
65396 return resultobj;
65397fail:
65398 return NULL;
65399}
65400
65401
65403 PyObject *resultobj = 0;
65405 int64_t arg2 ;
65406 void *argp1 = 0 ;
65407 int res1 = 0 ;
65408 long val2 ;
65409 int ecode2 = 0 ;
65410 PyObject * obj0 = 0 ;
65411 PyObject * obj1 = 0 ;
65412
65413 if (!PyArg_UnpackTuple(args, "RoutingDimension_SetSpanCostCoefficientForAllVehicles", 2, 2, &obj0, &obj1)) SWIG_fail;
65415 if (!SWIG_IsOK(res1)) {
65416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_SetSpanCostCoefficientForAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65417 }
65418 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65419 ecode2 = SWIG_AsVal_long(obj1, &val2);
65420 if (!SWIG_IsOK(ecode2)) {
65421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_SetSpanCostCoefficientForAllVehicles" "', argument " "2"" of type '" "int64_t""'");
65422 }
65423 arg2 = static_cast< int64_t >(val2);
65424 {
65425 try {
65426 (arg1)->SetSpanCostCoefficientForAllVehicles(arg2);
65427 }
65428 catch (Swig::DirectorException &e) {
65429 SWIG_fail;
65430 }
65431 }
65432 resultobj = SWIG_Py_Void();
65433 return resultobj;
65434fail:
65435 return NULL;
65436}
65437
65438
65440 PyObject *resultobj = 0;
65442 int64_t arg2 ;
65443 void *argp1 = 0 ;
65444 int res1 = 0 ;
65445 long val2 ;
65446 int ecode2 = 0 ;
65447 PyObject * obj0 = 0 ;
65448 PyObject * obj1 = 0 ;
65449
65450 if (!PyArg_UnpackTuple(args, "RoutingDimension_SetGlobalSpanCostCoefficient", 2, 2, &obj0, &obj1)) SWIG_fail;
65452 if (!SWIG_IsOK(res1)) {
65453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_SetGlobalSpanCostCoefficient" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65454 }
65455 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65456 ecode2 = SWIG_AsVal_long(obj1, &val2);
65457 if (!SWIG_IsOK(ecode2)) {
65458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_SetGlobalSpanCostCoefficient" "', argument " "2"" of type '" "int64_t""'");
65459 }
65460 arg2 = static_cast< int64_t >(val2);
65461 {
65462 try {
65463 (arg1)->SetGlobalSpanCostCoefficient(arg2);
65464 }
65465 catch (Swig::DirectorException &e) {
65466 SWIG_fail;
65467 }
65468 }
65469 resultobj = SWIG_Py_Void();
65470 return resultobj;
65471fail:
65472 return NULL;
65473}
65474
65475
65477 PyObject *resultobj = 0;
65479 int64_t arg2 ;
65480 int64_t arg3 ;
65481 int64_t arg4 ;
65482 void *argp1 = 0 ;
65483 int res1 = 0 ;
65484 long val2 ;
65485 int ecode2 = 0 ;
65486 long val3 ;
65487 int ecode3 = 0 ;
65488 long val4 ;
65489 int ecode4 = 0 ;
65490 PyObject * obj0 = 0 ;
65491 PyObject * obj1 = 0 ;
65492 PyObject * obj2 = 0 ;
65493 PyObject * obj3 = 0 ;
65494
65495 if (!PyArg_UnpackTuple(args, "RoutingDimension_SetCumulVarSoftUpperBound", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
65497 if (!SWIG_IsOK(res1)) {
65498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_SetCumulVarSoftUpperBound" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65499 }
65500 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65501 ecode2 = SWIG_AsVal_long(obj1, &val2);
65502 if (!SWIG_IsOK(ecode2)) {
65503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_SetCumulVarSoftUpperBound" "', argument " "2"" of type '" "int64_t""'");
65504 }
65505 arg2 = static_cast< int64_t >(val2);
65506 ecode3 = SWIG_AsVal_long(obj2, &val3);
65507 if (!SWIG_IsOK(ecode3)) {
65508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingDimension_SetCumulVarSoftUpperBound" "', argument " "3"" of type '" "int64_t""'");
65509 }
65510 arg3 = static_cast< int64_t >(val3);
65511 ecode4 = SWIG_AsVal_long(obj3, &val4);
65512 if (!SWIG_IsOK(ecode4)) {
65513 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingDimension_SetCumulVarSoftUpperBound" "', argument " "4"" of type '" "int64_t""'");
65514 }
65515 arg4 = static_cast< int64_t >(val4);
65516 {
65517 try {
65518 (arg1)->SetCumulVarSoftUpperBound(arg2,arg3,arg4);
65519 }
65520 catch (Swig::DirectorException &e) {
65521 SWIG_fail;
65522 }
65523 }
65524 resultobj = SWIG_Py_Void();
65525 return resultobj;
65526fail:
65527 return NULL;
65528}
65529
65530
65532 PyObject *resultobj = 0;
65534 int64_t arg2 ;
65535 void *argp1 = 0 ;
65536 int res1 = 0 ;
65537 long val2 ;
65538 int ecode2 = 0 ;
65539 PyObject * obj0 = 0 ;
65540 PyObject * obj1 = 0 ;
65541 bool result;
65542
65543 if (!PyArg_UnpackTuple(args, "RoutingDimension_HasCumulVarSoftUpperBound", 2, 2, &obj0, &obj1)) SWIG_fail;
65545 if (!SWIG_IsOK(res1)) {
65546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_HasCumulVarSoftUpperBound" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65547 }
65548 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65549 ecode2 = SWIG_AsVal_long(obj1, &val2);
65550 if (!SWIG_IsOK(ecode2)) {
65551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_HasCumulVarSoftUpperBound" "', argument " "2"" of type '" "int64_t""'");
65552 }
65553 arg2 = static_cast< int64_t >(val2);
65554 {
65555 try {
65556 result = (bool)((operations_research::RoutingDimension const *)arg1)->HasCumulVarSoftUpperBound(arg2);
65557 }
65558 catch (Swig::DirectorException &e) {
65559 SWIG_fail;
65560 }
65561 }
65562 resultobj = SWIG_From_bool(static_cast< bool >(result));
65563 return resultobj;
65564fail:
65565 return NULL;
65566}
65567
65568
65570 PyObject *resultobj = 0;
65572 int64_t arg2 ;
65573 void *argp1 = 0 ;
65574 int res1 = 0 ;
65575 long val2 ;
65576 int ecode2 = 0 ;
65577 PyObject * obj0 = 0 ;
65578 PyObject * obj1 = 0 ;
65579 int64_t result;
65580
65581 if (!PyArg_UnpackTuple(args, "RoutingDimension_GetCumulVarSoftUpperBound", 2, 2, &obj0, &obj1)) SWIG_fail;
65583 if (!SWIG_IsOK(res1)) {
65584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_GetCumulVarSoftUpperBound" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65585 }
65586 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65587 ecode2 = SWIG_AsVal_long(obj1, &val2);
65588 if (!SWIG_IsOK(ecode2)) {
65589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_GetCumulVarSoftUpperBound" "', argument " "2"" of type '" "int64_t""'");
65590 }
65591 arg2 = static_cast< int64_t >(val2);
65592 {
65593 try {
65594 result = (int64_t)((operations_research::RoutingDimension const *)arg1)->GetCumulVarSoftUpperBound(arg2);
65595 }
65596 catch (Swig::DirectorException &e) {
65597 SWIG_fail;
65598 }
65599 }
65600 resultobj = SWIG_From_long(static_cast< long >(result));
65601 return resultobj;
65602fail:
65603 return NULL;
65604}
65605
65606
65608 PyObject *resultobj = 0;
65610 int64_t arg2 ;
65611 void *argp1 = 0 ;
65612 int res1 = 0 ;
65613 long val2 ;
65614 int ecode2 = 0 ;
65615 PyObject * obj0 = 0 ;
65616 PyObject * obj1 = 0 ;
65617 int64_t result;
65618
65619 if (!PyArg_UnpackTuple(args, "RoutingDimension_GetCumulVarSoftUpperBoundCoefficient", 2, 2, &obj0, &obj1)) SWIG_fail;
65621 if (!SWIG_IsOK(res1)) {
65622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_GetCumulVarSoftUpperBoundCoefficient" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65623 }
65624 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65625 ecode2 = SWIG_AsVal_long(obj1, &val2);
65626 if (!SWIG_IsOK(ecode2)) {
65627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_GetCumulVarSoftUpperBoundCoefficient" "', argument " "2"" of type '" "int64_t""'");
65628 }
65629 arg2 = static_cast< int64_t >(val2);
65630 {
65631 try {
65632 result = (int64_t)((operations_research::RoutingDimension const *)arg1)->GetCumulVarSoftUpperBoundCoefficient(arg2);
65633 }
65634 catch (Swig::DirectorException &e) {
65635 SWIG_fail;
65636 }
65637 }
65638 resultobj = SWIG_From_long(static_cast< long >(result));
65639 return resultobj;
65640fail:
65641 return NULL;
65642}
65643
65644
65646 PyObject *resultobj = 0;
65648 int64_t arg2 ;
65649 int64_t arg3 ;
65650 int64_t arg4 ;
65651 void *argp1 = 0 ;
65652 int res1 = 0 ;
65653 long val2 ;
65654 int ecode2 = 0 ;
65655 long val3 ;
65656 int ecode3 = 0 ;
65657 long val4 ;
65658 int ecode4 = 0 ;
65659 PyObject * obj0 = 0 ;
65660 PyObject * obj1 = 0 ;
65661 PyObject * obj2 = 0 ;
65662 PyObject * obj3 = 0 ;
65663
65664 if (!PyArg_UnpackTuple(args, "RoutingDimension_SetCumulVarSoftLowerBound", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
65666 if (!SWIG_IsOK(res1)) {
65667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_SetCumulVarSoftLowerBound" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65668 }
65669 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65670 ecode2 = SWIG_AsVal_long(obj1, &val2);
65671 if (!SWIG_IsOK(ecode2)) {
65672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_SetCumulVarSoftLowerBound" "', argument " "2"" of type '" "int64_t""'");
65673 }
65674 arg2 = static_cast< int64_t >(val2);
65675 ecode3 = SWIG_AsVal_long(obj2, &val3);
65676 if (!SWIG_IsOK(ecode3)) {
65677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingDimension_SetCumulVarSoftLowerBound" "', argument " "3"" of type '" "int64_t""'");
65678 }
65679 arg3 = static_cast< int64_t >(val3);
65680 ecode4 = SWIG_AsVal_long(obj3, &val4);
65681 if (!SWIG_IsOK(ecode4)) {
65682 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingDimension_SetCumulVarSoftLowerBound" "', argument " "4"" of type '" "int64_t""'");
65683 }
65684 arg4 = static_cast< int64_t >(val4);
65685 {
65686 try {
65687 (arg1)->SetCumulVarSoftLowerBound(arg2,arg3,arg4);
65688 }
65689 catch (Swig::DirectorException &e) {
65690 SWIG_fail;
65691 }
65692 }
65693 resultobj = SWIG_Py_Void();
65694 return resultobj;
65695fail:
65696 return NULL;
65697}
65698
65699
65701 PyObject *resultobj = 0;
65703 int64_t arg2 ;
65704 void *argp1 = 0 ;
65705 int res1 = 0 ;
65706 long val2 ;
65707 int ecode2 = 0 ;
65708 PyObject * obj0 = 0 ;
65709 PyObject * obj1 = 0 ;
65710 bool result;
65711
65712 if (!PyArg_UnpackTuple(args, "RoutingDimension_HasCumulVarSoftLowerBound", 2, 2, &obj0, &obj1)) SWIG_fail;
65714 if (!SWIG_IsOK(res1)) {
65715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_HasCumulVarSoftLowerBound" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65716 }
65717 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65718 ecode2 = SWIG_AsVal_long(obj1, &val2);
65719 if (!SWIG_IsOK(ecode2)) {
65720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_HasCumulVarSoftLowerBound" "', argument " "2"" of type '" "int64_t""'");
65721 }
65722 arg2 = static_cast< int64_t >(val2);
65723 {
65724 try {
65725 result = (bool)((operations_research::RoutingDimension const *)arg1)->HasCumulVarSoftLowerBound(arg2);
65726 }
65727 catch (Swig::DirectorException &e) {
65728 SWIG_fail;
65729 }
65730 }
65731 resultobj = SWIG_From_bool(static_cast< bool >(result));
65732 return resultobj;
65733fail:
65734 return NULL;
65735}
65736
65737
65739 PyObject *resultobj = 0;
65741 int64_t arg2 ;
65742 void *argp1 = 0 ;
65743 int res1 = 0 ;
65744 long val2 ;
65745 int ecode2 = 0 ;
65746 PyObject * obj0 = 0 ;
65747 PyObject * obj1 = 0 ;
65748 int64_t result;
65749
65750 if (!PyArg_UnpackTuple(args, "RoutingDimension_GetCumulVarSoftLowerBound", 2, 2, &obj0, &obj1)) SWIG_fail;
65752 if (!SWIG_IsOK(res1)) {
65753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_GetCumulVarSoftLowerBound" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65754 }
65755 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65756 ecode2 = SWIG_AsVal_long(obj1, &val2);
65757 if (!SWIG_IsOK(ecode2)) {
65758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_GetCumulVarSoftLowerBound" "', argument " "2"" of type '" "int64_t""'");
65759 }
65760 arg2 = static_cast< int64_t >(val2);
65761 {
65762 try {
65763 result = (int64_t)((operations_research::RoutingDimension const *)arg1)->GetCumulVarSoftLowerBound(arg2);
65764 }
65765 catch (Swig::DirectorException &e) {
65766 SWIG_fail;
65767 }
65768 }
65769 resultobj = SWIG_From_long(static_cast< long >(result));
65770 return resultobj;
65771fail:
65772 return NULL;
65773}
65774
65775
65777 PyObject *resultobj = 0;
65779 int64_t arg2 ;
65780 void *argp1 = 0 ;
65781 int res1 = 0 ;
65782 long val2 ;
65783 int ecode2 = 0 ;
65784 PyObject * obj0 = 0 ;
65785 PyObject * obj1 = 0 ;
65786 int64_t result;
65787
65788 if (!PyArg_UnpackTuple(args, "RoutingDimension_GetCumulVarSoftLowerBoundCoefficient", 2, 2, &obj0, &obj1)) SWIG_fail;
65790 if (!SWIG_IsOK(res1)) {
65791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_GetCumulVarSoftLowerBoundCoefficient" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65792 }
65793 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65794 ecode2 = SWIG_AsVal_long(obj1, &val2);
65795 if (!SWIG_IsOK(ecode2)) {
65796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_GetCumulVarSoftLowerBoundCoefficient" "', argument " "2"" of type '" "int64_t""'");
65797 }
65798 arg2 = static_cast< int64_t >(val2);
65799 {
65800 try {
65801 result = (int64_t)((operations_research::RoutingDimension const *)arg1)->GetCumulVarSoftLowerBoundCoefficient(arg2);
65802 }
65803 catch (Swig::DirectorException &e) {
65804 SWIG_fail;
65805 }
65806 }
65807 resultobj = SWIG_From_long(static_cast< long >(result));
65808 return resultobj;
65809fail:
65810 return NULL;
65811}
65812
65813
65815 PyObject *resultobj = 0;
65817 SwigValueWrapper< std::vector< operations_research::IntervalVar * > > arg2 ;
65818 int arg3 ;
65819 std::vector< int64_t > arg4 ;
65820 void *argp1 = 0 ;
65821 int res1 = 0 ;
65822 std::vector< operations_research::IntervalVar * > temp2 ;
65823 int val3 ;
65824 int ecode3 = 0 ;
65825 std::vector< int64_t > temp4 ;
65826 PyObject * obj0 = 0 ;
65827 PyObject * obj1 = 0 ;
65828 PyObject * obj2 = 0 ;
65829 PyObject * obj3 = 0 ;
65830
65831 if (!PyArg_UnpackTuple(args, "RoutingDimension_SetBreakIntervalsOfVehicle", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
65833 if (!SWIG_IsOK(res1)) {
65834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_SetBreakIntervalsOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65835 }
65836 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65837 {
65838 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
65839 if (!PyErr_Occurred())
65840 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntervalVar*) expected");
65841 return NULL;
65842 }
65843 arg2 = std::move(temp2);
65844 }
65845 ecode3 = SWIG_AsVal_int(obj2, &val3);
65846 if (!SWIG_IsOK(ecode3)) {
65847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingDimension_SetBreakIntervalsOfVehicle" "', argument " "3"" of type '" "int""'");
65848 }
65849 arg3 = static_cast< int >(val3);
65850 {
65851 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
65852 if (!PyErr_Occurred())
65853 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
65854 return NULL;
65855 }
65856 arg4 = std::move(temp4);
65857 }
65858 {
65859 try {
65860 (arg1)->SetBreakIntervalsOfVehicle(arg2,arg3,arg4);
65861 }
65862 catch (Swig::DirectorException &e) {
65863 SWIG_fail;
65864 }
65865 }
65866 resultobj = SWIG_Py_Void();
65867 return resultobj;
65868fail:
65869 return NULL;
65870}
65871
65872
65874 PyObject *resultobj = 0;
65876 int64_t arg2 ;
65877 int64_t arg3 ;
65878 int arg4 ;
65879 void *argp1 = 0 ;
65880 int res1 = 0 ;
65881 long val2 ;
65882 int ecode2 = 0 ;
65883 long val3 ;
65884 int ecode3 = 0 ;
65885 int val4 ;
65886 int ecode4 = 0 ;
65887 PyObject * obj0 = 0 ;
65888 PyObject * obj1 = 0 ;
65889 PyObject * obj2 = 0 ;
65890 PyObject * obj3 = 0 ;
65891
65892 if (!PyArg_UnpackTuple(args, "RoutingDimension_SetBreakDistanceDurationOfVehicle", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
65894 if (!SWIG_IsOK(res1)) {
65895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_SetBreakDistanceDurationOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65896 }
65897 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65898 ecode2 = SWIG_AsVal_long(obj1, &val2);
65899 if (!SWIG_IsOK(ecode2)) {
65900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_SetBreakDistanceDurationOfVehicle" "', argument " "2"" of type '" "int64_t""'");
65901 }
65902 arg2 = static_cast< int64_t >(val2);
65903 ecode3 = SWIG_AsVal_long(obj2, &val3);
65904 if (!SWIG_IsOK(ecode3)) {
65905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingDimension_SetBreakDistanceDurationOfVehicle" "', argument " "3"" of type '" "int64_t""'");
65906 }
65907 arg3 = static_cast< int64_t >(val3);
65908 ecode4 = SWIG_AsVal_int(obj3, &val4);
65909 if (!SWIG_IsOK(ecode4)) {
65910 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingDimension_SetBreakDistanceDurationOfVehicle" "', argument " "4"" of type '" "int""'");
65911 }
65912 arg4 = static_cast< int >(val4);
65913 {
65914 try {
65915 (arg1)->SetBreakDistanceDurationOfVehicle(arg2,arg3,arg4);
65916 }
65917 catch (Swig::DirectorException &e) {
65918 SWIG_fail;
65919 }
65920 }
65921 resultobj = SWIG_Py_Void();
65922 return resultobj;
65923fail:
65924 return NULL;
65925}
65926
65927
65928SWIGINTERN PyObject *_wrap_RoutingDimension_InitializeBreaks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65929 PyObject *resultobj = 0;
65931 void *argp1 = 0 ;
65932 int res1 = 0 ;
65933 PyObject * obj0 = 0 ;
65934
65935 if (!PyArg_UnpackTuple(args, "RoutingDimension_InitializeBreaks", 1, 1, &obj0)) SWIG_fail;
65937 if (!SWIG_IsOK(res1)) {
65938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_InitializeBreaks" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65939 }
65940 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65941 {
65942 try {
65943 (arg1)->InitializeBreaks();
65944 }
65945 catch (Swig::DirectorException &e) {
65946 SWIG_fail;
65947 }
65948 }
65949 resultobj = SWIG_Py_Void();
65950 return resultobj;
65951fail:
65952 return NULL;
65953}
65954
65955
65957 PyObject *resultobj = 0;
65959 void *argp1 = 0 ;
65960 int res1 = 0 ;
65961 PyObject * obj0 = 0 ;
65962 bool result;
65963
65964 if (!PyArg_UnpackTuple(args, "RoutingDimension_HasBreakConstraints", 1, 1, &obj0)) SWIG_fail;
65966 if (!SWIG_IsOK(res1)) {
65967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_HasBreakConstraints" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65968 }
65969 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65970 {
65971 try {
65972 result = (bool)((operations_research::RoutingDimension const *)arg1)->HasBreakConstraints();
65973 }
65974 catch (Swig::DirectorException &e) {
65975 SWIG_fail;
65976 }
65977 }
65978 resultobj = SWIG_From_bool(static_cast< bool >(result));
65979 return resultobj;
65980fail:
65981 return NULL;
65982}
65983
65984
65986 PyObject *resultobj = 0;
65988 int arg2 ;
65989 void *argp1 = 0 ;
65990 int res1 = 0 ;
65991 int val2 ;
65992 int ecode2 = 0 ;
65993 PyObject * obj0 = 0 ;
65994 PyObject * obj1 = 0 ;
65995 int result;
65996
65997 if (!PyArg_UnpackTuple(args, "RoutingDimension_GetPreTravelEvaluatorOfVehicle", 2, 2, &obj0, &obj1)) SWIG_fail;
65999 if (!SWIG_IsOK(res1)) {
66000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_GetPreTravelEvaluatorOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66001 }
66002 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66003 ecode2 = SWIG_AsVal_int(obj1, &val2);
66004 if (!SWIG_IsOK(ecode2)) {
66005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_GetPreTravelEvaluatorOfVehicle" "', argument " "2"" of type '" "int""'");
66006 }
66007 arg2 = static_cast< int >(val2);
66008 {
66009 try {
66010 result = (int)((operations_research::RoutingDimension const *)arg1)->GetPreTravelEvaluatorOfVehicle(arg2);
66011 }
66012 catch (Swig::DirectorException &e) {
66013 SWIG_fail;
66014 }
66015 }
66016 resultobj = SWIG_From_int(static_cast< int >(result));
66017 return resultobj;
66018fail:
66019 return NULL;
66020}
66021
66022
66024 PyObject *resultobj = 0;
66026 int arg2 ;
66027 void *argp1 = 0 ;
66028 int res1 = 0 ;
66029 int val2 ;
66030 int ecode2 = 0 ;
66031 PyObject * obj0 = 0 ;
66032 PyObject * obj1 = 0 ;
66033 int result;
66034
66035 if (!PyArg_UnpackTuple(args, "RoutingDimension_GetPostTravelEvaluatorOfVehicle", 2, 2, &obj0, &obj1)) SWIG_fail;
66037 if (!SWIG_IsOK(res1)) {
66038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_GetPostTravelEvaluatorOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66039 }
66040 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66041 ecode2 = SWIG_AsVal_int(obj1, &val2);
66042 if (!SWIG_IsOK(ecode2)) {
66043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_GetPostTravelEvaluatorOfVehicle" "', argument " "2"" of type '" "int""'");
66044 }
66045 arg2 = static_cast< int >(val2);
66046 {
66047 try {
66048 result = (int)((operations_research::RoutingDimension const *)arg1)->GetPostTravelEvaluatorOfVehicle(arg2);
66049 }
66050 catch (Swig::DirectorException &e) {
66051 SWIG_fail;
66052 }
66053 }
66054 resultobj = SWIG_From_int(static_cast< int >(result));
66055 return resultobj;
66056fail:
66057 return NULL;
66058}
66059
66060
66061SWIGINTERN PyObject *_wrap_RoutingDimension_base_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
66062 PyObject *resultobj = 0;
66064 void *argp1 = 0 ;
66065 int res1 = 0 ;
66066 PyObject * obj0 = 0 ;
66068
66069 if (!PyArg_UnpackTuple(args, "RoutingDimension_base_dimension", 1, 1, &obj0)) SWIG_fail;
66071 if (!SWIG_IsOK(res1)) {
66072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_base_dimension" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66073 }
66074 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66075 {
66076 try {
66077 result = (operations_research::RoutingDimension *)((operations_research::RoutingDimension const *)arg1)->base_dimension();
66078 }
66079 catch (Swig::DirectorException &e) {
66080 SWIG_fail;
66081 }
66082 }
66084 return resultobj;
66085fail:
66086 return NULL;
66087}
66088
66089
66091 PyObject *resultobj = 0;
66093 int64_t arg2 ;
66094 void *argp1 = 0 ;
66095 int res1 = 0 ;
66096 long val2 ;
66097 int ecode2 = 0 ;
66098 PyObject * obj0 = 0 ;
66099 PyObject * obj1 = 0 ;
66100 int64_t result;
66101
66102 if (!PyArg_UnpackTuple(args, "RoutingDimension_ShortestTransitionSlack", 2, 2, &obj0, &obj1)) SWIG_fail;
66104 if (!SWIG_IsOK(res1)) {
66105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_ShortestTransitionSlack" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66106 }
66107 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66108 ecode2 = SWIG_AsVal_long(obj1, &val2);
66109 if (!SWIG_IsOK(ecode2)) {
66110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_ShortestTransitionSlack" "', argument " "2"" of type '" "int64_t""'");
66111 }
66112 arg2 = static_cast< int64_t >(val2);
66113 {
66114 try {
66115 result = (int64_t)((operations_research::RoutingDimension const *)arg1)->ShortestTransitionSlack(arg2);
66116 }
66117 catch (Swig::DirectorException &e) {
66118 SWIG_fail;
66119 }
66120 }
66121 resultobj = SWIG_From_long(static_cast< long >(result));
66122 return resultobj;
66123fail:
66124 return NULL;
66125}
66126
66127
66128SWIGINTERN PyObject *_wrap_RoutingDimension_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
66129 PyObject *resultobj = 0;
66131 void *argp1 = 0 ;
66132 int res1 = 0 ;
66133 PyObject * obj0 = 0 ;
66134 std::string *result = 0 ;
66135
66136 if (!PyArg_UnpackTuple(args, "RoutingDimension_name", 1, 1, &obj0)) SWIG_fail;
66138 if (!SWIG_IsOK(res1)) {
66139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_name" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66140 }
66141 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66142 {
66143 try {
66144 result = (std::string *) &((operations_research::RoutingDimension const *)arg1)->name();
66145 }
66146 catch (Swig::DirectorException &e) {
66147 SWIG_fail;
66148 }
66149 }
66150 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
66151 return resultobj;
66152fail:
66153 return NULL;
66154}
66155
66156
66158 PyObject *resultobj = 0;
66161 int arg3 ;
66162 void *argp1 = 0 ;
66163 int res1 = 0 ;
66164 int val3 ;
66165 int ecode3 = 0 ;
66166 PyObject * obj0 = 0 ;
66167 PyObject * obj1 = 0 ;
66168 PyObject * obj2 = 0 ;
66169
66170 if (!PyArg_UnpackTuple(args, "RoutingDimension_SetPickupToDeliveryLimitFunctionForPair", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
66172 if (!SWIG_IsOK(res1)) {
66173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_SetPickupToDeliveryLimitFunctionForPair" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
66174 }
66175 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66176 {
66177 SharedPyPtr input(obj1);
66178 arg2 = [input](int i, int j) {
66179 return InvokePythonCallableReturning<int64_t>(input.get(), "ii", i, j);
66180 };
66181 }
66182 ecode3 = SWIG_AsVal_int(obj2, &val3);
66183 if (!SWIG_IsOK(ecode3)) {
66184 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingDimension_SetPickupToDeliveryLimitFunctionForPair" "', argument " "3"" of type '" "int""'");
66185 }
66186 arg3 = static_cast< int >(val3);
66187 {
66188 try {
66189 (arg1)->SetPickupToDeliveryLimitFunctionForPair(arg2,arg3);
66190 }
66191 catch (Swig::DirectorException &e) {
66192 SWIG_fail;
66193 }
66194 }
66195 resultobj = SWIG_Py_Void();
66196 return resultobj;
66197fail:
66198 return NULL;
66199}
66200
66201
66203 PyObject *resultobj = 0;
66205 void *argp1 = 0 ;
66206 int res1 = 0 ;
66207 PyObject * obj0 = 0 ;
66208 bool result;
66209
66210 if (!PyArg_UnpackTuple(args, "RoutingDimension_HasPickupToDeliveryLimits", 1, 1, &obj0)) SWIG_fail;
66212 if (!SWIG_IsOK(res1)) {
66213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_HasPickupToDeliveryLimits" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66214 }
66215 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66216 {
66217 try {
66218 result = (bool)((operations_research::RoutingDimension const *)arg1)->HasPickupToDeliveryLimits();
66219 }
66220 catch (Swig::DirectorException &e) {
66221 SWIG_fail;
66222 }
66223 }
66224 resultobj = SWIG_From_bool(static_cast< bool >(result));
66225 return resultobj;
66226fail:
66227 return NULL;
66228}
66229
66230
66231SWIGINTERN PyObject *_wrap_RoutingDimension_AddNodePrecedence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
66232 PyObject *resultobj = 0;
66234 int64_t arg2 ;
66235 int64_t arg3 ;
66236 int64_t arg4 ;
66237 void *argp1 = 0 ;
66238 int res1 = 0 ;
66239 long val2 ;
66240 int ecode2 = 0 ;
66241 long val3 ;
66242 int ecode3 = 0 ;
66243 long val4 ;
66244 int ecode4 = 0 ;
66245 PyObject * obj0 = 0 ;
66246 PyObject * obj1 = 0 ;
66247 PyObject * obj2 = 0 ;
66248 PyObject * obj3 = 0 ;
66249
66250 if (!PyArg_UnpackTuple(args, "RoutingDimension_AddNodePrecedence", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
66252 if (!SWIG_IsOK(res1)) {
66253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_AddNodePrecedence" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
66254 }
66255 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66256 ecode2 = SWIG_AsVal_long(obj1, &val2);
66257 if (!SWIG_IsOK(ecode2)) {
66258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_AddNodePrecedence" "', argument " "2"" of type '" "int64_t""'");
66259 }
66260 arg2 = static_cast< int64_t >(val2);
66261 ecode3 = SWIG_AsVal_long(obj2, &val3);
66262 if (!SWIG_IsOK(ecode3)) {
66263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RoutingDimension_AddNodePrecedence" "', argument " "3"" of type '" "int64_t""'");
66264 }
66265 arg3 = static_cast< int64_t >(val3);
66266 ecode4 = SWIG_AsVal_long(obj3, &val4);
66267 if (!SWIG_IsOK(ecode4)) {
66268 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RoutingDimension_AddNodePrecedence" "', argument " "4"" of type '" "int64_t""'");
66269 }
66270 arg4 = static_cast< int64_t >(val4);
66271 {
66272 try {
66273 (arg1)->AddNodePrecedence(arg2,arg3,arg4);
66274 }
66275 catch (Swig::DirectorException &e) {
66276 SWIG_fail;
66277 }
66278 }
66279 resultobj = SWIG_Py_Void();
66280 return resultobj;
66281fail:
66282 return NULL;
66283}
66284
66285
66287 PyObject *resultobj = 0;
66289 int arg2 ;
66290 void *argp1 = 0 ;
66291 int res1 = 0 ;
66292 int val2 ;
66293 int ecode2 = 0 ;
66294 PyObject * obj0 = 0 ;
66295 PyObject * obj1 = 0 ;
66296 int64_t result;
66297
66298 if (!PyArg_UnpackTuple(args, "RoutingDimension_GetSpanUpperBoundForVehicle", 2, 2, &obj0, &obj1)) SWIG_fail;
66300 if (!SWIG_IsOK(res1)) {
66301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_GetSpanUpperBoundForVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66302 }
66303 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66304 ecode2 = SWIG_AsVal_int(obj1, &val2);
66305 if (!SWIG_IsOK(ecode2)) {
66306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_GetSpanUpperBoundForVehicle" "', argument " "2"" of type '" "int""'");
66307 }
66308 arg2 = static_cast< int >(val2);
66309 {
66310 try {
66311 result = (int64_t)((operations_research::RoutingDimension const *)arg1)->GetSpanUpperBoundForVehicle(arg2);
66312 }
66313 catch (Swig::DirectorException &e) {
66314 SWIG_fail;
66315 }
66316 }
66317 resultobj = SWIG_From_long(static_cast< long >(result));
66318 return resultobj;
66319fail:
66320 return NULL;
66321}
66322
66323
66325 PyObject *resultobj = 0;
66327 int arg2 ;
66328 void *argp1 = 0 ;
66329 int res1 = 0 ;
66330 int val2 ;
66331 int ecode2 = 0 ;
66332 PyObject * obj0 = 0 ;
66333 PyObject * obj1 = 0 ;
66334 int64_t result;
66335
66336 if (!PyArg_UnpackTuple(args, "RoutingDimension_GetSpanCostCoefficientForVehicle", 2, 2, &obj0, &obj1)) SWIG_fail;
66338 if (!SWIG_IsOK(res1)) {
66339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_GetSpanCostCoefficientForVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66340 }
66341 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66342 ecode2 = SWIG_AsVal_int(obj1, &val2);
66343 if (!SWIG_IsOK(ecode2)) {
66344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_GetSpanCostCoefficientForVehicle" "', argument " "2"" of type '" "int""'");
66345 }
66346 arg2 = static_cast< int >(val2);
66347 {
66348 try {
66349 result = (int64_t)((operations_research::RoutingDimension const *)arg1)->GetSpanCostCoefficientForVehicle(arg2);
66350 }
66351 catch (Swig::DirectorException &e) {
66352 SWIG_fail;
66353 }
66354 }
66355 resultobj = SWIG_From_long(static_cast< long >(result));
66356 return resultobj;
66357fail:
66358 return NULL;
66359}
66360
66361
66363 PyObject *resultobj = 0;
66365 void *argp1 = 0 ;
66366 int res1 = 0 ;
66367 PyObject * obj0 = 0 ;
66368 int64_t result;
66369
66370 if (!PyArg_UnpackTuple(args, "RoutingDimension_global_span_cost_coefficient", 1, 1, &obj0)) SWIG_fail;
66372 if (!SWIG_IsOK(res1)) {
66373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_global_span_cost_coefficient" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66374 }
66375 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66376 {
66377 try {
66378 result = (int64_t)((operations_research::RoutingDimension const *)arg1)->global_span_cost_coefficient();
66379 }
66380 catch (Swig::DirectorException &e) {
66381 SWIG_fail;
66382 }
66383 }
66384 resultobj = SWIG_From_long(static_cast< long >(result));
66385 return resultobj;
66386fail:
66387 return NULL;
66388}
66389
66390
66392 PyObject *resultobj = 0;
66394 void *argp1 = 0 ;
66395 int res1 = 0 ;
66396 PyObject * obj0 = 0 ;
66397 int64_t result;
66398
66399 if (!PyArg_UnpackTuple(args, "RoutingDimension_GetGlobalOptimizerOffset", 1, 1, &obj0)) SWIG_fail;
66401 if (!SWIG_IsOK(res1)) {
66402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_GetGlobalOptimizerOffset" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66403 }
66404 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66405 {
66406 try {
66407 result = (int64_t)((operations_research::RoutingDimension const *)arg1)->GetGlobalOptimizerOffset();
66408 }
66409 catch (Swig::DirectorException &e) {
66410 SWIG_fail;
66411 }
66412 }
66413 resultobj = SWIG_From_long(static_cast< long >(result));
66414 return resultobj;
66415fail:
66416 return NULL;
66417}
66418
66419
66421 PyObject *resultobj = 0;
66423 int arg2 ;
66424 void *argp1 = 0 ;
66425 int res1 = 0 ;
66426 int val2 ;
66427 int ecode2 = 0 ;
66428 PyObject * obj0 = 0 ;
66429 PyObject * obj1 = 0 ;
66430 int64_t result;
66431
66432 if (!PyArg_UnpackTuple(args, "RoutingDimension_GetLocalOptimizerOffsetForVehicle", 2, 2, &obj0, &obj1)) SWIG_fail;
66434 if (!SWIG_IsOK(res1)) {
66435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RoutingDimension_GetLocalOptimizerOffsetForVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66436 }
66437 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66438 ecode2 = SWIG_AsVal_int(obj1, &val2);
66439 if (!SWIG_IsOK(ecode2)) {
66440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingDimension_GetLocalOptimizerOffsetForVehicle" "', argument " "2"" of type '" "int""'");
66441 }
66442 arg2 = static_cast< int >(val2);
66443 {
66444 try {
66445 result = (int64_t)((operations_research::RoutingDimension const *)arg1)->GetLocalOptimizerOffsetForVehicle(arg2);
66446 }
66447 catch (Swig::DirectorException &e) {
66448 SWIG_fail;
66449 }
66450 }
66451 resultobj = SWIG_From_long(static_cast< long >(result));
66452 return resultobj;
66453fail:
66454 return NULL;
66455}
66456
66457
66458SWIGINTERN PyObject *RoutingDimension_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
66459 PyObject *obj;
66460 if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
66462 return SWIG_Py_Void();
66463}
66464
66465SWIGINTERN PyObject *_wrap_MakeSetValuesFromTargets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
66466 PyObject *resultobj = 0;
66468 SwigValueWrapper< std::vector< operations_research::IntVar * > > arg2 ;
66469 std::vector< int64_t > arg3 ;
66470 void *argp1 = 0 ;
66471 int res1 = 0 ;
66472 std::vector< operations_research::IntVar * > temp2 ;
66473 std::vector< int64_t > temp3 ;
66474 PyObject * obj0 = 0 ;
66475 PyObject * obj1 = 0 ;
66476 PyObject * obj2 = 0 ;
66478
66479 if (!PyArg_UnpackTuple(args, "MakeSetValuesFromTargets", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
66480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_operations_research__Solver, 0 | 0 );
66481 if (!SWIG_IsOK(res1)) {
66482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MakeSetValuesFromTargets" "', argument " "1"" of type '" "operations_research::Solver *""'");
66483 }
66484 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
66485 {
66486 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
66487 if (!PyErr_Occurred())
66488 SWIG_Error(SWIG_TypeError, "sequence(operations_research::IntVar*) expected");
66489 return NULL;
66490 }
66491 arg2 = std::move(temp2);
66492 }
66493 {
66494 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
66495 if (!PyErr_Occurred())
66496 SWIG_Error(SWIG_TypeError, "sequence(int64_t) expected");
66497 return NULL;
66498 }
66499 arg3 = std::move(temp3);
66500 }
66501 {
66502 try {
66504 }
66505 catch (Swig::DirectorException &e) {
66506 SWIG_fail;
66507 }
66508 }
66510 return resultobj;
66511fail:
66512 return NULL;
66513}
66514
66515
66516SWIGINTERN PyObject *_wrap_SolveModelWithSat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
66517 PyObject *resultobj = 0;
66522 void *argp1 = 0 ;
66523 int res1 = 0 ;
66524 void *argp3 = 0 ;
66525 int res3 = 0 ;
66526 void *argp4 = 0 ;
66527 int res4 = 0 ;
66528 PyObject * obj0 = 0 ;
66529 PyObject * obj1 = 0 ;
66530 PyObject * obj2 = 0 ;
66531 PyObject * obj3 = 0 ;
66532 bool result;
66533
66534 if (!PyArg_UnpackTuple(args, "SolveModelWithSat", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
66536 if (!SWIG_IsOK(res1)) {
66537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SolveModelWithSat" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
66538 }
66539 if (!argp1) {
66540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SolveModelWithSat" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
66541 }
66542 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
66543 {
66545 PyObject* const pyresult = PyObject_CallMethod(
66546 obj1, const_cast<char*>("SerializeToString"), nullptr);
66547 if (pyresult != nullptr) {
66548 char* buffer = nullptr;
66549 Py_ssize_t length = 0;
66550 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
66551 if (buffer != nullptr) {
66552 arg2->ParseFromArray(buffer, length);
66553 }
66554 Py_DECREF(pyresult);
66555 }
66556 }
66558 if (!SWIG_IsOK(res3)) {
66559 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SolveModelWithSat" "', argument " "3"" of type '" "operations_research::Assignment const *""'");
66560 }
66561 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
66563 if (!SWIG_IsOK(res4)) {
66564 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SolveModelWithSat" "', argument " "4"" of type '" "operations_research::Assignment *""'");
66565 }
66566 arg4 = reinterpret_cast< operations_research::Assignment * >(argp4);
66567 {
66568 try {
66570 }
66571 catch (Swig::DirectorException &e) {
66572 SWIG_fail;
66573 }
66574 }
66575 resultobj = SWIG_From_bool(static_cast< bool >(result));
66576 {
66577 delete arg2;
66578 }
66579 return resultobj;
66580fail:
66581 {
66582 delete arg2;
66583 }
66584 return NULL;
66585}
66586
66587
66588static PyMethodDef SwigMethods[] = {
66589 { "SWIG_PyInstanceMethod_New", SWIG_PyInstanceMethod_New, METH_O, NULL},
66590 { "DefaultPhaseParameters_var_selection_schema_set", _wrap_DefaultPhaseParameters_var_selection_schema_set, METH_VARARGS, "\n"
66591 "This parameter describes how the next variable to instantiate\n"
66592 "will be chosen.\n"
66593 ""},
66594 { "DefaultPhaseParameters_var_selection_schema_get", _wrap_DefaultPhaseParameters_var_selection_schema_get, METH_VARARGS, "\n"
66595 "This parameter describes how the next variable to instantiate\n"
66596 "will be chosen.\n"
66597 ""},
66598 { "DefaultPhaseParameters_value_selection_schema_set", _wrap_DefaultPhaseParameters_value_selection_schema_set, METH_VARARGS, " This parameter describes which value to select for a given var."},
66599 { "DefaultPhaseParameters_value_selection_schema_get", _wrap_DefaultPhaseParameters_value_selection_schema_get, METH_VARARGS, " This parameter describes which value to select for a given var."},
66600 { "DefaultPhaseParameters_initialization_splits_set", _wrap_DefaultPhaseParameters_initialization_splits_set, METH_VARARGS, "\n"
66601 "Maximum number of intervals that the initialization of impacts will scan\n"
66602 "per variable.\n"
66603 ""},
66604 { "DefaultPhaseParameters_initialization_splits_get", _wrap_DefaultPhaseParameters_initialization_splits_get, METH_VARARGS, "\n"
66605 "Maximum number of intervals that the initialization of impacts will scan\n"
66606 "per variable.\n"
66607 ""},
66608 { "DefaultPhaseParameters_run_all_heuristics_set", _wrap_DefaultPhaseParameters_run_all_heuristics_set, METH_VARARGS, "\n"
66609 "The default phase will run heuristics periodically. This parameter\n"
66610 "indicates if we should run all heuristics, or a randomly selected\n"
66611 "one.\n"
66612 ""},
66613 { "DefaultPhaseParameters_run_all_heuristics_get", _wrap_DefaultPhaseParameters_run_all_heuristics_get, METH_VARARGS, "\n"
66614 "The default phase will run heuristics periodically. This parameter\n"
66615 "indicates if we should run all heuristics, or a randomly selected\n"
66616 "one.\n"
66617 ""},
66618 { "DefaultPhaseParameters_heuristic_period_set", _wrap_DefaultPhaseParameters_heuristic_period_set, METH_VARARGS, "\n"
66619 "The distance in nodes between each run of the heuristics. A\n"
66620 "negative or null value will mean that we will not run heuristics\n"
66621 "at all.\n"
66622 ""},
66623 { "DefaultPhaseParameters_heuristic_period_get", _wrap_DefaultPhaseParameters_heuristic_period_get, METH_VARARGS, "\n"
66624 "The distance in nodes between each run of the heuristics. A\n"
66625 "negative or null value will mean that we will not run heuristics\n"
66626 "at all.\n"
66627 ""},
66628 { "DefaultPhaseParameters_heuristic_num_failures_limit_set", _wrap_DefaultPhaseParameters_heuristic_num_failures_limit_set, METH_VARARGS, " The failure limit for each heuristic that we run."},
66629 { "DefaultPhaseParameters_heuristic_num_failures_limit_get", _wrap_DefaultPhaseParameters_heuristic_num_failures_limit_get, METH_VARARGS, " The failure limit for each heuristic that we run."},
66630 { "DefaultPhaseParameters_persistent_impact_set", _wrap_DefaultPhaseParameters_persistent_impact_set, METH_VARARGS, "\n"
66631 "Whether to keep the impact from the first search for other searches,\n"
66632 "or to recompute the impact for each new search.\n"
66633 ""},
66634 { "DefaultPhaseParameters_persistent_impact_get", _wrap_DefaultPhaseParameters_persistent_impact_get, METH_VARARGS, "\n"
66635 "Whether to keep the impact from the first search for other searches,\n"
66636 "or to recompute the impact for each new search.\n"
66637 ""},
66638 { "DefaultPhaseParameters_random_seed_set", _wrap_DefaultPhaseParameters_random_seed_set, METH_VARARGS, " Seed used to initialize the random part in some heuristics."},
66639 { "DefaultPhaseParameters_random_seed_get", _wrap_DefaultPhaseParameters_random_seed_get, METH_VARARGS, " Seed used to initialize the random part in some heuristics."},
66640 { "DefaultPhaseParameters_display_level_set", _wrap_DefaultPhaseParameters_display_level_set, METH_VARARGS, "\n"
66641 "This represents the amount of information displayed by the default search.\n"
66642 "NONE means no display, VERBOSE means extra information.\n"
66643 ""},
66644 { "DefaultPhaseParameters_display_level_get", _wrap_DefaultPhaseParameters_display_level_get, METH_VARARGS, "\n"
66645 "This represents the amount of information displayed by the default search.\n"
66646 "NONE means no display, VERBOSE means extra information.\n"
66647 ""},
66648 { "DefaultPhaseParameters_decision_builder_set", _wrap_DefaultPhaseParameters_decision_builder_set, METH_VARARGS, " When defined, this overrides the default impact based decision builder."},
66649 { "DefaultPhaseParameters_decision_builder_get", _wrap_DefaultPhaseParameters_decision_builder_get, METH_VARARGS, " When defined, this overrides the default impact based decision builder."},
66650 { "new_DefaultPhaseParameters", _wrap_new_DefaultPhaseParameters, METH_VARARGS, NULL},
66651 { "delete_DefaultPhaseParameters", _wrap_delete_DefaultPhaseParameters, METH_VARARGS, NULL},
66652 { "DefaultPhaseParameters_swigregister", DefaultPhaseParameters_swigregister, METH_O, NULL},
66653 { "DefaultPhaseParameters_swiginit", DefaultPhaseParameters_swiginit, METH_VARARGS, NULL},
66654 { "new_Solver", _wrap_new_Solver, METH_VARARGS, " Solver API"},
66655 { "delete_Solver", _wrap_delete_Solver, METH_VARARGS, NULL},
66656 { "Solver_Parameters", _wrap_Solver_Parameters, METH_VARARGS, " Stored Parameters."},
66657 { "Solver_DefaultSolverParameters", _wrap_Solver_DefaultSolverParameters, METH_VARARGS, " Create a ConstraintSolverParameters proto with all the default values."},
66658 { "Solver_AddConstraint", _wrap_Solver_AddConstraint, METH_VARARGS, "\n"
66659 "Adds the constraint 'c' to the model.\n"
66660 "\n"
66661 "After calling this method, and until there is a backtrack that undoes the\n"
66662 "addition, any assignment of variables to values must satisfy the given\n"
66663 "constraint in order to be considered feasible. There are two fairly\n"
66664 "different use cases:\n"
66665 "\n"
66666 "- the most common use case is modeling: the given constraint is really\n"
66667 "part of the problem that the user is trying to solve. In this use case,\n"
66668 "AddConstraint is called outside of search (i.e., with state() ==\n"
66669 "OUTSIDE_SEARCH). Most users should only use AddConstraint in this\n"
66670 "way. In this case, the constraint will belong to the model forever: it\n"
66671 "cannot not be removed by backtracking.\n"
66672 "\n"
66673 "- a rarer use case is that 'c' is not a real constraint of the model. It\n"
66674 "may be a constraint generated by a branching decision (a constraint whose\n"
66675 "goal is to restrict the search space), a symmetry breaking constraint (a\n"
66676 "constraint that does restrict the search space, but in a way that cannot\n"
66677 "have an impact on the quality of the solutions in the subtree), or an\n"
66678 "inferred constraint that, while having no semantic value to the model (it\n"
66679 "does not restrict the set of solutions), is worth having because we\n"
66680 "believe it may strengthen the propagation. In these cases, it happens\n"
66681 "that the constraint is added during the search (i.e., with state() ==\n"
66682 "IN_SEARCH or state() == IN_ROOT_NODE). When a constraint is\n"
66683 "added during a search, it applies only to the subtree of the search tree\n"
66684 "rooted at the current node, and will be automatically removed by\n"
66685 "backtracking.\n"
66686 "\n"
66687 "This method does not take ownership of the constraint. If the constraint\n"
66688 "has been created by any factory method (Solver::MakeXXX), it will\n"
66689 "automatically be deleted. However, power users who implement their own\n"
66690 "constraints should do: solver.AddConstraint(solver.RevAlloc(new\n"
66691 "MyConstraint(...));\n"
66692 ""},
66693 { "Solver_Solve", _wrap_Solver_Solve, METH_VARARGS, NULL},
66694 { "Solver_NewSearch", _wrap_Solver_NewSearch, METH_VARARGS, NULL},
66695 { "Solver_NextSolution", _wrap_Solver_NextSolution, METH_VARARGS, NULL},
66696 { "Solver_RestartSearch", _wrap_Solver_RestartSearch, METH_VARARGS, NULL},
66697 { "Solver_EndSearch", _wrap_Solver_EndSearch, METH_VARARGS, NULL},
66698 { "Solver_SolveAndCommit", _wrap_Solver_SolveAndCommit, METH_VARARGS, NULL},
66699 { "Solver_CheckAssignment", _wrap_Solver_CheckAssignment, METH_VARARGS, " Checks whether the given assignment satisfies all relevant constraints."},
66700 { "Solver_CheckConstraint", _wrap_Solver_CheckConstraint, METH_VARARGS, "\n"
66701 "Checks whether adding this constraint will lead to an immediate\n"
66702 "failure. It will return false if the model is already inconsistent, or if\n"
66703 "adding the constraint makes it inconsistent.\n"
66704 ""},
66705 { "Solver_Fail", _wrap_Solver_Fail, METH_VARARGS, " Abandon the current branch in the search tree. A backtrack will follow."},
66706 { "Solver_MemoryUsage", _wrap_Solver_MemoryUsage, METH_VARARGS, " Current memory usage in bytes"},
66707 { "Solver_WallTime", _wrap_Solver_WallTime, METH_VARARGS, "\n"
66708 "DEPRECATED: Use Now() instead.\n"
66709 "Time elapsed, in ms since the creation of the solver.\n"
66710 ""},
66711 { "Solver_Branches", _wrap_Solver_Branches, METH_VARARGS, " The number of branches explored since the creation of the solver."},
66712 { "Solver_Solutions", _wrap_Solver_Solutions, METH_VARARGS, " The number of solutions found since the start of the search."},
66713 { "Solver_Failures", _wrap_Solver_Failures, METH_VARARGS, " The number of failures encountered since the creation of the solver."},
66714 { "Solver_AcceptedNeighbors", _wrap_Solver_AcceptedNeighbors, METH_VARARGS, " The number of accepted neighbors."},
66715 { "Solver_Stamp", _wrap_Solver_Stamp, METH_VARARGS, "\n"
66716 "The stamp indicates how many moves in the search tree we have performed.\n"
66717 "It is useful to detect if we need to update same lazy structures.\n"
66718 ""},
66719 { "Solver_FailStamp", _wrap_Solver_FailStamp, METH_VARARGS, " The fail_stamp() is incremented after each backtrack."},
66720 { "Solver_IntVar", _wrap_Solver_IntVar, METH_VARARGS, "\n"
66721 "*Overload 1:*\n"
66722 "MakeIntVar will create the best range based int var for the bounds given.\n"
66723 "\n"
66724 "|\n"
66725 "\n"
66726 "*Overload 2:*\n"
66727 "MakeIntVar will create a variable with the given sparse domain.\n"
66728 "\n"
66729 "|\n"
66730 "\n"
66731 "*Overload 3:*\n"
66732 "MakeIntVar will create a variable with the given sparse domain.\n"
66733 "\n"
66734 "|\n"
66735 "\n"
66736 "*Overload 4:*\n"
66737 "MakeIntVar will create the best range based int var for the bounds given.\n"
66738 "\n"
66739 "|\n"
66740 "\n"
66741 "*Overload 5:*\n"
66742 "MakeIntVar will create a variable with the given sparse domain.\n"
66743 "\n"
66744 "|\n"
66745 "\n"
66746 "*Overload 6:*\n"
66747 "MakeIntVar will create a variable with the given sparse domain.\n"
66748 ""},
66749 { "Solver_BoolVar", _wrap_Solver_BoolVar, METH_VARARGS, "\n"
66750 "*Overload 1:*\n"
66751 "MakeBoolVar will create a variable with a {0, 1} domain.\n"
66752 "\n"
66753 "|\n"
66754 "\n"
66755 "*Overload 2:*\n"
66756 "MakeBoolVar will create a variable with a {0, 1} domain.\n"
66757 ""},
66758 { "Solver_IntConst", _wrap_Solver_IntConst, METH_VARARGS, "\n"
66759 "*Overload 1:*\n"
66760 "IntConst will create a constant expression.\n"
66761 "\n"
66762 "|\n"
66763 "\n"
66764 "*Overload 2:*\n"
66765 "IntConst will create a constant expression.\n"
66766 ""},
66767 { "Solver_Sum", _wrap_Solver_Sum, METH_VARARGS, " sum of all vars."},
66768 { "Solver_ScalProd", _wrap_Solver_ScalProd, METH_VARARGS, "\n"
66769 "*Overload 1:*\n"
66770 "scalar product\n"
66771 "\n"
66772 "|\n"
66773 "\n"
66774 "*Overload 2:*\n"
66775 "scalar product\n"
66776 ""},
66777 { "Solver_MonotonicElement", _wrap_Solver_MonotonicElement, METH_VARARGS, "\n"
66778 "Function based element. The constraint takes ownership of the\n"
66779 "callback. The callback must be monotonic. It must be able to\n"
66780 "cope with any possible value in the domain of 'index'\n"
66781 "(potentially negative ones too). Furtermore, monotonicity is not\n"
66782 "checked. Thus giving a non-monotonic function, or specifying an\n"
66783 "incorrect increasing parameter will result in undefined behavior.\n"
66784 ""},
66785 { "Solver_Element", _wrap_Solver_Element, METH_VARARGS, "\n"
66786 "*Overload 1:*\n"
66787 "values[index]\n"
66788 "\n"
66789 "|\n"
66790 "\n"
66791 "*Overload 2:*\n"
66792 "values[index]\n"
66793 "\n"
66794 "|\n"
66795 "\n"
66796 "*Overload 3:*\n"
66797 "Function-based element. The constraint takes ownership of the\n"
66798 "callback. The callback must be able to cope with any possible\n"
66799 "value in the domain of 'index' (potentially negative ones too).\n"
66800 "\n"
66801 "|\n"
66802 "\n"
66803 "*Overload 4:*\n"
66804 "2D version of function-based element expression, values(expr1, expr2).\n"
66805 "\n"
66806 "|\n"
66807 "\n"
66808 "*Overload 5:*\n"
66809 "vars[expr]\n"
66810 ""},
66811 { "Solver_IndexExpression", _wrap_Solver_IndexExpression, METH_VARARGS, "\n"
66812 "Returns the expression expr such that vars[expr] == value.\n"
66813 "It assumes that vars are all different.\n"
66814 ""},
66815 { "Solver_Min", _wrap_Solver_Min, METH_VARARGS, "\n"
66816 "*Overload 1:*\n"
66817 "std::min(vars)\n"
66818 "\n"
66819 "|\n"
66820 "\n"
66821 "*Overload 2:*\n"
66822 "std::min (left, right)\n"
66823 "\n"
66824 "|\n"
66825 "\n"
66826 "*Overload 3:*\n"
66827 "std::min(expr, value)\n"
66828 "\n"
66829 "|\n"
66830 "\n"
66831 "*Overload 4:*\n"
66832 "std::min(expr, value)\n"
66833 ""},
66834 { "Solver_Max", _wrap_Solver_Max, METH_VARARGS, "\n"
66835 "*Overload 1:*\n"
66836 "std::max(vars)\n"
66837 "\n"
66838 "|\n"
66839 "\n"
66840 "*Overload 2:*\n"
66841 "std::max(left, right)\n"
66842 "\n"
66843 "|\n"
66844 "\n"
66845 "*Overload 3:*\n"
66846 "std::max(expr, value)\n"
66847 "\n"
66848 "|\n"
66849 "\n"
66850 "*Overload 4:*\n"
66851 "std::max(expr, value)\n"
66852 ""},
66853 { "Solver_ConvexPiecewiseExpr", _wrap_Solver_ConvexPiecewiseExpr, METH_VARARGS, " Convex piecewise function."},
66854 { "Solver_SemiContinuousExpr", _wrap_Solver_SemiContinuousExpr, METH_VARARGS, "\n"
66855 "Semi continuous Expression (x <= 0 -> f(x) = 0; x > 0 -> f(x) = ax + b)\n"
66856 "a >= 0 and b >= 0\n"
66857 ""},
66858 { "Solver_ConditionalExpression", _wrap_Solver_ConditionalExpression, METH_VARARGS, " Conditional Expr condition ? expr : unperformed_value"},
66859 { "Solver_TrueConstraint", _wrap_Solver_TrueConstraint, METH_VARARGS, " This constraint always succeeds."},
66860 { "Solver_FalseConstraint", _wrap_Solver_FalseConstraint, METH_VARARGS, " This constraint always fails."},
66861 { "Solver_IsEqualCstCt", _wrap_Solver_IsEqualCstCt, METH_VARARGS, " boolvar == (var == value)"},
66862 { "Solver_IsEqualCstVar", _wrap_Solver_IsEqualCstVar, METH_VARARGS, " status var of (var == value)"},
66863 { "Solver_IsEqualCt", _wrap_Solver_IsEqualCt, METH_VARARGS, " b == (v1 == v2)"},
66864 { "Solver_IsEqualVar", _wrap_Solver_IsEqualVar, METH_VARARGS, " status var of (v1 == v2)"},
66865 { "Solver_IsDifferentCstCt", _wrap_Solver_IsDifferentCstCt, METH_VARARGS, " boolvar == (var != value)"},
66866 { "Solver_IsDifferentCstVar", _wrap_Solver_IsDifferentCstVar, METH_VARARGS, " status var of (var != value)"},
66867 { "Solver_IsDifferentVar", _wrap_Solver_IsDifferentVar, METH_VARARGS, " status var of (v1 != v2)"},
66868 { "Solver_IsDifferentCt", _wrap_Solver_IsDifferentCt, METH_VARARGS, " b == (v1 != v2)"},
66869 { "Solver_IsLessOrEqualCstCt", _wrap_Solver_IsLessOrEqualCstCt, METH_VARARGS, " boolvar == (var <= value)"},
66870 { "Solver_IsLessOrEqualCstVar", _wrap_Solver_IsLessOrEqualCstVar, METH_VARARGS, " status var of (var <= value)"},
66871 { "Solver_IsLessOrEqualVar", _wrap_Solver_IsLessOrEqualVar, METH_VARARGS, " status var of (left <= right)"},
66872 { "Solver_IsLessOrEqualCt", _wrap_Solver_IsLessOrEqualCt, METH_VARARGS, " b == (left <= right)"},
66873 { "Solver_IsGreaterOrEqualCstCt", _wrap_Solver_IsGreaterOrEqualCstCt, METH_VARARGS, " boolvar == (var >= value)"},
66874 { "Solver_IsGreaterOrEqualCstVar", _wrap_Solver_IsGreaterOrEqualCstVar, METH_VARARGS, " status var of (var >= value)"},
66875 { "Solver_IsGreaterOrEqualVar", _wrap_Solver_IsGreaterOrEqualVar, METH_VARARGS, " status var of (left >= right)"},
66876 { "Solver_IsGreaterOrEqualCt", _wrap_Solver_IsGreaterOrEqualCt, METH_VARARGS, " b == (left >= right)"},
66877 { "Solver_IsGreaterCstCt", _wrap_Solver_IsGreaterCstCt, METH_VARARGS, " b == (v > c)"},
66878 { "Solver_IsGreaterCstVar", _wrap_Solver_IsGreaterCstVar, METH_VARARGS, " status var of (var > value)"},
66879 { "Solver_IsGreaterVar", _wrap_Solver_IsGreaterVar, METH_VARARGS, " status var of (left > right)"},
66880 { "Solver_IsGreaterCt", _wrap_Solver_IsGreaterCt, METH_VARARGS, " b == (left > right)"},
66881 { "Solver_IsLessCstCt", _wrap_Solver_IsLessCstCt, METH_VARARGS, " b == (v < c)"},
66882 { "Solver_IsLessCstVar", _wrap_Solver_IsLessCstVar, METH_VARARGS, " status var of (var < value)"},
66883 { "Solver_IsLessVar", _wrap_Solver_IsLessVar, METH_VARARGS, " status var of (left < right)"},
66884 { "Solver_IsLessCt", _wrap_Solver_IsLessCt, METH_VARARGS, " b == (left < right)"},
66885 { "Solver_SumLessOrEqual", _wrap_Solver_SumLessOrEqual, METH_VARARGS, " Variation on arrays."},
66886 { "Solver_SumGreaterOrEqual", _wrap_Solver_SumGreaterOrEqual, METH_VARARGS, NULL},
66887 { "Solver_SumEquality", _wrap_Solver_SumEquality, METH_VARARGS, NULL},
66888 { "Solver_ScalProdEquality", _wrap_Solver_ScalProdEquality, METH_VARARGS, NULL},
66889 { "Solver_ScalProdGreaterOrEqual", _wrap_Solver_ScalProdGreaterOrEqual, METH_VARARGS, NULL},
66890 { "Solver_ScalProdLessOrEqual", _wrap_Solver_ScalProdLessOrEqual, METH_VARARGS, NULL},
66891 { "Solver_MinEquality", _wrap_Solver_MinEquality, METH_VARARGS, NULL},
66892 { "Solver_MaxEquality", _wrap_Solver_MaxEquality, METH_VARARGS, NULL},
66893 { "Solver_ElementEquality", _wrap_Solver_ElementEquality, METH_VARARGS, NULL},
66894 { "Solver_AbsEquality", _wrap_Solver_AbsEquality, METH_VARARGS, " Creates the constraint abs(var) == abs_var."},
66895 { "Solver_IndexOfConstraint", _wrap_Solver_IndexOfConstraint, METH_VARARGS, "\n"
66896 "This constraint is a special case of the element constraint with\n"
66897 "an array of integer variables, where the variables are all\n"
66898 "different and the index variable is constrained such that\n"
66899 "vars[index] == target.\n"
66900 ""},
66901 { "Solver_ConstraintInitialPropagateCallback", _wrap_Solver_ConstraintInitialPropagateCallback, METH_VARARGS, "\n"
66902 "This method is a specialized case of the MakeConstraintDemon\n"
66903 "method to call the InitiatePropagate of the constraint 'ct'.\n"
66904 ""},
66905 { "Solver_DelayedConstraintInitialPropagateCallback", _wrap_Solver_DelayedConstraintInitialPropagateCallback, METH_VARARGS, "\n"
66906 "This method is a specialized case of the MakeConstraintDemon\n"
66907 "method to call the InitiatePropagate of the constraint 'ct' with\n"
66908 "low priority.\n"
66909 ""},
66910 { "Solver_ClosureDemon", _wrap_Solver_ClosureDemon, METH_VARARGS, " Creates a demon from a closure."},
66911 { "Solver_BetweenCt", _wrap_Solver_BetweenCt, METH_VARARGS, " (l <= expr <= u)"},
66912 { "Solver_IsBetweenCt", _wrap_Solver_IsBetweenCt, METH_VARARGS, " b == (l <= expr <= u)"},
66913 { "Solver_IsBetweenVar", _wrap_Solver_IsBetweenVar, METH_VARARGS, NULL},
66914 { "Solver_MemberCt", _wrap_Solver_MemberCt, METH_VARARGS, "\n"
66915 "expr in set. Propagation is lazy, i.e. this constraint does not\n"
66916 "creates holes in the domain of the variable.\n"
66917 ""},
66918 { "Solver_NotMemberCt", _wrap_Solver_NotMemberCt, METH_VARARGS, "\n"
66919 "*Overload 1:*\n"
66920 "expr not in set.\n"
66921 "\n"
66922 "|\n"
66923 "\n"
66924 "*Overload 2:*\n"
66925 "expr should not be in the list of forbidden intervals [start[i]..end[i]].\n"
66926 "\n"
66927 "|\n"
66928 "\n"
66929 "*Overload 3:*\n"
66930 "expr should not be in the list of forbidden intervals [start[i]..end[i]].\n"
66931 ""},
66932 { "Solver_IsMemberCt", _wrap_Solver_IsMemberCt, METH_VARARGS, " boolvar == (expr in set)"},
66933 { "Solver_IsMemberVar", _wrap_Solver_IsMemberVar, METH_VARARGS, NULL},
66934 { "Solver_Count", _wrap_Solver_Count, METH_VARARGS, "\n"
66935 "*Overload 1:*\n"
66936 "|{i | vars[i] == value}| == max_count\n"
66937 "\n"
66938 "|\n"
66939 "\n"
66940 "*Overload 2:*\n"
66941 "|{i | vars[i] == value}| == max_count\n"
66942 ""},
66943 { "Solver_Distribute", _wrap_Solver_Distribute, METH_VARARGS, "\n"
66944 "*Overload 1:*\n"
66945 "Aggregated version of count: |{i | v[i] == values[j]}| == cards[j]\n"
66946 "\n"
66947 "|\n"
66948 "\n"
66949 "*Overload 2:*\n"
66950 "Aggregated version of count: |{i | v[i] == values[j]}| == cards[j]\n"
66951 "\n"
66952 "|\n"
66953 "\n"
66954 "*Overload 3:*\n"
66955 "Aggregated version of count: |{i | v[i] == j}| == cards[j]\n"
66956 "\n"
66957 "|\n"
66958 "\n"
66959 "*Overload 4:*\n"
66960 "Aggregated version of count with bounded cardinalities:\n"
66961 "forall j in 0 .. card_size - 1: card_min <= |{i | v[i] == j}| <= card_max\n"
66962 "\n"
66963 "|\n"
66964 "\n"
66965 "*Overload 5:*\n"
66966 "Aggregated version of count with bounded cardinalities:\n"
66967 "forall j in 0 .. card_size - 1:\n"
66968 " card_min[j] <= |{i | v[i] == j}| <= card_max[j]\n"
66969 "\n"
66970 "|\n"
66971 "\n"
66972 "*Overload 6:*\n"
66973 "Aggregated version of count with bounded cardinalities:\n"
66974 "forall j in 0 .. card_size - 1:\n"
66975 " card_min[j] <= |{i | v[i] == j}| <= card_max[j]\n"
66976 "\n"
66977 "|\n"
66978 "\n"
66979 "*Overload 7:*\n"
66980 "Aggregated version of count with bounded cardinalities:\n"
66981 "forall j in 0 .. card_size - 1:\n"
66982 " card_min[j] <= |{i | v[i] == values[j]}| <= card_max[j]\n"
66983 "\n"
66984 "|\n"
66985 "\n"
66986 "*Overload 8:*\n"
66987 "Aggregated version of count with bounded cardinalities:\n"
66988 "forall j in 0 .. card_size - 1:\n"
66989 " card_min[j] <= |{i | v[i] == values[j]}| <= card_max[j]\n"
66990 ""},
66991 { "Solver_Deviation", _wrap_Solver_Deviation, METH_VARARGS, "\n"
66992 "Deviation constraint:\n"
66993 "sum_i |n * vars[i] - total_sum| <= deviation_var and\n"
66994 "sum_i vars[i] == total_sum\n"
66995 "n = #vars\n"
66996 ""},
66997 { "Solver_AllDifferent", _wrap_Solver_AllDifferent, METH_VARARGS, "\n"
66998 "*Overload 1:*\n"
66999 "All variables are pairwise different. This corresponds to the\n"
67000 "stronger version of the propagation algorithm.\n"
67001 "\n"
67002 "|\n"
67003 "\n"
67004 "*Overload 2:*\n"
67005 "All variables are pairwise different. If 'stronger_propagation'\n"
67006 "is true, stronger, and potentially slower propagation will\n"
67007 "occur. This API will be deprecated in the future.\n"
67008 ""},
67009 { "Solver_AllDifferentExcept", _wrap_Solver_AllDifferentExcept, METH_VARARGS, "\n"
67010 "All variables are pairwise different, unless they are assigned to\n"
67011 "the escape value.\n"
67012 ""},
67013 { "Solver_SortingConstraint", _wrap_Solver_SortingConstraint, METH_VARARGS, "\n"
67014 "Creates a constraint binding the arrays of variables \"vars\" and\n"
67015 "\"sorted_vars\": sorted_vars[0] must be equal to the minimum of all\n"
67016 "variables in vars, and so on: the value of sorted_vars[i] must be\n"
67017 "equal to the i-th value of variables invars.\n"
67018 "\n"
67019 "This constraint propagates in both directions: from \"vars\" to\n"
67020 "\"sorted_vars\" and vice-versa.\n"
67021 "\n"
67022 "Behind the scenes, this constraint maintains that:\n"
67023 " - sorted is always increasing.\n"
67024 " - whatever the values of vars, there exists a permutation that\n"
67025 " injects its values into the sorted variables.\n"
67026 "\n"
67027 "For more info, please have a look at:\n"
67028 " https://mpi-inf.mpg.de/~mehlhorn/ftp/Mehlhorn-Thiel.pdf\n"
67029 ""},
67030 { "Solver_LexicalLess", _wrap_Solver_LexicalLess, METH_VARARGS, "\n"
67031 "Creates a constraint that enforces that left is lexicographically less\n"
67032 "than right.\n"
67033 ""},
67034 { "Solver_LexicalLessOrEqual", _wrap_Solver_LexicalLessOrEqual, METH_VARARGS, "\n"
67035 "Creates a constraint that enforces that left is lexicographically less\n"
67036 "than or equal to right.\n"
67037 ""},
67038 { "Solver_InversePermutationConstraint", _wrap_Solver_InversePermutationConstraint, METH_VARARGS, "\n"
67039 "Creates a constraint that enforces that 'left' and 'right' both\n"
67040 "represent permutations of [0..left.size()-1], and that 'right' is\n"
67041 "the inverse permutation of 'left', i.e. for all i in\n"
67042 "[0..left.size()-1], right[left[i]] = i.\n"
67043 ""},
67044 { "Solver_NullIntersect", _wrap_Solver_NullIntersect, METH_VARARGS, "\n"
67045 "Creates a constraint that states that all variables in the first\n"
67046 "vector are different from all variables in the second\n"
67047 "group. Thus the set of values in the first vector does not\n"
67048 "intersect with the set of values in the second vector.\n"
67049 ""},
67050 { "Solver_NullIntersectExcept", _wrap_Solver_NullIntersectExcept, METH_VARARGS, "\n"
67051 "Creates a constraint that states that all variables in the first\n"
67052 "vector are different from all variables from the second group,\n"
67053 "unless they are assigned to the escape value. Thus the set of\n"
67054 "values in the first vector minus the escape value does not\n"
67055 "intersect with the set of values in the second vector.\n"
67056 ""},
67057 { "Solver_Circuit", _wrap_Solver_Circuit, METH_VARARGS, " Force the \"nexts\" variable to create a complete Hamiltonian path."},
67058 { "Solver_SubCircuit", _wrap_Solver_SubCircuit, METH_VARARGS, "\n"
67059 "Force the \"nexts\" variable to create a complete Hamiltonian path\n"
67060 "for those that do not loop upon themselves.\n"
67061 ""},
67062 { "Solver_DelayedPathCumul", _wrap_Solver_DelayedPathCumul, METH_VARARGS, "\n"
67063 "Delayed version of the same constraint: propagation on the nexts variables\n"
67064 "is delayed until all constraints have propagated.\n"
67065 ""},
67066 { "Solver_PathCumul", _wrap_Solver_PathCumul, METH_VARARGS, "\n"
67067 "*Overload 1:*\n"
67068 "Creates a constraint which accumulates values along a path such that:\n"
67069 "cumuls[next[i]] = cumuls[i] + transits[i].\n"
67070 "Active variables indicate if the corresponding next variable is active;\n"
67071 "this could be useful to model unperformed nodes in a routing problem.\n"
67072 "\n"
67073 "|\n"
67074 "\n"
67075 "*Overload 2:*\n"
67076 "Creates a constraint which accumulates values along a path such that:\n"
67077 "cumuls[next[i]] = cumuls[i] + transit_evaluator(i, next[i]).\n"
67078 "Active variables indicate if the corresponding next variable is active;\n"
67079 "this could be useful to model unperformed nodes in a routing problem.\n"
67080 "Ownership of transit_evaluator is taken and it must be a repeatable\n"
67081 "callback.\n"
67082 "\n"
67083 "|\n"
67084 "\n"
67085 "*Overload 3:*\n"
67086 "Creates a constraint which accumulates values along a path such that:\n"
67087 "cumuls[next[i]] = cumuls[i] + transit_evaluator(i, next[i]) + slacks[i].\n"
67088 "Active variables indicate if the corresponding next variable is active;\n"
67089 "this could be useful to model unperformed nodes in a routing problem.\n"
67090 "Ownership of transit_evaluator is taken and it must be a repeatable\n"
67091 "callback.\n"
67092 ""},
67093 { "Solver_AllowedAssignments", _wrap_Solver_AllowedAssignments, METH_VARARGS, "\n"
67094 "*Overload 1:*\n"
67095 "This method creates a constraint where the graph of the relation\n"
67096 "between the variables is given in extension. There are 'arity'\n"
67097 "variables involved in the relation and the graph is given by a\n"
67098 "integer tuple set.\n"
67099 "\n"
67100 "|\n"
67101 "\n"
67102 "*Overload 2:*\n"
67103 "Compatibility layer for Python API.\n"
67104 ""},
67105 { "Solver_TransitionConstraint", _wrap_Solver_TransitionConstraint, METH_VARARGS, "\n"
67106 "*Overload 1:*\n"
67107 "This constraint create a finite automaton that will check the\n"
67108 "sequence of variables vars. It uses a transition table called\n"
67109 "'transition_table'. Each transition is a triple\n"
67110 " (current_state, variable_value, new_state).\n"
67111 "The initial state is given, and the set of accepted states is decribed\n"
67112 "by 'final_states'. These states are hidden inside the constraint.\n"
67113 "Only the transitions (i.e. the variables) are visible.\n"
67114 "\n"
67115 "|\n"
67116 "\n"
67117 "*Overload 2:*\n"
67118 "This constraint create a finite automaton that will check the\n"
67119 "sequence of variables vars. It uses a transition table called\n"
67120 "'transition_table'. Each transition is a triple\n"
67121 " (current_state, variable_value, new_state).\n"
67122 "The initial state is given, and the set of accepted states is decribed\n"
67123 "by 'final_states'. These states are hidden inside the constraint.\n"
67124 "Only the transitions (i.e. the variables) are visible.\n"
67125 ""},
67126 { "Solver_NonOverlappingBoxesConstraint", _wrap_Solver_NonOverlappingBoxesConstraint, METH_VARARGS, NULL},
67127 { "Solver_Pack", _wrap_Solver_Pack, METH_VARARGS, "\n"
67128 "This constraint packs all variables onto 'number_of_bins'\n"
67129 "variables. For any given variable, a value of 'number_of_bins'\n"
67130 "indicates that the variable is not assigned to any bin.\n"
67131 "Dimensions, i.e., cumulative constraints on this packing, can be\n"
67132 "added directly from the pack class.\n"
67133 ""},
67134 { "Solver_FixedDurationIntervalVar", _wrap_Solver_FixedDurationIntervalVar, METH_VARARGS, "\n"
67135 "*Overload 1:*\n"
67136 "Creates an interval var with a fixed duration. The duration must\n"
67137 "be greater than 0. If optional is true, then the interval can be\n"
67138 "performed or unperformed. If optional is false, then the interval\n"
67139 "is always performed.\n"
67140 "\n"
67141 "|\n"
67142 "\n"
67143 "*Overload 2:*\n"
67144 "Creates a performed interval var with a fixed duration. The duration must\n"
67145 "be greater than 0.\n"
67146 "\n"
67147 "|\n"
67148 "\n"
67149 "*Overload 3:*\n"
67150 "Creates an interval var with a fixed duration, and performed_variable.\n"
67151 "The duration must be greater than 0.\n"
67152 ""},
67153 { "Solver_FixedInterval", _wrap_Solver_FixedInterval, METH_VARARGS, " Creates a fixed and performed interval."},
67154 { "Solver_IntervalVar", _wrap_Solver_IntervalVar, METH_VARARGS, "\n"
67155 "Creates an interval var by specifying the bounds on start,\n"
67156 "duration, and end.\n"
67157 ""},
67158 { "Solver_MirrorInterval", _wrap_Solver_MirrorInterval, METH_VARARGS, "\n"
67159 "Creates an interval var that is the mirror image of the given one, that\n"
67160 "is, the interval var obtained by reversing the axis.\n"
67161 ""},
67162 { "Solver_FixedDurationStartSyncedOnStartIntervalVar", _wrap_Solver_FixedDurationStartSyncedOnStartIntervalVar, METH_VARARGS, "\n"
67163 "Creates an interval var with a fixed duration whose start is\n"
67164 "synchronized with the start of another interval, with a given\n"
67165 "offset. The performed status is also in sync with the performed\n"
67166 "status of the given interval variable.\n"
67167 ""},
67168 { "Solver_FixedDurationStartSyncedOnEndIntervalVar", _wrap_Solver_FixedDurationStartSyncedOnEndIntervalVar, METH_VARARGS, "\n"
67169 "Creates an interval var with a fixed duration whose start is\n"
67170 "synchronized with the end of another interval, with a given\n"
67171 "offset. The performed status is also in sync with the performed\n"
67172 "status of the given interval variable.\n"
67173 ""},
67174 { "Solver_FixedDurationEndSyncedOnStartIntervalVar", _wrap_Solver_FixedDurationEndSyncedOnStartIntervalVar, METH_VARARGS, "\n"
67175 "Creates an interval var with a fixed duration whose end is\n"
67176 "synchronized with the start of another interval, with a given\n"
67177 "offset. The performed status is also in sync with the performed\n"
67178 "status of the given interval variable.\n"
67179 ""},
67180 { "Solver_FixedDurationEndSyncedOnEndIntervalVar", _wrap_Solver_FixedDurationEndSyncedOnEndIntervalVar, METH_VARARGS, "\n"
67181 "Creates an interval var with a fixed duration whose end is\n"
67182 "synchronized with the end of another interval, with a given\n"
67183 "offset. The performed status is also in sync with the performed\n"
67184 "status of the given interval variable.\n"
67185 ""},
67186 { "Solver_IntervalRelaxedMin", _wrap_Solver_IntervalRelaxedMin, METH_VARARGS, "\n"
67187 " Creates and returns an interval variable that wraps around the given one,\n"
67188 " relaxing the min start and end. Relaxing means making unbounded when\n"
67189 " optional. If the variable is non-optional, this method returns\n"
67190 " interval_var.\n"
67191 "\n"
67192 " More precisely, such an interval variable behaves as follows:\n"
67193 "When the underlying must be performed, the returned interval variable\n"
67194 " behaves exactly as the underlying;\n"
67195 "When the underlying may or may not be performed, the returned interval\n"
67196 " variable behaves like the underlying, except that it is unbounded on\n"
67197 " the min side;\n"
67198 "When the underlying cannot be performed, the returned interval variable\n"
67199 " is of duration 0 and must be performed in an interval unbounded on\n"
67200 " both sides.\n"
67201 "\n"
67202 " This is very useful to implement propagators that may only modify\n"
67203 " the start max or end max.\n"
67204 ""},
67205 { "Solver_IntervalRelaxedMax", _wrap_Solver_IntervalRelaxedMax, METH_VARARGS, "\n"
67206 " Creates and returns an interval variable that wraps around the given one,\n"
67207 " relaxing the max start and end. Relaxing means making unbounded when\n"
67208 " optional. If the variable is non optional, this method returns\n"
67209 " interval_var.\n"
67210 "\n"
67211 " More precisely, such an interval variable behaves as follows:\n"
67212 "When the underlying must be performed, the returned interval variable\n"
67213 " behaves exactly as the underlying;\n"
67214 "When the underlying may or may not be performed, the returned interval\n"
67215 " variable behaves like the underlying, except that it is unbounded on\n"
67216 " the max side;\n"
67217 "When the underlying cannot be performed, the returned interval variable\n"
67218 " is of duration 0 and must be performed in an interval unbounded on\n"
67219 " both sides.\n"
67220 "\n"
67221 " This is very useful for implementing propagators that may only modify\n"
67222 " the start min or end min.\n"
67223 ""},
67224 { "Solver_TemporalDisjunction", _wrap_Solver_TemporalDisjunction, METH_VARARGS, "\n"
67225 "*Overload 1:*\n"
67226 "This constraint implements a temporal disjunction between two\n"
67227 "interval vars t1 and t2. 'alt' indicates which alternative was\n"
67228 "chosen (alt == 0 is equivalent to t1 before t2).\n"
67229 "\n"
67230 "|\n"
67231 "\n"
67232 "*Overload 2:*\n"
67233 "This constraint implements a temporal disjunction between two\n"
67234 "interval vars.\n"
67235 ""},
67236 { "Solver_DisjunctiveConstraint", _wrap_Solver_DisjunctiveConstraint, METH_VARARGS, "\n"
67237 "This constraint forces all interval vars into an non-overlapping\n"
67238 "sequence. Intervals with zero duration can be scheduled anywhere.\n"
67239 ""},
67240 { "Solver_Cumulative", _wrap_Solver_Cumulative, METH_VARARGS, "\n"
67241 "*Overload 1:*\n"
67242 "This constraint forces that, for any integer t, the sum of the demands\n"
67243 "corresponding to an interval containing t does not exceed the given\n"
67244 "capacity.\n"
67245 "\n"
67246 "Intervals and demands should be vectors of equal size.\n"
67247 "\n"
67248 "Demands should only contain non-negative values. Zero values are\n"
67249 "supported, and the corresponding intervals are filtered out, as they\n"
67250 "neither impact nor are impacted by this constraint.\n"
67251 "\n"
67252 "|\n"
67253 "\n"
67254 "*Overload 2:*\n"
67255 "This constraint forces that, for any integer t, the sum of the demands\n"
67256 "corresponding to an interval containing t does not exceed the given\n"
67257 "capacity.\n"
67258 "\n"
67259 "Intervals and demands should be vectors of equal size.\n"
67260 "\n"
67261 "Demands should only contain non-negative values. Zero values are\n"
67262 "supported, and the corresponding intervals are filtered out, as they\n"
67263 "neither impact nor are impacted by this constraint.\n"
67264 "\n"
67265 "|\n"
67266 "\n"
67267 "*Overload 3:*\n"
67268 "This constraint forces that, for any integer t, the sum of the demands\n"
67269 "corresponding to an interval containing t does not exceed the given\n"
67270 "capacity.\n"
67271 "\n"
67272 "Intervals and demands should be vectors of equal size.\n"
67273 "\n"
67274 "Demands should only contain non-negative values. Zero values are\n"
67275 "supported, and the corresponding intervals are filtered out, as they\n"
67276 "neither impact nor are impacted by this constraint.\n"
67277 "\n"
67278 "|\n"
67279 "\n"
67280 "*Overload 4:*\n"
67281 "This constraint enforces that, for any integer t, the sum of the demands\n"
67282 "corresponding to an interval containing t does not exceed the given\n"
67283 "capacity.\n"
67284 "\n"
67285 "Intervals and demands should be vectors of equal size.\n"
67286 "\n"
67287 "Demands should only contain non-negative values. Zero values are\n"
67288 "supported, and the corresponding intervals are filtered out, as they\n"
67289 "neither impact nor are impacted by this constraint.\n"
67290 "\n"
67291 "|\n"
67292 "\n"
67293 "*Overload 5:*\n"
67294 "This constraint enforces that, for any integer t, the sum of demands\n"
67295 "corresponding to an interval containing t does not exceed the given\n"
67296 "capacity.\n"
67297 "\n"
67298 "Intervals and demands should be vectors of equal size.\n"
67299 "\n"
67300 "Demands should be positive.\n"
67301 "\n"
67302 "|\n"
67303 "\n"
67304 "*Overload 6:*\n"
67305 "This constraint enforces that, for any integer t, the sum of demands\n"
67306 "corresponding to an interval containing t does not exceed the given\n"
67307 "capacity.\n"
67308 "\n"
67309 "Intervals and demands should be vectors of equal size.\n"
67310 "\n"
67311 "Demands should be positive.\n"
67312 ""},
67313 { "Solver_Cover", _wrap_Solver_Cover, METH_VARARGS, "\n"
67314 "This constraint states that the target_var is the convex hull of\n"
67315 "the intervals. If none of the interval variables is performed,\n"
67316 "then the target var is unperformed too. Also, if the target\n"
67317 "variable is unperformed, then all the intervals variables are\n"
67318 "unperformed too.\n"
67319 ""},
67320 { "Solver_Assignment", _wrap_Solver_Assignment, METH_VARARGS, "\n"
67321 "*Overload 1:*\n"
67322 "This method creates an empty assignment.\n"
67323 "\n"
67324 "|\n"
67325 "\n"
67326 "*Overload 2:*\n"
67327 "This method creates an assignment which is a copy of 'a'.\n"
67328 ""},
67329 { "Solver_FirstSolutionCollector", _wrap_Solver_FirstSolutionCollector, METH_VARARGS, "\n"
67330 "*Overload 1:*\n"
67331 "Collect the first solution of the search.\n"
67332 "\n"
67333 "|\n"
67334 "\n"
67335 "*Overload 2:*\n"
67336 "Collect the first solution of the search. The variables will need to\n"
67337 "be added later.\n"
67338 ""},
67339 { "Solver_LastSolutionCollector", _wrap_Solver_LastSolutionCollector, METH_VARARGS, "\n"
67340 "*Overload 1:*\n"
67341 "Collect the last solution of the search.\n"
67342 "\n"
67343 "|\n"
67344 "\n"
67345 "*Overload 2:*\n"
67346 "Collect the last solution of the search. The variables will need to\n"
67347 "be added later.\n"
67348 ""},
67349 { "Solver_BestValueSolutionCollector", _wrap_Solver_BestValueSolutionCollector, METH_VARARGS, "\n"
67350 "*Overload 1:*\n"
67351 "Collect the solution corresponding to the optimal value of the objective\n"
67352 "of 'assignment'; if 'assignment' does not have an objective no solution is\n"
67353 "collected. This collector only collects one solution corresponding to the\n"
67354 "best objective value (the first one found).\n"
67355 "\n"
67356 "|\n"
67357 "\n"
67358 "*Overload 2:*\n"
67359 "Collect the solution corresponding to the optimal value of the\n"
67360 "objective of 'assignment'; if 'assignment' does not have an objective no\n"
67361 "solution is collected. This collector only collects one solution\n"
67362 "corresponding to the best objective value (the first one\n"
67363 "found). The variables will need to be added later.\n"
67364 ""},
67365 { "Solver_AllSolutionCollector", _wrap_Solver_AllSolutionCollector, METH_VARARGS, "\n"
67366 "*Overload 1:*\n"
67367 "Collect all solutions of the search.\n"
67368 "\n"
67369 "|\n"
67370 "\n"
67371 "*Overload 2:*\n"
67372 "Collect all solutions of the search. The variables will need to\n"
67373 "be added later.\n"
67374 ""},
67375 { "Solver_Minimize", _wrap_Solver_Minimize, METH_VARARGS, " Creates a minimization objective."},
67376 { "Solver_Maximize", _wrap_Solver_Maximize, METH_VARARGS, " Creates a maximization objective."},
67377 { "Solver_Optimize", _wrap_Solver_Optimize, METH_VARARGS, " Creates a objective with a given sense (true = maximization)."},
67378 { "Solver_WeightedMinimize", _wrap_Solver_WeightedMinimize, METH_VARARGS, "\n"
67379 "*Overload 1:*\n"
67380 "Creates a minimization weighted objective. The actual objective is\n"
67381 "scalar_prod(sub_objectives, weights).\n"
67382 "\n"
67383 "|\n"
67384 "\n"
67385 "*Overload 2:*\n"
67386 "Creates a minimization weighted objective. The actual objective is\n"
67387 "scalar_prod(sub_objectives, weights).\n"
67388 ""},
67389 { "Solver_WeightedMaximize", _wrap_Solver_WeightedMaximize, METH_VARARGS, "\n"
67390 "*Overload 1:*\n"
67391 "Creates a maximization weigthed objective.\n"
67392 "\n"
67393 "|\n"
67394 "\n"
67395 "*Overload 2:*\n"
67396 "Creates a maximization weigthed objective.\n"
67397 ""},
67398 { "Solver_WeightedOptimize", _wrap_Solver_WeightedOptimize, METH_VARARGS, "\n"
67399 "*Overload 1:*\n"
67400 "Creates a weighted objective with a given sense (true = maximization).\n"
67401 "\n"
67402 "|\n"
67403 "\n"
67404 "*Overload 2:*\n"
67405 "Creates a weighted objective with a given sense (true = maximization).\n"
67406 ""},
67407 { "Solver_TabuSearch", _wrap_Solver_TabuSearch, METH_VARARGS, "\n"
67408 "MetaHeuristics which try to get the search out of local optima.\n"
67409 "Creates a Tabu Search monitor.\n"
67410 "In the context of local search the behavior is similar to MakeOptimize(),\n"
67411 "creating an objective in a given sense. The behavior differs once a local\n"
67412 "optimum is reached: thereafter solutions which degrade the value of the\n"
67413 "objective are allowed if they are not \"tabu\". A solution is \"tabu\" if it\n"
67414 "doesn't respect the following rules:\n"
67415 "- improving the best solution found so far\n"
67416 "- variables in the \"keep\" list must keep their value, variables in the\n"
67417 "\"forbid\" list must not take the value they have in the list.\n"
67418 "Variables with new values enter the tabu lists after each new solution\n"
67419 "found and leave the lists after a given number of iterations (called\n"
67420 "tenure). Only the variables passed to the method can enter the lists.\n"
67421 "The tabu criterion is softened by the tabu factor which gives the number\n"
67422 "of \"tabu\" violations which is tolerated; a factor of 1 means no violations\n"
67423 "allowed; a factor of 0 means all violations are allowed.\n"
67424 ""},
67425 { "Solver_SimulatedAnnealing", _wrap_Solver_SimulatedAnnealing, METH_VARARGS, " Creates a Simulated Annealing monitor."},
67426 { "Solver_LubyRestart", _wrap_Solver_LubyRestart, METH_VARARGS, "\n"
67427 "This search monitor will restart the search periodically.\n"
67428 "At the iteration n, it will restart after scale_factor * Luby(n) failures\n"
67429 "where Luby is the Luby Strategy (i.e. 1 1 2 1 1 2 4 1 1 2 1 1 2 4 8...).\n"
67430 ""},
67431 { "Solver_ConstantRestart", _wrap_Solver_ConstantRestart, METH_VARARGS, "\n"
67432 "This search monitor will restart the search periodically after 'frequency'\n"
67433 "failures.\n"
67434 ""},
67435 { "Solver_TimeLimit", _wrap_Solver_TimeLimit, METH_VARARGS, " Creates a search limit that constrains the running time."},
67436 { "Solver_BranchesLimit", _wrap_Solver_BranchesLimit, METH_VARARGS, "\n"
67437 "Creates a search limit that constrains the number of branches\n"
67438 "explored in the search tree.\n"
67439 ""},
67440 { "Solver_FailuresLimit", _wrap_Solver_FailuresLimit, METH_VARARGS, "\n"
67441 "Creates a search limit that constrains the number of failures\n"
67442 "that can happen when exploring the search tree.\n"
67443 ""},
67444 { "Solver_SolutionsLimit", _wrap_Solver_SolutionsLimit, METH_VARARGS, "\n"
67445 "Creates a search limit that constrains the number of solutions found\n"
67446 "during the search.\n"
67447 ""},
67448 { "Solver_Limit", _wrap_Solver_Limit, METH_VARARGS, NULL},
67449 { "Solver_CustomLimit", _wrap_Solver_CustomLimit, METH_VARARGS, "\n"
67450 "Callback-based search limit. Search stops when limiter returns true; if\n"
67451 "this happens at a leaf the corresponding solution will be rejected.\n"
67452 ""},
67453 { "Solver_SearchLog", _wrap_Solver_SearchLog, METH_VARARGS, "\n"
67454 "*Overload 1:*\n"
67455 " The SearchMonitors below will display a periodic search log\n"
67456 " on LOG(INFO) every branch_period branches explored.\n"
67457 "\n"
67458 "|\n"
67459 "\n"
67460 "*Overload 2:*\n"
67461 " At each solution, this monitor also display the var value.\n"
67462 "\n"
67463 "|\n"
67464 "\n"
67465 "*Overload 3:*\n"
67466 " At each solution, this monitor will also display result of\n"
67467 "``display_callback``.\n"
67468 "\n"
67469 "|\n"
67470 "\n"
67471 "*Overload 4:*\n"
67472 " At each solution, this monitor will display the 'var' value and the\n"
67473 " result of ``display_callback``.\n"
67474 "\n"
67475 "|\n"
67476 "\n"
67477 "*Overload 5:*\n"
67478 " OptimizeVar Search Logs\n"
67479 " At each solution, this monitor will also display the 'opt_var' value.\n"
67480 "\n"
67481 "|\n"
67482 "\n"
67483 "*Overload 6:*\n"
67484 " Creates a search monitor that will also print the result of the\n"
67485 " display callback.\n"
67486 ""},
67487 { "Solver_SearchTrace", _wrap_Solver_SearchTrace, METH_VARARGS, "\n"
67488 "Creates a search monitor that will trace precisely the behavior of the\n"
67489 "search. Use this only for low level debugging.\n"
67490 ""},
67491 { "Solver_PrintModelVisitor", _wrap_Solver_PrintModelVisitor, METH_VARARGS, " Prints the model."},
67492 { "Solver_StatisticsModelVisitor", _wrap_Solver_StatisticsModelVisitor, METH_VARARGS, " Displays some nice statistics on the model."},
67493 { "Solver_AssignVariableValue", _wrap_Solver_AssignVariableValue, METH_VARARGS, " Decisions."},
67494 { "Solver_VariableLessOrEqualValue", _wrap_Solver_VariableLessOrEqualValue, METH_VARARGS, NULL},
67495 { "Solver_VariableGreaterOrEqualValue", _wrap_Solver_VariableGreaterOrEqualValue, METH_VARARGS, NULL},
67496 { "Solver_SplitVariableDomain", _wrap_Solver_SplitVariableDomain, METH_VARARGS, NULL},
67497 { "Solver_AssignVariableValueOrFail", _wrap_Solver_AssignVariableValueOrFail, METH_VARARGS, NULL},
67498 { "Solver_AssignVariablesValues", _wrap_Solver_AssignVariablesValues, METH_VARARGS, NULL},
67499 { "Solver_FailDecision", _wrap_Solver_FailDecision, METH_VARARGS, NULL},
67500 { "Solver_Decision", _wrap_Solver_Decision, METH_VARARGS, NULL},
67501 { "Solver_Compose", _wrap_Solver_Compose, METH_VARARGS, NULL},
67502 { "Solver_Try", _wrap_Solver_Try, METH_VARARGS, NULL},
67503 { "Solver_DefaultPhase", _wrap_Solver_DefaultPhase, METH_VARARGS, NULL},
67504 { "Solver_ScheduleOrPostpone", _wrap_Solver_ScheduleOrPostpone, METH_VARARGS, "\n"
67505 "Returns a decision that tries to schedule a task at a given time.\n"
67506 "On the Apply branch, it will set that interval var as performed and set\n"
67507 "its start to 'est'. On the Refute branch, it will just update the\n"
67508 "'marker' to 'est' + 1. This decision is used in the\n"
67509 "INTERVAL_SET_TIMES_FORWARD strategy.\n"
67510 ""},
67511 { "Solver_ScheduleOrExpedite", _wrap_Solver_ScheduleOrExpedite, METH_VARARGS, "\n"
67512 "Returns a decision that tries to schedule a task at a given time.\n"
67513 "On the Apply branch, it will set that interval var as performed and set\n"
67514 "its end to 'est'. On the Refute branch, it will just update the\n"
67515 "'marker' to 'est' - 1. This decision is used in the\n"
67516 "INTERVAL_SET_TIMES_BACKWARD strategy.\n"
67517 ""},
67518 { "Solver_RankFirstInterval", _wrap_Solver_RankFirstInterval, METH_VARARGS, "\n"
67519 "Returns a decision that tries to rank first the ith interval var\n"
67520 "in the sequence variable.\n"
67521 ""},
67522 { "Solver_RankLastInterval", _wrap_Solver_RankLastInterval, METH_VARARGS, "\n"
67523 "Returns a decision that tries to rank last the ith interval var\n"
67524 "in the sequence variable.\n"
67525 ""},
67526 { "Solver_Phase", _wrap_Solver_Phase, METH_VARARGS, "\n"
67527 "*Overload 1:*\n"
67528 "Phases on IntVar arrays.\n"
67529 "for all other functions that have several homonyms in this .h).\n"
67530 "\n"
67531 "|\n"
67532 "\n"
67533 "*Overload 2:*\n"
67534 "Scheduling phases.\n"
67535 ""},
67536 { "Solver_DecisionBuilderFromAssignment", _wrap_Solver_DecisionBuilderFromAssignment, METH_VARARGS, "\n"
67537 "Returns a decision builder for which the left-most leaf corresponds\n"
67538 "to assignment, the rest of the tree being explored using 'db'.\n"
67539 ""},
67540 { "Solver_ConstraintAdder", _wrap_Solver_ConstraintAdder, METH_VARARGS, "\n"
67541 "Returns a decision builder that will add the given constraint to\n"
67542 "the model.\n"
67543 ""},
67544 { "Solver_SolveOnce", _wrap_Solver_SolveOnce, METH_VARARGS, NULL},
67545 { "Solver_NestedOptimize", _wrap_Solver_NestedOptimize, METH_VARARGS, NULL},
67546 { "Solver_RestoreAssignment", _wrap_Solver_RestoreAssignment, METH_VARARGS, "\n"
67547 "Returns a DecisionBuilder which restores an Assignment\n"
67548 "(calls void Assignment::Restore())\n"
67549 ""},
67550 { "Solver_StoreAssignment", _wrap_Solver_StoreAssignment, METH_VARARGS, "\n"
67551 "Returns a DecisionBuilder which stores an Assignment\n"
67552 "(calls void Assignment::Store())\n"
67553 ""},
67554 { "Solver_Operator", _wrap_Solver_Operator, METH_VARARGS, NULL},
67555 { "Solver_RandomLnsOperator", _wrap_Solver_RandomLnsOperator, METH_VARARGS, "\n"
67556 "Creates a large neighborhood search operator which creates fragments (set\n"
67557 "of relaxed variables) with up to number_of_variables random variables\n"
67558 "(sampling with replacement is performed meaning that at most\n"
67559 "number_of_variables variables are selected). Warning: this operator will\n"
67560 "always return neighbors; using it without a search limit will result in a\n"
67561 "non-ending search.\n"
67562 "Optionally a random seed can be specified.\n"
67563 ""},
67564 { "Solver_MoveTowardTargetOperator", _wrap_Solver_MoveTowardTargetOperator, METH_VARARGS, "\n"
67565 "*Overload 1:*\n"
67566 "Creates a local search operator that tries to move the assignment of some\n"
67567 "variables toward a target. The target is given as an Assignment. This\n"
67568 "operator generates neighbors in which the only difference compared to the\n"
67569 "current state is that one variable that belongs to the target assignment\n"
67570 "is set to its target value.\n"
67571 "\n"
67572 "|\n"
67573 "\n"
67574 "*Overload 2:*\n"
67575 "Creates a local search operator that tries to move the assignment of some\n"
67576 "variables toward a target. The target is given either as two vectors: a\n"
67577 "vector of variables and a vector of associated target values. The two\n"
67578 "vectors should be of the same length. This operator generates neighbors in\n"
67579 "which the only difference compared to the current state is that one\n"
67580 "variable that belongs to the given vector is set to its target value.\n"
67581 ""},
67582 { "Solver_ConcatenateOperators", _wrap_Solver_ConcatenateOperators, METH_VARARGS, NULL},
67583 { "Solver_RandomConcatenateOperators", _wrap_Solver_RandomConcatenateOperators, METH_VARARGS, "\n"
67584 "*Overload 1:*\n"
67585 "Randomized version of local search concatenator; calls a random operator\n"
67586 "at each call to MakeNextNeighbor().\n"
67587 "\n"
67588 "|\n"
67589 "\n"
67590 "*Overload 2:*\n"
67591 "Randomized version of local search concatenator; calls a random operator\n"
67592 "at each call to MakeNextNeighbor(). The provided seed is used to\n"
67593 "initialize the random number generator.\n"
67594 ""},
67595 { "Solver_NeighborhoodLimit", _wrap_Solver_NeighborhoodLimit, METH_VARARGS, "\n"
67596 "Creates a local search operator that wraps another local search\n"
67597 "operator and limits the number of neighbors explored (i.e., calls\n"
67598 "to MakeNextNeighbor from the current solution (between two calls\n"
67599 "to Start()). When this limit is reached, MakeNextNeighbor()\n"
67600 "returns false. The counter is cleared when Start() is called.\n"
67601 ""},
67602 { "Solver_LocalSearchPhase", _wrap_Solver_LocalSearchPhase, METH_VARARGS, "\n"
67603 "*Overload 1:*\n"
67604 "Local Search decision builders factories.\n"
67605 "Local search is used to improve a given solution. This initial solution\n"
67606 "can be specified either by an Assignment or by a DecisionBulder, and the\n"
67607 "corresponding variables, the initial solution being the first solution\n"
67608 "found by the DecisionBuilder.\n"
67609 "The LocalSearchPhaseParameters parameter holds the actual definition of\n"
67610 "the local search phase:\n"
67611 "- a local search operator used to explore the neighborhood of the current\n"
67612 " solution,\n"
67613 "- a decision builder to instantiate unbound variables once a neighbor has\n"
67614 " been defined; in the case of LNS-based operators instantiates fragment\n"
67615 " variables; search monitors can be added to this sub-search by wrapping\n"
67616 " the decision builder with MakeSolveOnce.\n"
67617 "- a search limit specifying how long local search looks for neighbors\n"
67618 " before accepting one; the last neighbor is always taken and in the case\n"
67619 " of a greedy search, this corresponds to the best local neighbor;\n"
67620 " first-accept (which is the default behavior) can be modeled using a\n"
67621 " solution found limit of 1,\n"
67622 "- a vector of local search filters used to speed up the search by pruning\n"
67623 " unfeasible neighbors.\n"
67624 "Metaheuristics can be added by defining specialized search monitors;\n"
67625 "currently down/up-hill climbing is available through OptimizeVar, as well\n"
67626 "as Guided Local Search, Tabu Search and Simulated Annealing.\n"
67627 "\n"
67628 "|\n"
67629 "\n"
67630 "*Overload 2:*\n"
67631 "Variant with a sub_decison_builder specific to the first solution.\n"
67632 ""},
67633 { "Solver_LocalSearchPhaseParameters", _wrap_Solver_LocalSearchPhaseParameters, METH_VARARGS, NULL},
67634 { "Solver_SearchDepth", _wrap_Solver_SearchDepth, METH_VARARGS, "\n"
67635 "Gets the search depth of the current active search. Returns -1 if\n"
67636 "there is no active search opened.\n"
67637 ""},
67638 { "Solver_SearchLeftDepth", _wrap_Solver_SearchLeftDepth, METH_VARARGS, "\n"
67639 "Gets the search left depth of the current active search. Returns -1 if\n"
67640 "there is no active search opened.\n"
67641 ""},
67642 { "Solver_SolveDepth", _wrap_Solver_SolveDepth, METH_VARARGS, "\n"
67643 "Gets the number of nested searches. It returns 0 outside search,\n"
67644 "1 during the top level search, 2 or more in case of nested searches.\n"
67645 ""},
67646 { "Solver_Rand64", _wrap_Solver_Rand64, METH_VARARGS, " Returns a random value between 0 and 'size' - 1;"},
67647 { "Solver_Rand32", _wrap_Solver_Rand32, METH_VARARGS, " Returns a random value between 0 and 'size' - 1;"},
67648 { "Solver_ReSeed", _wrap_Solver_ReSeed, METH_VARARGS, " Reseed the solver random generator."},
67649 { "Solver_LocalSearchProfile", _wrap_Solver_LocalSearchProfile, METH_VARARGS, " Returns local search profiling information in a human readable format."},
67650 { "Solver_Constraints", _wrap_Solver_Constraints, METH_VARARGS, "\n"
67651 "Counts the number of constraints that have been added\n"
67652 "to the solver before the search.\n"
67653 ""},
67654 { "Solver_Accept", _wrap_Solver_Accept, METH_VARARGS, " Accepts the given model visitor."},
67655 { "Solver_FinishCurrentSearch", _wrap_Solver_FinishCurrentSearch, METH_VARARGS, " Tells the solver to kill or restart the current search."},
67656 { "Solver_RestartCurrentSearch", _wrap_Solver_RestartCurrentSearch, METH_VARARGS, NULL},
67657 { "Solver_ShouldFail", _wrap_Solver_ShouldFail, METH_VARARGS, "\n"
67658 "These methods are only useful for the SWIG wrappers, which need a way\n"
67659 "to externally cause the Solver to fail.\n"
67660 ""},
67661 { "Solver___str__", _wrap_Solver___str__, METH_VARARGS, NULL},
67662 { "Solver_TreeNoCycle", _wrap_Solver_TreeNoCycle, METH_VARARGS, NULL},
67663 { "Solver_SearchLogWithCallback", _wrap_Solver_SearchLogWithCallback, METH_VARARGS, NULL},
67664 { "Solver_ElementFunction", _wrap_Solver_ElementFunction, METH_VARARGS, NULL},
67665 { "Solver_VarEvalValStrPhase", _wrap_Solver_VarEvalValStrPhase, METH_VARARGS, NULL},
67666 { "Solver_VarStrValEvalPhase", _wrap_Solver_VarStrValEvalPhase, METH_VARARGS, NULL},
67667 { "Solver_VarEvalValEvalPhase", _wrap_Solver_VarEvalValEvalPhase, METH_VARARGS, NULL},
67668 { "Solver_VarStrValEvalTieBreakPhase", _wrap_Solver_VarStrValEvalTieBreakPhase, METH_VARARGS, NULL},
67669 { "Solver_VarEvalValEvalTieBreakPhase", _wrap_Solver_VarEvalValEvalTieBreakPhase, METH_VARARGS, NULL},
67670 { "Solver_EvalEvalStrPhase", _wrap_Solver_EvalEvalStrPhase, METH_VARARGS, NULL},
67671 { "Solver_EvalEvalStrTieBreakPhase", _wrap_Solver_EvalEvalStrTieBreakPhase, METH_VARARGS, NULL},
67672 { "Solver_GuidedLocalSearch", _wrap_Solver_GuidedLocalSearch, METH_VARARGS, NULL},
67673 { "Solver_SumObjectiveFilter", _wrap_Solver_SumObjectiveFilter, METH_VARARGS, NULL},
67674 { "Solver_swigregister", Solver_swigregister, METH_O, NULL},
67675 { "Solver_swiginit", Solver_swiginit, METH_VARARGS, NULL},
67676 { "new_BaseObject", _wrap_new_BaseObject, METH_VARARGS, NULL},
67677 { "delete_BaseObject", _wrap_delete_BaseObject, METH_VARARGS, NULL},
67678 { "BaseObject_DebugString", _wrap_BaseObject_DebugString, METH_VARARGS, NULL},
67679 { "BaseObject___str__", _wrap_BaseObject___str__, METH_VARARGS, NULL},
67680 { "BaseObject___repr__", _wrap_BaseObject___repr__, METH_VARARGS, NULL},
67681 { "disown_BaseObject", _wrap_disown_BaseObject, METH_VARARGS, NULL},
67682 { "BaseObject_swigregister", BaseObject_swigregister, METH_O, NULL},
67683 { "BaseObject_swiginit", BaseObject_swiginit, METH_VARARGS, NULL},
67684 { "new_PropagationBaseObject", _wrap_new_PropagationBaseObject, METH_VARARGS, NULL},
67685 { "delete_PropagationBaseObject", _wrap_delete_PropagationBaseObject, METH_VARARGS, NULL},
67686 { "PropagationBaseObject_DebugString", _wrap_PropagationBaseObject_DebugString, METH_VARARGS, NULL},
67687 { "PropagationBaseObject_solver", _wrap_PropagationBaseObject_solver, METH_VARARGS, NULL},
67688 { "PropagationBaseObject_Name", _wrap_PropagationBaseObject_Name, METH_VARARGS, " Object naming."},
67689 { "disown_PropagationBaseObject", _wrap_disown_PropagationBaseObject, METH_VARARGS, NULL},
67690 { "PropagationBaseObject_swigregister", PropagationBaseObject_swigregister, METH_O, NULL},
67691 { "PropagationBaseObject_swiginit", PropagationBaseObject_swiginit, METH_VARARGS, NULL},
67692 { "new_Decision", _wrap_new_Decision, METH_VARARGS, NULL},
67693 { "delete_Decision", _wrap_delete_Decision, METH_VARARGS, NULL},
67694 { "Decision_ApplyWrapper", _wrap_Decision_ApplyWrapper, METH_VARARGS, " Apply will be called first when the decision is executed."},
67695 { "Decision_RefuteWrapper", _wrap_Decision_RefuteWrapper, METH_VARARGS, " Refute will be called after a backtrack."},
67696 { "Decision_DebugString", _wrap_Decision_DebugString, METH_VARARGS, NULL},
67697 { "Decision___repr__", _wrap_Decision___repr__, METH_VARARGS, NULL},
67698 { "Decision___str__", _wrap_Decision___str__, METH_VARARGS, NULL},
67699 { "disown_Decision", _wrap_disown_Decision, METH_VARARGS, NULL},
67700 { "Decision_swigregister", Decision_swigregister, METH_O, NULL},
67701 { "Decision_swiginit", Decision_swiginit, METH_VARARGS, NULL},
67702 { "new_DecisionBuilder", _wrap_new_DecisionBuilder, METH_VARARGS, NULL},
67703 { "delete_DecisionBuilder", _wrap_delete_DecisionBuilder, METH_VARARGS, NULL},
67704 { "DecisionBuilder_NextWrapper", _wrap_DecisionBuilder_NextWrapper, METH_VARARGS, "\n"
67705 "This is the main method of the decision builder class. It must\n"
67706 "return a decision (an instance of the class Decision). If it\n"
67707 "returns nullptr, this means that the decision builder has finished\n"
67708 "its work.\n"
67709 ""},
67710 { "DecisionBuilder_DebugString", _wrap_DecisionBuilder_DebugString, METH_VARARGS, NULL},
67711 { "DecisionBuilder___repr__", _wrap_DecisionBuilder___repr__, METH_VARARGS, NULL},
67712 { "DecisionBuilder___str__", _wrap_DecisionBuilder___str__, METH_VARARGS, NULL},
67713 { "disown_DecisionBuilder", _wrap_disown_DecisionBuilder, METH_VARARGS, NULL},
67714 { "DecisionBuilder_swigregister", DecisionBuilder_swigregister, METH_O, NULL},
67715 { "DecisionBuilder_swiginit", DecisionBuilder_swiginit, METH_VARARGS, NULL},
67716 { "new_Demon", _wrap_new_Demon, METH_VARARGS, "\n"
67717 "This indicates the priority of a demon. Immediate demons are treated\n"
67718 "separately and corresponds to variables.\n"
67719 ""},
67720 { "delete_Demon", _wrap_delete_Demon, METH_VARARGS, NULL},
67721 { "Demon_RunWrapper", _wrap_Demon_RunWrapper, METH_VARARGS, " This is the main callback of the demon."},
67722 { "Demon_Priority", _wrap_Demon_Priority, METH_VARARGS, "\n"
67723 "This method returns the priority of the demon. Usually a demon is\n"
67724 "fast, slow or normal. Immediate demons are reserved for internal\n"
67725 "use to maintain variables.\n"
67726 ""},
67727 { "Demon_DebugString", _wrap_Demon_DebugString, METH_VARARGS, NULL},
67728 { "Demon_Inhibit", _wrap_Demon_Inhibit, METH_VARARGS, "\n"
67729 "This method inhibits the demon in the search tree below the\n"
67730 "current position.\n"
67731 ""},
67732 { "Demon_Desinhibit", _wrap_Demon_Desinhibit, METH_VARARGS, " This method un-inhibits the demon that was previously inhibited."},
67733 { "disown_Demon", _wrap_disown_Demon, METH_VARARGS, NULL},
67734 { "Demon_swigregister", Demon_swigregister, METH_O, NULL},
67735 { "Demon_swiginit", Demon_swiginit, METH_VARARGS, NULL},
67736 { "new_Constraint", _wrap_new_Constraint, METH_VARARGS, NULL},
67737 { "delete_Constraint", _wrap_delete_Constraint, METH_VARARGS, NULL},
67738 { "Constraint_Post", _wrap_Constraint_Post, METH_VARARGS, "\n"
67739 "This method is called when the constraint is processed by the\n"
67740 "solver. Its main usage is to attach demons to variables.\n"
67741 ""},
67742 { "Constraint_InitialPropagateWrapper", _wrap_Constraint_InitialPropagateWrapper, METH_VARARGS, "\n"
67743 "This method performs the initial propagation of the\n"
67744 "constraint. It is called just after the post.\n"
67745 ""},
67746 { "Constraint_DebugString", _wrap_Constraint_DebugString, METH_VARARGS, NULL},
67747 { "Constraint_Var", _wrap_Constraint_Var, METH_VARARGS, "\n"
67748 "Creates a Boolean variable representing the status of the constraint\n"
67749 "(false = constraint is violated, true = constraint is satisfied). It\n"
67750 "returns nullptr if the constraint does not support this API.\n"
67751 ""},
67752 { "Constraint___repr__", _wrap_Constraint___repr__, METH_VARARGS, NULL},
67753 { "Constraint___str__", _wrap_Constraint___str__, METH_VARARGS, NULL},
67754 { "Constraint___add__", _wrap_Constraint___add__, METH_VARARGS, NULL},
67755 { "Constraint___radd__", _wrap_Constraint___radd__, METH_VARARGS, NULL},
67756 { "Constraint___sub__", _wrap_Constraint___sub__, METH_VARARGS, NULL},
67757 { "Constraint___rsub__", _wrap_Constraint___rsub__, METH_VARARGS, NULL},
67758 { "Constraint___mul__", _wrap_Constraint___mul__, METH_VARARGS, NULL},
67759 { "Constraint___rmul__", _wrap_Constraint___rmul__, METH_VARARGS, NULL},
67760 { "Constraint___floordiv__", _wrap_Constraint___floordiv__, METH_VARARGS, NULL},
67761 { "Constraint___neg__", _wrap_Constraint___neg__, METH_VARARGS, NULL},
67762 { "Constraint___abs__", _wrap_Constraint___abs__, METH_VARARGS, NULL},
67763 { "Constraint_Square", _wrap_Constraint_Square, METH_VARARGS, NULL},
67764 { "Constraint___eq__", _wrap_Constraint___eq__, METH_VARARGS, NULL},
67765 { "Constraint___ne__", _wrap_Constraint___ne__, METH_VARARGS, NULL},
67766 { "Constraint___ge__", _wrap_Constraint___ge__, METH_VARARGS, NULL},
67767 { "Constraint___gt__", _wrap_Constraint___gt__, METH_VARARGS, NULL},
67768 { "Constraint___le__", _wrap_Constraint___le__, METH_VARARGS, NULL},
67769 { "Constraint___lt__", _wrap_Constraint___lt__, METH_VARARGS, NULL},
67770 { "Constraint_MapTo", _wrap_Constraint_MapTo, METH_VARARGS, NULL},
67771 { "Constraint_IndexOf", _wrap_Constraint_IndexOf, METH_VARARGS, NULL},
67772 { "disown_Constraint", _wrap_disown_Constraint, METH_VARARGS, NULL},
67773 { "Constraint_swigregister", Constraint_swigregister, METH_O, NULL},
67774 { "Constraint_swiginit", Constraint_swiginit, METH_VARARGS, NULL},
67775 { "new_SearchMonitor", _wrap_new_SearchMonitor, METH_VARARGS, NULL},
67776 { "delete_SearchMonitor", _wrap_delete_SearchMonitor, METH_VARARGS, NULL},
67777 { "SearchMonitor_EnterSearch", _wrap_SearchMonitor_EnterSearch, METH_VARARGS, " Beginning of the search."},
67778 { "SearchMonitor_RestartSearch", _wrap_SearchMonitor_RestartSearch, METH_VARARGS, " Restart the search."},
67779 { "SearchMonitor_ExitSearch", _wrap_SearchMonitor_ExitSearch, METH_VARARGS, " End of the search."},
67780 { "SearchMonitor_BeginNextDecision", _wrap_SearchMonitor_BeginNextDecision, METH_VARARGS, " Before calling DecisionBuilder::Next."},
67781 { "SearchMonitor_EndNextDecision", _wrap_SearchMonitor_EndNextDecision, METH_VARARGS, " After calling DecisionBuilder::Next, along with the returned decision."},
67782 { "SearchMonitor_ApplyDecision", _wrap_SearchMonitor_ApplyDecision, METH_VARARGS, " Before applying the decision."},
67783 { "SearchMonitor_RefuteDecision", _wrap_SearchMonitor_RefuteDecision, METH_VARARGS, " Before refuting the decision."},
67784 { "SearchMonitor_AfterDecision", _wrap_SearchMonitor_AfterDecision, METH_VARARGS, "\n"
67785 "Just after refuting or applying the decision, apply is true after Apply.\n"
67786 "This is called only if the Apply() or Refute() methods have not failed.\n"
67787 ""},
67788 { "SearchMonitor_BeginFail", _wrap_SearchMonitor_BeginFail, METH_VARARGS, " Just when the failure occurs."},
67789 { "SearchMonitor_EndFail", _wrap_SearchMonitor_EndFail, METH_VARARGS, " After completing the backtrack."},
67790 { "SearchMonitor_BeginInitialPropagation", _wrap_SearchMonitor_BeginInitialPropagation, METH_VARARGS, " Before the initial propagation."},
67791 { "SearchMonitor_EndInitialPropagation", _wrap_SearchMonitor_EndInitialPropagation, METH_VARARGS, " After the initial propagation."},
67792 { "SearchMonitor_AcceptSolution", _wrap_SearchMonitor_AcceptSolution, METH_VARARGS, "\n"
67793 "This method is called when a solution is found. It asserts whether the\n"
67794 "solution is valid. A value of false indicates that the solution\n"
67795 "should be discarded.\n"
67796 ""},
67797 { "SearchMonitor_AtSolution", _wrap_SearchMonitor_AtSolution, METH_VARARGS, "\n"
67798 "This method is called when a valid solution is found. If the\n"
67799 "return value is true, then search will resume after. If the result\n"
67800 "is false, then search will stop there.\n"
67801 ""},
67802 { "SearchMonitor_NoMoreSolutions", _wrap_SearchMonitor_NoMoreSolutions, METH_VARARGS, " When the search tree is finished."},
67803 { "SearchMonitor_LocalOptimum", _wrap_SearchMonitor_LocalOptimum, METH_VARARGS, "\n"
67804 "When a local optimum is reached. If 'true' is returned, the last solution\n"
67805 "is discarded and the search proceeds with the next one.\n"
67806 ""},
67807 { "SearchMonitor_AcceptDelta", _wrap_SearchMonitor_AcceptDelta, METH_VARARGS, ""},
67808 { "SearchMonitor_AcceptNeighbor", _wrap_SearchMonitor_AcceptNeighbor, METH_VARARGS, " After accepting a neighbor during local search."},
67809 { "SearchMonitor_solver", _wrap_SearchMonitor_solver, METH_VARARGS, NULL},
67810 { "SearchMonitor___repr__", _wrap_SearchMonitor___repr__, METH_VARARGS, NULL},
67811 { "SearchMonitor___str__", _wrap_SearchMonitor___str__, METH_VARARGS, NULL},
67812 { "disown_SearchMonitor", _wrap_disown_SearchMonitor, METH_VARARGS, NULL},
67813 { "SearchMonitor_swigregister", SearchMonitor_swigregister, METH_O, NULL},
67814 { "SearchMonitor_swiginit", SearchMonitor_swiginit, METH_VARARGS, NULL},
67815 { "IntExpr_Min", _wrap_IntExpr_Min, METH_VARARGS, NULL},
67816 { "IntExpr_SetMin", _wrap_IntExpr_SetMin, METH_VARARGS, NULL},
67817 { "IntExpr_Max", _wrap_IntExpr_Max, METH_VARARGS, NULL},
67818 { "IntExpr_SetMax", _wrap_IntExpr_SetMax, METH_VARARGS, NULL},
67819 { "IntExpr_SetRange", _wrap_IntExpr_SetRange, METH_VARARGS, " This method sets both the min and the max of the expression."},
67820 { "IntExpr_SetValue", _wrap_IntExpr_SetValue, METH_VARARGS, " This method sets the value of the expression."},
67821 { "IntExpr_Bound", _wrap_IntExpr_Bound, METH_VARARGS, " Returns true if the min and the max of the expression are equal."},
67822 { "IntExpr_IsVar", _wrap_IntExpr_IsVar, METH_VARARGS, " Returns true if the expression is indeed a variable."},
67823 { "IntExpr_Var", _wrap_IntExpr_Var, METH_VARARGS, " Creates a variable from the expression."},
67824 { "IntExpr_VarWithName", _wrap_IntExpr_VarWithName, METH_VARARGS, "\n"
67825 "Creates a variable from the expression and set the name of the\n"
67826 "resulting var. If the expression is already a variable, then it\n"
67827 "will set the name of the expression, possibly overwriting it.\n"
67828 "This is just a shortcut to Var() followed by set_name().\n"
67829 ""},
67830 { "IntExpr_WhenRange", _wrap_IntExpr_WhenRange, METH_VARARGS, "\n"
67831 "*Overload 1:*\n"
67832 "Attach a demon that will watch the min or the max of the expression.\n"
67833 "\n"
67834 "|\n"
67835 "\n"
67836 "*Overload 2:*\n"
67837 "Attach a demon that will watch the min or the max of the expression.\n"
67838 ""},
67839 { "IntExpr___repr__", _wrap_IntExpr___repr__, METH_VARARGS, NULL},
67840 { "IntExpr___str__", _wrap_IntExpr___str__, METH_VARARGS, NULL},
67841 { "IntExpr___add__", _wrap_IntExpr___add__, METH_VARARGS, NULL},
67842 { "IntExpr___radd__", _wrap_IntExpr___radd__, METH_VARARGS, NULL},
67843 { "IntExpr___sub__", _wrap_IntExpr___sub__, METH_VARARGS, NULL},
67844 { "IntExpr___rsub__", _wrap_IntExpr___rsub__, METH_VARARGS, NULL},
67845 { "IntExpr___mul__", _wrap_IntExpr___mul__, METH_VARARGS, NULL},
67846 { "IntExpr___rmul__", _wrap_IntExpr___rmul__, METH_VARARGS, NULL},
67847 { "IntExpr___floordiv__", _wrap_IntExpr___floordiv__, METH_VARARGS, NULL},
67848 { "IntExpr___mod__", _wrap_IntExpr___mod__, METH_VARARGS, NULL},
67849 { "IntExpr___neg__", _wrap_IntExpr___neg__, METH_VARARGS, NULL},
67850 { "IntExpr___abs__", _wrap_IntExpr___abs__, METH_VARARGS, NULL},
67851 { "IntExpr_Square", _wrap_IntExpr_Square, METH_VARARGS, NULL},
67852 { "IntExpr___eq__", _wrap_IntExpr___eq__, METH_VARARGS, NULL},
67853 { "IntExpr___ne__", _wrap_IntExpr___ne__, METH_VARARGS, NULL},
67854 { "IntExpr___ge__", _wrap_IntExpr___ge__, METH_VARARGS, NULL},
67855 { "IntExpr___gt__", _wrap_IntExpr___gt__, METH_VARARGS, NULL},
67856 { "IntExpr___le__", _wrap_IntExpr___le__, METH_VARARGS, NULL},
67857 { "IntExpr___lt__", _wrap_IntExpr___lt__, METH_VARARGS, NULL},
67858 { "IntExpr_MapTo", _wrap_IntExpr_MapTo, METH_VARARGS, NULL},
67859 { "IntExpr_IndexOf", _wrap_IntExpr_IndexOf, METH_VARARGS, NULL},
67860 { "IntExpr_IsMember", _wrap_IntExpr_IsMember, METH_VARARGS, NULL},
67861 { "IntExpr_Member", _wrap_IntExpr_Member, METH_VARARGS, NULL},
67862 { "IntExpr_NotMember", _wrap_IntExpr_NotMember, METH_VARARGS, NULL},
67863 { "IntExpr_swigregister", IntExpr_swigregister, METH_O, NULL},
67864 { "IntVarIterator_Init", _wrap_IntVarIterator_Init, METH_VARARGS, " This method must be called before each loop."},
67865 { "IntVarIterator_Ok", _wrap_IntVarIterator_Ok, METH_VARARGS, " This method indicates if we can call Value() or not."},
67866 { "IntVarIterator_Value", _wrap_IntVarIterator_Value, METH_VARARGS, " This method returns the current value of the iterator."},
67867 { "IntVarIterator_Next", _wrap_IntVarIterator_Next, METH_VARARGS, " This method moves the iterator to the next value."},
67868 { "IntVarIterator_DebugString", _wrap_IntVarIterator_DebugString, METH_VARARGS, " Pretty Print."},
67869 { "IntVarIterator_swigregister", IntVarIterator_swigregister, METH_O, NULL},
67870 { "IntVar_IsVar", _wrap_IntVar_IsVar, METH_VARARGS, NULL},
67871 { "IntVar_Var", _wrap_IntVar_Var, METH_VARARGS, NULL},
67872 { "IntVar_Value", _wrap_IntVar_Value, METH_VARARGS, "\n"
67873 "This method returns the value of the variable. This method checks\n"
67874 "before that the variable is bound.\n"
67875 ""},
67876 { "IntVar_RemoveValue", _wrap_IntVar_RemoveValue, METH_VARARGS, " This method removes the value 'v' from the domain of the variable."},
67877 { "IntVar_RemoveInterval", _wrap_IntVar_RemoveInterval, METH_VARARGS, "\n"
67878 "This method removes the interval 'l' .. 'u' from the domain of\n"
67879 "the variable. It assumes that 'l' <= 'u'.\n"
67880 ""},
67881 { "IntVar_RemoveValues", _wrap_IntVar_RemoveValues, METH_VARARGS, " This method remove the values from the domain of the variable."},
67882 { "IntVar_SetValues", _wrap_IntVar_SetValues, METH_VARARGS, " This method intersects the current domain with the values in the array."},
67883 { "IntVar_WhenBound", _wrap_IntVar_WhenBound, METH_VARARGS, "\n"
67884 "*Overload 1:*\n"
67885 "This method attaches a demon that will be awakened when the\n"
67886 "variable is bound.\n"
67887 "\n"
67888 "|\n"
67889 "\n"
67890 "*Overload 2:*\n"
67891 "This method attaches a closure that will be awakened when the\n"
67892 "variable is bound.\n"
67893 ""},
67894 { "IntVar_WhenDomain", _wrap_IntVar_WhenDomain, METH_VARARGS, "\n"
67895 "*Overload 1:*\n"
67896 "This method attaches a demon that will watch any domain\n"
67897 "modification of the domain of the variable.\n"
67898 "\n"
67899 "|\n"
67900 "\n"
67901 "*Overload 2:*\n"
67902 "This method attaches a closure that will watch any domain\n"
67903 "modification of the domain of the variable.\n"
67904 ""},
67905 { "IntVar_Size", _wrap_IntVar_Size, METH_VARARGS, " This method returns the number of values in the domain of the variable."},
67906 { "IntVar_Contains", _wrap_IntVar_Contains, METH_VARARGS, "\n"
67907 "This method returns whether the value 'v' is in the domain of the\n"
67908 "variable.\n"
67909 ""},
67910 { "IntVar_HoleIteratorAux", _wrap_IntVar_HoleIteratorAux, METH_VARARGS, "\n"
67911 "Creates a hole iterator. When 'reversible' is false, the returned\n"
67912 "object is created on the normal C++ heap and the solver does NOT\n"
67913 "take ownership of the object.\n"
67914 ""},
67915 { "IntVar_DomainIteratorAux", _wrap_IntVar_DomainIteratorAux, METH_VARARGS, "\n"
67916 "Creates a domain iterator. When 'reversible' is false, the\n"
67917 "returned object is created on the normal C++ heap and the solver\n"
67918 "does NOT take ownership of the object.\n"
67919 ""},
67920 { "IntVar_OldMin", _wrap_IntVar_OldMin, METH_VARARGS, " Returns the previous min."},
67921 { "IntVar_OldMax", _wrap_IntVar_OldMax, METH_VARARGS, " Returns the previous max."},
67922 { "IntVar___repr__", _wrap_IntVar___repr__, METH_VARARGS, NULL},
67923 { "IntVar___str__", _wrap_IntVar___str__, METH_VARARGS, NULL},
67924 { "IntVar_swigregister", IntVar_swigregister, METH_O, NULL},
67925 { "SolutionCollector_DebugString", _wrap_SolutionCollector_DebugString, METH_VARARGS, NULL},
67926 { "SolutionCollector_Add", _wrap_SolutionCollector_Add, METH_VARARGS, NULL},
67927 { "SolutionCollector_AddObjective", _wrap_SolutionCollector_AddObjective, METH_VARARGS, NULL},
67928 { "SolutionCollector_EnterSearch", _wrap_SolutionCollector_EnterSearch, METH_VARARGS, " Beginning of the search."},
67929 { "SolutionCollector_SolutionCount", _wrap_SolutionCollector_SolutionCount, METH_VARARGS, " Returns how many solutions were stored during the search."},
67930 { "SolutionCollector_Solution", _wrap_SolutionCollector_Solution, METH_VARARGS, " Returns the nth solution."},
67931 { "SolutionCollector_WallTime", _wrap_SolutionCollector_WallTime, METH_VARARGS, " Returns the wall time in ms for the nth solution."},
67932 { "SolutionCollector_Branches", _wrap_SolutionCollector_Branches, METH_VARARGS, " Returns the number of branches when the nth solution was found."},
67933 { "SolutionCollector_Failures", _wrap_SolutionCollector_Failures, METH_VARARGS, "\n"
67934 "Returns the number of failures encountered at the time of the nth\n"
67935 "solution.\n"
67936 ""},
67937 { "SolutionCollector_ObjectiveValue", _wrap_SolutionCollector_ObjectiveValue, METH_VARARGS, " Returns the objective value of the nth solution."},
67938 { "SolutionCollector_Value", _wrap_SolutionCollector_Value, METH_VARARGS, " This is a shortcut to get the Value of 'var' in the nth solution."},
67939 { "SolutionCollector_StartValue", _wrap_SolutionCollector_StartValue, METH_VARARGS, " This is a shortcut to get the StartValue of 'var' in the nth solution."},
67940 { "SolutionCollector_EndValue", _wrap_SolutionCollector_EndValue, METH_VARARGS, " This is a shortcut to get the EndValue of 'var' in the nth solution."},
67941 { "SolutionCollector_DurationValue", _wrap_SolutionCollector_DurationValue, METH_VARARGS, " This is a shortcut to get the DurationValue of 'var' in the nth solution."},
67942 { "SolutionCollector_PerformedValue", _wrap_SolutionCollector_PerformedValue, METH_VARARGS, " This is a shortcut to get the PerformedValue of 'var' in the nth solution."},
67943 { "SolutionCollector_ForwardSequence", _wrap_SolutionCollector_ForwardSequence, METH_VARARGS, "\n"
67944 "This is a shortcut to get the ForwardSequence of 'var' in the\n"
67945 "nth solution. The forward sequence is the list of ranked interval\n"
67946 "variables starting from the start of the sequence.\n"
67947 ""},
67948 { "SolutionCollector_BackwardSequence", _wrap_SolutionCollector_BackwardSequence, METH_VARARGS, "\n"
67949 "This is a shortcut to get the BackwardSequence of 'var' in the\n"
67950 "nth solution. The backward sequence is the list of ranked interval\n"
67951 "variables starting from the end of the sequence.\n"
67952 ""},
67953 { "SolutionCollector_Unperformed", _wrap_SolutionCollector_Unperformed, METH_VARARGS, "\n"
67954 "This is a shortcut to get the list of unperformed of 'var' in the\n"
67955 "nth solution.\n"
67956 ""},
67957 { "SolutionCollector_swigregister", SolutionCollector_swigregister, METH_O, NULL},
67958 { "OptimizeVar_Best", _wrap_OptimizeVar_Best, METH_VARARGS, " Returns the best value found during search."},
67959 { "OptimizeVar_Var", _wrap_OptimizeVar_Var, METH_VARARGS, " Returns the variable that is optimized."},
67960 { "OptimizeVar_AcceptDelta", _wrap_OptimizeVar_AcceptDelta, METH_VARARGS, " Internal methods."},
67961 { "OptimizeVar_EnterSearch", _wrap_OptimizeVar_EnterSearch, METH_VARARGS, NULL},
67962 { "OptimizeVar_BeginNextDecision", _wrap_OptimizeVar_BeginNextDecision, METH_VARARGS, NULL},
67963 { "OptimizeVar_RefuteDecision", _wrap_OptimizeVar_RefuteDecision, METH_VARARGS, NULL},
67964 { "OptimizeVar_AtSolution", _wrap_OptimizeVar_AtSolution, METH_VARARGS, NULL},
67965 { "OptimizeVar_AcceptSolution", _wrap_OptimizeVar_AcceptSolution, METH_VARARGS, NULL},
67966 { "OptimizeVar_DebugString", _wrap_OptimizeVar_DebugString, METH_VARARGS, NULL},
67967 { "OptimizeVar_swigregister", OptimizeVar_swigregister, METH_O, NULL},
67968 { "delete_SearchLimit", _wrap_delete_SearchLimit, METH_VARARGS, NULL},
67969 { "SearchLimit_Crossed", _wrap_SearchLimit_Crossed, METH_VARARGS, " Returns true if the limit has been crossed."},
67970 { "SearchLimit_Check", _wrap_SearchLimit_Check, METH_VARARGS, "\n"
67971 "This method is called to check the status of the limit. A return\n"
67972 "value of true indicates that we have indeed crossed the limit. In\n"
67973 "that case, this method will not be called again and the remaining\n"
67974 "search will be discarded.\n"
67975 ""},
67976 { "SearchLimit_Init", _wrap_SearchLimit_Init, METH_VARARGS, " This method is called when the search limit is initialized."},
67977 { "SearchLimit_EnterSearch", _wrap_SearchLimit_EnterSearch, METH_VARARGS, " Internal methods."},
67978 { "SearchLimit_BeginNextDecision", _wrap_SearchLimit_BeginNextDecision, METH_VARARGS, NULL},
67979 { "SearchLimit_RefuteDecision", _wrap_SearchLimit_RefuteDecision, METH_VARARGS, NULL},
67980 { "SearchLimit_DebugString", _wrap_SearchLimit_DebugString, METH_VARARGS, NULL},
67981 { "SearchLimit_swigregister", SearchLimit_swigregister, METH_O, NULL},
67982 { "IntervalVar_StartMin", _wrap_IntervalVar_StartMin, METH_VARARGS, "\n"
67983 "These methods query, set, and watch the start position of the\n"
67984 "interval var.\n"
67985 ""},
67986 { "IntervalVar_StartMax", _wrap_IntervalVar_StartMax, METH_VARARGS, NULL},
67987 { "IntervalVar_SetStartMin", _wrap_IntervalVar_SetStartMin, METH_VARARGS, NULL},
67988 { "IntervalVar_SetStartMax", _wrap_IntervalVar_SetStartMax, METH_VARARGS, NULL},
67989 { "IntervalVar_SetStartRange", _wrap_IntervalVar_SetStartRange, METH_VARARGS, NULL},
67990 { "IntervalVar_OldStartMin", _wrap_IntervalVar_OldStartMin, METH_VARARGS, NULL},
67991 { "IntervalVar_OldStartMax", _wrap_IntervalVar_OldStartMax, METH_VARARGS, NULL},
67992 { "IntervalVar_WhenStartRange", _wrap_IntervalVar_WhenStartRange, METH_VARARGS, NULL},
67993 { "IntervalVar_WhenStartBound", _wrap_IntervalVar_WhenStartBound, METH_VARARGS, NULL},
67994 { "IntervalVar_DurationMin", _wrap_IntervalVar_DurationMin, METH_VARARGS, " These methods query, set, and watch the duration of the interval var."},
67995 { "IntervalVar_DurationMax", _wrap_IntervalVar_DurationMax, METH_VARARGS, NULL},
67996 { "IntervalVar_SetDurationMin", _wrap_IntervalVar_SetDurationMin, METH_VARARGS, NULL},
67997 { "IntervalVar_SetDurationMax", _wrap_IntervalVar_SetDurationMax, METH_VARARGS, NULL},
67998 { "IntervalVar_SetDurationRange", _wrap_IntervalVar_SetDurationRange, METH_VARARGS, NULL},
67999 { "IntervalVar_OldDurationMin", _wrap_IntervalVar_OldDurationMin, METH_VARARGS, NULL},
68000 { "IntervalVar_OldDurationMax", _wrap_IntervalVar_OldDurationMax, METH_VARARGS, NULL},
68001 { "IntervalVar_WhenDurationRange", _wrap_IntervalVar_WhenDurationRange, METH_VARARGS, NULL},
68002 { "IntervalVar_WhenDurationBound", _wrap_IntervalVar_WhenDurationBound, METH_VARARGS, NULL},
68003 { "IntervalVar_EndMin", _wrap_IntervalVar_EndMin, METH_VARARGS, " These methods query, set, and watch the end position of the interval var."},
68004 { "IntervalVar_EndMax", _wrap_IntervalVar_EndMax, METH_VARARGS, NULL},
68005 { "IntervalVar_SetEndMin", _wrap_IntervalVar_SetEndMin, METH_VARARGS, NULL},
68006 { "IntervalVar_SetEndMax", _wrap_IntervalVar_SetEndMax, METH_VARARGS, NULL},
68007 { "IntervalVar_SetEndRange", _wrap_IntervalVar_SetEndRange, METH_VARARGS, NULL},
68008 { "IntervalVar_OldEndMin", _wrap_IntervalVar_OldEndMin, METH_VARARGS, NULL},
68009 { "IntervalVar_OldEndMax", _wrap_IntervalVar_OldEndMax, METH_VARARGS, NULL},
68010 { "IntervalVar_WhenEndRange", _wrap_IntervalVar_WhenEndRange, METH_VARARGS, NULL},
68011 { "IntervalVar_WhenEndBound", _wrap_IntervalVar_WhenEndBound, METH_VARARGS, NULL},
68012 { "IntervalVar_MustBePerformed", _wrap_IntervalVar_MustBePerformed, METH_VARARGS, "\n"
68013 "These methods query, set, and watch the performed status of the\n"
68014 "interval var.\n"
68015 ""},
68016 { "IntervalVar_MayBePerformed", _wrap_IntervalVar_MayBePerformed, METH_VARARGS, NULL},
68017 { "IntervalVar_CannotBePerformed", _wrap_IntervalVar_CannotBePerformed, METH_VARARGS, NULL},
68018 { "IntervalVar_IsPerformedBound", _wrap_IntervalVar_IsPerformedBound, METH_VARARGS, NULL},
68019 { "IntervalVar_SetPerformed", _wrap_IntervalVar_SetPerformed, METH_VARARGS, NULL},
68020 { "IntervalVar_WasPerformedBound", _wrap_IntervalVar_WasPerformedBound, METH_VARARGS, NULL},
68021 { "IntervalVar_WhenPerformedBound", _wrap_IntervalVar_WhenPerformedBound, METH_VARARGS, NULL},
68022 { "IntervalVar_WhenAnything", _wrap_IntervalVar_WhenAnything, METH_VARARGS, "\n"
68023 "*Overload 1:*\n"
68024 "Attaches a demon awakened when anything about this interval changes.\n"
68025 "\n"
68026 "|\n"
68027 "\n"
68028 "*Overload 2:*\n"
68029 "Attaches a closure awakened when anything about this interval changes.\n"
68030 ""},
68031 { "IntervalVar_StartExpr", _wrap_IntervalVar_StartExpr, METH_VARARGS, "\n"
68032 "These methods create expressions encapsulating the start, end\n"
68033 "and duration of the interval var. Please note that these must not\n"
68034 "be used if the interval var is unperformed.\n"
68035 ""},
68036 { "IntervalVar_DurationExpr", _wrap_IntervalVar_DurationExpr, METH_VARARGS, NULL},
68037 { "IntervalVar_EndExpr", _wrap_IntervalVar_EndExpr, METH_VARARGS, NULL},
68038 { "IntervalVar_PerformedExpr", _wrap_IntervalVar_PerformedExpr, METH_VARARGS, NULL},
68039 { "IntervalVar_SafeStartExpr", _wrap_IntervalVar_SafeStartExpr, METH_VARARGS, "\n"
68040 "These methods create expressions encapsulating the start, end\n"
68041 "and duration of the interval var. If the interval var is\n"
68042 "unperformed, they will return the unperformed_value.\n"
68043 ""},
68044 { "IntervalVar_SafeDurationExpr", _wrap_IntervalVar_SafeDurationExpr, METH_VARARGS, NULL},
68045 { "IntervalVar_SafeEndExpr", _wrap_IntervalVar_SafeEndExpr, METH_VARARGS, NULL},
68046 { "IntervalVar_EndsAfterEnd", _wrap_IntervalVar_EndsAfterEnd, METH_VARARGS, NULL},
68047 { "IntervalVar_EndsAfterEndWithDelay", _wrap_IntervalVar_EndsAfterEndWithDelay, METH_VARARGS, NULL},
68048 { "IntervalVar_EndsAfterStart", _wrap_IntervalVar_EndsAfterStart, METH_VARARGS, NULL},
68049 { "IntervalVar_EndsAfterStartWithDelay", _wrap_IntervalVar_EndsAfterStartWithDelay, METH_VARARGS, NULL},
68050 { "IntervalVar_EndsAtEnd", _wrap_IntervalVar_EndsAtEnd, METH_VARARGS, NULL},
68051 { "IntervalVar_EndsAtEndWithDelay", _wrap_IntervalVar_EndsAtEndWithDelay, METH_VARARGS, NULL},
68052 { "IntervalVar_EndsAtStart", _wrap_IntervalVar_EndsAtStart, METH_VARARGS, NULL},
68053 { "IntervalVar_EndsAtStartWithDelay", _wrap_IntervalVar_EndsAtStartWithDelay, METH_VARARGS, NULL},
68054 { "IntervalVar_StartsAfterEnd", _wrap_IntervalVar_StartsAfterEnd, METH_VARARGS, NULL},
68055 { "IntervalVar_StartsAfterEndWithDelay", _wrap_IntervalVar_StartsAfterEndWithDelay, METH_VARARGS, NULL},
68056 { "IntervalVar_StartsAfterStart", _wrap_IntervalVar_StartsAfterStart, METH_VARARGS, NULL},
68057 { "IntervalVar_StartsAfterStartWithDelay", _wrap_IntervalVar_StartsAfterStartWithDelay, METH_VARARGS, NULL},
68058 { "IntervalVar_StartsAtEnd", _wrap_IntervalVar_StartsAtEnd, METH_VARARGS, NULL},
68059 { "IntervalVar_StartsAtEndWithDelay", _wrap_IntervalVar_StartsAtEndWithDelay, METH_VARARGS, NULL},
68060 { "IntervalVar_StartsAtStart", _wrap_IntervalVar_StartsAtStart, METH_VARARGS, NULL},
68061 { "IntervalVar_StartsAtStartWithDelay", _wrap_IntervalVar_StartsAtStartWithDelay, METH_VARARGS, NULL},
68062 { "IntervalVar_StaysInSync", _wrap_IntervalVar_StaysInSync, METH_VARARGS, NULL},
68063 { "IntervalVar_StaysInSyncWithDelay", _wrap_IntervalVar_StaysInSyncWithDelay, METH_VARARGS, NULL},
68064 { "IntervalVar_EndsAfter", _wrap_IntervalVar_EndsAfter, METH_VARARGS, NULL},
68065 { "IntervalVar_EndsAt", _wrap_IntervalVar_EndsAt, METH_VARARGS, NULL},
68066 { "IntervalVar_EndsBefore", _wrap_IntervalVar_EndsBefore, METH_VARARGS, NULL},
68067 { "IntervalVar_StartsAfter", _wrap_IntervalVar_StartsAfter, METH_VARARGS, NULL},
68068 { "IntervalVar_StartsAt", _wrap_IntervalVar_StartsAt, METH_VARARGS, NULL},
68069 { "IntervalVar_StartsBefore", _wrap_IntervalVar_StartsBefore, METH_VARARGS, NULL},
68070 { "IntervalVar_CrossesDate", _wrap_IntervalVar_CrossesDate, METH_VARARGS, NULL},
68071 { "IntervalVar_AvoidsDate", _wrap_IntervalVar_AvoidsDate, METH_VARARGS, NULL},
68072 { "IntervalVar___repr__", _wrap_IntervalVar___repr__, METH_VARARGS, NULL},
68073 { "IntervalVar___str__", _wrap_IntervalVar___str__, METH_VARARGS, NULL},
68074 { "IntervalVar_swigregister", IntervalVar_swigregister, METH_O, NULL},
68075 { "SequenceVar_DebugString", _wrap_SequenceVar_DebugString, METH_VARARGS, NULL},
68076 { "SequenceVar_RankFirst", _wrap_SequenceVar_RankFirst, METH_VARARGS, "\n"
68077 "Ranks the index_th interval var first of all unranked interval\n"
68078 "vars. After that, it will no longer be considered ranked.\n"
68079 ""},
68080 { "SequenceVar_RankNotFirst", _wrap_SequenceVar_RankNotFirst, METH_VARARGS, "\n"
68081 "Indicates that the index_th interval var will not be ranked first\n"
68082 "of all currently unranked interval vars.\n"
68083 ""},
68084 { "SequenceVar_RankLast", _wrap_SequenceVar_RankLast, METH_VARARGS, "\n"
68085 "Ranks the index_th interval var first of all unranked interval\n"
68086 "vars. After that, it will no longer be considered ranked.\n"
68087 ""},
68088 { "SequenceVar_RankNotLast", _wrap_SequenceVar_RankNotLast, METH_VARARGS, "\n"
68089 "Indicates that the index_th interval var will not be ranked first\n"
68090 "of all currently unranked interval vars.\n"
68091 ""},
68092 { "SequenceVar_Interval", _wrap_SequenceVar_Interval, METH_VARARGS, " Returns the index_th interval of the sequence."},
68093 { "SequenceVar_Next", _wrap_SequenceVar_Next, METH_VARARGS, " Returns the next of the index_th interval of the sequence."},
68094 { "SequenceVar_Size", _wrap_SequenceVar_Size, METH_VARARGS, " Returns the number of interval vars in the sequence."},
68095 { "SequenceVar___repr__", _wrap_SequenceVar___repr__, METH_VARARGS, NULL},
68096 { "SequenceVar___str__", _wrap_SequenceVar___str__, METH_VARARGS, NULL},
68097 { "SequenceVar_swigregister", SequenceVar_swigregister, METH_O, NULL},
68098 { "AssignmentElement_Activate", _wrap_AssignmentElement_Activate, METH_VARARGS, NULL},
68099 { "AssignmentElement_Deactivate", _wrap_AssignmentElement_Deactivate, METH_VARARGS, NULL},
68100 { "AssignmentElement_Activated", _wrap_AssignmentElement_Activated, METH_VARARGS, NULL},
68101 { "delete_AssignmentElement", _wrap_delete_AssignmentElement, METH_VARARGS, NULL},
68102 { "AssignmentElement_swigregister", AssignmentElement_swigregister, METH_O, NULL},
68103 { "IntVarElement_Var", _wrap_IntVarElement_Var, METH_VARARGS, NULL},
68104 { "IntVarElement_Min", _wrap_IntVarElement_Min, METH_VARARGS, NULL},
68105 { "IntVarElement_SetMin", _wrap_IntVarElement_SetMin, METH_VARARGS, NULL},
68106 { "IntVarElement_Max", _wrap_IntVarElement_Max, METH_VARARGS, NULL},
68107 { "IntVarElement_SetMax", _wrap_IntVarElement_SetMax, METH_VARARGS, NULL},
68108 { "IntVarElement_Value", _wrap_IntVarElement_Value, METH_VARARGS, NULL},
68109 { "IntVarElement_Bound", _wrap_IntVarElement_Bound, METH_VARARGS, NULL},
68110 { "IntVarElement_SetRange", _wrap_IntVarElement_SetRange, METH_VARARGS, NULL},
68111 { "IntVarElement_SetValue", _wrap_IntVarElement_SetValue, METH_VARARGS, NULL},
68112 { "IntVarElement___eq__", _wrap_IntVarElement___eq__, METH_VARARGS, NULL},
68113 { "IntVarElement___ne__", _wrap_IntVarElement___ne__, METH_VARARGS, NULL},
68114 { "delete_IntVarElement", _wrap_delete_IntVarElement, METH_VARARGS, NULL},
68115 { "IntVarElement_swigregister", IntVarElement_swigregister, METH_O, NULL},
68116 { "IntervalVarElement_Var", _wrap_IntervalVarElement_Var, METH_VARARGS, NULL},
68117 { "IntervalVarElement_StartMin", _wrap_IntervalVarElement_StartMin, METH_VARARGS, NULL},
68118 { "IntervalVarElement_StartMax", _wrap_IntervalVarElement_StartMax, METH_VARARGS, NULL},
68119 { "IntervalVarElement_StartValue", _wrap_IntervalVarElement_StartValue, METH_VARARGS, NULL},
68120 { "IntervalVarElement_DurationMin", _wrap_IntervalVarElement_DurationMin, METH_VARARGS, NULL},
68121 { "IntervalVarElement_DurationMax", _wrap_IntervalVarElement_DurationMax, METH_VARARGS, NULL},
68122 { "IntervalVarElement_DurationValue", _wrap_IntervalVarElement_DurationValue, METH_VARARGS, NULL},
68123 { "IntervalVarElement_EndMin", _wrap_IntervalVarElement_EndMin, METH_VARARGS, NULL},
68124 { "IntervalVarElement_EndMax", _wrap_IntervalVarElement_EndMax, METH_VARARGS, NULL},
68125 { "IntervalVarElement_EndValue", _wrap_IntervalVarElement_EndValue, METH_VARARGS, NULL},
68126 { "IntervalVarElement_PerformedMin", _wrap_IntervalVarElement_PerformedMin, METH_VARARGS, NULL},
68127 { "IntervalVarElement_PerformedMax", _wrap_IntervalVarElement_PerformedMax, METH_VARARGS, NULL},
68128 { "IntervalVarElement_PerformedValue", _wrap_IntervalVarElement_PerformedValue, METH_VARARGS, NULL},
68129 { "IntervalVarElement_SetStartMin", _wrap_IntervalVarElement_SetStartMin, METH_VARARGS, NULL},
68130 { "IntervalVarElement_SetStartMax", _wrap_IntervalVarElement_SetStartMax, METH_VARARGS, NULL},
68131 { "IntervalVarElement_SetStartRange", _wrap_IntervalVarElement_SetStartRange, METH_VARARGS, NULL},
68132 { "IntervalVarElement_SetStartValue", _wrap_IntervalVarElement_SetStartValue, METH_VARARGS, NULL},
68133 { "IntervalVarElement_SetDurationMin", _wrap_IntervalVarElement_SetDurationMin, METH_VARARGS, NULL},
68134 { "IntervalVarElement_SetDurationMax", _wrap_IntervalVarElement_SetDurationMax, METH_VARARGS, NULL},
68135 { "IntervalVarElement_SetDurationRange", _wrap_IntervalVarElement_SetDurationRange, METH_VARARGS, NULL},
68136 { "IntervalVarElement_SetDurationValue", _wrap_IntervalVarElement_SetDurationValue, METH_VARARGS, NULL},
68137 { "IntervalVarElement_SetEndMin", _wrap_IntervalVarElement_SetEndMin, METH_VARARGS, NULL},
68138 { "IntervalVarElement_SetEndMax", _wrap_IntervalVarElement_SetEndMax, METH_VARARGS, NULL},
68139 { "IntervalVarElement_SetEndRange", _wrap_IntervalVarElement_SetEndRange, METH_VARARGS, NULL},
68140 { "IntervalVarElement_SetEndValue", _wrap_IntervalVarElement_SetEndValue, METH_VARARGS, NULL},
68141 { "IntervalVarElement_SetPerformedMin", _wrap_IntervalVarElement_SetPerformedMin, METH_VARARGS, NULL},
68142 { "IntervalVarElement_SetPerformedMax", _wrap_IntervalVarElement_SetPerformedMax, METH_VARARGS, NULL},
68143 { "IntervalVarElement_SetPerformedRange", _wrap_IntervalVarElement_SetPerformedRange, METH_VARARGS, NULL},
68144 { "IntervalVarElement_SetPerformedValue", _wrap_IntervalVarElement_SetPerformedValue, METH_VARARGS, NULL},
68145 { "IntervalVarElement___eq__", _wrap_IntervalVarElement___eq__, METH_VARARGS, NULL},
68146 { "IntervalVarElement___ne__", _wrap_IntervalVarElement___ne__, METH_VARARGS, NULL},
68147 { "delete_IntervalVarElement", _wrap_delete_IntervalVarElement, METH_VARARGS, NULL},
68148 { "IntervalVarElement_swigregister", IntervalVarElement_swigregister, METH_O, NULL},
68149 { "SequenceVarElement_Var", _wrap_SequenceVarElement_Var, METH_VARARGS, NULL},
68150 { "SequenceVarElement_ForwardSequence", _wrap_SequenceVarElement_ForwardSequence, METH_VARARGS, NULL},
68151 { "SequenceVarElement_BackwardSequence", _wrap_SequenceVarElement_BackwardSequence, METH_VARARGS, NULL},
68152 { "SequenceVarElement_Unperformed", _wrap_SequenceVarElement_Unperformed, METH_VARARGS, NULL},
68153 { "SequenceVarElement_SetSequence", _wrap_SequenceVarElement_SetSequence, METH_VARARGS, NULL},
68154 { "SequenceVarElement_SetForwardSequence", _wrap_SequenceVarElement_SetForwardSequence, METH_VARARGS, NULL},
68155 { "SequenceVarElement_SetBackwardSequence", _wrap_SequenceVarElement_SetBackwardSequence, METH_VARARGS, NULL},
68156 { "SequenceVarElement_SetUnperformed", _wrap_SequenceVarElement_SetUnperformed, METH_VARARGS, NULL},
68157 { "SequenceVarElement___eq__", _wrap_SequenceVarElement___eq__, METH_VARARGS, NULL},
68158 { "SequenceVarElement___ne__", _wrap_SequenceVarElement___ne__, METH_VARARGS, NULL},
68159 { "delete_SequenceVarElement", _wrap_delete_SequenceVarElement, METH_VARARGS, NULL},
68160 { "SequenceVarElement_swigregister", SequenceVarElement_swigregister, METH_O, NULL},
68161 { "Assignment_Clear", _wrap_Assignment_Clear, METH_VARARGS, NULL},
68162 { "Assignment_Empty", _wrap_Assignment_Empty, METH_VARARGS, NULL},
68163 { "Assignment_Size", _wrap_Assignment_Size, METH_VARARGS, NULL},
68164 { "Assignment_NumIntVars", _wrap_Assignment_NumIntVars, METH_VARARGS, NULL},
68165 { "Assignment_NumIntervalVars", _wrap_Assignment_NumIntervalVars, METH_VARARGS, NULL},
68166 { "Assignment_NumSequenceVars", _wrap_Assignment_NumSequenceVars, METH_VARARGS, NULL},
68167 { "Assignment_Store", _wrap_Assignment_Store, METH_VARARGS, NULL},
68168 { "Assignment_Restore", _wrap_Assignment_Restore, METH_VARARGS, NULL},
68169 { "Assignment_Load", _wrap_Assignment_Load, METH_VARARGS, "\n"
68170 "Loads an assignment from a file; does not add variables to the\n"
68171 "assignment (only the variables contained in the assignment are modified).\n"
68172 ""},
68173 { "Assignment_Save", _wrap_Assignment_Save, METH_VARARGS, " Saves the assignment to a file."},
68174 { "Assignment_AddObjective", _wrap_Assignment_AddObjective, METH_VARARGS, NULL},
68175 { "Assignment_Objective", _wrap_Assignment_Objective, METH_VARARGS, NULL},
68176 { "Assignment_HasObjective", _wrap_Assignment_HasObjective, METH_VARARGS, NULL},
68177 { "Assignment_ObjectiveMin", _wrap_Assignment_ObjectiveMin, METH_VARARGS, NULL},
68178 { "Assignment_ObjectiveMax", _wrap_Assignment_ObjectiveMax, METH_VARARGS, NULL},
68179 { "Assignment_ObjectiveValue", _wrap_Assignment_ObjectiveValue, METH_VARARGS, NULL},
68180 { "Assignment_ObjectiveBound", _wrap_Assignment_ObjectiveBound, METH_VARARGS, NULL},
68181 { "Assignment_SetObjectiveMin", _wrap_Assignment_SetObjectiveMin, METH_VARARGS, NULL},
68182 { "Assignment_SetObjectiveMax", _wrap_Assignment_SetObjectiveMax, METH_VARARGS, NULL},
68183 { "Assignment_SetObjectiveValue", _wrap_Assignment_SetObjectiveValue, METH_VARARGS, NULL},
68184 { "Assignment_SetObjectiveRange", _wrap_Assignment_SetObjectiveRange, METH_VARARGS, NULL},
68185 { "Assignment_Min", _wrap_Assignment_Min, METH_VARARGS, NULL},
68186 { "Assignment_Max", _wrap_Assignment_Max, METH_VARARGS, NULL},
68187 { "Assignment_Value", _wrap_Assignment_Value, METH_VARARGS, NULL},
68188 { "Assignment_Bound", _wrap_Assignment_Bound, METH_VARARGS, NULL},
68189 { "Assignment_SetMin", _wrap_Assignment_SetMin, METH_VARARGS, NULL},
68190 { "Assignment_SetMax", _wrap_Assignment_SetMax, METH_VARARGS, NULL},
68191 { "Assignment_SetRange", _wrap_Assignment_SetRange, METH_VARARGS, NULL},
68192 { "Assignment_SetValue", _wrap_Assignment_SetValue, METH_VARARGS, NULL},
68193 { "Assignment_StartMin", _wrap_Assignment_StartMin, METH_VARARGS, NULL},
68194 { "Assignment_StartMax", _wrap_Assignment_StartMax, METH_VARARGS, NULL},
68195 { "Assignment_StartValue", _wrap_Assignment_StartValue, METH_VARARGS, NULL},
68196 { "Assignment_DurationMin", _wrap_Assignment_DurationMin, METH_VARARGS, NULL},
68197 { "Assignment_DurationMax", _wrap_Assignment_DurationMax, METH_VARARGS, NULL},
68198 { "Assignment_DurationValue", _wrap_Assignment_DurationValue, METH_VARARGS, NULL},
68199 { "Assignment_EndMin", _wrap_Assignment_EndMin, METH_VARARGS, NULL},
68200 { "Assignment_EndMax", _wrap_Assignment_EndMax, METH_VARARGS, NULL},
68201 { "Assignment_EndValue", _wrap_Assignment_EndValue, METH_VARARGS, NULL},
68202 { "Assignment_PerformedMin", _wrap_Assignment_PerformedMin, METH_VARARGS, NULL},
68203 { "Assignment_PerformedMax", _wrap_Assignment_PerformedMax, METH_VARARGS, NULL},
68204 { "Assignment_PerformedValue", _wrap_Assignment_PerformedValue, METH_VARARGS, NULL},
68205 { "Assignment_SetStartMin", _wrap_Assignment_SetStartMin, METH_VARARGS, NULL},
68206 { "Assignment_SetStartMax", _wrap_Assignment_SetStartMax, METH_VARARGS, NULL},
68207 { "Assignment_SetStartRange", _wrap_Assignment_SetStartRange, METH_VARARGS, NULL},
68208 { "Assignment_SetStartValue", _wrap_Assignment_SetStartValue, METH_VARARGS, NULL},
68209 { "Assignment_SetDurationMin", _wrap_Assignment_SetDurationMin, METH_VARARGS, NULL},
68210 { "Assignment_SetDurationMax", _wrap_Assignment_SetDurationMax, METH_VARARGS, NULL},
68211 { "Assignment_SetDurationRange", _wrap_Assignment_SetDurationRange, METH_VARARGS, NULL},
68212 { "Assignment_SetDurationValue", _wrap_Assignment_SetDurationValue, METH_VARARGS, NULL},
68213 { "Assignment_SetEndMin", _wrap_Assignment_SetEndMin, METH_VARARGS, NULL},
68214 { "Assignment_SetEndMax", _wrap_Assignment_SetEndMax, METH_VARARGS, NULL},
68215 { "Assignment_SetEndRange", _wrap_Assignment_SetEndRange, METH_VARARGS, NULL},
68216 { "Assignment_SetEndValue", _wrap_Assignment_SetEndValue, METH_VARARGS, NULL},
68217 { "Assignment_SetPerformedMin", _wrap_Assignment_SetPerformedMin, METH_VARARGS, NULL},
68218 { "Assignment_SetPerformedMax", _wrap_Assignment_SetPerformedMax, METH_VARARGS, NULL},
68219 { "Assignment_SetPerformedRange", _wrap_Assignment_SetPerformedRange, METH_VARARGS, NULL},
68220 { "Assignment_SetPerformedValue", _wrap_Assignment_SetPerformedValue, METH_VARARGS, NULL},
68221 { "Assignment_Add", _wrap_Assignment_Add, METH_VARARGS, NULL},
68222 { "Assignment_ForwardSequence", _wrap_Assignment_ForwardSequence, METH_VARARGS, NULL},
68223 { "Assignment_BackwardSequence", _wrap_Assignment_BackwardSequence, METH_VARARGS, NULL},
68224 { "Assignment_Unperformed", _wrap_Assignment_Unperformed, METH_VARARGS, NULL},
68225 { "Assignment_SetSequence", _wrap_Assignment_SetSequence, METH_VARARGS, NULL},
68226 { "Assignment_SetForwardSequence", _wrap_Assignment_SetForwardSequence, METH_VARARGS, NULL},
68227 { "Assignment_SetBackwardSequence", _wrap_Assignment_SetBackwardSequence, METH_VARARGS, NULL},
68228 { "Assignment_SetUnperformed", _wrap_Assignment_SetUnperformed, METH_VARARGS, NULL},
68229 { "Assignment_Activate", _wrap_Assignment_Activate, METH_VARARGS, NULL},
68230 { "Assignment_Deactivate", _wrap_Assignment_Deactivate, METH_VARARGS, NULL},
68231 { "Assignment_Activated", _wrap_Assignment_Activated, METH_VARARGS, NULL},
68232 { "Assignment_DebugString", _wrap_Assignment_DebugString, METH_VARARGS, NULL},
68233 { "Assignment_IntVarContainer", _wrap_Assignment_IntVarContainer, METH_VARARGS, NULL},
68234 { "Assignment_MutableIntVarContainer", _wrap_Assignment_MutableIntVarContainer, METH_VARARGS, NULL},
68235 { "Assignment_IntervalVarContainer", _wrap_Assignment_IntervalVarContainer, METH_VARARGS, NULL},
68236 { "Assignment_MutableIntervalVarContainer", _wrap_Assignment_MutableIntervalVarContainer, METH_VARARGS, NULL},
68237 { "Assignment_SequenceVarContainer", _wrap_Assignment_SequenceVarContainer, METH_VARARGS, NULL},
68238 { "Assignment_MutableSequenceVarContainer", _wrap_Assignment_MutableSequenceVarContainer, METH_VARARGS, NULL},
68239 { "Assignment___eq__", _wrap_Assignment___eq__, METH_VARARGS, NULL},
68240 { "Assignment___ne__", _wrap_Assignment___ne__, METH_VARARGS, NULL},
68241 { "Assignment_swigregister", Assignment_swigregister, METH_O, NULL},
68242 { "__lshift__", _wrap___lshift__, METH_VARARGS, NULL},
68243 { "Pack_AddWeightedSumLessOrEqualConstantDimension", _wrap_Pack_AddWeightedSumLessOrEqualConstantDimension, METH_VARARGS, "\n"
68244 "*Overload 1:*\n"
68245 "Dimensions are additional constraints than can restrict what is\n"
68246 "possible with the pack constraint. It can be used to set capacity\n"
68247 "limits, to count objects per bin, to compute unassigned\n"
68248 "penalties...\n"
68249 "This dimension imposes that for all bins b, the weighted sum\n"
68250 "(weights[i]) of all objects i assigned to 'b' is less or equal\n"
68251 "'bounds[b]'.\n"
68252 "\n"
68253 "|\n"
68254 "\n"
68255 "*Overload 2:*\n"
68256 "This dimension imposes that for all bins b, the weighted sum\n"
68257 "(weights->Run(i)) of all objects i assigned to 'b' is less or\n"
68258 "equal to 'bounds[b]'. Ownership of the callback is transferred to\n"
68259 "the pack constraint.\n"
68260 "\n"
68261 "|\n"
68262 "\n"
68263 "*Overload 3:*\n"
68264 "This dimension imposes that for all bins b, the weighted sum\n"
68265 "(weights->Run(i, b) of all objects i assigned to 'b' is less or\n"
68266 "equal to 'bounds[b]'. Ownership of the callback is transferred to\n"
68267 "the pack constraint.\n"
68268 ""},
68269 { "Pack_AddWeightedSumEqualVarDimension", _wrap_Pack_AddWeightedSumEqualVarDimension, METH_VARARGS, "\n"
68270 "*Overload 1:*\n"
68271 "This dimension imposes that for all bins b, the weighted sum\n"
68272 "(weights[i]) of all objects i assigned to 'b' is equal to loads[b].\n"
68273 "\n"
68274 "|\n"
68275 "\n"
68276 "*Overload 2:*\n"
68277 "This dimension imposes that for all bins b, the weighted sum\n"
68278 "(weights->Run(i, b)) of all objects i assigned to 'b' is equal to\n"
68279 "loads[b].\n"
68280 ""},
68281 { "Pack_AddSumVariableWeightsLessOrEqualConstantDimension", _wrap_Pack_AddSumVariableWeightsLessOrEqualConstantDimension, METH_VARARGS, "\n"
68282 "This dimension imposes:\n"
68283 "forall b in bins,\n"
68284 " sum (i in items: usage[i] * is_assigned(i, b)) <= capacity[b]\n"
68285 "where is_assigned(i, b) is true if and only if item i is assigned\n"
68286 "to the bin b.\n"
68287 "\n"
68288 "This can be used to model shapes of items by linking variables of\n"
68289 "the same item on parallel dimensions with an allowed assignment\n"
68290 "constraint.\n"
68291 ""},
68292 { "Pack_AddWeightedSumOfAssignedDimension", _wrap_Pack_AddWeightedSumOfAssignedDimension, METH_VARARGS, "\n"
68293 "This dimension enforces that cost_var == sum of weights[i] for\n"
68294 "all objects 'i' assigned to a bin.\n"
68295 ""},
68296 { "Pack_AddCountUsedBinDimension", _wrap_Pack_AddCountUsedBinDimension, METH_VARARGS, "\n"
68297 "This dimension links 'count_var' to the actual number of bins used in the\n"
68298 "pack.\n"
68299 ""},
68300 { "Pack_AddCountAssignedItemsDimension", _wrap_Pack_AddCountAssignedItemsDimension, METH_VARARGS, "\n"
68301 "This dimension links 'count_var' to the actual number of items\n"
68302 "assigned to a bin in the pack.\n"
68303 ""},
68304 { "Pack_Post", _wrap_Pack_Post, METH_VARARGS, NULL},
68305 { "Pack_InitialPropagateWrapper", _wrap_Pack_InitialPropagateWrapper, METH_VARARGS, NULL},
68306 { "Pack_DebugString", _wrap_Pack_DebugString, METH_VARARGS, NULL},
68307 { "Pack_swigregister", Pack_swigregister, METH_O, NULL},
68308 { "DisjunctiveConstraint_SequenceVar", _wrap_DisjunctiveConstraint_SequenceVar, METH_VARARGS, " Creates a sequence variable from the constraint."},
68309 { "DisjunctiveConstraint_SetTransitionTime", _wrap_DisjunctiveConstraint_SetTransitionTime, METH_VARARGS, "\n"
68310 "Add a transition time between intervals. It forces the distance between\n"
68311 "the end of interval a and start of interval b that follows it to be at\n"
68312 "least transition_time(a, b). This function must always return\n"
68313 "a positive or null value.\n"
68314 ""},
68315 { "DisjunctiveConstraint_TransitionTime", _wrap_DisjunctiveConstraint_TransitionTime, METH_VARARGS, NULL},
68316 { "DisjunctiveConstraint_swigregister", DisjunctiveConstraint_swigregister, METH_O, NULL},
68317 { "new_RevInteger", _wrap_new_RevInteger, METH_VARARGS, NULL},
68318 { "RevInteger_Value", _wrap_RevInteger_Value, METH_VARARGS, NULL},
68319 { "RevInteger_SetValue", _wrap_RevInteger_SetValue, METH_VARARGS, NULL},
68320 { "delete_RevInteger", _wrap_delete_RevInteger, METH_VARARGS, NULL},
68321 { "RevInteger_swigregister", RevInteger_swigregister, METH_O, NULL},
68322 { "RevInteger_swiginit", RevInteger_swiginit, METH_VARARGS, NULL},
68323 { "new_NumericalRevInteger", _wrap_new_NumericalRevInteger, METH_VARARGS, NULL},
68324 { "NumericalRevInteger_Add", _wrap_NumericalRevInteger_Add, METH_VARARGS, NULL},
68325 { "NumericalRevInteger_Incr", _wrap_NumericalRevInteger_Incr, METH_VARARGS, NULL},
68326 { "NumericalRevInteger_Decr", _wrap_NumericalRevInteger_Decr, METH_VARARGS, NULL},
68327 { "delete_NumericalRevInteger", _wrap_delete_NumericalRevInteger, METH_VARARGS, NULL},
68328 { "NumericalRevInteger_swigregister", NumericalRevInteger_swigregister, METH_O, NULL},
68329 { "NumericalRevInteger_swiginit", NumericalRevInteger_swiginit, METH_VARARGS, NULL},
68330 { "new_RevBool", _wrap_new_RevBool, METH_VARARGS, NULL},
68331 { "RevBool_Value", _wrap_RevBool_Value, METH_VARARGS, NULL},
68332 { "RevBool_SetValue", _wrap_RevBool_SetValue, METH_VARARGS, NULL},
68333 { "delete_RevBool", _wrap_delete_RevBool, METH_VARARGS, NULL},
68334 { "RevBool_swigregister", RevBool_swigregister, METH_O, NULL},
68335 { "RevBool_swiginit", RevBool_swiginit, METH_VARARGS, NULL},
68336 { "IntVarContainer_Contains", _wrap_IntVarContainer_Contains, METH_VARARGS, NULL},
68337 { "IntVarContainer_Element", _wrap_IntVarContainer_Element, METH_VARARGS, NULL},
68338 { "IntVarContainer_Size", _wrap_IntVarContainer_Size, METH_VARARGS, NULL},
68339 { "IntVarContainer_Store", _wrap_IntVarContainer_Store, METH_VARARGS, NULL},
68340 { "IntVarContainer_Restore", _wrap_IntVarContainer_Restore, METH_VARARGS, NULL},
68341 { "IntVarContainer___eq__", _wrap_IntVarContainer___eq__, METH_VARARGS, "\n"
68342 "Returns true if this and 'container' both represent the same V* -> E map.\n"
68343 "Runs in linear time; requires that the == operator on the type E is well\n"
68344 "defined.\n"
68345 ""},
68346 { "IntVarContainer___ne__", _wrap_IntVarContainer___ne__, METH_VARARGS, NULL},
68347 { "delete_IntVarContainer", _wrap_delete_IntVarContainer, METH_VARARGS, NULL},
68348 { "IntVarContainer_swigregister", IntVarContainer_swigregister, METH_O, NULL},
68349 { "IntervalVarContainer_Contains", _wrap_IntervalVarContainer_Contains, METH_VARARGS, NULL},
68350 { "IntervalVarContainer_Element", _wrap_IntervalVarContainer_Element, METH_VARARGS, NULL},
68351 { "IntervalVarContainer_Size", _wrap_IntervalVarContainer_Size, METH_VARARGS, NULL},
68352 { "IntervalVarContainer_Store", _wrap_IntervalVarContainer_Store, METH_VARARGS, NULL},
68353 { "IntervalVarContainer_Restore", _wrap_IntervalVarContainer_Restore, METH_VARARGS, NULL},
68354 { "IntervalVarContainer___eq__", _wrap_IntervalVarContainer___eq__, METH_VARARGS, "\n"
68355 "Returns true if this and 'container' both represent the same V* -> E map.\n"
68356 "Runs in linear time; requires that the == operator on the type E is well\n"
68357 "defined.\n"
68358 ""},
68359 { "IntervalVarContainer___ne__", _wrap_IntervalVarContainer___ne__, METH_VARARGS, NULL},
68360 { "delete_IntervalVarContainer", _wrap_delete_IntervalVarContainer, METH_VARARGS, NULL},
68361 { "IntervalVarContainer_swigregister", IntervalVarContainer_swigregister, METH_O, NULL},
68362 { "SequenceVarContainer_Contains", _wrap_SequenceVarContainer_Contains, METH_VARARGS, NULL},
68363 { "SequenceVarContainer_Element", _wrap_SequenceVarContainer_Element, METH_VARARGS, NULL},
68364 { "SequenceVarContainer_Size", _wrap_SequenceVarContainer_Size, METH_VARARGS, NULL},
68365 { "SequenceVarContainer_Store", _wrap_SequenceVarContainer_Store, METH_VARARGS, NULL},
68366 { "SequenceVarContainer_Restore", _wrap_SequenceVarContainer_Restore, METH_VARARGS, NULL},
68367 { "SequenceVarContainer___eq__", _wrap_SequenceVarContainer___eq__, METH_VARARGS, "\n"
68368 "Returns true if this and 'container' both represent the same V* -> E map.\n"
68369 "Runs in linear time; requires that the == operator on the type E is well\n"
68370 "defined.\n"
68371 ""},
68372 { "SequenceVarContainer___ne__", _wrap_SequenceVarContainer___ne__, METH_VARARGS, NULL},
68373 { "delete_SequenceVarContainer", _wrap_delete_SequenceVarContainer, METH_VARARGS, NULL},
68374 { "SequenceVarContainer_swigregister", SequenceVarContainer_swigregister, METH_O, NULL},
68375 { "LocalSearchOperator_NextNeighbor", _wrap_LocalSearchOperator_NextNeighbor, METH_VARARGS, NULL},
68376 { "LocalSearchOperator_Start", _wrap_LocalSearchOperator_Start, METH_VARARGS, NULL},
68377 { "disown_LocalSearchOperator", _wrap_disown_LocalSearchOperator, METH_VARARGS, NULL},
68378 { "LocalSearchOperator_swigregister", LocalSearchOperator_swigregister, METH_O, NULL},
68379 { "IntVarLocalSearchOperatorTemplate_Start", _wrap_IntVarLocalSearchOperatorTemplate_Start, METH_VARARGS, "\n"
68380 "This method should not be overridden. Override OnStart() instead which is\n"
68381 "called before exiting this method.\n"
68382 ""},
68383 { "IntVarLocalSearchOperatorTemplate_IsIncremental", _wrap_IntVarLocalSearchOperatorTemplate_IsIncremental, METH_VARARGS, NULL},
68384 { "IntVarLocalSearchOperatorTemplate_Size", _wrap_IntVarLocalSearchOperatorTemplate_Size, METH_VARARGS, NULL},
68385 { "IntVarLocalSearchOperatorTemplate_Value", _wrap_IntVarLocalSearchOperatorTemplate_Value, METH_VARARGS, "\n"
68386 "Returns the value in the current assignment of the variable of given\n"
68387 "index.\n"
68388 ""},
68389 { "IntVarLocalSearchOperatorTemplate_OldValue", _wrap_IntVarLocalSearchOperatorTemplate_OldValue, METH_VARARGS, NULL},
68390 { "IntVarLocalSearchOperatorTemplate_SetValue", _wrap_IntVarLocalSearchOperatorTemplate_SetValue, METH_VARARGS, NULL},
68391 { "IntVarLocalSearchOperatorTemplate_OnStart", _wrap_IntVarLocalSearchOperatorTemplate_OnStart, METH_VARARGS, "\n"
68392 "Called by Start() after synchronizing the operator with the current\n"
68393 "assignment. Should be overridden instead of Start() to avoid calling\n"
68394 "VarLocalSearchOperator::Start explicitly.\n"
68395 ""},
68396 { "IntVarLocalSearchOperatorTemplate_swigregister", IntVarLocalSearchOperatorTemplate_swigregister, METH_O, NULL},
68397 { "new_IntVarLocalSearchOperator", _wrap_new_IntVarLocalSearchOperator, METH_VARARGS, NULL},
68398 { "delete_IntVarLocalSearchOperator", _wrap_delete_IntVarLocalSearchOperator, METH_VARARGS, NULL},
68399 { "IntVarLocalSearchOperator_NextNeighbor", _wrap_IntVarLocalSearchOperator_NextNeighbor, METH_VARARGS, "\n"
68400 "Redefines MakeNextNeighbor to export a simpler interface. The calls to\n"
68401 "ApplyChanges() and RevertChanges() are factored in this method, hiding\n"
68402 "both delta and deltadelta from subclasses which only need to override\n"
68403 "MakeOneNeighbor().\n"
68404 "Therefore this method should not be overridden. Override MakeOneNeighbor()\n"
68405 "instead.\n"
68406 ""},
68407 { "IntVarLocalSearchOperator_OneNeighbor", _wrap_IntVarLocalSearchOperator_OneNeighbor, METH_VARARGS, "\n"
68408 "Creates a new neighbor. It returns false when the neighborhood is\n"
68409 "completely explored.\n"
68410 "MakeNextNeighbor() in a subclass of IntVarLocalSearchOperator.\n"
68411 ""},
68412 { "disown_IntVarLocalSearchOperator", _wrap_disown_IntVarLocalSearchOperator, METH_VARARGS, NULL},
68413 { "IntVarLocalSearchOperator_swigregister", IntVarLocalSearchOperator_swigregister, METH_O, NULL},
68414 { "IntVarLocalSearchOperator_swiginit", IntVarLocalSearchOperator_swiginit, METH_VARARGS, NULL},
68415 { "SequenceVarLocalSearchOperatorTemplate_Start", _wrap_SequenceVarLocalSearchOperatorTemplate_Start, METH_VARARGS, "\n"
68416 "This method should not be overridden. Override OnStart() instead which is\n"
68417 "called before exiting this method.\n"
68418 ""},
68419 { "SequenceVarLocalSearchOperatorTemplate_IsIncremental", _wrap_SequenceVarLocalSearchOperatorTemplate_IsIncremental, METH_VARARGS, NULL},
68420 { "SequenceVarLocalSearchOperatorTemplate_Size", _wrap_SequenceVarLocalSearchOperatorTemplate_Size, METH_VARARGS, NULL},
68421 { "SequenceVarLocalSearchOperatorTemplate_Value", _wrap_SequenceVarLocalSearchOperatorTemplate_Value, METH_VARARGS, "\n"
68422 "Returns the value in the current assignment of the variable of given\n"
68423 "index.\n"
68424 ""},
68425 { "SequenceVarLocalSearchOperatorTemplate_OldValue", _wrap_SequenceVarLocalSearchOperatorTemplate_OldValue, METH_VARARGS, NULL},
68426 { "SequenceVarLocalSearchOperatorTemplate_SetValue", _wrap_SequenceVarLocalSearchOperatorTemplate_SetValue, METH_VARARGS, NULL},
68427 { "SequenceVarLocalSearchOperatorTemplate_OnStart", _wrap_SequenceVarLocalSearchOperatorTemplate_OnStart, METH_VARARGS, "\n"
68428 "Called by Start() after synchronizing the operator with the current\n"
68429 "assignment. Should be overridden instead of Start() to avoid calling\n"
68430 "VarLocalSearchOperator::Start explicitly.\n"
68431 ""},
68432 { "SequenceVarLocalSearchOperatorTemplate_swigregister", SequenceVarLocalSearchOperatorTemplate_swigregister, METH_O, NULL},
68433 { "SequenceVarLocalSearchOperator_swigregister", SequenceVarLocalSearchOperator_swigregister, METH_O, NULL},
68434 { "new_BaseLns", _wrap_new_BaseLns, METH_VARARGS, NULL},
68435 { "delete_BaseLns", _wrap_delete_BaseLns, METH_VARARGS, NULL},
68436 { "BaseLns_InitFragments", _wrap_BaseLns_InitFragments, METH_VARARGS, NULL},
68437 { "BaseLns_NextFragment", _wrap_BaseLns_NextFragment, METH_VARARGS, NULL},
68438 { "BaseLns_AppendToFragment", _wrap_BaseLns_AppendToFragment, METH_VARARGS, NULL},
68439 { "BaseLns_FragmentSize", _wrap_BaseLns_FragmentSize, METH_VARARGS, NULL},
68440 { "BaseLns___getitem__", _wrap_BaseLns___getitem__, METH_VARARGS, NULL},
68441 { "BaseLns___len__", _wrap_BaseLns___len__, METH_VARARGS, NULL},
68442 { "disown_BaseLns", _wrap_disown_BaseLns, METH_VARARGS, NULL},
68443 { "BaseLns_swigregister", BaseLns_swigregister, METH_O, NULL},
68444 { "BaseLns_swiginit", BaseLns_swiginit, METH_VARARGS, NULL},
68445 { "new_ChangeValue", _wrap_new_ChangeValue, METH_VARARGS, NULL},
68446 { "delete_ChangeValue", _wrap_delete_ChangeValue, METH_VARARGS, NULL},
68447 { "ChangeValue_ModifyValue", _wrap_ChangeValue_ModifyValue, METH_VARARGS, NULL},
68448 { "ChangeValue_OneNeighbor", _wrap_ChangeValue_OneNeighbor, METH_VARARGS, " This method should not be overridden. Override ModifyValue() instead."},
68449 { "disown_ChangeValue", _wrap_disown_ChangeValue, METH_VARARGS, NULL},
68450 { "ChangeValue_swigregister", ChangeValue_swigregister, METH_O, NULL},
68451 { "ChangeValue_swiginit", ChangeValue_swiginit, METH_VARARGS, NULL},
68452 { "PathOperator_Neighbor", _wrap_PathOperator_Neighbor, METH_VARARGS, NULL},
68453 { "PathOperator_swigregister", PathOperator_swigregister, METH_O, NULL},
68454 { "LocalSearchFilter_Accept", _wrap_LocalSearchFilter_Accept, METH_VARARGS, "\n"
68455 "Accepts a \"delta\" given the assignment with which the filter has been\n"
68456 "synchronized; the delta holds the variables which have been modified and\n"
68457 "their new value.\n"
68458 "If the filter represents a part of the global objective, its contribution\n"
68459 "must be between objective_min and objective_max.\n"
68460 "Sample: supposing one wants to maintain a[0,1] + b[0,1] <= 1,\n"
68461 "for the assignment (a,1), (b,0), the delta (b,1) will be rejected\n"
68462 "but the delta (a,0) will be accepted.\n"
68463 "TODO(user): Remove arguments when there are no more need for those.\n"
68464 ""},
68465 { "LocalSearchFilter_IsIncremental", _wrap_LocalSearchFilter_IsIncremental, METH_VARARGS, NULL},
68466 { "LocalSearchFilter_Synchronize", _wrap_LocalSearchFilter_Synchronize, METH_VARARGS, "\n"
68467 "Synchronizes the filter with the current solution, delta being the\n"
68468 "difference with the solution passed to the previous call to Synchronize()\n"
68469 "or IncrementalSynchronize(). 'delta' can be used to incrementally\n"
68470 "synchronizing the filter with the new solution by only considering the\n"
68471 "changes in delta.\n"
68472 ""},
68473 { "delete_LocalSearchFilter", _wrap_delete_LocalSearchFilter, METH_VARARGS, NULL},
68474 { "LocalSearchFilter_swigregister", LocalSearchFilter_swigregister, METH_O, NULL},
68475 { "LocalSearchFilterManager_DebugString", _wrap_LocalSearchFilterManager_DebugString, METH_VARARGS, NULL},
68476 { "new_LocalSearchFilterManager", _wrap_new_LocalSearchFilterManager, METH_VARARGS, NULL},
68477 { "LocalSearchFilterManager_Accept", _wrap_LocalSearchFilterManager_Accept, METH_VARARGS, "\n"
68478 "Returns true iff all filters return true, and the sum of their accepted\n"
68479 "objectives is between objective_min and objective_max.\n"
68480 "The monitor has its Begin/EndFiltering events triggered.\n"
68481 ""},
68482 { "LocalSearchFilterManager_Synchronize", _wrap_LocalSearchFilterManager_Synchronize, METH_VARARGS, " Synchronizes all filters to assignment."},
68483 { "delete_LocalSearchFilterManager", _wrap_delete_LocalSearchFilterManager, METH_VARARGS, NULL},
68484 { "LocalSearchFilterManager_swigregister", LocalSearchFilterManager_swigregister, METH_O, NULL},
68485 { "LocalSearchFilterManager_swiginit", LocalSearchFilterManager_swiginit, METH_VARARGS, NULL},
68486 { "new_IntVarLocalSearchFilter", _wrap_new_IntVarLocalSearchFilter, METH_VARARGS, NULL},
68487 { "delete_IntVarLocalSearchFilter", _wrap_delete_IntVarLocalSearchFilter, METH_VARARGS, NULL},
68488 { "IntVarLocalSearchFilter_Synchronize", _wrap_IntVarLocalSearchFilter_Synchronize, METH_VARARGS, "\n"
68489 "This method should not be overridden. Override OnSynchronize() instead\n"
68490 "which is called before exiting this method.\n"
68491 ""},
68492 { "IntVarLocalSearchFilter_Size", _wrap_IntVarLocalSearchFilter_Size, METH_VARARGS, NULL},
68493 { "IntVarLocalSearchFilter_Value", _wrap_IntVarLocalSearchFilter_Value, METH_VARARGS, NULL},
68494 { "IntVarLocalSearchFilter_IndexFromVar", _wrap_IntVarLocalSearchFilter_IndexFromVar, METH_VARARGS, NULL},
68495 { "disown_IntVarLocalSearchFilter", _wrap_disown_IntVarLocalSearchFilter, METH_VARARGS, NULL},
68496 { "IntVarLocalSearchFilter_swigregister", IntVarLocalSearchFilter_swigregister, METH_O, NULL},
68497 { "IntVarLocalSearchFilter_swiginit", IntVarLocalSearchFilter_swiginit, METH_VARARGS, NULL},
68498 { "BooleanVar_Min", _wrap_BooleanVar_Min, METH_VARARGS, NULL},
68499 { "BooleanVar_SetMin", _wrap_BooleanVar_SetMin, METH_VARARGS, NULL},
68500 { "BooleanVar_Max", _wrap_BooleanVar_Max, METH_VARARGS, NULL},
68501 { "BooleanVar_SetMax", _wrap_BooleanVar_SetMax, METH_VARARGS, NULL},
68502 { "BooleanVar_SetRange", _wrap_BooleanVar_SetRange, METH_VARARGS, NULL},
68503 { "BooleanVar_Bound", _wrap_BooleanVar_Bound, METH_VARARGS, NULL},
68504 { "BooleanVar_Value", _wrap_BooleanVar_Value, METH_VARARGS, NULL},
68505 { "BooleanVar_RemoveValue", _wrap_BooleanVar_RemoveValue, METH_VARARGS, NULL},
68506 { "BooleanVar_RemoveInterval", _wrap_BooleanVar_RemoveInterval, METH_VARARGS, NULL},
68507 { "BooleanVar_WhenBound", _wrap_BooleanVar_WhenBound, METH_VARARGS, NULL},
68508 { "BooleanVar_WhenRange", _wrap_BooleanVar_WhenRange, METH_VARARGS, NULL},
68509 { "BooleanVar_WhenDomain", _wrap_BooleanVar_WhenDomain, METH_VARARGS, NULL},
68510 { "BooleanVar_Size", _wrap_BooleanVar_Size, METH_VARARGS, NULL},
68511 { "BooleanVar_Contains", _wrap_BooleanVar_Contains, METH_VARARGS, NULL},
68512 { "BooleanVar_HoleIteratorAux", _wrap_BooleanVar_HoleIteratorAux, METH_VARARGS, NULL},
68513 { "BooleanVar_DomainIteratorAux", _wrap_BooleanVar_DomainIteratorAux, METH_VARARGS, NULL},
68514 { "BooleanVar_DebugString", _wrap_BooleanVar_DebugString, METH_VARARGS, NULL},
68515 { "BooleanVar_swigregister", BooleanVar_swigregister, METH_O, NULL},
68516 { "new_RoutingIndexManager", _wrap_new_RoutingIndexManager, METH_VARARGS, "\n"
68517 "Creates a NodeIndex to variable index mapping for a problem containing\n"
68518 "'num_nodes', 'num_vehicles' and the given starts and ends for each\n"
68519 "vehicle. If used, any start/end arrays have to have exactly 'num_vehicles'\n"
68520 "elements.\n"
68521 ""},
68522 { "delete_RoutingIndexManager", _wrap_delete_RoutingIndexManager, METH_VARARGS, NULL},
68523 { "RoutingIndexManager_GetNumberOfNodes", _wrap_RoutingIndexManager_GetNumberOfNodes, METH_VARARGS, NULL},
68524 { "RoutingIndexManager_GetNumberOfVehicles", _wrap_RoutingIndexManager_GetNumberOfVehicles, METH_VARARGS, NULL},
68525 { "RoutingIndexManager_GetNumberOfIndices", _wrap_RoutingIndexManager_GetNumberOfIndices, METH_VARARGS, NULL},
68526 { "RoutingIndexManager_GetStartIndex", _wrap_RoutingIndexManager_GetStartIndex, METH_VARARGS, NULL},
68527 { "RoutingIndexManager_GetEndIndex", _wrap_RoutingIndexManager_GetEndIndex, METH_VARARGS, NULL},
68528 { "RoutingIndexManager_NodeToIndex", _wrap_RoutingIndexManager_NodeToIndex, METH_VARARGS, NULL},
68529 { "RoutingIndexManager_IndexToNode", _wrap_RoutingIndexManager_IndexToNode, METH_VARARGS, NULL},
68530 { "RoutingIndexManager_swigregister", RoutingIndexManager_swigregister, METH_O, NULL},
68531 { "RoutingIndexManager_swiginit", RoutingIndexManager_swiginit, METH_VARARGS, NULL},
68532 { "DefaultRoutingModelParameters", _wrap_DefaultRoutingModelParameters, METH_VARARGS, NULL},
68533 { "DefaultRoutingSearchParameters", _wrap_DefaultRoutingSearchParameters, METH_VARARGS, NULL},
68534 { "FindErrorInRoutingSearchParameters", _wrap_FindErrorInRoutingSearchParameters, METH_VARARGS, "\n"
68535 "Returns an empty std::string if the routing search parameters are valid, and\n"
68536 "a non-empty, human readable error description if they're not.\n"
68537 ""},
68538 { "new_RoutingModel", _wrap_new_RoutingModel, METH_VARARGS, "\n"
68539 "Constructor taking an index manager. The version which does not take\n"
68540 "RoutingModelParameters is equivalent to passing\n"
68541 "DefaultRoutingModelParameters().\n"
68542 ""},
68543 { "delete_RoutingModel", _wrap_delete_RoutingModel, METH_VARARGS, NULL},
68544 { "RoutingModel_RegisterUnaryTransitVector", _wrap_RoutingModel_RegisterUnaryTransitVector, METH_VARARGS, " Registers 'callback' and returns its index."},
68545 { "RoutingModel_RegisterUnaryTransitCallback", _wrap_RoutingModel_RegisterUnaryTransitCallback, METH_VARARGS, NULL},
68546 { "RoutingModel_RegisterPositiveUnaryTransitCallback", _wrap_RoutingModel_RegisterPositiveUnaryTransitCallback, METH_VARARGS, NULL},
68547 { "RoutingModel_RegisterTransitMatrix", _wrap_RoutingModel_RegisterTransitMatrix, METH_VARARGS, NULL},
68548 { "RoutingModel_RegisterTransitCallback", _wrap_RoutingModel_RegisterTransitCallback, METH_VARARGS, NULL},
68549 { "RoutingModel_RegisterPositiveTransitCallback", _wrap_RoutingModel_RegisterPositiveTransitCallback, METH_VARARGS, NULL},
68550 { "RoutingModel_TransitCallback", _wrap_RoutingModel_TransitCallback, METH_VARARGS, NULL},
68551 { "RoutingModel_UnaryTransitCallbackOrNull", _wrap_RoutingModel_UnaryTransitCallbackOrNull, METH_VARARGS, NULL},
68552 { "RoutingModel_AddDimension", _wrap_RoutingModel_AddDimension, METH_VARARGS, "\n"
68553 "Model creation\n"
68554 "Methods to add dimensions to routes; dimensions represent quantities\n"
68555 "accumulated at nodes along the routes. They represent quantities such as\n"
68556 "weights or volumes carried along the route, or distance or times.\n"
68557 "Quantities at a node are represented by \"cumul\" variables and the increase\n"
68558 "or decrease of quantities between nodes are represented by \"transit\"\n"
68559 "variables. These variables are linked as follows:\n"
68560 "if j == next(i), cumul(j) = cumul(i) + transit(i) + slack(i)\n"
68561 "where slack is a positive slack variable (can represent waiting times for\n"
68562 "a time dimension).\n"
68563 "Setting the value of fix_start_cumul_to_zero to true will force the\n"
68564 "\"cumul\" variable of the start node of all vehicles to be equal to 0.\n"
68565 "Creates a dimension where the transit variable is constrained to be\n"
68566 "equal to evaluator(i, next(i)); 'slack_max' is the upper bound of the\n"
68567 "slack variable and 'capacity' is the upper bound of the cumul variables.\n"
68568 "'name' is the name used to reference the dimension; this name is used to\n"
68569 "get cumul and transit variables from the routing model.\n"
68570 "Returns false if a dimension with the same name has already been created\n"
68571 "(and doesn't create the new dimension).\n"
68572 "Takes ownership of the callback 'evaluator'.\n"
68573 ""},
68574 { "RoutingModel_AddDimensionWithVehicleTransits", _wrap_RoutingModel_AddDimensionWithVehicleTransits, METH_VARARGS, NULL},
68575 { "RoutingModel_AddDimensionWithVehicleCapacity", _wrap_RoutingModel_AddDimensionWithVehicleCapacity, METH_VARARGS, NULL},
68576 { "RoutingModel_AddDimensionWithVehicleTransitAndCapacity", _wrap_RoutingModel_AddDimensionWithVehicleTransitAndCapacity, METH_VARARGS, NULL},
68577 { "RoutingModel_AddConstantDimensionWithSlack", _wrap_RoutingModel_AddConstantDimensionWithSlack, METH_VARARGS, "\n"
68578 "Creates a dimension where the transit variable is constrained to be\n"
68579 "equal to 'value'; 'capacity' is the upper bound of the cumul variables.\n"
68580 "'name' is the name used to reference the dimension; this name is used to\n"
68581 "get cumul and transit variables from the routing model.\n"
68582 "Returns a pair consisting of an index to the registered unary transit\n"
68583 "callback and a bool denoting whether the dimension has been created.\n"
68584 "It is false if a dimension with the same name has already been created\n"
68585 "(and doesn't create the new dimension but still register a new callback).\n"
68586 ""},
68587 { "RoutingModel_AddConstantDimension", _wrap_RoutingModel_AddConstantDimension, METH_VARARGS, NULL},
68588 { "RoutingModel_AddVectorDimension", _wrap_RoutingModel_AddVectorDimension, METH_VARARGS, "\n"
68589 "Creates a dimension where the transit variable is constrained to be\n"
68590 "equal to 'values[i]' for node i; 'capacity' is the upper bound of\n"
68591 "the cumul variables. 'name' is the name used to reference the dimension;\n"
68592 "this name is used to get cumul and transit variables from the routing\n"
68593 "model.\n"
68594 "Returns a pair consisting of an index to the registered unary transit\n"
68595 "callback and a bool denoting whether the dimension has been created.\n"
68596 "It is false if a dimension with the same name has already been created\n"
68597 "(and doesn't create the new dimension but still register a new callback).\n"
68598 ""},
68599 { "RoutingModel_AddMatrixDimension", _wrap_RoutingModel_AddMatrixDimension, METH_VARARGS, "\n"
68600 "Creates a dimension where the transit variable is constrained to be\n"
68601 "equal to 'values[i][next(i)]' for node i; 'capacity' is the upper bound of\n"
68602 "the cumul variables. 'name' is the name used to reference the dimension;\n"
68603 "this name is used to get cumul and transit variables from the routing\n"
68604 "model.\n"
68605 "Returns a pair consisting of an index to the registered transit callback\n"
68606 "and a bool denoting whether the dimension has been created.\n"
68607 "It is false if a dimension with the same name has already been created\n"
68608 "(and doesn't create the new dimension but still register a new callback).\n"
68609 ""},
68610 { "RoutingModel_MakePathSpansAndTotalSlacks", _wrap_RoutingModel_MakePathSpansAndTotalSlacks, METH_VARARGS, "\n"
68611 "For every vehicle of the routing model:\n"
68612 "- if total_slacks[vehicle] is not nullptr, constrains it to be the sum of\n"
68613 " slacks on that vehicle, that is,\n"
68614 " dimension->CumulVar(end) - dimension->CumulVar(start) -\n"
68615 " sum_{node in path of vehicle} dimension->FixedTransitVar(node).\n"
68616 "- if spans[vehicle] is not nullptr, constrains it to be\n"
68617 " dimension->CumulVar(end) - dimension->CumulVar(start)\n"
68618 "This does stronger propagation than a decomposition, and takes breaks into\n"
68619 "account.\n"
68620 ""},
68621 { "RoutingModel_GetAllDimensionNames", _wrap_RoutingModel_GetAllDimensionNames, METH_VARARGS, " Outputs the names of all dimensions added to the routing engine."},
68622 { "RoutingModel_GetDimensions", _wrap_RoutingModel_GetDimensions, METH_VARARGS, " Returns all dimensions of the model."},
68623 { "RoutingModel_GetDimensionsWithSoftOrSpanCosts", _wrap_RoutingModel_GetDimensionsWithSoftOrSpanCosts, METH_VARARGS, " Returns dimensions with soft or vehicle span costs."},
68624 { "RoutingModel_GetGlobalDimensionCumulOptimizers", _wrap_RoutingModel_GetGlobalDimensionCumulOptimizers, METH_VARARGS, "\n"
68625 "Returns [global|local]_dimension_optimizers_, which are empty if the model\n"
68626 "has not been closed.\n"
68627 ""},
68628 { "RoutingModel_GetGlobalDimensionCumulMPOptimizers", _wrap_RoutingModel_GetGlobalDimensionCumulMPOptimizers, METH_VARARGS, NULL},
68629 { "RoutingModel_GetLocalDimensionCumulOptimizers", _wrap_RoutingModel_GetLocalDimensionCumulOptimizers, METH_VARARGS, NULL},
68630 { "RoutingModel_GetLocalDimensionCumulMPOptimizers", _wrap_RoutingModel_GetLocalDimensionCumulMPOptimizers, METH_VARARGS, NULL},
68631 { "RoutingModel_GetMutableGlobalCumulOptimizer", _wrap_RoutingModel_GetMutableGlobalCumulOptimizer, METH_VARARGS, "\n"
68632 "Returns the global/local dimension cumul optimizer for a given dimension,\n"
68633 "or nullptr if there is none.\n"
68634 ""},
68635 { "RoutingModel_GetMutableGlobalCumulMPOptimizer", _wrap_RoutingModel_GetMutableGlobalCumulMPOptimizer, METH_VARARGS, NULL},
68636 { "RoutingModel_GetMutableLocalCumulOptimizer", _wrap_RoutingModel_GetMutableLocalCumulOptimizer, METH_VARARGS, NULL},
68637 { "RoutingModel_GetMutableLocalCumulMPOptimizer", _wrap_RoutingModel_GetMutableLocalCumulMPOptimizer, METH_VARARGS, NULL},
68638 { "RoutingModel_HasDimension", _wrap_RoutingModel_HasDimension, METH_VARARGS, " Returns true if a dimension exists for a given dimension name."},
68639 { "RoutingModel_GetDimensionOrDie", _wrap_RoutingModel_GetDimensionOrDie, METH_VARARGS, " Returns a dimension from its name. Dies if the dimension does not exist."},
68640 { "RoutingModel_GetMutableDimension", _wrap_RoutingModel_GetMutableDimension, METH_VARARGS, "\n"
68641 "Returns a dimension from its name. Returns nullptr if the dimension does\n"
68642 "not exist.\n"
68643 ""},
68644 { "RoutingModel_SetPrimaryConstrainedDimension", _wrap_RoutingModel_SetPrimaryConstrainedDimension, METH_VARARGS, "\n"
68645 "Set the given dimension as \"primary constrained\". As of August 2013, this\n"
68646 "is only used by ArcIsMoreConstrainedThanArc().\n"
68647 "\"dimension\" must be the name of an existing dimension, or be empty, in\n"
68648 "which case there will not be a primary dimension after this call.\n"
68649 ""},
68650 { "RoutingModel_GetPrimaryConstrainedDimension", _wrap_RoutingModel_GetPrimaryConstrainedDimension, METH_VARARGS, " Get the primary constrained dimension, or an empty string if it is unset."},
68651 { "RoutingModel_GetDimensionResourceGroupIndices", _wrap_RoutingModel_GetDimensionResourceGroupIndices, METH_VARARGS, "\n"
68652 "Returns the indices of resource groups for this dimension. This method can\n"
68653 "only be called after the model has been closed.\n"
68654 ""},
68655 { "RoutingModel_AddDisjunction", _wrap_RoutingModel_AddDisjunction, METH_VARARGS, "\n"
68656 "Adds a disjunction constraint on the indices: exactly 'max_cardinality' of\n"
68657 "the indices are active. Start and end indices of any vehicle cannot be\n"
68658 "part of a disjunction.\n"
68659 "\n"
68660 "If a penalty is given, at most 'max_cardinality' of the indices can be\n"
68661 "active, and if less are active, 'penalty' is payed per inactive index.\n"
68662 "This is equivalent to adding the constraint:\n"
68663 " p + Sum(i)active[i] == max_cardinality\n"
68664 "where p is an integer variable, and the following cost to the cost\n"
68665 "function:\n"
68666 " p * penalty.\n"
68667 "'penalty' must be positive to make the disjunction optional; a negative\n"
68668 "penalty will force 'max_cardinality' indices of the disjunction to be\n"
68669 "performed, and therefore p == 0.\n"
68670 "Note: passing a vector with a single index will model an optional index\n"
68671 "with a penalty cost if it is not visited.\n"
68672 ""},
68673 { "RoutingModel_GetDisjunctionIndices", _wrap_RoutingModel_GetDisjunctionIndices, METH_VARARGS, " Returns the indices of the disjunctions to which an index belongs."},
68674 { "RoutingModel_GetDisjunctionPenalty", _wrap_RoutingModel_GetDisjunctionPenalty, METH_VARARGS, " Returns the penalty of the node disjunction of index 'index'."},
68675 { "RoutingModel_GetDisjunctionMaxCardinality", _wrap_RoutingModel_GetDisjunctionMaxCardinality, METH_VARARGS, "\n"
68676 "Returns the maximum number of possible active nodes of the node\n"
68677 "disjunction of index 'index'.\n"
68678 ""},
68679 { "RoutingModel_GetNumberOfDisjunctions", _wrap_RoutingModel_GetNumberOfDisjunctions, METH_VARARGS, " Returns the number of node disjunctions in the model."},
68680 { "RoutingModel_GetPerfectBinaryDisjunctions", _wrap_RoutingModel_GetPerfectBinaryDisjunctions, METH_VARARGS, "\n"
68681 "Returns the list of all perfect binary disjunctions, as pairs of variable\n"
68682 "indices: a disjunction is \"perfect\" when its variables do not appear in\n"
68683 "any other disjunction. Each pair is sorted (lowest variable index first),\n"
68684 "and the output vector is also sorted (lowest pairs first).\n"
68685 ""},
68686 { "RoutingModel_IgnoreDisjunctionsAlreadyForcedToZero", _wrap_RoutingModel_IgnoreDisjunctionsAlreadyForcedToZero, METH_VARARGS, "\n"
68687 "SPECIAL: Makes the solver ignore all the disjunctions whose active\n"
68688 "variables are all trivially zero (i.e. Max() == 0), by setting their\n"
68689 "max_cardinality to 0.\n"
68690 "This can be useful when using the BaseBinaryDisjunctionNeighborhood\n"
68691 "operators, in the context of arc-based routing.\n"
68692 ""},
68693 { "RoutingModel_AddSoftSameVehicleConstraint", _wrap_RoutingModel_AddSoftSameVehicleConstraint, METH_VARARGS, "\n"
68694 "Adds a soft constraint to force a set of variable indices to be on the\n"
68695 "same vehicle. If all nodes are not on the same vehicle, each extra vehicle\n"
68696 "used adds 'cost' to the cost function.\n"
68697 ""},
68698 { "RoutingModel_SetAllowedVehiclesForIndex", _wrap_RoutingModel_SetAllowedVehiclesForIndex, METH_VARARGS, "\n"
68699 "Sets the vehicles which can visit a given node. If the node is in a\n"
68700 "disjunction, this will not prevent it from being unperformed.\n"
68701 "Specifying an empty vector of vehicles has no effect (all vehicles\n"
68702 "will be allowed to visit the node).\n"
68703 ""},
68704 { "RoutingModel_IsVehicleAllowedForIndex", _wrap_RoutingModel_IsVehicleAllowedForIndex, METH_VARARGS, " Returns true if a vehicle is allowed to visit a given node."},
68705 { "RoutingModel_AddPickupAndDelivery", _wrap_RoutingModel_AddPickupAndDelivery, METH_VARARGS, "\n"
68706 "Notifies that index1 and index2 form a pair of nodes which should belong\n"
68707 "to the same route. This methods helps the search find better solutions,\n"
68708 "especially in the local search phase.\n"
68709 "It should be called each time you have an equality constraint linking\n"
68710 "the vehicle variables of two node (including for instance pickup and\n"
68711 "delivery problems):\n"
68712 " Solver* const solver = routing.solver();\n"
68713 " int64_t index1 = manager.NodeToIndex(node1);\n"
68714 " int64_t index2 = manager.NodeToIndex(node2);\n"
68715 " solver->AddConstraint(solver->MakeEquality(\n"
68716 " routing.VehicleVar(index1),\n"
68717 " routing.VehicleVar(index2)));\n"
68718 " routing.AddPickupAndDelivery(index1, index2);\n"
68719 ""},
68720 { "RoutingModel_AddPickupAndDeliverySets", _wrap_RoutingModel_AddPickupAndDeliverySets, METH_VARARGS, "\n"
68721 "Same as AddPickupAndDelivery but notifying that the performed node from\n"
68722 "the disjunction of index 'pickup_disjunction' is on the same route as the\n"
68723 "performed node from the disjunction of index 'delivery_disjunction'.\n"
68724 ""},
68725 { "RoutingModel_GetPickupIndexPairs", _wrap_RoutingModel_GetPickupIndexPairs, METH_VARARGS, "\n"
68726 "Returns pairs for which the node is a pickup; the first element of each\n"
68727 "pair is the index in the pickup and delivery pairs list in which the\n"
68728 "pickup appears, the second element is its index in the pickups list.\n"
68729 ""},
68730 { "RoutingModel_GetDeliveryIndexPairs", _wrap_RoutingModel_GetDeliveryIndexPairs, METH_VARARGS, " Same as above for deliveries."},
68731 { "RoutingModel_SetPickupAndDeliveryPolicyOfAllVehicles", _wrap_RoutingModel_SetPickupAndDeliveryPolicyOfAllVehicles, METH_VARARGS, "\n"
68732 "Sets the Pickup and delivery policy of all vehicles. It is equivalent to\n"
68733 "calling SetPickupAndDeliveryPolicyOfVehicle on all vehicles.\n"
68734 ""},
68735 { "RoutingModel_SetPickupAndDeliveryPolicyOfVehicle", _wrap_RoutingModel_SetPickupAndDeliveryPolicyOfVehicle, METH_VARARGS, NULL},
68736 { "RoutingModel_GetPickupAndDeliveryPolicyOfVehicle", _wrap_RoutingModel_GetPickupAndDeliveryPolicyOfVehicle, METH_VARARGS, NULL},
68737 { "RoutingModel_GetNumOfSingletonNodes", _wrap_RoutingModel_GetNumOfSingletonNodes, METH_VARARGS, "\n"
68738 "Returns the number of non-start/end nodes which do not appear in a\n"
68739 "pickup/delivery pair.\n"
68740 ""},
68741 { "RoutingModel_SetVisitType", _wrap_RoutingModel_SetVisitType, METH_VARARGS, NULL},
68742 { "RoutingModel_GetVisitType", _wrap_RoutingModel_GetVisitType, METH_VARARGS, NULL},
68743 { "RoutingModel_GetSingleNodesOfType", _wrap_RoutingModel_GetSingleNodesOfType, METH_VARARGS, NULL},
68744 { "RoutingModel_GetPairIndicesOfType", _wrap_RoutingModel_GetPairIndicesOfType, METH_VARARGS, NULL},
68745 { "RoutingModel_GetVisitTypePolicy", _wrap_RoutingModel_GetVisitTypePolicy, METH_VARARGS, NULL},
68746 { "RoutingModel_CloseVisitTypes", _wrap_RoutingModel_CloseVisitTypes, METH_VARARGS, "\n"
68747 "This function should be called once all node visit types have been set and\n"
68748 "prior to adding any incompatibilities/requirements.\n"
68749 "\"close\" types.\n"
68750 ""},
68751 { "RoutingModel_GetNumberOfVisitTypes", _wrap_RoutingModel_GetNumberOfVisitTypes, METH_VARARGS, NULL},
68752 { "RoutingModel_AddHardTypeIncompatibility", _wrap_RoutingModel_AddHardTypeIncompatibility, METH_VARARGS, "\n"
68753 "Incompatibilities:\n"
68754 "Two nodes with \"hard\" incompatible types cannot share the same route at\n"
68755 "all, while with a \"temporal\" incompatibility they can't be on the same\n"
68756 "route at the same time.\n"
68757 ""},
68758 { "RoutingModel_AddTemporalTypeIncompatibility", _wrap_RoutingModel_AddTemporalTypeIncompatibility, METH_VARARGS, NULL},
68759 { "RoutingModel_GetHardTypeIncompatibilitiesOfType", _wrap_RoutingModel_GetHardTypeIncompatibilitiesOfType, METH_VARARGS, " Returns visit types incompatible with a given type."},
68760 { "RoutingModel_GetTemporalTypeIncompatibilitiesOfType", _wrap_RoutingModel_GetTemporalTypeIncompatibilitiesOfType, METH_VARARGS, NULL},
68761 { "RoutingModel_HasHardTypeIncompatibilities", _wrap_RoutingModel_HasHardTypeIncompatibilities, METH_VARARGS, "\n"
68762 "Returns true iff any hard (resp. temporal) type incompatibilities have\n"
68763 "been added to the model.\n"
68764 ""},
68765 { "RoutingModel_HasTemporalTypeIncompatibilities", _wrap_RoutingModel_HasTemporalTypeIncompatibilities, METH_VARARGS, NULL},
68766 { "RoutingModel_AddSameVehicleRequiredTypeAlternatives", _wrap_RoutingModel_AddSameVehicleRequiredTypeAlternatives, METH_VARARGS, "\n"
68767 "Requirements:\n"
68768 "NOTE: As of 2019-04, cycles in the requirement graph are not supported,\n"
68769 "and lead to the dependent nodes being skipped if possible (otherwise\n"
68770 "the model is considered infeasible).\n"
68771 "The following functions specify that \"dependent_type\" requires at least\n"
68772 "one of the types in \"required_type_alternatives\".\n"
68773 "\n"
68774 "For same-vehicle requirements, a node of dependent type type_D requires at\n"
68775 "least one node of type type_R among the required alternatives on the same\n"
68776 "route.\n"
68777 ""},
68778 { "RoutingModel_AddRequiredTypeAlternativesWhenAddingType", _wrap_RoutingModel_AddRequiredTypeAlternativesWhenAddingType, METH_VARARGS, "\n"
68779 "If type_D depends on type_R when adding type_D, any node_D of type_D and\n"
68780 "VisitTypePolicy TYPE_ADDED_TO_VEHICLE or\n"
68781 "TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED requires at least one type_R on its\n"
68782 "vehicle at the time node_D is visited.\n"
68783 ""},
68784 { "RoutingModel_AddRequiredTypeAlternativesWhenRemovingType", _wrap_RoutingModel_AddRequiredTypeAlternativesWhenRemovingType, METH_VARARGS, "\n"
68785 "The following requirements apply when visiting dependent nodes that remove\n"
68786 "their type from the route, i.e. type_R must be on the vehicle when type_D\n"
68787 "of VisitTypePolicy ADDED_TYPE_REMOVED_FROM_VEHICLE,\n"
68788 "TYPE_ON_VEHICLE_UP_TO_VISIT or TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED is\n"
68789 "visited.\n"
68790 ""},
68791 { "RoutingModel_GetSameVehicleRequiredTypeAlternativesOfType", _wrap_RoutingModel_GetSameVehicleRequiredTypeAlternativesOfType, METH_VARARGS, "\n"
68792 "Returns the set of same-vehicle requirement alternatives for the given\n"
68793 "type.\n"
68794 ""},
68795 { "RoutingModel_GetRequiredTypeAlternativesWhenAddingType", _wrap_RoutingModel_GetRequiredTypeAlternativesWhenAddingType, METH_VARARGS, " Returns the set of requirement alternatives when adding the given type."},
68796 { "RoutingModel_GetRequiredTypeAlternativesWhenRemovingType", _wrap_RoutingModel_GetRequiredTypeAlternativesWhenRemovingType, METH_VARARGS, " Returns the set of requirement alternatives when removing the given type."},
68797 { "RoutingModel_HasSameVehicleTypeRequirements", _wrap_RoutingModel_HasSameVehicleTypeRequirements, METH_VARARGS, "\n"
68798 "Returns true iff any same-route (resp. temporal) type requirements have\n"
68799 "been added to the model.\n"
68800 ""},
68801 { "RoutingModel_HasTemporalTypeRequirements", _wrap_RoutingModel_HasTemporalTypeRequirements, METH_VARARGS, NULL},
68802 { "RoutingModel_HasTypeRegulations", _wrap_RoutingModel_HasTypeRegulations, METH_VARARGS, "\n"
68803 "Returns true iff the model has any incompatibilities or requirements set\n"
68804 "on node types.\n"
68805 ""},
68806 { "RoutingModel_UnperformedPenalty", _wrap_RoutingModel_UnperformedPenalty, METH_VARARGS, "\n"
68807 "Get the \"unperformed\" penalty of a node. This is only well defined if the\n"
68808 "node is only part of a single Disjunction, and that disjunction has a\n"
68809 "penalty. For forced active nodes returns max int64_t. In all other cases,\n"
68810 "this returns 0.\n"
68811 ""},
68812 { "RoutingModel_UnperformedPenaltyOrValue", _wrap_RoutingModel_UnperformedPenaltyOrValue, METH_VARARGS, "\n"
68813 "Same as above except that it returns default_value instead of 0 when\n"
68814 "penalty is not well defined (default value is passed as first argument to\n"
68815 "simplify the usage of the method in a callback).\n"
68816 ""},
68817 { "RoutingModel_GetDepot", _wrap_RoutingModel_GetDepot, METH_VARARGS, "\n"
68818 "Returns the variable index of the first starting or ending node of all\n"
68819 "routes. If all routes start and end at the same node (single depot), this\n"
68820 "is the node returned.\n"
68821 ""},
68822 { "RoutingModel_SetMaximumNumberOfActiveVehicles", _wrap_RoutingModel_SetMaximumNumberOfActiveVehicles, METH_VARARGS, "\n"
68823 "Constrains the maximum number of active vehicles, aka the number of\n"
68824 "vehicles which do not have an empty route. For instance, this can be used\n"
68825 "to limit the number of routes in the case where there are fewer drivers\n"
68826 "than vehicles and that the fleet of vehicle is heterogeneous.\n"
68827 ""},
68828 { "RoutingModel_GetMaximumNumberOfActiveVehicles", _wrap_RoutingModel_GetMaximumNumberOfActiveVehicles, METH_VARARGS, " Returns the maximum number of active vehicles."},
68829 { "RoutingModel_SetArcCostEvaluatorOfAllVehicles", _wrap_RoutingModel_SetArcCostEvaluatorOfAllVehicles, METH_VARARGS, "\n"
68830 "Sets the cost function of the model such that the cost of a segment of a\n"
68831 "route between node 'from' and 'to' is evaluator(from, to), whatever the\n"
68832 "route or vehicle performing the route.\n"
68833 ""},
68834 { "RoutingModel_SetArcCostEvaluatorOfVehicle", _wrap_RoutingModel_SetArcCostEvaluatorOfVehicle, METH_VARARGS, " Sets the cost function for a given vehicle route."},
68835 { "RoutingModel_SetFixedCostOfAllVehicles", _wrap_RoutingModel_SetFixedCostOfAllVehicles, METH_VARARGS, "\n"
68836 "Sets the fixed cost of all vehicle routes. It is equivalent to calling\n"
68837 "SetFixedCostOfVehicle on all vehicle routes.\n"
68838 ""},
68839 { "RoutingModel_SetFixedCostOfVehicle", _wrap_RoutingModel_SetFixedCostOfVehicle, METH_VARARGS, " Sets the fixed cost of one vehicle route."},
68840 { "RoutingModel_GetFixedCostOfVehicle", _wrap_RoutingModel_GetFixedCostOfVehicle, METH_VARARGS, "\n"
68841 "Returns the route fixed cost taken into account if the route of the\n"
68842 "vehicle is not empty, aka there's at least one node on the route other\n"
68843 "than the first and last nodes.\n"
68844 ""},
68845 { "RoutingModel_SetAmortizedCostFactorsOfAllVehicles", _wrap_RoutingModel_SetAmortizedCostFactorsOfAllVehicles, METH_VARARGS, "\n"
68846 "The following methods set the linear and quadratic cost factors of\n"
68847 "vehicles (must be positive values). The default value of these parameters\n"
68848 "is zero for all vehicles.\n"
68849 "\n"
68850 "When set, the cost_ of the model will contain terms aiming at reducing the\n"
68851 "number of vehicles used in the model, by adding the following to the\n"
68852 "objective for every vehicle v:\n"
68853 "INDICATOR(v used in the model) *\n"
68854 " [linear_cost_factor_of_vehicle_[v]\n"
68855 " - quadratic_cost_factor_of_vehicle_[v]*(square of length of route v)]\n"
68856 "i.e. for every used vehicle, we add the linear factor as fixed cost, and\n"
68857 "subtract the square of the route length multiplied by the quadratic\n"
68858 "factor. This second term aims at making the routes as dense as possible.\n"
68859 "\n"
68860 "Sets the linear and quadratic cost factor of all vehicles.\n"
68861 ""},
68862 { "RoutingModel_SetAmortizedCostFactorsOfVehicle", _wrap_RoutingModel_SetAmortizedCostFactorsOfVehicle, METH_VARARGS, " Sets the linear and quadratic cost factor of the given vehicle."},
68863 { "RoutingModel_GetAmortizedLinearCostFactorOfVehicles", _wrap_RoutingModel_GetAmortizedLinearCostFactorOfVehicles, METH_VARARGS, NULL},
68864 { "RoutingModel_GetAmortizedQuadraticCostFactorOfVehicles", _wrap_RoutingModel_GetAmortizedQuadraticCostFactorOfVehicles, METH_VARARGS, NULL},
68865 { "RoutingModel_ConsiderEmptyRouteCostsForVehicle", _wrap_RoutingModel_ConsiderEmptyRouteCostsForVehicle, METH_VARARGS, NULL},
68866 { "RoutingModel_AreEmptyRouteCostsConsideredForVehicle", _wrap_RoutingModel_AreEmptyRouteCostsConsideredForVehicle, METH_VARARGS, NULL},
68867 { "RoutingModel_SetFirstSolutionEvaluator", _wrap_RoutingModel_SetFirstSolutionEvaluator, METH_VARARGS, "\n"
68868 "Gets/sets the evaluator used during the search. Only relevant when\n"
68869 "RoutingSearchParameters.first_solution_strategy = EVALUATOR_STRATEGY.\n"
68870 "Takes ownership of evaluator.\n"
68871 ""},
68872 { "RoutingModel_AddLocalSearchOperator", _wrap_RoutingModel_AddLocalSearchOperator, METH_VARARGS, "\n"
68873 "Adds a local search operator to the set of operators used to solve the\n"
68874 "vehicle routing problem.\n"
68875 ""},
68876 { "RoutingModel_AddSearchMonitor", _wrap_RoutingModel_AddSearchMonitor, METH_VARARGS, " Adds a search monitor to the search used to solve the routing model."},
68877 { "RoutingModel_AddAtSolutionCallback", _wrap_RoutingModel_AddAtSolutionCallback, METH_VARARGS, "\n"
68878 "Adds a callback called each time a solution is found during the search.\n"
68879 "This is a shortcut to creating a monitor to call the callback on\n"
68880 "AtSolution() and adding it with AddSearchMonitor.\n"
68881 ""},
68882 { "RoutingModel_AddVariableMinimizedByFinalizer", _wrap_RoutingModel_AddVariableMinimizedByFinalizer, METH_VARARGS, "\n"
68883 "Adds a variable to minimize in the solution finalizer. The solution\n"
68884 "finalizer is called each time a solution is found during the search and\n"
68885 "allows to instantiate secondary variables (such as dimension cumul\n"
68886 "variables).\n"
68887 ""},
68888 { "RoutingModel_AddVariableMaximizedByFinalizer", _wrap_RoutingModel_AddVariableMaximizedByFinalizer, METH_VARARGS, "\n"
68889 "Adds a variable to maximize in the solution finalizer (see above for\n"
68890 "information on the solution finalizer).\n"
68891 ""},
68892 { "RoutingModel_AddWeightedVariableMinimizedByFinalizer", _wrap_RoutingModel_AddWeightedVariableMinimizedByFinalizer, METH_VARARGS, "\n"
68893 "Adds a variable to minimize in the solution finalizer, with a weighted\n"
68894 "priority: the higher the more priority it has.\n"
68895 ""},
68896 { "RoutingModel_AddVariableTargetToFinalizer", _wrap_RoutingModel_AddVariableTargetToFinalizer, METH_VARARGS, "\n"
68897 "Add a variable to set the closest possible to the target value in the\n"
68898 "solution finalizer.\n"
68899 ""},
68900 { "RoutingModel_CloseModel", _wrap_RoutingModel_CloseModel, METH_VARARGS, "\n"
68901 "Closes the current routing model; after this method is called, no\n"
68902 "modification to the model can be done, but RoutesToAssignment becomes\n"
68903 "available. Note that CloseModel() is automatically called by Solve() and\n"
68904 "other methods that produce solution.\n"
68905 "This is equivalent to calling\n"
68906 "CloseModelWithParameters(DefaultRoutingSearchParameters()).\n"
68907 ""},
68908 { "RoutingModel_CloseModelWithParameters", _wrap_RoutingModel_CloseModelWithParameters, METH_VARARGS, "\n"
68909 "Same as above taking search parameters (as of 10/2015 some the parameters\n"
68910 "have to be set when closing the model).\n"
68911 ""},
68912 { "RoutingModel_Solve", _wrap_RoutingModel_Solve, METH_VARARGS, "\n"
68913 "Solves the current routing model; closes the current model.\n"
68914 "This is equivalent to calling\n"
68915 "SolveWithParameters(DefaultRoutingSearchParameters())\n"
68916 "or\n"
68917 "SolveFromAssignmentWithParameters(assignment,\n"
68918 " DefaultRoutingSearchParameters()).\n"
68919 ""},
68920 { "RoutingModel_SolveWithParameters", _wrap_RoutingModel_SolveWithParameters, METH_VARARGS, "\n"
68921 "Solves the current routing model with the given parameters. If 'solutions'\n"
68922 "is specified, it will contain the k best solutions found during the search\n"
68923 "(from worst to best, including the one returned by this method), where k\n"
68924 "corresponds to the 'number_of_solutions_to_collect' in\n"
68925 "'search_parameters'. Note that the Assignment returned by the method and\n"
68926 "the ones in solutions are owned by the underlying solver and should not be\n"
68927 "deleted.\n"
68928 ""},
68929 { "RoutingModel_SolveFromAssignmentWithParameters", _wrap_RoutingModel_SolveFromAssignmentWithParameters, METH_VARARGS, "\n"
68930 "Same as above, except that if assignment is not null, it will be used as\n"
68931 "the initial solution.\n"
68932 ""},
68933 { "RoutingModel_SolveFromAssignmentsWithParameters", _wrap_RoutingModel_SolveFromAssignmentsWithParameters, METH_VARARGS, "\n"
68934 "Same as above but will try all assignments in order as first solutions\n"
68935 "until one succeeds.\n"
68936 ""},
68937 { "RoutingModel_SetAssignmentFromOtherModelAssignment", _wrap_RoutingModel_SetAssignmentFromOtherModelAssignment, METH_VARARGS, "\n"
68938 "Given a \"source_model\" and its \"source_assignment\", resets\n"
68939 "\"target_assignment\" with the IntVar variables (nexts_, and vehicle_vars_\n"
68940 "if costs aren't homogeneous across vehicles) of \"this\" model, with the\n"
68941 "values set according to those in \"other_assignment\".\n"
68942 "The objective_element of target_assignment is set to this->cost_.\n"
68943 ""},
68944 { "RoutingModel_ComputeLowerBound", _wrap_RoutingModel_ComputeLowerBound, METH_VARARGS, "\n"
68945 "Computes a lower bound to the routing problem solving a linear assignment\n"
68946 "problem. The routing model must be closed before calling this method.\n"
68947 "Note that problems with node disjunction constraints (including optional\n"
68948 "nodes) and non-homogenous costs are not supported (the method returns 0 in\n"
68949 "these cases).\n"
68950 ""},
68951 { "RoutingModel_status", _wrap_RoutingModel_status, METH_VARARGS, " Returns the current status of the routing model."},
68952 { "RoutingModel_ApplyLocks", _wrap_RoutingModel_ApplyLocks, METH_VARARGS, "\n"
68953 "Applies a lock chain to the next search. 'locks' represents an ordered\n"
68954 "vector of nodes representing a partial route which will be fixed during\n"
68955 "the next search; it will constrain next variables such that:\n"
68956 "next[locks[i]] == locks[i+1].\n"
68957 "\n"
68958 "Returns the next variable at the end of the locked chain; this variable is\n"
68959 "not locked. An assignment containing the locks can be obtained by calling\n"
68960 "PreAssignment().\n"
68961 ""},
68962 { "RoutingModel_ApplyLocksToAllVehicles", _wrap_RoutingModel_ApplyLocksToAllVehicles, METH_VARARGS, "\n"
68963 "Applies lock chains to all vehicles to the next search, such that locks[p]\n"
68964 "is the lock chain for route p. Returns false if the locks do not contain\n"
68965 "valid routes; expects that the routes do not contain the depots,\n"
68966 "i.e. there are empty vectors in place of empty routes.\n"
68967 "If close_routes is set to true, adds the end nodes to the route of each\n"
68968 "vehicle and deactivates other nodes.\n"
68969 "An assignment containing the locks can be obtained by calling\n"
68970 "PreAssignment().\n"
68971 ""},
68972 { "RoutingModel_PreAssignment", _wrap_RoutingModel_PreAssignment, METH_VARARGS, "\n"
68973 "Returns an assignment used to fix some of the variables of the problem.\n"
68974 "In practice, this assignment locks partial routes of the problem. This\n"
68975 "can be used in the context of locking the parts of the routes which have\n"
68976 "already been driven in online routing problems.\n"
68977 ""},
68978 { "RoutingModel_MutablePreAssignment", _wrap_RoutingModel_MutablePreAssignment, METH_VARARGS, NULL},
68979 { "RoutingModel_WriteAssignment", _wrap_RoutingModel_WriteAssignment, METH_VARARGS, "\n"
68980 "Writes the current solution to a file containing an AssignmentProto.\n"
68981 "Returns false if the file cannot be opened or if there is no current\n"
68982 "solution.\n"
68983 ""},
68984 { "RoutingModel_ReadAssignment", _wrap_RoutingModel_ReadAssignment, METH_VARARGS, "\n"
68985 "Reads an assignment from a file and returns the current solution.\n"
68986 "Returns nullptr if the file cannot be opened or if the assignment is not\n"
68987 "valid.\n"
68988 ""},
68989 { "RoutingModel_RestoreAssignment", _wrap_RoutingModel_RestoreAssignment, METH_VARARGS, "\n"
68990 "Restores an assignment as a solution in the routing model and returns the\n"
68991 "new solution. Returns nullptr if the assignment is not valid.\n"
68992 ""},
68993 { "RoutingModel_ReadAssignmentFromRoutes", _wrap_RoutingModel_ReadAssignmentFromRoutes, METH_VARARGS, "\n"
68994 "Restores the routes as the current solution. Returns nullptr if the\n"
68995 "solution cannot be restored (routes do not contain a valid solution). Note\n"
68996 "that calling this method will run the solver to assign values to the\n"
68997 "dimension variables; this may take considerable amount of time, especially\n"
68998 "when using dimensions with slack.\n"
68999 ""},
69000 { "RoutingModel_RoutesToAssignment", _wrap_RoutingModel_RoutesToAssignment, METH_VARARGS, "\n"
69001 "Fills an assignment from a specification of the routes of the\n"
69002 "vehicles. The routes are specified as lists of variable indices that\n"
69003 "appear on the routes of the vehicles. The indices of the outer vector in\n"
69004 "'routes' correspond to vehicles IDs, the inner vector contains the\n"
69005 "variable indices on the routes for the given vehicle. The inner vectors\n"
69006 "must not contain the start and end indices, as these are determined by the\n"
69007 "routing model. Sets the value of NextVars in the assignment, adding the\n"
69008 "variables to the assignment if necessary. The method does not touch other\n"
69009 "variables in the assignment. The method can only be called after the model\n"
69010 "is closed. With ignore_inactive_indices set to false, this method will\n"
69011 "fail (return nullptr) in case some of the route contain indices that are\n"
69012 "deactivated in the model; when set to true, these indices will be\n"
69013 "skipped. Returns true if routes were successfully\n"
69014 "loaded. However, such assignment still might not be a valid\n"
69015 "solution to the routing problem due to more complex constraints;\n"
69016 "it is advisible to call solver()->CheckSolution() afterwards.\n"
69017 ""},
69018 { "RoutingModel_AssignmentToRoutes", _wrap_RoutingModel_AssignmentToRoutes, METH_VARARGS, "\n"
69019 "Converts the solution in the given assignment to routes for all vehicles.\n"
69020 "Expects that assignment contains a valid solution (i.e. routes for all\n"
69021 "vehicles end with an end index for that vehicle).\n"
69022 ""},
69023 { "RoutingModel_CompactAssignment", _wrap_RoutingModel_CompactAssignment, METH_VARARGS, "\n"
69024 "Converts the solution in the given assignment to routes for all vehicles.\n"
69025 "If the returned vector is route_indices, route_indices[i][j] is the index\n"
69026 "for jth location visited on route i. Note that contrary to\n"
69027 "AssignmentToRoutes, the vectors do include start and end locations.\n"
69028 "Returns a compacted version of the given assignment, in which all vehicles\n"
69029 "with id lower or equal to some N have non-empty routes, and all vehicles\n"
69030 "with id greater than N have empty routes. Does not take ownership of the\n"
69031 "returned object.\n"
69032 "If found, the cost of the compact assignment is the same as in the\n"
69033 "original assignment and it preserves the values of 'active' variables.\n"
69034 "Returns nullptr if a compact assignment was not found.\n"
69035 "This method only works in homogenous mode, and it only swaps equivalent\n"
69036 "vehicles (vehicles with the same start and end nodes). When creating the\n"
69037 "compact assignment, the empty plan is replaced by the route assigned to\n"
69038 "the compatible vehicle with the highest id. Note that with more complex\n"
69039 "constraints on vehicle variables, this method might fail even if a compact\n"
69040 "solution exists.\n"
69041 "This method changes the vehicle and dimension variables as necessary.\n"
69042 "While compacting the solution, only basic checks on vehicle variables are\n"
69043 "performed; if one of these checks fails no attempts to repair it are made\n"
69044 "(instead, the method returns nullptr).\n"
69045 ""},
69046 { "RoutingModel_CompactAndCheckAssignment", _wrap_RoutingModel_CompactAndCheckAssignment, METH_VARARGS, "\n"
69047 "Same as CompactAssignment() but also checks the validity of the final\n"
69048 "compact solution; if it is not valid, no attempts to repair it are made\n"
69049 "(instead, the method returns nullptr).\n"
69050 ""},
69051 { "RoutingModel_AddToAssignment", _wrap_RoutingModel_AddToAssignment, METH_VARARGS, " Adds an extra variable to the vehicle routing assignment."},
69052 { "RoutingModel_AddIntervalToAssignment", _wrap_RoutingModel_AddIntervalToAssignment, METH_VARARGS, NULL},
69053 { "RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment", _wrap_RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment, METH_VARARGS, "\n"
69054 "For every dimension in the model with an optimizer in\n"
69055 "local/global_dimension_optimizers_, this method tries to pack the cumul\n"
69056 "values of the dimension, such that:\n"
69057 "- The cumul costs (span costs, soft lower and upper bound costs, etc) are\n"
69058 " minimized.\n"
69059 "- The cumuls of the ends of the routes are minimized for this given\n"
69060 " minimal cumul cost.\n"
69061 "- Given these minimal end cumuls, the route start cumuls are maximized.\n"
69062 "Returns the assignment resulting from allocating these packed cumuls with\n"
69063 "the solver, and nullptr if these cumuls could not be set by the solver.\n"
69064 ""},
69065 { "RoutingModel_AddLocalSearchFilter", _wrap_RoutingModel_AddLocalSearchFilter, METH_VARARGS, "\n"
69066 "Adds a custom local search filter to the list of filters used to speed up\n"
69067 "local search by pruning unfeasible variable assignments.\n"
69068 "Calling this method after the routing model has been closed (CloseModel()\n"
69069 "or Solve() has been called) has no effect.\n"
69070 "The routing model does not take ownership of the filter.\n"
69071 ""},
69072 { "RoutingModel_Start", _wrap_RoutingModel_Start, METH_VARARGS, "\n"
69073 "Model inspection.\n"
69074 "Returns the variable index of the starting node of a vehicle route.\n"
69075 ""},
69076 { "RoutingModel_End", _wrap_RoutingModel_End, METH_VARARGS, " Returns the variable index of the ending node of a vehicle route."},
69077 { "RoutingModel_IsStart", _wrap_RoutingModel_IsStart, METH_VARARGS, " Returns true if 'index' represents the first node of a route."},
69078 { "RoutingModel_IsEnd", _wrap_RoutingModel_IsEnd, METH_VARARGS, " Returns true if 'index' represents the last node of a route."},
69079 { "RoutingModel_VehicleIndex", _wrap_RoutingModel_VehicleIndex, METH_VARARGS, "\n"
69080 "Returns the vehicle of the given start/end index, and -1 if the given\n"
69081 "index is not a vehicle start/end.\n"
69082 ""},
69083 { "RoutingModel_Next", _wrap_RoutingModel_Next, METH_VARARGS, "\n"
69084 "Assignment inspection\n"
69085 "Returns the variable index of the node directly after the node\n"
69086 "corresponding to 'index' in 'assignment'.\n"
69087 ""},
69088 { "RoutingModel_IsVehicleUsed", _wrap_RoutingModel_IsVehicleUsed, METH_VARARGS, " Returns true if the route of 'vehicle' is non empty in 'assignment'."},
69089 { "RoutingModel_NextVar", _wrap_RoutingModel_NextVar, METH_VARARGS, "\n"
69090 "Returns the next variable of the node corresponding to index. Note that\n"
69091 "NextVar(index) == index is equivalent to ActiveVar(index) == 0.\n"
69092 ""},
69093 { "RoutingModel_ActiveVar", _wrap_RoutingModel_ActiveVar, METH_VARARGS, " Returns the active variable of the node corresponding to index."},
69094 { "RoutingModel_ActiveVehicleVar", _wrap_RoutingModel_ActiveVehicleVar, METH_VARARGS, "\n"
69095 "Returns the active variable of the vehicle. It will be equal to 1 iff the\n"
69096 "route of the vehicle is not empty, 0 otherwise.\n"
69097 ""},
69098 { "RoutingModel_VehicleCostsConsideredVar", _wrap_RoutingModel_VehicleCostsConsideredVar, METH_VARARGS, "\n"
69099 "Returns the variable specifying whether or not costs are considered for\n"
69100 "vehicle.\n"
69101 ""},
69102 { "RoutingModel_VehicleVar", _wrap_RoutingModel_VehicleVar, METH_VARARGS, "\n"
69103 "Returns the vehicle variable of the node corresponding to index. Note that\n"
69104 "VehicleVar(index) == -1 is equivalent to ActiveVar(index) == 0.\n"
69105 ""},
69106 { "RoutingModel_CostVar", _wrap_RoutingModel_CostVar, METH_VARARGS, " Returns the global cost variable which is being minimized."},
69107 { "RoutingModel_GetArcCostForVehicle", _wrap_RoutingModel_GetArcCostForVehicle, METH_VARARGS, "\n"
69108 "Returns the cost of the transit arc between two nodes for a given vehicle.\n"
69109 "Input are variable indices of node. This returns 0 if vehicle < 0.\n"
69110 ""},
69111 { "RoutingModel_CostsAreHomogeneousAcrossVehicles", _wrap_RoutingModel_CostsAreHomogeneousAcrossVehicles, METH_VARARGS, " Whether costs are homogeneous across all vehicles."},
69112 { "RoutingModel_GetHomogeneousCost", _wrap_RoutingModel_GetHomogeneousCost, METH_VARARGS, "\n"
69113 "Returns the cost of the segment between two nodes supposing all vehicle\n"
69114 "costs are the same (returns the cost for the first vehicle otherwise).\n"
69115 ""},
69116 { "RoutingModel_GetArcCostForFirstSolution", _wrap_RoutingModel_GetArcCostForFirstSolution, METH_VARARGS, "\n"
69117 "Returns the cost of the arc in the context of the first solution strategy.\n"
69118 "This is typically a simplification of the actual cost; see the .cc.\n"
69119 ""},
69120 { "RoutingModel_GetArcCostForClass", _wrap_RoutingModel_GetArcCostForClass, METH_VARARGS, "\n"
69121 "Returns the cost of the segment between two nodes for a given cost\n"
69122 "class. Input are variable indices of nodes and the cost class.\n"
69123 "Unlike GetArcCostForVehicle(), if cost_class is kNoCost, then the\n"
69124 "returned cost won't necessarily be zero: only some of the components\n"
69125 "of the cost that depend on the cost class will be omited. See the code\n"
69126 "for details.\n"
69127 ""},
69128 { "RoutingModel_GetCostClassIndexOfVehicle", _wrap_RoutingModel_GetCostClassIndexOfVehicle, METH_VARARGS, " Get the cost class index of the given vehicle."},
69129 { "RoutingModel_HasVehicleWithCostClassIndex", _wrap_RoutingModel_HasVehicleWithCostClassIndex, METH_VARARGS, "\n"
69130 "Returns true iff the model contains a vehicle with the given\n"
69131 "cost_class_index.\n"
69132 ""},
69133 { "RoutingModel_GetCostClassesCount", _wrap_RoutingModel_GetCostClassesCount, METH_VARARGS, " Returns the number of different cost classes in the model."},
69134 { "RoutingModel_GetNonZeroCostClassesCount", _wrap_RoutingModel_GetNonZeroCostClassesCount, METH_VARARGS, " Ditto, minus the 'always zero', built-in cost class."},
69135 { "RoutingModel_GetVehicleClassIndexOfVehicle", _wrap_RoutingModel_GetVehicleClassIndexOfVehicle, METH_VARARGS, NULL},
69136 { "RoutingModel_GetVehicleOfClass", _wrap_RoutingModel_GetVehicleOfClass, METH_VARARGS, "\n"
69137 "Returns a vehicle of the given vehicle class, and -1 if there are no\n"
69138 "vehicles for this class.\n"
69139 ""},
69140 { "RoutingModel_GetVehicleClassesCount", _wrap_RoutingModel_GetVehicleClassesCount, METH_VARARGS, " Returns the number of different vehicle classes in the model."},
69141 { "RoutingModel_GetSameVehicleIndicesOfIndex", _wrap_RoutingModel_GetSameVehicleIndicesOfIndex, METH_VARARGS, " Returns variable indices of nodes constrained to be on the same route."},
69142 { "RoutingModel_GetVehicleTypeContainer", _wrap_RoutingModel_GetVehicleTypeContainer, METH_VARARGS, NULL},
69143 { "RoutingModel_ArcIsMoreConstrainedThanArc", _wrap_RoutingModel_ArcIsMoreConstrainedThanArc, METH_VARARGS, "\n"
69144 "Returns whether the arc from->to1 is more constrained than from->to2,\n"
69145 "taking into account, in order:\n"
69146 "- whether the destination node isn't an end node\n"
69147 "- whether the destination node is mandatory\n"
69148 "- whether the destination node is bound to the same vehicle as the source\n"
69149 "- the \"primary constrained\" dimension (see SetPrimaryConstrainedDimension)\n"
69150 "It then breaks ties using, in order:\n"
69151 "- the arc cost (taking unperformed penalties into account)\n"
69152 "- the size of the vehicle vars of \"to1\" and \"to2\" (lowest size wins)\n"
69153 "- the value: the lowest value of the indices to1 and to2 wins.\n"
69154 "See the .cc for details.\n"
69155 "The more constrained arc is typically preferable when building a\n"
69156 "first solution. This method is intended to be used as a callback for the\n"
69157 "BestValueByComparisonSelector value selector.\n"
69158 "Args:\n"
69159 " from: the variable index of the source node\n"
69160 " to1: the variable index of the first candidate destination node.\n"
69161 " to2: the variable index of the second candidate destination node.\n"
69162 ""},
69163 { "RoutingModel_DebugOutputAssignment", _wrap_RoutingModel_DebugOutputAssignment, METH_VARARGS, "\n"
69164 "Print some debugging information about an assignment, including the\n"
69165 "feasible intervals of the CumulVar for dimension \"dimension_to_print\"\n"
69166 "at each step of the routes.\n"
69167 "If \"dimension_to_print\" is omitted, all dimensions will be printed.\n"
69168 ""},
69169 { "RoutingModel_solver", _wrap_RoutingModel_solver, METH_VARARGS, "\n"
69170 "Returns a vector cumul_bounds, for which cumul_bounds[i][j] is a pair\n"
69171 "containing the minimum and maximum of the CumulVar of the jth node on\n"
69172 "route i.\n"
69173 "- cumul_bounds[i][j].first is the minimum.\n"
69174 "- cumul_bounds[i][j].second is the maximum.\n"
69175 "Returns the underlying constraint solver. Can be used to add extra\n"
69176 "constraints and/or modify search algorithms.\n"
69177 ""},
69178 { "RoutingModel_CheckLimit", _wrap_RoutingModel_CheckLimit, METH_VARARGS, " Returns true if the search limit has been crossed."},
69179 { "RoutingModel_RemainingTime", _wrap_RoutingModel_RemainingTime, METH_VARARGS, " Returns the time left in the search limit."},
69180 { "RoutingModel_nodes", _wrap_RoutingModel_nodes, METH_VARARGS, "\n"
69181 "Sizes and indices\n"
69182 "Returns the number of nodes in the model.\n"
69183 ""},
69184 { "RoutingModel_vehicles", _wrap_RoutingModel_vehicles, METH_VARARGS, " Returns the number of vehicle routes in the model."},
69185 { "RoutingModel_Size", _wrap_RoutingModel_Size, METH_VARARGS, " Returns the number of next variables in the model."},
69186 { "RoutingModel_GetNumberOfDecisionsInFirstSolution", _wrap_RoutingModel_GetNumberOfDecisionsInFirstSolution, METH_VARARGS, "\n"
69187 "Returns statistics on first solution search, number of decisions sent to\n"
69188 "filters, number of decisions rejected by filters.\n"
69189 ""},
69190 { "RoutingModel_GetNumberOfRejectsInFirstSolution", _wrap_RoutingModel_GetNumberOfRejectsInFirstSolution, METH_VARARGS, NULL},
69191 { "RoutingModel_GetAutomaticFirstSolutionStrategy", _wrap_RoutingModel_GetAutomaticFirstSolutionStrategy, METH_VARARGS, " Returns the automatic first solution strategy selected."},
69192 { "RoutingModel_IsMatchingModel", _wrap_RoutingModel_IsMatchingModel, METH_VARARGS, " Returns true if a vehicle/node matching problem is detected."},
69193 { "RoutingModel_MakeGuidedSlackFinalizer", _wrap_RoutingModel_MakeGuidedSlackFinalizer, METH_VARARGS, "\n"
69194 "The next few members are in the public section only for testing purposes.\n"
69195 "\n"
69196 "MakeGuidedSlackFinalizer creates a DecisionBuilder for the slacks of a\n"
69197 "dimension using a callback to choose which values to start with.\n"
69198 "The finalizer works only when all next variables in the model have\n"
69199 "been fixed. It has the following two characteristics:\n"
69200 "1. It follows the routes defined by the nexts variables when choosing a\n"
69201 " variable to make a decision on.\n"
69202 "2. When it comes to choose a value for the slack of node i, the decision\n"
69203 " builder first calls the callback with argument i, and supposingly the\n"
69204 " returned value is x it creates decisions slack[i] = x, slack[i] = x +\n"
69205 " 1, slack[i] = x - 1, slack[i] = x + 2, etc.\n"
69206 ""},
69207 { "RoutingModel_MakeSelfDependentDimensionFinalizer", _wrap_RoutingModel_MakeSelfDependentDimensionFinalizer, METH_VARARGS, "\n"
69208 "MakeSelfDependentDimensionFinalizer is a finalizer for the slacks of a\n"
69209 "self-dependent dimension. It makes an extensive use of the caches of the\n"
69210 "state dependent transits.\n"
69211 "In detail, MakeSelfDependentDimensionFinalizer returns a composition of a\n"
69212 "local search decision builder with a greedy descent operator for the cumul\n"
69213 "of the start of each route and a guided slack finalizer. Provided there\n"
69214 "are no time windows and the maximum slacks are large enough, once the\n"
69215 "cumul of the start of route is fixed, the guided finalizer can find\n"
69216 "optimal values of the slacks for the rest of the route in time\n"
69217 "proportional to the length of the route. Therefore the composed finalizer\n"
69218 "generally works in time O(log(t)*n*m), where t is the latest possible\n"
69219 "departute time, n is the number of nodes in the network and m is the\n"
69220 "number of vehicles.\n"
69221 ""},
69222 { "RoutingModel_swigregister", RoutingModel_swigregister, METH_O, NULL},
69223 { "RoutingModel_swiginit", RoutingModel_swiginit, METH_VARARGS, NULL},
69224 { "new_RoutingModelVisitor", _wrap_new_RoutingModelVisitor, METH_VARARGS, NULL},
69225 { "delete_RoutingModelVisitor", _wrap_delete_RoutingModelVisitor, METH_VARARGS, NULL},
69226 { "RoutingModelVisitor_swigregister", RoutingModelVisitor_swigregister, METH_O, NULL},
69227 { "RoutingModelVisitor_swiginit", RoutingModelVisitor_swiginit, METH_VARARGS, NULL},
69228 { "new_GlobalVehicleBreaksConstraint", _wrap_new_GlobalVehicleBreaksConstraint, METH_VARARGS, NULL},
69229 { "GlobalVehicleBreaksConstraint_DebugString", _wrap_GlobalVehicleBreaksConstraint_DebugString, METH_VARARGS, NULL},
69230 { "GlobalVehicleBreaksConstraint_Post", _wrap_GlobalVehicleBreaksConstraint_Post, METH_VARARGS, NULL},
69231 { "GlobalVehicleBreaksConstraint_InitialPropagateWrapper", _wrap_GlobalVehicleBreaksConstraint_InitialPropagateWrapper, METH_VARARGS, NULL},
69232 { "delete_GlobalVehicleBreaksConstraint", _wrap_delete_GlobalVehicleBreaksConstraint, METH_VARARGS, NULL},
69233 { "GlobalVehicleBreaksConstraint_swigregister", GlobalVehicleBreaksConstraint_swigregister, METH_O, NULL},
69234 { "GlobalVehicleBreaksConstraint_swiginit", GlobalVehicleBreaksConstraint_swiginit, METH_VARARGS, NULL},
69235 { "delete_TypeRegulationsChecker", _wrap_delete_TypeRegulationsChecker, METH_VARARGS, NULL},
69236 { "TypeRegulationsChecker_CheckVehicle", _wrap_TypeRegulationsChecker_CheckVehicle, METH_VARARGS, NULL},
69237 { "TypeRegulationsChecker_swigregister", TypeRegulationsChecker_swigregister, METH_O, NULL},
69238 { "new_TypeIncompatibilityChecker", _wrap_new_TypeIncompatibilityChecker, METH_VARARGS, NULL},
69239 { "delete_TypeIncompatibilityChecker", _wrap_delete_TypeIncompatibilityChecker, METH_VARARGS, NULL},
69240 { "TypeIncompatibilityChecker_swigregister", TypeIncompatibilityChecker_swigregister, METH_O, NULL},
69241 { "TypeIncompatibilityChecker_swiginit", TypeIncompatibilityChecker_swiginit, METH_VARARGS, NULL},
69242 { "new_TypeRequirementChecker", _wrap_new_TypeRequirementChecker, METH_VARARGS, NULL},
69243 { "delete_TypeRequirementChecker", _wrap_delete_TypeRequirementChecker, METH_VARARGS, NULL},
69244 { "TypeRequirementChecker_swigregister", TypeRequirementChecker_swigregister, METH_O, NULL},
69245 { "TypeRequirementChecker_swiginit", TypeRequirementChecker_swiginit, METH_VARARGS, NULL},
69246 { "new_TypeRegulationsConstraint", _wrap_new_TypeRegulationsConstraint, METH_VARARGS, NULL},
69247 { "TypeRegulationsConstraint_Post", _wrap_TypeRegulationsConstraint_Post, METH_VARARGS, NULL},
69248 { "TypeRegulationsConstraint_InitialPropagateWrapper", _wrap_TypeRegulationsConstraint_InitialPropagateWrapper, METH_VARARGS, NULL},
69249 { "delete_TypeRegulationsConstraint", _wrap_delete_TypeRegulationsConstraint, METH_VARARGS, NULL},
69250 { "TypeRegulationsConstraint_swigregister", TypeRegulationsConstraint_swigregister, METH_O, NULL},
69251 { "TypeRegulationsConstraint_swiginit", TypeRegulationsConstraint_swiginit, METH_VARARGS, NULL},
69252 { "delete_RoutingDimension", _wrap_delete_RoutingDimension, METH_VARARGS, NULL},
69253 { "RoutingDimension_model", _wrap_RoutingDimension_model, METH_VARARGS, " Returns the model on which the dimension was created."},
69254 { "RoutingDimension_GetTransitValue", _wrap_RoutingDimension_GetTransitValue, METH_VARARGS, "\n"
69255 "Returns the transition value for a given pair of nodes (as var index);\n"
69256 "this value is the one taken by the corresponding transit variable when\n"
69257 "the 'next' variable for 'from_index' is bound to 'to_index'.\n"
69258 ""},
69259 { "RoutingDimension_GetTransitValueFromClass", _wrap_RoutingDimension_GetTransitValueFromClass, METH_VARARGS, "\n"
69260 "Same as above but taking a vehicle class of the dimension instead of a\n"
69261 "vehicle (the class of a vehicle can be obtained with vehicle_to_class()).\n"
69262 ""},
69263 { "RoutingDimension_CumulVar", _wrap_RoutingDimension_CumulVar, METH_VARARGS, "\n"
69264 "Get the cumul, transit and slack variables for the given node (given as\n"
69265 "int64_t var index).\n"
69266 ""},
69267 { "RoutingDimension_TransitVar", _wrap_RoutingDimension_TransitVar, METH_VARARGS, NULL},
69268 { "RoutingDimension_FixedTransitVar", _wrap_RoutingDimension_FixedTransitVar, METH_VARARGS, NULL},
69269 { "RoutingDimension_SlackVar", _wrap_RoutingDimension_SlackVar, METH_VARARGS, NULL},
69270 { "RoutingDimension_SetSpanUpperBoundForVehicle", _wrap_RoutingDimension_SetSpanUpperBoundForVehicle, METH_VARARGS, "\n"
69271 "Sets an upper bound on the dimension span on a given vehicle. This is the\n"
69272 "preferred way to limit the \"length\" of the route of a vehicle according to\n"
69273 "a dimension.\n"
69274 ""},
69275 { "RoutingDimension_SetSpanCostCoefficientForVehicle", _wrap_RoutingDimension_SetSpanCostCoefficientForVehicle, METH_VARARGS, "\n"
69276 "Sets a cost proportional to the dimension span on a given vehicle,\n"
69277 "or on all vehicles at once. \"coefficient\" must be nonnegative.\n"
69278 "This is handy to model costs proportional to idle time when the dimension\n"
69279 "represents time.\n"
69280 "The cost for a vehicle is\n"
69281 " span_cost = coefficient * (dimension end value - dimension start value).\n"
69282 ""},
69283 { "RoutingDimension_SetSpanCostCoefficientForAllVehicles", _wrap_RoutingDimension_SetSpanCostCoefficientForAllVehicles, METH_VARARGS, NULL},
69284 { "RoutingDimension_SetGlobalSpanCostCoefficient", _wrap_RoutingDimension_SetGlobalSpanCostCoefficient, METH_VARARGS, "\n"
69285 "Sets a cost proportional to the *global* dimension span, that is the\n"
69286 "difference between the largest value of route end cumul variables and\n"
69287 "the smallest value of route start cumul variables.\n"
69288 "In other words:\n"
69289 "global_span_cost =\n"
69290 " coefficient * (Max(dimension end value) - Min(dimension start value)).\n"
69291 ""},
69292 { "RoutingDimension_SetCumulVarSoftUpperBound", _wrap_RoutingDimension_SetCumulVarSoftUpperBound, METH_VARARGS, "\n"
69293 "Sets a soft upper bound to the cumul variable of a given variable index.\n"
69294 "If the value of the cumul variable is greater than the bound, a cost\n"
69295 "proportional to the difference between this value and the bound is added\n"
69296 "to the cost function of the model:\n"
69297 " cumulVar <= upper_bound -> cost = 0\n"
69298 " cumulVar > upper_bound -> cost = coefficient * (cumulVar - upper_bound)\n"
69299 "This is also handy to model tardiness costs when the dimension represents\n"
69300 "time.\n"
69301 ""},
69302 { "RoutingDimension_HasCumulVarSoftUpperBound", _wrap_RoutingDimension_HasCumulVarSoftUpperBound, METH_VARARGS, "\n"
69303 "Returns true if a soft upper bound has been set for a given variable\n"
69304 "index.\n"
69305 ""},
69306 { "RoutingDimension_GetCumulVarSoftUpperBound", _wrap_RoutingDimension_GetCumulVarSoftUpperBound, METH_VARARGS, "\n"
69307 "Returns the soft upper bound of a cumul variable for a given variable\n"
69308 "index. The \"hard\" upper bound of the variable is returned if no soft upper\n"
69309 "bound has been set.\n"
69310 ""},
69311 { "RoutingDimension_GetCumulVarSoftUpperBoundCoefficient", _wrap_RoutingDimension_GetCumulVarSoftUpperBoundCoefficient, METH_VARARGS, "\n"
69312 "Returns the cost coefficient of the soft upper bound of a cumul variable\n"
69313 "for a given variable index. If no soft upper bound has been set, 0 is\n"
69314 "returned.\n"
69315 ""},
69316 { "RoutingDimension_SetCumulVarSoftLowerBound", _wrap_RoutingDimension_SetCumulVarSoftLowerBound, METH_VARARGS, "\n"
69317 "Sets a soft lower bound to the cumul variable of a given variable index.\n"
69318 "If the value of the cumul variable is less than the bound, a cost\n"
69319 "proportional to the difference between this value and the bound is added\n"
69320 "to the cost function of the model:\n"
69321 " cumulVar > lower_bound -> cost = 0\n"
69322 " cumulVar <= lower_bound -> cost = coefficient * (lower_bound -\n"
69323 " cumulVar).\n"
69324 "This is also handy to model earliness costs when the dimension represents\n"
69325 "time.\n"
69326 ""},
69327 { "RoutingDimension_HasCumulVarSoftLowerBound", _wrap_RoutingDimension_HasCumulVarSoftLowerBound, METH_VARARGS, "\n"
69328 "Returns true if a soft lower bound has been set for a given variable\n"
69329 "index.\n"
69330 ""},
69331 { "RoutingDimension_GetCumulVarSoftLowerBound", _wrap_RoutingDimension_GetCumulVarSoftLowerBound, METH_VARARGS, "\n"
69332 "Returns the soft lower bound of a cumul variable for a given variable\n"
69333 "index. The \"hard\" lower bound of the variable is returned if no soft lower\n"
69334 "bound has been set.\n"
69335 ""},
69336 { "RoutingDimension_GetCumulVarSoftLowerBoundCoefficient", _wrap_RoutingDimension_GetCumulVarSoftLowerBoundCoefficient, METH_VARARGS, "\n"
69337 "Returns the cost coefficient of the soft lower bound of a cumul variable\n"
69338 "for a given variable index. If no soft lower bound has been set, 0 is\n"
69339 "returned.\n"
69340 ""},
69341 { "RoutingDimension_SetBreakIntervalsOfVehicle", _wrap_RoutingDimension_SetBreakIntervalsOfVehicle, METH_VARARGS, "\n"
69342 "Sets the breaks for a given vehicle. Breaks are represented by\n"
69343 "IntervalVars. They may interrupt transits between nodes and increase\n"
69344 "the value of corresponding slack variables.\n"
69345 "A break may take place before the start of a vehicle, after the end of\n"
69346 "a vehicle, or during a travel i -> j.\n"
69347 "\n"
69348 "In that case, the interval [break.Start(), break.End()) must be a subset\n"
69349 "of [CumulVar(i) + pre_travel(i, j), CumulVar(j) - post_travel(i, j)). In\n"
69350 "other words, a break may not overlap any node n's visit, given by\n"
69351 "[CumulVar(n) - post_travel(_, n), CumulVar(n) + pre_travel(n, _)).\n"
69352 "This formula considers post_travel(_, start) and pre_travel(end, _) to be\n"
69353 "0; pre_travel will never be called on any (_, start) and post_travel will\n"
69354 "never we called on any (end, _). If pre_travel_evaluator or\n"
69355 "post_travel_evaluator is -1, it will be taken as a function that always\n"
69356 "returns 0.\n"
69357 "Deprecated, sets pre_travel(i, j) = node_visit_transit[i].\n"
69358 ""},
69359 { "RoutingDimension_SetBreakDistanceDurationOfVehicle", _wrap_RoutingDimension_SetBreakDistanceDurationOfVehicle, METH_VARARGS, "\n"
69360 "With breaks supposed to be consecutive, this forces the distance between\n"
69361 "breaks of size at least minimum_break_duration to be at most distance.\n"
69362 "This supposes that the time until route start and after route end are\n"
69363 "infinite breaks.\n"
69364 ""},
69365 { "RoutingDimension_InitializeBreaks", _wrap_RoutingDimension_InitializeBreaks, METH_VARARGS, "\n"
69366 "Sets up vehicle_break_intervals_, vehicle_break_distance_duration_,\n"
69367 "pre_travel_evaluators and post_travel_evaluators.\n"
69368 ""},
69369 { "RoutingDimension_HasBreakConstraints", _wrap_RoutingDimension_HasBreakConstraints, METH_VARARGS, " Returns true if any break interval or break distance was defined."},
69370 { "RoutingDimension_GetPreTravelEvaluatorOfVehicle", _wrap_RoutingDimension_GetPreTravelEvaluatorOfVehicle, METH_VARARGS, NULL},
69371 { "RoutingDimension_GetPostTravelEvaluatorOfVehicle", _wrap_RoutingDimension_GetPostTravelEvaluatorOfVehicle, METH_VARARGS, NULL},
69372 { "RoutingDimension_base_dimension", _wrap_RoutingDimension_base_dimension, METH_VARARGS, " Returns the parent in the dependency tree if any or nullptr otherwise."},
69373 { "RoutingDimension_ShortestTransitionSlack", _wrap_RoutingDimension_ShortestTransitionSlack, METH_VARARGS, "\n"
69374 "It makes sense to use the function only for self-dependent dimension.\n"
69375 "For such dimensions the value of the slack of a node determines the\n"
69376 "transition cost of the next transit. Provided that\n"
69377 " 1. cumul[node] is fixed,\n"
69378 " 2. next[node] and next[next[node]] (if exists) are fixed,\n"
69379 "the value of slack[node] for which cumul[next[node]] + transit[next[node]]\n"
69380 "is minimized can be found in O(1) using this function.\n"
69381 ""},
69382 { "RoutingDimension_name", _wrap_RoutingDimension_name, METH_VARARGS, " Returns the name of the dimension."},
69383 { "RoutingDimension_SetPickupToDeliveryLimitFunctionForPair", _wrap_RoutingDimension_SetPickupToDeliveryLimitFunctionForPair, METH_VARARGS, NULL},
69384 { "RoutingDimension_HasPickupToDeliveryLimits", _wrap_RoutingDimension_HasPickupToDeliveryLimits, METH_VARARGS, NULL},
69385 { "RoutingDimension_AddNodePrecedence", _wrap_RoutingDimension_AddNodePrecedence, METH_VARARGS, NULL},
69386 { "RoutingDimension_GetSpanUpperBoundForVehicle", _wrap_RoutingDimension_GetSpanUpperBoundForVehicle, METH_VARARGS, NULL},
69387 { "RoutingDimension_GetSpanCostCoefficientForVehicle", _wrap_RoutingDimension_GetSpanCostCoefficientForVehicle, METH_VARARGS, NULL},
69388 { "RoutingDimension_global_span_cost_coefficient", _wrap_RoutingDimension_global_span_cost_coefficient, METH_VARARGS, NULL},
69389 { "RoutingDimension_GetGlobalOptimizerOffset", _wrap_RoutingDimension_GetGlobalOptimizerOffset, METH_VARARGS, NULL},
69390 { "RoutingDimension_GetLocalOptimizerOffsetForVehicle", _wrap_RoutingDimension_GetLocalOptimizerOffsetForVehicle, METH_VARARGS, NULL},
69391 { "RoutingDimension_swigregister", RoutingDimension_swigregister, METH_O, NULL},
69392 { "MakeSetValuesFromTargets", _wrap_MakeSetValuesFromTargets, METH_VARARGS, "\n"
69393 "A decision builder which tries to assign values to variables as close as\n"
69394 "possible to target values first.\n"
69395 ""},
69396 { "SolveModelWithSat", _wrap_SolveModelWithSat, METH_VARARGS, "\n"
69397 "Attempts to solve the model using the cp-sat solver. As of 5/2019, will\n"
69398 "solve the TSP corresponding to the model if it has a single vehicle.\n"
69399 "Therefore the resulting solution might not actually be feasible. Will return\n"
69400 "false if a solution could not be found.\n"
69401 ""},
69402 { NULL, NULL, 0, NULL }
69403};
69404
69405static PyMethodDef SwigMethods_proxydocs[] = {
69406 { NULL, NULL, 0, NULL }
69407};
69408
69409
69410/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
69411
69414}
69417}
69420}
69423}
69426}
69429}
69432}
69435}
69438}
69441}
69444}
69447}
69450}
69453}
69456}
69459}
69462}
69465}
69468}
69471}
69474}
69477}
69480}
69483}
69486}
69489}
69492}
69495}
69498}
69501}
69504}
69507}
69510}
69513}
69516}
69519}
69522}
69525}
69528}
69531}
69534}
69537}
69540}
69543}
69546}
69549}
69552}
69555}
69558}
69561}
69564}
69567}
69570}
69573}
69576}
69579}
69582}
69585}
69588}
69591}
69594}
69597}
69600}
69603}
69606}
69609}
69612}
69615}
69618}
69621}
69624}
69627}
69630}
69633}
69636}
69639}
69642}
69645}
69648}
69651}
69654}
69657}
69660}
69663}
69666}
69669}
69672}
69675}
69677 return (void *)((operations_research::IntExpr *) ((operations_research::IntVar *) x));
69678}
69681}
69684}
69687}
69690}
69693}
69696}
69699}
69702}
69705}
69706static swig_type_info _swigt__p_CostClassIndex = {"_p_CostClassIndex", "CostClassIndex *", 0, 0, (void*)0, 0};
69707static swig_type_info _swigt__p_DimensionIndex = {"_p_DimensionIndex", "DimensionIndex *", 0, 0, (void*)0, 0};
69708static swig_type_info _swigt__p_DisjunctionIndex = {"_p_DisjunctionIndex", "DisjunctionIndex *", 0, 0, (void*)0, 0};
69709static swig_type_info _swigt__p_PickupToDeliveryLimitFunction = {"_p_PickupToDeliveryLimitFunction", "PickupToDeliveryLimitFunction *", 0, 0, (void*)0, 0};
69710static swig_type_info _swigt__p_RoutingDimensionIndex = {"_p_RoutingDimensionIndex", "RoutingDimensionIndex *|operations_research::RoutingModel::DimensionIndex *", 0, 0, (void*)0, 0};
69711static swig_type_info _swigt__p_RoutingDisjunctionIndex = {"_p_RoutingDisjunctionIndex", "RoutingDisjunctionIndex *|operations_research::RoutingModel::DisjunctionIndex *", 0, 0, (void*)0, 0};
69712static swig_type_info _swigt__p_TransitCallback1 = {"_p_TransitCallback1", "TransitCallback1 *", 0, 0, (void*)0, 0};
69713static swig_type_info _swigt__p_TransitCallback2 = {"_p_TransitCallback2", "TransitCallback2 *", 0, 0, (void*)0, 0};
69714static swig_type_info _swigt__p_VehicleClassIndex = {"_p_VehicleClassIndex", "VehicleClassIndex *", 0, 0, (void*)0, 0};
69715static swig_type_info _swigt__p_absl__Duration = {"_p_absl__Duration", "absl::Duration *", 0, 0, (void*)0, 0};
69716static swig_type_info _swigt__p_absl__flat_hash_setT_int_t = {"_p_absl__flat_hash_setT_int_t", "absl::flat_hash_set< int > *", 0, 0, (void*)0, 0};
69717static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
69718static swig_type_info _swigt__p_int = {"_p_int", "int *|int_least32_t *|int32_t *", 0, 0, (void*)0, 0};
69719static swig_type_info _swigt__p_long = {"_p_long", "intptr_t *|int_least64_t *|int_fast32_t *|int_fast64_t *|int64_t *|long *|int_fast16_t *|intmax_t *", 0, 0, (void*)0, 0};
69720static swig_type_info _swigt__p_operations_research__Assignment = {"_p_operations_research__Assignment", "operations_research::Assignment *", 0, 0, (void*)0, 0};
69721static swig_type_info _swigt__p_operations_research__AssignmentContainerT_operations_research__IntVar_operations_research__IntVarElement_t = {"_p_operations_research__AssignmentContainerT_operations_research__IntVar_operations_research__IntVarElement_t", "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > *|operations_research::Assignment::IntContainer *", 0, 0, (void*)0, 0};
69722static swig_type_info _swigt__p_operations_research__AssignmentContainerT_operations_research__IntervalVar_operations_research__IntervalVarElement_t = {"_p_operations_research__AssignmentContainerT_operations_research__IntervalVar_operations_research__IntervalVarElement_t", "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > *|operations_research::Assignment::IntervalContainer *", 0, 0, (void*)0, 0};
69723static swig_type_info _swigt__p_operations_research__AssignmentContainerT_operations_research__SequenceVar_operations_research__SequenceVarElement_t = {"_p_operations_research__AssignmentContainerT_operations_research__SequenceVar_operations_research__SequenceVarElement_t", "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > *|operations_research::Assignment::SequenceContainer *", 0, 0, (void*)0, 0};
69724static swig_type_info _swigt__p_operations_research__AssignmentElement = {"_p_operations_research__AssignmentElement", "operations_research::AssignmentElement *", 0, 0, (void*)0, 0};
69725static swig_type_info _swigt__p_operations_research__BaseLns = {"_p_operations_research__BaseLns", "operations_research::BaseLns *", 0, 0, (void*)0, 0};
69726static swig_type_info _swigt__p_operations_research__BaseObject = {"_p_operations_research__BaseObject", "operations_research::BaseObject *", 0, 0, (void*)0, 0};
69727static swig_type_info _swigt__p_operations_research__CastConstraint = {"_p_operations_research__CastConstraint", 0, 0, 0, 0, 0};
69728static swig_type_info _swigt__p_operations_research__SymmetryBreaker = {"_p_operations_research__SymmetryBreaker", 0, 0, 0, 0, 0};
69729static swig_type_info _swigt__p_operations_research__SearchLog = {"_p_operations_research__SearchLog", 0, 0, 0, 0, 0};
69730static swig_type_info _swigt__p_operations_research__BaseIntExpr = {"_p_operations_research__BaseIntExpr", 0, 0, 0, 0, 0};
69731static swig_type_info _swigt__p_operations_research__PropagationMonitor = {"_p_operations_research__PropagationMonitor", 0, 0, 0, 0, 0};
69732static swig_type_info _swigt__p_operations_research__ImprovementSearchLimit = {"_p_operations_research__ImprovementSearchLimit", 0, 0, 0, 0, 0};
69733static swig_type_info _swigt__p_operations_research__BooleanVar = {"_p_operations_research__BooleanVar", "operations_research::BooleanVar *", 0, 0, (void*)0, 0};
69734static swig_type_info _swigt__p_operations_research__ChangeValue = {"_p_operations_research__ChangeValue", "operations_research::ChangeValue *", 0, 0, (void*)0, 0};
69735static swig_type_info _swigt__p_operations_research__Constraint = {"_p_operations_research__Constraint", "operations_research::Constraint *", 0, 0, (void*)0, 0};
69736static swig_type_info _swigt__p_operations_research__Decision = {"_p_operations_research__Decision", "operations_research::Decision *", 0, 0, (void*)0, 0};
69737static swig_type_info _swigt__p_operations_research__DecisionBuilder = {"_p_operations_research__DecisionBuilder", "operations_research::DecisionBuilder *", 0, 0, (void*)0, 0};
69738static swig_type_info _swigt__p_operations_research__DecisionVisitor = {"_p_operations_research__DecisionVisitor", "operations_research::DecisionVisitor *", 0, 0, (void*)0, 0};
69739static swig_type_info _swigt__p_operations_research__DefaultPhaseParameters = {"_p_operations_research__DefaultPhaseParameters", "operations_research::DefaultPhaseParameters *", 0, 0, (void*)0, 0};
69740static swig_type_info _swigt__p_operations_research__Demon = {"_p_operations_research__Demon", "operations_research::Demon *", 0, 0, (void*)0, 0};
69741static swig_type_info _swigt__p_operations_research__DisjunctiveConstraint = {"_p_operations_research__DisjunctiveConstraint", "operations_research::DisjunctiveConstraint *", 0, 0, (void*)0, 0};
69742static swig_type_info _swigt__p_operations_research__FirstSolutionStrategy__Value = {"_p_operations_research__FirstSolutionStrategy__Value", "operations_research::FirstSolutionStrategy::Value *", 0, 0, (void*)0, 0};
69743static swig_type_info _swigt__p_operations_research__GlobalDimensionCumulOptimizer = {"_p_operations_research__GlobalDimensionCumulOptimizer", "operations_research::GlobalDimensionCumulOptimizer *", 0, 0, (void*)0, 0};
69744static swig_type_info _swigt__p_operations_research__GlobalVehicleBreaksConstraint = {"_p_operations_research__GlobalVehicleBreaksConstraint", "operations_research::GlobalVehicleBreaksConstraint *", 0, 0, (void*)0, 0};
69745static swig_type_info _swigt__p_operations_research__IntExpr = {"_p_operations_research__IntExpr", "operations_research::IntExpr *", 0, 0, (void*)0, 0};
69746static swig_type_info _swigt__p_operations_research__IntTupleSet = {"_p_operations_research__IntTupleSet", "operations_research::IntTupleSet *", 0, 0, (void*)0, 0};
69747static swig_type_info _swigt__p_operations_research__IntVar = {"_p_operations_research__IntVar", "operations_research::IntVar *", 0, 0, (void*)0, 0};
69748static swig_type_info _swigt__p_operations_research__IntVarElement = {"_p_operations_research__IntVarElement", "operations_research::IntVarElement *", 0, 0, (void*)0, 0};
69749static swig_type_info _swigt__p_operations_research__IntVarIterator = {"_p_operations_research__IntVarIterator", "operations_research::IntVarIterator *", 0, 0, (void*)0, 0};
69750static swig_type_info _swigt__p_operations_research__IntVarLocalSearchFilter = {"_p_operations_research__IntVarLocalSearchFilter", "operations_research::IntVarLocalSearchFilter *", 0, 0, (void*)0, 0};
69751static swig_type_info _swigt__p_operations_research__IntVarLocalSearchOperator = {"_p_operations_research__IntVarLocalSearchOperator", "operations_research::IntVarLocalSearchOperator *", 0, 0, (void*)0, 0};
69752static swig_type_info _swigt__p_operations_research__IntervalVar = {"_p_operations_research__IntervalVar", "operations_research::IntervalVar *", 0, 0, (void*)0, 0};
69753static swig_type_info _swigt__p_operations_research__IntervalVarElement = {"_p_operations_research__IntervalVarElement", "operations_research::IntervalVarElement *", 0, 0, (void*)0, 0};
69754static swig_type_info _swigt__p_operations_research__LocalDimensionCumulOptimizer = {"_p_operations_research__LocalDimensionCumulOptimizer", "operations_research::LocalDimensionCumulOptimizer *", 0, 0, (void*)0, 0};
69755static swig_type_info _swigt__p_operations_research__LocalSearchFilter = {"_p_operations_research__LocalSearchFilter", "operations_research::LocalSearchFilter *", 0, 0, (void*)0, 0};
69756static swig_type_info _swigt__p_operations_research__LocalSearchFilterManager = {"_p_operations_research__LocalSearchFilterManager", "operations_research::LocalSearchFilterManager *", 0, 0, (void*)0, 0};
69757static swig_type_info _swigt__p_operations_research__LocalSearchMonitor = {"_p_operations_research__LocalSearchMonitor", "operations_research::LocalSearchMonitor *", 0, 0, (void*)0, 0};
69758static swig_type_info _swigt__p_operations_research__LocalSearchOperator = {"_p_operations_research__LocalSearchOperator", "operations_research::LocalSearchOperator *", 0, 0, (void*)0, 0};
69759static swig_type_info _swigt__p_operations_research__LocalSearchPhaseParameters = {"_p_operations_research__LocalSearchPhaseParameters", "operations_research::LocalSearchPhaseParameters *", 0, 0, (void*)0, 0};
69760static swig_type_info _swigt__p_operations_research__ModelVisitor = {"_p_operations_research__ModelVisitor", "operations_research::ModelVisitor *", 0, 0, (void*)0, 0};
69761static swig_type_info _swigt__p_operations_research__NumericalRevT_long_t = {"_p_operations_research__NumericalRevT_long_t", "operations_research::NumericalRev< long > *|operations_research::NumericalRev< int64_t > *", 0, 0, (void*)0, 0};
69762static swig_type_info _swigt__p_operations_research__OptimizeVar = {"_p_operations_research__OptimizeVar", "operations_research::OptimizeVar *", 0, 0, (void*)0, 0};
69763static swig_type_info _swigt__p_operations_research__Pack = {"_p_operations_research__Pack", "operations_research::Pack *", 0, 0, (void*)0, 0};
69764static swig_type_info _swigt__p_operations_research__PathOperator = {"_p_operations_research__PathOperator", "operations_research::PathOperator *", 0, 0, (void*)0, 0};
69765static swig_type_info _swigt__p_operations_research__PropagationBaseObject = {"_p_operations_research__PropagationBaseObject", "operations_research::PropagationBaseObject *", 0, 0, (void*)0, 0};
69766static swig_type_info _swigt__p_operations_research__RegularLimit = {"_p_operations_research__RegularLimit", "operations_research::RegularLimit *", 0, 0, (void*)0, 0};
69767static swig_type_info _swigt__p_operations_research__RevT_bool_t = {"_p_operations_research__RevT_bool_t", "operations_research::Rev< bool > *", 0, 0, (void*)0, 0};
69768static swig_type_info _swigt__p_operations_research__RevT_long_t = {"_p_operations_research__RevT_long_t", "operations_research::Rev< long > *|operations_research::Rev< int64_t > *", 0, 0, (void*)0, 0};
69769static swig_type_info _swigt__p_operations_research__RoutingDimension = {"_p_operations_research__RoutingDimension", "operations_research::RoutingDimension *", 0, 0, (void*)0, 0};
69770static swig_type_info _swigt__p_operations_research__RoutingIndexManager = {"_p_operations_research__RoutingIndexManager", "operations_research::RoutingIndexManager *", 0, 0, (void*)0, 0};
69771static swig_type_info _swigt__p_operations_research__RoutingModel = {"_p_operations_research__RoutingModel", "operations_research::RoutingModel *", 0, 0, (void*)0, 0};
69772static swig_type_info _swigt__p_operations_research__RoutingModelVisitor = {"_p_operations_research__RoutingModelVisitor", "operations_research::RoutingModelVisitor *", 0, 0, (void*)0, 0};
69773static swig_type_info _swigt__p_operations_research__RoutingModel__VehicleTypeContainer = {"_p_operations_research__RoutingModel__VehicleTypeContainer", "operations_research::RoutingModel::VehicleTypeContainer *", 0, 0, (void*)0, 0};
69774static swig_type_info _swigt__p_operations_research__SearchLimit = {"_p_operations_research__SearchLimit", "operations_research::SearchLimit *", 0, 0, (void*)0, 0};
69775static swig_type_info _swigt__p_operations_research__SearchMonitor = {"_p_operations_research__SearchMonitor", "operations_research::SearchMonitor *", 0, 0, (void*)0, 0};
69776static swig_type_info _swigt__p_operations_research__SequenceVar = {"_p_operations_research__SequenceVar", "operations_research::SequenceVar *", 0, 0, (void*)0, 0};
69777static swig_type_info _swigt__p_operations_research__SequenceVarElement = {"_p_operations_research__SequenceVarElement", "operations_research::SequenceVarElement *", 0, 0, (void*)0, 0};
69778static swig_type_info _swigt__p_operations_research__SequenceVarLocalSearchOperator = {"_p_operations_research__SequenceVarLocalSearchOperator", "operations_research::SequenceVarLocalSearchOperator *", 0, 0, (void*)0, 0};
69779static swig_type_info _swigt__p_operations_research__SolutionCollector = {"_p_operations_research__SolutionCollector", "operations_research::SolutionCollector *", 0, 0, (void*)0, 0};
69780static swig_type_info _swigt__p_operations_research__SolutionPool = {"_p_operations_research__SolutionPool", "operations_research::SolutionPool *", 0, 0, (void*)0, 0};
69781static swig_type_info _swigt__p_operations_research__Solver = {"_p_operations_research__Solver", "operations_research::Solver *", 0, 0, (void*)0, 0};
69782static swig_type_info _swigt__p_operations_research__Solver__SearchLogParameters = {"_p_operations_research__Solver__SearchLogParameters", "operations_research::Solver::SearchLogParameters *", 0, 0, (void*)0, 0};
69783static swig_type_info _swigt__p_operations_research__TypeIncompatibilityChecker = {"_p_operations_research__TypeIncompatibilityChecker", "operations_research::TypeIncompatibilityChecker *", 0, 0, (void*)0, 0};
69784static swig_type_info _swigt__p_operations_research__TypeRegulationsChecker = {"_p_operations_research__TypeRegulationsChecker", "operations_research::TypeRegulationsChecker *", 0, 0, (void*)0, 0};
69785static swig_type_info _swigt__p_operations_research__TypeRegulationsConstraint = {"_p_operations_research__TypeRegulationsConstraint", "operations_research::TypeRegulationsConstraint *", 0, 0, (void*)0, 0};
69786static swig_type_info _swigt__p_operations_research__TypeRequirementChecker = {"_p_operations_research__TypeRequirementChecker", "operations_research::TypeRequirementChecker *", 0, 0, (void*)0, 0};
69787static swig_type_info _swigt__p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t = {"_p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t", "operations_research::VarLocalSearchOperator< operations_research::IntVar,long,operations_research::IntVarLocalSearchHandler > *|operations_research::VarLocalSearchOperator< operations_research::IntVar,int64_t,operations_research::IntVarLocalSearchHandler > *", 0, 0, (void*)0, 0};
69788static swig_type_info _swigt__p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_t = {"_p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_t", "operations_research::VarLocalSearchOperator< operations_research::SequenceVar,std::vector< int >,operations_research::SequenceVarLocalSearchHandler > *", 0, 0, (void*)0, 0};
69789static swig_type_info _swigt__p_short = {"_p_short", "short *|int_least16_t *|int16_t *", 0, 0, (void*)0, 0};
69790static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|int_least8_t *|int_fast8_t *|int8_t *", 0, 0, (void*)0, 0};
69791static swig_type_info _swigt__p_std__functionT_long_flongF_t = {"_p_std__functionT_long_flongF_t", "std::function< long (long) > *|operations_research::RoutingTransitCallback1 *|std::function< int64_t (int64_t) > *|operations_research::RoutingModel::TransitCallback1 *", 0, 0, (void*)0, 0};
69792static swig_type_info _swigt__p_std__functionT_long_flong_longF_t = {"_p_std__functionT_long_flong_longF_t", "std::function< long (long,long) > *|operations_research::RoutingModel::TransitCallback2 *|operations_research::RoutingTransitCallback2 *", 0, 0, (void*)0, 0};
69793static swig_type_info _swigt__p_std__ostream = {"_p_std__ostream", "std::ostream *", 0, 0, (void*)0, 0};
69794static swig_type_info _swigt__p_std__pairT_std__vectorT_long_t_std__vectorT_long_t_t = {"_p_std__pairT_std__vectorT_long_t_std__vectorT_long_t_t", "std::pair< std::vector< long >,std::vector< long > > *|operations_research::RoutingIndexPair *", 0, 0, (void*)0, 0};
69795static swig_type_info _swigt__p_std__vectorT_absl__flat_hash_setT_int_t_t = {"_p_std__vectorT_absl__flat_hash_setT_int_t_t", "std::vector< absl::flat_hash_set< int > > *", 0, 0, (void*)0, 0};
69796static swig_type_info _swigt__p_std__vectorT_operations_research__Assignment_const_p_t = {"_p_std__vectorT_operations_research__Assignment_const_p_t", "std::vector< operations_research::Assignment const * > *", 0, 0, (void*)0, 0};
69797static swig_type_info _swigt__p_std__vectorT_operations_research__LocalSearchFilterManager__FilterEvent_t = {"_p_std__vectorT_operations_research__LocalSearchFilterManager__FilterEvent_t", "std::vector< operations_research::LocalSearchFilterManager::FilterEvent > *", 0, 0, (void*)0, 0};
69798static swig_type_info _swigt__p_std__vectorT_operations_research__RoutingDimension_p_t = {"_p_std__vectorT_operations_research__RoutingDimension_p_t", "std::vector< operations_research::RoutingDimension * > *", 0, 0, (void*)0, 0};
69799static swig_type_info _swigt__p_std__vectorT_std__pairT_int_int_t_t = {"_p_std__vectorT_std__pairT_int_int_t_t", "std::vector< std::pair< int,int > > *", 0, 0, (void*)0, 0};
69800static swig_type_info _swigt__p_std__vectorT_std__pairT_long_long_t_t = {"_p_std__vectorT_std__pairT_long_long_t_t", "std::vector< std::pair< long,long > > *|std::vector< std::pair< int64_t,int64_t > > *", 0, 0, (void*)0, 0};
69801static swig_type_info _swigt__p_std__vectorT_std__pairT_std__vectorT_long_t_std__vectorT_long_t_t_t = {"_p_std__vectorT_std__pairT_std__vectorT_long_t_std__vectorT_long_t_t_t", "std::vector< std::pair< std::vector< long >,std::vector< long > > > *|operations_research::RoutingIndexPairs *", 0, 0, (void*)0, 0};
69802static swig_type_info _swigt__p_std__vectorT_std__unique_ptrT_operations_research__GlobalDimensionCumulOptimizer_t_t = {"_p_std__vectorT_std__unique_ptrT_operations_research__GlobalDimensionCumulOptimizer_t_t", "std::vector< std::unique_ptr< operations_research::GlobalDimensionCumulOptimizer > > *", 0, 0, (void*)0, 0};
69803static swig_type_info _swigt__p_std__vectorT_std__unique_ptrT_operations_research__LocalDimensionCumulOptimizer_t_t = {"_p_std__vectorT_std__unique_ptrT_operations_research__LocalDimensionCumulOptimizer_t_t", "std::vector< std::unique_ptr< operations_research::LocalDimensionCumulOptimizer > > *", 0, 0, (void*)0, 0};
69804static swig_type_info _swigt__p_std__vectorT_std__vectorT_long_t_t = {"_p_std__vectorT_std__vectorT_long_t_t", "std::vector< std::vector< long > > *|std::vector< std::vector< int64_t > > *", 0, 0, (void*)0, 0};
69805static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|uint_least8_t *|uint_fast8_t *|uint8_t *", 0, 0, (void*)0, 0};
69806static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "uint_least32_t *|uint32_t *|unsigned int *", 0, 0, (void*)0, 0};
69807static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "uintptr_t *|uint_least64_t *|uint_fast32_t *|uint_fast64_t *|uint64_t *|unsigned long *|uint_fast16_t *|uintmax_t *", 0, 0, (void*)0, 0};
69808static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|uint_least16_t *|uint16_t *", 0, 0, (void*)0, 0};
69809
69914};
69915
69927static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
69928static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
69929static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
69942static swig_cast_info _swigc__p_operations_research__BaseObject[] = { {&_swigt__p_operations_research__DisjunctiveConstraint, _p_operations_research__DisjunctiveConstraintTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__Constraint, _p_operations_research__ConstraintTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__CastConstraint, _p_operations_research__CastConstraintTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__TypeRegulationsConstraint, _p_operations_research__TypeRegulationsConstraintTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__SymmetryBreaker, _p_operations_research__SymmetryBreakerTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__Assignment, _p_operations_research__AssignmentTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__Pack, _p_operations_research__PackTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__GlobalVehicleBreaksConstraint, _p_operations_research__GlobalVehicleBreaksConstraintTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__RegularLimit, _p_operations_research__RegularLimitTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__LocalSearchOperator, _p_operations_research__LocalSearchOperatorTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__IntVarIterator, _p_operations_research__IntVarIteratorTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__PathOperator, _p_operations_research__PathOperatorTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__IntVarLocalSearchOperator, _p_operations_research__IntVarLocalSearchOperatorTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__DecisionBuilder, _p_operations_research__DecisionBuilderTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__DecisionVisitor, _p_operations_research__DecisionVisitorTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__ModelVisitor, _p_operations_research__ModelVisitorTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__RoutingModelVisitor, _p_operations_research__RoutingModelVisitorTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__IntVar, _p_operations_research__IntVarTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__Demon, _p_operations_research__DemonTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_t, _p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_tTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t, _p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_tTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__OptimizeVar, _p_operations_research__OptimizeVarTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__ChangeValue, _p_operations_research__ChangeValueTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__Decision, _p_operations_research__DecisionTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__PropagationBaseObject, _p_operations_research__PropagationBaseObjectTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__BaseObject, 0, 0, 0}, {&_swigt__p_operations_research__SequenceVar, _p_operations_research__SequenceVarTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__BaseLns, _p_operations_research__BaseLnsTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__SearchLog, _p_operations_research__SearchLogTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__IntVarLocalSearchFilter, _p_operations_research__IntVarLocalSearchFilterTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__LocalSearchFilter, _p_operations_research__LocalSearchFilterTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__SolutionCollector, _p_operations_research__SolutionCollectorTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__SolutionPool, _p_operations_research__SolutionPoolTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__SequenceVarLocalSearchOperator, _p_operations_research__SequenceVarLocalSearchOperatorTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__IntervalVar, _p_operations_research__IntervalVarTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__IntExpr, _p_operations_research__IntExprTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__BaseIntExpr, _p_operations_research__BaseIntExprTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__SearchMonitor, _p_operations_research__SearchMonitorTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__PropagationMonitor, _p_operations_research__PropagationMonitorTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__LocalSearchMonitor, _p_operations_research__LocalSearchMonitorTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__BooleanVar, _p_operations_research__BooleanVarTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__SearchLimit, _p_operations_research__SearchLimitTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__ImprovementSearchLimit, _p_operations_research__ImprovementSearchLimitTo_p_operations_research__BaseObject, 0, 0}, {&_swigt__p_operations_research__LocalSearchFilterManager, _p_operations_research__LocalSearchFilterManagerTo_p_operations_research__BaseObject, 0, 0},{0, 0, 0, 0}};
69968static swig_cast_info _swigc__p_operations_research__LocalSearchOperator[] = { {&_swigt__p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t, _p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_tTo_p_operations_research__LocalSearchOperator, 0, 0}, {&_swigt__p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_t, _p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_tTo_p_operations_research__LocalSearchOperator, 0, 0}, {&_swigt__p_operations_research__LocalSearchOperator, 0, 0, 0}, {&_swigt__p_operations_research__IntVarLocalSearchOperator, _p_operations_research__IntVarLocalSearchOperatorTo_p_operations_research__LocalSearchOperator, 0, 0}, {&_swigt__p_operations_research__PathOperator, _p_operations_research__PathOperatorTo_p_operations_research__LocalSearchOperator, 0, 0}, {&_swigt__p_operations_research__BaseLns, _p_operations_research__BaseLnsTo_p_operations_research__LocalSearchOperator, 0, 0}, {&_swigt__p_operations_research__ChangeValue, _p_operations_research__ChangeValueTo_p_operations_research__LocalSearchOperator, 0, 0}, {&_swigt__p_operations_research__SequenceVarLocalSearchOperator, _p_operations_research__SequenceVarLocalSearchOperatorTo_p_operations_research__LocalSearchOperator, 0, 0},{0, 0, 0, 0}};
69975static swig_cast_info _swigc__p_operations_research__PropagationBaseObject[] = { {&_swigt__p_operations_research__IntExpr, _p_operations_research__IntExprTo_p_operations_research__PropagationBaseObject, 0, 0}, {&_swigt__p_operations_research__BaseIntExpr, _p_operations_research__BaseIntExprTo_p_operations_research__PropagationBaseObject, 0, 0}, {&_swigt__p_operations_research__IntVar, _p_operations_research__IntVarTo_p_operations_research__PropagationBaseObject, 0, 0}, {&_swigt__p_operations_research__IntervalVar, _p_operations_research__IntervalVarTo_p_operations_research__PropagationBaseObject, 0, 0}, {&_swigt__p_operations_research__BooleanVar, _p_operations_research__BooleanVarTo_p_operations_research__PropagationBaseObject, 0, 0}, {&_swigt__p_operations_research__Constraint, _p_operations_research__ConstraintTo_p_operations_research__PropagationBaseObject, 0, 0}, {&_swigt__p_operations_research__CastConstraint, _p_operations_research__CastConstraintTo_p_operations_research__PropagationBaseObject, 0, 0}, {&_swigt__p_operations_research__DisjunctiveConstraint, _p_operations_research__DisjunctiveConstraintTo_p_operations_research__PropagationBaseObject, 0, 0}, {&_swigt__p_operations_research__TypeRegulationsConstraint, _p_operations_research__TypeRegulationsConstraintTo_p_operations_research__PropagationBaseObject, 0, 0}, {&_swigt__p_operations_research__Assignment, _p_operations_research__AssignmentTo_p_operations_research__PropagationBaseObject, 0, 0}, {&_swigt__p_operations_research__GlobalVehicleBreaksConstraint, _p_operations_research__GlobalVehicleBreaksConstraintTo_p_operations_research__PropagationBaseObject, 0, 0}, {&_swigt__p_operations_research__PropagationBaseObject, 0, 0, 0}, {&_swigt__p_operations_research__SequenceVar, _p_operations_research__SequenceVarTo_p_operations_research__PropagationBaseObject, 0, 0}, {&_swigt__p_operations_research__Pack, _p_operations_research__PackTo_p_operations_research__PropagationBaseObject, 0, 0},{0, 0, 0, 0}};
69999static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}};
70000static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}};
70003static swig_cast_info _swigc__p_std__ostream[] = { {&_swigt__p_std__ostream, 0, 0, 0},{0, 0, 0, 0}};
70016static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
70019
70124};
70125
70126
70127/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
70128
70130{0, 0, 0, 0.0, 0, 0}};
70131
70132#ifdef __cplusplus
70133}
70134#endif
70135/* -----------------------------------------------------------------------------
70136 * Type initialization:
70137 * This problem is tough by the requirement that no dynamic
70138 * memory is used. Also, since swig_type_info structures store pointers to
70139 * swig_cast_info structures and swig_cast_info structures store pointers back
70140 * to swig_type_info structures, we need some lookup code at initialization.
70141 * The idea is that swig generates all the structures that are needed.
70142 * The runtime then collects these partially filled structures.
70143 * The SWIG_InitializeModule function takes these initial arrays out of
70144 * swig_module, and does all the lookup, filling in the swig_module.types
70145 * array with the correct data and linking the correct swig_cast_info
70146 * structures together.
70147 *
70148 * The generated swig_type_info structures are assigned statically to an initial
70149 * array. We just loop through that array, and handle each type individually.
70150 * First we lookup if this type has been already loaded, and if so, use the
70151 * loaded structure instead of the generated one. Then we have to fill in the
70152 * cast linked list. The cast data is initially stored in something like a
70153 * two-dimensional array. Each row corresponds to a type (there are the same
70154 * number of rows as there are in the swig_type_initial array). Each entry in
70155 * a column is one of the swig_cast_info structures for that type.
70156 * The cast_initial array is actually an array of arrays, because each row has
70157 * a variable number of columns. So to actually build the cast linked list,
70158 * we find the array of casts associated with the type, and loop through it
70159 * adding the casts to the list. The one last trick we need to do is making
70160 * sure the type pointer in the swig_cast_info struct is correct.
70161 *
70162 * First off, we lookup the cast->type name to see if it is already loaded.
70163 * There are three cases to handle:
70164 * 1) If the cast->type has already been loaded AND the type we are adding
70165 * casting info to has not been loaded (it is in this module), THEN we
70166 * replace the cast->type pointer with the type pointer that has already
70167 * been loaded.
70168 * 2) If BOTH types (the one we are adding casting info to, and the
70169 * cast->type) are loaded, THEN the cast info has already been loaded by
70170 * the previous module so we just ignore it.
70171 * 3) Finally, if cast->type has not already been loaded, then we add that
70172 * swig_cast_info to the linked list (because the cast->type) pointer will
70173 * be correct.
70174 * ----------------------------------------------------------------------------- */
70175
70176#ifdef __cplusplus
70177extern "C" {
70178#if 0
70179} /* c-mode */
70180#endif
70181#endif
70182
70183#if 0
70184#define SWIGRUNTIME_DEBUG
70185#endif
70186
70187
70188SWIGRUNTIME void
70189SWIG_InitializeModule(void *clientdata) {
70190 size_t i;
70191 swig_module_info *module_head, *iter;
70192 int init;
70193
70194 /* check to see if the circular list has been setup, if not, set it up */
70195 if (swig_module.next==0) {
70196 /* Initialize the swig_module */
70200 init = 1;
70201 } else {
70202 init = 0;
70203 }
70204
70205 /* Try and load any already created modules */
70206 module_head = SWIG_GetModule(clientdata);
70207 if (!module_head) {
70208 /* This is the first module loaded for this interpreter */
70209 /* so set the swig module into the interpreter */
70210 SWIG_SetModule(clientdata, &swig_module);
70211 } else {
70212 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
70213 iter=module_head;
70214 do {
70215 if (iter==&swig_module) {
70216 /* Our module is already in the list, so there's nothing more to do. */
70217 return;
70218 }
70219 iter=iter->next;
70220 } while (iter!= module_head);
70221
70222 /* otherwise we must add our module into the list */
70223 swig_module.next = module_head->next;
70224 module_head->next = &swig_module;
70225 }
70226
70227 /* When multiple interpreters are used, a module could have already been initialized in
70228 a different interpreter, but not yet have a pointer in this interpreter.
70229 In this case, we do not want to continue adding types... everything should be
70230 set up already */
70231 if (init == 0) return;
70232
70233 /* Now work on filling in swig_module.types */
70234#ifdef SWIGRUNTIME_DEBUG
70235 printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
70236#endif
70237 for (i = 0; i < swig_module.size; ++i) {
70238 swig_type_info *type = 0;
70239 swig_type_info *ret;
70240 swig_cast_info *cast;
70241
70242#ifdef SWIGRUNTIME_DEBUG
70243 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
70244#endif
70245
70246 /* if there is another module already loaded */
70247 if (swig_module.next != &swig_module) {
70249 }
70250 if (type) {
70251 /* Overwrite clientdata field */
70252#ifdef SWIGRUNTIME_DEBUG
70253 printf("SWIG_InitializeModule: found type %s\n", type->name);
70254#endif
70257#ifdef SWIGRUNTIME_DEBUG
70258 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
70259#endif
70260 }
70261 } else {
70262 type = swig_module.type_initial[i];
70263 }
70264
70265 /* Insert casting types */
70266 cast = swig_module.cast_initial[i];
70267 while (cast->type) {
70268 /* Don't need to add information already in the list */
70269 ret = 0;
70270#ifdef SWIGRUNTIME_DEBUG
70271 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
70272#endif
70273 if (swig_module.next != &swig_module) {
70275#ifdef SWIGRUNTIME_DEBUG
70276 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
70277#endif
70278 }
70279 if (ret) {
70280 if (type == swig_module.type_initial[i]) {
70281#ifdef SWIGRUNTIME_DEBUG
70282 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
70283#endif
70284 cast->type = ret;
70285 ret = 0;
70286 } else {
70287 /* Check for casting already in the list */
70288 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
70289#ifdef SWIGRUNTIME_DEBUG
70290 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
70291#endif
70292 if (!ocast) ret = 0;
70293 }
70294 }
70295
70296 if (!ret) {
70297#ifdef SWIGRUNTIME_DEBUG
70298 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
70299#endif
70300 if (type->cast) {
70301 type->cast->prev = cast;
70302 cast->next = type->cast;
70303 }
70304 type->cast = cast;
70305 }
70306 cast++;
70307 }
70308 /* Set entry in modules->types array equal to the type */
70309 swig_module.types[i] = type;
70310 }
70311 swig_module.types[i] = 0;
70312
70313#ifdef SWIGRUNTIME_DEBUG
70314 printf("**** SWIG_InitializeModule: Cast List ******\n");
70315 for (i = 0; i < swig_module.size; ++i) {
70316 int j = 0;
70318 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
70319 while (cast->type) {
70320 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
70321 cast++;
70322 ++j;
70323 }
70324 printf("---- Total casts: %d\n",j);
70325 }
70326 printf("**** SWIG_InitializeModule: Cast List ******\n");
70327#endif
70328}
70329
70330/* This function will propagate the clientdata field of type to
70331* any new swig_type_info structures that have been added into the list
70332* of equivalent types. It is like calling
70333* SWIG_TypeClientData(type, clientdata) a second time.
70334*/
70335SWIGRUNTIME void
70337 size_t i;
70338 swig_cast_info *equiv;
70339 static int init_run = 0;
70340
70341 if (init_run) return;
70342 init_run = 1;
70343
70344 for (i = 0; i < swig_module.size; i++) {
70345 if (swig_module.types[i]->clientdata) {
70346 equiv = swig_module.types[i]->cast;
70347 while (equiv) {
70348 if (!equiv->converter) {
70349 if (equiv->type && !equiv->type->clientdata)
70351 }
70352 equiv = equiv->next;
70353 }
70354 }
70355 }
70356}
70357
70358#ifdef __cplusplus
70359#if 0
70360{
70361 /* c-mode */
70362#endif
70363}
70364#endif
70365
70366
70367
70368#ifdef __cplusplus
70369extern "C" {
70370#endif
70371
70372 /* Python-specific SWIG API */
70373#define SWIG_newvarlink() SWIG_Python_newvarlink()
70374#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
70375#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
70376
70377 /* -----------------------------------------------------------------------------
70378 * global variable support code.
70379 * ----------------------------------------------------------------------------- */
70380
70381 typedef struct swig_globalvar {
70382 char *name; /* Name of global variable */
70383 PyObject *(*get_attr)(void); /* Return the current value */
70384 int (*set_attr)(PyObject *); /* Set the value */
70385 struct swig_globalvar *next;
70387
70388 typedef struct swig_varlinkobject {
70389 PyObject_HEAD
70392
70393 SWIGINTERN PyObject *
70395#if PY_VERSION_HEX >= 0x03000000
70396 return PyUnicode_InternFromString("<Swig global variables>");
70397#else
70398 return PyString_FromString("<Swig global variables>");
70399#endif
70400 }
70401
70402 SWIGINTERN PyObject *
70404#if PY_VERSION_HEX >= 0x03000000
70405 PyObject *str = PyUnicode_InternFromString("(");
70406 PyObject *tail;
70407 PyObject *joined;
70409 for (var = v->vars; var; var=var->next) {
70410 tail = PyUnicode_FromString(var->name);
70411 joined = PyUnicode_Concat(str, tail);
70412 Py_DecRef(str);
70413 Py_DecRef(tail);
70414 str = joined;
70415 if (var->next) {
70416 tail = PyUnicode_InternFromString(", ");
70417 joined = PyUnicode_Concat(str, tail);
70418 Py_DecRef(str);
70419 Py_DecRef(tail);
70420 str = joined;
70421 }
70422 }
70423 tail = PyUnicode_InternFromString(")");
70424 joined = PyUnicode_Concat(str, tail);
70425 Py_DecRef(str);
70426 Py_DecRef(tail);
70427 str = joined;
70428#else
70429 PyObject *str = PyString_FromString("(");
70431 for (var = v->vars; var; var=var->next) {
70432 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
70433 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
70434 }
70435 PyString_ConcatAndDel(&str,PyString_FromString(")"));
70436#endif
70437 return str;
70438 }
70439
70440 SWIGINTERN void
70442 swig_globalvar *var = v->vars;
70443 while (var) {
70444 swig_globalvar *n = var->next;
70445 free(var->name);
70446 free(var);
70447 var = n;
70448 }
70449 }
70450
70451 SWIGINTERN PyObject *
70453 PyObject *res = NULL;
70454 swig_globalvar *var = v->vars;
70455 while (var) {
70456 if (strcmp(var->name,n) == 0) {
70457 res = (*var->get_attr)();
70458 break;
70459 }
70460 var = var->next;
70461 }
70462 if (res == NULL && !PyErr_Occurred()) {
70463 PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
70464 }
70465 return res;
70466 }
70467
70468 SWIGINTERN int
70469 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
70470 int res = 1;
70471 swig_globalvar *var = v->vars;
70472 while (var) {
70473 if (strcmp(var->name,n) == 0) {
70474 res = (*var->set_attr)(p);
70475 break;
70476 }
70477 var = var->next;
70478 }
70479 if (res == 1 && !PyErr_Occurred()) {
70480 PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
70481 }
70482 return res;
70483 }
70484
70485 SWIGINTERN PyTypeObject*
70487 static char varlink__doc__[] = "Swig var link object";
70488 static PyTypeObject varlink_type;
70489 static int type_init = 0;
70490 if (!type_init) {
70491 const PyTypeObject tmp = {
70492#if PY_VERSION_HEX >= 0x03000000
70493 PyVarObject_HEAD_INIT(NULL, 0)
70494#else
70495 PyObject_HEAD_INIT(NULL)
70496 0, /* ob_size */
70497#endif
70498 "swigvarlink", /* tp_name */
70499 sizeof(swig_varlinkobject), /* tp_basicsize */
70500 0, /* tp_itemsize */
70501 (destructor) swig_varlink_dealloc, /* tp_dealloc */
70502 0, /* tp_print */
70503 (getattrfunc) swig_varlink_getattr, /* tp_getattr */
70504 (setattrfunc) swig_varlink_setattr, /* tp_setattr */
70505 0, /* tp_compare */
70506 (reprfunc) swig_varlink_repr, /* tp_repr */
70507 0, /* tp_as_number */
70508 0, /* tp_as_sequence */
70509 0, /* tp_as_mapping */
70510 0, /* tp_hash */
70511 0, /* tp_call */
70512 (reprfunc) swig_varlink_str, /* tp_str */
70513 0, /* tp_getattro */
70514 0, /* tp_setattro */
70515 0, /* tp_as_buffer */
70516 0, /* tp_flags */
70517 varlink__doc__, /* tp_doc */
70518 0, /* tp_traverse */
70519 0, /* tp_clear */
70520 0, /* tp_richcompare */
70521 0, /* tp_weaklistoffset */
70522 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
70523 0, /* tp_del */
70524 0, /* tp_version_tag */
70525#if PY_VERSION_HEX >= 0x03040000
70526 0, /* tp_finalize */
70527#endif
70528#if PY_VERSION_HEX >= 0x03080000
70529 0, /* tp_vectorcall */
70530#endif
70531#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
70532 0, /* tp_print */
70533#endif
70534#ifdef COUNT_ALLOCS
70535 0, /* tp_allocs */
70536 0, /* tp_frees */
70537 0, /* tp_maxalloc */
70538 0, /* tp_prev */
70539 0 /* tp_next */
70540#endif
70541 };
70542 varlink_type = tmp;
70543 type_init = 1;
70544 if (PyType_Ready(&varlink_type) < 0)
70545 return NULL;
70546 }
70547 return &varlink_type;
70548 }
70549
70550 /* Create a variable linking object for use later */
70551 SWIGINTERN PyObject *
70553 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
70554 if (result) {
70555 result->vars = 0;
70556 }
70557 return ((PyObject*) result);
70558 }
70559
70560 SWIGINTERN void
70561 SWIG_Python_addvarlink(PyObject *p, const char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
70564 if (gv) {
70565 size_t size = strlen(name)+1;
70566 gv->name = (char *)malloc(size);
70567 if (gv->name) {
70568 memcpy(gv->name, name, size);
70569 gv->get_attr = get_attr;
70570 gv->set_attr = set_attr;
70571 gv->next = v->vars;
70572 }
70573 }
70574 v->vars = gv;
70575 }
70576
70577 SWIGINTERN PyObject *
70579 static PyObject *globals = 0;
70580 if (!globals) {
70581 globals = SWIG_newvarlink();
70582 }
70583 return globals;
70584 }
70585
70586 /* -----------------------------------------------------------------------------
70587 * constants/methods manipulation
70588 * ----------------------------------------------------------------------------- */
70589
70590 /* Install Constants */
70591 SWIGINTERN void
70593 PyObject *obj = 0;
70594 size_t i;
70595 for (i = 0; constants[i].type; ++i) {
70596 switch(constants[i].type) {
70597 case SWIG_PY_POINTER:
70598 obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
70599 break;
70600 case SWIG_PY_BINARY:
70601 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
70602 break;
70603 default:
70604 obj = 0;
70605 break;
70606 }
70607 if (obj) {
70608 PyDict_SetItemString(d, constants[i].name, obj);
70609 Py_DECREF(obj);
70610 }
70611 }
70612 }
70613
70614 /* -----------------------------------------------------------------------------*/
70615 /* Fix SwigMethods to carry the callback ptrs when needed */
70616 /* -----------------------------------------------------------------------------*/
70617
70618 SWIGINTERN void
70619 SWIG_Python_FixMethods(PyMethodDef *methods,
70620 swig_const_info *const_table,
70621 swig_type_info **types,
70622 swig_type_info **types_initial) {
70623 size_t i;
70624 for (i = 0; methods[i].ml_name; ++i) {
70625 const char *c = methods[i].ml_doc;
70626 if (!c) continue;
70627 c = strstr(c, "swig_ptr: ");
70628 if (c) {
70629 int j;
70630 swig_const_info *ci = 0;
70631 const char *name = c + 10;
70632 for (j = 0; const_table[j].type; ++j) {
70633 if (strncmp(const_table[j].name, name,
70634 strlen(const_table[j].name)) == 0) {
70635 ci = &(const_table[j]);
70636 break;
70637 }
70638 }
70639 if (ci) {
70640 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
70641 if (ptr) {
70642 size_t shift = (ci->ptype) - types;
70643 swig_type_info *ty = types_initial[shift];
70644 size_t ldoc = (c - methods[i].ml_doc);
70645 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
70646 char *ndoc = (char*)malloc(ldoc + lptr + 10);
70647 if (ndoc) {
70648 char *buff = ndoc;
70649 memcpy(buff, methods[i].ml_doc, ldoc);
70650 buff += ldoc;
70651 memcpy(buff, "swig_ptr: ", 10);
70652 buff += 10;
70653 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
70654 methods[i].ml_doc = ndoc;
70655 }
70656 }
70657 }
70658 }
70659 }
70660 }
70661
70662 /* -----------------------------------------------------------------------------
70663 * Method creation and docstring support functions
70664 * ----------------------------------------------------------------------------- */
70665
70666 /* -----------------------------------------------------------------------------
70667 * Function to find the method definition with the correct docstring for the
70668 * proxy module as opposed to the low-level API
70669 * ----------------------------------------------------------------------------- */
70670
70671 SWIGINTERN PyMethodDef *SWIG_PythonGetProxyDoc(const char *name) {
70672 /* Find the function in the modified method table */
70673 size_t offset = 0;
70674 int found = 0;
70675 while (SwigMethods_proxydocs[offset].ml_meth != NULL) {
70676 if (strcmp(SwigMethods_proxydocs[offset].ml_name, name) == 0) {
70677 found = 1;
70678 break;
70679 }
70680 offset++;
70681 }
70682 /* Use the copy with the modified docstring if available */
70683 return found ? &SwigMethods_proxydocs[offset] : NULL;
70684 }
70685
70686 /* -----------------------------------------------------------------------------
70687 * Wrapper of PyInstanceMethod_New() used in Python 3
70688 * It is exported to the generated module, used for -fastproxy
70689 * ----------------------------------------------------------------------------- */
70690
70691 SWIGINTERN PyObject *SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) {
70692 if (PyCFunction_Check(func)) {
70693 PyCFunctionObject *funcobj = (PyCFunctionObject *)func;
70694 PyMethodDef *ml = SWIG_PythonGetProxyDoc(funcobj->m_ml->ml_name);
70695 if (ml)
70696 func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module);
70697 }
70698#if PY_VERSION_HEX >= 0x03000000
70699 return PyInstanceMethod_New(func);
70700#else
70701 return PyMethod_New(func, NULL, NULL);
70702#endif
70703 }
70704
70705 /* -----------------------------------------------------------------------------
70706 * Wrapper of PyStaticMethod_New()
70707 * It is exported to the generated module, used for -fastproxy
70708 * ----------------------------------------------------------------------------- */
70709
70710 SWIGINTERN PyObject *SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) {
70711 if (PyCFunction_Check(func)) {
70712 PyCFunctionObject *funcobj = (PyCFunctionObject *)func;
70713 PyMethodDef *ml = SWIG_PythonGetProxyDoc(funcobj->m_ml->ml_name);
70714 if (ml)
70715 func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module);
70716 }
70717 return PyStaticMethod_New(func);
70718 }
70719
70720#ifdef __cplusplus
70721}
70722#endif
70723
70724/* -----------------------------------------------------------------------------*
70725 * Partial Init method
70726 * -----------------------------------------------------------------------------*/
70727
70728#ifdef __cplusplus
70729extern "C"
70730#endif
70731
70733#if PY_VERSION_HEX >= 0x03000000
70734PyObject*
70735#else
70736void
70737#endif
70738SWIG_init(void) {
70739 PyObject *m, *d, *md, *globals;
70740
70741#if PY_VERSION_HEX >= 0x03000000
70742 static struct PyModuleDef SWIG_module = {
70743 PyModuleDef_HEAD_INIT,
70744 SWIG_name,
70745 NULL,
70746 -1,
70748 NULL,
70749 NULL,
70750 NULL,
70751 NULL
70752 };
70753#endif
70754
70755#if defined(SWIGPYTHON_BUILTIN)
70756 static SwigPyClientData SwigPyObject_clientdata = {
70757 0, 0, 0, 0, 0, 0, 0
70758 };
70759 static PyGetSetDef this_getset_def = {
70760 (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
70761 };
70762 static SwigPyGetSet thisown_getset_closure = {
70765 };
70766 static PyGetSetDef thisown_getset_def = {
70767 (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
70768 };
70769 PyTypeObject *builtin_pytype;
70770 int builtin_base_count;
70771 swig_type_info *builtin_basetype;
70772 PyObject *tuple;
70773 PyGetSetDescrObject *static_getset;
70774 PyTypeObject *metatype;
70775 PyTypeObject *swigpyobject;
70776 SwigPyClientData *cd;
70777 PyObject *public_interface, *public_symbol;
70778 PyObject *this_descr;
70779 PyObject *thisown_descr;
70780 PyObject *self = 0;
70781 int i;
70782
70783 (void)builtin_pytype;
70784 (void)builtin_base_count;
70785 (void)builtin_basetype;
70786 (void)tuple;
70787 (void)static_getset;
70788 (void)self;
70789
70790 /* Metaclass is used to implement static member variables */
70791 metatype = SwigPyObjectType();
70792 assert(metatype);
70793#endif
70794
70795 (void)globals;
70796
70797 /* Create singletons now to avoid potential deadlocks with multi-threaded usage after module initialization */
70798 SWIG_This();
70801#ifndef SWIGPYTHON_BUILTIN
70803#endif
70804
70805 /* Fix SwigMethods to carry the callback ptrs when needed */
70807
70808#if PY_VERSION_HEX >= 0x03000000
70809 m = PyModule_Create(&SWIG_module);
70810#else
70811 m = Py_InitModule(SWIG_name, SwigMethods);
70812#endif
70813
70814 md = d = PyModule_GetDict(m);
70815 (void)md;
70816
70818
70819#ifdef SWIGPYTHON_BUILTIN
70820 swigpyobject = SwigPyObject_TypeOnce();
70821
70822 SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
70823 assert(SwigPyObject_stype);
70824 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
70825 if (!cd) {
70826 SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
70827 SwigPyObject_clientdata.pytype = swigpyobject;
70828 } else if (swigpyobject->tp_basicsize != cd->pytype->tp_basicsize) {
70829 PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
70830# if PY_VERSION_HEX >= 0x03000000
70831 return NULL;
70832# else
70833 return;
70834# endif
70835 }
70836
70837 /* All objects have a 'this' attribute */
70838 this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
70839 (void)this_descr;
70840
70841 /* All objects have a 'thisown' attribute */
70842 thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
70843 (void)thisown_descr;
70844
70845 public_interface = PyList_New(0);
70846 public_symbol = 0;
70847 (void)public_symbol;
70848
70849 PyDict_SetItemString(md, "__all__", public_interface);
70850 Py_DECREF(public_interface);
70851 for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
70852 SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
70853 for (i = 0; swig_const_table[i].name != 0; ++i)
70854 SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
70855#endif
70856
70858
70859 SWIG_Python_SetConstant(d, "DefaultPhaseParameters_CHOOSE_MAX_SUM_IMPACT",SWIG_From_int(static_cast< int >(operations_research::DefaultPhaseParameters::CHOOSE_MAX_SUM_IMPACT)));
70860 SWIG_Python_SetConstant(d, "DefaultPhaseParameters_CHOOSE_MAX_AVERAGE_IMPACT",SWIG_From_int(static_cast< int >(operations_research::DefaultPhaseParameters::CHOOSE_MAX_AVERAGE_IMPACT)));
70861 SWIG_Python_SetConstant(d, "DefaultPhaseParameters_CHOOSE_MAX_VALUE_IMPACT",SWIG_From_int(static_cast< int >(operations_research::DefaultPhaseParameters::CHOOSE_MAX_VALUE_IMPACT)));
70862 SWIG_Python_SetConstant(d, "DefaultPhaseParameters_SELECT_MIN_IMPACT",SWIG_From_int(static_cast< int >(operations_research::DefaultPhaseParameters::SELECT_MIN_IMPACT)));
70863 SWIG_Python_SetConstant(d, "DefaultPhaseParameters_SELECT_MAX_IMPACT",SWIG_From_int(static_cast< int >(operations_research::DefaultPhaseParameters::SELECT_MAX_IMPACT)));
70864 SWIG_Python_SetConstant(d, "DefaultPhaseParameters_NONE",SWIG_From_int(static_cast< int >(operations_research::DefaultPhaseParameters::NONE)));
70865 SWIG_Python_SetConstant(d, "DefaultPhaseParameters_NORMAL",SWIG_From_int(static_cast< int >(operations_research::DefaultPhaseParameters::NORMAL)));
70866 SWIG_Python_SetConstant(d, "DefaultPhaseParameters_VERBOSE",SWIG_From_int(static_cast< int >(operations_research::DefaultPhaseParameters::VERBOSE)));
70867 SWIG_Python_SetConstant(d, "Solver_INT_VAR_DEFAULT",SWIG_From_int(static_cast< int >(operations_research::Solver::INT_VAR_DEFAULT)));
70868 SWIG_Python_SetConstant(d, "Solver_INT_VAR_SIMPLE",SWIG_From_int(static_cast< int >(operations_research::Solver::INT_VAR_SIMPLE)));
70869 SWIG_Python_SetConstant(d, "Solver_CHOOSE_FIRST_UNBOUND",SWIG_From_int(static_cast< int >(operations_research::Solver::CHOOSE_FIRST_UNBOUND)));
70870 SWIG_Python_SetConstant(d, "Solver_CHOOSE_RANDOM",SWIG_From_int(static_cast< int >(operations_research::Solver::CHOOSE_RANDOM)));
70871 SWIG_Python_SetConstant(d, "Solver_CHOOSE_MIN_SIZE_LOWEST_MIN",SWIG_From_int(static_cast< int >(operations_research::Solver::CHOOSE_MIN_SIZE_LOWEST_MIN)));
70872 SWIG_Python_SetConstant(d, "Solver_CHOOSE_MIN_SIZE_HIGHEST_MIN",SWIG_From_int(static_cast< int >(operations_research::Solver::CHOOSE_MIN_SIZE_HIGHEST_MIN)));
70873 SWIG_Python_SetConstant(d, "Solver_CHOOSE_MIN_SIZE_LOWEST_MAX",SWIG_From_int(static_cast< int >(operations_research::Solver::CHOOSE_MIN_SIZE_LOWEST_MAX)));
70874 SWIG_Python_SetConstant(d, "Solver_CHOOSE_MIN_SIZE_HIGHEST_MAX",SWIG_From_int(static_cast< int >(operations_research::Solver::CHOOSE_MIN_SIZE_HIGHEST_MAX)));
70875 SWIG_Python_SetConstant(d, "Solver_CHOOSE_LOWEST_MIN",SWIG_From_int(static_cast< int >(operations_research::Solver::CHOOSE_LOWEST_MIN)));
70876 SWIG_Python_SetConstant(d, "Solver_CHOOSE_HIGHEST_MAX",SWIG_From_int(static_cast< int >(operations_research::Solver::CHOOSE_HIGHEST_MAX)));
70877 SWIG_Python_SetConstant(d, "Solver_CHOOSE_MIN_SIZE",SWIG_From_int(static_cast< int >(operations_research::Solver::CHOOSE_MIN_SIZE)));
70878 SWIG_Python_SetConstant(d, "Solver_CHOOSE_MAX_SIZE",SWIG_From_int(static_cast< int >(operations_research::Solver::CHOOSE_MAX_SIZE)));
70879 SWIG_Python_SetConstant(d, "Solver_CHOOSE_MAX_REGRET_ON_MIN",SWIG_From_int(static_cast< int >(operations_research::Solver::CHOOSE_MAX_REGRET_ON_MIN)));
70880 SWIG_Python_SetConstant(d, "Solver_CHOOSE_PATH",SWIG_From_int(static_cast< int >(operations_research::Solver::CHOOSE_PATH)));
70881 SWIG_Python_SetConstant(d, "Solver_INT_VALUE_DEFAULT",SWIG_From_int(static_cast< int >(operations_research::Solver::INT_VALUE_DEFAULT)));
70882 SWIG_Python_SetConstant(d, "Solver_INT_VALUE_SIMPLE",SWIG_From_int(static_cast< int >(operations_research::Solver::INT_VALUE_SIMPLE)));
70883 SWIG_Python_SetConstant(d, "Solver_ASSIGN_MIN_VALUE",SWIG_From_int(static_cast< int >(operations_research::Solver::ASSIGN_MIN_VALUE)));
70884 SWIG_Python_SetConstant(d, "Solver_ASSIGN_MAX_VALUE",SWIG_From_int(static_cast< int >(operations_research::Solver::ASSIGN_MAX_VALUE)));
70885 SWIG_Python_SetConstant(d, "Solver_ASSIGN_RANDOM_VALUE",SWIG_From_int(static_cast< int >(operations_research::Solver::ASSIGN_RANDOM_VALUE)));
70886 SWIG_Python_SetConstant(d, "Solver_ASSIGN_CENTER_VALUE",SWIG_From_int(static_cast< int >(operations_research::Solver::ASSIGN_CENTER_VALUE)));
70887 SWIG_Python_SetConstant(d, "Solver_SPLIT_LOWER_HALF",SWIG_From_int(static_cast< int >(operations_research::Solver::SPLIT_LOWER_HALF)));
70888 SWIG_Python_SetConstant(d, "Solver_SPLIT_UPPER_HALF",SWIG_From_int(static_cast< int >(operations_research::Solver::SPLIT_UPPER_HALF)));
70889 SWIG_Python_SetConstant(d, "Solver_SEQUENCE_DEFAULT",SWIG_From_int(static_cast< int >(operations_research::Solver::SEQUENCE_DEFAULT)));
70890 SWIG_Python_SetConstant(d, "Solver_SEQUENCE_SIMPLE",SWIG_From_int(static_cast< int >(operations_research::Solver::SEQUENCE_SIMPLE)));
70891 SWIG_Python_SetConstant(d, "Solver_CHOOSE_MIN_SLACK_RANK_FORWARD",SWIG_From_int(static_cast< int >(operations_research::Solver::CHOOSE_MIN_SLACK_RANK_FORWARD)));
70892 SWIG_Python_SetConstant(d, "Solver_CHOOSE_RANDOM_RANK_FORWARD",SWIG_From_int(static_cast< int >(operations_research::Solver::CHOOSE_RANDOM_RANK_FORWARD)));
70893 SWIG_Python_SetConstant(d, "Solver_INTERVAL_DEFAULT",SWIG_From_int(static_cast< int >(operations_research::Solver::INTERVAL_DEFAULT)));
70894 SWIG_Python_SetConstant(d, "Solver_INTERVAL_SIMPLE",SWIG_From_int(static_cast< int >(operations_research::Solver::INTERVAL_SIMPLE)));
70895 SWIG_Python_SetConstant(d, "Solver_INTERVAL_SET_TIMES_FORWARD",SWIG_From_int(static_cast< int >(operations_research::Solver::INTERVAL_SET_TIMES_FORWARD)));
70896 SWIG_Python_SetConstant(d, "Solver_INTERVAL_SET_TIMES_BACKWARD",SWIG_From_int(static_cast< int >(operations_research::Solver::INTERVAL_SET_TIMES_BACKWARD)));
70897 SWIG_Python_SetConstant(d, "Solver_TWOOPT",SWIG_From_int(static_cast< int >(operations_research::Solver::TWOOPT)));
70898 SWIG_Python_SetConstant(d, "Solver_OROPT",SWIG_From_int(static_cast< int >(operations_research::Solver::OROPT)));
70899 SWIG_Python_SetConstant(d, "Solver_RELOCATE",SWIG_From_int(static_cast< int >(operations_research::Solver::RELOCATE)));
70900 SWIG_Python_SetConstant(d, "Solver_EXCHANGE",SWIG_From_int(static_cast< int >(operations_research::Solver::EXCHANGE)));
70901 SWIG_Python_SetConstant(d, "Solver_CROSS",SWIG_From_int(static_cast< int >(operations_research::Solver::CROSS)));
70902 SWIG_Python_SetConstant(d, "Solver_MAKEACTIVE",SWIG_From_int(static_cast< int >(operations_research::Solver::MAKEACTIVE)));
70903 SWIG_Python_SetConstant(d, "Solver_MAKEINACTIVE",SWIG_From_int(static_cast< int >(operations_research::Solver::MAKEINACTIVE)));
70904 SWIG_Python_SetConstant(d, "Solver_MAKECHAININACTIVE",SWIG_From_int(static_cast< int >(operations_research::Solver::MAKECHAININACTIVE)));
70905 SWIG_Python_SetConstant(d, "Solver_SWAPACTIVE",SWIG_From_int(static_cast< int >(operations_research::Solver::SWAPACTIVE)));
70906 SWIG_Python_SetConstant(d, "Solver_EXTENDEDSWAPACTIVE",SWIG_From_int(static_cast< int >(operations_research::Solver::EXTENDEDSWAPACTIVE)));
70907 SWIG_Python_SetConstant(d, "Solver_PATHLNS",SWIG_From_int(static_cast< int >(operations_research::Solver::PATHLNS)));
70908 SWIG_Python_SetConstant(d, "Solver_FULLPATHLNS",SWIG_From_int(static_cast< int >(operations_research::Solver::FULLPATHLNS)));
70909 SWIG_Python_SetConstant(d, "Solver_UNACTIVELNS",SWIG_From_int(static_cast< int >(operations_research::Solver::UNACTIVELNS)));
70910 SWIG_Python_SetConstant(d, "Solver_INCREMENT",SWIG_From_int(static_cast< int >(operations_research::Solver::INCREMENT)));
70911 SWIG_Python_SetConstant(d, "Solver_DECREMENT",SWIG_From_int(static_cast< int >(operations_research::Solver::DECREMENT)));
70912 SWIG_Python_SetConstant(d, "Solver_SIMPLELNS",SWIG_From_int(static_cast< int >(operations_research::Solver::SIMPLELNS)));
70913 SWIG_Python_SetConstant(d, "Solver_GE",SWIG_From_int(static_cast< int >(operations_research::Solver::GE)));
70914 SWIG_Python_SetConstant(d, "Solver_LE",SWIG_From_int(static_cast< int >(operations_research::Solver::LE)));
70915 SWIG_Python_SetConstant(d, "Solver_EQ",SWIG_From_int(static_cast< int >(operations_research::Solver::EQ)));
70916 SWIG_Python_SetConstant(d, "Solver_DELAYED_PRIORITY",SWIG_From_int(static_cast< int >(operations_research::Solver::DELAYED_PRIORITY)));
70917 SWIG_Python_SetConstant(d, "Solver_VAR_PRIORITY",SWIG_From_int(static_cast< int >(operations_research::Solver::VAR_PRIORITY)));
70918 SWIG_Python_SetConstant(d, "Solver_NORMAL_PRIORITY",SWIG_From_int(static_cast< int >(operations_research::Solver::NORMAL_PRIORITY)));
70919 SWIG_Python_SetConstant(d, "BOOL_UNSPECIFIED",SWIG_From_int(static_cast< int >(operations_research::BOOL_UNSPECIFIED)));
70920 SWIG_Python_SetConstant(d, "BOOL_FALSE",SWIG_From_int(static_cast< int >(operations_research::BOOL_FALSE)));
70921 SWIG_Python_SetConstant(d, "BOOL_TRUE",SWIG_From_int(static_cast< int >(operations_research::BOOL_TRUE)));
70922 SWIG_Python_SetConstant(d, "RoutingModel_ROUTING_NOT_SOLVED",SWIG_From_int(static_cast< int >(operations_research::RoutingModel::ROUTING_NOT_SOLVED)));
70923 SWIG_Python_SetConstant(d, "RoutingModel_ROUTING_SUCCESS",SWIG_From_int(static_cast< int >(operations_research::RoutingModel::ROUTING_SUCCESS)));
70924 SWIG_Python_SetConstant(d, "RoutingModel_ROUTING_FAIL",SWIG_From_int(static_cast< int >(operations_research::RoutingModel::ROUTING_FAIL)));
70925 SWIG_Python_SetConstant(d, "RoutingModel_ROUTING_FAIL_TIMEOUT",SWIG_From_int(static_cast< int >(operations_research::RoutingModel::ROUTING_FAIL_TIMEOUT)));
70926 SWIG_Python_SetConstant(d, "RoutingModel_ROUTING_INVALID",SWIG_From_int(static_cast< int >(operations_research::RoutingModel::ROUTING_INVALID)));
70927 SWIG_Python_SetConstant(d, "RoutingModel_PICKUP_AND_DELIVERY_NO_ORDER",SWIG_From_int(static_cast< int >(operations_research::RoutingModel::PICKUP_AND_DELIVERY_NO_ORDER)));
70928 SWIG_Python_SetConstant(d, "RoutingModel_PICKUP_AND_DELIVERY_LIFO",SWIG_From_int(static_cast< int >(operations_research::RoutingModel::PICKUP_AND_DELIVERY_LIFO)));
70929 SWIG_Python_SetConstant(d, "RoutingModel_PICKUP_AND_DELIVERY_FIFO",SWIG_From_int(static_cast< int >(operations_research::RoutingModel::PICKUP_AND_DELIVERY_FIFO)));
70930 globals = SWIG_globals();
70931 if (!globals) {
70932 PyErr_SetString(PyExc_TypeError, "Failure to create SWIG globals.");
70933#if PY_VERSION_HEX >= 0x03000000
70934 return NULL;
70935#else
70936 return;
70937#endif
70938 }
70939 PyDict_SetItemString(md, "cvar", globals);
70940 Py_DECREF(globals);
70944 SWIG_Python_SetConstant(d, "RoutingModel_TYPE_ADDED_TO_VEHICLE",SWIG_From_int(static_cast< int >(operations_research::RoutingModel::TYPE_ADDED_TO_VEHICLE)));
70945 SWIG_Python_SetConstant(d, "RoutingModel_ADDED_TYPE_REMOVED_FROM_VEHICLE",SWIG_From_int(static_cast< int >(operations_research::RoutingModel::ADDED_TYPE_REMOVED_FROM_VEHICLE)));
70946 SWIG_Python_SetConstant(d, "RoutingModel_TYPE_ON_VEHICLE_UP_TO_VISIT",SWIG_From_int(static_cast< int >(operations_research::RoutingModel::TYPE_ON_VEHICLE_UP_TO_VISIT)));
70947 SWIG_Python_SetConstant(d, "RoutingModel_TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED",SWIG_From_int(static_cast< int >(operations_research::RoutingModel::TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED)));
70951#if PY_VERSION_HEX >= 0x03000000
70952 return m;
70953#else
70954 return;
70955#endif
70956}
70957
int64_t max
Definition: alldiff_cst.cc:140
int64_t min
Definition: alldiff_cst.cc:139
SharedPyPtr(const SharedPyPtr &other)
static void raise(JNIEnv *jenv, jthrowable throwable)
DirectorException(PyObject *error, const char *hdr="", const char *msg="")
PyObject * swig_get_self() const
int swig_release_ownership(void *vptr) const
static PyObject * swig_pyobj_disown(PyObject *pyobj, PyObject *SWIGUNUSEDPARM(args))
jobject swig_get_self(JNIEnv *jenv) const
virtual void swig_set_inner(const char *, bool) const
void swig_acquire_ownership_array(Type *vptr) const
void swig_acquire_ownership_obj(void *vptr, int own) const
virtual bool swig_get_inner(const char *) const
void swig_acquire_ownership(Type *vptr) const
static void raise(PyObject *error, const char *msg)
DirectorTypeMismatchException(PyObject *error, const char *msg="")
Guard(PyThread_type_lock &mutex)
virtual bool MakeNextNeighbor(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
Redefines MakeNextNeighbor to export a simpler interface.
SwigDirector_BaseLns(std::vector< operations_research::IntVar * > const &vars)
virtual std::string DebugString() const
virtual std::string DebugString() const
void swig_set_inner(const char *swig_protected_method_name, bool swig_val) const
virtual bool MakeNextNeighbor(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
Redefines MakeNextNeighbor to export a simpler interface.
SwigDirector_ChangeValue(std::vector< operations_research::IntVar * > const &vars)
virtual std::string DebugString() const
virtual int64_t ModifyValue(int64_t index, int64_t value)
virtual bool SkipUnchanged(int index) const
virtual bool MakeOneNeighbor()
This method should not be overridden. Override ModifyValue() instead.
virtual void OnStart()
Called by Start() after synchronizing the operator with the current assignment.
virtual operations_research::IntVar * Var()
Creates a Boolean variable representing the status of the constraint (false = constraint is violated,...
virtual std::string name() const
Object naming.
virtual void Post()
This method is called when the constraint is processed by the solver.
SwigDirector_Constraint(operations_research::Solver *const solver)
virtual std::string DebugString() const
virtual void Accept(operations_research::ModelVisitor *const visitor) const
Accepts the given visitor.
virtual void InitialPropagate()
This method performs the initial propagation of the constraint.
virtual operations_research::Decision * Next(operations_research::Solver *const s)
This is the main method of the decision builder class.
virtual std::string DebugString() const
virtual void Apply(operations_research::Solver *const s)
Apply will be called first when the decision is executed.
virtual void Refute(operations_research::Solver *const s)
Refute will be called after a backtrack.
virtual std::string DebugString() const
virtual void Run(operations_research::Solver *const s)
This is the main callback of the demon.
virtual operations_research::Solver::DemonPriority priority() const
This method returns the priority of the demon.
virtual int64_t GetAcceptedObjectiveValue() const
Objective value from the last time Accept() was called and returned true.
virtual int64_t GetSynchronizedObjectiveValue() const
Objective value from last time Synchronize() was called.
virtual bool Accept(operations_research::Assignment const *delta, operations_research::Assignment const *deltadelta, int64_t objective_min, int64_t objective_max)
Accepts a "delta" given the assignment with which the filter has been synchronized; the delta holds t...
virtual void Reset()
Sets the filter to empty solution.
virtual void Relax(operations_research::Assignment const *delta, operations_research::Assignment const *deltadelta)
Lets the filter know what delta and deltadelta will be passed in the next Accept().
SwigDirector_IntVarLocalSearchFilter(std::vector< operations_research::IntVar * > const &vars)
virtual void Commit(operations_research::Assignment const *delta, operations_research::Assignment const *deltadelta)
Dual of Relax(), lets the filter know that the delta was accepted.
virtual void OnSynchronize(operations_research::Assignment const *delta)
virtual void Revert()
Cancels the changes made by the last Relax()/Accept() calls.
virtual void Synchronize(operations_research::Assignment const *assignment, operations_research::Assignment const *delta)
This method should not be overridden.
void swig_set_inner(const char *swig_protected_method_name, bool swig_val) const
virtual bool MakeNextNeighbor(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
Redefines MakeNextNeighbor to export a simpler interface.
virtual bool MakeOneNeighbor()
Creates a new neighbor.
virtual void OnStart()
Called by Start() after synchronizing the operator with the current assignment.
virtual bool MakeNextNeighbor(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
virtual void Start(operations_research::Assignment const *assignment)
virtual std::string name() const
Object naming.
SwigDirector_PropagationBaseObject(PyObject *self, operations_research::Solver *const s)
virtual int ProgressPercent()
Returns a percentage representing the propress of the search before reaching limits.
virtual void RestartSearch()
Restart the search.
virtual void ExitSearch()
End of the search.
virtual bool LocalOptimum()
When a local optimum is reached.
virtual void NoMoreSolutions()
When the search tree is finished.
virtual void AfterDecision(operations_research::Decision *const d, bool apply)
Just after refuting or applying the decision, apply is true after Apply.
virtual void BeginFail()
Just when the failure occurs.
virtual void BeginInitialPropagation()
Before the initial propagation.
virtual void EndNextDecision(operations_research::DecisionBuilder *const b, operations_research::Decision *const d)
After calling DecisionBuilder::Next, along with the returned decision.
virtual void PeriodicCheck()
Periodic call to check limits in long running methods.
virtual void EnterSearch()
Beginning of the search.
virtual std::string DebugString() const
virtual void ApplyDecision(operations_research::Decision *const d)
Before applying the decision.
virtual void Accept(operations_research::ModelVisitor *const visitor) const
Accepts the given model visitor.
virtual void EndFail()
After completing the backtrack.
virtual void EndInitialPropagation()
After the initial propagation.
virtual void AcceptUncheckedNeighbor()
After accepting an unchecked neighbor during local search.
virtual bool AtSolution()
This method is called when a valid solution is found.
virtual bool IsUncheckedSolutionLimitReached()
Returns true if the limit of solutions has been reached including unchecked solutions.
virtual bool AcceptDelta(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
virtual void RefuteDecision(operations_research::Decision *const d)
Before refuting the decision.
SwigDirector_SearchMonitor(operations_research::Solver *const s)
virtual void AcceptNeighbor()
After accepting a neighbor during local search.
virtual void Install()
Registers itself on the solver such that it gets notified of the search and propagation events.
virtual bool AcceptSolution()
This method is called when a solution is found.
virtual void BeginNextDecision(operations_research::DecisionBuilder *const b)
Before calling DecisionBuilder::Next.
An Assignment is a variable -> domains mapping, used to report solutions to the user.
This is the base class for building an Lns operator.
bool HasFragments() const override
A BaseObject is the root of all reversibly allocated objects.
std::string DebugString() const override
Definition: expressions.cc:176
Cast constraints are special channeling constraints designed to keep a variable in sync with an expre...
Defines operators which change the value of variables; each neighbor corresponds to one modified vari...
A constraint is the main modeling object.
virtual void Accept(ModelVisitor *const visitor) const
Accepts the given visitor.
virtual IntVar * Var()
Creates a Boolean variable representing the status of the constraint (false = constraint is violated,...
A DecisionBuilder is responsible for creating the search tree.
A Decision represents a choice point in the search tree.
A DecisionVisitor is used to inspect a decision.
A Demon is the base element of a propagation queue.
virtual Solver::DemonPriority priority() const
This method returns the priority of the demon.
GlobalVehicleBreaksConstraint ensures breaks constraints are enforced on all vehicles in the dimensio...
Definition: routing.h:2188
std::string DebugString() const override
Definition: routing.h:2191
The class IntExpr is the base of all integer expressions in constraint programming.
virtual IntVar * Var()=0
Creates a variable from the expression.
IntVar * VarWithName(const std::string &name)
Creates a variable from the expression and set the name of the resulting var.
Definition: expressions.cc:51
The class IntVar is a subset of IntExpr.
IntVar * Var() override
Creates a variable from the expression.
The class Iterator has two direct subclasses.
std::string DebugString() const override
Pretty Print.
virtual void OnSynchronize(const Assignment *delta)
void Synchronize(const Assignment *assignment, const Assignment *delta) override
This method should not be overridden.
Specialization of LocalSearchOperator built from an array of IntVars which specifies the scope of the...
Interval variables are often used in scheduling.
Local Search Filters are used for fast neighbor pruning.
virtual int64_t GetAcceptedObjectiveValue() const
Objective value from the last time Accept() was called and returned true.
virtual void Reset()
Sets the filter to empty solution.
virtual void Relax(const Assignment *delta, const Assignment *deltadelta)
Lets the filter know what delta and deltadelta will be passed in the next Accept().
virtual int64_t GetSynchronizedObjectiveValue() const
Objective value from last time Synchronize() was called.
virtual void Revert()
Cancels the changes made by the last Relax()/Accept() calls.
virtual void Commit(const Assignment *delta, const Assignment *deltadelta)
Dual of Relax(), lets the filter know that the delta was accepted.
Filter manager: when a move is made, filters are executed to decide whether the solution is feasible ...
The base class for all local search operators.
Subclass of Rev<T> which adds numerical operations.
This class encapsulates an objective.
bool AcceptSolution() override
This method is called when a solution is found.
Definition: search.cc:2777
bool AtSolution() override
This method is called when a valid solution is found.
Definition: search.cc:2789
std::string DebugString() const override
Definition: search.cc:2842
std::string DebugString() const override
Definition: pack.cc:380
Base class of the local search operators dedicated to path modifications (a path is a set of nodes li...
Usual limit based on wall_time, number of explored branches and number of failures in the search tree...
This class adds reversibility to a POD type.
Dimensions represent quantities accumulated at nodes along the routes.
Definition: routing.h:2494
std::function< int64_t(int, int)> PickupToDeliveryLimitFunction
Limits, in terms of maximum difference between the cumul variables, between the pickup and delivery a...
Definition: routing.h:2776
Manager for any NodeIndex <-> variable index conversion.
int64_t ComputeLowerBound()
Computes a lower bound to the routing problem solving a linear assignment problem.
Definition: routing.cc:2913
RoutingTransitCallback1 TransitCallback1
Definition: routing.h:238
bool CheckLimit()
Returns true if the search limit has been crossed.
Definition: routing.h:1443
VisitTypePolicy
Set the node visit types and incompatibilities/requirements between the types (see below).
Definition: routing.h:861
@ TYPE_ADDED_TO_VEHICLE
When visited, the number of types 'T' on the vehicle increases by one.
Definition: routing.h:863
@ ADDED_TYPE_REMOVED_FROM_VEHICLE
When visited, one instance of type 'T' previously added to the route (TYPE_ADDED_TO_VEHICLE),...
Definition: routing.h:868
@ TYPE_ON_VEHICLE_UP_TO_VISIT
With the following policy, the visit enforces that type 'T' is considered on the route from its start...
Definition: routing.h:871
@ TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED
The visit doesn't have an impact on the number of types 'T' on the route, as it's (virtually) added a...
Definition: routing.h:876
static const int64_t kNoPenalty
Constant used to express a hard constraint instead of a soft penalty.
Definition: routing.h:451
RoutingTransitCallback2 TransitCallback2
Definition: routing.h:239
std::vector< std::string > GetAllDimensionNames() const
Outputs the names of all dimensions added to the routing engine.
Definition: routing.cc:1189
Status
Status of the search.
Definition: routing.h:212
@ ROUTING_SUCCESS
Problem solved successfully after calling RoutingModel::Solve().
Definition: routing.h:216
@ ROUTING_FAIL
No solution found to the problem after calling RoutingModel::Solve().
Definition: routing.h:218
@ ROUTING_NOT_SOLVED
Problem not solved yet (before calling RoutingModel::Solve()).
Definition: routing.h:214
@ ROUTING_INVALID
Model, model parameters or flags are not valid.
Definition: routing.h:222
@ ROUTING_FAIL_TIMEOUT
Time limit reached before finding a solution with RoutingModel::Solve().
Definition: routing.h:220
std::vector< RoutingDimension * > GetDimensionsWithSoftOrSpanCosts() const
Returns dimensions with soft or vehicle span costs.
Definition: routing.cc:4571
PickupAndDeliveryPolicy
Types of precedence policy applied to pickup and delivery pairs.
Definition: routing.h:226
@ PICKUP_AND_DELIVERY_LIFO
Deliveries must be performed in reverse order of pickups.
Definition: routing.h:230
@ PICKUP_AND_DELIVERY_NO_ORDER
Any precedence is accepted.
Definition: routing.h:228
@ PICKUP_AND_DELIVERY_FIFO
Deliveries must be performed in the same order as pickups.
Definition: routing.h:232
RoutingVehicleClassIndex VehicleClassIndex
Definition: routing.h:237
std::vector< std::pair< int64_t, int64_t > > GetPerfectBinaryDisjunctions() const
Returns the list of all perfect binary disjunctions, as pairs of variable indices: a disjunction is "...
Definition: routing.cc:1738
RoutingCostClassIndex CostClassIndex
Definition: routing.h:234
operations_research::FirstSolutionStrategy::Value GetAutomaticFirstSolutionStrategy() const
Returns the automatic first solution strategy selected.
Definition: routing.h:1470
absl::Duration RemainingTime() const
Returns the time left in the search limit.
Definition: routing.h:1449
static const DimensionIndex kNoDimension
Constant used to express the "no dimension" index, returned when a dimension name does not correspond...
Definition: routing.h:459
static const DisjunctionIndex kNoDisjunction
Constant used to express the "no disjunction" index, returned when a node does not appear in any disj...
Definition: routing.h:455
RoutingDisjunctionIndex DisjunctionIndex
Definition: routing.h:236
static const char kLightElement[]
Constraint types.
Definition: routing.h:2072
Base class of all search limits.
std::string DebugString() const override
virtual bool Check()=0
This method is called to check the status of the limit.
The base class of all search logs that periodically outputs information when the search is running.
A search monitor is a simple set of callbacks to monitor all search events.
virtual void RefuteDecision(Decision *const d)
Before refuting the decision.
virtual void ApplyDecision(Decision *const d)
Before applying the decision.
virtual void RestartSearch()
Restart the search.
virtual void ExitSearch()
End of the search.
virtual bool IsUncheckedSolutionLimitReached()
Returns true if the limit of solutions has been reached including unchecked solutions.
virtual int ProgressPercent()
Returns a percentage representing the propress of the search before reaching limits.
virtual void NoMoreSolutions()
When the search tree is finished.
virtual void BeginFail()
Just when the failure occurs.
virtual void AfterDecision(Decision *const d, bool apply)
Just after refuting or applying the decision, apply is true after Apply.
virtual void BeginInitialPropagation()
Before the initial propagation.
virtual void BeginNextDecision(DecisionBuilder *const b)
Before calling DecisionBuilder::Next.
virtual void PeriodicCheck()
Periodic call to check limits in long running methods.
virtual void EnterSearch()
Beginning of the search.
virtual void EndNextDecision(DecisionBuilder *const b, Decision *const d)
After calling DecisionBuilder::Next, along with the returned decision.
virtual void EndFail()
After completing the backtrack.
virtual void EndInitialPropagation()
After the initial propagation.
virtual void AcceptUncheckedNeighbor()
After accepting an unchecked neighbor during local search.
virtual void Accept(ModelVisitor *const visitor) const
Accepts the given model visitor.
virtual void AcceptNeighbor()
After accepting a neighbor during local search.
virtual void Install()
Registers itself on the solver such that it gets notified of the search and propagation events.
The SequenceVarElement stores a partial representation of ranked interval variables in the underlying...
A sequence variable is a variable whose domain is a set of possible orderings of the interval variabl...
std::string DebugString() const override
Definition: sched_search.cc:58
This class is the root class of all solution collectors.
std::string DebugString() const override
This class is used to manage a pool of solutions.
Constraint * MakeMapDomain(IntVar *const var, const std::vector< IntVar * > &actives)
This constraint maps the domain of 'var' onto the array of variables 'actives'.
Definition: constraints.cc:538
Constraint * MakeLess(IntExpr *const left, IntExpr *const right)
left < right
Definition: range_cst.cc:546
IntExpr * MakeAbs(IntExpr *const expr)
|expr|
Constraint * MakeEquality(IntExpr *const left, IntExpr *const right)
left == right
Definition: range_cst.cc:512
Constraint * MakeIntervalVarRelationWithDelay(IntervalVar *const t1, BinaryIntervalRelation r, IntervalVar *const t2, int64_t delay)
This method creates a relation between two interval vars.
Definition: timetabling.cc:239
Constraint * MakeLessOrEqual(IntExpr *const left, IntExpr *const right)
left <= right
Definition: range_cst.cc:526
DemonPriority
This enum represents the three possible priorities for a demon in the Solver queue.
@ VAR_PRIORITY
VAR_PRIORITY is between DELAYED_PRIORITY and NORMAL_PRIORITY.
@ DELAYED_PRIORITY
DELAYED_PRIORITY is the lowest priority: Demons will be processed after VAR_PRIORITY and NORMAL_PRIOR...
@ NORMAL_PRIORITY
NORMAL_PRIORITY is the highest priority: Demons will be processed first.
Constraint * MakeNotMemberCt(IntExpr *const expr, const std::vector< int64_t > &values)
expr not in set.
Definition: expr_cst.cc:1233
IntervalStrategy
This enum describes the straregy used to select the next interval variable and its value to be fixed.
@ INTERVAL_SET_TIMES_FORWARD
Selects the variable with the lowest starting time of all variables, and fixes its starting time to t...
@ INTERVAL_SIMPLE
The simple is INTERVAL_SET_TIMES_FORWARD.
@ INTERVAL_SET_TIMES_BACKWARD
Selects the variable with the highest ending time of all variables, and fixes the ending time to this...
@ INTERVAL_DEFAULT
The default is INTERVAL_SET_TIMES_FORWARD.
Constraint * MakeGreater(IntExpr *const left, IntExpr *const right)
left > right
Definition: range_cst.cc:560
std::function< int64_t(int64_t, int64_t, int64_t)> IndexEvaluator3
IntValueStrategy
This enum describes the strategy used to select the next variable value to set.
@ INT_VALUE_SIMPLE
The simple selection is ASSIGN_MIN_VALUE.
@ ASSIGN_CENTER_VALUE
Selects the first possible value which is the closest to the center of the domain of the selected var...
@ SPLIT_UPPER_HALF
Split the domain in two around the center, and choose the lower part first.
@ ASSIGN_MIN_VALUE
Selects the min value of the selected variable.
@ ASSIGN_RANDOM_VALUE
Selects randomly one of the possible values of the selected variable.
@ INT_VALUE_DEFAULT
The default behavior is ASSIGN_MIN_VALUE.
@ ASSIGN_MAX_VALUE
Selects the max value of the selected variable.
@ SPLIT_LOWER_HALF
Split the domain in two around the center, and choose the lower part first.
@ ENDS_BEFORE
t ends before d, i.e. End(t) <= d.
@ AVOID_DATE
STARTS_AFTER or ENDS_BEFORE, i.e.
@ ENDS_AFTER
t ends after d, i.e. End(t) >= d.
@ STARTS_BEFORE
t starts before d, i.e. Start(t) <= d.
@ STARTS_AT
t starts at d, i.e. Start(t) == d.
@ ENDS_AT
t ends at d, i.e. End(t) == d.
@ STARTS_AFTER
t starts after d, i.e. Start(t) >= d.
@ CROSS_DATE
STARTS_BEFORE and ENDS_AFTER at the same time, i.e.
Constraint * MakeMemberCt(IntExpr *const expr, const std::vector< int64_t > &values)
expr in set.
Definition: expr_cst.cc:1163
std::function< int64_t(int64_t, int64_t)> IndexEvaluator2
std::function< bool(int64_t)> IndexFilter1
@ ENDS_AFTER_END
t1 ends after t2 end, i.e. End(t1) >= End(t2) + delay.
@ ENDS_AFTER_START
t1 ends after t2 start, i.e. End(t1) >= Start(t2) + delay.
@ STAYS_IN_SYNC
STARTS_AT_START and ENDS_AT_END at the same time.
@ ENDS_AT_END
t1 ends at t2 end, i.e. End(t1) == End(t2) + delay.
@ STARTS_AT_END
t1 starts at t2 end, i.e. Start(t1) == End(t2) + delay.
@ ENDS_AT_START
t1 ends at t2 start, i.e. End(t1) == Start(t2) + delay.
@ STARTS_AFTER_END
t1 starts after t2 end, i.e. Start(t1) >= End(t2) + delay.
@ STARTS_AFTER_START
t1 starts after t2 start, i.e. Start(t1) >= Start(t2) + delay.
@ STARTS_AT_START
t1 starts at t2 start, i.e. Start(t1) == Start(t2) + delay.
LocalSearchOperators
This enum is used in Solver::MakeOperator to specify the neighborhood to create.
@ EXCHANGE
Operator which exchanges the positions of two nodes.
@ MAKEINACTIVE
Operator which makes path nodes inactive.
@ RELOCATE
Relocate neighborhood with length of 1 (see OROPT comment).
@ SWAPACTIVE
Operator which replaces an active node by an inactive one.
@ SIMPLELNS
Operator which defines one neighbor per variable.
@ INCREMENT
Operator which defines one neighbor per variable.
@ MAKECHAININACTIVE
Operator which makes a "chain" of path nodes inactive.
@ TWOOPT
Operator which reverses a sub-chain of a path.
@ FULLPATHLNS
Operator which relaxes one entire path and all inactive nodes, thus defining num_paths neighbors.
@ EXTENDEDSWAPACTIVE
Operator which makes an inactive node active and an active one inactive.
@ OROPT
Relocate: OROPT and RELOCATE.
@ PATHLNS
Operator which relaxes two sub-chains of three consecutive arcs each.
@ UNACTIVELNS
Operator which relaxes all inactive nodes and one sub-chain of six consecutive arcs.
@ MAKEACTIVE
Operator which inserts an inactive node into a path.
@ DECREMENT
Operator which defines a neighborhood to decrement values.
@ CROSS
Operator which cross exchanges the starting chains of 2 paths, including exchanging the whole paths.
IntExpr * MakeOpposite(IntExpr *const expr)
-expr
IntExpr * MakeElement(const std::vector< int64_t > &values, IntVar *const index)
values[index]
Definition: element.cc:657
EvaluatorStrategy
This enum is used by Solver::MakePhase to specify how to select variables and values during the searc...
static int64_t MemoryUsage()
Current memory usage in bytes.
IntVar * MakeIsMemberVar(IntExpr *const expr, const std::vector< int64_t > &values)
Definition: expr_cst.cc:1495
IntExpr * MakeDifference(IntExpr *const left, IntExpr *const right)
left - right
Constraint * MakeNonEquality(IntExpr *const left, IntExpr *const right)
left != right
Definition: range_cst.cc:564
static ConstraintSolverParameters DefaultSolverParameters()
Create a ConstraintSolverParameters proto with all the default values.
std::string LocalSearchProfile() const
Returns local search profiling information in a human readable format.
IntVarStrategy
This enum describes the strategy used to select the next branching variable at each node during the s...
@ CHOOSE_RANDOM
Randomly select one of the remaining unbound variables.
@ CHOOSE_MIN_SIZE
Among unbound variables, select the variable with the smallest size.
@ CHOOSE_FIRST_UNBOUND
Select the first unbound variable.
@ CHOOSE_PATH
Selects the next unbound variable on a path, the path being defined by the variables: var[i] correspo...
@ CHOOSE_HIGHEST_MAX
Among unbound variables, select the variable with the highest maximal value.
@ CHOOSE_MIN_SIZE_LOWEST_MIN
Among unbound variables, select the variable with the smallest size, i.e., the smallest number of pos...
@ INT_VAR_DEFAULT
The default behavior is CHOOSE_FIRST_UNBOUND.
@ CHOOSE_MIN_SIZE_HIGHEST_MAX
Among unbound variables, select the variable with the smallest size, i.e., the smallest number of pos...
@ CHOOSE_MAX_REGRET_ON_MIN
Among unbound variables, select the variable with the largest gap between the first and the second va...
@ CHOOSE_MIN_SIZE_HIGHEST_MIN
Among unbound variables, select the variable with the smallest size, i.e., the smallest number of pos...
@ CHOOSE_MAX_SIZE
Among unbound variables, select the variable with the highest size.
@ INT_VAR_SIMPLE
The simple selection is CHOOSE_FIRST_UNBOUND.
@ CHOOSE_MIN_SIZE_LOWEST_MAX
Among unbound variables, select the variable with the smallest size, i.e., the smallest number of pos...
@ CHOOSE_LOWEST_MIN
Among unbound variables, select the variable with the smallest minimal value.
SequenceStrategy
Used for scheduling. Not yet implemented.
IntExpr * MakeDiv(IntExpr *const expr, int64_t value)
expr / value (integer division)
IntExpr * MakeSum(IntExpr *const left, IntExpr *const right)
left + right.
IntExpr * MakeSquare(IntExpr *const expr)
expr * expr
std::function< void()> Closure
std::function< int64_t(int64_t)> IndexEvaluator1
Callback typedefs.
Constraint * MakeIntervalVarRelation(IntervalVar *const t, UnaryIntervalRelation r, int64_t d)
This method creates a relation between an interval var and a date.
Definition: timetabling.cc:114
IntExpr * MakeProd(IntExpr *const left, IntExpr *const right)
left * right
void set_fail_intercept(std::function< void()> fail_intercept)
Internal.
IntExpr * MakeModulo(IntExpr *const x, int64_t mod)
Modulo expression x % mod (with the python convention for modulo).
Constraint * MakeGreaterOrEqual(IntExpr *const left, IntExpr *const right)
left >= right
Definition: range_cst.cc:542
EvaluatorLocalSearchOperators
This enum is used in Solver::MakeOperator associated with an evaluator to specify the neighborhood to...
LocalSearchFilterBound
This enum is used in Solver::MakeLocalSearchObjectiveFilter.
@ GE
Move is accepted when the current objective value >= objective.Min.
@ LE
Move is accepted when the current objective value <= objective.Max.
@ EQ
Move is accepted when the current objective value is in the interval objective.Min .
A symmetry breaker is an object that will visit a decision and create the 'symmetrical' decision in r...
Checker for type incompatibilities.
Definition: routing.h:2346
The following constraint ensures that incompatibilities and requirements between types are respected.
Definition: routing.h:2426
Checker for type requirements.
Definition: routing.h:2362
Base operator class for operators manipulating variables.
virtual bool SkipUnchanged(int index) const
SwigPtr_PyObject(PyObject *obj, bool initial_ref=true)
SwigPtr_PyObject & operator=(const SwigPtr_PyObject &item)
SwigPtr_PyObject(const SwigPtr_PyObject &item)
int64_t b
Block * next
static swig_cast_info _swigc__p_operations_research__Decision[]
#define SWIGTYPE_p_operations_research__IntVar
SWIGINTERN PyObject * _wrap_RoutingModel_AddPickupAndDelivery(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_DurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * TypeIncompatibilityChecker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_t[]
SWIGINTERN PyObject * SolutionCollector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAtEndWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
SWIGINTERN PyObject * _wrap_BooleanVar_WhenBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FalseConstraint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__IntExpr[]
SWIGINTERN PyObject * _wrap_new_LocalSearchFilterManager__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME swig_module_info * SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata))
#define SWIG_Error(code, msg)
SWIGINTERN PyObject * _wrap_Solver_DefaultSolverParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetEndRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___ge____SWIG_2(operations_research::IntExpr *self, operations_research::Constraint *other)
SWIGINTERN PyObject * _wrap_IntervalVar_SetEndRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FirstSolutionCollector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___le____SWIG_1(operations_research::Constraint *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * NumericalRevInteger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__LocalSearchOperator[]
SWIGINTERN PyObject * _wrap_RoutingModel_GetArcCostForFirstSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__Solver
SWIGINTERNINLINE PyObject * SWIG_From_int(int value)
SWIGINTERN PyObject * _wrap_SearchMonitor_NoMoreSolutions(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_RoutesToAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperator_OneNeighbor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_HasCumulVarSoftLowerBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_Start(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NonOverlappingBoxesConstraint__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_PerformedMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME int SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___gt____SWIG_0(operations_research::IntExpr *self, int64_t v)
SWIGINTERN PyObject * _wrap_new_IntVarLocalSearchFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AssignVariableValueOrFail(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetPairIndicesOfType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_GetCumulVarSoftLowerBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_HasCumulVarSoftUpperBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Pack_Post(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_RevBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAtStart(operations_research::IntervalVar *self, operations_research::IntervalVar *other)
static void * _p_operations_research__SolutionCollectorTo_p_operations_research__SearchMonitor(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingModel_AddLocalSearchOperator(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_MinEquality(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_Solution(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * BooleanVar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_IntervalVarElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenDurationBound(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___add____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__IntTupleSet
static swig_cast_info * swig_cast_initial[]
SWIGINTERN PyObject * _wrap_Solver_LastSolutionCollector(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Max(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__BaseObject
SWIGINTERN PyObject * _wrap_IntervalVarElement_PerformedMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_DefaultPhaseParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_RandomLnsOperator__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenEndRange(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Demon_RunWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__ImprovementSearchLimitTo_p_operations_research__SearchMonitor(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingModel_PreAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_MutableIntervalVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SortingConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SolveAndCommit__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___ne____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetVisitType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * ChangeValue_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_EndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsBefore(operations_research::IntervalVar *self, int64_t date)
static swig_type_info _swigt__p_operations_research__AssignmentElement
static swig_cast_info _swigc__p_operations_research__PathOperator[]
SWIGINTERN PyObject * _wrap_Assignment_MutableSequenceVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___add____SWIG_1(operations_research::Constraint *self, operations_research::Constraint *other)
static swig_type_info _swigt__p_operations_research__BooleanVar
SWIGINTERN PyObject * _wrap_Solver_Cumulative__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DecisionBuilder_NextWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsBefore(operations_research::IntervalVar *self, int64_t date)
SWIGINTERN PyObject * _wrap_RoutingModel_ConsiderEmptyRouteCostsForVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Min(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__AssignmentElement
#define SWIGTYPE_p_operations_research__RoutingModel
static void * _p_operations_research__SymmetryBreakerTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_IsLessOrEqualCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetEndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___mod____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__RoutingDimension[]
SWIGINTERN PyObject * _wrap_Solver_StoreAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NewSearch(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAfterStartWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
PyObject * FromObjectSearchMonitor(operations_research::SearchMonitor *obj)
static swig_type_info _swigt__p_operations_research__SolutionCollector
SWIGINTERN PyObject * _wrap_RoutingDimension_SetBreakDistanceDurationOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_VarEvalValEvalTieBreakPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Load(PyObject *self, PyObject *args)
static swig_type_info _swigt__p_absl__flat_hash_setT_int_t
SWIGINTERN PyObject * _wrap_IntVarElement_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsGreaterCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___eq____SWIG_2(operations_research::IntExpr *self, operations_research::Constraint *other)
SWIGINTERN PyObject * _wrap_SearchLimit_EnterSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetVehicleTypeContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___lt____SWIG_2(operations_research::Constraint *self, operations_research::Constraint *other)
SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty)
static swig_cast_info _swigc__p_operations_research__IntTupleSet[]
SWIGINTERN PyObject * _wrap_Assignment_Activated__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SequenceVarContainer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_DecisionBuilderFromAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_RemoveInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__ChangeValueTo_p_operations_research__IntVarLocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIG_MangledTypeQuery(name)
SWIGINTERN PyObject * _wrap_IntervalVarElement_DurationValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__RegularLimitTo_p_operations_research__SearchLimit(void *x, int *SWIGUNUSEDPARM(newmemory))
static void * _p_operations_research__LocalSearchFilterManagerTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntervalVarElement_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsDifferentVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhaseParameters__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Distribute__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr_IndexOf__SWIG_0(operations_research::IntExpr *self, std::vector< int64_t > const &vars)
static swig_type_info _swigt__p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t
#define SWIGTYPE_p_operations_research__PropagationBaseObject
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_DebugOutputAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_PrintModelVisitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___radd__(operations_research::IntExpr *self, int64_t v)
SWIGINTERN PyObject * _wrap_IntExpr___ge__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetDisjunctionPenalty(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ConcatenateOperators__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FirstSolutionCollector(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Decision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint_Post(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_RemoveValues(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVar___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___add____SWIG_2(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * _wrap_RoutingModel_AddDimensionWithVehicleTransits(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AssignmentToRoutes(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___le__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_DurationExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
bool CanConvertToIntVar(PyObject *py_obj)
SWIGINTERN PyObject * _wrap_RoutingDimension_GetTransitValueFromClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___le__(PyObject *self, PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___gt____SWIG_0(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * _wrap_IntervalVar_CannotBePerformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_RoutingIndexManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NestedOptimize__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TransitionConstraint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_LocalSearchFilterManager(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_disown_DecisionBuilder(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarContainer_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_absl__Duration
SWIGINTERN PyObject * _wrap_IntervalVarElement_PerformedValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_absl__Duration
SWIGINTERN PyObject * _wrap_RoutingModel_Solve(PyObject *self, PyObject *args)
static PyObject * Swig_This_global
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAfterStartWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
SWIGINTERN PyObject * _wrap_Solver_Cumulative__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME int SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
static void * _p_operations_research__PropagationMonitorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN int SWIG_AsVal_double(PyObject *obj, double *val)
static swig_type_info _swigt__p_operations_research__DecisionVisitor
SWIGINTERN PyObject * IntVarLocalSearchOperator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SearchLog__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___floordiv____SWIG_0(operations_research::IntExpr *self, int64_t v)
SWIGINTERN PyObject * _wrap_IntervalVarElement_EndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___add____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScheduleOrExpedite(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__TypeRegulationsConstraint
SWIGINTERN PyObject * IntervalVarContainer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__RoutingModel
SWIGINTERN PyObject * _wrap_SequenceVarContainer_Element(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddSoftSameVehicleConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__RegularLimit
SWIGINTERN PyObject * Solver_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___ne__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NullIntersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAfter(operations_research::IntervalVar *self, int64_t date)
#define SWIGTYPE_p_operations_research__LocalSearchFilter
SWIGINTERN PyObject * _wrap_SequenceVar_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_std__pairT_std__vectorT_long_t_std__vectorT_long_t_t[]
SWIGINTERN PyObject * _wrap_SequenceVarElement_SetSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN Py_ssize_t SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
SWIGINTERN PyObject * _wrap_delete_BaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_GuidedLocalSearch__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__IntTupleSet
SWIGINTERN std::string operations_research_SearchMonitor___repr__(operations_research::SearchMonitor *self)
SWIGINTERN PyObject * _wrap_RoutingModel_GetTemporalTypeIncompatibilitiesOfType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_TransitCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * TypeRegulationsConstraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_SetStartRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchLimit_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_SetPickupToDeliveryLimitFunctionForPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___eq____SWIG_0(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * _wrap_delete_RevInteger(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_DurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__RevT_bool_t
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___gt____SWIG_1(operations_research::IntExpr *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_Solver_RestoreAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetObjectiveMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Solve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_TypeQuery(name)
static swig_type_info _swigt__p_PickupToDeliveryLimitFunction
SWIGINTERN PyObject * _wrap_Solver_Cumulative__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchLimit_Crossed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NewSearch__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_absl__flat_hash_setT_int_t[]
SWIGINTERN PyObject * _wrap_SequenceVarLocalSearchOperatorTemplate_OnStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_GetSpanCostCoefficientForVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_HasSameVehicleTypeRequirements(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NewSearch__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScheduleOrPostpone(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__TypeRegulationsChecker[]
#define SWIG_POINTER_OWN
SWIGINTERN PyObject * _wrap_IntExpr___add__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Element__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__PackTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIG_POINTER_EXCEPTION
SWIGINTERN PyObject * _wrap_RoutingModel_AddToAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_MutablePreAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_RemoveValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___eq____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAfter(operations_research::IntervalVar *self, int64_t date)
SWIGINTERN PyObject * _wrap_SearchMonitor_AfterDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_IntervalVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__LocalSearchMonitorTo_p_operations_research__SearchMonitor(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhaseParameters__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAfterStart(operations_research::IntervalVar *self, operations_research::IntervalVar *other)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___mul____SWIG_0(operations_research::Constraint *self, operations_research::IntExpr *other)
#define SWIG_SyntaxError
SWIGINTERN PyObject * _wrap_new_TypeRegulationsConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * Constraint_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAtEndWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Pack_AddWeightedSumEqualVarDimension__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingIndexManager_GetStartIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__CastConstraintTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_SolutionCollector_ForwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_POINTER_NEW
SWIGINTERN PyObject * _wrap_IntExpr_IsMember(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___ne____SWIG_0(operations_research::IntExpr *self, int64_t v)
SWIGINTERN PyObject * _wrap_RoutingDimension_SetCumulVarSoftLowerBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_WhenBound__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_std__vectorT_std__unique_ptrT_operations_research__LocalDimensionCumulOptimizer_t_t[]
static swig_cast_info _swigc__p_absl__Duration[]
SWIGINTERN PyObject * _wrap_Assignment_SequenceVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddDisjunction__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::DecisionBuilder * operations_research_Solver_VarEvalValEvalPhase(operations_research::Solver *self, std::vector< operations_research::IntVar * > const &vars, std::function< int64_t(int64_t) > var_eval, operations_research::Solver::IndexEvaluator2 val_eval)
SWIGINTERN PyObject * _wrap_RoutingModel_GetDimensions(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_EndInitialPropagation(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Fail(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsLessOrEqualCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_status(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_CheckState(r)
SWIGINTERN PyObject * _wrap_delete_BaseLns(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_StatisticsModelVisitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarContainer_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__Constraint[]
SWIGINTERN PyObject * _wrap_Solver_IntVar__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * Swig_var_RoutingModel_kNoDimension_get(void)
static void * _p_operations_research__ChangeValueTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Assignment_Unperformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_SetGlobalSpanCostCoefficient(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_OptimizeVar_AcceptDelta(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__TypeRegulationsConstraintTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_type_info _swigt__p_operations_research__SymmetryBreaker
SWIGINTERN PyObject * _wrap_Assignment_Add__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_GlobalVehicleBreaksConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScalProdGreaterOrEqual__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_BetweenCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_int[]
static swig_type_info _swigt__p_operations_research__IntVarLocalSearchFilter
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_run_all_heuristics_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenStartRange(PyObject *self, PyObject *args)
bool PyObjAs(PyObject *py_obj, operations_research::Decision **b)
SWIGINTERN PyObject * _wrap_Solver_NestedOptimize__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_ErrorType(code)
SWIGINTERN int Swig_var_RoutingModelVisitor_kLightElement_set(PyObject *)
static swig_cast_info _swigc__p_operations_research__DecisionVisitor[]
SWIGINTERN PyObject * _wrap_new_IntVarLocalSearchOperator__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__SequenceVarLocalSearchOperator
SWIGINTERN PyObject * _wrap_Solver_SplitVariableDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AllDifferent(PyObject *self, PyObject *args)
static swig_type_info _swigt__p_std__pairT_std__vectorT_long_t_std__vectorT_long_t_t
SWIGINTERN PyObject * _wrap_IntExpr___ne____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NestedOptimize(PyObject *self, PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAfterEnd(operations_research::IntervalVar *self, operations_research::IntervalVar *other)
static swig_type_info _swigt__p_std__vectorT_std__pairT_long_long_t_t
SWIGINTERN PyObject * _wrap_new_RoutingModel(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddSameVehicleRequiredTypeAlternatives(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_VarStrValEvalTieBreakPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb)
SWIGINTERN PyObject * _wrap_SequenceVarLocalSearchOperatorTemplate_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Accept(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_TransitCallback1
SWIGINTERN PyObject * IntVarElement_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AllSolutionCollector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___gt____SWIG_2(operations_research::Constraint *self, operations_research::Constraint *other)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___le____SWIG_2(operations_research::Constraint *self, operations_research::Constraint *other)
SWIGINTERN PyObject * _wrap_RoutingModel_SolveFromAssignmentWithParameters(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsEqualCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarContainer___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Min__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__RoutingModel[]
SWIGINTERN PyObject * _wrap_RoutingModel_GetGlobalDimensionCumulOptimizers(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_RandomConcatenateOperators(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarElement___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_Add__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetPrimaryConstrainedDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_BUFFER_SIZE
SWIGINTERN PyObject * _wrap_Solver_MoveTowardTargetOperator__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_PerformedValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__SequenceVarLocalSearchOperator[]
SWIGINTERN PyObject * _wrap_SearchMonitor_ApplyDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__IntVarIterator[]
#define SWIG_TypeError
SWIGRUNTIME int SWIG_Python_AddErrMesg(const char *mesg, int infront)
SWIGRUNTIME PyObject * SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
SWIGINTERN void SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[])
static void * _p_operations_research__BooleanVarTo_p_operations_research__IntVar(void *x, int *SWIGUNUSEDPARM(newmemory))
static void * _p_operations_research__PathOperatorTo_p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_Deviation(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Max(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Activate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchFilter_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SearchTrace(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__LocalDimensionCumulOptimizer
SWIGRUNTIME PyObject * SwigPyObject_next(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
SWIGINTERN PyObject * _wrap_RoutingModel_MakeGuidedSlackFinalizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_POINTER_IMPLICIT_CONV
SWIGINTERN PyObject * _wrap_Solver_AllowedAssignments__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddConstantDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NestedOptimize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * RoutingModel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__RoutingIndexManager
SWIGINTERN PyObject * _wrap_RoutingDimension_SetSpanUpperBoundForVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___eq____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ConcatenateOperators(PyObject *self, PyObject *args)
SWIGINTERN std::string operations_research_SequenceVar___str__(operations_research::SequenceVar *self)
SWIGINTERN PyObject * _wrap_Assignment_Load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__ImprovementSearchLimit
SWIGINTERN PyObject * _wrap_Assignment_Save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetPerformedValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static ReturnT HandleResult(PyObject *pyresult)
SWIGINTERN PyObject * _wrap_IntVar_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Minimize(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_EndValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_CloseModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
SWIGINTERN PyObject * _wrap_IntervalVar___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_value_selection_schema_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TransitionConstraint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_Decision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_PY_POINTER
struct swig_cast_info swig_cast_info
SWIGINTERN PyObject * _wrap_IntExpr_VarWithName(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__LocalSearchPhaseParameters[]
SWIGINTERN PyObject * _wrap_RoutingModel_AddSearchMonitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___ge____SWIG_1(operations_research::IntExpr *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_IntExpr___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_tTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIGTYPE_p_operations_research__ChangeValue
static swig_type_info _swigt__p_operations_research__PathOperator
SWIGINTERN PyObject * _wrap_BooleanVar_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__Pack
PyObject * FromObjectLocalSearchFilter(operations_research::LocalSearchFilter *obj)
SWIGINTERN PyObject * _wrap_new_RoutingModel__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Demon_Inhibit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__Demon[]
SWIGINTERN PyObject * _wrap_Solver_SolveAndCommit__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAtStartWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__Solver__SearchLogParameters
SWIGINTERN PyObject * _wrap_Solver_Distribute__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__GlobalVehicleBreaksConstraint
static void * _p_operations_research__SearchLogTo_p_operations_research__SearchMonitor(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntervalVar_OldStartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_MakePathSpansAndTotalSlacks(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ConvexPiecewiseExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LexicalLessOrEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetDurationRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_DIRECTOR_RGTR(ARG1, ARG2)
SWIGINTERN PyObject * _wrap_SequenceVarContainer_Store(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN int swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p)
SWIGINTERN PyObject * _wrap_Solver_FixedInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Pack_AddWeightedSumLessOrEqualConstantDimension__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BaseLns___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SolveWithParameters(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsBetweenVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint_Square(operations_research::Constraint *self)
SWIGINTERN PyObject * _wrap_Decision_ApplyWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_MemoryUsage(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2)
SWIGRUNTIME PyObject * SwigPyObject_hex(SwigPyObject *v)
SWIGINTERN PyObject * Swig_var_RoutingModel_kNoPenalty_get(void)
SWIGINTERN PyObject * _wrap_OptimizeVar_EnterSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsGreaterOrEqualCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SearchLog__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__IntVar
SWIGINTERN PyObject * _wrap_Constraint___ge____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NotMemberCt__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * ChangeValue_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_HoleIteratorAux(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__DefaultPhaseParameters
SWIGINTERN PyObject * _wrap_LocalSearchFilter_Synchronize(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * RoutingIndexManager_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__AssignmentElement[]
SWIGINTERN PyObject * _wrap_SequenceVarElement_ForwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_Python_ConvertPtr(obj, pptr, type, flags)
SWIGINTERN PyObject * _wrap_delete_TypeRequirementChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME void SwigPyObject_dealloc(PyObject *v)
SWIGRUNTIME PyTypeObject * SwigPyPacked_TypeOnce(void)
SWIGINTERN PyObject * _wrap_Solver_FirstSolutionCollector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FixedDurationIntervalVar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_TypeRegulationsConstraint_InitialPropagateWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_LocalSearchFilterManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_PYTHON_THREAD_END_BLOCK
SWIGINTERN operations_research::IntVar * operations_research_IntExpr_IsMember(operations_research::IntExpr *self, std::vector< int64_t > const &values)
SWIGINTERN PyObject * _wrap_Assignment_SetStartValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__FirstSolutionStrategy__Value
SWIGINTERN PyObject * _wrap_Constraint_InitialPropagateWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Limit__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_DurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
PyObject * FromObjectSequenceVar(operations_research::SequenceVar *obj)
static swig_cast_info _swigc__p_operations_research__BooleanVar[]
SWIGINTERN PyObject * _wrap_Solver_TimeLimit(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SolveFromAssignmentsWithParameters__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_disown_Constraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarElement_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__IntVarLocalSearchFilter[]
static swig_cast_info _swigc__p_operations_research__SearchMonitor[]
SWIGINTERN PyObject * _wrap_Solver_Failures(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_AcceptDelta(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_UnperformedPenaltyOrValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_RuntimeError
SWIGINTERN PyObject * _wrap_Solver_Limit__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Element__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_WhenDomain__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetStartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_DurationValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_std__vectorT_absl__flat_hash_setT_int_t_t[]
SWIGRUNTIME PyObject * SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
SWIGINTERN PyObject * _wrap_IntExpr___eq__(PyObject *self, PyObject *args)
static swig_type_info _swigt__p_std__vectorT_operations_research__LocalSearchFilterManager__FilterEvent_t
SWIGINTERN PyObject * _wrap_Solver_FailuresLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__SequenceVarLocalSearchOperatorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntervalVarContainer_Store(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SolveAndCommit__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetStartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SwigPyObject_append(PyObject *v, PyObject *next)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___add____SWIG_0(operations_research::Constraint *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_Solver_GuidedLocalSearch(PyObject *self, PyObject *args)
#define SWIGTYPE_p_operations_research__AssignmentContainerT_operations_research__SequenceVar_operations_research__SequenceVarElement_t
SWIGINTERN PyObject * _wrap_Constraint___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingIndexManager_NodeToIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarContainer_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LastSolutionCollector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___mod__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SearchLog__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_RankLastInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IntVar__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * swig_varlink_getattr(swig_varlinkobject *v, char *n)
SWIGINTERN PyObject * _wrap_Solver_Count__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * RoutingModel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__SearchLog[]
SWIGINTERN PyObject * SWIG_Python_newvarlink(void)
SWIGINTERN PyObject * _wrap_delete_Constraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___add____SWIG_2(operations_research::IntExpr *self, int64_t v)
SWIGINTERN PyObject * _wrap_RoutingModel_GetSameVehicleRequiredTypeAlternativesOfType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
struct swig_varlinkobject swig_varlinkobject
SWIGINTERN PyObject * _wrap_IntExpr___floordiv__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * LocalSearchFilterManager_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_MakeSetValuesFromTargets(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___mul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_model(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NeighborhoodLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_IntVarElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Pack_AddWeightedSumLessOrEqualConstantDimension(PyObject *self, PyObject *args)
static void * _p_operations_research__BooleanVarTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
bool CanConvertToLocalSearchOperator(PyObject *py_obj)
SWIGINTERN PyObject * _wrap_Assignment_Store(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___lt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetArcCostEvaluatorOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Decision___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SequenceVarLocalSearchOperatorTemplate_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__RevT_long_t
#define SWIG_NewClientData(obj)
SWIGINTERN PyObject * Swig_var_RoutingModelVisitor_kLightElement_get(void)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenDurationBound__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__ChangeValue
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_value_selection_schema_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * DecisionBuilder_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_GlobalVehicleBreaksConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarElement___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NestedOptimize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_InitializeBreaks(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AllSolutionCollector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_AvoidsDate(operations_research::IntervalVar *self, int64_t date)
SWIGINTERN PyObject * _wrap_IntExpr___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_WhenRange__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScalProdLessOrEqual__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_PropagationBaseObject_solver(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_IntVarLocalSearchOperator__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___le____SWIG_1(operations_research::IntExpr *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_SequenceVarLocalSearchOperatorTemplate_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_LocalSearchOperator_Start(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntVarLocalSearchOperatorTo_p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_type_info _swigt__p_std__vectorT_std__pairT_std__vectorT_long_t_std__vectorT_long_t_t_t
SWIGINTERN PyObject * _wrap_Constraint___eq__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarContainer_Element(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define PyObject_DEL
SWIGINTERN PyObject * _wrap_Solver_RestartCurrentSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Cumulative(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarLocalSearchOperatorTemplate_IsIncremental(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_WeightedOptimize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_Max(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_AssignmentElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__NumericalRevT_long_tTo_p_operations_research__RevT_long_t(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * swig_varlink_str(swig_varlinkobject *v)
SWIGINTERN PyObject * _wrap_Solver_BranchesLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Sum(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NestedOptimize__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_unsigned_char
SWIGINTERN PyObject * _wrap_RoutingModel_SolveFromAssignmentsWithParameters__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * IntExpr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_GetCumulVarSoftUpperBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_DisjunctionIndex
static swig_type_info _swigt__p_operations_research__ModelVisitor
SWIGINTERN PyObject * _wrap_Solver_AbsEquality(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenStartBound(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarLocalSearchOperatorTemplate_OldValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERNINLINE int SWIG_CanCastAsInteger(double *d, double min, double max)
SWIGINTERN PyObject * _wrap_IntExpr___ne____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetPerformedValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_StartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SolveFromAssignmentsWithParameters(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___lt____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddMatrixDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * LocalSearchFilterManager_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_std__vectorT_std__unique_ptrT_operations_research__LocalDimensionCumulOptimizer_t_t
SWIGINTERN PyObject * _wrap_Solver_IntConst__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenDurationRange__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_LocalSearchFilterManager__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddRequiredTypeAlternativesWhenAddingType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetNumberOfRejectsInFirstSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_TypeRegulationsChecker_CheckVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___ge____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_RoutingIndexManager(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ConcatenateOperators__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NewSearch__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_std__vectorT_operations_research__RoutingDimension_p_t
SWIGINTERN PyObject * _wrap_Assignment_Add__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetDisjunctionMaxCardinality(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_RoutingDimensionIndex
#define SWIGTYPE_p_operations_research__Constraint
SWIGINTERN PyObject * _wrap_RoutingModel_GetLocalDimensionCumulMPOptimizers(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AssignVariableValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVar_RankNotFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetObjectiveMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_SearchMonitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_heuristic_period_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarContainer_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperatorTemplate_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAfterEndWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_RestartSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetMaximumNumberOfActiveVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___lt____SWIG_1(operations_research::IntExpr *self, operations_research::IntExpr *other)
#define SWIG_PY_BINARY
static swig_cast_info _swigc__p_std__vectorT_operations_research__LocalSearchFilterManager__FilterEvent_t[]
SWIGINTERN PyObject * _wrap_SolutionCollector_BackwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__CastConstraintTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN std::string operations_research_Constraint___str__(operations_research::Constraint *self)
SWIGINTERN PyObject * _wrap_Solver_SearchLog(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScalProdGreaterOrEqual(PyObject *self, PyObject *args)
static swig_cast_info _swigc__p_TransitCallback2[]
SWIGINTERN PyObject * _wrap_Pack_AddWeightedSumEqualVarDimension__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperatorTemplate_OnStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__Solver[]
#define SWIGTYPE_p_operations_research__AssignmentContainerT_operations_research__IntervalVar_operations_research__IntervalVarElement_t
SWIGINTERN PyObject * _wrap_RoutingModel_GetDimensionResourceGroupIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__SolutionPool
SWIGINTERN PyObject * _wrap_RoutingModel_AddVectorDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__Assignment[]
#define SWIG_SetErrorMsg
static swig_type_info _swigt__p_operations_research__LocalDimensionCumulOptimizer
SWIGINTERN PyObject * _wrap_SequenceVarElement_SetBackwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarElement_Bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_VehicleClassIndex[]
SWIGINTERN PyObject * _wrap_Solver_SumLessOrEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_RUNTIME_VERSION
SWIGINTERN PyObject * _wrap_Assignment_NumSequenceVars(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhaseParameters__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NewSearch__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::SearchMonitor * operations_research_Solver_GuidedLocalSearch__SWIG_2(operations_research::Solver *self, bool maximize, operations_research::IntVar *const objective, operations_research::Solver::IndexEvaluator2 objective_function, int64_t step, std::vector< operations_research::IntVar * > const &vars, double penalty_factor)
SWIGINTERN PyObject * _wrap_ChangeValue_OneNeighbor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN char * SWIG_Python_str_AsChar(PyObject *str)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___sub____SWIG_1(operations_research::IntExpr *self, operations_research::Constraint *other)
SWIGINTERN PyObject * _wrap_Solver_Phase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___gt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LexicalLess(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_ArcIsMoreConstrainedThanArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_BaseObject___str__(operations_research::BaseObject *self)
SWIGRUNTIMEINLINE const char * SwigPyObject_GetDesc(PyObject *self)
SWIGINTERN PyObject * _wrap_Solver_Element__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FixedDurationIntervalVar__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_addvarlink(p, name, get_attr, set_attr)
SWIGINTERN PyObject * _wrap_Solver_Circuit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_disown_SearchMonitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SwigPyObject_own(PyObject *v, PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_NumIntVars(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_OptimizeVar_AcceptSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_SetDurationRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * PropagationBaseObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsGreaterCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_POINTER_NOSHADOW
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___neg__(operations_research::Constraint *self)
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_WriteAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata)
SWIGINTERN PyObject * _wrap_Assignment_Activated__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetDisjunctionIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarIterator_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
static swig_type_info _swigt__p_short
SWIGINTERN PyObject * _wrap_Solver_Limit__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddRequiredTypeAlternativesWhenRemovingType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * IntVar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_ValueError
SWIGINTERN PyObject * _wrap_Solver_Limit__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_GetCumulVarSoftUpperBoundCoefficient(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN void SWIG_Python_addvarlink(PyObject *p, const char *name, PyObject *(*get_attr)(void), int(*set_attr)(PyObject *p))
PyObject * PyInt_FromIndexT(const IndexT i)
SWIGINTERN PyObject * _wrap_IntVarElement_Min(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::SearchMonitor * operations_research_Solver_SearchLogWithCallback(operations_research::Solver *self, int period, std::function< std::string() > callback)
SWIGINTERN PyObject * _wrap_RoutingModel_GetSameVehicleIndicesOfIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_RemainingTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___mul____SWIG_1(operations_research::Constraint *self, operations_research::Constraint *other)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___mul____SWIG_1(operations_research::IntExpr *self, operations_research::Constraint *other)
SWIGINTERN PyObject * SwigPyObject_acquire(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
SWIGINTERN PyObject * _wrap_RoutingModel_Solve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BaseLns_NextFragment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetFixedCostOfAllVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___radd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsGreaterOrEqualCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_IntVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Max__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IntConst(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IndexExpression(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static PyMethodDef swigobject_methods[]
SWIGINTERN PyObject * _wrap_IntVar___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_RankFirstInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Activate(PyObject *self, PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___lt____SWIG_0(operations_research::IntExpr *self, int64_t v)
SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz)
SWIGINTERN PyObject * _wrap_IntVar_DomainIteratorAux(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___le____SWIG_2(operations_research::IntExpr *self, operations_research::Constraint *other)
#define SWIG_AddCast(r)
SWIGINTERN PyObject * _wrap_IntervalVar_SafeStartExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_StartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_StartValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NotMemberCt__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_base_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarElement_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERNINLINE PyObject * SWIG_FromCharPtr(const char *cptr)
SWIGINTERN PyObject * _wrap_Solver_EvalEvalStrTieBreakPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StaysInSync(operations_research::IntervalVar *self, operations_research::IntervalVar *other)
SWIGINTERN PyObject * _wrap_RoutingModel_CheckLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___ne__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddDisjunction(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarElement___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint_IndexOf(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_CostsAreHomogeneousAcrossVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_VarStrValEvalPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_std__ostream[]
static void * _p_operations_research__LocalSearchMonitorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Assignment_Activated(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_WhenBound(PyObject *self, PyObject *args)
SWIGRUNTIME PyObject * SWIG_Python_TypeCache(void)
SWIGINTERN PyObject * _wrap_RoutingModel_GetArcCostForVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Activated__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__DecisionBuilder[]
SWIGINTERN PyObject * _wrap_delete_PropagationBaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_IsNewObj(r)
static void * _p_operations_research__PropagationMonitorTo_p_operations_research__SearchMonitor(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_new_Solver(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NewSearch__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_EndValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_GuidedLocalSearch__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__SolutionPool[]
SWIGINTERN PyObject * _wrap_IntExpr___le____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetFixedCostOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___gt__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAfterEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___gt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_InternalNewPointerObj(ptr, type, flags)
static void * _p_operations_research__IntVarTo_p_operations_research__IntExpr(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingModel_GetAllDimensionNames(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__IntVarElement
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetEndValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_BeginInitialPropagation(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__LocalSearchFilterManager[]
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperatorTemplate_IsIncremental(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ElementEquality__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_OldDurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint_MapTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SwigPyObject_long(SwigPyObject *v)
SWIGINTERN PyObject * _wrap_IntExpr_IndexOf(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_exception_fail(code, msg)
static void * _p_operations_research__RoutingModelVisitorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_DecisionBuilder(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__DecisionBuilder
SWIGINTERN PyObject * _wrap_Solver_EndSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntervalVarTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIGTYPE_p_operations_research__DisjunctiveConstraint
static swig_cast_info _swigc__p_std__vectorT_std__pairT_std__vectorT_long_t_std__vectorT_long_t_t_t[]
SWIGINTERN PyObject * _wrap_Demon_Priority(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__LocalSearchMonitor[]
#define SWIG_DIRECTOR_CAST(ARG)
SWIGINTERN PyObject * _wrap_RoutingModel_RestoreAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__TypeRegulationsConstraintTo_p_operations_research__Constraint(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_SolutionCollector_PerformedValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_IsVehicleAllowedForIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIMEINLINE PyObject * SWIG_Py_Void(void)
SWIGINTERN PyObject * _wrap_Solver_SearchLog__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_WeightedMaximize(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetMutableGlobalCumulMPOptimizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NotMemberCt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_IntVar___str__(operations_research::IntVar *self)
SWIGINTERN PyObject * _wrap_Pack_AddCountAssignedItemsDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_OptimizeVar_Best(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Solve__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenDurationRange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetEndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperatorTemplate_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TabuSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_RandomLnsOperator__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchLimit_BeginNextDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__TypeIncompatibilityChecker
SWIGINTERN PyObject * IntVarLocalSearchOperatorTemplate_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_SetStartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetForwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_MoveTowardTargetOperator__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__NumericalRevT_long_t
SWIGINTERN PyObject * _wrap_OptimizeVar_BeginNextDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___mul____SWIG_2(operations_research::IntExpr *self, int64_t v)
SWIGINTERN PyObject * _wrap_RoutingModel_ActiveVehicleVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
PyObject * PyObjFrom< int64_t >(const int64_t &c)
static void * _p_operations_research__DisjunctiveConstraintTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_ScalProdGreaterOrEqual__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenPerformedBound__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * TypeRequirementChecker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
SWIGINTERN PyObject * _wrap_new_RoutingModel__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * Assignment_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_CheckConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_AttributeError
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAfterEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_var_selection_schema_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FixedDurationEndSyncedOnEndIntervalVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___le____SWIG_0(operations_research::IntExpr *self, int64_t v)
SWIGINTERN PyObject * _wrap_SearchMonitor_solver(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FinishCurrentSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__SearchLimit
SWIGINTERN PyObject * _wrap_Assignment_SetDurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name)
SWIGINTERN PyObject * _wrap_disown_Demon(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetPrimaryConstrainedDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * IntervalVarElement_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SequenceVar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_disown_IntVarLocalSearchFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_PerformedMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * Swig_var_RoutingModel_kNoDisjunction_get(void)
static swig_module_info swig_module
#define SWIGTYPE_p_operations_research__Decision
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAtStartWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__IntVarLocalSearchOperator
SWIGINTERN PyObject * _wrap_Solver_Cover(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_CostClassIndex[]
static void * _p_operations_research__BooleanVarTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Assignment_Add__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FixedDurationEndSyncedOnStartIntervalVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_AssignmentElement_Activated(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntExprTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntervalVar_OldEndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * RevBool_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Decision_RefuteWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Distribute(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenPerformedBound__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetHardTypeIncompatibilitiesOfType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___lt____SWIG_2(operations_research::IntExpr *self, operations_research::Constraint *other)
SWIGINTERN PyObject * _wrap_Solver_MemberCt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_unsigned_char[]
SWIGINTERN PyObject * _wrap_Solver_TransitionConstraint(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsLessOrEqualCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_Decision___repr__(operations_research::Decision *self)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAfterStart(operations_research::IntervalVar *self, operations_research::IntervalVar *other)
static swig_type_info _swigt__p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_t
SWIGINTERN PyObject * _wrap_Assignment_DurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__BaseObject
SWIGINTERN PyObject * _wrap_Solver_MemberCt(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___rsub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_RestartSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_display_level_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::DecisionBuilder * operations_research_Solver_VarStrValEvalTieBreakPhase(operations_research::Solver *self, std::vector< operations_research::IntVar * > const &vars, operations_research::Solver::IntVarStrategy var_str, operations_research::Solver::IndexEvaluator2 val_eval, std::function< int64_t(int64_t) > tie_breaker)
SWIGINTERN std::string operations_research_Decision___str__(operations_research::Decision *self)
static swig_type_info _swigt__p_operations_research__BaseLns
SWIGINTERN PyObject * _wrap_RoutingModel_GetMutableLocalCumulOptimizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FixedDurationStartSyncedOnStartIntervalVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_DefaultPhase(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenAnything__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SearchLeftDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_short[]
#define SWIG_From_long
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_persistent_impact_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_MaxEquality(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_ApplyLocksToAllVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_HasHardTypeIncompatibilities(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddDisjunction__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__LocalSearchMonitor
SWIGINTERN PyObject * _wrap_SearchMonitor_EnterSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__LocalSearchPhaseParameters
SWIGINTERN PyObject * _wrap_IntervalVar___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntVarElementTo_p_operations_research__AssignmentElement(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Constraint_Square(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_TransitCallback2
SWIGINTERN PyObject * TypeRegulationsChecker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_SequenceVarElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Distribute__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StaysInSyncWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddDimensionWithVehicleCapacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME int SWIG_Python_TypeErrorOccurred(PyObject *obj)
SWIGINTERN PyObject * _wrap_IntExpr_Min(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetAssignmentFromOtherModelAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_GlobalVehicleBreaksConstraint_Post(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_IsStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME void SWIG_Python_DestroyModule(PyObject *obj)
SWIGINTERN PyObject * _wrap_Solver_SubCircuit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarIterator_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_SetModule(clientdata, pointer)
SWIGINTERN PyObject * _wrap_Solver_Max__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Limit__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SumEquality__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___lt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME SwigPyClientData * SwigPyClientData_New(PyObject *obj)
SWIGINTERN PyObject * _wrap_Solver_MirrorInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__LocalDimensionCumulOptimizer_t_t
static swig_type_info _swigt__p_operations_research__Decision
static swig_type_info _swigt__p_operations_research__IntervalVar
SWIGINTERN PyObject * _wrap_Solver_TimeLimit__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_ReadAssignmentFromRoutes(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Phase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_long
static swig_cast_info _swigc__p_operations_research__RevT_bool_t[]
SWIGINTERN PyTypeObject * swig_varlink_type(void)
SWIGINTERN PyObject * _wrap_Solver_Assignment__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetMutableGlobalCumulOptimizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_ApplyLocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__AssignmentContainerT_operations_research__IntVar_operations_research__IntVarElement_t
SWIGINTERN PyObject * _wrap_RoutingModel_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetPerfectBinaryDisjunctions(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_RegisterTransitCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__RoutingIndexManager[]
SWIGINTERN PyObject * _wrap_Assignment_SetObjectiveValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_IntVar___repr__(operations_research::IntVar *self)
SWIGINTERN PyObject * _wrap_IntExpr___rmul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGUNUSEDPARM(p)
SWIGINTERN PyObject * _wrap_BooleanVar_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___abs__(operations_research::Constraint *self)
SWIGINTERN PyObject * _wrap_SequenceVarElement_Unperformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_PathCumul__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_BestValueSolutionCollector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_std__vectorT_operations_research__LocalSearchFilterManager__FilterEvent_t
SWIGINTERN PyObject * _wrap_Solver_ScalProd__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SolveAndCommit(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_LocalSearchFilterManager_Accept(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NotMemberCt(PyObject *self, PyObject *args)
static swig_type_info _swigt__p_operations_research__RoutingDimension
SWIGINTERN PyObject * _wrap_disown_BaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetEndRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_DimensionIndex[]
static void * _p_operations_research__TypeRequirementCheckerTo_p_operations_research__TypeRegulationsChecker(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_cast_info _swigc__p_operations_research__RegularLimit[]
SWIGINTERN operations_research::DecisionBuilder * operations_research_Solver_VarStrValEvalPhase(operations_research::Solver *self, std::vector< operations_research::IntVar * > const &vars, operations_research::Solver::IntVarStrategy var_str, operations_research::Solver::IndexEvaluator2 val_eval)
SWIGINTERN PyObject * _wrap_Solver_SearchLog__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Decision_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SolveFromAssignmentWithParameters__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsGreaterVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
#define SWIG_as_voidptr(a)
SWIGINTERN swig_type_info * SWIG_pchar_descriptor(void)
#define SWIGTYPE_p_operations_research__Demon
static swig_type_info _swigt__p_operations_research__OptimizeVar
SWIGINTERN PyObject * _wrap_IntervalVarContainer_Element(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_const_info swig_const_table[]
static void * _p_operations_research__BaseLnsTo_p_operations_research__LocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_Distribute__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SwigPyObject_disown(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
SWIGINTERN PyObject * _wrap_Solver_VariableLessOrEqualValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Min__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN int Swig_var_RoutingModelVisitor_kRemoveValues_set(PyObject *)
SWIGINTERN PyObject * _wrap_RoutingModel_GetCostClassIndexOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___mul____SWIG_2(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * _wrap_IntVar_OldMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_RandomConcatenateOperators__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIMEINLINE int SwigPyPacked_Check(PyObject *op)
#define SWIGTYPE_p_operations_research__LocalSearchFilterManager
SWIGINTERN PyObject * _wrap_IntervalVarElement_EndValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__SearchMonitor
SWIGINTERN PyObject * _wrap_RoutingModel_NextVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddWeightedVariableMinimizedByFinalizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__SymmetryBreakerTo_p_operations_research__DecisionVisitor(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_cast_info _swigc__p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t[]
static swig_type_info _swigt__p_operations_research__TypeRegulationsChecker
#define SWIG_Python_CallFunctor(functor, obj)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAtEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr_Square(operations_research::IntExpr *self)
SWIGINTERN PyObject * _wrap_RoutingModel_GetVehicleClassIndexOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr_IndexOf__SWIG_1(operations_research::IntExpr *self, std::vector< operations_research::IntVar * > const &vars)
SWIGINTERN PyObject * _wrap_Solver_Limit__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AllDifferent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NextSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_IsPerformedBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_DisjunctiveConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__DisjunctiveConstraint[]
static swig_type_info _swigt__p_unsigned_short
SWIGRUNTIME int SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
SWIGINTERN PyObject * _wrap_SequenceVarElement_SetUnperformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScalProdEquality__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_ConvertPtr(obj, pptr, type, flags)
SWIGINTERN PyObject * _wrap_IntervalVar_SetEndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb)
PyObject * FromObjectDecision(operations_research::Decision *obj)
SWIGINTERN PyObject * _wrap_SequenceVarContainer___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAtStart(operations_research::IntervalVar *self, operations_research::IntervalVar *other)
SWIGINTERN PyObject * _wrap_Constraint_IndexOf__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Min__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz)
SWIGINTERN PyObject * _wrap_RoutingModel_AddAtSolutionCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Operator__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_std__vectorT_std__pairT_long_long_t_t
SWIGINTERN PyObject * _wrap_Solver_IsLessOrEqualVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_EndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_WhenRange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___rmul__(operations_research::Constraint *self, int64_t v)
struct swig_const_info swig_const_info
SWIGINTERN PyObject * DefaultPhaseParameters_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__LocalSearchFilter
SWIGINTERN PyObject * _wrap_SolutionCollector_WallTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___ge____SWIG_2(operations_research::Constraint *self, operations_research::Constraint *other)
SWIGINTERN std::string operations_research_SearchMonitor___str__(operations_research::SearchMonitor *self)
SWIGINTERN PyObject * _wrap_Solver_ReSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::DecisionBuilder * operations_research_Solver_VarEvalValEvalTieBreakPhase(operations_research::Solver *self, std::vector< operations_research::IntVar * > const &vars, std::function< int64_t(int64_t) > var_eval, operations_research::Solver::IndexEvaluator2 val_eval, std::function< int64_t(int64_t) > tie_breaker)
SWIGINTERN PyObject * _wrap_RoutingModel_GetVisitTypePolicy(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
void HandleResult< void >(PyObject *pyresult)
SWIGINTERN PyObject * _wrap_Solver_SolveAndCommit__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_GetPostTravelEvaluatorOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__LocalSearchFilter[]
SWIGINTERN PyObject * _wrap_Solver_LastSolutionCollector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
bool CanConvertToLocalSearchFilter(PyObject *py_obj)
SWIGINTERN PyObject * _wrap_Solver_Solve(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SequenceVarLocalSearchOperator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Deactivate(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_HasTemporalTypeIncompatibilities(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
PyObject * FromObjectLocalSearchFilterManager(operations_research::LocalSearchFilterManager *obj)
SWIGINTERN int SWIG_Python_CheckNoKeywords(PyObject *kwargs, const char *name)
SWIGINTERN PyObject * _wrap_new_Solver__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingIndexManager_IndexToNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_RoutingIndexManager__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DisjunctiveConstraint_TransitionTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_UnaryTransitCallbackOrNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_Solver_ElementFunction(operations_research::Solver *self, std::function< int64_t(int64_t) > values, operations_research::IntVar *const index)
SWIGINTERN PyObject * _wrap_delete_IntVarLocalSearchOperator(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__LocalDimensionCumulOptimizer[]
SWIGINTERN PyObject * _wrap_IntervalVar_SetStartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__LocalSearchMonitor
static void * _p_operations_research__TypeIncompatibilityCheckerTo_p_operations_research__TypeRegulationsChecker(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntVar_IsVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Branches(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_Failures(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___sub____SWIG_0(operations_research::IntExpr *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_Solver_AllowedAssignments(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AssignVariablesValues(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_DefaultPhase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetStartRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___lt__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_WhenDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_IsMatchingModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___ne____SWIG_0(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * _wrap_RoutingModel_ComputeLowerBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * DisjunctiveConstraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_OldStartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsLessCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * IntVarLocalSearchFilter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetDurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_std__vectorT_std__pairT_int_int_t_t
void *(* swig_converter_func)(void *, int *)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_random_seed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__SequenceVar[]
static void * _p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_tTo_p_operations_research__LocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntervalVar_SetPerformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_BoolVar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__GlobalVehicleBreaksConstraintTo_p_operations_research__Constraint(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_FalseConstraint(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenStartRange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___eq____SWIG_1(operations_research::IntExpr *self, operations_research::IntExpr *other)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___mod____SWIG_1(operations_research::IntExpr *self, operations_research::IntExpr *e)
SWIGINTERN PyObject * _wrap_PropagationBaseObject_Name(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhaseParameters__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::LocalSearchFilter * operations_research_Solver_SumObjectiveFilter(operations_research::Solver *self, std::vector< operations_research::IntVar * > const &vars, operations_research::Solver::IndexEvaluator2 values, operations_research::Solver::LocalSearchFilterBound filter_enum)
SWIGINTERN PyObject * _wrap_Solver_Limit(PyObject *self, PyObject *args)
static swig_cast_info _swigc__p_operations_research__GlobalDimensionCumulOptimizer[]
SWIGINTERN PyObject * _wrap_Assignment_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_HasDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___abs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_GlobalVehicleBreaksConstraint_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAfterStartWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
SWIGINTERN PyObject * _wrap_RoutingDimension_TransitVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_VariableGreaterOrEqualValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetUnperformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__RegularLimit
SWIGINTERN PyObject * _wrap_IntVarElement_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenEndBound(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Phase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERNINLINE PyObject * SWIG_From_std_string(const std::string &s)
SWIGINTERN PyObject * _wrap_IntExpr___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___ge____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_std__vectorT_std__unique_ptrT_operations_research__GlobalDimensionCumulOptimizer_t_t
SWIGINTERN PyObject * _wrap_IntervalVarContainer_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_GetLocalOptimizerOffsetForVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_BeginNextDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsDifferentCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TemporalDisjunction__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAtEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__SolutionCollector
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAtEnd(operations_research::IntervalVar *self, operations_research::IntervalVar *other)
SWIGRUNTIME void SWIG_InitializeModule(void *clientdata)
#define SWIGTYPE_p_operations_research__SearchLimit
SWIGINTERN PyObject * _wrap_Solver_SemiContinuousExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_CloseVisitTypes(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_ForwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * IntVarContainer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__TypeRequirementChecker[]
SWIGINTERN operations_research::Constraint * operations_research_Constraint___lt____SWIG_0(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * _wrap_Assignment_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetNonZeroCostClassesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__RevT_long_t
SWIGINTERN PyObject * _wrap_disown_PropagationBaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Solve__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntVarLocalSearchFilterTo_p_operations_research__LocalSearchFilter(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * BaseLns_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * Decision_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_StartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__ChangeValueTo_p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_AllDifferent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__Solver__SearchLogParameters[]
SWIGINTERN PyObject * _wrap_DecisionBuilder___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_VarEvalValEvalPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * IntVarLocalSearchOperator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap___lshift____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_PathOperator_Neighbor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_IndexOf__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SwigPyPacked_repr(SwigPyPacked *v)
static void * _p_operations_research__DemonTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingModel_GetVehicleClassesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FixedDurationStartSyncedOnEndIntervalVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___ge____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_VehicleVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___ne____SWIG_2(operations_research::Constraint *self, operations_research::Constraint *other)
SWIGINTERN PyObject * _wrap_Solver___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t
SWIGINTERN PyObject * _wrap_IntExpr_Member(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SumEquality(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_CloseModelWithParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_newvarlink()
SWIGRUNTIME void SWIG_Python_RaiseOrModifyTypeError(const char *message)
static swig_type_info _swigt__p_operations_research__IntVarIterator
SWIGINTERN PyObject * _wrap_Solver_WeightedOptimize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_std__vectorT_operations_research__Assignment_const_p_t
static swig_cast_info _swigc__p_operations_research__ModelVisitor[]
SWIGINTERN PyObject * _wrap_IntExpr___gt__(PyObject *self, PyObject *args)
static swig_type_info _swigt__p_operations_research__Assignment
SWIGRUNTIME swig_type_info * SWIG_Python_TypeQuery(const char *type)
SWIGINTERN PyObject * _wrap_Solver_TemporalDisjunction(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingIndexManager_GetNumberOfVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___rmul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingIndexManager_GetNumberOfNodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_unsigned_long
SWIGINTERN PyObject * _wrap_OptimizeVar_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_Decision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarElement_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__IntervalVar
SWIGINTERN PyObject * _wrap_IntervalVar_EndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenAnything(PyObject *self, PyObject *args)
SWIGINTERN std::string operations_research_SequenceVar___repr__(operations_research::SequenceVar *self)
#define SWIG_Python_str_DelForPy3(x)
SWIGINTERN PyObject * _wrap_Demon_Desinhibit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___ne____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddDimensionWithVehicleTransitAndCapacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__LocalSearchOperator
static void * _p_operations_research__PropagationBaseObjectTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
static void PyFunctionSolverToVoid(PyObject *pyfunc, operations_research::Solver *s)
SWIGINTERN PyObject * _wrap_Solver_LocalSearchProfile(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN int Swig_var_RoutingModel_kNoPenalty_set(PyObject *)
static void * _p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_tTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingModel_SetMaximumNumberOfActiveVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__CastConstraintTo_p_operations_research__Constraint(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_FailDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_IntervalVar___str__(operations_research::IntervalVar *self)
static swig_cast_info _swigc__p_operations_research__ImprovementSearchLimit[]
static swig_cast_info _swigc__p_char[]
SWIGINTERN PyObject * _wrap_RoutingModel_GetRequiredTypeAlternativesWhenAddingType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenDurationRange(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_SetDurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Activate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetDurationRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IntVar__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_Solve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_Add__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__ImprovementSearchLimitTo_p_operations_research__SearchLimit(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIGTYPE_p_operations_research__TypeRegulationsConstraint
#define SWIGTYPE_p_std__functionT_long_flongF_t
#define SWIGTYPE_p_operations_research__GlobalVehicleBreaksConstraint
SWIGINTERN PyObject * _wrap_Solver_MonotonicElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
bool CanConvertToDecisionBuilder(PyObject *py_obj)
SWIGINTERN PyObject * _wrap_RevBool_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetAmortizedQuadraticCostFactorOfVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Assignment__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_GlobalVehicleBreaksConstraint_InitialPropagateWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Distribute__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Pack_AddWeightedSumLessOrEqualConstantDimension__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_CheckAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_EnterSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SearchLogWithCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___ge__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_SetValues(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_EndExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_RegisterPositiveUnaryTransitCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
SWIGINTERN PyObject * _wrap_Solver_Max__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___lt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_DelayedConstraintInitialPropagateCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___ne____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_NumericalRevInteger_Incr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__NumericalRevT_long_t
SWIGINTERN PyObject * Decision_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_WeightedOptimize(PyObject *self, PyObject *args)
PyObject * FromObjectDecisionBuilder(operations_research::DecisionBuilder *obj)
SWIGINTERN PyObject * _wrap_Solver_NestedOptimize__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_IsVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN int64_t operations_research_IntVarLocalSearchFilter_IndexFromVar(operations_research::IntVarLocalSearchFilter const *self, operations_research::IntVar *const var)
SWIGINTERN PyObject * _wrap_Solver_Constraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVar_RankLast(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TreeNoCycle(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetBackwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SearchLimit_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SearchMonitor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIMEINLINE PyObject * SWIG_Python_ExceptionType(swig_type_info *desc)
SWIGINTERN PyObject * _wrap_Solver_WeightedMaximize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr_MapTo(operations_research::IntExpr *self, std::vector< operations_research::IntVar * > const &vars)
SWIGINTERN PyObject * _wrap_RoutingModel_GetPickupAndDeliveryPolicyOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarContainer___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * PropagationBaseObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__SequenceVar
SWIGINTERN PyObject * _wrap_RoutingModel_IsEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DisjunctiveConstraint_SequenceVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsLessVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___add____SWIG_0(operations_research::IntExpr *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_OptimizeVar_AtSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIMEINLINE int SwigPyObject_Check(PyObject *op)
SWIGINTERN PyObject * _wrap_delete_LocalSearchFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_SetCumulVarSoftUpperBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_CostClassIndex
static void * _p_operations_research__AssignmentTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___ge____SWIG_0(operations_research::IntExpr *self, int64_t v)
SWIGINTERN void SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj)
static void * _p_operations_research__IntervalVarElementTo_p_operations_research__AssignmentElement(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_SolveAndCommit__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IntConst__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Distribute__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_OldMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_SafeEndExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ConditionalExpression(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__AssignmentContainerT_operations_research__IntVar_operations_research__IntVarElement_t[]
SWIGINTERN PyObject * _wrap_Assignment_AddObjective(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IntervalVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Phase(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsGreaterCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
SWIGINTERN PyObject * _wrap_LocalSearchFilterManager_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarLocalSearchOperatorTemplate_Start(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_VehicleIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_DecisionBuilder___repr__(operations_research::DecisionBuilder *self)
SWIGINTERN PyObject * _wrap_Solver_ScalProdLessOrEqual__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NullIntersectExcept(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetPickupIndexPairs(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_unsigned_short[]
SWIGINTERN PyObject * _wrap_Solver_IsLessCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
struct swig_globalvar swig_globalvar
SWIGINTERN PyObject * IntVarLocalSearchFilter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_ChangeValue_ModifyValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TreeNoCycle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGPY_CAPSULE_NAME
SWIGINTERN PyObject * _wrap_delete_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__OptimizeVar
SWIGRUNTIME void * SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags)
static void * _p_operations_research__LocalSearchFilterTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIG_ArgError(r)
SWIGRUNTIME void SWIG_Python_AddErrorMsg(const char *mesg)
SWIGINTERN PyObject * _wrap_RoutingDimension_AddNodePrecedence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetAmortizedLinearCostFactorOfVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN int64_t operations_research_BaseLns___getitem__(operations_research::BaseLns *self, int index)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___lt____SWIG_1(operations_research::Constraint *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_RoutingModel_SetArcCostEvaluatorOfAllVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_AcceptNeighbor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FixedDurationIntervalVar(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_RemoveValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__RevT_bool_t
SWIGINTERN PyObject * _wrap_Solver_BestValueSolutionCollector(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_delete_SearchLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERNINLINE PyObject * SWIG_FromCharPtrAndSize(const char *carray, size_t size)
SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name)
SWIGINTERN PyObject * _wrap_RoutingModel_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ElementEquality__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IntVar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__IntVarElement[]
SWIGINTERN PyObject * _wrap_BooleanVar_WhenRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SolveWithParameters__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_std__functionT_long_flongF_t[]
static swig_type_info _swigt__p_operations_research__BaseIntExpr
SWIGINTERN PyObject * IntervalVar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_NewPointerObj(ptr, type, flags)
SWIGINTERN PyObject * _wrap_Assignment_DurationValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__GlobalVehicleBreaksConstraintTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_SequenceVarElement_BackwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddIntervalToAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME void SWIG_Python_SetModule(swig_module_info *swig_module)
SWIGINTERN PyObject * _wrap_RoutingDimension_SetBreakIntervalsOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RevInteger_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__SequenceVarTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_DefaultRoutingSearchParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Min__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__GlobalVehicleBreaksConstraint[]
#define SWIG_GUARD(mutex)
SWIGINTERN PyObject * _wrap_IntExpr___floordiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__RoutingModelVisitor
static swig_cast_info _swigc__p_RoutingDimensionIndex[]
SWIGINTERN PyObject * _wrap_Solver_BoolVar(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_LocalSearchFilter_IsIncremental(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__BaseIntExpr[]
SWIGINTERN PyObject * _wrap_Solver_FailStamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_CumulVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_GetCumulVarSoftLowerBoundCoefficient(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN void SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj)
SWIGINTERN PyObject * _wrap_Solver_RandomConcatenateOperators__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_Unperformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_RoutingDimensionIndex
static swig_cast_info _swigc__p_operations_research__SymmetryBreaker[]
SWIGINTERN PyObject * _wrap_Assignment_Deactivate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AcceptedNeighbors(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__IntVar[]
SWIGINTERN PyObject * _wrap_Constraint___gt____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_POINTER_NO_NULL
SWIGINTERN PyObject * _wrap_SolutionCollector_SolutionCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_AssignmentElement_Activate(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntVarLocalSearchOperatorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntExpr___mul__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___mul__(PyObject *self, PyObject *args)
#define SWIG_Python_str_FromFormat
static void * _p_operations_research__SequenceVarLocalSearchOperatorTo_p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_t(void *x, int *SWIGUNUSEDPARM(newmemory))
static void * _p_operations_research__OptimizeVarTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_InversePermutationConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___le____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___le____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Add__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_AddObjective(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_OptimizeVar_RefuteDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_DimensionIndex
bool CanConvertToIntervalVar(PyObject *py_obj)
SWIGINTERN PyObject * _wrap_Solver_IsEqualCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_InstallConstants(d, constants)
SWIGINTERN PyObject * _wrap___lshift____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarElement_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
struct swig_type_info *(* swig_dycast_func)(void **)
SWIGINTERN PyObject * _wrap_disown_BaseLns(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddTemporalTypeIncompatibility(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetNumberOfDecisionsInFirstSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_std__ostream
SWIGINTERN PyObject * _wrap_Pack_AddWeightedSumOfAssignedDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntVarLocalSearchFilterTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhase__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_std__vectorT_std__unique_ptrT_operations_research__GlobalDimensionCumulOptimizer_t_t[]
SWIGINTERN PyObject * _wrap_IntVarLocalSearchFilter_Synchronize(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_BestValueSolutionCollector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_persistent_impact_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_GetTransitValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__PropagationMonitor
SWIGINTERN PyObject * _wrap_Solver_IsMemberVar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__DecisionBuilderTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIG_IOError
SWIGINTERN PyObject * _wrap_IntervalVar_MayBePerformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__ModelVisitor
bool CanConvertToDecision(PyObject *py_obj)
static PyMethodDef SwigMethods[]
SWIGINTERN PyObject * _wrap_Solver_WeightedMaximize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___abs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IntVar__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingIndexManager_GetEndIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenStartBound__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_ReadAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_NullReferenceError
SWIGINTERN PyObject * _wrap_Solver_WeightedMinimize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAfterEndWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyTypeObject * SwigPyPacked_type(void)
SWIGINTERN PyObject * _wrap_RoutingModel_GetNumberOfDisjunctions(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__AssignmentContainerT_operations_research__IntervalVar_operations_research__IntervalVarElement_t[]
SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty)
bool CanConvertToIntExpr(PyObject *py_obj)
SWIGINTERN PyObject * _wrap_IntervalVar_EndsBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_TypeIncompatibilityChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__IntVarLocalSearchOperator
SWIGINTERN PyObject * _wrap_Solver_SearchDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__LocalSearchPhaseParameters
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___rsub__(operations_research::IntExpr *self, int64_t v)
static swig_type_info _swigt__p_operations_research__AssignmentContainerT_operations_research__IntervalVar_operations_research__IntervalVarElement_t
SWIGINTERN PyObject * _wrap_Constraint___le____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_SetSpanCostCoefficientForVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___rmul__(operations_research::IntExpr *self, int64_t v)
SWIGINTERN PyObject * _wrap_Constraint___mul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__ModelVisitorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_SearchMonitor_AtSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Pack_InitialPropagateWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___gt____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_MapTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_VehicleCostsConsideredVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetMutableLocalCumulMPOptimizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_initialization_splits_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperator_NextNeighbor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__FirstSolutionStrategy__Value[]
SWIGINTERN PyObject * _wrap_Assignment_Bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__BaseLnsTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIG_POINTER_DISOWN
#define SWIG_STATIC_POINTER(var)
struct swig_type_info swig_type_info
SWIGINTERN PyObject * _wrap_DecisionBuilder___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__BaseLnsTo_p_operations_research__IntVarLocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingDimension_GetSpanUpperBoundForVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * AssignmentElement_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__PropagationBaseObject
SWIGINTERN PyObject * _wrap_RoutingModel_HasTypeRegulations(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___eq____SWIG_0(operations_research::IntExpr *self, int64_t v)
SWIGINTERN PyObject * _wrap_Solver_NonOverlappingBoxesConstraint(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAfterStartWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_Solver___str__(operations_research::Solver *self)
static swig_type_info _swigt__p_operations_research__SolutionPool
SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz)
SWIGINTERN PyObject * _wrap_IntExpr___lt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_PropagationBaseObject_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsMemberCt(PyObject *self, PyObject *args)
SWIGINTERN PyObject * RevInteger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarContainer_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__RegularLimitTo_p_operations_research__SearchMonitor(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_SearchLimit_RefuteDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ElementEquality__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Pack_AddWeightedSumEqualVarDimension(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___ge____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetPerformedMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__PropagationBaseObject[]
static swig_type_info _swigt__p_std__vectorT_std__pairT_int_int_t_t
SWIGINTERN PyObject * _wrap_RoutingModel_RegisterUnaryTransitVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_Solver(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__RoutingModel__VehicleTypeContainer
SWIGINTERN PyObject * _wrap_SearchMonitor___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__IntVarIterator
#define SWIGTYPE_p_operations_research__RoutingModel__VehicleTypeContainer
SWIGINTERN PyObject * _wrap_RoutingModel_GetDimensionsWithSoftOrSpanCosts(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN int operations_research_BaseLns___len__(operations_research::BaseLns *self)
SWIGINTERN PyObject * _wrap_BaseLns___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz)
SWIGINTERN PyObject * _wrap_Assignment_Add(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FixedDurationIntervalVar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_GetGlobalOptimizerOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_RoutingModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Solve__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarContainer_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_RemoveInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME int SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty)
SWIGINTERN void SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg)
SWIGINTERN PyObject * _wrap_DisjunctiveConstraint_SetTransitionTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint_IndexOf__SWIG_1(operations_research::Constraint *self, std::vector< operations_research::IntVar * > const &vars)
static swig_type_info _swigt__p_operations_research__IntVarElement
SWIGINTERN PyObject * _wrap_Solver_WallTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_IntExpr___str__(operations_research::IntExpr *self)
SWIGINTERN PyObject * _wrap_IntervalVar_EndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___eq____SWIG_1(operations_research::Constraint *self, operations_research::IntExpr *other)
PyObject * FromObjectIntExpr(operations_research::IntExpr *obj)
SWIGINTERN PyObject * _wrap_RoutingModel_GetGlobalDimensionCumulMPOptimizers(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_TransitCallback1[]
SWIGINTERN PyObject * _wrap_Assignment_SetEndValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_PickupToDeliveryLimitFunction[]
SWIGINTERN PyObject * _wrap_RoutingModel_SetVisitType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___eq____SWIG_2(operations_research::Constraint *self, operations_research::Constraint *other)
static swig_cast_info _swigc__p_operations_research__RoutingModelVisitor[]
SWIGINTERN PyObject * RoutingModelVisitor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScalProdLessOrEqual(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_StartValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_PathCumul__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___eq____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SwigPyObject_format(const char *fmt, SwigPyObject *v)
SWIGINTERN PyObject * _wrap_Solver_IntervalRelaxedMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetAllowedVehiclesForIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__SearchLimitTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_BaseLns_InitFragments(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__DecisionVisitorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Assignment_SetSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__GlobalDimensionCumulOptimizer_t_t
SWIGINTERN PyObject * _wrap_IntVar_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Stamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_initialization_splits_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAtStartWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAfterStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___floordiv__(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * _wrap_Solver_IntervalRelaxedMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_BackwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAt(operations_research::IntervalVar *self, int64_t date)
SWIGINTERN PyObject * _wrap_Assignment_Save(PyObject *self, PyObject *args)
SWIGINTERN operations_research::DecisionBuilder * operations_research_Solver_EvalEvalStrTieBreakPhase(operations_research::Solver *self, std::vector< operations_research::IntVar * > const &vars, operations_research::Solver::IndexEvaluator2 evaluator, operations_research::Solver::IndexEvaluator1 tie_breaker, operations_research::Solver::EvaluatorStrategy str)
SWIGINTERN PyObject * _wrap_Solver_Parameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Pack(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_StartValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BaseObject___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetStartRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsMemberCt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_SearchMonitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_LocalSearchOperator_NextNeighbor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__SolutionCollectorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_SequenceVar_RankFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetLocalDimensionCumulOptimizers(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_signed_char
#define SWIGTYPE_p_operations_research__TypeRegulationsChecker
SWIGINTERN PyObject * _wrap_Constraint___add__(PyObject *self, PyObject *args)
SWIGINTERN std::string operations_research_IntExpr___repr__(operations_research::IntExpr *self)
SWIGINTERN PyObject * _wrap_IntExpr_Bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetDepot(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * Solver_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Element__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FalseConstraint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhaseParameters(PyObject *self, PyObject *args)
SWIGINTERN int SWIG_AsPtr_std_string(PyObject *obj, std::string **val)
SWIGINTERN PyObject * GlobalVehicleBreaksConstraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetStartValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DecisionBuilder_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME int SWIG_Python_ArgFail(int argnum)
SWIGINTERN PyObject * LocalSearchFilter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * DefaultPhaseParameters_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SimulatedAnnealing(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME swig_type_info * SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
SWIGINTERN PyObject * _wrap_Solver_Rand64(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
PyObject * FromObjectIntVar(operations_research::IntVar *obj)
SWIGINTERNINLINE PyObject * SWIG_From_bool(bool value)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAtStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_TypeRegulationsConstraint_Post(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_std__vectorT_absl__flat_hash_setT_int_t_t
SWIGINTERN PyObject * _wrap_Solver_GuidedLocalSearch__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__RoutingModelVisitor
SWIGINTERN operations_research::Constraint * operations_research_IntExpr_NotMember(operations_research::IntExpr *self, std::vector< int64_t > const &starts, std::vector< int64_t > const &ends)
SWIGINTERN PyObject * _wrap_SearchMonitor_RefuteDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetEndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME int SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own)
static swig_type_info _swigt__p_operations_research__SearchLog
SWIGINTERN PyObject * _wrap_Solver_Max__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TrueConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___eq____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Deactivate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::DecisionBuilder * operations_research_Solver_EvalEvalStrPhase(operations_research::Solver *self, std::vector< operations_research::IntVar * > const &vars, operations_research::Solver::IndexEvaluator2 evaluator, operations_research::Solver::EvaluatorStrategy str)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenStartRange__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_NewPackedObj(ptr, sz, type)
SWIGINTERN PyObject * _wrap_IntervalVar_PerformedExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__RoutingIndexManager
SWIGINTERN PyObject * _wrap_Constraint___sub__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_SetEndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenEndRange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_DelayedPathCumul(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVar_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__ChangeValueTo_p_operations_research__LocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_SequenceVar___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_SafeDurationExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LubyRestart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__NumericalRevT_long_t[]
SWIGINTERN PyObject * _wrap_RoutingModel_AddVariableTargetToFinalizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_std__vectorT_std__pairT_long_long_t_t[]
SWIGINTERN PyObject * _wrap_Solver_Limit__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_std__functionT_long_flong_longF_t[]
SWIGINTERN PyObject * _wrap_Solver_VarEvalValStrPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScalProd__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__PathOperatorTo_p_operations_research__IntVarLocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhaseParameters__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetPerformedMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_RegisterTransitMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * BaseLns_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_GetModule(clientdata)
SWIGINTERN PyObject * _wrap_IntervalVar_StartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__TypeIncompatibilityChecker
static swig_cast_info _swigc__p_operations_research__TypeIncompatibilityChecker[]
static void * _p_operations_research__BaseLnsTo_p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingDimension_SetSpanCostCoefficientForAllVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_unsigned_int[]
static void * _p_operations_research__DisjunctiveConstraintTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIGTYPE_p_operations_research__BaseLns
SWIGINTERN PyObject * _wrap_delete_IntVarLocalSearchFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetPerformedMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_WhenDomain(PyObject *self, PyObject *args)
static swig_type_info _swigt__p_int
SWIGINTERN PyObject * _wrap_RoutingModel_SolveWithParameters__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_DurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___le____SWIG_0(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * _wrap_Solver_SolutionsLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_ObjectiveValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * Pack_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME void SWIG_PropagateClientData(void)
static swig_cast_info _swigc__p_unsigned_long[]
SWIGINTERN PyObject * _wrap_RoutingModel_MakeSelfDependentDimensionFinalizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___neg__(operations_research::IntExpr *self)
SWIGINTERN PyObject * _wrap_RoutingModel_AddDisjunction__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_random_seed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * NumericalRevInteger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Assignment(PyObject *self, PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___radd__(operations_research::Constraint *self, int64_t v)
static swig_cast_info _swigc__p_operations_research__Pack[]
SWIGINTERN PyObject * _wrap_RoutingDimension_ShortestTransitionSlack(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetFixedCostOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_RoutingModelVisitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IntVar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SumEquality__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScalProdEquality__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhaseParameters__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddPickupAndDeliverySets(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetArcCostForClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SwigPyPacked_str(SwigPyPacked *v)
SWIGINTERN PyObject * _wrap_IntVarIterator_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScalProdEquality__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERNINLINE PyObject * SWIG_From_unsigned_SS_long(unsigned long value)
SWIGINTERN PyObject * _wrap_Constraint___gt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__FirstSolutionStrategy__Value
SWIGINTERN PyObject * _wrap_RoutingModel_GetRequiredTypeAlternativesWhenRemovingType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__TypeRegulationsConstraint[]
SWIGINTERN PyObject * _wrap_RoutingModel_GetVehicleOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Pack_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___gt____SWIG_2(operations_research::IntExpr *self, operations_research::Constraint *other)
SWIGINTERN PyObject * _wrap_Assignment_HasObjective(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAtStartWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___sub____SWIG_2(operations_research::IntExpr *self, int64_t v)
SWIGINTERN PyObject * _wrap_IntervalVarContainer_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME int SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
SWIGINTERN PyObject * _wrap_IntVarContainer___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ElementEquality(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_Min(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_RoutingModelVisitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_WeightedMinimize(PyObject *self, PyObject *args)
static swig_type_info _swigt__p_long
SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type)
SWIGINTERN PyObject * _wrap_Solver_PathCumul(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___ne____SWIG_2(operations_research::IntExpr *self, operations_research::Constraint *other)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchFilter_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__BooleanVarTo_p_operations_research__IntExpr(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntExpr___sub____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_HasPickupToDeliveryLimits(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___sub__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetDurationValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAfterEnd(operations_research::IntervalVar *self, operations_research::IntervalVar *other)
SWIGINTERN std::string operations_research_DecisionBuilder___str__(operations_research::DecisionBuilder *self)
SWIGRUNTIMEINLINE PyObject * SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type)
SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty)
SWIGINTERN PyObject * _wrap_Constraint_IndexOf__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_BeginFail(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_MutableIntVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_NumericalRevInteger(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___ne____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static PyMethodDef SwigMethods_proxydocs[]
SWIGINTERN PyObject * _wrap_Solver_Count(PyObject *self, PyObject *args)
SWIGINTERN PyObject * SearchMonitor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__Assignment
SWIGINTERN PyObject * _wrap_IntVarIterator_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_decision_builder_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * OptimizeVar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SWIG_This(void)
static void * _p_operations_research__SolutionPoolTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_type_info _swigt__p_operations_research__DefaultPhaseParameters
SWIGINTERN PyObject * _wrap_delete_SequenceVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__TypeRequirementChecker
SWIGINTERN PyObject * Demon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME void SWIG_Python_TypeError(const char *type, PyObject *obj)
SWIGINTERN PyObject * _wrap_SolutionCollector_Add(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsLessCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsGreaterOrEqualCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__DisjunctiveConstraint
SWIGINTERN PyObject * _wrap_IntervalVar_WhenPerformedBound(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperatorTemplate_OldValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Solve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddVariableMinimizedByFinalizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_RoutingDisjunctionIndex[]
SWIGINTERN PyObject * _wrap_IntervalVar_SetDurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_BaseObject___repr__(operations_research::BaseObject *self)
SWIGINTERN PyObject * _wrap_SequenceVar_RankNotLast(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN int SWIG_AsVal_int(PyObject *obj, int *val)
SWIGINTERN PyObject * RevInteger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SWIG_Python_AppendOutput(PyObject *result, PyObject *obj)
SWIGINTERN PyObject * _wrap_delete_Demon(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_TYPE_TABLE_NAME
SWIGINTERN PyObject * _wrap_Solver_NonOverlappingBoxesConstraint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_BUILTIN_TP_INIT
SWIGINTERN PyObject * RoutingModelVisitor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_DisjunctionIndex[]
SWIGINTERN PyObject * _wrap_RoutingModel_GetCostClassesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_SlackVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * RoutingIndexManager_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsEqualCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__SearchLogTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Pack_AddSumVariableWeightsLessOrEqualConstantDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_unsigned_int
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StaysInSyncWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
SWIGINTERN PyObject * _wrap_RoutingModel_CompactAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___lt__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___rsub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Cumulative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__BooleanVar
static void * _p_operations_research__PathOperatorTo_p_operations_research__LocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIG_CAST_NEW_MEMORY
SWIGRUNTIME PyObject * SwigPyObject_repr(SwigPyObject *v)
SWIGINTERN PyObject * Constraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_IntVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__PackTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntervalVarElement_StartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___lt____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarElement___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___mod____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddVariableMaximizedByFinalizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetObjectiveRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN int SWIG_AsVal_long(PyObject *obj, long *val)
SWIGINTERN PyObject * _wrap_Solver_Optimize(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_Constraint___repr__(operations_research::Constraint *self)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_heuristic_num_failures_limit_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SolveFromAssignmentWithParameters__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * DecisionBuilder_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap___lshift____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetStartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddLocalSearchFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_ObjectiveBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntVarTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIGTYPE_p_std__functionT_long_flong_longF_t
SWIGINTERN PyObject * _wrap_Assignment_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
struct swig_module_info swig_module_info
SWIGINTERN PyObject * _wrap_OptimizeVar_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Add__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
PyObject * FromObjectLocalSearchOperator(operations_research::LocalSearchOperator *obj)
SWIGINTERN PyObject * _wrap_delete_TypeRegulationsChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_heuristic_num_failures_limit_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsMemberCt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Try(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__Constraint
SWIGINTERN PyObject * _wrap_Solver_ConstantRestart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_OldEndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_RoutingDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__BaseIntExprTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_SearchMonitor_ExitSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetDurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__Solver
SWIGINTERN PyObject * _wrap_Constraint___le____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Maximize(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_tTo_p_operations_research__LocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_AllDifferentExcept(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__IntervalVar[]
static void * _p_operations_research__IntVarLocalSearchOperatorTo_p_operations_research__LocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Assignment_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_IntervalVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__GlobalVehicleBreaksConstraintTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_type_info _swigt__p_std__functionT_long_flongF_t
SWIGINTERN PyObject * _wrap_IntExpr___floordiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Limit__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SWIG_Python_ErrorType(int code)
static swig_type_info _swigt__p_VehicleClassIndex
#define SWIG_ConvertPtrAndOwn(obj, pptr, type, flags, own)
SWIGINTERN PyObject * _wrap_delete_TypeIncompatibilityChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TreeNoCycle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__OptimizeVarTo_p_operations_research__SearchMonitor(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_cast_info _swigc__p_operations_research__BaseLns[]
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAtEnd(operations_research::IntervalVar *self, operations_research::IntervalVar *other)
SWIGINTERN PyObject * _wrap_AssignmentElement_Deactivate(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_Max(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetMutableDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__SolutionCollector[]
SWIGINTERN int SWIG_AsVal_bool(PyObject *obj, bool *val)
SWIGRUNTIME void SwigPyClientData_Del(SwigPyClientData *data)
static swig_cast_info _swigc__p_operations_research__ChangeValue[]
bool CanConvertToLocalSearchFilterManager(PyObject *py_obj)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_heuristic_period_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StaysInSync(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_PathCumul__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__SearchMonitorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_type_info _swigt__p_operations_research__LocalSearchOperator
SWIGRUNTIME SwigPyObject * SWIG_Python_GetSwigThis(PyObject *pyobj)
static swig_type_info _swigt__p_operations_research__Pack
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAfterEndWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
SWIGINTERN PyObject * _wrap_Solver_WeightedMinimize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_MustBePerformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetStartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_Add__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___ge____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_std__vectorT_operations_research__RoutingDimension_p_t[]
#define SWIGTYPE_p_operations_research__IntVarLocalSearchFilter
SWIGINTERN PyObject * GlobalVehicleBreaksConstraint_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN void swig_varlink_dealloc(swig_varlinkobject *v)
SWIGINTERN PyObject * _wrap_RoutingDimension_FixedTransitVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarContainer___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__BaseObject[]
SWIGINTERN PyObject * _wrap_Solver_ScalProd(PyObject *self, PyObject *args)
SWIGINTERN PyObject * swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v))
SWIGINTERN PyObject * _wrap_RoutingModel_IgnoreDisjunctionsAlreadyForcedToZero(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Cumulative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_HasBreakConstraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__SequenceVarElementTo_p_operations_research__AssignmentElement(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntExpr___gt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_WhenRange(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_Add__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetPerformedMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__TypeRegulationsConstraintTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingModel_AddDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAtStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_long[]
SWIGINTERN int Swig_var_RoutingModel_kNoDisjunction_set(PyObject *)
SWIGINTERN PyObject * _wrap_Solver_IsDifferentCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t
SWIGINTERN PyObject * _wrap_BooleanVar_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info * swig_type_initial[]
SWIGINTERN PyObject * _wrap_SearchMonitor_AcceptSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScalProdEquality(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_new_Constraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntVarIteratorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_ScalProdEquality__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddConstantDimensionWithSlack(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarElement_SetForwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static ReturnT InvokePythonCallableReturning(PyObject *pyfunc, const char *format, Args... args)
SWIGINTERN PyObject * Swig_var_RoutingModelVisitor_kRemoveValues_get(void)
SWIGINTERN PyObject * _wrap_Solver_IsMemberVar(PyObject *self, PyObject *args)
static void * _p_operations_research__BaseIntExprTo_p_operations_research__IntExpr(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_cast_info _swigc__p_operations_research__PropagationMonitor[]
SWIGINTERN PyObject * _wrap_Assignment_ObjectiveMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_disown_IntVarLocalSearchOperator(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_std__ostream
static swig_type_info _swigt__p_operations_research__DecisionBuilder
SWIGINTERN PyObject * _wrap_BaseLns_FragmentSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
bool CanConvertToSearchMonitor(PyObject *py_obj)
SWIGINTERN PyObject * _wrap_BaseObject___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME void SwigPyPacked_dealloc(PyObject *v)
SWIGINTERN PyObject * _wrap_Solver_ShouldFail(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__PathOperator
static swig_type_info * swig_types[104]
SWIGINTERN PyObject * _wrap_BooleanVar_DomainIteratorAux(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___ge____SWIG_0(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * _wrap_Solver_AllowedAssignments__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_End(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_FindErrorInRoutingSearchParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__Demon
SWIGINTERN PyObject * _wrap_disown_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Pack_AddWeightedSumLessOrEqualConstantDimension__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Rand32(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_NumIntervalVars(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___sub____SWIG_2(operations_research::Constraint *self, int64_t v)
SWIGINTERN int Swig_var_RoutingModelVisitor_kLightElement2_set(PyObject *)
SWIGINTERN PyObject * SWIG_Python_str_FromChar(const char *c)
SWIGINTERN PyObject * _wrap_RevInteger_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntExprTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_p_t
SWIGINTERN PyObject * _wrap_new_BaseLns(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ConstraintInitialPropagateCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_RevInteger(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AreEmptyRouteCostsConsideredForVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
SWIGINTERN PyObject * _wrap_Solver_NotMemberCt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__SearchMonitor
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_decision_builder_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint_MapTo(operations_research::Constraint *self, std::vector< operations_research::IntVar * > const &vars)
SWIGINTERN PyObject * RoutingDimension_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___le____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Pack_AddCountUsedBinDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarLocalSearchOperatorTemplate_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIMEINLINE int SWIG_Python_CheckImplicit(swig_type_info *ty)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperatorTemplate_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetDurationValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_HasTemporalTypeRequirements(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetNumberOfVisitTypes(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsDifferentCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer
SWIGINTERN PyObject * _wrap_Solver_TemporalDisjunction__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAt(operations_research::IntervalVar *self, int64_t date)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___ne____SWIG_1(operations_research::Constraint *self, operations_research::IntExpr *other)
SWIGINTERN void SWIG_Python_FixMethods(PyMethodDef *methods, swig_const_info *const_table, swig_type_info **types, swig_type_info **types_initial)
SWIGINTERN PyObject * _wrap_RoutingModel_GetDimensionOrDie(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___sub____SWIG_1(operations_research::Constraint *self, operations_research::Constraint *other)
SWIGINTERN PyObject * _wrap_RoutingModel_GetHomogeneousCost(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsEqualVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BaseObject_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhase(PyObject *self, PyObject *args)
static swig_type_info _swigt__p_operations_research__TypeRequirementChecker
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___rsub__(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * _wrap_IntervalVar_CrossesDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___eq____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__ConstraintTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIGTYPE_p_operations_research__SequenceVarElement
SWIGINTERN operations_research::Constraint * operations_research_IntExpr_Member(operations_research::IntExpr *self, std::vector< int64_t > const &values)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAfterEndWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
SWIGINTERN PyObject * _wrap_Solver_IntVar(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_Bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_LocalOptimum(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Deactivate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVar_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__SequenceVarLocalSearchOperatorTo_p_operations_research__LocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_type_info _swigt__p_operations_research__CastConstraint
SWIGINTERN PyObject * _wrap_RoutingModel_IsVehicleUsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarElement_Max(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__RegularLimitTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingModel_SetPickupAndDeliveryPolicyOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Operator(PyObject *self, PyObject *args)
static swig_cast_info _swigc__p_std__vectorT_std__vectorT_long_t_t[]
SWIGINTERN PyObject * _wrap_SolutionCollector_Add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_MemoryError
SWIGINTERN PyObject * _wrap_RoutingDimension_GetPreTravelEvaluatorOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_TypeRequirementChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_var_selection_schema_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetAutomaticFirstSolutionStrategy(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__DecisionTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
static void * _p_operations_research__BaseIntExprTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_type_info _swigt__p_operations_research__SequenceVarLocalSearchOperator
SWIGINTERN PyObject * _wrap_IntervalVar_WhenEndBound__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsMemberVar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAtEndWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SumObjectiveFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Decision___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Objective(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * TypeRequirementChecker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntVarTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_cast_info _swigc__p_operations_research__RoutingModel__VehicleTypeContainer[]
SWIGINTERN PyObject * _wrap_delete_DecisionBuilder(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultRoutingModelParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_IntervalVar___repr__(operations_research::IntervalVar *self)
SWIGINTERN PyObject * _wrap_Constraint___eq____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_IndexOf__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_SystemError
#define SWIG_DivisionByZero
SWIGINTERN PyObject * _wrap_RoutingModel_vehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * BaseObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_MemberCt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetFirstSolutionEvaluator(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__IntervalVarElement[]
SWIGINTERN PyObject * _wrap_SequenceVar_Interval(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__IntExpr
SWIGINTERN PyObject * _wrap_Assignment_ObjectiveMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_EndFail(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_PropagationBaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_char
SWIGINTERN PyObject * _wrap_Constraint___sub____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Operator__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___abs__(operations_research::IntExpr *self)
static void * _p_operations_research__SequenceVarTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_SumGreaterOrEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__AssignmentContainerT_operations_research__SequenceVar_operations_research__SequenceVarElement_t[]
SWIGINTERN PyObject * _wrap_new_Demon(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchLimit_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Distribute__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Solve__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_EvalEvalStrPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_DurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_std__functionT_long_flong_longF_t
SWIGINTERN PyObject * _wrap_IntExpr___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Solutions(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * PathOperator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___ne____SWIG_1(operations_research::IntExpr *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_Solver_IndexOfConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap___lshift__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TransitionConstraint__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * IntVarIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_RoutingDisjunctionIndex
static swig_type_info _swigt__p_RoutingDisjunctionIndex
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_CrossesDate(operations_research::IntervalVar *self, int64_t date)
static void * _p_operations_research__ImprovementSearchLimitTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_delete_DefaultPhaseParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyTypeObject * SwigPyObject_type(void)
SWIGINTERN PyObject * _wrap_Assignment_PerformedMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SolveOnce(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__AssignmentTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_Compose(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * BaseObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarElement_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetSingleNodesOfType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__RoutingDimension
SWIGINTERN PyObject * _wrap_SequenceVarContainer_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetPerformedRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_OverflowError
SWIGINTERN operations_research::IntExpr * operations_research_Constraint_IndexOf__SWIG_0(operations_research::Constraint *self, std::vector< int64_t > const &vars)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___mul____SWIG_0(operations_research::IntExpr *self, operations_research::IntExpr *other)
static void * _p_operations_research__LocalSearchOperatorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_new_RoutingIndexManager__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetAmortizedCostFactorsOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyTypeObject * SwigPyObject_TypeOnce(void)
#define SWIG_IsOK(r)
SWIGINTERN PyObject * _wrap_IntVar_WhenBound__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_RegisterPositiveTransitCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_LocalSearchFilterManager_Synchronize(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_NumericalRevInteger_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntervalVarTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_CustomLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN int SWIG_AsCharPtrAndSize(PyObject *obj, char **cptr, size_t *psize, int *alloc)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_display_level_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__IntervalVarElement
SWIGINTERN PyObject * _wrap_new_NumericalRevInteger(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_RevBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_UnperformedPenalty(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__SequenceVarElement
SWIGINTERN PyObject * _wrap_new_IntVarLocalSearchOperator__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__GlobalDimensionCumulOptimizer
SWIGINTERN PyObject * _wrap_Solver_Min(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_BaseLns_AppendToFragment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenEndRange__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAfterStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_AvoidsDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__SequenceVar
SWIGINTERN PyObject * _wrap_Assignment_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ConstraintAdder(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Operator__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_disown_Decision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_CostVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_ActiveVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__PathOperatorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntVarLocalSearchFilter_IndexFromVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__IntExpr
SWIGINTERN PyObject * _wrap_IntExpr_Square(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_HasVehicleWithCostClassIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetPerformedRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AddConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_run_all_heuristics_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t
SWIGINTERN PyObject * _wrap_disown_LocalSearchOperator(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddHardTypeIncompatibility(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_AcquirePtr(ptr, src)
SWIGINTERN PyObject * _wrap_IntVarContainer_Store(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_solver(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_LocalSearchFilter_Accept(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAtEndWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetDurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WasPerformedBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Count__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_IndexError
SWIGINTERN PyObject * _wrap_Solver_IsGreaterOrEqualVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * RevBool_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ElementFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_NumericalRevInteger_Decr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___gt____SWIG_1(operations_research::Constraint *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_Solver_AllSolutionCollector(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_RandomLnsOperator(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenEndBound__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetNumOfSingletonNodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * LocalSearchOperator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenAnything__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_Branches(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingIndexManager_GetNumberOfIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarContainer___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SequenceVarElement_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_EndNextDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SwigPyObject_oct(SwigPyObject *v)
#define SWIGTYPE_p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_t
SWIGRUNTIME PyObject * SwigPyObject_repr2(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
static swig_cast_info _swigc__p_operations_research__RevT_long_t[]
SWIGINTERN PyObject * _wrap_Constraint___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenStartBound__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_NotMember(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__SearchLimit[]
SWIGINTERN PyObject * _wrap_RoutingModel_RegisterUnaryTransitCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Distribute__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SearchLog__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
PyObject * FromObjectIntervalVar(operations_research::IntervalVar *obj)
SWIGINTERN PyObject * _wrap_new_IntVarLocalSearchOperator(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___floordiv__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Solver_TreeNoCycle__SWIG_0(operations_research::Solver *self, std::vector< operations_research::IntVar * > const &nexts, std::vector< operations_research::IntVar * > const &active, operations_research::Solver::IndexFilter1 callback=nullptr)
SWIGINTERN PyObject * _wrap_Solver_NonOverlappingBoxesConstraint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchLimit_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_ObjectiveValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__AssignmentContainerT_operations_research__IntVar_operations_research__IntVarElement_t
bool CanConvertToSequenceVar(PyObject *py_obj)
SWIGINTERN PyObject * _wrap_Solver_ElementEquality__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__ConstraintTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingModel_SetPickupAndDeliveryPolicyOfAllVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SWIG_Python_InitShadowInstance(PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SearchLog__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN int Swig_var_RoutingModel_kNoDimension_set(PyObject *)
SWIGINTERN operations_research::DecisionBuilder * operations_research_Solver_VarEvalValStrPhase(operations_research::Solver *self, std::vector< operations_research::IntVar * > const &vars, std::function< int64_t(int64_t) > var_evaluator, operations_research::Solver::IntValueStrategy val_str)
SWIGINTERN PyObject * _wrap_Solver_BoolVar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__IntVarLocalSearchOperator[]
static void * _p_operations_research__PackTo_p_operations_research__Constraint(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * TypeRegulationsConstraint_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_DefaultPhase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolveModelWithSat(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_Solver__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___add____SWIG_1(operations_research::IntExpr *self, operations_research::Constraint *other)
#define SWIG_AddNewMask(r)
SWIGINTERN PyObject * TypeIncompatibilityChecker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SWIG_globals(void)
SWIGINTERN PyObject * _wrap_IntervalVarElement_EndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__DisjunctiveConstraintTo_p_operations_research__Constraint(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntExpr___radd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TimeLimit__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_BaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetDeliveryIndexPairs(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_TypeRegulationsConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Demon_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyMethodDef * SWIG_PythonGetProxyDoc(const char *name)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___ge____SWIG_1(operations_research::Constraint *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_Solver_ClosureDemon(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_OldDurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_std__vectorT_operations_research__Assignment_const_p_t[]
#define SWIGTYPE_p_absl__flat_hash_setT_int_t
SWIGINTERN PyObject * Demon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__IntervalVarElement
SWIGINTERN PyObject * _wrap_Solver_Cumulative__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_Add__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__LocalSearchFilterManager
SWIGINTERN PyObject * _wrap_Solver_NewSearch__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Element(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Activate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__CastConstraint[]
SWIGINTERN PyObject * _wrap_IntervalVar_WhenDurationBound__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__Solver__SearchLogParameters
SWIGINTERN PyObject * Swig_var_RoutingModelVisitor_kLightElement2_get(void)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___floordiv____SWIG_1(operations_research::IntExpr *self, operations_research::IntExpr *e)
SWIGINTERN PyObject * _wrap_RevBool_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetAmortizedCostFactorsOfAllVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_PYTHON_THREAD_BEGIN_BLOCK
static swig_type_info _swigt__p_std__vectorT_std__vectorT_long_t_t
#define SWIGINTERNINLINE
static swig_cast_info _swigc__p_signed_char[]
SWIGINTERN PyObject * _wrap_RoutingModel_CompactAndCheckAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Operator__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_WhenDomain__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__OptimizeVar[]
SWIGINTERN PyObject * _wrap_RoutingDimension_global_span_cost_coefficient(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperatorTemplate_Start(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_std__vectorT_std__pairT_int_int_t_t[]
SWIGINTERN PyObject * _wrap_Solver_IsBetweenCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define Py_TYPE(op)
static swig_cast_info _swigc__p_operations_research__SequenceVarElement[]
SWIGINTERN PyObject * _wrap_Solver_ConcatenateOperators__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__DefaultPhaseParameters[]
SWIGINTERN PyObject * _wrap_BooleanVar_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___mod____SWIG_0(operations_research::IntExpr *self, int64_t v)
SWIGRUNTIME int SWIG_Python_AcquirePtr(PyObject *obj, int own)
SWIGINTERN PyObject * _wrap_Assignment_SetEndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SolveDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Element__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_HoleIteratorAux(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_MoveTowardTargetOperator(PyObject *self, PyObject *args)
static swig_type_info _swigt__p_operations_research__AssignmentContainerT_operations_research__SequenceVar_operations_research__SequenceVarElement_t
#define SWIGRUNTIMEINLINE
static void * _p_operations_research__SearchLimitTo_p_operations_research__SearchMonitor(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___sub____SWIG_0(operations_research::Constraint *self, operations_research::IntExpr *other)
const std::string name
int64_t value
IntVar * var
Definition: expr_array.cc:1874
GRBmodel * model
MPCallback * callback
std::function< int64_t(const Model &)> Value(IntegerVariable v)
Definition: integer.h:1544
Collection of objects used to extend the Constraint Solver library.
bool SolveModelWithSat(const RoutingModel &model, const RoutingSearchParameters &search_parameters, const Assignment *initial_solution, Assignment *solution)
Attempts to solve the model using the cp-sat solver.
RoutingModelParameters DefaultRoutingModelParameters()
std::string FindErrorInRoutingSearchParameters(const RoutingSearchParameters &search_parameters)
Returns an empty std::string if the routing search parameters are valid, and a non-empty,...
DecisionBuilder * MakeSetValuesFromTargets(Solver *solver, std::vector< IntVar * > variables, std::vector< int64_t > targets)
A decision builder which tries to assign values to variables as close as possible to target values fi...
Definition: routing.cc:169
RoutingSearchParameters DefaultRoutingSearchParameters()
void AcceptNeighbor(Search *const search)
int index
Definition: pack.cc:509
void * malloc(YYSIZE_T)
void free(void *)
if(!yyg->yy_init)
Definition: parser.yy.cc:965
static int input(yyscan_t yyscanner)
int64_t delta
Definition: resource.cc:1692
int64_t tail
int nodes
GCItem_var & operator=(GCItem *item)
virtual int get_own() const
PyObject_HEAD void * ptr
PyObject_HEAD void * pack
This struct holds all parameters for the default search.
Struct used to sort and store vehicles by their type.
Definition: routing.h:354
Creates a search monitor from logging parameters.
SwigVar_PyObject & operator=(PyObject *obj)
struct swig_cast_info * prev
struct swig_cast_info * next
swig_converter_func converter
struct swig_globalvar * next
PyObject *(* get_attr)(void)
struct swig_module_info * next
struct swig_cast_info * cast
PyObject_HEAD swig_globalvar * vars
std::string message
Definition: trace.cc:398