17#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
22template<
typename T>
class SwigValueWrapper {
23 struct SwigMovePointer {
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; }
29 SwigValueWrapper& operator=(
const SwigValueWrapper<T>& rhs);
30 SwigValueWrapper(
const SwigValueWrapper<T>& rhs);
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; }
38template <
typename T> T SwigValueInit() {
49#ifndef SWIGTEMPLATEDISAMBIGUATOR
50# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
51# define SWIGTEMPLATEDISAMBIGUATOR template
52# elif defined(__HP_aCC)
55# define SWIGTEMPLATEDISAMBIGUATOR template
57# define SWIGTEMPLATEDISAMBIGUATOR
63# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
64# define SWIGINLINE inline
73# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
74# define SWIGUNUSED __attribute__ ((__unused__))
79# define SWIGUNUSED __attribute__ ((__unused__))
85#ifndef SWIG_MSC_UNSUPPRESS_4505
87# pragma warning(disable : 4505)
93# define SWIGUNUSEDPARM(p)
95# define SWIGUNUSEDPARM(p) p SWIGUNUSED
101# define SWIGINTERN static SWIGUNUSED
105#ifndef SWIGINTERNINLINE
106# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
111# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
112# ifndef GCC_HASCLASSVISIBILITY
113# define GCC_HASCLASSVISIBILITY
119# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
120# if defined(STATIC_LINKED)
123# define SWIGEXPORT __declspec(dllexport)
126# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
127# define SWIGEXPORT __attribute__ ((visibility("default")))
136# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
137# define SWIGSTDCALL __stdcall
144#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
145# define _CRT_SECURE_NO_DEPRECATE
149#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
150# define _SCL_SECURE_NO_DEPRECATE
154#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
155# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
163#ifdef __INTEL_COMPILER
164# pragma warning disable 592
168#if defined(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND)
173#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
191#define SWIG_RUNTIME_VERSION "4"
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)
199# define SWIG_TYPE_TABLE_NAME
212# define SWIGRUNTIME SWIGINTERN
215#ifndef SWIGRUNTIMEINLINE
216# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
220#ifndef SWIG_BUFFER_SIZE
221# define SWIG_BUFFER_SIZE 1024
225#define SWIG_POINTER_DISOWN 0x1
226#define SWIG_CAST_NEW_MEMORY 0x2
227#define SWIG_POINTER_NO_NULL 0x4
230#define SWIG_POINTER_OWN 0x1
313#define SWIG_ERROR (-1)
314#define SWIG_IsOK(r) (r >= 0)
315#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
318#define SWIG_CASTRANKLIMIT (1 << 8)
320#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
322#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
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)
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))
337#if defined(SWIG_CASTRANK_MODE)
338# ifndef SWIG_TypeRank
339# define SWIG_TypeRank unsigned long
341# ifndef SWIG_MAXCASTRANK
342# define SWIG_MAXCASTRANK (2)
344# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
345# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
350 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
353# define SWIG_AddCast(r) (r)
354# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
364typedef void *(*swig_converter_func)(
void *,
int *);
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;
412 return (
int)((l1 - f1) - (l2 - f2));
422 const char* te = tb + strlen(tb);
424 while (equiv != 0 && *ne) {
425 for (nb = ne; *ne; ++ne) {
426 if (*ne ==
'|')
break;
451 if (strcmp(iter->
type->
name, c) == 0) {
452 if (iter == ty->
cast)
478 if (iter->
type == from) {
479 if (iter == ty->
cast)
511 if (!ty || !ty->
dcast)
return ty;
512 while (ty && (ty->
dcast)) {
513 ty = (*ty->
dcast)(ptr);
537 if (!type)
return NULL;
538 if (type->
str != NULL) {
539 const char *last_name = type->
str;
541 for (s = type->
str; *s; s++)
542 if (*s ==
'|') last_name = s+1;
590 size_t r = iter->
size - 1;
593 size_t i = (l + r) >> 1;
594 const char *iname = iter->
types[i]->
name;
596 int compare = strcmp(
name, iname);
598 return iter->
types[i];
599 }
else if (compare < 0) {
605 }
else if (compare > 0) {
614 }
while (iter != end);
641 for (; i < iter->
size; ++i) {
643 return iter->
types[i];
646 }
while (iter != end);
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];
674 unsigned char *u = (
unsigned char *) ptr;
675 const unsigned char *eu = u + sz;
676 for (; u != eu; ++u) {
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);
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));
703 if ((2*
sizeof(
void *) + 2) > bsz)
return 0;
706 if (strlen(
name) + 1 > (bsz - (r - buff)))
return 0;
714 if (strcmp(c,
"NULL") == 0) {
727 size_t lname = (
name ? strlen(
name) : 0);
728 if ((2*sz + 2 + lname) > bsz)
return 0;
732 strncpy(r,
name,lname+1);
742 if (strcmp(c,
"NULL") == 0) {
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
774#if PY_VERSION_HEX >= 0x03000000
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)
794# define Py_TYPE(op) ((op)->ob_type)
799#if PY_VERSION_HEX >= 0x03000000
800# define SWIG_Python_str_FromFormat PyUnicode_FromFormat
802# define SWIG_Python_str_FromFormat PyString_FromFormat
812#if PY_VERSION_HEX >= 0x03030000
813 return (
char *)PyUnicode_AsUTF8(str);
814#elif PY_VERSION_HEX >= 0x03000000
816 str = PyUnicode_AsUTF8String(str);
820 if (PyBytes_AsStringAndSize(str, &cstr, &len) != -1) {
821 newstr = (
char *)
malloc(len+1);
823 memcpy(newstr, cstr, len+1);
829 return PyString_AsString(str);
833#if PY_VERSION_HEX >= 0x03030000 || PY_VERSION_HEX < 0x03000000
834# define SWIG_Python_str_DelForPy3(x)
836# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
843#if PY_VERSION_HEX >= 0x03000000
844 return PyUnicode_FromString(c);
846 return PyString_FromString(c);
851# define PyObject_DEL PyObject_Del
856# define SWIGPY_USE_CAPSULE
857# define SWIGPY_CAPSULE_NAME ("swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
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
874 type = PyExc_MemoryError;
877 type = PyExc_IOError;
880 type = PyExc_RuntimeError;
883 type = PyExc_IndexError;
886 type = PyExc_TypeError;
889 type = PyExc_ZeroDivisionError;
892 type = PyExc_OverflowError;
895 type = PyExc_SyntaxError;
898 type = PyExc_ValueError;
901 type = PyExc_SystemError;
904 type = PyExc_AttributeError;
907 type = PyExc_RuntimeError;
918 PyObject *traceback = 0;
920 if (PyErr_Occurred())
921 PyErr_Fetch(&type, &
value, &traceback);
923 PyObject *old_str = PyObject_Str(
value);
928 PyErr_Format(type,
"%s %s", tmp, mesg);
930 PyErr_Format(type,
"%s", mesg);
935 PyErr_SetString(PyExc_RuntimeError, mesg);
945 error = PyErr_Occurred();
946 return error && PyErr_GivenExceptionMatches(error, PyExc_TypeError);
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);
960 newvalue = PyString_FromFormat(
"%s\nAdditional information:\n%s", PyString_AsString(
value),
message);
963 PyErr_Restore(type, newvalue, traceback);
966 PyErr_SetString(PyExc_TypeError,
message);
970#if defined(SWIG_PYTHON_NO_THREADS)
971# if defined(SWIG_PYTHON_THREADS)
972# undef SWIG_PYTHON_THREADS
975#if defined(SWIG_PYTHON_THREADS)
976# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
977# define SWIG_PYTHON_USE_GIL
979# if defined(SWIG_PYTHON_USE_GIL)
980# ifndef SWIG_PYTHON_INITIALIZE_THREADS
981# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
984 class SWIG_Python_Thread_Block {
986 PyGILState_STATE state;
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(); }
992 class SWIG_Python_Thread_Allow {
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(); }
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()
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)
1011# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1012# define SWIG_PYTHON_INITIALIZE_THREADS
1014# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
1015# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1017# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
1018# define SWIG_PYTHON_THREAD_END_BLOCK
1020# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
1021# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1023# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1024# define SWIG_PYTHON_THREAD_END_ALLOW
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
1048#define SWIG_PY_POINTER 4
1049#define SWIG_PY_BINARY 5
1075#if PY_VERSION_HEX < 0x02070000
1076# error "This version of SWIG only supports Python >= 2.7"
1079#if PY_VERSION_HEX >= 0x03000000 && PY_VERSION_HEX < 0x03020000
1080# error "This version of SWIG only supports Python 3 >= 3.2"
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)
1090#ifdef SWIGPYTHON_BUILTIN
1091#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
1093#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1096#define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
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
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)
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)
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)
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)
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)
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
1139 PyErr_SetObject(errtype, obj);
1147 PyErr_SetString(errtype, msg);
1151#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1155#if defined(SWIGPYTHON_BUILTIN)
1158SwigPyBuiltin_AddPublicSymbol(PyObject *seq,
const char *key) {
1159 PyObject *s = PyString_InternFromString(key);
1160 PyList_Append(seq, s);
1166 PyDict_SetItemString(d,
name, obj);
1168 if (public_interface)
1169 SwigPyBuiltin_AddPublicSymbol(public_interface,
name);
1176 PyDict_SetItemString(d,
name, obj);
1188 }
else if (result == Py_None) {
1192 if (!PyList_Check(result)) {
1193 PyObject *o2 = result;
1194 result = PyList_New(1);
1195 PyList_SetItem(result, 0, o2);
1197 PyList_Append(result,obj);
1212 PyErr_Format(PyExc_TypeError,
"%s expected %s%d arguments, got none",
1217 if (!PyTuple_Check(args)) {
1218 if (min <= 1 && max >= 1) {
1221 for (i = 1; i <
max; ++i) {
1226 PyErr_SetString(PyExc_SystemError,
"UnpackTuple() argument list is not a tuple");
1229 Py_ssize_t l = PyTuple_GET_SIZE(args);
1231 PyErr_Format(PyExc_TypeError,
"%s expected %s%d arguments, got %d",
1234 }
else if (l >
max) {
1235 PyErr_Format(PyExc_TypeError,
"%s expected %s%d arguments, got %d",
1240 for (i = 0; i < l; ++i) {
1241 objs[i] = PyTuple_GET_ITEM(args, i);
1243 for (; l <
max; ++l) {
1255 assert(PyDict_Check(kwargs));
1256 if (PyDict_Size(kwargs) > 0) {
1257 PyErr_Format(PyExc_TypeError,
"%s() does not take keyword arguments",
name);
1265#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1272#define SWIG_STATIC_POINTER(var) var
1274#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1282#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1283#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1285#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1287#define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2)
1288#define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
1299 PyObject *none = Py_None;
1313 PyTypeObject *pytype;
1322 PyErr_SetString(PyExc_TypeError,
"Implicit conversion is prohibited for explicit constructors.");
1329 PyObject *klass = data ? data->
klass : 0;
1330 return (klass ? klass : PyExc_RuntimeError);
1343 Py_INCREF(data->
klass);
1345 if (PyClass_Check(obj)) {
1350 data->
newraw = PyObject_GetAttrString(data->
klass,
"__new__");
1353 data->
newargs = PyTuple_New(1);
1354 PyTuple_SetItem(data->
newargs, 0, obj);
1361 data->
destroy = PyObject_GetAttrString(data->
klass,
"__swig_destroy__");
1362 if (PyErr_Occurred()) {
1369 flags = PyCFunction_GET_FLAGS(data->
destroy);
1370 data->
delargs = !(flags & (METH_O));
1382 Py_XDECREF(data->
newraw);
1395#ifdef SWIGPYTHON_BUILTIN
1401#ifdef SWIGPYTHON_BUILTIN
1404SwigPyObject_get___dict__(PyObject *v, PyObject *
SWIGUNUSEDPARM(args))
1409 sobj->dict = PyDict_New();
1411 Py_INCREF(sobj->dict);
1420 return PyLong_FromVoidPtr(v->
ptr);
1426 PyObject *res = NULL;
1427 PyObject *args = PyTuple_New(1);
1432#if PY_VERSION_HEX >= 0x03000000
1433 res = PyUnicode_Format(ofmt,args);
1435 res = PyString_Format(ofmt,args);
1464# if PY_VERSION_HEX >= 0x03000000
1465 PyObject *joined = PyUnicode_Concat(repr, nrep);
1470 PyString_ConcatAndDel(&repr,nrep);
1489 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1497 if( op != Py_EQ && op != Py_NE ) {
1498 Py_INCREF(Py_NotImplemented);
1499 return Py_NotImplemented;
1508#ifdef SWIGPYTHON_BUILTIN
1513 assert(SwigPyObject_stype);
1529#ifdef SWIGPYTHON_BUILTIN
1531 if (PyType_IsSubtype(op->ob_type, target_tp))
1533 return (strcmp(op->ob_type->tp_name,
"SwigPyObject") == 0);
1536 || (strcmp(
Py_TYPE(op)->tp_name,
"SwigPyObject") == 0);
1551 PyObject *destroy = data ? data->
destroy : 0;
1563 PyObject *type = NULL, *
value = NULL, *traceback = NULL;
1564 PyErr_Fetch(&type, &
value, &traceback);
1572 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1573 PyObject *mself = PyCFunction_GET_SELF(destroy);
1574 res = ((*meth)(mself, v));
1577 PyErr_WriteUnraisable(destroy);
1579 PyErr_Restore(type,
value, traceback);
1583#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1586 printf(
"swig/python detected a memory leak of type '%s', no destructor found.\n", (
name ?
name :
"unknown"));
1599 PyErr_SetString(PyExc_TypeError,
"Attempt to append a non SwigPyObject");
1612 Py_INCREF(sobj->
next);
1639 if (!PyArg_UnpackTuple(args,
"own", 0, 1, &val)) {
1643 PyObject *obj = PyBool_FromLong(sobj->
own);
1645 if (PyObject_IsTrue(val)) {
1659 {
"own",
SwigPyObject_own, METH_VARARGS,
"returns/sets ownership of the pointer"},
1668 static char swigobject_doc[] =
"Swig object carries a C/C++ instance pointer";
1670 static PyNumberMethods SwigPyObject_as_number = {
1675#
if PY_VERSION_HEX < 0x03000000
1691#
if PY_VERSION_HEX < 0x03000000
1695#if PY_VERSION_HEX < 0x03000000
1701#if PY_VERSION_HEX < 0x03000000
1705#if PY_VERSION_HEX >= 0x03050000
1706 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1707#elif PY_VERSION_HEX >= 0x03000000
1708 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1710 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1714 static PyTypeObject swigpyobject_type;
1715 static int type_init = 0;
1717 const PyTypeObject tmp = {
1718#if PY_VERSION_HEX >= 0x03000000
1719 PyVarObject_HEAD_INIT(NULL, 0)
1721 PyObject_HEAD_INIT(NULL)
1731#if PY_VERSION_HEX >= 0x03000000
1737 &SwigPyObject_as_number,
1743 PyObject_GenericGetAttr,
1774#
if PY_VERSION_HEX >= 0x03040000
1777#
if PY_VERSION_HEX >= 0x03080000
1780#
if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
1791 swigpyobject_type = tmp;
1793 if (PyType_Ready(&swigpyobject_type) < 0)
1796 return &swigpyobject_type;
1809 return (PyObject *)sobj;
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);
1865 || (strcmp((op)->ob_type->tp_name,
"SwigPyPacked") == 0);
1880 static char swigpacked_doc[] =
"Swig object carries a C/C++ instance pointer";
1881 static PyTypeObject swigpypacked_type;
1882 static int type_init = 0;
1884 const PyTypeObject tmp = {
1885#if PY_VERSION_HEX>=0x03000000
1886 PyVarObject_HEAD_INIT(NULL, 0)
1888 PyObject_HEAD_INIT(NULL)
1898#if PY_VERSION_HEX>=0x03000000
1910 PyObject_GenericGetAttr,
1941#
if PY_VERSION_HEX >= 0x03040000
1944#
if PY_VERSION_HEX >= 0x03080000
1947#
if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
1958 swigpypacked_type = tmp;
1960 if (PyType_Ready(&swigpypacked_type) < 0)
1963 return &swigpypacked_type;
1971 void *pack =
malloc(size);
1973 memcpy(pack, ptr, size);
1982 return (PyObject *) sobj;
1990 if (sobj->
size != size)
return 0;
1991 memcpy(ptr, sobj->
pack, size);
2015#if PY_VERSION_HEX>=0x03000000
2016#define SWIG_PYTHON_SLOW_GETSET_THIS
2027#ifdef SWIGPYTHON_BUILTIN
2029# ifdef PyWeakref_CheckProxy
2030 if (PyWeakref_CheckProxy(pyobj)) {
2031 pyobj = PyWeakref_GET_OBJECT(pyobj);
2041#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2042 if (PyInstance_Check(pyobj)) {
2043 obj = _PyInstance_Lookup(pyobj,
SWIG_This());
2045 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2046 if (dictptr != NULL) {
2047 PyObject *dict = *dictptr;
2048 obj = dict ? PyDict_GetItem(dict,
SWIG_This()) : 0;
2050#ifdef PyWeakref_CheckProxy
2051 if (PyWeakref_CheckProxy(pyobj)) {
2052 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2056 obj = PyObject_GetAttr(pyobj,
SWIG_This());
2060 if (PyErr_Occurred()) PyErr_Clear();
2066 obj = PyObject_GetAttr(pyobj,
SWIG_This());
2070 if (PyErr_Occurred()) PyErr_Clear();
2090 int oldown = sobj->
own;
2108 if (obj == Py_None && !implicit_conv) {
2120 void *vptr = sobj->
ptr;
2125 if (ptr) *ptr = vptr;
2145 if (ptr) *ptr = vptr;
2151 *own = *own | sobj->
own;
2157 if (implicit_conv) {
2160 PyObject *klass = data->
klass;
2166 if (PyErr_Occurred()) {
2191 if (!
SWIG_IsOK(res) && obj == Py_None) {
2194 if (PyErr_Occurred())
2207 if (!PyCFunction_Check(obj)) {
2214 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2215 const char *desc = doc ? strstr(doc,
"swig_ptr: ") : 0;
2261 PyObject *newraw = data->
newraw;
2263 inst = PyObject_Call(newraw, data->
newargs, NULL);
2265#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2266 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2267 if (dictptr != NULL) {
2268 PyObject *dict = *dictptr;
2270 dict = PyDict_New();
2272 PyDict_SetItem(dict,
SWIG_This(), swig_this);
2276 if (PyObject_SetAttr(inst,
SWIG_This(), swig_this) == -1) {
2283#if PY_VERSION_HEX >= 0x03000000
2284 PyObject *empty_args = PyTuple_New(0);
2286 PyObject *empty_kwargs = PyDict_New();
2288 inst = ((PyTypeObject *)data->
newargs)->tp_new((PyTypeObject *)data->
newargs, empty_args, empty_kwargs);
2289 Py_DECREF(empty_kwargs);
2291 if (PyObject_SetAttr(inst,
SWIG_This(), swig_this) == -1) {
2295 Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
2299 Py_DECREF(empty_args);
2302 PyObject *dict = PyDict_New();
2304 PyDict_SetItem(dict,
SWIG_This(), swig_this);
2305 inst = PyInstance_NewRaw(data->
newargs, dict);
2316#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2317 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2318 if (dictptr != NULL) {
2319 PyObject *dict = *dictptr;
2321 dict = PyDict_New();
2324 return PyDict_SetItem(dict,
SWIG_This(), swig_this);
2327 return PyObject_SetAttr(inst,
SWIG_This(), swig_this);
2361 if (clientdata && clientdata->
pytype) {
2366 PyObject *next_self = clientdata->
pytype->tp_alloc(clientdata->
pytype, 0);
2367 while (newobj->
next)
2369 newobj->
next = next_self;
2371#ifdef SWIGPYTHON_BUILTIN
2377#ifdef SWIGPYTHON_BUILTIN
2386 return (PyObject*) newobj;
2413#ifdef SWIG_LINK_RUNTIME
2414void *SWIG_ReturnGlobalTypeList(
void *);
2419 static void *type_pointer = (
void *)0;
2421 if (!type_pointer) {
2422#ifdef SWIG_LINK_RUNTIME
2423 type_pointer = SWIG_ReturnGlobalTypeList((
void *)0);
2426 if (PyErr_Occurred()) {
2428 type_pointer = (
void *)0;
2454#if PY_VERSION_HEX >= 0x03000000
2458 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };
2459 PyObject *module = Py_InitModule(
"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
2462 if (pointer && module) {
2465 Py_XDECREF(pointer);
2481 PyObject *obj = PyDict_GetItem(cache, key);
2489 obj = PyCapsule_New((
void*) descriptor, NULL, NULL);
2490 PyDict_SetItem(cache, key, obj);
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)
2508 if (PyErr_Occurred()) {
2510 PyObject *
value = 0;
2511 PyObject *traceback = 0;
2512 PyErr_Fetch(&type, &
value, &traceback);
2514 PyObject *old_str = PyObject_Str(
value);
2516 const char *errmesg = tmp ? tmp :
"Invalid error message";
2520 PyErr_Format(type,
"%s %s", mesg, errmesg);
2522 PyErr_Format(type,
"%s %s", errmesg, mesg);
2536 if (PyErr_Occurred()) {
2539 PyOS_snprintf(mesg,
sizeof(mesg),
"argument number %d:", argnum);
2551 return ty ? ty->
str :
"";
2558#if defined(SWIG_COBJECT_TYPES)
2562 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, 'SwigPyObject(%s)' is received",
2569 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2571 PyObject *str = PyObject_Str(obj);
2574 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, '%s(%s)' is received",
2578 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, '%s' is received",
2585 PyErr_Format(PyExc_TypeError,
"a '%s' is expected", type);
2587 PyErr_Format(PyExc_TypeError,
"unexpected type is received");
2598#if SWIG_POINTER_EXCEPTION
2608#ifdef SWIGPYTHON_BUILTIN
2610SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *
name, PyObject *
value) {
2611 PyTypeObject *tp = obj->ob_type;
2613 PyObject *encoded_name;
2617# ifdef Py_USING_UNICODE
2618 if (PyString_Check(
name)) {
2619 name = PyUnicode_Decode(PyString_AsString(
name), PyString_Size(
name), NULL, NULL);
2622 }
else if (!PyUnicode_Check(
name))
2624 if (!PyString_Check(
name))
2627 PyErr_Format(PyExc_TypeError,
"attribute name must be string, not '%.200s'",
name->ob_type->tp_name);
2634 if (PyType_Ready(tp) < 0)
2638 descr = _PyType_Lookup(tp,
name);
2641 f = descr->ob_type->tp_descr_set;
2643 if (PyString_Check(
name)) {
2644 encoded_name =
name;
2647 encoded_name = PyUnicode_AsUTF8String(
name);
2651 PyErr_Format(PyExc_AttributeError,
"'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2652 Py_DECREF(encoded_name);
2654 res = f(descr, obj,
value);
2670#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2672#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2691 #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0)
2704#ifdef SWIG_DIRECTOR_STATIC
2715#ifndef SWIG_DIRECTOR_PYTHON_HEADER_
2716#define SWIG_DIRECTOR_PYTHON_HEADER_
2731#ifndef SWIG_PYTHON_DIRECTOR_NO_VTABLE
2732#ifndef SWIG_PYTHON_DIRECTOR_VTABLE
2733#define SWIG_PYTHON_DIRECTOR_VTABLE
2743#ifndef SWIG_DIRECTOR_NO_UEH
2744#ifndef SWIG_DIRECTOR_UEH
2745#define SWIG_DIRECTOR_UEH
2755#ifdef SWIG_DIRECTOR_NORTTI
2760# ifndef SWIG_DIRECTOR_RTDIR
2761# define SWIG_DIRECTOR_RTDIR
2765 SWIGINTERN std::map<void *, Director *>& get_rtdir_map() {
2766 static std::map<void *, Director *> rtdir_map;
2771 get_rtdir_map()[vptr] = rtdir;
2775 std::map<void *, Director *>::const_iterator pos = get_rtdir_map().find(vptr);
2776 Director *rtdir = (pos != get_rtdir_map().end()) ? pos->second : 0;
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)
2787# define SWIG_DIRECTOR_CAST(ARG) dynamic_cast<Swig::Director *>(ARG)
2788# define SWIG_DIRECTOR_RGTR(ARG1, ARG2)
2845 template <
typename Type>
2858 template <
typename Type>
2872 class DirectorException :
public std::exception {
2882 if (!PyErr_Occurred()) {
2883 PyErr_SetString(error,
what());
2900 static void raise(PyObject *error,
const char *msg) {
2904 static void raise(
const char *msg) {
2905 raise(PyExc_RuntimeError, msg);
2920 static void raise(PyObject *error,
const char *msg) {
2924 static void raise(
const char *msg) {
2936 static void raise(
const char *msg) {
2942 class DirectorPureVirtualException :
public DirectorException {
2945 :
DirectorException(PyExc_RuntimeError,
"SWIG director pure virtual method called", msg) {
2948 static void raise(
const char *msg) {
2954#if defined(SWIG_PYTHON_THREADS)
2956# if !defined(__THREAD__)
2957# define __THREAD__ 1
2962# include "pythread.h"
2964 PyThread_type_lock &mutex_;
2967 Guard(PyThread_type_lock & mutex) : mutex_(mutex) {
2968 PyThread_acquire_lock(mutex_, WAIT_LOCK);
2972 PyThread_release_lock(mutex_);
2975# define SWIG_GUARD(mutex) Guard _guard(mutex)
2977# define SWIG_GUARD(mutex)
2984 PyObject *swig_self;
2986 mutable bool swig_disown_flag;
2989 void swig_decref()
const {
2990 if (swig_disown_flag) {
2992 Py_DECREF(swig_self);
2999 Director(PyObject *
self) : swig_self(self), swig_disown_flag(false) {
3014 if (!swig_disown_flag) {
3015 swig_disown_flag=
true;
3022 if (swig_disown_flag) {
3023 Py_INCREF(swig_self);
3037 typedef std::map<void *, GCItem_var> swig_ownership_map;
3038 mutable swig_ownership_map swig_owner;
3040 static PyThread_type_lock swig_mutex_own;
3044 template <
typename Type>
3052 template <
typename Type>
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);
3080 template <
typename Type>
3087 return PyWeakref_NewProxy(pyobj, NULL);
3092 PyThread_type_lock Director::swig_mutex_own = PyThread_allocate_lock();
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]
3205#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
3206#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
3210#ifdef SWIG_TypeQuery
3211# undef SWIG_TypeQuery
3213#define SWIG_TypeQuery SWIG_Python_TypeQuery
3218#if PY_VERSION_HEX >= 0x03000000
3219# define SWIG_init PyInit__pywrapcp
3222# define SWIG_init init_pywrapcp
3225#define SWIG_name "_pywrapcp"
3227#define SWIGVERSION 0x040002
3228#define SWIG_VERSION SWIGVERSION
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))
3239 class SwigPtr_PyObject {
3267 Py_XINCREF(item._obj);
3281 operator PyObject *()
const
3295 struct SwigVar_PyObject : SwigPtr_PyObject {
3318#define SWIGWORDSIZE64
3322#if (__WORDSIZE == 32) || (LONG_MAX == INT_MAX)
3323# error "SWIG wrapped code invalid in 32 bit architecture, regenerate code using -DSWIGWORDSIZE32"
3330#include "ortools/base/python-swig.h"
3337#include <functional>
3349 PyObject*
get()
const {
return obj_; }
3355 PyObject*
const obj_;
3358template <
typename ReturnT>
3361 ReturnT result = ReturnT();
3363 if (!PyErr_Occurred()) {
3364 PyErr_SetString(PyExc_RuntimeError,
3365 "SWIG std::function invocation failed.");
3369 if (!PyObjAs<ReturnT>(pyresult, &result)) {
3370 if (!PyErr_Occurred()) {
3371 PyErr_SetString(PyExc_RuntimeError,
3372 "SWIG std::function invocation failed.");
3375 Py_DECREF(pyresult);
3383 if (!PyErr_Occurred()) {
3384 PyErr_SetString(PyExc_RuntimeError,
3385 "SWIG std::function invocation failed.");
3388 Py_DECREF(pyresult);
3392template <
typename ReturnT,
typename... Args>
3394 const char* format, Args... args) {
3397 return HandleResult<ReturnT>(
3398 PyObject_CallFunction(pyfunc,
const_cast<char*
>(format), args...));
3401template <
typename ReturnT>
3403 return HandleResult<ReturnT>(PyObject_CallFunctionObjArgs(pyfunc,
nullptr));
3417#include "ortools/constraint_solver/python/pywrapcp_util.h"
3494 if (t ==
nullptr)
return false;
3503 if (c ==
nullptr || c->
Var() ==
nullptr)
return false;
3519 if (t ==
nullptr)
return false;
3528 if (c ==
nullptr || c->
Var() ==
nullptr)
return false;
3660 PyObject*
const pysolver =
3663 PyObject*
const pyresult = PyEval_CallFunction(pyfunc,
"(O)", pysolver);
3665 PyErr_SetString(PyExc_RuntimeError,
3666 "std::function<void(Solver*)> invocation failed.");
3668 Py_DECREF(pyresult);
3676 return PyInt_FromLong((
long)
value);
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)
3694 if (PyFloat_Check(obj)) {
3695 if (val) *val = PyFloat_AsDouble(obj);
3697#if PY_VERSION_HEX < 0x03000000
3698 }
else if (PyInt_Check(obj)) {
3699 if (val) *val = (double) PyInt_AsLong(obj);
3702 }
else if (PyLong_Check(obj)) {
3703 double v = PyLong_AsDouble(obj);
3704 if (!PyErr_Occurred()) {
3711#ifdef SWIG_PYTHON_CAST_MODE
3714 double d = PyFloat_AsDouble(obj);
3715 if (!PyErr_Occurred()) {
3722 long v = PyLong_AsLong(obj);
3723 if (!PyErr_Occurred()) {
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;
3749 if ((errno == EDOM) || (errno == ERANGE)) {
3752 double summ, reps, diff;
3755 }
else if (rd > x) {
3762 if (reps < 8*DBL_EPSILON) {
3775#if PY_VERSION_HEX < 0x03000000
3776 if (PyInt_Check(obj)) {
3777 if (val) *val = PyInt_AsLong(obj);
3781 if (PyLong_Check(obj)) {
3782 long v = PyLong_AsLong(obj);
3783 if (!PyErr_Occurred()) {
3791#ifdef SWIG_PYTHON_CAST_MODE
3794 long v = PyInt_AsLong(obj);
3795 if (!PyErr_Occurred()) {
3805 if (val) *val = (long)(d);
3821 if ((v < INT_MIN || v > INT_MAX)) {
3824 if (val) *val =
static_cast< int >(v);
3835 if (!PyBool_Check(obj))
3837 r = PyObject_IsTrue(obj);
3840 if (val) *val = r ? true :
false;
3848 return PyBool_FromLong(
value ? 1 : 0);
3855 static int init = 0;
3868#if PY_VERSION_HEX>=0x03000000
3869#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3870 if (PyBytes_Check(obj))
3872 if (PyUnicode_Check(obj))
3875 if (PyString_Check(obj))
3878 char *cstr; Py_ssize_t len;
3880#if PY_VERSION_HEX>=0x03000000
3881#if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3882 if (!alloc && cptr) {
3889 obj = PyUnicode_AsUTF8String(obj);
3895 if (PyBytes_AsStringAndSize(obj, &cstr, &len) == -1)
3898 if (PyString_AsStringAndSize(obj, &cstr, &len) == -1)
3904 *cptr =
reinterpret_cast< char*
>(memcpy(
new char[len + 1], cstr,
sizeof(
char)*(len + 1)));
3911#if PY_VERSION_HEX>=0x03000000
3912#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3913 *cptr = PyBytes_AsString(obj);
3924 if (psize) *psize = len + 1;
3925#if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
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"
3934#if PY_VERSION_HEX<0x03000000
3935 if (PyUnicode_Check(obj)) {
3936 char *cstr; Py_ssize_t len;
3937 if (!alloc && cptr) {
3940 obj = PyUnicode_AsUTF8String(obj);
3943 if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
3946 *cptr =
reinterpret_cast< char*
>(memcpy(
new char[len + 1], cstr,
sizeof(
char)*(len + 1)));
3948 if (psize) *psize = len + 1;
3960 if (pchar_descriptor) {
3963 if (cptr) *cptr = (
char *) vptr;
3964 if (psize) *psize = vptr ? (strlen((
char *)vptr) + 1) : 0;
3977 char* buf = 0 ;
size_t size = 0;
int alloc =
SWIG_OLDOBJ;
3980 if (val) *val =
new std::string(buf, size - 1);
3988 static int init = 0;
4005 #define SWIG_From_long PyInt_FromLong
4011 return (
value > LONG_MAX) ?
4012 PyLong_FromUnsignedLong(
value) : PyInt_FromLong(
static_cast< long >(
value));
4020 if (size > INT_MAX) {
4022 return pchar_descriptor ?
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));
4029 return PyUnicode_DecodeUTF8(carray,
static_cast< Py_ssize_t
>(size),
"surrogateescape");
4032 return PyString_FromStringAndSize(carray,
static_cast< Py_ssize_t
>(size));
4048 return self->DebugString();
4051 return self->MakeNoCycle(nexts, active,
callback,
false);
4054 return self->MakeSearchLog(period,
callback);
4057 return self->MakeElement(values,
index);
4060 return self->MakePhase(vars, var_evaluator, val_str);
4063 return self->MakePhase(vars, var_str, val_eval);
4066 return self->MakePhase(vars, var_eval, val_eval);
4069 return self->MakePhase(vars, var_str, val_eval, tie_breaker);
4072 return self->MakePhase(vars, var_eval, val_eval, tie_breaker);
4075 return self->MakePhase(vars, evaluator, str);
4078 return self->MakePhase(vars, evaluator, tie_breaker, str);
4081 return self->MakeGuidedLocalSearch(maximize,
4089 return self->MakeSumObjectiveFilter(vars,
4094 return self->DebugString();
4097 return self->DebugString();
4100 return self->DebugString();
4103 return self->DebugString();
4106 return self->DebugString();
4109 return self->DebugString();
4112 return self->DebugString();
4115 return self->DebugString();
4229 return self->DebugString();
4232 return self->DebugString();
4235 return self->DebugString();
4238 return self->DebugString();
4370 return self->DebugString();
4373 return self->DebugString();
4480 return self->DebugString();
4483 return self->DebugString();
4486 return self->DebugString();
4489 return self->DebugString();
4492 return self->Value(
index);
4495 return self->Size();
4505template<
typename IndexT>
4507 return PyInt_FromLong(i.value());
4512bool PyObjAs(PyObject *py, operations_research::RoutingNodeIndex* i) {
4514 if (!
PyObjAs(py, &temp))
return false;
4515 *i = operations_research::RoutingNodeIndex(temp);
4521bool PyObjAs(PyObject *py, operations_research::RoutingCostClassIndex* i) {
4523 if (!
PyObjAs(py, &temp))
return false;
4524 *i = operations_research::RoutingCostClassIndex(temp);
4530bool PyObjAs(PyObject *py, operations_research::RoutingDimensionIndex* i) {
4532 if (!
PyObjAs(py, &temp))
return false;
4533 *i = operations_research::RoutingDimensionIndex(temp);
4539bool PyObjAs(PyObject *py, operations_research::RoutingDisjunctionIndex* i) {
4541 if (!
PyObjAs(py, &temp))
return false;
4542 *i = operations_research::RoutingDisjunctionIndex(temp);
4548bool PyObjAs(PyObject *py, operations_research::RoutingVehicleClassIndex* i) {
4550 if (!
PyObjAs(py, &temp))
return false;
4551 *i = operations_research::RoutingVehicleClassIndex(temp);
4591 std::string c_result;
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);
4606 PyObject *error = PyErr_Occurred();
4608 if (error != NULL) {
4613 std::string *swig_optr = 0;
4615 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
4618 c_result = *swig_optr;
4620 return (std::string) c_result;
4635 std::string c_result;
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);
4650 PyObject *error = PyErr_Occurred();
4652 if (error != NULL) {
4657 std::string *swig_optr = 0;
4659 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
4662 c_result = *swig_optr;
4664 return (std::string) c_result;
4669 std::string c_result;
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);
4684 PyObject *error = PyErr_Occurred();
4686 if (error != NULL) {
4691 std::string *swig_optr = 0;
4693 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
4696 c_result = *swig_optr;
4698 return (std::string) c_result;
4713 std::string c_result;
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);
4728 PyObject *error = PyErr_Occurred();
4730 if (error != NULL) {
4735 std::string *swig_optr = 0;
4737 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
4740 c_result = *swig_optr;
4742 return (std::string) c_result;
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);
4762 PyObject *error = PyErr_Occurred();
4764 if (error != NULL) {
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);
4788 PyObject *error = PyErr_Occurred();
4790 if (error != NULL) {
4809 std::string c_result;
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);
4824 PyObject *error = PyErr_Occurred();
4826 if (error != NULL) {
4831 std::string *swig_optr = 0;
4833 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
4836 c_result = *swig_optr;
4838 return (std::string) c_result;
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);
4863 PyObject *error = PyErr_Occurred();
4865 if (error != NULL) {
4891 std::string c_result;
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);
4906 PyObject *error = PyErr_Occurred();
4908 if (error != NULL) {
4913 std::string *swig_optr = 0;
4915 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
4918 c_result = *swig_optr;
4920 return (std::string) c_result;
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);
4940 PyObject *error = PyErr_Occurred();
4942 if (error != NULL) {
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);
4967 PyObject *error = PyErr_Occurred();
4969 if (error != NULL) {
4995 std::string c_result;
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);
5010 PyObject *error = PyErr_Occurred();
5012 if (error != NULL) {
5017 std::string *swig_optr = 0;
5019 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
5022 c_result = *swig_optr;
5024 return (std::string) c_result;
5029 std::string c_result;
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);
5044 PyObject *error = PyErr_Occurred();
5046 if (error != NULL) {
5051 std::string *swig_optr = 0;
5053 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
5056 c_result = *swig_optr;
5058 return (std::string) c_result;
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);
5077 PyObject *error = PyErr_Occurred();
5079 if (error != NULL) {
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);
5102 PyObject *error = PyErr_Occurred();
5104 if (error != NULL) {
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);
5137 PyObject *error = PyErr_Occurred();
5139 if (error != NULL) {
5165 std::string c_result;
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);
5180 PyObject *error = PyErr_Occurred();
5182 if (error != NULL) {
5187 std::string *swig_optr = 0;
5189 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
5192 c_result = *swig_optr;
5194 return (std::string) c_result;
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);
5213 PyObject *error = PyErr_Occurred();
5215 if (error != NULL) {
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);
5238 PyObject *error = PyErr_Occurred();
5240 if (error != NULL) {
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);
5263 PyObject *error = PyErr_Occurred();
5265 if (error != NULL) {
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);
5289 PyObject *error = PyErr_Occurred();
5291 if (error != NULL) {
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);
5317 PyObject *error = PyErr_Occurred();
5319 if (error != NULL) {
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);
5343 PyObject *error = PyErr_Occurred();
5345 if (error != NULL) {
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);
5369 PyObject *error = PyErr_Occurred();
5371 if (error != NULL) {
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);
5397 PyObject *error = PyErr_Occurred();
5399 if (error != NULL) {
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);
5422 PyObject *error = PyErr_Occurred();
5424 if (error != NULL) {
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);
5447 PyObject *error = PyErr_Occurred();
5449 if (error != NULL) {
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);
5472 PyObject *error = PyErr_Occurred();
5474 if (error != NULL) {
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);
5497 PyObject *error = PyErr_Occurred();
5499 if (error != NULL) {
5508 bool c_result = SwigValueInit< bool >() ;
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);
5524 PyObject *error = PyErr_Occurred();
5526 if (error != NULL) {
5536 c_result =
static_cast< bool >(swig_val);
5537 return (
bool) c_result;
5542 bool c_result = SwigValueInit< bool >() ;
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);
5558 PyObject *error = PyErr_Occurred();
5560 if (error != NULL) {
5570 c_result =
static_cast< bool >(swig_val);
5571 return (
bool) c_result;
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);
5590 PyObject *error = PyErr_Occurred();
5592 if (error != NULL) {
5601 bool c_result = SwigValueInit< bool >() ;
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);
5617 PyObject *error = PyErr_Occurred();
5619 if (error != NULL) {
5629 c_result =
static_cast< bool >(swig_val);
5630 return (
bool) c_result;
5635 bool c_result = SwigValueInit< bool >() ;
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);
5654 PyObject *error = PyErr_Occurred();
5656 if (error != NULL) {
5666 c_result =
static_cast< bool >(swig_val);
5667 return (
bool) c_result;
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);
5686 PyObject *error = PyErr_Occurred();
5688 if (error != NULL) {
5737 std::string c_result;
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);
5752 PyObject *error = PyErr_Occurred();
5754 if (error != NULL) {
5759 std::string *swig_optr = 0;
5761 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
5764 c_result = *swig_optr;
5766 return (std::string) c_result;
5771 bool c_result = SwigValueInit< bool >() ;
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);
5790 PyObject *error = PyErr_Occurred();
5792 if (error != NULL) {
5802 c_result =
static_cast< bool >(swig_val);
5803 return (
bool) c_result;
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);
5823 PyObject *error = PyErr_Occurred();
5825 if (error != NULL) {
5866 std::string c_result;
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);
5881 PyObject *error = PyErr_Occurred();
5883 if (error != NULL) {
5888 std::string *swig_optr = 0;
5890 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
5893 c_result = *swig_optr;
5895 return (std::string) c_result;
5900 bool c_result = SwigValueInit< bool >() ;
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);
5919 PyObject *error = PyErr_Occurred();
5921 if (error != NULL) {
5931 c_result =
static_cast< bool >(swig_val);
5932 return (
bool) c_result;
5952 bool c_result = SwigValueInit< bool >() ;
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);
5968 PyObject *error = PyErr_Occurred();
5970 if (error != NULL) {
5980 c_result =
static_cast< bool >(swig_val);
5981 return (
bool) c_result;
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);
6005 PyObject *error = PyErr_Occurred();
6007 if (error != NULL) {
6016 bool c_result = SwigValueInit< bool >() ;
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);
6034 PyObject *error = PyErr_Occurred();
6036 if (error != NULL) {
6046 c_result =
static_cast< bool >(swig_val);
6047 return (
bool) c_result;
6062 std::string c_result;
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);
6077 PyObject *error = PyErr_Occurred();
6079 if (error != NULL) {
6084 std::string *swig_optr = 0;
6086 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
6089 c_result = *swig_optr;
6091 return (std::string) c_result;
6096 bool c_result = SwigValueInit< bool >() ;
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);
6115 PyObject *error = PyErr_Occurred();
6117 if (error != NULL) {
6127 c_result =
static_cast< bool >(swig_val);
6128 return (
bool) c_result;
6148 bool c_result = SwigValueInit< bool >() ;
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);
6164 PyObject *error = PyErr_Occurred();
6166 if (error != NULL) {
6176 c_result =
static_cast< bool >(swig_val);
6177 return (
bool) c_result;
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);
6196 PyObject *error = PyErr_Occurred();
6198 if (error != NULL) {
6207 bool c_result = SwigValueInit< bool >() ;
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);
6223 PyObject *error = PyErr_Occurred();
6225 if (error != NULL) {
6235 c_result =
static_cast< bool >(swig_val);
6236 return (
bool) c_result;
6251 std::string c_result;
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);
6266 PyObject *error = PyErr_Occurred();
6268 if (error != NULL) {
6273 std::string *swig_optr = 0;
6275 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
6278 c_result = *swig_optr;
6280 return (std::string) c_result;
6285 bool c_result = SwigValueInit< bool >() ;
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);
6304 PyObject *error = PyErr_Occurred();
6306 if (error != NULL) {
6316 c_result =
static_cast< bool >(swig_val);
6317 return (
bool) c_result;
6337 bool c_result = SwigValueInit< bool >() ;
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);
6353 PyObject *error = PyErr_Occurred();
6355 if (error != NULL) {
6365 c_result =
static_cast< bool >(swig_val);
6366 return (
bool) c_result;
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);
6390 PyObject *error = PyErr_Occurred();
6392 if (error != NULL) {
6401 bool c_result = SwigValueInit< bool >() ;
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);
6419 PyObject *error = PyErr_Occurred();
6421 if (error != NULL) {
6431 c_result =
static_cast< bool >(swig_val);
6432 return (
bool) c_result;
6437 int64_t c_result = SwigValueInit< int64_t >() ;
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);
6456 PyObject *error = PyErr_Occurred();
6458 if (error != NULL) {
6468 c_result =
static_cast< int64_t
>(swig_val);
6469 return (int64_t) c_result;
6484 std::string c_result;
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);
6499 PyObject *error = PyErr_Occurred();
6501 if (error != NULL) {
6506 std::string *swig_optr = 0;
6508 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
6511 c_result = *swig_optr;
6513 return (std::string) c_result;
6528 bool c_result = SwigValueInit< bool >() ;
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);
6548 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(
swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2,(PyObject *)obj3, NULL);
6551 PyObject *error = PyErr_Occurred();
6553 if (error != NULL) {
6563 c_result =
static_cast< bool >(swig_val);
6564 return (
bool) c_result;
6569 bool c_result = SwigValueInit< bool >() ;
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);
6585 PyObject *error = PyErr_Occurred();
6587 if (error != NULL) {
6597 c_result =
static_cast< bool >(swig_val);
6598 return (
bool) c_result;
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);
6620 PyObject *error = PyErr_Occurred();
6622 if (error != NULL) {
6659 PyObject *resultobj = 0;
6666 PyObject * obj0 = 0 ;
6667 PyObject * obj1 = 0 ;
6669 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_var_selection_schema_set", 2, 2, &obj0, &obj1))
SWIG_fail;
6672 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_var_selection_schema_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6677 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "DefaultPhaseParameters_var_selection_schema_set" "', argument " "2"" of type '" "operations_research::DefaultPhaseParameters::VariableSelection""'");
6680 if (arg1) (arg1)->var_selection_schema = arg2;
6689 PyObject *resultobj = 0;
6693 PyObject * obj0 = 0 ;
6696 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_var_selection_schema_get", 1, 1, &obj0))
SWIG_fail;
6699 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_var_selection_schema_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6711 PyObject *resultobj = 0;
6718 PyObject * obj0 = 0 ;
6719 PyObject * obj1 = 0 ;
6721 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_value_selection_schema_set", 2, 2, &obj0, &obj1))
SWIG_fail;
6724 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_value_selection_schema_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6729 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "DefaultPhaseParameters_value_selection_schema_set" "', argument " "2"" of type '" "operations_research::DefaultPhaseParameters::ValueSelection""'");
6732 if (arg1) (arg1)->value_selection_schema = arg2;
6741 PyObject *resultobj = 0;
6745 PyObject * obj0 = 0 ;
6748 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_value_selection_schema_get", 1, 1, &obj0))
SWIG_fail;
6751 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_value_selection_schema_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6763 PyObject *resultobj = 0;
6770 PyObject * obj0 = 0 ;
6771 PyObject * obj1 = 0 ;
6773 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_initialization_splits_set", 2, 2, &obj0, &obj1))
SWIG_fail;
6776 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_initialization_splits_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6783 arg2 =
static_cast< int >(val2);
6784 if (arg1) (arg1)->initialization_splits = arg2;
6793 PyObject *resultobj = 0;
6797 PyObject * obj0 = 0 ;
6800 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_initialization_splits_get", 1, 1, &obj0))
SWIG_fail;
6803 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_initialization_splits_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6806 result = (int) ((arg1)->initialization_splits);
6815 PyObject *resultobj = 0;
6822 PyObject * obj0 = 0 ;
6823 PyObject * obj1 = 0 ;
6825 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_run_all_heuristics_set", 2, 2, &obj0, &obj1))
SWIG_fail;
6828 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_run_all_heuristics_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6835 arg2 =
static_cast< bool >(val2);
6836 if (arg1) (arg1)->run_all_heuristics = arg2;
6845 PyObject *resultobj = 0;
6849 PyObject * obj0 = 0 ;
6852 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_run_all_heuristics_get", 1, 1, &obj0))
SWIG_fail;
6855 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_run_all_heuristics_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6858 result = (bool) ((arg1)->run_all_heuristics);
6867 PyObject *resultobj = 0;
6874 PyObject * obj0 = 0 ;
6875 PyObject * obj1 = 0 ;
6877 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_heuristic_period_set", 2, 2, &obj0, &obj1))
SWIG_fail;
6880 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_heuristic_period_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6887 arg2 =
static_cast< int >(val2);
6888 if (arg1) (arg1)->heuristic_period = arg2;
6897 PyObject *resultobj = 0;
6901 PyObject * obj0 = 0 ;
6904 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_heuristic_period_get", 1, 1, &obj0))
SWIG_fail;
6907 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_heuristic_period_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6910 result = (int) ((arg1)->heuristic_period);
6919 PyObject *resultobj = 0;
6926 PyObject * obj0 = 0 ;
6927 PyObject * obj1 = 0 ;
6929 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_heuristic_num_failures_limit_set", 2, 2, &obj0, &obj1))
SWIG_fail;
6932 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_heuristic_num_failures_limit_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6937 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "DefaultPhaseParameters_heuristic_num_failures_limit_set" "', argument " "2"" of type '" "int""'");
6939 arg2 =
static_cast< int >(val2);
6940 if (arg1) (arg1)->heuristic_num_failures_limit = arg2;
6949 PyObject *resultobj = 0;
6953 PyObject * obj0 = 0 ;
6956 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_heuristic_num_failures_limit_get", 1, 1, &obj0))
SWIG_fail;
6959 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_heuristic_num_failures_limit_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6962 result = (int) ((arg1)->heuristic_num_failures_limit);
6971 PyObject *resultobj = 0;
6978 PyObject * obj0 = 0 ;
6979 PyObject * obj1 = 0 ;
6981 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_persistent_impact_set", 2, 2, &obj0, &obj1))
SWIG_fail;
6984 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_persistent_impact_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6991 arg2 =
static_cast< bool >(val2);
6992 if (arg1) (arg1)->persistent_impact = arg2;
7001 PyObject *resultobj = 0;
7005 PyObject * obj0 = 0 ;
7008 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_persistent_impact_get", 1, 1, &obj0))
SWIG_fail;
7011 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_persistent_impact_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7014 result = (bool) ((arg1)->persistent_impact);
7023 PyObject *resultobj = 0;
7030 PyObject * obj0 = 0 ;
7031 PyObject * obj1 = 0 ;
7033 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_random_seed_set", 2, 2, &obj0, &obj1))
SWIG_fail;
7036 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_random_seed_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7043 arg2 =
static_cast< int >(val2);
7044 if (arg1) (arg1)->random_seed = arg2;
7053 PyObject *resultobj = 0;
7057 PyObject * obj0 = 0 ;
7060 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_random_seed_get", 1, 1, &obj0))
SWIG_fail;
7063 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_random_seed_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7066 result = (int) ((arg1)->random_seed);
7075 PyObject *resultobj = 0;
7082 PyObject * obj0 = 0 ;
7083 PyObject * obj1 = 0 ;
7085 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_display_level_set", 2, 2, &obj0, &obj1))
SWIG_fail;
7088 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_display_level_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7093 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "DefaultPhaseParameters_display_level_set" "', argument " "2"" of type '" "operations_research::DefaultPhaseParameters::DisplayLevel""'");
7096 if (arg1) (arg1)->display_level = arg2;
7105 PyObject *resultobj = 0;
7109 PyObject * obj0 = 0 ;
7112 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_display_level_get", 1, 1, &obj0))
SWIG_fail;
7115 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_display_level_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7127 PyObject *resultobj = 0;
7134 PyObject * obj0 = 0 ;
7135 PyObject * obj1 = 0 ;
7137 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_decision_builder_set", 2, 2, &obj0, &obj1))
SWIG_fail;
7140 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_decision_builder_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7145 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "DefaultPhaseParameters_decision_builder_set" "', argument " "2"" of type '" "operations_research::DecisionBuilder *""'");
7148 if (arg1) (arg1)->decision_builder = arg2;
7157 PyObject *resultobj = 0;
7161 PyObject * obj0 = 0 ;
7164 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_decision_builder_get", 1, 1, &obj0))
SWIG_fail;
7167 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_decision_builder_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7179 PyObject *resultobj = 0;
7182 if (!PyArg_UnpackTuple(args,
"new_DefaultPhaseParameters", 0, 0))
SWIG_fail;
7199 PyObject *resultobj = 0;
7203 PyObject * obj0 = 0 ;
7205 if (!PyArg_UnpackTuple(args,
"delete_DefaultPhaseParameters", 1, 1, &obj0))
SWIG_fail;
7208 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_DefaultPhaseParameters" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7238 PyObject *resultobj = 0;
7239 std::string *arg1 = 0 ;
7241 PyObject * obj0 = 0 ;
7244 if (!PyArg_UnpackTuple(args,
"new_Solver", 1, 1, &obj0))
SWIG_fail;
7246 std::string *ptr = (std::string *)0;
7274 PyObject *resultobj = 0;
7275 std::string *arg1 = 0 ;
7278 PyObject * obj0 = 0 ;
7279 PyObject * obj1 = 0 ;
7282 if (!PyArg_UnpackTuple(args,
"new_Solver", 2, 2, &obj0, &obj1))
SWIG_fail;
7284 std::string *ptr = (std::string *)0;
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);
7305 Py_DECREF(pyresult);
7333 PyObject *argv[3] = {
7339 argc = PyObject_Length(args);
7340 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
7341 argv[ii] = PyTuple_GET_ITEM(args,ii);
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)) {
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");
7389 PyObject *resultobj = 0;
7393 PyObject * obj0 = 0 ;
7395 if (!PyArg_UnpackTuple(args,
"delete_Solver", 1, 1, &obj0))
SWIG_fail;
7417 PyObject *resultobj = 0;
7421 PyObject * obj0 = 0 ;
7424 if (!PyArg_UnpackTuple(args,
"Solver_Parameters", 1, 1, &obj0))
SWIG_fail;
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);
7448 PyObject*
const python_encoded_protobuf = PyBytes_FromStringAndSize(
7449 encoded_protobuf.c_str(), encoded_protobuf.size());
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);
7472 PyObject *resultobj = 0;
7475 if (!PyArg_UnpackTuple(args,
"Solver_DefaultSolverParameters", 0, 0))
SWIG_fail;
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);
7494 PyObject*
const python_encoded_protobuf = PyBytes_FromStringAndSize(
7495 encoded_protobuf.c_str(), encoded_protobuf.size());
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);
7518 PyObject *resultobj = 0;
7525 PyObject * obj0 = 0 ;
7526 PyObject * obj1 = 0 ;
7528 if (!PyArg_UnpackTuple(args,
"Solver_AddConstraint", 2, 2, &obj0, &obj1))
SWIG_fail;
7546 (arg1)->AddConstraint(arg2);
7553 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
7565 PyObject *resultobj = 0;
7568 std::vector< operations_research::SearchMonitor * > *arg3 = 0 ;
7571 std::vector< operations_research::SearchMonitor * > temp3 ;
7572 PyObject * obj0 = 0 ;
7573 PyObject * obj1 = 0 ;
7574 PyObject * obj2 = 0 ;
7577 if (!PyArg_UnpackTuple(args,
"Solver_Solve", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
7587 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::SearchMonitor*>)) {
7588 if (!PyErr_Occurred())
7596 result = (bool)(arg1)->Solve(arg2,(std::vector< operations_research::SearchMonitor * >
const &)*arg3);
7610 PyObject *resultobj = 0;
7615 PyObject * obj0 = 0 ;
7616 PyObject * obj1 = 0 ;
7619 if (!PyArg_UnpackTuple(args,
"Solver_Solve", 2, 2, &obj0, &obj1))
SWIG_fail;
7630 result = (bool)(arg1)->Solve(arg2);
7644 PyObject *resultobj = 0;
7650 PyObject * obj0 = 0 ;
7651 PyObject * obj1 = 0 ;
7652 PyObject * obj2 = 0 ;
7655 if (!PyArg_UnpackTuple(args,
"Solver_Solve", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
7669 result = (bool)(arg1)->Solve(arg2,arg3);
7683 PyObject *resultobj = 0;
7690 PyObject * obj0 = 0 ;
7691 PyObject * obj1 = 0 ;
7692 PyObject * obj2 = 0 ;
7693 PyObject * obj3 = 0 ;
7696 if (!PyArg_UnpackTuple(args,
"Solver_Solve", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
7713 result = (bool)(arg1)->Solve(arg2,arg3,arg4);
7727 PyObject *resultobj = 0;
7735 PyObject * obj0 = 0 ;
7736 PyObject * obj1 = 0 ;
7737 PyObject * obj2 = 0 ;
7738 PyObject * obj3 = 0 ;
7739 PyObject * obj4 = 0 ;
7742 if (!PyArg_UnpackTuple(args,
"Solver_Solve", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
7762 result = (bool)(arg1)->Solve(arg2,arg3,arg4,arg5);
7776 PyObject *resultobj = 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 ;
7793 if (!PyArg_UnpackTuple(args,
"Solver_Solve", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
7816 result = (bool)(arg1)->Solve(arg2,arg3,arg4,arg5,arg6);
7831 PyObject *argv[7] = {
7837 argc = PyObject_Length(args);
7838 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
7839 argv[ii] = PyTuple_GET_ITEM(args,ii);
7849 if (_v == 0) PyErr_Clear();
7864 if (_v == 0) PyErr_Clear();
7868 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
7871 const bool is_tuple = PyTuple_Check(argv[2]);
7872 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
7875 :PyList_GetItem(argv[2], i))) {
7895 if (_v == 0) PyErr_Clear();
7900 if (_v == 0) PyErr_Clear();
7916 if (_v == 0) PyErr_Clear();
7921 if (_v == 0) PyErr_Clear();
7926 if (_v == 0) PyErr_Clear();
7943 if (_v == 0) PyErr_Clear();
7948 if (_v == 0) PyErr_Clear();
7953 if (_v == 0) PyErr_Clear();
7958 if (_v == 0) PyErr_Clear();
7976 if (_v == 0) PyErr_Clear();
7981 if (_v == 0) PyErr_Clear();
7986 if (_v == 0) PyErr_Clear();
7991 if (_v == 0) PyErr_Clear();
7996 if (_v == 0) PyErr_Clear();
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");
8022 PyObject *resultobj = 0;
8025 std::vector< operations_research::SearchMonitor * > *arg3 = 0 ;
8028 std::vector< operations_research::SearchMonitor * > temp3 ;
8029 PyObject * obj0 = 0 ;
8030 PyObject * obj1 = 0 ;
8031 PyObject * obj2 = 0 ;
8033 if (!PyArg_UnpackTuple(args,
"Solver_NewSearch", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
8043 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::SearchMonitor*>)) {
8044 if (!PyErr_Occurred())
8052 (arg1)->NewSearch(arg2,(std::vector< operations_research::SearchMonitor * >
const &)*arg3);
8066 PyObject *resultobj = 0;
8071 PyObject * obj0 = 0 ;
8072 PyObject * obj1 = 0 ;
8074 if (!PyArg_UnpackTuple(args,
"Solver_NewSearch", 2, 2, &obj0, &obj1))
SWIG_fail;
8085 (arg1)->NewSearch(arg2);
8099 PyObject *resultobj = 0;
8105 PyObject * obj0 = 0 ;
8106 PyObject * obj1 = 0 ;
8107 PyObject * obj2 = 0 ;
8109 if (!PyArg_UnpackTuple(args,
"Solver_NewSearch", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
8123 (arg1)->NewSearch(arg2,arg3);
8137 PyObject *resultobj = 0;
8144 PyObject * obj0 = 0 ;
8145 PyObject * obj1 = 0 ;
8146 PyObject * obj2 = 0 ;
8147 PyObject * obj3 = 0 ;
8149 if (!PyArg_UnpackTuple(args,
"Solver_NewSearch", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
8166 (arg1)->NewSearch(arg2,arg3,arg4);
8180 PyObject *resultobj = 0;
8188 PyObject * obj0 = 0 ;
8189 PyObject * obj1 = 0 ;
8190 PyObject * obj2 = 0 ;
8191 PyObject * obj3 = 0 ;
8192 PyObject * obj4 = 0 ;
8194 if (!PyArg_UnpackTuple(args,
"Solver_NewSearch", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
8214 (arg1)->NewSearch(arg2,arg3,arg4,arg5);
8228 PyObject *resultobj = 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 ;
8244 if (!PyArg_UnpackTuple(args,
"Solver_NewSearch", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
8267 (arg1)->NewSearch(arg2,arg3,arg4,arg5,arg6);
8282 PyObject *argv[7] = {
8288 argc = PyObject_Length(args);
8289 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
8290 argv[ii] = PyTuple_GET_ITEM(args,ii);
8300 if (_v == 0) PyErr_Clear();
8315 if (_v == 0) PyErr_Clear();
8319 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
8322 const bool is_tuple = PyTuple_Check(argv[2]);
8323 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
8326 :PyList_GetItem(argv[2], i))) {
8346 if (_v == 0) PyErr_Clear();
8351 if (_v == 0) PyErr_Clear();
8367 if (_v == 0) PyErr_Clear();
8372 if (_v == 0) PyErr_Clear();
8377 if (_v == 0) PyErr_Clear();
8394 if (_v == 0) PyErr_Clear();
8399 if (_v == 0) PyErr_Clear();
8404 if (_v == 0) PyErr_Clear();
8409 if (_v == 0) PyErr_Clear();
8427 if (_v == 0) PyErr_Clear();
8432 if (_v == 0) PyErr_Clear();
8437 if (_v == 0) PyErr_Clear();
8442 if (_v == 0) PyErr_Clear();
8447 if (_v == 0) PyErr_Clear();
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");
8473 PyObject *resultobj = 0;
8477 PyObject * obj0 = 0 ;
8480 if (!PyArg_UnpackTuple(args,
"Solver_NextSolution", 1, 1, &obj0))
SWIG_fail;
8502 PyObject *resultobj = 0;
8506 PyObject * obj0 = 0 ;
8508 if (!PyArg_UnpackTuple(args,
"Solver_RestartSearch", 1, 1, &obj0))
SWIG_fail;
8516 (arg1)->RestartSearch();
8530 PyObject *resultobj = 0;
8534 PyObject * obj0 = 0 ;
8536 if (!PyArg_UnpackTuple(args,
"Solver_EndSearch", 1, 1, &obj0))
SWIG_fail;
8544 (arg1)->EndSearch();
8558 PyObject *resultobj = 0;
8561 std::vector< operations_research::SearchMonitor * > *arg3 = 0 ;
8564 std::vector< operations_research::SearchMonitor * > temp3 ;
8565 PyObject * obj0 = 0 ;
8566 PyObject * obj1 = 0 ;
8567 PyObject * obj2 = 0 ;
8570 if (!PyArg_UnpackTuple(args,
"Solver_SolveAndCommit", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
8580 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::SearchMonitor*>)) {
8581 if (!PyErr_Occurred())
8589 result = (bool)(arg1)->SolveAndCommit(arg2,(std::vector< operations_research::SearchMonitor * >
const &)*arg3);
8603 PyObject *resultobj = 0;
8608 PyObject * obj0 = 0 ;
8609 PyObject * obj1 = 0 ;
8612 if (!PyArg_UnpackTuple(args,
"Solver_SolveAndCommit", 2, 2, &obj0, &obj1))
SWIG_fail;
8623 result = (bool)(arg1)->SolveAndCommit(arg2);
8637 PyObject *resultobj = 0;
8643 PyObject * obj0 = 0 ;
8644 PyObject * obj1 = 0 ;
8645 PyObject * obj2 = 0 ;
8648 if (!PyArg_UnpackTuple(args,
"Solver_SolveAndCommit", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
8662 result = (bool)(arg1)->SolveAndCommit(arg2,arg3);
8676 PyObject *resultobj = 0;
8683 PyObject * obj0 = 0 ;
8684 PyObject * obj1 = 0 ;
8685 PyObject * obj2 = 0 ;
8686 PyObject * obj3 = 0 ;
8689 if (!PyArg_UnpackTuple(args,
"Solver_SolveAndCommit", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
8706 result = (bool)(arg1)->SolveAndCommit(arg2,arg3,arg4);
8720 PyObject *resultobj = 0;
8728 PyObject * obj0 = 0 ;
8729 PyObject * obj1 = 0 ;
8730 PyObject * obj2 = 0 ;
8731 PyObject * obj3 = 0 ;
8732 PyObject * obj4 = 0 ;
8735 if (!PyArg_UnpackTuple(args,
"Solver_SolveAndCommit", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
8755 result = (bool)(arg1)->SolveAndCommit(arg2,arg3,arg4,arg5);
8770 PyObject *argv[6] = {
8776 argc = PyObject_Length(args);
8777 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
8778 argv[ii] = PyTuple_GET_ITEM(args,ii);
8788 if (_v == 0) PyErr_Clear();
8803 if (_v == 0) PyErr_Clear();
8807 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
8810 const bool is_tuple = PyTuple_Check(argv[2]);
8811 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
8814 :PyList_GetItem(argv[2], i))) {
8834 if (_v == 0) PyErr_Clear();
8839 if (_v == 0) PyErr_Clear();
8855 if (_v == 0) PyErr_Clear();
8860 if (_v == 0) PyErr_Clear();
8865 if (_v == 0) PyErr_Clear();
8882 if (_v == 0) PyErr_Clear();
8887 if (_v == 0) PyErr_Clear();
8892 if (_v == 0) PyErr_Clear();
8897 if (_v == 0) PyErr_Clear();
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");
8921 PyObject *resultobj = 0;
8928 PyObject * obj0 = 0 ;
8929 PyObject * obj1 = 0 ;
8932 if (!PyArg_UnpackTuple(args,
"Solver_CheckAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
8940 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_CheckAssignment" "', argument " "2"" of type '" "operations_research::Assignment *const""'");
8945 result = (bool)(arg1)->CheckAssignment(arg2);
8959 PyObject *resultobj = 0;
8966 PyObject * obj0 = 0 ;
8967 PyObject * obj1 = 0 ;
8970 if (!PyArg_UnpackTuple(args,
"Solver_CheckConstraint", 2, 2, &obj0, &obj1))
SWIG_fail;
8978 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_CheckConstraint" "', argument " "2"" of type '" "operations_research::Constraint *const""'");
8983 result = (bool)(arg1)->CheckConstraint(arg2);
8997 PyObject *resultobj = 0;
9001 PyObject * obj0 = 0 ;
9003 if (!PyArg_UnpackTuple(args,
"Solver_Fail", 1, 1, &obj0))
SWIG_fail;
9023 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
9035 PyObject *resultobj = 0;
9038 if (!PyArg_UnpackTuple(args,
"Solver_MemoryUsage", 0, 0))
SWIG_fail;
9055 PyObject *resultobj = 0;
9059 PyObject * obj0 = 0 ;
9062 if (!PyArg_UnpackTuple(args,
"Solver_WallTime", 1, 1, &obj0))
SWIG_fail;
9084 PyObject *resultobj = 0;
9088 PyObject * obj0 = 0 ;
9091 if (!PyArg_UnpackTuple(args,
"Solver_Branches", 1, 1, &obj0))
SWIG_fail;
9113 PyObject *resultobj = 0;
9117 PyObject * obj0 = 0 ;
9120 if (!PyArg_UnpackTuple(args,
"Solver_Solutions", 1, 1, &obj0))
SWIG_fail;
9142 PyObject *resultobj = 0;
9146 PyObject * obj0 = 0 ;
9149 if (!PyArg_UnpackTuple(args,
"Solver_Failures", 1, 1, &obj0))
SWIG_fail;
9171 PyObject *resultobj = 0;
9175 PyObject * obj0 = 0 ;
9178 if (!PyArg_UnpackTuple(args,
"Solver_AcceptedNeighbors", 1, 1, &obj0))
SWIG_fail;
9181 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_AcceptedNeighbors" "', argument " "1"" of type '" "operations_research::Solver const *""'");
9200 PyObject *resultobj = 0;
9204 PyObject * obj0 = 0 ;
9207 if (!PyArg_UnpackTuple(args,
"Solver_Stamp", 1, 1, &obj0))
SWIG_fail;
9229 PyObject *resultobj = 0;
9233 PyObject * obj0 = 0 ;
9236 if (!PyArg_UnpackTuple(args,
"Solver_FailStamp", 1, 1, &obj0))
SWIG_fail;
9258 PyObject *resultobj = 0;
9262 std::string *arg4 = 0 ;
9270 PyObject * obj0 = 0 ;
9271 PyObject * obj1 = 0 ;
9272 PyObject * obj2 = 0 ;
9273 PyObject * obj3 = 0 ;
9276 if (!PyArg_UnpackTuple(args,
"Solver_IntVar", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
9286 arg2 =
static_cast< int64_t
>(val2);
9291 arg3 =
static_cast< int64_t
>(val3);
9293 std::string *ptr = (std::string *)0;
9321 PyObject *resultobj = 0;
9323 std::vector< int64_t > *arg2 = 0 ;
9324 std::string *arg3 = 0 ;
9327 std::vector< int64_t > temp2 ;
9329 PyObject * obj0 = 0 ;
9330 PyObject * obj1 = 0 ;
9331 PyObject * obj2 = 0 ;
9334 if (!PyArg_UnpackTuple(args,
"Solver_IntVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
9341 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
9342 if (!PyErr_Occurred())
9349 std::string *ptr = (std::string *)0;
9377 PyObject *resultobj = 0;
9379 std::vector< int > *arg2 = 0 ;
9380 std::string *arg3 = 0 ;
9383 std::vector< int > temp2 ;
9385 PyObject * obj0 = 0 ;
9386 PyObject * obj1 = 0 ;
9387 PyObject * obj2 = 0 ;
9390 if (!PyArg_UnpackTuple(args,
"Solver_IntVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
9397 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
9398 if (!PyErr_Occurred())
9405 std::string *ptr = (std::string *)0;
9433 PyObject *resultobj = 0;
9443 PyObject * obj0 = 0 ;
9444 PyObject * obj1 = 0 ;
9445 PyObject * obj2 = 0 ;
9448 if (!PyArg_UnpackTuple(args,
"Solver_IntVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
9458 arg2 =
static_cast< int64_t
>(val2);
9463 arg3 =
static_cast< int64_t
>(val3);
9480 PyObject *resultobj = 0;
9482 std::vector< int64_t > *arg2 = 0 ;
9485 std::vector< int64_t > temp2 ;
9486 PyObject * obj0 = 0 ;
9487 PyObject * obj1 = 0 ;
9490 if (!PyArg_UnpackTuple(args,
"Solver_IntVar", 2, 2, &obj0, &obj1))
SWIG_fail;
9497 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
9498 if (!PyErr_Occurred())
9520 PyObject *resultobj = 0;
9522 std::vector< int > *arg2 = 0 ;
9525 std::vector< int > temp2 ;
9526 PyObject * obj0 = 0 ;
9527 PyObject * obj1 = 0 ;
9530 if (!PyArg_UnpackTuple(args,
"Solver_IntVar", 2, 2, &obj0, &obj1))
SWIG_fail;
9537 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
9538 if (!PyErr_Occurred())
9561 PyObject *argv[5] = {
9567 argc = PyObject_Length(args);
9568 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
9569 argv[ii] = PyTuple_GET_ITEM(args,ii);
9578 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
9581 const bool is_tuple = PyTuple_Check(argv[1]);
9582 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
9584 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
9585 :PyList_GetItem(argv[1], i))) {
9603 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
9606 const bool is_tuple = PyTuple_Check(argv[1]);
9607 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
9609 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
9610 :PyList_GetItem(argv[1], i))) {
9628 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
9631 const bool is_tuple = PyTuple_Check(argv[1]);
9632 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
9634 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
9635 :PyList_GetItem(argv[1], i))) {
9657 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
9660 const bool is_tuple = PyTuple_Check(argv[1]);
9661 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
9663 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
9664 :PyList_GetItem(argv[1], i))) {
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");
9740 PyObject *resultobj = 0;
9742 std::string *arg2 = 0 ;
9746 PyObject * obj0 = 0 ;
9747 PyObject * obj1 = 0 ;
9750 if (!PyArg_UnpackTuple(args,
"Solver_BoolVar", 2, 2, &obj0, &obj1))
SWIG_fail;
9757 std::string *ptr = (std::string *)0;
9785 PyObject *resultobj = 0;
9789 PyObject * obj0 = 0 ;
9792 if (!PyArg_UnpackTuple(args,
"Solver_BoolVar", 1, 1, &obj0))
SWIG_fail;
9815 PyObject *argv[3] = {
9821 argc = PyObject_Length(args);
9822 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
9823 argv[ii] = PyTuple_GET_ITEM(args,ii);
9850 " Possible C/C++ prototypes are:\n"
9851 " operations_research::Solver::MakeBoolVar(std::string const &)\n"
9852 " operations_research::Solver::MakeBoolVar()\n");
9858 PyObject *resultobj = 0;
9861 std::string *arg3 = 0 ;
9867 PyObject * obj0 = 0 ;
9868 PyObject * obj1 = 0 ;
9869 PyObject * obj2 = 0 ;
9872 if (!PyArg_UnpackTuple(args,
"Solver_IntConst", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
9882 arg2 =
static_cast< int64_t
>(val2);
9884 std::string *ptr = (std::string *)0;
9912 PyObject *resultobj = 0;
9919 PyObject * obj0 = 0 ;
9920 PyObject * obj1 = 0 ;
9923 if (!PyArg_UnpackTuple(args,
"Solver_IntConst", 2, 2, &obj0, &obj1))
SWIG_fail;
9933 arg2 =
static_cast< int64_t
>(val2);
9951 PyObject *argv[4] = {
9957 argc = PyObject_Length(args);
9958 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
9959 argv[ii] = PyTuple_GET_ITEM(args,ii);
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");
10006 PyObject *resultobj = 0;
10008 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10011 std::vector< operations_research::IntVar * > temp2 ;
10012 PyObject * obj0 = 0 ;
10013 PyObject * obj1 = 0 ;
10016 if (!PyArg_UnpackTuple(args,
"Solver_Sum", 2, 2, &obj0, &obj1))
SWIG_fail;
10023 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
10024 if (!PyErr_Occurred())
10046 PyObject *resultobj = 0;
10048 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10049 std::vector< int64_t > *arg3 = 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 ;
10059 if (!PyArg_UnpackTuple(args,
"Solver_ScalProd", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10066 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
10067 if (!PyErr_Occurred())
10074 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
10075 if (!PyErr_Occurred())
10083 result = (
operations_research::IntExpr *)(arg1)->MakeScalProd((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3);
10097 PyObject *resultobj = 0;
10099 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10100 std::vector< int > *arg3 = 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 ;
10110 if (!PyArg_UnpackTuple(args,
"Solver_ScalProd", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10117 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
10118 if (!PyErr_Occurred())
10125 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
10126 if (!PyErr_Occurred())
10134 result = (
operations_research::IntExpr *)(arg1)->MakeScalProd((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int >
const &)*arg3);
10149 PyObject *argv[4] = {
10155 argc = PyObject_Length(args);
10156 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
10157 argv[ii] = PyTuple_GET_ITEM(args,ii);
10166 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10169 const bool is_tuple = PyTuple_Check(argv[1]);
10170 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10173 :PyList_GetItem(argv[1], i))) {
10181 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
10184 const bool is_tuple = PyTuple_Check(argv[2]);
10185 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
10187 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
10188 :PyList_GetItem(argv[2], i))) {
10207 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10210 const bool is_tuple = PyTuple_Check(argv[1]);
10211 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10214 :PyList_GetItem(argv[1], i))) {
10222 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
10225 const bool is_tuple = PyTuple_Check(argv[2]);
10226 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
10228 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
10229 :PyList_GetItem(argv[2], i))) {
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");
10252 PyObject *resultobj = 0;
10254 std::vector< int64_t > *arg2 = 0 ;
10258 std::vector< int64_t > temp2 ;
10259 PyObject * obj0 = 0 ;
10260 PyObject * obj1 = 0 ;
10261 PyObject * obj2 = 0 ;
10264 if (!PyArg_UnpackTuple(args,
"Solver_Element", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10271 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
10272 if (!PyErr_Occurred())
10297 PyObject *resultobj = 0;
10299 std::vector< int > *arg2 = 0 ;
10303 std::vector< int > temp2 ;
10304 PyObject * obj0 = 0 ;
10305 PyObject * obj1 = 0 ;
10306 PyObject * obj2 = 0 ;
10309 if (!PyArg_UnpackTuple(args,
"Solver_Element", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10316 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
10317 if (!PyErr_Occurred())
10342 PyObject *resultobj = 0;
10348 PyObject * obj0 = 0 ;
10349 PyObject * obj1 = 0 ;
10350 PyObject * obj2 = 0 ;
10353 if (!PyArg_UnpackTuple(args,
"Solver_Element", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10362 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
10384 PyObject *resultobj = 0;
10393 PyObject * obj0 = 0 ;
10394 PyObject * obj1 = 0 ;
10395 PyObject * obj2 = 0 ;
10396 PyObject * obj3 = 0 ;
10399 if (!PyArg_UnpackTuple(args,
"Solver_MonotonicElement", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
10408 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
10415 arg3 =
static_cast< bool >(val3);
10435 PyObject *resultobj = 0;
10442 PyObject * obj0 = 0 ;
10443 PyObject * obj1 = 0 ;
10444 PyObject * obj2 = 0 ;
10445 PyObject * obj3 = 0 ;
10448 if (!PyArg_UnpackTuple(args,
"Solver_Element", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
10456 arg2 = [
input](int64_t i, int64_t j) {
10457 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
10482 PyObject *resultobj = 0;
10484 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10488 std::vector< operations_research::IntVar * > temp2 ;
10489 PyObject * obj0 = 0 ;
10490 PyObject * obj1 = 0 ;
10491 PyObject * obj2 = 0 ;
10494 if (!PyArg_UnpackTuple(args,
"Solver_Element", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10501 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
10502 if (!PyErr_Occurred())
10528 PyObject *argv[5] = {
10534 argc = PyObject_Length(args);
10535 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
10536 argv[ii] = PyTuple_GET_ITEM(args,ii);
10545 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10548 const bool is_tuple = PyTuple_Check(argv[1]);
10549 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10551 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
10552 :PyList_GetItem(argv[1], i))) {
10561 if (_v == 0) PyErr_Clear();
10576 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10579 const bool is_tuple = PyTuple_Check(argv[1]);
10580 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10582 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
10583 :PyList_GetItem(argv[1], i))) {
10592 if (_v == 0) PyErr_Clear();
10607 _v = PyCallable_Check(argv[1]);
10612 if (_v == 0) PyErr_Clear();
10627 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10630 const bool is_tuple = PyTuple_Check(argv[1]);
10631 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10634 :PyList_GetItem(argv[1], i))) {
10643 if (_v == 0) PyErr_Clear();
10658 _v = PyCallable_Check(argv[1]);
10663 if (_v == 0) PyErr_Clear();
10668 if (_v == 0) PyErr_Clear();
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");
10691 PyObject *resultobj = 0;
10693 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10697 std::vector< operations_research::IntVar * > temp2 ;
10700 PyObject * obj0 = 0 ;
10701 PyObject * obj1 = 0 ;
10702 PyObject * obj2 = 0 ;
10705 if (!PyArg_UnpackTuple(args,
"Solver_IndexExpression", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10712 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
10713 if (!PyErr_Occurred())
10723 arg3 =
static_cast< int64_t
>(val3);
10726 result = (
operations_research::IntExpr *)(arg1)->MakeIndexExpression((std::vector< operations_research::IntVar * >
const &)*arg2,arg3);
10740 PyObject *resultobj = 0;
10742 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10745 std::vector< operations_research::IntVar * > temp2 ;
10746 PyObject * obj0 = 0 ;
10747 PyObject * obj1 = 0 ;
10750 if (!PyArg_UnpackTuple(args,
"Solver_Min", 2, 2, &obj0, &obj1))
SWIG_fail;
10757 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
10758 if (!PyErr_Occurred())
10780 PyObject *resultobj = 0;
10786 PyObject * obj0 = 0 ;
10787 PyObject * obj1 = 0 ;
10788 PyObject * obj2 = 0 ;
10791 if (!PyArg_UnpackTuple(args,
"Solver_Min", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10819 PyObject *resultobj = 0;
10827 PyObject * obj0 = 0 ;
10828 PyObject * obj1 = 0 ;
10829 PyObject * obj2 = 0 ;
10832 if (!PyArg_UnpackTuple(args,
"Solver_Min", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10845 arg3 =
static_cast< int64_t
>(val3);
10862 PyObject *resultobj = 0;
10870 PyObject * obj0 = 0 ;
10871 PyObject * obj1 = 0 ;
10872 PyObject * obj2 = 0 ;
10875 if (!PyArg_UnpackTuple(args,
"Solver_Min", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10888 arg3 =
static_cast< int >(val3);
10906 PyObject *argv[4] = {
10912 argc = PyObject_Length(args);
10913 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
10914 argv[ii] = PyTuple_GET_ITEM(args,ii);
10923 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10926 const bool is_tuple = PyTuple_Check(argv[1]);
10927 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10930 :PyList_GetItem(argv[1], i))) {
10949 if (_v == 0) PyErr_Clear();
10954 if (_v == 0) PyErr_Clear();
10970 if (_v == 0) PyErr_Clear();
10991 if (_v == 0) PyErr_Clear();
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");
11017 PyObject *resultobj = 0;
11019 std::vector< operations_research::IntVar * > *arg2 = 0 ;
11022 std::vector< operations_research::IntVar * > temp2 ;
11023 PyObject * obj0 = 0 ;
11024 PyObject * obj1 = 0 ;
11027 if (!PyArg_UnpackTuple(args,
"Solver_Max", 2, 2, &obj0, &obj1))
SWIG_fail;
11034 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
11035 if (!PyErr_Occurred())
11057 PyObject *resultobj = 0;
11063 PyObject * obj0 = 0 ;
11064 PyObject * obj1 = 0 ;
11065 PyObject * obj2 = 0 ;
11068 if (!PyArg_UnpackTuple(args,
"Solver_Max", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
11096 PyObject *resultobj = 0;
11104 PyObject * obj0 = 0 ;
11105 PyObject * obj1 = 0 ;
11106 PyObject * obj2 = 0 ;
11109 if (!PyArg_UnpackTuple(args,
"Solver_Max", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
11122 arg3 =
static_cast< int64_t
>(val3);
11139 PyObject *resultobj = 0;
11147 PyObject * obj0 = 0 ;
11148 PyObject * obj1 = 0 ;
11149 PyObject * obj2 = 0 ;
11152 if (!PyArg_UnpackTuple(args,
"Solver_Max", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
11165 arg3 =
static_cast< int >(val3);
11183 PyObject *argv[4] = {
11189 argc = PyObject_Length(args);
11190 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
11191 argv[ii] = PyTuple_GET_ITEM(args,ii);
11200 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
11203 const bool is_tuple = PyTuple_Check(argv[1]);
11204 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
11207 :PyList_GetItem(argv[1], i))) {
11226 if (_v == 0) PyErr_Clear();
11231 if (_v == 0) PyErr_Clear();
11247 if (_v == 0) PyErr_Clear();
11268 if (_v == 0) PyErr_Clear();
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");
11294 PyObject *resultobj = 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 ;
11321 if (!PyArg_UnpackTuple(args,
"Solver_ConvexPiecewiseExpr", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
11336 arg3 =
static_cast< int64_t
>(val3);
11341 arg4 =
static_cast< int64_t
>(val4);
11346 arg5 =
static_cast< int64_t
>(val5);
11351 arg6 =
static_cast< int64_t
>(val6);
11368 PyObject *resultobj = 0;
11379 PyObject * obj0 = 0 ;
11380 PyObject * obj1 = 0 ;
11381 PyObject * obj2 = 0 ;
11382 PyObject * obj3 = 0 ;
11385 if (!PyArg_UnpackTuple(args,
"Solver_SemiContinuousExpr", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
11398 arg3 =
static_cast< int64_t
>(val3);
11403 arg4 =
static_cast< int64_t
>(val4);
11420 PyObject *resultobj = 0;
11429 PyObject * obj0 = 0 ;
11430 PyObject * obj1 = 0 ;
11431 PyObject * obj2 = 0 ;
11432 PyObject * obj3 = 0 ;
11435 if (!PyArg_UnpackTuple(args,
"Solver_ConditionalExpression", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
11451 arg4 =
static_cast< int64_t
>(val4);
11468 PyObject *resultobj = 0;
11472 PyObject * obj0 = 0 ;
11475 if (!PyArg_UnpackTuple(args,
"Solver_TrueConstraint", 1, 1, &obj0))
SWIG_fail;
11497 PyObject *resultobj = 0;
11501 PyObject * obj0 = 0 ;
11504 if (!PyArg_UnpackTuple(args,
"Solver_FalseConstraint", 1, 1, &obj0))
SWIG_fail;
11526 PyObject *resultobj = 0;
11528 std::string *arg2 = 0 ;
11532 PyObject * obj0 = 0 ;
11533 PyObject * obj1 = 0 ;
11536 if (!PyArg_UnpackTuple(args,
"Solver_FalseConstraint", 2, 2, &obj0, &obj1))
SWIG_fail;
11543 std::string *ptr = (std::string *)0;
11572 PyObject *argv[3] = {
11578 argc = PyObject_Length(args);
11579 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
11580 argv[ii] = PyTuple_GET_ITEM(args,ii);
11607 " Possible C/C++ prototypes are:\n"
11608 " operations_research::Solver::MakeFalseConstraint()\n"
11609 " operations_research::Solver::MakeFalseConstraint(std::string const &)\n");
11615 PyObject *resultobj = 0;
11624 PyObject * obj0 = 0 ;
11625 PyObject * obj1 = 0 ;
11626 PyObject * obj2 = 0 ;
11627 PyObject * obj3 = 0 ;
11630 if (!PyArg_UnpackTuple(args,
"Solver_IsEqualCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
11643 arg3 =
static_cast< int64_t
>(val3);
11663 PyObject *resultobj = 0;
11671 PyObject * obj0 = 0 ;
11672 PyObject * obj1 = 0 ;
11673 PyObject * obj2 = 0 ;
11676 if (!PyArg_UnpackTuple(args,
"Solver_IsEqualCstVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
11689 arg3 =
static_cast< int64_t
>(val3);
11706 PyObject *resultobj = 0;
11715 PyObject * obj0 = 0 ;
11716 PyObject * obj1 = 0 ;
11717 PyObject * obj2 = 0 ;
11718 PyObject * obj3 = 0 ;
11721 if (!PyArg_UnpackTuple(args,
"Solver_IsEqualCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
11754 PyObject *resultobj = 0;
11762 PyObject * obj0 = 0 ;
11763 PyObject * obj1 = 0 ;
11764 PyObject * obj2 = 0 ;
11767 if (!PyArg_UnpackTuple(args,
"Solver_IsEqualVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
11797 PyObject *resultobj = 0;
11806 PyObject * obj0 = 0 ;
11807 PyObject * obj1 = 0 ;
11808 PyObject * obj2 = 0 ;
11809 PyObject * obj3 = 0 ;
11812 if (!PyArg_UnpackTuple(args,
"Solver_IsDifferentCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
11825 arg3 =
static_cast< int64_t
>(val3);
11845 PyObject *resultobj = 0;
11853 PyObject * obj0 = 0 ;
11854 PyObject * obj1 = 0 ;
11855 PyObject * obj2 = 0 ;
11858 if (!PyArg_UnpackTuple(args,
"Solver_IsDifferentCstVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
11871 arg3 =
static_cast< int64_t
>(val3);
11888 PyObject *resultobj = 0;
11894 PyObject * obj0 = 0 ;
11895 PyObject * obj1 = 0 ;
11896 PyObject * obj2 = 0 ;
11899 if (!PyArg_UnpackTuple(args,
"Solver_IsDifferentVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
11927 PyObject *resultobj = 0;
11934 PyObject * obj0 = 0 ;
11935 PyObject * obj1 = 0 ;
11936 PyObject * obj2 = 0 ;
11937 PyObject * obj3 = 0 ;
11940 if (!PyArg_UnpackTuple(args,
"Solver_IsDifferentCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
11971 PyObject *resultobj = 0;
11980 PyObject * obj0 = 0 ;
11981 PyObject * obj1 = 0 ;
11982 PyObject * obj2 = 0 ;
11983 PyObject * obj3 = 0 ;
11986 if (!PyArg_UnpackTuple(args,
"Solver_IsLessOrEqualCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
11999 arg3 =
static_cast< int64_t
>(val3);
12019 PyObject *resultobj = 0;
12027 PyObject * obj0 = 0 ;
12028 PyObject * obj1 = 0 ;
12029 PyObject * obj2 = 0 ;
12032 if (!PyArg_UnpackTuple(args,
"Solver_IsLessOrEqualCstVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12045 arg3 =
static_cast< int64_t
>(val3);
12062 PyObject *resultobj = 0;
12068 PyObject * obj0 = 0 ;
12069 PyObject * obj1 = 0 ;
12070 PyObject * obj2 = 0 ;
12073 if (!PyArg_UnpackTuple(args,
"Solver_IsLessOrEqualVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12101 PyObject *resultobj = 0;
12108 PyObject * obj0 = 0 ;
12109 PyObject * obj1 = 0 ;
12110 PyObject * obj2 = 0 ;
12111 PyObject * obj3 = 0 ;
12114 if (!PyArg_UnpackTuple(args,
"Solver_IsLessOrEqualCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
12145 PyObject *resultobj = 0;
12154 PyObject * obj0 = 0 ;
12155 PyObject * obj1 = 0 ;
12156 PyObject * obj2 = 0 ;
12157 PyObject * obj3 = 0 ;
12160 if (!PyArg_UnpackTuple(args,
"Solver_IsGreaterOrEqualCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
12173 arg3 =
static_cast< int64_t
>(val3);
12193 PyObject *resultobj = 0;
12201 PyObject * obj0 = 0 ;
12202 PyObject * obj1 = 0 ;
12203 PyObject * obj2 = 0 ;
12206 if (!PyArg_UnpackTuple(args,
"Solver_IsGreaterOrEqualCstVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12209 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_IsGreaterOrEqualCstVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
12219 arg3 =
static_cast< int64_t
>(val3);
12236 PyObject *resultobj = 0;
12242 PyObject * obj0 = 0 ;
12243 PyObject * obj1 = 0 ;
12244 PyObject * obj2 = 0 ;
12247 if (!PyArg_UnpackTuple(args,
"Solver_IsGreaterOrEqualVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12275 PyObject *resultobj = 0;
12282 PyObject * obj0 = 0 ;
12283 PyObject * obj1 = 0 ;
12284 PyObject * obj2 = 0 ;
12285 PyObject * obj3 = 0 ;
12288 if (!PyArg_UnpackTuple(args,
"Solver_IsGreaterOrEqualCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
12319 PyObject *resultobj = 0;
12328 PyObject * obj0 = 0 ;
12329 PyObject * obj1 = 0 ;
12330 PyObject * obj2 = 0 ;
12331 PyObject * obj3 = 0 ;
12334 if (!PyArg_UnpackTuple(args,
"Solver_IsGreaterCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
12347 arg3 =
static_cast< int64_t
>(val3);
12367 PyObject *resultobj = 0;
12375 PyObject * obj0 = 0 ;
12376 PyObject * obj1 = 0 ;
12377 PyObject * obj2 = 0 ;
12380 if (!PyArg_UnpackTuple(args,
"Solver_IsGreaterCstVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12393 arg3 =
static_cast< int64_t
>(val3);
12410 PyObject *resultobj = 0;
12416 PyObject * obj0 = 0 ;
12417 PyObject * obj1 = 0 ;
12418 PyObject * obj2 = 0 ;
12421 if (!PyArg_UnpackTuple(args,
"Solver_IsGreaterVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12449 PyObject *resultobj = 0;
12456 PyObject * obj0 = 0 ;
12457 PyObject * obj1 = 0 ;
12458 PyObject * obj2 = 0 ;
12459 PyObject * obj3 = 0 ;
12462 if (!PyArg_UnpackTuple(args,
"Solver_IsGreaterCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
12493 PyObject *resultobj = 0;
12502 PyObject * obj0 = 0 ;
12503 PyObject * obj1 = 0 ;
12504 PyObject * obj2 = 0 ;
12505 PyObject * obj3 = 0 ;
12508 if (!PyArg_UnpackTuple(args,
"Solver_IsLessCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
12521 arg3 =
static_cast< int64_t
>(val3);
12541 PyObject *resultobj = 0;
12549 PyObject * obj0 = 0 ;
12550 PyObject * obj1 = 0 ;
12551 PyObject * obj2 = 0 ;
12554 if (!PyArg_UnpackTuple(args,
"Solver_IsLessCstVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12567 arg3 =
static_cast< int64_t
>(val3);
12584 PyObject *resultobj = 0;
12590 PyObject * obj0 = 0 ;
12591 PyObject * obj1 = 0 ;
12592 PyObject * obj2 = 0 ;
12595 if (!PyArg_UnpackTuple(args,
"Solver_IsLessVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12623 PyObject *resultobj = 0;
12630 PyObject * obj0 = 0 ;
12631 PyObject * obj1 = 0 ;
12632 PyObject * obj2 = 0 ;
12633 PyObject * obj3 = 0 ;
12636 if (!PyArg_UnpackTuple(args,
"Solver_IsLessCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
12667 PyObject *resultobj = 0;
12669 std::vector< operations_research::IntVar * > *arg2 = 0 ;
12673 std::vector< operations_research::IntVar * > temp2 ;
12676 PyObject * obj0 = 0 ;
12677 PyObject * obj1 = 0 ;
12678 PyObject * obj2 = 0 ;
12681 if (!PyArg_UnpackTuple(args,
"Solver_SumLessOrEqual", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12688 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
12689 if (!PyErr_Occurred())
12699 arg3 =
static_cast< int64_t
>(val3);
12716 PyObject *resultobj = 0;
12718 std::vector< operations_research::IntVar * > *arg2 = 0 ;
12722 std::vector< operations_research::IntVar * > temp2 ;
12725 PyObject * obj0 = 0 ;
12726 PyObject * obj1 = 0 ;
12727 PyObject * obj2 = 0 ;
12730 if (!PyArg_UnpackTuple(args,
"Solver_SumGreaterOrEqual", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12737 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
12738 if (!PyErr_Occurred())
12748 arg3 =
static_cast< int64_t
>(val3);
12765 PyObject *resultobj = 0;
12767 std::vector< operations_research::IntVar * > *arg2 = 0 ;
12771 std::vector< operations_research::IntVar * > temp2 ;
12774 PyObject * obj0 = 0 ;
12775 PyObject * obj1 = 0 ;
12776 PyObject * obj2 = 0 ;
12779 if (!PyArg_UnpackTuple(args,
"Solver_SumEquality", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12786 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
12787 if (!PyErr_Occurred())
12797 arg3 =
static_cast< int64_t
>(val3);
12814 PyObject *resultobj = 0;
12816 std::vector< operations_research::IntVar * > *arg2 = 0 ;
12820 std::vector< operations_research::IntVar * > temp2 ;
12821 PyObject * obj0 = 0 ;
12822 PyObject * obj1 = 0 ;
12823 PyObject * obj2 = 0 ;
12826 if (!PyArg_UnpackTuple(args,
"Solver_SumEquality", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12833 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
12834 if (!PyErr_Occurred())
12860 PyObject *argv[4] = {
12866 argc = PyObject_Length(args);
12867 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
12868 argv[ii] = PyTuple_GET_ITEM(args,ii);
12877 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
12880 const bool is_tuple = PyTuple_Check(argv[1]);
12881 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
12884 :PyList_GetItem(argv[1], i))) {
12893 if (_v == 0) PyErr_Clear();
12908 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
12911 const bool is_tuple = PyTuple_Check(argv[1]);
12912 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
12915 :PyList_GetItem(argv[1], i))) {
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");
12943 PyObject *resultobj = 0;
12945 std::vector< operations_research::IntVar * > *arg2 = 0 ;
12946 std::vector< int64_t > *arg3 = 0 ;
12950 std::vector< operations_research::IntVar * > temp2 ;
12951 std::vector< int64_t > temp3 ;
12954 PyObject * obj0 = 0 ;
12955 PyObject * obj1 = 0 ;
12956 PyObject * obj2 = 0 ;
12957 PyObject * obj3 = 0 ;
12960 if (!PyArg_UnpackTuple(args,
"Solver_ScalProdEquality", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
12967 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
12968 if (!PyErr_Occurred())
12975 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
12976 if (!PyErr_Occurred())
12986 arg4 =
static_cast< int64_t
>(val4);
12989 result = (
operations_research::Constraint *)(arg1)->MakeScalProdEquality((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3,arg4);
13003 PyObject *resultobj = 0;
13005 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13006 std::vector< int > *arg3 = 0 ;
13010 std::vector< operations_research::IntVar * > temp2 ;
13011 std::vector< int > temp3 ;
13014 PyObject * obj0 = 0 ;
13015 PyObject * obj1 = 0 ;
13016 PyObject * obj2 = 0 ;
13017 PyObject * obj3 = 0 ;
13020 if (!PyArg_UnpackTuple(args,
"Solver_ScalProdEquality", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
13027 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13028 if (!PyErr_Occurred())
13035 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
13036 if (!PyErr_Occurred())
13046 arg4 =
static_cast< int64_t
>(val4);
13049 result = (
operations_research::Constraint *)(arg1)->MakeScalProdEquality((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,arg4);
13063 PyObject *resultobj = 0;
13065 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13066 std::vector< int64_t > *arg3 = 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 ;
13078 if (!PyArg_UnpackTuple(args,
"Solver_ScalProdEquality", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
13085 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13086 if (!PyErr_Occurred())
13093 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
13094 if (!PyErr_Occurred())
13105 result = (
operations_research::Constraint *)(arg1)->MakeScalProdEquality((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3,arg4);
13119 PyObject *resultobj = 0;
13121 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13122 std::vector< int > *arg3 = 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 ;
13134 if (!PyArg_UnpackTuple(args,
"Solver_ScalProdEquality", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
13141 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13142 if (!PyErr_Occurred())
13149 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
13150 if (!PyErr_Occurred())
13161 result = (
operations_research::Constraint *)(arg1)->MakeScalProdEquality((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,arg4);
13176 PyObject *argv[5] = {
13182 argc = PyObject_Length(args);
13183 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
13184 argv[ii] = PyTuple_GET_ITEM(args,ii);
13193 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13196 const bool is_tuple = PyTuple_Check(argv[1]);
13197 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13200 :PyList_GetItem(argv[1], i))) {
13208 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13211 const bool is_tuple = PyTuple_Check(argv[2]);
13212 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13214 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13215 :PyList_GetItem(argv[2], i))) {
13224 if (_v == 0) PyErr_Clear();
13240 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13243 const bool is_tuple = PyTuple_Check(argv[1]);
13244 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13247 :PyList_GetItem(argv[1], i))) {
13255 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13258 const bool is_tuple = PyTuple_Check(argv[2]);
13259 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13261 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13262 :PyList_GetItem(argv[2], i))) {
13271 if (_v == 0) PyErr_Clear();
13287 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13290 const bool is_tuple = PyTuple_Check(argv[1]);
13291 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13294 :PyList_GetItem(argv[1], i))) {
13302 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13305 const bool is_tuple = PyTuple_Check(argv[2]);
13306 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13308 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13309 :PyList_GetItem(argv[2], i))) {
13334 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13337 const bool is_tuple = PyTuple_Check(argv[1]);
13338 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13341 :PyList_GetItem(argv[1], i))) {
13349 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13352 const bool is_tuple = PyTuple_Check(argv[2]);
13353 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13355 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13356 :PyList_GetItem(argv[2], i))) {
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");
13387 PyObject *resultobj = 0;
13389 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13390 std::vector< int64_t > *arg3 = 0 ;
13394 std::vector< operations_research::IntVar * > temp2 ;
13395 std::vector< int64_t > temp3 ;
13398 PyObject * obj0 = 0 ;
13399 PyObject * obj1 = 0 ;
13400 PyObject * obj2 = 0 ;
13401 PyObject * obj3 = 0 ;
13404 if (!PyArg_UnpackTuple(args,
"Solver_ScalProdGreaterOrEqual", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
13407 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_ScalProdGreaterOrEqual" "', argument " "1"" of type '" "operations_research::Solver *""'");
13411 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13412 if (!PyErr_Occurred())
13419 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
13420 if (!PyErr_Occurred())
13430 arg4 =
static_cast< int64_t
>(val4);
13433 result = (
operations_research::Constraint *)(arg1)->MakeScalProdGreaterOrEqual((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3,arg4);
13447 PyObject *resultobj = 0;
13449 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13450 std::vector< int > *arg3 = 0 ;
13454 std::vector< operations_research::IntVar * > temp2 ;
13455 std::vector< int > temp3 ;
13458 PyObject * obj0 = 0 ;
13459 PyObject * obj1 = 0 ;
13460 PyObject * obj2 = 0 ;
13461 PyObject * obj3 = 0 ;
13464 if (!PyArg_UnpackTuple(args,
"Solver_ScalProdGreaterOrEqual", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
13467 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_ScalProdGreaterOrEqual" "', argument " "1"" of type '" "operations_research::Solver *""'");
13471 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13472 if (!PyErr_Occurred())
13479 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
13480 if (!PyErr_Occurred())
13490 arg4 =
static_cast< int64_t
>(val4);
13493 result = (
operations_research::Constraint *)(arg1)->MakeScalProdGreaterOrEqual((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,arg4);
13508 PyObject *argv[5] = {
13514 argc = PyObject_Length(args);
13515 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
13516 argv[ii] = PyTuple_GET_ITEM(args,ii);
13525 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13528 const bool is_tuple = PyTuple_Check(argv[1]);
13529 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13532 :PyList_GetItem(argv[1], i))) {
13540 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13543 const bool is_tuple = PyTuple_Check(argv[2]);
13544 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13546 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13547 :PyList_GetItem(argv[2], i))) {
13572 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13575 const bool is_tuple = PyTuple_Check(argv[1]);
13576 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13579 :PyList_GetItem(argv[1], i))) {
13587 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13590 const bool is_tuple = PyTuple_Check(argv[2]);
13591 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13593 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13594 :PyList_GetItem(argv[2], i))) {
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");
13623 PyObject *resultobj = 0;
13625 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13626 std::vector< int64_t > *arg3 = 0 ;
13630 std::vector< operations_research::IntVar * > temp2 ;
13631 std::vector< int64_t > temp3 ;
13634 PyObject * obj0 = 0 ;
13635 PyObject * obj1 = 0 ;
13636 PyObject * obj2 = 0 ;
13637 PyObject * obj3 = 0 ;
13640 if (!PyArg_UnpackTuple(args,
"Solver_ScalProdLessOrEqual", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
13647 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13648 if (!PyErr_Occurred())
13655 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
13656 if (!PyErr_Occurred())
13666 arg4 =
static_cast< int64_t
>(val4);
13669 result = (
operations_research::Constraint *)(arg1)->MakeScalProdLessOrEqual((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3,arg4);
13683 PyObject *resultobj = 0;
13685 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13686 std::vector< int > *arg3 = 0 ;
13690 std::vector< operations_research::IntVar * > temp2 ;
13691 std::vector< int > temp3 ;
13694 PyObject * obj0 = 0 ;
13695 PyObject * obj1 = 0 ;
13696 PyObject * obj2 = 0 ;
13697 PyObject * obj3 = 0 ;
13700 if (!PyArg_UnpackTuple(args,
"Solver_ScalProdLessOrEqual", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
13707 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13708 if (!PyErr_Occurred())
13715 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
13716 if (!PyErr_Occurred())
13726 arg4 =
static_cast< int64_t
>(val4);
13729 result = (
operations_research::Constraint *)(arg1)->MakeScalProdLessOrEqual((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,arg4);
13744 PyObject *argv[5] = {
13750 argc = PyObject_Length(args);
13751 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
13752 argv[ii] = PyTuple_GET_ITEM(args,ii);
13761 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13764 const bool is_tuple = PyTuple_Check(argv[1]);
13765 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13768 :PyList_GetItem(argv[1], i))) {
13776 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13779 const bool is_tuple = PyTuple_Check(argv[2]);
13780 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13782 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13783 :PyList_GetItem(argv[2], i))) {
13808 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13811 const bool is_tuple = PyTuple_Check(argv[1]);
13812 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13815 :PyList_GetItem(argv[1], i))) {
13823 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13826 const bool is_tuple = PyTuple_Check(argv[2]);
13827 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13829 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13830 :PyList_GetItem(argv[2], i))) {
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");
13859 PyObject *resultobj = 0;
13861 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13865 std::vector< operations_research::IntVar * > temp2 ;
13866 PyObject * obj0 = 0 ;
13867 PyObject * obj1 = 0 ;
13868 PyObject * obj2 = 0 ;
13871 if (!PyArg_UnpackTuple(args,
"Solver_MinEquality", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
13878 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13879 if (!PyErr_Occurred())
13904 PyObject *resultobj = 0;
13906 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13910 std::vector< operations_research::IntVar * > temp2 ;
13911 PyObject * obj0 = 0 ;
13912 PyObject * obj1 = 0 ;
13913 PyObject * obj2 = 0 ;
13916 if (!PyArg_UnpackTuple(args,
"Solver_MaxEquality", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
13923 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13924 if (!PyErr_Occurred())
13949 PyObject *resultobj = 0;
13951 std::vector< int64_t > *arg2 = 0 ;
13956 std::vector< int64_t > temp2 ;
13957 PyObject * obj0 = 0 ;
13958 PyObject * obj1 = 0 ;
13959 PyObject * obj2 = 0 ;
13960 PyObject * obj3 = 0 ;
13963 if (!PyArg_UnpackTuple(args,
"Solver_ElementEquality", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
13970 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
13971 if (!PyErr_Occurred())
13999 PyObject *resultobj = 0;
14001 std::vector< int > *arg2 = 0 ;
14006 std::vector< int > temp2 ;
14007 PyObject * obj0 = 0 ;
14008 PyObject * obj1 = 0 ;
14009 PyObject * obj2 = 0 ;
14010 PyObject * obj3 = 0 ;
14013 if (!PyArg_UnpackTuple(args,
"Solver_ElementEquality", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
14020 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
14021 if (!PyErr_Occurred())
14049 PyObject *resultobj = 0;
14051 std::vector< operations_research::IntVar * > *arg2 = 0 ;
14056 std::vector< operations_research::IntVar * > temp2 ;
14057 PyObject * obj0 = 0 ;
14058 PyObject * obj1 = 0 ;
14059 PyObject * obj2 = 0 ;
14060 PyObject * obj3 = 0 ;
14063 if (!PyArg_UnpackTuple(args,
"Solver_ElementEquality", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
14070 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
14071 if (!PyErr_Occurred())
14099 PyObject *resultobj = 0;
14101 std::vector< operations_research::IntVar * > *arg2 = 0 ;
14106 std::vector< operations_research::IntVar * > temp2 ;
14109 PyObject * obj0 = 0 ;
14110 PyObject * obj1 = 0 ;
14111 PyObject * obj2 = 0 ;
14112 PyObject * obj3 = 0 ;
14115 if (!PyArg_UnpackTuple(args,
"Solver_ElementEquality", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
14122 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
14123 if (!PyErr_Occurred())
14136 arg4 =
static_cast< int64_t
>(val4);
14154 PyObject *argv[5] = {
14160 argc = PyObject_Length(args);
14161 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
14162 argv[ii] = PyTuple_GET_ITEM(args,ii);
14171 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
14174 const bool is_tuple = PyTuple_Check(argv[1]);
14175 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
14177 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
14178 :PyList_GetItem(argv[1], i))) {
14187 if (_v == 0) PyErr_Clear();
14192 if (_v == 0) PyErr_Clear();
14208 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
14211 const bool is_tuple = PyTuple_Check(argv[1]);
14212 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
14214 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
14215 :PyList_GetItem(argv[1], i))) {
14224 if (_v == 0) PyErr_Clear();
14229 if (_v == 0) PyErr_Clear();
14245 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
14248 const bool is_tuple = PyTuple_Check(argv[1]);
14249 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
14252 :PyList_GetItem(argv[1], i))) {
14261 if (_v == 0) PyErr_Clear();
14266 if (_v == 0) PyErr_Clear();
14282 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
14285 const bool is_tuple = PyTuple_Check(argv[1]);
14286 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
14289 :PyList_GetItem(argv[1], i))) {
14298 if (_v == 0) PyErr_Clear();
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");
14325 PyObject *resultobj = 0;
14331 PyObject * obj0 = 0 ;
14332 PyObject * obj1 = 0 ;
14333 PyObject * obj2 = 0 ;
14336 if (!PyArg_UnpackTuple(args,
"Solver_AbsEquality", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
14364 PyObject *resultobj = 0;
14366 std::vector< operations_research::IntVar * > *arg2 = 0 ;
14371 std::vector< operations_research::IntVar * > temp2 ;
14374 PyObject * obj0 = 0 ;
14375 PyObject * obj1 = 0 ;
14376 PyObject * obj2 = 0 ;
14377 PyObject * obj3 = 0 ;
14380 if (!PyArg_UnpackTuple(args,
"Solver_IndexOfConstraint", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
14387 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
14388 if (!PyErr_Occurred())
14401 arg4 =
static_cast< int64_t
>(val4);
14418 PyObject *resultobj = 0;
14425 PyObject * obj0 = 0 ;
14426 PyObject * obj1 = 0 ;
14429 if (!PyArg_UnpackTuple(args,
"Solver_ConstraintInitialPropagateCallback", 2, 2, &obj0, &obj1))
SWIG_fail;
14432 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_ConstraintInitialPropagateCallback" "', argument " "1"" of type '" "operations_research::Solver *""'");
14437 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_ConstraintInitialPropagateCallback" "', argument " "2"" of type '" "operations_research::Constraint *const""'");
14456 PyObject *resultobj = 0;
14463 PyObject * obj0 = 0 ;
14464 PyObject * obj1 = 0 ;
14467 if (!PyArg_UnpackTuple(args,
"Solver_DelayedConstraintInitialPropagateCallback", 2, 2, &obj0, &obj1))
SWIG_fail;
14470 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_DelayedConstraintInitialPropagateCallback" "', argument " "1"" of type '" "operations_research::Solver *""'");
14475 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_DelayedConstraintInitialPropagateCallback" "', argument " "2"" of type '" "operations_research::Constraint *const""'");
14494 PyObject *resultobj = 0;
14499 PyObject * obj0 = 0 ;
14500 PyObject * obj1 = 0 ;
14503 if (!PyArg_UnpackTuple(args,
"Solver_ClosureDemon", 2, 2, &obj0, &obj1))
SWIG_fail;
14512 return InvokePythonCallableReturning<void>(
input.get());
14531 PyObject *resultobj = 0;
14542 PyObject * obj0 = 0 ;
14543 PyObject * obj1 = 0 ;
14544 PyObject * obj2 = 0 ;
14545 PyObject * obj3 = 0 ;
14548 if (!PyArg_UnpackTuple(args,
"Solver_BetweenCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
14561 arg3 =
static_cast< int64_t
>(val3);
14566 arg4 =
static_cast< int64_t
>(val4);
14583 PyObject *resultobj = 0;
14595 PyObject * obj0 = 0 ;
14596 PyObject * obj1 = 0 ;
14597 PyObject * obj2 = 0 ;
14598 PyObject * obj3 = 0 ;
14599 PyObject * obj4 = 0 ;
14602 if (!PyArg_UnpackTuple(args,
"Solver_IsBetweenCt", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
14615 arg3 =
static_cast< int64_t
>(val3);
14620 arg4 =
static_cast< int64_t
>(val4);
14640 PyObject *resultobj = 0;
14651 PyObject * obj0 = 0 ;
14652 PyObject * obj1 = 0 ;
14653 PyObject * obj2 = 0 ;
14654 PyObject * obj3 = 0 ;
14657 if (!PyArg_UnpackTuple(args,
"Solver_IsBetweenVar", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
14670 arg3 =
static_cast< int64_t
>(val3);
14675 arg4 =
static_cast< int64_t
>(val4);
14692 PyObject *resultobj = 0;
14695 std::vector< int64_t > *arg3 = 0 ;
14698 std::vector< int64_t > temp3 ;
14699 PyObject * obj0 = 0 ;
14700 PyObject * obj1 = 0 ;
14701 PyObject * obj2 = 0 ;
14704 if (!PyArg_UnpackTuple(args,
"Solver_MemberCt", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
14714 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
14715 if (!PyErr_Occurred())
14737 PyObject *resultobj = 0;
14740 std::vector< int > *arg3 = 0 ;
14743 std::vector< int > temp3 ;
14744 PyObject * obj0 = 0 ;
14745 PyObject * obj1 = 0 ;
14746 PyObject * obj2 = 0 ;
14749 if (!PyArg_UnpackTuple(args,
"Solver_MemberCt", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
14759 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
14760 if (!PyErr_Occurred())
14783 PyObject *argv[4] = {
14789 argc = PyObject_Length(args);
14790 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
14791 argv[ii] = PyTuple_GET_ITEM(args,ii);
14801 if (_v == 0) PyErr_Clear();
14805 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
14808 const bool is_tuple = PyTuple_Check(argv[2]);
14809 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
14811 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
14812 :PyList_GetItem(argv[2], i))) {
14832 if (_v == 0) PyErr_Clear();
14836 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
14839 const bool is_tuple = PyTuple_Check(argv[2]);
14840 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
14842 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
14843 :PyList_GetItem(argv[2], i))) {
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");
14866 PyObject *resultobj = 0;
14869 std::vector< int64_t > *arg3 = 0 ;
14872 std::vector< int64_t > temp3 ;
14873 PyObject * obj0 = 0 ;
14874 PyObject * obj1 = 0 ;
14875 PyObject * obj2 = 0 ;
14878 if (!PyArg_UnpackTuple(args,
"Solver_NotMemberCt", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
14888 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
14889 if (!PyErr_Occurred())
14911 PyObject *resultobj = 0;
14914 std::vector< int > *arg3 = 0 ;
14917 std::vector< int > temp3 ;
14918 PyObject * obj0 = 0 ;
14919 PyObject * obj1 = 0 ;
14920 PyObject * obj2 = 0 ;
14923 if (!PyArg_UnpackTuple(args,
"Solver_NotMemberCt", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
14933 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
14934 if (!PyErr_Occurred())
14956 PyObject *resultobj = 0;
14959 std::vector< int64_t > arg3 ;
14960 std::vector< int64_t > arg4 ;
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 ;
14971 if (!PyArg_UnpackTuple(args,
"Solver_NotMemberCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
14981 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
14982 if (!PyErr_Occurred())
14986 arg3 = std::move(temp3);
14989 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
14990 if (!PyErr_Occurred())
14994 arg4 = std::move(temp4);
15012 PyObject *resultobj = 0;
15015 std::vector< int > arg3 ;
15016 std::vector< int > arg4 ;
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 ;
15027 if (!PyArg_UnpackTuple(args,
"Solver_NotMemberCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
15037 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
15038 if (!PyErr_Occurred())
15042 arg3 = std::move(temp3);
15045 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
15046 if (!PyErr_Occurred())
15050 arg4 = std::move(temp4);
15069 PyObject *argv[5] = {
15075 argc = PyObject_Length(args);
15076 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
15077 argv[ii] = PyTuple_GET_ITEM(args,ii);
15087 if (_v == 0) PyErr_Clear();
15091 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15094 const bool is_tuple = PyTuple_Check(argv[2]);
15095 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15097 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15098 :PyList_GetItem(argv[2], i))) {
15118 if (_v == 0) PyErr_Clear();
15122 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15125 const bool is_tuple = PyTuple_Check(argv[2]);
15126 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15128 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15129 :PyList_GetItem(argv[2], i))) {
15149 if (_v == 0) PyErr_Clear();
15153 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15156 const bool is_tuple = PyTuple_Check(argv[2]);
15157 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15159 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15160 :PyList_GetItem(argv[2], i))) {
15168 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
15171 const bool is_tuple = PyTuple_Check(argv[3]);
15172 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
15174 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
15175 :PyList_GetItem(argv[3], i))) {
15196 if (_v == 0) PyErr_Clear();
15200 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15203 const bool is_tuple = PyTuple_Check(argv[2]);
15204 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15206 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15207 :PyList_GetItem(argv[2], i))) {
15215 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
15218 const bool is_tuple = PyTuple_Check(argv[3]);
15219 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
15221 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
15222 :PyList_GetItem(argv[3], i))) {
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");
15248 PyObject *resultobj = 0;
15251 std::vector< int64_t > *arg3 = 0 ;
15255 std::vector< int64_t > temp3 ;
15256 PyObject * obj0 = 0 ;
15257 PyObject * obj1 = 0 ;
15258 PyObject * obj2 = 0 ;
15259 PyObject * obj3 = 0 ;
15262 if (!PyArg_UnpackTuple(args,
"Solver_IsMemberCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
15272 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
15273 if (!PyErr_Occurred())
15298 PyObject *resultobj = 0;
15301 std::vector< int > *arg3 = 0 ;
15305 std::vector< int > temp3 ;
15306 PyObject * obj0 = 0 ;
15307 PyObject * obj1 = 0 ;
15308 PyObject * obj2 = 0 ;
15309 PyObject * obj3 = 0 ;
15312 if (!PyArg_UnpackTuple(args,
"Solver_IsMemberCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
15322 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
15323 if (!PyErr_Occurred())
15349 PyObject *argv[5] = {
15355 argc = PyObject_Length(args);
15356 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
15357 argv[ii] = PyTuple_GET_ITEM(args,ii);
15367 if (_v == 0) PyErr_Clear();
15371 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15374 const bool is_tuple = PyTuple_Check(argv[2]);
15375 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15377 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15378 :PyList_GetItem(argv[2], i))) {
15387 if (_v == 0) PyErr_Clear();
15404 if (_v == 0) PyErr_Clear();
15408 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15411 const bool is_tuple = PyTuple_Check(argv[2]);
15412 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15414 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15415 :PyList_GetItem(argv[2], i))) {
15424 if (_v == 0) PyErr_Clear();
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");
15444 PyObject *resultobj = 0;
15447 std::vector< int64_t > *arg3 = 0 ;
15450 std::vector< int64_t > temp3 ;
15451 PyObject * obj0 = 0 ;
15452 PyObject * obj1 = 0 ;
15453 PyObject * obj2 = 0 ;
15456 if (!PyArg_UnpackTuple(args,
"Solver_IsMemberVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
15466 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
15467 if (!PyErr_Occurred())
15489 PyObject *resultobj = 0;
15492 std::vector< int > *arg3 = 0 ;
15495 std::vector< int > temp3 ;
15496 PyObject * obj0 = 0 ;
15497 PyObject * obj1 = 0 ;
15498 PyObject * obj2 = 0 ;
15501 if (!PyArg_UnpackTuple(args,
"Solver_IsMemberVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
15511 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
15512 if (!PyErr_Occurred())
15535 PyObject *argv[4] = {
15541 argc = PyObject_Length(args);
15542 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
15543 argv[ii] = PyTuple_GET_ITEM(args,ii);
15553 if (_v == 0) PyErr_Clear();
15557 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15560 const bool is_tuple = PyTuple_Check(argv[2]);
15561 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15563 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15564 :PyList_GetItem(argv[2], i))) {
15584 if (_v == 0) PyErr_Clear();
15588 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15591 const bool is_tuple = PyTuple_Check(argv[2]);
15592 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15594 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15595 :PyList_GetItem(argv[2], i))) {
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");
15618 PyObject *resultobj = 0;
15620 std::vector< operations_research::IntVar * > *arg2 = 0 ;
15625 std::vector< operations_research::IntVar * > temp2 ;
15630 PyObject * obj0 = 0 ;
15631 PyObject * obj1 = 0 ;
15632 PyObject * obj2 = 0 ;
15633 PyObject * obj3 = 0 ;
15636 if (!PyArg_UnpackTuple(args,
"Solver_Count", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
15643 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
15644 if (!PyErr_Occurred())
15654 arg3 =
static_cast< int64_t
>(val3);
15659 arg4 =
static_cast< int64_t
>(val4);
15676 PyObject *resultobj = 0;
15678 std::vector< operations_research::IntVar * > *arg2 = 0 ;
15683 std::vector< operations_research::IntVar * > temp2 ;
15686 PyObject * obj0 = 0 ;
15687 PyObject * obj1 = 0 ;
15688 PyObject * obj2 = 0 ;
15689 PyObject * obj3 = 0 ;
15692 if (!PyArg_UnpackTuple(args,
"Solver_Count", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
15699 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
15700 if (!PyErr_Occurred())
15710 arg3 =
static_cast< int64_t
>(val3);
15731 PyObject *argv[5] = {
15737 argc = PyObject_Length(args);
15738 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
15739 argv[ii] = PyTuple_GET_ITEM(args,ii);
15748 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
15751 const bool is_tuple = PyTuple_Check(argv[1]);
15752 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
15755 :PyList_GetItem(argv[1], i))) {
15769 if (_v == 0) PyErr_Clear();
15785 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
15788 const bool is_tuple = PyTuple_Check(argv[1]);
15789 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
15792 :PyList_GetItem(argv[1], i))) {
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");
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 ;
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 ;
15842 if (!PyArg_UnpackTuple(args,
"Solver_Distribute", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
15849 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
15850 if (!PyErr_Occurred())
15857 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
15858 if (!PyErr_Occurred())
15865 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
15866 if (!PyErr_Occurred())
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);
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 ;
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 ;
15904 if (!PyArg_UnpackTuple(args,
"Solver_Distribute", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
15911 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
15912 if (!PyErr_Occurred())
15919 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
15920 if (!PyErr_Occurred())
15927 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
15928 if (!PyErr_Occurred())
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);
15950 PyObject *resultobj = 0;
15952 std::vector< operations_research::IntVar * > *arg2 = 0 ;
15953 std::vector< operations_research::IntVar * > *arg3 = 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 ;
15963 if (!PyArg_UnpackTuple(args,
"Solver_Distribute", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
15970 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
15971 if (!PyErr_Occurred())
15978 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
15979 if (!PyErr_Occurred())
15987 result = (
operations_research::Constraint *)(arg1)->MakeDistribute((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3);
16001 PyObject *resultobj = 0;
16003 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16009 std::vector< operations_research::IntVar * > temp2 ;
16016 PyObject * obj0 = 0 ;
16017 PyObject * obj1 = 0 ;
16018 PyObject * obj2 = 0 ;
16019 PyObject * obj3 = 0 ;
16020 PyObject * obj4 = 0 ;
16023 if (!PyArg_UnpackTuple(args,
"Solver_Distribute", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
16030 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16031 if (!PyErr_Occurred())
16041 arg3 =
static_cast< int64_t
>(val3);
16046 arg4 =
static_cast< int64_t
>(val4);
16051 arg5 =
static_cast< int64_t
>(val5);
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 ;
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 ;
16084 if (!PyArg_UnpackTuple(args,
"Solver_Distribute", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
16091 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16092 if (!PyErr_Occurred())
16099 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
16100 if (!PyErr_Occurred())
16107 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
16108 if (!PyErr_Occurred())
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);
16130 PyObject *resultobj = 0;
16132 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16133 std::vector< int > *arg3 = 0 ;
16134 std::vector< int > *arg4 = 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 ;
16146 if (!PyArg_UnpackTuple(args,
"Solver_Distribute", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
16153 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16154 if (!PyErr_Occurred())
16161 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
16162 if (!PyErr_Occurred())
16169 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
16170 if (!PyErr_Occurred())
16178 result = (
operations_research::Constraint *)(arg1)->MakeDistribute((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,(std::vector< int >
const &)*arg4);
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 ;
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 ;
16211 if (!PyArg_UnpackTuple(args,
"Solver_Distribute", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
16218 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16219 if (!PyErr_Occurred())
16226 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
16227 if (!PyErr_Occurred())
16234 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
16235 if (!PyErr_Occurred())
16242 if (!vector_input_helper(obj4, &temp5, PyObjAs<int64_t>)) {
16243 if (!PyErr_Occurred())
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);
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 ;
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 ;
16284 if (!PyArg_UnpackTuple(args,
"Solver_Distribute", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
16291 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16292 if (!PyErr_Occurred())
16299 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
16300 if (!PyErr_Occurred())
16307 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
16308 if (!PyErr_Occurred())
16315 if (!vector_input_helper(obj4, &temp5, PyObjAs<int>)) {
16316 if (!PyErr_Occurred())
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);
16339 PyObject *argv[6] = {
16345 argc = PyObject_Length(args);
16346 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
16347 argv[ii] = PyTuple_GET_ITEM(args,ii);
16356 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16359 const bool is_tuple = PyTuple_Check(argv[1]);
16360 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16363 :PyList_GetItem(argv[1], i))) {
16371 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16374 const bool is_tuple = PyTuple_Check(argv[2]);
16375 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16378 :PyList_GetItem(argv[2], i))) {
16397 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16400 const bool is_tuple = PyTuple_Check(argv[1]);
16401 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16404 :PyList_GetItem(argv[1], i))) {
16412 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16415 const bool is_tuple = PyTuple_Check(argv[2]);
16416 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16418 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16419 :PyList_GetItem(argv[2], i))) {
16427 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16430 const bool is_tuple = PyTuple_Check(argv[3]);
16431 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16434 :PyList_GetItem(argv[3], i))) {
16454 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16457 const bool is_tuple = PyTuple_Check(argv[1]);
16458 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16461 :PyList_GetItem(argv[1], i))) {
16469 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16472 const bool is_tuple = PyTuple_Check(argv[2]);
16473 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16475 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16476 :PyList_GetItem(argv[2], i))) {
16484 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16487 const bool is_tuple = PyTuple_Check(argv[3]);
16488 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16491 :PyList_GetItem(argv[3], i))) {
16511 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16514 const bool is_tuple = PyTuple_Check(argv[1]);
16515 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16518 :PyList_GetItem(argv[1], i))) {
16526 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16529 const bool is_tuple = PyTuple_Check(argv[2]);
16530 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16532 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16533 :PyList_GetItem(argv[2], i))) {
16541 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16544 const bool is_tuple = PyTuple_Check(argv[3]);
16545 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16547 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
16548 :PyList_GetItem(argv[3], i))) {
16568 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16571 const bool is_tuple = PyTuple_Check(argv[1]);
16572 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16575 :PyList_GetItem(argv[1], i))) {
16583 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16586 const bool is_tuple = PyTuple_Check(argv[2]);
16587 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16589 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16590 :PyList_GetItem(argv[2], i))) {
16598 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16601 const bool is_tuple = PyTuple_Check(argv[3]);
16602 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16604 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
16605 :PyList_GetItem(argv[3], i))) {
16625 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16628 const bool is_tuple = PyTuple_Check(argv[1]);
16629 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16632 :PyList_GetItem(argv[1], i))) {
16640 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16643 const bool is_tuple = PyTuple_Check(argv[2]);
16644 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16646 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16647 :PyList_GetItem(argv[2], i))) {
16655 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16658 const bool is_tuple = PyTuple_Check(argv[3]);
16659 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16661 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
16662 :PyList_GetItem(argv[3], i))) {
16670 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
16673 const bool is_tuple = PyTuple_Check(argv[4]);
16674 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
16676 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
16677 :PyList_GetItem(argv[4], i))) {
16698 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16701 const bool is_tuple = PyTuple_Check(argv[1]);
16702 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16705 :PyList_GetItem(argv[1], i))) {
16713 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16716 const bool is_tuple = PyTuple_Check(argv[2]);
16717 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16719 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16720 :PyList_GetItem(argv[2], i))) {
16728 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16731 const bool is_tuple = PyTuple_Check(argv[3]);
16732 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16734 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
16735 :PyList_GetItem(argv[3], i))) {
16743 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
16746 const bool is_tuple = PyTuple_Check(argv[4]);
16747 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
16749 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
16750 :PyList_GetItem(argv[4], i))) {
16771 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16774 const bool is_tuple = PyTuple_Check(argv[1]);
16775 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16778 :PyList_GetItem(argv[1], i))) {
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");
16824 PyObject *resultobj = 0;
16826 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16831 std::vector< operations_research::IntVar * > temp2 ;
16834 PyObject * obj0 = 0 ;
16835 PyObject * obj1 = 0 ;
16836 PyObject * obj2 = 0 ;
16837 PyObject * obj3 = 0 ;
16840 if (!PyArg_UnpackTuple(args,
"Solver_Deviation", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
16847 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16848 if (!PyErr_Occurred())
16861 arg4 =
static_cast< int64_t
>(val4);
16878 PyObject *resultobj = 0;
16880 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16883 std::vector< operations_research::IntVar * > temp2 ;
16884 PyObject * obj0 = 0 ;
16885 PyObject * obj1 = 0 ;
16888 if (!PyArg_UnpackTuple(args,
"Solver_AllDifferent", 2, 2, &obj0, &obj1))
SWIG_fail;
16895 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16896 if (!PyErr_Occurred())
16918 PyObject *resultobj = 0;
16920 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16924 std::vector< operations_research::IntVar * > temp2 ;
16927 PyObject * obj0 = 0 ;
16928 PyObject * obj1 = 0 ;
16929 PyObject * obj2 = 0 ;
16932 if (!PyArg_UnpackTuple(args,
"Solver_AllDifferent", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
16939 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16940 if (!PyErr_Occurred())
16950 arg3 =
static_cast< bool >(val3);
16968 PyObject *argv[4] = {
16974 argc = PyObject_Length(args);
16975 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
16976 argv[ii] = PyTuple_GET_ITEM(args,ii);
16985 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16988 const bool is_tuple = PyTuple_Check(argv[1]);
16989 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16992 :PyList_GetItem(argv[1], i))) {
17010 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
17013 const bool is_tuple = PyTuple_Check(argv[1]);
17014 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
17017 :PyList_GetItem(argv[1], i))) {
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");
17045 PyObject *resultobj = 0;
17047 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17051 std::vector< operations_research::IntVar * > temp2 ;
17054 PyObject * obj0 = 0 ;
17055 PyObject * obj1 = 0 ;
17056 PyObject * obj2 = 0 ;
17059 if (!PyArg_UnpackTuple(args,
"Solver_AllDifferentExcept", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
17066 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17067 if (!PyErr_Occurred())
17077 arg3 =
static_cast< int64_t
>(val3);
17094 PyObject *resultobj = 0;
17096 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17097 std::vector< operations_research::IntVar * > *arg3 = 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 ;
17107 if (!PyArg_UnpackTuple(args,
"Solver_SortingConstraint", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
17114 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17115 if (!PyErr_Occurred())
17122 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17123 if (!PyErr_Occurred())
17131 result = (
operations_research::Constraint *)(arg1)->MakeSortingConstraint((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3);
17145 PyObject *resultobj = 0;
17147 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17148 std::vector< operations_research::IntVar * > *arg3 = 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 ;
17158 if (!PyArg_UnpackTuple(args,
"Solver_LexicalLess", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
17165 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17166 if (!PyErr_Occurred())
17173 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17174 if (!PyErr_Occurred())
17182 result = (
operations_research::Constraint *)(arg1)->MakeLexicalLess((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3);
17196 PyObject *resultobj = 0;
17198 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17199 std::vector< operations_research::IntVar * > *arg3 = 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 ;
17209 if (!PyArg_UnpackTuple(args,
"Solver_LexicalLessOrEqual", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
17216 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17217 if (!PyErr_Occurred())
17224 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17225 if (!PyErr_Occurred())
17233 result = (
operations_research::Constraint *)(arg1)->MakeLexicalLessOrEqual((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3);
17247 PyObject *resultobj = 0;
17249 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17250 std::vector< operations_research::IntVar * > *arg3 = 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 ;
17260 if (!PyArg_UnpackTuple(args,
"Solver_InversePermutationConstraint", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
17263 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_InversePermutationConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
17267 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17268 if (!PyErr_Occurred())
17275 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17276 if (!PyErr_Occurred())
17284 result = (
operations_research::Constraint *)(arg1)->MakeInversePermutationConstraint((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3);
17298 PyObject *resultobj = 0;
17300 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17301 std::vector< operations_research::IntVar * > *arg3 = 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 ;
17311 if (!PyArg_UnpackTuple(args,
"Solver_NullIntersect", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
17318 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17319 if (!PyErr_Occurred())
17326 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17327 if (!PyErr_Occurred())
17335 result = (
operations_research::Constraint *)(arg1)->MakeNullIntersect((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3);
17349 PyObject *resultobj = 0;
17351 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17352 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17356 std::vector< operations_research::IntVar * > temp2 ;
17357 std::vector< operations_research::IntVar * > temp3 ;
17360 PyObject * obj0 = 0 ;
17361 PyObject * obj1 = 0 ;
17362 PyObject * obj2 = 0 ;
17363 PyObject * obj3 = 0 ;
17366 if (!PyArg_UnpackTuple(args,
"Solver_NullIntersectExcept", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
17373 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17374 if (!PyErr_Occurred())
17381 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17382 if (!PyErr_Occurred())
17392 arg4 =
static_cast< int64_t
>(val4);
17395 result = (
operations_research::Constraint *)(arg1)->MakeNullIntersectExcept((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3,arg4);
17409 PyObject *resultobj = 0;
17411 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17414 std::vector< operations_research::IntVar * > temp2 ;
17415 PyObject * obj0 = 0 ;
17416 PyObject * obj1 = 0 ;
17419 if (!PyArg_UnpackTuple(args,
"Solver_Circuit", 2, 2, &obj0, &obj1))
SWIG_fail;
17426 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17427 if (!PyErr_Occurred())
17449 PyObject *resultobj = 0;
17451 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17454 std::vector< operations_research::IntVar * > temp2 ;
17455 PyObject * obj0 = 0 ;
17456 PyObject * obj1 = 0 ;
17459 if (!PyArg_UnpackTuple(args,
"Solver_SubCircuit", 2, 2, &obj0, &obj1))
SWIG_fail;
17466 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17467 if (!PyErr_Occurred())
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 ;
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 ;
17508 if (!PyArg_UnpackTuple(args,
"Solver_PathCumul", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
17515 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17516 if (!PyErr_Occurred())
17523 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17524 if (!PyErr_Occurred())
17531 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
17532 if (!PyErr_Occurred())
17539 if (!vector_input_helper(obj4, &temp5, PyObjAs<operations_research::IntVar*>)) {
17540 if (!PyErr_Occurred())
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);
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 ;
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 ;
17581 if (!PyArg_UnpackTuple(args,
"Solver_DelayedPathCumul", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
17588 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17589 if (!PyErr_Occurred())
17596 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17597 if (!PyErr_Occurred())
17604 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
17605 if (!PyErr_Occurred())
17612 if (!vector_input_helper(obj4, &temp5, PyObjAs<operations_research::IntVar*>)) {
17613 if (!PyErr_Occurred())
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);
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 ;
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 ;
17653 if (!PyArg_UnpackTuple(args,
"Solver_PathCumul", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
17660 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17661 if (!PyErr_Occurred())
17668 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17669 if (!PyErr_Occurred())
17676 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
17677 if (!PyErr_Occurred())
17685 arg5 = [
input](int64_t i, int64_t j) {
17686 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
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);
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 ;
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 ;
17726 if (!PyArg_UnpackTuple(args,
"Solver_PathCumul", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
17733 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17734 if (!PyErr_Occurred())
17741 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17742 if (!PyErr_Occurred())
17749 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
17750 if (!PyErr_Occurred())
17757 if (!vector_input_helper(obj4, &temp5, PyObjAs<operations_research::IntVar*>)) {
17758 if (!PyErr_Occurred())
17766 arg6 = [
input](int64_t i, int64_t j) {
17767 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
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);
17787 PyObject *argv[7] = {
17793 argc = PyObject_Length(args);
17794 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
17795 argv[ii] = PyTuple_GET_ITEM(args,ii);
17804 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
17807 const bool is_tuple = PyTuple_Check(argv[1]);
17808 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
17811 :PyList_GetItem(argv[1], i))) {
17819 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
17822 const bool is_tuple = PyTuple_Check(argv[2]);
17823 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
17826 :PyList_GetItem(argv[2], i))) {
17834 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
17837 const bool is_tuple = PyTuple_Check(argv[3]);
17838 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
17841 :PyList_GetItem(argv[3], i))) {
17849 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
17852 const bool is_tuple = PyTuple_Check(argv[4]);
17853 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
17856 :PyList_GetItem(argv[4], i))) {
17877 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
17880 const bool is_tuple = PyTuple_Check(argv[1]);
17881 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
17884 :PyList_GetItem(argv[1], i))) {
17892 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
17895 const bool is_tuple = PyTuple_Check(argv[2]);
17896 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
17899 :PyList_GetItem(argv[2], i))) {
17907 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
17910 const bool is_tuple = PyTuple_Check(argv[3]);
17911 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
17914 :PyList_GetItem(argv[3], i))) {
17922 _v = PyCallable_Check(argv[4]);
17939 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
17942 const bool is_tuple = PyTuple_Check(argv[1]);
17943 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
17946 :PyList_GetItem(argv[1], i))) {
17954 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
17957 const bool is_tuple = PyTuple_Check(argv[2]);
17958 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
17961 :PyList_GetItem(argv[2], i))) {
17969 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
17972 const bool is_tuple = PyTuple_Check(argv[3]);
17973 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
17976 :PyList_GetItem(argv[3], i))) {
17984 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
17987 const bool is_tuple = PyTuple_Check(argv[4]);
17988 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
17991 :PyList_GetItem(argv[4], i))) {
17999 _v = PyCallable_Check(argv[5]);
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");
18022 PyObject *resultobj = 0;
18024 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18028 std::vector< operations_research::IntVar * > temp2 ;
18031 PyObject * obj0 = 0 ;
18032 PyObject * obj1 = 0 ;
18033 PyObject * obj2 = 0 ;
18036 if (!PyArg_UnpackTuple(args,
"Solver_AllowedAssignments", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
18043 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18044 if (!PyErr_Occurred())
18052 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_AllowedAssignments" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18055 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_AllowedAssignments" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18074 PyObject *resultobj = 0;
18076 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18079 std::vector< int64_t > *arg5 = 0 ;
18082 std::vector< operations_research::IntVar * > temp2 ;
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 ;
18095 if (!PyArg_UnpackTuple(args,
"Solver_TransitionConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
18102 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18103 if (!PyErr_Occurred())
18111 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_TransitionConstraint" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18114 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_TransitionConstraint" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18121 arg4 =
static_cast< int64_t
>(val4);
18123 if (!vector_input_helper(obj4, &temp5, PyObjAs<int64_t>)) {
18124 if (!PyErr_Occurred())
18146 PyObject *resultobj = 0;
18148 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18151 std::vector< int > *arg5 = 0 ;
18154 std::vector< operations_research::IntVar * > temp2 ;
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 ;
18167 if (!PyArg_UnpackTuple(args,
"Solver_TransitionConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
18174 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18175 if (!PyErr_Occurred())
18183 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_TransitionConstraint" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18186 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_TransitionConstraint" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18193 arg4 =
static_cast< int64_t
>(val4);
18195 if (!vector_input_helper(obj4, &temp5, PyObjAs<int>)) {
18196 if (!PyErr_Occurred())
18218 PyObject *resultobj = 0;
18220 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18221 std::vector< std::vector< int64_t > > *arg3 = 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 ;
18231 if (!PyArg_UnpackTuple(args,
"Solver_AllowedAssignments", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
18238 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18239 if (!PyErr_Occurred())
18246 if (!PyList_Check(obj2)) {
18247 PyErr_SetString(PyExc_TypeError,
"Expecting a list of tuples");
18250 int len = PyList_Size(obj2);
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");
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),
18277 result = (
operations_research::Constraint *)(arg1)->MakeAllowedAssignments((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< std::vector< int64_t > >
const &)*arg3);
18292 PyObject *argv[4] = {
18298 argc = PyObject_Length(args);
18299 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
18300 argv[ii] = PyTuple_GET_ITEM(args,ii);
18309 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18312 const bool is_tuple = PyTuple_Check(argv[1]);
18313 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18316 :PyList_GetItem(argv[1], i))) {
18338 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18341 const bool is_tuple = PyTuple_Check(argv[1]);
18342 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18345 :PyList_GetItem(argv[1], i))) {
18353 if (!PyList_Check(argv[2])) {
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)) {
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)) {
18379 _v = failed ? 0 : 1;
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");
18399 PyObject *resultobj = 0;
18401 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18402 std::vector< std::vector< int64_t > > *arg3 = 0 ;
18404 std::vector< int > *arg5 = 0 ;
18407 std::vector< operations_research::IntVar * > temp2 ;
18408 std::vector< std::vector< int64_t > > temp3 ;
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 ;
18419 if (!PyArg_UnpackTuple(args,
"Solver_TransitionConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
18426 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18427 if (!PyErr_Occurred())
18434 if (!PyList_Check(obj2)) {
18435 PyErr_SetString(PyExc_TypeError,
"Expecting a list of tuples");
18438 int len = PyList_Size(obj2);
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");
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),
18467 arg4 =
static_cast< int64_t
>(val4);
18469 if (!vector_input_helper(obj4, &temp5, PyObjAs<int>)) {
18470 if (!PyErr_Occurred())
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);
18493 PyObject *argv[6] = {
18499 argc = PyObject_Length(args);
18500 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
18501 argv[ii] = PyTuple_GET_ITEM(args,ii);
18510 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18513 const bool is_tuple = PyTuple_Check(argv[1]);
18514 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18517 :PyList_GetItem(argv[1], i))) {
18533 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
18536 const bool is_tuple = PyTuple_Check(argv[4]);
18537 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
18539 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
18540 :PyList_GetItem(argv[4], i))) {
18561 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18564 const bool is_tuple = PyTuple_Check(argv[1]);
18565 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18568 :PyList_GetItem(argv[1], i))) {
18584 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
18587 const bool is_tuple = PyTuple_Check(argv[4]);
18588 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
18590 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
18591 :PyList_GetItem(argv[4], i))) {
18612 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18615 const bool is_tuple = PyTuple_Check(argv[1]);
18616 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18619 :PyList_GetItem(argv[1], i))) {
18627 if (!PyList_Check(argv[2])) {
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)) {
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)) {
18653 _v = failed ? 0 : 1;
18663 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
18666 const bool is_tuple = PyTuple_Check(argv[4]);
18667 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
18669 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
18670 :PyList_GetItem(argv[4], i))) {
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");
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 ;
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 ;
18715 if (!PyArg_UnpackTuple(args,
"Solver_NonOverlappingBoxesConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
18718 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_NonOverlappingBoxesConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
18722 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18723 if (!PyErr_Occurred())
18730 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
18731 if (!PyErr_Occurred())
18738 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
18739 if (!PyErr_Occurred())
18746 if (!vector_input_helper(obj4, &temp5, PyObjAs<operations_research::IntVar*>)) {
18747 if (!PyErr_Occurred())
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);
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 ;
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 ;
18788 if (!PyArg_UnpackTuple(args,
"Solver_NonOverlappingBoxesConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
18791 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_NonOverlappingBoxesConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
18795 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18796 if (!PyErr_Occurred())
18803 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
18804 if (!PyErr_Occurred())
18811 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
18812 if (!PyErr_Occurred())
18819 if (!vector_input_helper(obj4, &temp5, PyObjAs<int64_t>)) {
18820 if (!PyErr_Occurred())
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);
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 ;
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 ;
18861 if (!PyArg_UnpackTuple(args,
"Solver_NonOverlappingBoxesConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
18864 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_NonOverlappingBoxesConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
18868 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18869 if (!PyErr_Occurred())
18876 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
18877 if (!PyErr_Occurred())
18884 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
18885 if (!PyErr_Occurred())
18892 if (!vector_input_helper(obj4, &temp5, PyObjAs<int>)) {
18893 if (!PyErr_Occurred())
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);
18916 PyObject *argv[6] = {
18922 argc = PyObject_Length(args);
18923 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
18924 argv[ii] = PyTuple_GET_ITEM(args,ii);
18933 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18936 const bool is_tuple = PyTuple_Check(argv[1]);
18937 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18940 :PyList_GetItem(argv[1], i))) {
18948 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
18951 const bool is_tuple = PyTuple_Check(argv[2]);
18952 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
18955 :PyList_GetItem(argv[2], i))) {
18963 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
18966 const bool is_tuple = PyTuple_Check(argv[3]);
18967 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
18970 :PyList_GetItem(argv[3], i))) {
18978 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
18981 const bool is_tuple = PyTuple_Check(argv[4]);
18982 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
18985 :PyList_GetItem(argv[4], i))) {
19006 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
19009 const bool is_tuple = PyTuple_Check(argv[1]);
19010 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
19013 :PyList_GetItem(argv[1], i))) {
19021 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
19024 const bool is_tuple = PyTuple_Check(argv[2]);
19025 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
19028 :PyList_GetItem(argv[2], i))) {
19036 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
19039 const bool is_tuple = PyTuple_Check(argv[3]);
19040 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
19042 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
19043 :PyList_GetItem(argv[3], i))) {
19051 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
19054 const bool is_tuple = PyTuple_Check(argv[4]);
19055 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
19057 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
19058 :PyList_GetItem(argv[4], i))) {
19079 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
19082 const bool is_tuple = PyTuple_Check(argv[1]);
19083 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
19086 :PyList_GetItem(argv[1], i))) {
19094 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
19097 const bool is_tuple = PyTuple_Check(argv[2]);
19098 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
19101 :PyList_GetItem(argv[2], i))) {
19109 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
19112 const bool is_tuple = PyTuple_Check(argv[3]);
19113 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
19115 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
19116 :PyList_GetItem(argv[3], i))) {
19124 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
19127 const bool is_tuple = PyTuple_Check(argv[4]);
19128 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
19130 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
19131 :PyList_GetItem(argv[4], i))) {
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");
19157 PyObject *resultobj = 0;
19159 std::vector< operations_research::IntVar * > *arg2 = 0 ;
19163 std::vector< operations_research::IntVar * > temp2 ;
19166 PyObject * obj0 = 0 ;
19167 PyObject * obj1 = 0 ;
19168 PyObject * obj2 = 0 ;
19171 if (!PyArg_UnpackTuple(args,
"Solver_Pack", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
19178 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
19179 if (!PyErr_Occurred())
19189 arg3 =
static_cast< int >(val3);
19192 result = (
operations_research::Pack *)(arg1)->MakePack((std::vector< operations_research::IntVar * >
const &)*arg2,arg3);
19206 PyObject *resultobj = 0;
19212 std::string *arg6 = 0 ;
19224 PyObject * obj0 = 0 ;
19225 PyObject * obj1 = 0 ;
19226 PyObject * obj2 = 0 ;
19227 PyObject * obj3 = 0 ;
19228 PyObject * obj4 = 0 ;
19229 PyObject * obj5 = 0 ;
19232 if (!PyArg_UnpackTuple(args,
"Solver_FixedDurationIntervalVar", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
19235 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FixedDurationIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19242 arg2 =
static_cast< int64_t
>(val2);
19247 arg3 =
static_cast< int64_t
>(val3);
19252 arg4 =
static_cast< int64_t
>(val4);
19257 arg5 =
static_cast< bool >(val5);
19259 std::string *ptr = (std::string *)0;
19265 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_FixedDurationIntervalVar" "', argument " "6"" of type '" "std::string const &""'");
19287 PyObject *resultobj = 0;
19291 std::string *arg4 = 0 ;
19297 PyObject * obj0 = 0 ;
19298 PyObject * obj1 = 0 ;
19299 PyObject * obj2 = 0 ;
19300 PyObject * obj3 = 0 ;
19303 if (!PyArg_UnpackTuple(args,
"Solver_FixedDurationIntervalVar", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
19306 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FixedDurationIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19316 arg3 =
static_cast< int64_t
>(val3);
19318 std::string *ptr = (std::string *)0;
19324 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_FixedDurationIntervalVar" "', argument " "4"" of type '" "std::string const &""'");
19346 PyObject *resultobj = 0;
19351 std::string *arg5 = 0 ;
19357 PyObject * obj0 = 0 ;
19358 PyObject * obj1 = 0 ;
19359 PyObject * obj2 = 0 ;
19360 PyObject * obj3 = 0 ;
19361 PyObject * obj4 = 0 ;
19364 if (!PyArg_UnpackTuple(args,
"Solver_FixedDurationIntervalVar", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
19367 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FixedDurationIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19377 arg3 =
static_cast< int64_t
>(val3);
19382 std::string *ptr = (std::string *)0;
19388 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_FixedDurationIntervalVar" "', argument " "5"" of type '" "std::string const &""'");
19411 PyObject *argv[7] = {
19417 argc = PyObject_Length(args);
19418 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
19419 argv[ii] = PyTuple_GET_ITEM(args,ii);
19429 if (_v == 0) PyErr_Clear();
19454 if (_v == 0) PyErr_Clear();
19464 if (_v == 0) PyErr_Clear();
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");
19526 PyObject *resultobj = 0;
19530 std::string *arg4 = 0 ;
19538 PyObject * obj0 = 0 ;
19539 PyObject * obj1 = 0 ;
19540 PyObject * obj2 = 0 ;
19541 PyObject * obj3 = 0 ;
19544 if (!PyArg_UnpackTuple(args,
"Solver_FixedInterval", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
19554 arg2 =
static_cast< int64_t
>(val2);
19559 arg3 =
static_cast< int64_t
>(val3);
19561 std::string *ptr = (std::string *)0;
19589 PyObject *resultobj = 0;
19598 std::string *arg9 = 0 ;
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 ;
19627 if (!PyArg_UnpackTuple(args,
"Solver_IntervalVar", 9, 9, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7, &obj8))
SWIG_fail;
19637 arg2 =
static_cast< int64_t
>(val2);
19642 arg3 =
static_cast< int64_t
>(val3);
19647 arg4 =
static_cast< int64_t
>(val4);
19652 arg5 =
static_cast< int64_t
>(val5);
19657 arg6 =
static_cast< int64_t
>(val6);
19662 arg7 =
static_cast< int64_t
>(val7);
19667 arg8 =
static_cast< bool >(val8);
19669 std::string *ptr = (std::string *)0;
19697 PyObject *resultobj = 0;
19702 PyObject * obj0 = 0 ;
19703 PyObject * obj1 = 0 ;
19706 if (!PyArg_UnpackTuple(args,
"Solver_MirrorInterval", 2, 2, &obj0, &obj1))
SWIG_fail;
19731 PyObject *resultobj = 0;
19742 PyObject * obj0 = 0 ;
19743 PyObject * obj1 = 0 ;
19744 PyObject * obj2 = 0 ;
19745 PyObject * obj3 = 0 ;
19748 if (!PyArg_UnpackTuple(args,
"Solver_FixedDurationStartSyncedOnStartIntervalVar", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
19751 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FixedDurationStartSyncedOnStartIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19759 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "Solver_FixedDurationStartSyncedOnStartIntervalVar" "', argument " "3"" of type '" "int64_t""'");
19761 arg3 =
static_cast< int64_t
>(val3);
19764 SWIG_exception_fail(
SWIG_ArgError(ecode4),
"in method '" "Solver_FixedDurationStartSyncedOnStartIntervalVar" "', argument " "4"" of type '" "int64_t""'");
19766 arg4 =
static_cast< int64_t
>(val4);
19783 PyObject *resultobj = 0;
19794 PyObject * obj0 = 0 ;
19795 PyObject * obj1 = 0 ;
19796 PyObject * obj2 = 0 ;
19797 PyObject * obj3 = 0 ;
19800 if (!PyArg_UnpackTuple(args,
"Solver_FixedDurationStartSyncedOnEndIntervalVar", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
19803 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FixedDurationStartSyncedOnEndIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19813 arg3 =
static_cast< int64_t
>(val3);
19818 arg4 =
static_cast< int64_t
>(val4);
19835 PyObject *resultobj = 0;
19846 PyObject * obj0 = 0 ;
19847 PyObject * obj1 = 0 ;
19848 PyObject * obj2 = 0 ;
19849 PyObject * obj3 = 0 ;
19852 if (!PyArg_UnpackTuple(args,
"Solver_FixedDurationEndSyncedOnStartIntervalVar", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
19855 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FixedDurationEndSyncedOnStartIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19865 arg3 =
static_cast< int64_t
>(val3);
19870 arg4 =
static_cast< int64_t
>(val4);
19887 PyObject *resultobj = 0;
19898 PyObject * obj0 = 0 ;
19899 PyObject * obj1 = 0 ;
19900 PyObject * obj2 = 0 ;
19901 PyObject * obj3 = 0 ;
19904 if (!PyArg_UnpackTuple(args,
"Solver_FixedDurationEndSyncedOnEndIntervalVar", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
19907 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FixedDurationEndSyncedOnEndIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19917 arg3 =
static_cast< int64_t
>(val3);
19922 arg4 =
static_cast< int64_t
>(val4);
19939 PyObject *resultobj = 0;
19944 PyObject * obj0 = 0 ;
19945 PyObject * obj1 = 0 ;
19948 if (!PyArg_UnpackTuple(args,
"Solver_IntervalRelaxedMin", 2, 2, &obj0, &obj1))
SWIG_fail;
19973 PyObject *resultobj = 0;
19978 PyObject * obj0 = 0 ;
19979 PyObject * obj1 = 0 ;
19982 if (!PyArg_UnpackTuple(args,
"Solver_IntervalRelaxedMax", 2, 2, &obj0, &obj1))
SWIG_fail;
20007 PyObject *resultobj = 0;
20014 PyObject * obj0 = 0 ;
20015 PyObject * obj1 = 0 ;
20016 PyObject * obj2 = 0 ;
20017 PyObject * obj3 = 0 ;
20020 if (!PyArg_UnpackTuple(args,
"Solver_TemporalDisjunction", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
20051 PyObject *resultobj = 0;
20057 PyObject * obj0 = 0 ;
20058 PyObject * obj1 = 0 ;
20059 PyObject * obj2 = 0 ;
20062 if (!PyArg_UnpackTuple(args,
"Solver_TemporalDisjunction", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
20091 PyObject *argv[5] = {
20097 argc = PyObject_Length(args);
20098 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
20099 argv[ii] = PyTuple_GET_ITEM(args,ii);
20109 if (_v == 0) PyErr_Clear();
20114 if (_v == 0) PyErr_Clear();
20130 if (_v == 0) PyErr_Clear();
20135 if (_v == 0) PyErr_Clear();
20140 if (_v == 0) PyErr_Clear();
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");
20160 PyObject *resultobj = 0;
20162 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20163 std::string *arg3 = 0 ;
20166 std::vector< operations_research::IntervalVar * > temp2 ;
20168 PyObject * obj0 = 0 ;
20169 PyObject * obj1 = 0 ;
20170 PyObject * obj2 = 0 ;
20173 if (!PyArg_UnpackTuple(args,
"Solver_DisjunctiveConstraint", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
20180 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20181 if (!PyErr_Occurred())
20188 std::string *ptr = (std::string *)0;
20194 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_DisjunctiveConstraint" "', argument " "3"" of type '" "std::string const &""'");
20216 PyObject *resultobj = 0;
20218 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20219 std::vector< int64_t > *arg3 = 0 ;
20221 std::string *arg5 = 0 ;
20224 std::vector< operations_research::IntervalVar * > temp2 ;
20225 std::vector< int64_t > temp3 ;
20229 PyObject * obj0 = 0 ;
20230 PyObject * obj1 = 0 ;
20231 PyObject * obj2 = 0 ;
20232 PyObject * obj3 = 0 ;
20233 PyObject * obj4 = 0 ;
20236 if (!PyArg_UnpackTuple(args,
"Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
20243 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20244 if (!PyErr_Occurred())
20251 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
20252 if (!PyErr_Occurred())
20262 arg4 =
static_cast< int64_t
>(val4);
20264 std::string *ptr = (std::string *)0;
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);
20292 PyObject *resultobj = 0;
20294 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20295 std::vector< int > *arg3 = 0 ;
20297 std::string *arg5 = 0 ;
20300 std::vector< operations_research::IntervalVar * > temp2 ;
20301 std::vector< int > temp3 ;
20305 PyObject * obj0 = 0 ;
20306 PyObject * obj1 = 0 ;
20307 PyObject * obj2 = 0 ;
20308 PyObject * obj3 = 0 ;
20309 PyObject * obj4 = 0 ;
20312 if (!PyArg_UnpackTuple(args,
"Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
20319 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20320 if (!PyErr_Occurred())
20327 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
20328 if (!PyErr_Occurred())
20338 arg4 =
static_cast< int64_t
>(val4);
20340 std::string *ptr = (std::string *)0;
20352 result = (
operations_research::Constraint *)(arg1)->MakeCumulative((std::vector< operations_research::IntervalVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,arg4,(std::string
const &)*arg5);
20368 PyObject *resultobj = 0;
20370 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20371 std::vector< int64_t > *arg3 = 0 ;
20373 std::string *arg5 = 0 ;
20376 std::vector< operations_research::IntervalVar * > temp2 ;
20377 std::vector< int64_t > temp3 ;
20379 PyObject * obj0 = 0 ;
20380 PyObject * obj1 = 0 ;
20381 PyObject * obj2 = 0 ;
20382 PyObject * obj3 = 0 ;
20383 PyObject * obj4 = 0 ;
20386 if (!PyArg_UnpackTuple(args,
"Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
20393 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20394 if (!PyErr_Occurred())
20401 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
20402 if (!PyErr_Occurred())
20412 std::string *ptr = (std::string *)0;
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);
20440 PyObject *resultobj = 0;
20442 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20443 std::vector< int > *arg3 = 0 ;
20445 std::string *arg5 = 0 ;
20448 std::vector< operations_research::IntervalVar * > temp2 ;
20449 std::vector< int > temp3 ;
20451 PyObject * obj0 = 0 ;
20452 PyObject * obj1 = 0 ;
20453 PyObject * obj2 = 0 ;
20454 PyObject * obj3 = 0 ;
20455 PyObject * obj4 = 0 ;
20458 if (!PyArg_UnpackTuple(args,
"Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
20465 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20466 if (!PyErr_Occurred())
20473 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
20474 if (!PyErr_Occurred())
20484 std::string *ptr = (std::string *)0;
20496 result = (
operations_research::Constraint *)(arg1)->MakeCumulative((std::vector< operations_research::IntervalVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,arg4,(std::string
const &)*arg5);
20512 PyObject *resultobj = 0;
20514 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20515 std::vector< operations_research::IntVar * > *arg3 = 0 ;
20517 std::string *arg5 = 0 ;
20520 std::vector< operations_research::IntervalVar * > temp2 ;
20521 std::vector< operations_research::IntVar * > temp3 ;
20525 PyObject * obj0 = 0 ;
20526 PyObject * obj1 = 0 ;
20527 PyObject * obj2 = 0 ;
20528 PyObject * obj3 = 0 ;
20529 PyObject * obj4 = 0 ;
20532 if (!PyArg_UnpackTuple(args,
"Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
20539 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20540 if (!PyErr_Occurred())
20547 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
20548 if (!PyErr_Occurred())
20558 arg4 =
static_cast< int64_t
>(val4);
20560 std::string *ptr = (std::string *)0;
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);
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 ;
20596 std::vector< operations_research::IntervalVar * > temp2 ;
20597 std::vector< operations_research::IntVar * > temp3 ;
20599 PyObject * obj0 = 0 ;
20600 PyObject * obj1 = 0 ;
20601 PyObject * obj2 = 0 ;
20602 PyObject * obj3 = 0 ;
20603 PyObject * obj4 = 0 ;
20606 if (!PyArg_UnpackTuple(args,
"Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
20613 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20614 if (!PyErr_Occurred())
20621 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
20622 if (!PyErr_Occurred())
20632 std::string *ptr = (std::string *)0;
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);
20661 PyObject *argv[6] = {
20667 argc = PyObject_Length(args);
20668 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
20669 argv[ii] = PyTuple_GET_ITEM(args,ii);
20678 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20681 const bool is_tuple = PyTuple_Check(argv[1]);
20682 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20685 :PyList_GetItem(argv[1], i))) {
20693 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20696 const bool is_tuple = PyTuple_Check(argv[2]);
20697 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20699 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
20700 :PyList_GetItem(argv[2], i))) {
20709 if (_v == 0) PyErr_Clear();
20729 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20732 const bool is_tuple = PyTuple_Check(argv[1]);
20733 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20736 :PyList_GetItem(argv[1], i))) {
20744 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20747 const bool is_tuple = PyTuple_Check(argv[2]);
20748 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20750 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
20751 :PyList_GetItem(argv[2], i))) {
20760 if (_v == 0) PyErr_Clear();
20780 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20783 const bool is_tuple = PyTuple_Check(argv[1]);
20784 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20787 :PyList_GetItem(argv[1], i))) {
20795 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20798 const bool is_tuple = PyTuple_Check(argv[2]);
20799 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20801 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
20802 :PyList_GetItem(argv[2], i))) {
20831 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20834 const bool is_tuple = PyTuple_Check(argv[1]);
20835 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20838 :PyList_GetItem(argv[1], i))) {
20846 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20849 const bool is_tuple = PyTuple_Check(argv[2]);
20850 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20852 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
20853 :PyList_GetItem(argv[2], i))) {
20882 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20885 const bool is_tuple = PyTuple_Check(argv[1]);
20886 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20889 :PyList_GetItem(argv[1], i))) {
20897 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20900 const bool is_tuple = PyTuple_Check(argv[2]);
20901 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20904 :PyList_GetItem(argv[2], i))) {
20913 if (_v == 0) PyErr_Clear();
20933 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20936 const bool is_tuple = PyTuple_Check(argv[1]);
20937 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20940 :PyList_GetItem(argv[1], i))) {
20948 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20951 const bool is_tuple = PyTuple_Check(argv[2]);
20952 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20955 :PyList_GetItem(argv[2], i))) {
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");
20992 PyObject *resultobj = 0;
20994 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20998 std::vector< operations_research::IntervalVar * > temp2 ;
20999 PyObject * obj0 = 0 ;
21000 PyObject * obj1 = 0 ;
21001 PyObject * obj2 = 0 ;
21004 if (!PyArg_UnpackTuple(args,
"Solver_Cover", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
21011 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
21012 if (!PyErr_Occurred())
21037 PyObject *resultobj = 0;
21041 PyObject * obj0 = 0 ;
21044 if (!PyArg_UnpackTuple(args,
"Solver_Assignment", 1, 1, &obj0))
SWIG_fail;
21066 PyObject *resultobj = 0;
21073 PyObject * obj0 = 0 ;
21074 PyObject * obj1 = 0 ;
21077 if (!PyArg_UnpackTuple(args,
"Solver_Assignment", 2, 2, &obj0, &obj1))
SWIG_fail;
21085 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_Assignment" "', argument " "2"" of type '" "operations_research::Assignment const *const""'");
21105 PyObject *argv[3] = {
21111 argc = PyObject_Length(args);
21112 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
21113 argv[ii] = PyTuple_GET_ITEM(args,ii);
21141 " Possible C/C++ prototypes are:\n"
21142 " operations_research::Solver::MakeAssignment()\n"
21143 " operations_research::Solver::MakeAssignment(operations_research::Assignment const *const)\n");
21149 PyObject *resultobj = 0;
21156 PyObject * obj0 = 0 ;
21157 PyObject * obj1 = 0 ;
21160 if (!PyArg_UnpackTuple(args,
"Solver_FirstSolutionCollector", 2, 2, &obj0, &obj1))
SWIG_fail;
21163 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FirstSolutionCollector" "', argument " "1"" of type '" "operations_research::Solver *""'");
21168 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_FirstSolutionCollector" "', argument " "2"" of type '" "operations_research::Assignment const *const""'");
21187 PyObject *resultobj = 0;
21191 PyObject * obj0 = 0 ;
21194 if (!PyArg_UnpackTuple(args,
"Solver_FirstSolutionCollector", 1, 1, &obj0))
SWIG_fail;
21197 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FirstSolutionCollector" "', argument " "1"" of type '" "operations_research::Solver *""'");
21217 PyObject *argv[3] = {
21223 argc = PyObject_Length(args);
21224 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
21225 argv[ii] = PyTuple_GET_ITEM(args,ii);
21253 " Possible C/C++ prototypes are:\n"
21254 " operations_research::Solver::MakeFirstSolutionCollector(operations_research::Assignment const *const)\n"
21255 " operations_research::Solver::MakeFirstSolutionCollector()\n");
21261 PyObject *resultobj = 0;
21268 PyObject * obj0 = 0 ;
21269 PyObject * obj1 = 0 ;
21272 if (!PyArg_UnpackTuple(args,
"Solver_LastSolutionCollector", 2, 2, &obj0, &obj1))
SWIG_fail;
21280 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_LastSolutionCollector" "', argument " "2"" of type '" "operations_research::Assignment const *const""'");
21299 PyObject *resultobj = 0;
21303 PyObject * obj0 = 0 ;
21306 if (!PyArg_UnpackTuple(args,
"Solver_LastSolutionCollector", 1, 1, &obj0))
SWIG_fail;
21329 PyObject *argv[3] = {
21335 argc = PyObject_Length(args);
21336 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
21337 argv[ii] = PyTuple_GET_ITEM(args,ii);
21365 " Possible C/C++ prototypes are:\n"
21366 " operations_research::Solver::MakeLastSolutionCollector(operations_research::Assignment const *const)\n"
21367 " operations_research::Solver::MakeLastSolutionCollector()\n");
21373 PyObject *resultobj = 0;
21383 PyObject * obj0 = 0 ;
21384 PyObject * obj1 = 0 ;
21385 PyObject * obj2 = 0 ;
21388 if (!PyArg_UnpackTuple(args,
"Solver_BestValueSolutionCollector", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
21391 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_BestValueSolutionCollector" "', argument " "1"" of type '" "operations_research::Solver *""'");
21396 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_BestValueSolutionCollector" "', argument " "2"" of type '" "operations_research::Assignment const *const""'");
21403 arg3 =
static_cast< bool >(val3);
21420 PyObject *resultobj = 0;
21427 PyObject * obj0 = 0 ;
21428 PyObject * obj1 = 0 ;
21431 if (!PyArg_UnpackTuple(args,
"Solver_BestValueSolutionCollector", 2, 2, &obj0, &obj1))
SWIG_fail;
21434 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_BestValueSolutionCollector" "', argument " "1"" of type '" "operations_research::Solver *""'");
21441 arg2 =
static_cast< bool >(val2);
21459 PyObject *argv[4] = {
21465 argc = PyObject_Length(args);
21466 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
21467 argv[ii] = PyTuple_GET_ITEM(args,ii);
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");
21515 PyObject *resultobj = 0;
21522 PyObject * obj0 = 0 ;
21523 PyObject * obj1 = 0 ;
21526 if (!PyArg_UnpackTuple(args,
"Solver_AllSolutionCollector", 2, 2, &obj0, &obj1))
SWIG_fail;
21534 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_AllSolutionCollector" "', argument " "2"" of type '" "operations_research::Assignment const *const""'");
21553 PyObject *resultobj = 0;
21557 PyObject * obj0 = 0 ;
21560 if (!PyArg_UnpackTuple(args,
"Solver_AllSolutionCollector", 1, 1, &obj0))
SWIG_fail;
21583 PyObject *argv[3] = {
21589 argc = PyObject_Length(args);
21590 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
21591 argv[ii] = PyTuple_GET_ITEM(args,ii);
21619 " Possible C/C++ prototypes are:\n"
21620 " operations_research::Solver::MakeAllSolutionCollector(operations_research::Assignment const *const)\n"
21621 " operations_research::Solver::MakeAllSolutionCollector()\n");
21627 PyObject *resultobj = 0;
21635 PyObject * obj0 = 0 ;
21636 PyObject * obj1 = 0 ;
21637 PyObject * obj2 = 0 ;
21640 if (!PyArg_UnpackTuple(args,
"Solver_Minimize", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
21653 arg3 =
static_cast< int64_t
>(val3);
21670 PyObject *resultobj = 0;
21678 PyObject * obj0 = 0 ;
21679 PyObject * obj1 = 0 ;
21680 PyObject * obj2 = 0 ;
21683 if (!PyArg_UnpackTuple(args,
"Solver_Maximize", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
21696 arg3 =
static_cast< int64_t
>(val3);
21713 PyObject *resultobj = 0;
21724 PyObject * obj0 = 0 ;
21725 PyObject * obj1 = 0 ;
21726 PyObject * obj2 = 0 ;
21727 PyObject * obj3 = 0 ;
21730 if (!PyArg_UnpackTuple(args,
"Solver_Optimize", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
21740 arg2 =
static_cast< bool >(val2);
21748 arg4 =
static_cast< int64_t
>(val4);
21765 PyObject *resultobj = 0;
21767 std::vector< operations_research::IntVar * > *arg2 = 0 ;
21768 std::vector< int64_t > *arg3 = 0 ;
21772 std::vector< operations_research::IntVar * > temp2 ;
21773 std::vector< int64_t > temp3 ;
21776 PyObject * obj0 = 0 ;
21777 PyObject * obj1 = 0 ;
21778 PyObject * obj2 = 0 ;
21779 PyObject * obj3 = 0 ;
21782 if (!PyArg_UnpackTuple(args,
"Solver_WeightedMinimize", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
21789 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
21790 if (!PyErr_Occurred())
21797 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
21798 if (!PyErr_Occurred())
21808 arg4 =
static_cast< int64_t
>(val4);
21811 result = (
operations_research::OptimizeVar *)(arg1)->MakeWeightedMinimize((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3,arg4);
21825 PyObject *resultobj = 0;
21827 std::vector< operations_research::IntVar * > *arg2 = 0 ;
21828 std::vector< int > *arg3 = 0 ;
21832 std::vector< operations_research::IntVar * > temp2 ;
21833 std::vector< int > temp3 ;
21836 PyObject * obj0 = 0 ;
21837 PyObject * obj1 = 0 ;
21838 PyObject * obj2 = 0 ;
21839 PyObject * obj3 = 0 ;
21842 if (!PyArg_UnpackTuple(args,
"Solver_WeightedMinimize", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
21849 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
21850 if (!PyErr_Occurred())
21857 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
21858 if (!PyErr_Occurred())
21868 arg4 =
static_cast< int64_t
>(val4);
21871 result = (
operations_research::OptimizeVar *)(arg1)->MakeWeightedMinimize((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,arg4);
21886 PyObject *argv[5] = {
21892 argc = PyObject_Length(args);
21893 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
21894 argv[ii] = PyTuple_GET_ITEM(args,ii);
21903 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
21906 const bool is_tuple = PyTuple_Check(argv[1]);
21907 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
21910 :PyList_GetItem(argv[1], i))) {
21918 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
21921 const bool is_tuple = PyTuple_Check(argv[2]);
21922 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
21924 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
21925 :PyList_GetItem(argv[2], i))) {
21950 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
21953 const bool is_tuple = PyTuple_Check(argv[1]);
21954 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
21957 :PyList_GetItem(argv[1], i))) {
21965 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
21968 const bool is_tuple = PyTuple_Check(argv[2]);
21969 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
21971 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
21972 :PyList_GetItem(argv[2], i))) {
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");
22001 PyObject *resultobj = 0;
22003 std::vector< operations_research::IntVar * > *arg2 = 0 ;
22004 std::vector< int64_t > *arg3 = 0 ;
22008 std::vector< operations_research::IntVar * > temp2 ;
22009 std::vector< int64_t > temp3 ;
22012 PyObject * obj0 = 0 ;
22013 PyObject * obj1 = 0 ;
22014 PyObject * obj2 = 0 ;
22015 PyObject * obj3 = 0 ;
22018 if (!PyArg_UnpackTuple(args,
"Solver_WeightedMaximize", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
22025 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
22026 if (!PyErr_Occurred())
22033 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
22034 if (!PyErr_Occurred())
22044 arg4 =
static_cast< int64_t
>(val4);
22047 result = (
operations_research::OptimizeVar *)(arg1)->MakeWeightedMaximize((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3,arg4);
22061 PyObject *resultobj = 0;
22063 std::vector< operations_research::IntVar * > *arg2 = 0 ;
22064 std::vector< int > *arg3 = 0 ;
22068 std::vector< operations_research::IntVar * > temp2 ;
22069 std::vector< int > temp3 ;
22072 PyObject * obj0 = 0 ;
22073 PyObject * obj1 = 0 ;
22074 PyObject * obj2 = 0 ;
22075 PyObject * obj3 = 0 ;
22078 if (!PyArg_UnpackTuple(args,
"Solver_WeightedMaximize", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
22085 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
22086 if (!PyErr_Occurred())
22093 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
22094 if (!PyErr_Occurred())
22104 arg4 =
static_cast< int64_t
>(val4);
22107 result = (
operations_research::OptimizeVar *)(arg1)->MakeWeightedMaximize((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,arg4);
22122 PyObject *argv[5] = {
22128 argc = PyObject_Length(args);
22129 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
22130 argv[ii] = PyTuple_GET_ITEM(args,ii);
22139 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
22142 const bool is_tuple = PyTuple_Check(argv[1]);
22143 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
22146 :PyList_GetItem(argv[1], i))) {
22154 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
22157 const bool is_tuple = PyTuple_Check(argv[2]);
22158 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
22160 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
22161 :PyList_GetItem(argv[2], i))) {
22186 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
22189 const bool is_tuple = PyTuple_Check(argv[1]);
22190 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
22193 :PyList_GetItem(argv[1], i))) {
22201 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
22204 const bool is_tuple = PyTuple_Check(argv[2]);
22205 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
22207 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
22208 :PyList_GetItem(argv[2], i))) {
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");
22237 PyObject *resultobj = 0;
22240 std::vector< operations_research::IntVar * > *arg3 = 0 ;
22241 std::vector< int64_t > *arg4 = 0 ;
22247 std::vector< operations_research::IntVar * > temp3 ;
22248 std::vector< int64_t > temp4 ;
22251 PyObject * obj0 = 0 ;
22252 PyObject * obj1 = 0 ;
22253 PyObject * obj2 = 0 ;
22254 PyObject * obj3 = 0 ;
22255 PyObject * obj4 = 0 ;
22258 if (!PyArg_UnpackTuple(args,
"Solver_WeightedOptimize", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
22268 arg2 =
static_cast< bool >(val2);
22270 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
22271 if (!PyErr_Occurred())
22278 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
22279 if (!PyErr_Occurred())
22289 arg5 =
static_cast< int64_t
>(val5);
22292 result = (
operations_research::OptimizeVar *)(arg1)->MakeWeightedOptimize(arg2,(std::vector< operations_research::IntVar * >
const &)*arg3,(std::vector< int64_t >
const &)*arg4,arg5);
22306 PyObject *resultobj = 0;
22309 std::vector< operations_research::IntVar * > *arg3 = 0 ;
22310 std::vector< int > *arg4 = 0 ;
22316 std::vector< operations_research::IntVar * > temp3 ;
22317 std::vector< int > temp4 ;
22320 PyObject * obj0 = 0 ;
22321 PyObject * obj1 = 0 ;
22322 PyObject * obj2 = 0 ;
22323 PyObject * obj3 = 0 ;
22324 PyObject * obj4 = 0 ;
22327 if (!PyArg_UnpackTuple(args,
"Solver_WeightedOptimize", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
22337 arg2 =
static_cast< bool >(val2);
22339 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
22340 if (!PyErr_Occurred())
22347 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
22348 if (!PyErr_Occurred())
22358 arg5 =
static_cast< int64_t
>(val5);
22361 result = (
operations_research::OptimizeVar *)(arg1)->MakeWeightedOptimize(arg2,(std::vector< operations_research::IntVar * >
const &)*arg3,(std::vector< int >
const &)*arg4,arg5);
22376 PyObject *argv[6] = {
22382 argc = PyObject_Length(args);
22383 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
22384 argv[ii] = PyTuple_GET_ITEM(args,ii);
22398 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
22401 const bool is_tuple = PyTuple_Check(argv[2]);
22402 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
22405 :PyList_GetItem(argv[2], i))) {
22413 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
22416 const bool is_tuple = PyTuple_Check(argv[3]);
22417 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
22419 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
22420 :PyList_GetItem(argv[3], i))) {
22451 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
22454 const bool is_tuple = PyTuple_Check(argv[2]);
22455 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
22458 :PyList_GetItem(argv[2], i))) {
22466 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
22469 const bool is_tuple = PyTuple_Check(argv[3]);
22470 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
22472 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
22473 :PyList_GetItem(argv[3], i))) {
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");
22503 PyObject *resultobj = 0;
22508 std::vector< operations_research::IntVar * > *arg5 = 0 ;
22518 std::vector< operations_research::IntVar * > temp5 ;
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 ;
22535 if (!PyArg_UnpackTuple(args,
"Solver_TabuSearch", 8, 8, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7))
SWIG_fail;
22545 arg2 =
static_cast< bool >(val2);
22553 arg4 =
static_cast< int64_t
>(val4);
22555 if (!vector_input_helper(obj4, &temp5, PyObjAs<operations_research::IntVar*>)) {
22556 if (!PyErr_Occurred())
22566 arg6 =
static_cast< int64_t
>(val6);
22571 arg7 =
static_cast< int64_t
>(val7);
22576 arg8 =
static_cast< double >(val8);
22593 PyObject *resultobj = 0;
22607 PyObject * obj0 = 0 ;
22608 PyObject * obj1 = 0 ;
22609 PyObject * obj2 = 0 ;
22610 PyObject * obj3 = 0 ;
22611 PyObject * obj4 = 0 ;
22614 if (!PyArg_UnpackTuple(args,
"Solver_SimulatedAnnealing", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
22624 arg2 =
static_cast< bool >(val2);
22632 arg4 =
static_cast< int64_t
>(val4);
22637 arg5 =
static_cast< int64_t
>(val5);
22654 PyObject *resultobj = 0;
22660 std::vector< operations_research::IntVar * > *arg6 = 0 ;
22668 std::vector< operations_research::IntVar * > temp6 ;
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 ;
22680 if (!PyArg_UnpackTuple(args,
"Solver_GuidedLocalSearch", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6))
SWIG_fail;
22690 arg2 =
static_cast< bool >(val2);
22696 arg4 = [
input](int64_t i, int64_t j) {
22697 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
22704 arg5 =
static_cast< int64_t
>(val5);
22706 if (!vector_input_helper(obj5, &temp6, PyObjAs<operations_research::IntVar*>)) {
22707 if (!PyErr_Occurred())
22717 arg7 =
static_cast< double >(val7);
22734 PyObject *resultobj = 0;
22740 std::vector< operations_research::IntVar * > *arg6 = 0 ;
22741 std::vector< operations_research::IntVar * > *arg7 = 0 ;
22749 std::vector< operations_research::IntVar * > temp6 ;
22750 std::vector< operations_research::IntVar * > temp7 ;
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 ;
22763 if (!PyArg_UnpackTuple(args,
"Solver_GuidedLocalSearch", 8, 8, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7))
SWIG_fail;
22773 arg2 =
static_cast< bool >(val2);
22779 arg4 = [
input](int64_t i, int64_t j, int64_t k) {
22780 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LLL", i, j, k);
22787 arg5 =
static_cast< int64_t
>(val5);
22789 if (!vector_input_helper(obj5, &temp6, PyObjAs<operations_research::IntVar*>)) {
22790 if (!PyErr_Occurred())
22797 if (!vector_input_helper(obj6, &temp7, PyObjAs<operations_research::IntVar*>)) {
22798 if (!PyErr_Occurred())
22808 arg8 =
static_cast< double >(val8);
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);
22825 PyObject *resultobj = 0;
22832 PyObject * obj0 = 0 ;
22833 PyObject * obj1 = 0 ;
22836 if (!PyArg_UnpackTuple(args,
"Solver_LubyRestart", 2, 2, &obj0, &obj1))
SWIG_fail;
22846 arg2 =
static_cast< int >(val2);
22863 PyObject *resultobj = 0;
22870 PyObject * obj0 = 0 ;
22871 PyObject * obj1 = 0 ;
22874 if (!PyArg_UnpackTuple(args,
"Solver_ConstantRestart", 2, 2, &obj0, &obj1))
SWIG_fail;
22884 arg2 =
static_cast< int >(val2);
22901 PyObject *resultobj = 0;
22903 absl::Duration arg2 ;
22908 PyObject * obj0 = 0 ;
22909 PyObject * obj1 = 0 ;
22912 if (!PyArg_UnpackTuple(args,
"Solver_TimeLimit", 2, 2, &obj0, &obj1))
SWIG_fail;
22926 absl::Duration * temp =
reinterpret_cast< absl::Duration *
>(argp2);
22947 PyObject *resultobj = 0;
22954 PyObject * obj0 = 0 ;
22955 PyObject * obj1 = 0 ;
22958 if (!PyArg_UnpackTuple(args,
"Solver_TimeLimit", 2, 2, &obj0, &obj1))
SWIG_fail;
22968 arg2 =
static_cast< int64_t
>(val2);
22986 PyObject *argv[3] = {
22992 argc = PyObject_Length(args);
22993 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
22994 argv[ii] = PyTuple_GET_ITEM(args,ii);
23027 " Possible C/C++ prototypes are:\n"
23028 " operations_research::Solver::MakeTimeLimit(absl::Duration)\n"
23029 " operations_research::Solver::MakeTimeLimit(int64_t)\n");
23035 PyObject *resultobj = 0;
23042 PyObject * obj0 = 0 ;
23043 PyObject * obj1 = 0 ;
23046 if (!PyArg_UnpackTuple(args,
"Solver_BranchesLimit", 2, 2, &obj0, &obj1))
SWIG_fail;
23056 arg2 =
static_cast< int64_t
>(val2);
23073 PyObject *resultobj = 0;
23080 PyObject * obj0 = 0 ;
23081 PyObject * obj1 = 0 ;
23084 if (!PyArg_UnpackTuple(args,
"Solver_FailuresLimit", 2, 2, &obj0, &obj1))
SWIG_fail;
23094 arg2 =
static_cast< int64_t
>(val2);
23111 PyObject *resultobj = 0;
23118 PyObject * obj0 = 0 ;
23119 PyObject * obj1 = 0 ;
23122 if (!PyArg_UnpackTuple(args,
"Solver_SolutionsLimit", 2, 2, &obj0, &obj1))
SWIG_fail;
23132 arg2 =
static_cast< int64_t
>(val2);
23149 PyObject *resultobj = 0;
23151 absl::Duration arg2 ;
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 ;
23180 if (!PyArg_UnpackTuple(args,
"Solver_Limit", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6))
SWIG_fail;
23194 absl::Duration * temp =
reinterpret_cast< absl::Duration *
>(argp2);
23203 arg3 =
static_cast< int64_t
>(val3);
23208 arg4 =
static_cast< int64_t
>(val4);
23213 arg5 =
static_cast< int64_t
>(val5);
23218 arg6 =
static_cast< bool >(val6);
23223 arg7 =
static_cast< bool >(val7);
23240 PyObject *resultobj = 0;
23242 absl::Duration arg2 ;
23259 PyObject * obj0 = 0 ;
23260 PyObject * obj1 = 0 ;
23261 PyObject * obj2 = 0 ;
23262 PyObject * obj3 = 0 ;
23263 PyObject * obj4 = 0 ;
23264 PyObject * obj5 = 0 ;
23267 if (!PyArg_UnpackTuple(args,
"Solver_Limit", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
23281 absl::Duration * temp =
reinterpret_cast< absl::Duration *
>(argp2);
23290 arg3 =
static_cast< int64_t
>(val3);
23295 arg4 =
static_cast< int64_t
>(val4);
23300 arg5 =
static_cast< int64_t
>(val5);
23305 arg6 =
static_cast< bool >(val6);
23322 PyObject *resultobj = 0;
23324 absl::Duration arg2 ;
23338 PyObject * obj0 = 0 ;
23339 PyObject * obj1 = 0 ;
23340 PyObject * obj2 = 0 ;
23341 PyObject * obj3 = 0 ;
23342 PyObject * obj4 = 0 ;
23345 if (!PyArg_UnpackTuple(args,
"Solver_Limit", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
23359 absl::Duration * temp =
reinterpret_cast< absl::Duration *
>(argp2);
23368 arg3 =
static_cast< int64_t
>(val3);
23373 arg4 =
static_cast< int64_t
>(val4);
23378 arg5 =
static_cast< int64_t
>(val5);
23395 PyObject *resultobj = 0;
23400 PyObject * obj0 = 0 ;
23401 PyObject * obj1 = 0 ;
23404 if (!PyArg_UnpackTuple(args,
"Solver_Limit", 2, 2, &obj0, &obj1))
SWIG_fail;
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);
23421 Py_DECREF(pyresult);
23446 PyObject *resultobj = 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 ;
23477 if (!PyArg_UnpackTuple(args,
"Solver_Limit", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6))
SWIG_fail;
23487 arg2 =
static_cast< int64_t
>(val2);
23492 arg3 =
static_cast< int64_t
>(val3);
23497 arg4 =
static_cast< int64_t
>(val4);
23502 arg5 =
static_cast< int64_t
>(val5);
23507 arg6 =
static_cast< bool >(val6);
23512 arg7 =
static_cast< bool >(val7);
23529 PyObject *resultobj = 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 ;
23556 if (!PyArg_UnpackTuple(args,
"Solver_Limit", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
23566 arg2 =
static_cast< int64_t
>(val2);
23571 arg3 =
static_cast< int64_t
>(val3);
23576 arg4 =
static_cast< int64_t
>(val4);
23581 arg5 =
static_cast< int64_t
>(val5);
23586 arg6 =
static_cast< bool >(val6);
23603 PyObject *resultobj = 0;
23619 PyObject * obj0 = 0 ;
23620 PyObject * obj1 = 0 ;
23621 PyObject * obj2 = 0 ;
23622 PyObject * obj3 = 0 ;
23623 PyObject * obj4 = 0 ;
23626 if (!PyArg_UnpackTuple(args,
"Solver_Limit", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
23636 arg2 =
static_cast< int64_t
>(val2);
23641 arg3 =
static_cast< int64_t
>(val3);
23646 arg4 =
static_cast< int64_t
>(val4);
23651 arg5 =
static_cast< int64_t
>(val5);
23668 PyObject *resultobj = 0;
23678 PyObject * obj0 = 0 ;
23679 PyObject * obj1 = 0 ;
23680 PyObject * obj2 = 0 ;
23683 if (!PyArg_UnpackTuple(args,
"Solver_Limit", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
23716 PyObject *argv[8] = {
23722 argc = PyObject_Length(args);
23723 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
23724 argv[ii] = PyTuple_GET_ITEM(args,ii);
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)) {
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");
24018 PyObject *resultobj = 0;
24020 std::function< bool () > arg2 ;
24023 PyObject * obj0 = 0 ;
24024 PyObject * obj1 = 0 ;
24027 if (!PyArg_UnpackTuple(args,
"Solver_CustomLimit", 2, 2, &obj0, &obj1))
SWIG_fail;
24036 return InvokePythonCallableReturning<bool>(
input.get());
24055 PyObject *resultobj = 0;
24062 PyObject * obj0 = 0 ;
24063 PyObject * obj1 = 0 ;
24066 if (!PyArg_UnpackTuple(args,
"Solver_SearchLog", 2, 2, &obj0, &obj1))
SWIG_fail;
24076 arg2 =
static_cast< int >(val2);
24093 PyObject *resultobj = 0;
24101 PyObject * obj0 = 0 ;
24102 PyObject * obj1 = 0 ;
24103 PyObject * obj2 = 0 ;
24106 if (!PyArg_UnpackTuple(args,
"Solver_SearchLog", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
24116 arg2 =
static_cast< int >(val2);
24136 PyObject *resultobj = 0;
24139 SwigValueWrapper< std::function< std::string () > > arg3 ;
24144 PyObject * obj0 = 0 ;
24145 PyObject * obj1 = 0 ;
24146 PyObject * obj2 = 0 ;
24149 if (!PyArg_UnpackTuple(args,
"Solver_SearchLog", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
24159 arg2 =
static_cast< int >(val2);
24163 return InvokePythonCallableReturning<std::string>(
input.get());
24182 PyObject *resultobj = 0;
24186 SwigValueWrapper< std::function< std::string () > > arg4 ;
24193 PyObject * obj0 = 0 ;
24194 PyObject * obj1 = 0 ;
24195 PyObject * obj2 = 0 ;
24196 PyObject * obj3 = 0 ;
24199 if (!PyArg_UnpackTuple(args,
"Solver_SearchLog", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
24209 arg2 =
static_cast< int >(val2);
24218 return InvokePythonCallableReturning<std::string>(
input.get());
24237 PyObject *resultobj = 0;
24247 PyObject * obj0 = 0 ;
24248 PyObject * obj1 = 0 ;
24249 PyObject * obj2 = 0 ;
24252 if (!PyArg_UnpackTuple(args,
"Solver_SearchLog", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
24262 arg2 =
static_cast< int >(val2);
24284 PyObject *resultobj = 0;
24288 SwigValueWrapper< std::function< std::string () > > arg4 ;
24295 PyObject * obj0 = 0 ;
24296 PyObject * obj1 = 0 ;
24297 PyObject * obj2 = 0 ;
24298 PyObject * obj3 = 0 ;
24301 if (!PyArg_UnpackTuple(args,
"Solver_SearchLog", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
24311 arg2 =
static_cast< int >(val2);
24320 return InvokePythonCallableReturning<std::string>(
input.get());
24339 PyObject *resultobj = 0;
24346 PyObject * obj0 = 0 ;
24347 PyObject * obj1 = 0 ;
24350 if (!PyArg_UnpackTuple(args,
"Solver_SearchLog", 2, 2, &obj0, &obj1))
SWIG_fail;
24359 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_SearchLog" "', argument " "2"" of type '" "operations_research::Solver::SearchLogParameters""'");
24362 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_SearchLog" "', argument " "2"" of type '" "operations_research::Solver::SearchLogParameters""'");
24386 PyObject *argv[5] = {
24392 argc = PyObject_Length(args);
24393 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
24394 argv[ii] = PyTuple_GET_ITEM(args,ii);
24436 _v = PyCallable_Check(argv[2]);
24477 if (_v == 0) PyErr_Clear();
24501 _v = PyCallable_Check(argv[3]);
24526 _v = PyCallable_Check(argv[3]);
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");
24551 PyObject *resultobj = 0;
24553 std::string *arg2 = 0 ;
24557 PyObject * obj0 = 0 ;
24558 PyObject * obj1 = 0 ;
24561 if (!PyArg_UnpackTuple(args,
"Solver_SearchTrace", 2, 2, &obj0, &obj1))
SWIG_fail;
24568 std::string *ptr = (std::string *)0;
24596 PyObject *resultobj = 0;
24600 PyObject * obj0 = 0 ;
24603 if (!PyArg_UnpackTuple(args,
"Solver_PrintModelVisitor", 1, 1, &obj0))
SWIG_fail;
24625 PyObject *resultobj = 0;
24629 PyObject * obj0 = 0 ;
24632 if (!PyArg_UnpackTuple(args,
"Solver_StatisticsModelVisitor", 1, 1, &obj0))
SWIG_fail;
24635 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_StatisticsModelVisitor" "', argument " "1"" of type '" "operations_research::Solver *""'");
24654 PyObject *resultobj = 0;
24662 PyObject * obj0 = 0 ;
24663 PyObject * obj1 = 0 ;
24664 PyObject * obj2 = 0 ;
24667 if (!PyArg_UnpackTuple(args,
"Solver_AssignVariableValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
24680 arg3 =
static_cast< int64_t
>(val3);
24697 PyObject *resultobj = 0;
24705 PyObject * obj0 = 0 ;
24706 PyObject * obj1 = 0 ;
24707 PyObject * obj2 = 0 ;
24710 if (!PyArg_UnpackTuple(args,
"Solver_VariableLessOrEqualValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
24713 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_VariableLessOrEqualValue" "', argument " "1"" of type '" "operations_research::Solver *""'");
24723 arg3 =
static_cast< int64_t
>(val3);
24740 PyObject *resultobj = 0;
24748 PyObject * obj0 = 0 ;
24749 PyObject * obj1 = 0 ;
24750 PyObject * obj2 = 0 ;
24753 if (!PyArg_UnpackTuple(args,
"Solver_VariableGreaterOrEqualValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
24756 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_VariableGreaterOrEqualValue" "', argument " "1"" of type '" "operations_research::Solver *""'");
24766 arg3 =
static_cast< int64_t
>(val3);
24783 PyObject *resultobj = 0;
24794 PyObject * obj0 = 0 ;
24795 PyObject * obj1 = 0 ;
24796 PyObject * obj2 = 0 ;
24797 PyObject * obj3 = 0 ;
24800 if (!PyArg_UnpackTuple(args,
"Solver_SplitVariableDomain", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
24813 arg3 =
static_cast< int64_t
>(val3);
24818 arg4 =
static_cast< bool >(val4);
24835 PyObject *resultobj = 0;
24843 PyObject * obj0 = 0 ;
24844 PyObject * obj1 = 0 ;
24845 PyObject * obj2 = 0 ;
24848 if (!PyArg_UnpackTuple(args,
"Solver_AssignVariableValueOrFail", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
24851 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_AssignVariableValueOrFail" "', argument " "1"" of type '" "operations_research::Solver *""'");
24861 arg3 =
static_cast< int64_t
>(val3);
24878 PyObject *resultobj = 0;
24880 std::vector< operations_research::IntVar * > *arg2 = 0 ;
24881 std::vector< int64_t > *arg3 = 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 ;
24891 if (!PyArg_UnpackTuple(args,
"Solver_AssignVariablesValues", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
24898 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
24899 if (!PyErr_Occurred())
24906 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
24907 if (!PyErr_Occurred())
24915 result = (
operations_research::Decision *)(arg1)->MakeAssignVariablesValues((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3);
24929 PyObject *resultobj = 0;
24933 PyObject * obj0 = 0 ;
24936 if (!PyArg_UnpackTuple(args,
"Solver_FailDecision", 1, 1, &obj0))
SWIG_fail;
24958 PyObject *resultobj = 0;
24964 PyObject * obj0 = 0 ;
24965 PyObject * obj1 = 0 ;
24966 PyObject * obj2 = 0 ;
24969 if (!PyArg_UnpackTuple(args,
"Solver_Decision", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
25001 PyObject *resultobj = 0;
25003 std::vector< operations_research::DecisionBuilder * > *arg2 = 0 ;
25006 std::vector< operations_research::DecisionBuilder * > temp2 ;
25007 PyObject * obj0 = 0 ;
25008 PyObject * obj1 = 0 ;
25011 if (!PyArg_UnpackTuple(args,
"Solver_Compose", 2, 2, &obj0, &obj1))
SWIG_fail;
25018 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::DecisionBuilder*>)) {
25019 if (!PyErr_Occurred())
25041 PyObject *resultobj = 0;
25043 std::vector< operations_research::DecisionBuilder * > *arg2 = 0 ;
25046 std::vector< operations_research::DecisionBuilder * > temp2 ;
25047 PyObject * obj0 = 0 ;
25048 PyObject * obj1 = 0 ;
25051 if (!PyArg_UnpackTuple(args,
"Solver_Try", 2, 2, &obj0, &obj1))
SWIG_fail;
25058 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::DecisionBuilder*>)) {
25059 if (!PyErr_Occurred())
25081 PyObject *resultobj = 0;
25083 std::vector< operations_research::IntVar * > *arg2 = 0 ;
25088 std::vector< operations_research::IntVar * > temp2 ;
25093 PyObject * obj0 = 0 ;
25094 PyObject * obj1 = 0 ;
25095 PyObject * obj2 = 0 ;
25096 PyObject * obj3 = 0 ;
25099 if (!PyArg_UnpackTuple(args,
"Solver_Phase", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
25106 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
25107 if (!PyErr_Occurred())
25120 SWIG_exception_fail(
SWIG_ArgError(ecode4),
"in method '" "Solver_Phase" "', argument " "4"" of type '" "operations_research::Solver::IntValueStrategy""'");
25139 PyObject *resultobj = 0;
25141 std::vector< operations_research::IntVar * > *arg2 = 0 ;
25144 std::vector< operations_research::IntVar * > temp2 ;
25145 PyObject * obj0 = 0 ;
25146 PyObject * obj1 = 0 ;
25149 if (!PyArg_UnpackTuple(args,
"Solver_DefaultPhase", 2, 2, &obj0, &obj1))
SWIG_fail;
25156 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
25157 if (!PyErr_Occurred())
25179 PyObject *resultobj = 0;
25181 std::vector< operations_research::IntVar * > *arg2 = 0 ;
25185 std::vector< operations_research::IntVar * > temp2 ;
25188 PyObject * obj0 = 0 ;
25189 PyObject * obj1 = 0 ;
25190 PyObject * obj2 = 0 ;
25193 if (!PyArg_UnpackTuple(args,
"Solver_DefaultPhase", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
25200 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
25201 if (!PyErr_Occurred())
25209 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_DefaultPhase" "', argument " "3"" of type '" "operations_research::DefaultPhaseParameters const &""'");
25212 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_DefaultPhase" "', argument " "3"" of type '" "operations_research::DefaultPhaseParameters const &""'");
25232 PyObject *argv[4] = {
25238 argc = PyObject_Length(args);
25239 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
25240 argv[ii] = PyTuple_GET_ITEM(args,ii);
25249 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
25252 const bool is_tuple = PyTuple_Check(argv[1]);
25253 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
25256 :PyList_GetItem(argv[1], i))) {
25274 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
25277 const bool is_tuple = PyTuple_Check(argv[1]);
25278 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
25281 :PyList_GetItem(argv[1], i))) {
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");
25307 PyObject *resultobj = 0;
25311 int64_t *arg4 = (int64_t *) (int64_t *)0 ;
25318 PyObject * obj0 = 0 ;
25319 PyObject * obj1 = 0 ;
25320 PyObject * obj2 = 0 ;
25321 PyObject * obj3 = 0 ;
25324 if (!PyArg_UnpackTuple(args,
"Solver_ScheduleOrPostpone", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
25337 arg3 =
static_cast< int64_t
>(val3);
25342 arg4 =
reinterpret_cast< int64_t *
>(argp4);
25359 PyObject *resultobj = 0;
25363 int64_t *arg4 = (int64_t *) (int64_t *)0 ;
25370 PyObject * obj0 = 0 ;
25371 PyObject * obj1 = 0 ;
25372 PyObject * obj2 = 0 ;
25373 PyObject * obj3 = 0 ;
25376 if (!PyArg_UnpackTuple(args,
"Solver_ScheduleOrExpedite", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
25389 arg3 =
static_cast< int64_t
>(val3);
25394 arg4 =
reinterpret_cast< int64_t *
>(argp4);
25411 PyObject *resultobj = 0;
25419 PyObject * obj0 = 0 ;
25420 PyObject * obj1 = 0 ;
25421 PyObject * obj2 = 0 ;
25424 if (!PyArg_UnpackTuple(args,
"Solver_RankFirstInterval", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
25437 arg3 =
static_cast< int >(val3);
25454 PyObject *resultobj = 0;
25462 PyObject * obj0 = 0 ;
25463 PyObject * obj1 = 0 ;
25464 PyObject * obj2 = 0 ;
25467 if (!PyArg_UnpackTuple(args,
"Solver_RankLastInterval", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
25480 arg3 =
static_cast< int >(val3);
25497 PyObject *resultobj = 0;
25499 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
25503 std::vector< operations_research::IntervalVar * > temp2 ;
25506 PyObject * obj0 = 0 ;
25507 PyObject * obj1 = 0 ;
25508 PyObject * obj2 = 0 ;
25511 if (!PyArg_UnpackTuple(args,
"Solver_Phase", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
25518 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
25519 if (!PyErr_Occurred())
25527 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "Solver_Phase" "', argument " "3"" of type '" "operations_research::Solver::IntervalStrategy""'");
25546 PyObject *resultobj = 0;
25548 std::vector< operations_research::SequenceVar * > *arg2 = 0 ;
25552 std::vector< operations_research::SequenceVar * > temp2 ;
25555 PyObject * obj0 = 0 ;
25556 PyObject * obj1 = 0 ;
25557 PyObject * obj2 = 0 ;
25560 if (!PyArg_UnpackTuple(args,
"Solver_Phase", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
25567 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::SequenceVar*>)) {
25568 if (!PyErr_Occurred())
25576 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "Solver_Phase" "', argument " "3"" of type '" "operations_research::Solver::SequenceStrategy""'");
25596 PyObject *argv[5] = {
25602 argc = PyObject_Length(args);
25603 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
25604 argv[ii] = PyTuple_GET_ITEM(args,ii);
25613 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
25616 const bool is_tuple = PyTuple_Check(argv[1]);
25617 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
25620 :PyList_GetItem(argv[1], i))) {
25644 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
25647 const bool is_tuple = PyTuple_Check(argv[1]);
25648 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
25651 :PyList_GetItem(argv[1], i))) {
25675 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
25678 const bool is_tuple = PyTuple_Check(argv[1]);
25679 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
25682 :PyList_GetItem(argv[1], i))) {
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");
25717 PyObject *resultobj = 0;
25721 std::vector< operations_research::IntVar * > *arg4 = 0 ;
25726 std::vector< operations_research::IntVar * > temp4 ;
25727 PyObject * obj0 = 0 ;
25728 PyObject * obj1 = 0 ;
25729 PyObject * obj2 = 0 ;
25730 PyObject * obj3 = 0 ;
25733 if (!PyArg_UnpackTuple(args,
"Solver_DecisionBuilderFromAssignment", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
25736 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_DecisionBuilderFromAssignment" "', argument " "1"" of type '" "operations_research::Solver *""'");
25741 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_DecisionBuilderFromAssignment" "', argument " "2"" of type '" "operations_research::Assignment *const""'");
25748 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
25749 if (!PyErr_Occurred())
25771 PyObject *resultobj = 0;
25778 PyObject * obj0 = 0 ;
25779 PyObject * obj1 = 0 ;
25782 if (!PyArg_UnpackTuple(args,
"Solver_ConstraintAdder", 2, 2, &obj0, &obj1))
SWIG_fail;
25790 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_ConstraintAdder" "', argument " "2"" of type '" "operations_research::Constraint *const""'");
25809 PyObject *resultobj = 0;
25812 std::vector< operations_research::SearchMonitor * > *arg3 = 0 ;
25815 std::vector< operations_research::SearchMonitor * > temp3 ;
25816 PyObject * obj0 = 0 ;
25817 PyObject * obj1 = 0 ;
25818 PyObject * obj2 = 0 ;
25821 if (!PyArg_UnpackTuple(args,
"Solver_SolveOnce", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
25831 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::SearchMonitor*>)) {
25832 if (!PyErr_Occurred())
25854 PyObject *resultobj = 0;
25868 PyObject * obj0 = 0 ;
25869 PyObject * obj1 = 0 ;
25870 PyObject * obj2 = 0 ;
25871 PyObject * obj3 = 0 ;
25872 PyObject * obj4 = 0 ;
25875 if (!PyArg_UnpackTuple(args,
"Solver_NestedOptimize", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
25886 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
25893 arg4 =
static_cast< bool >(val4);
25898 arg5 =
static_cast< int64_t
>(val5);
25915 PyObject *resultobj = 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 ;
25938 if (!PyArg_UnpackTuple(args,
"Solver_NestedOptimize", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
25949 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
25956 arg4 =
static_cast< bool >(val4);
25961 arg5 =
static_cast< int64_t
>(val5);
25981 PyObject *resultobj = 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 ;
26006 if (!PyArg_UnpackTuple(args,
"Solver_NestedOptimize", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6))
SWIG_fail;
26017 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
26024 arg4 =
static_cast< bool >(val4);
26029 arg5 =
static_cast< int64_t
>(val5);
26052 PyObject *resultobj = 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 ;
26079 if (!PyArg_UnpackTuple(args,
"Solver_NestedOptimize", 8, 8, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7))
SWIG_fail;
26090 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
26097 arg4 =
static_cast< bool >(val4);
26102 arg5 =
static_cast< int64_t
>(val5);
26128 PyObject *resultobj = 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 ;
26157 if (!PyArg_UnpackTuple(args,
"Solver_NestedOptimize", 9, 9, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7, &obj8))
SWIG_fail;
26168 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
26175 arg4 =
static_cast< bool >(val4);
26180 arg5 =
static_cast< int64_t
>(val5);
26209 PyObject *resultobj = 0;
26215 std::vector< operations_research::SearchMonitor * > *arg6 = 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 ;
26233 if (!PyArg_UnpackTuple(args,
"Solver_NestedOptimize", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
26244 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
26251 arg4 =
static_cast< bool >(val4);
26256 arg5 =
static_cast< int64_t
>(val5);
26258 if (!vector_input_helper(obj5, &temp6, PyObjAs<operations_research::SearchMonitor*>)) {
26259 if (!PyErr_Occurred())
26282 PyObject *argv[10] = {
26288 argc = PyObject_Length(args);
26289 for (ii = 0; (ii < 9) && (ii < argc); ii++) {
26290 argv[ii] = PyTuple_GET_ITEM(args,ii);
26300 if (_v == 0) PyErr_Clear();
26332 if (_v == 0) PyErr_Clear();
26351 if (_v == 0) PyErr_Clear();
26370 if (_v == 0) PyErr_Clear();
26388 if (!PyTuple_Check(argv[5]) && !PyList_Check(argv[5])) {
26391 const bool is_tuple = PyTuple_Check(argv[5]);
26392 const size_t size = is_tuple ? PyTuple_Size(argv[5]) : PyList_Size(argv[5]);
26395 :PyList_GetItem(argv[5], i))) {
26418 if (_v == 0) PyErr_Clear();
26437 if (_v == 0) PyErr_Clear();
26442 if (_v == 0) PyErr_Clear();
26462 if (_v == 0) PyErr_Clear();
26481 if (_v == 0) PyErr_Clear();
26486 if (_v == 0) PyErr_Clear();
26491 if (_v == 0) PyErr_Clear();
26512 if (_v == 0) PyErr_Clear();
26531 if (_v == 0) PyErr_Clear();
26536 if (_v == 0) PyErr_Clear();
26541 if (_v == 0) PyErr_Clear();
26546 if (_v == 0) PyErr_Clear();
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");
26575 PyObject *resultobj = 0;
26582 PyObject * obj0 = 0 ;
26583 PyObject * obj1 = 0 ;
26586 if (!PyArg_UnpackTuple(args,
"Solver_RestoreAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
26613 PyObject *resultobj = 0;
26620 PyObject * obj0 = 0 ;
26621 PyObject * obj1 = 0 ;
26624 if (!PyArg_UnpackTuple(args,
"Solver_StoreAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
26651 PyObject *resultobj = 0;
26653 std::vector< operations_research::IntVar * > *arg2 = 0 ;
26657 std::vector< operations_research::IntVar * > temp2 ;
26660 PyObject * obj0 = 0 ;
26661 PyObject * obj1 = 0 ;
26662 PyObject * obj2 = 0 ;
26665 if (!PyArg_UnpackTuple(args,
"Solver_Operator", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
26672 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
26673 if (!PyErr_Occurred())
26681 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "Solver_Operator" "', argument " "3"" of type '" "operations_research::Solver::LocalSearchOperators""'");
26700 PyObject *resultobj = 0;
26702 std::vector< operations_research::IntVar * > *arg2 = 0 ;
26703 std::vector< operations_research::IntVar * > *arg3 = 0 ;
26707 std::vector< operations_research::IntVar * > temp2 ;
26708 std::vector< operations_research::IntVar * > temp3 ;
26711 PyObject * obj0 = 0 ;
26712 PyObject * obj1 = 0 ;
26713 PyObject * obj2 = 0 ;
26714 PyObject * obj3 = 0 ;
26717 if (!PyArg_UnpackTuple(args,
"Solver_Operator", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
26724 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
26725 if (!PyErr_Occurred())
26732 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
26733 if (!PyErr_Occurred())
26741 SWIG_exception_fail(
SWIG_ArgError(ecode4),
"in method '" "Solver_Operator" "', argument " "4"" of type '" "operations_research::Solver::LocalSearchOperators""'");
26746 result = (
operations_research::LocalSearchOperator *)(arg1)->MakeOperator((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3,arg4);
26760 PyObject *resultobj = 0;
26762 std::vector< operations_research::IntVar * > *arg2 = 0 ;
26767 std::vector< operations_research::IntVar * > temp2 ;
26770 PyObject * obj0 = 0 ;
26771 PyObject * obj1 = 0 ;
26772 PyObject * obj2 = 0 ;
26773 PyObject * obj3 = 0 ;
26776 if (!PyArg_UnpackTuple(args,
"Solver_Operator", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
26783 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
26784 if (!PyErr_Occurred())
26792 arg3 = [
input](int64_t i, int64_t j, int64_t k) {
26793 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LLL", i, j, k);
26798 SWIG_exception_fail(
SWIG_ArgError(ecode4),
"in method '" "Solver_Operator" "', argument " "4"" of type '" "operations_research::Solver::EvaluatorLocalSearchOperators""'");
26817 PyObject *resultobj = 0;
26819 std::vector< operations_research::IntVar * > *arg2 = 0 ;
26820 std::vector< operations_research::IntVar * > *arg3 = 0 ;
26825 std::vector< operations_research::IntVar * > temp2 ;
26826 std::vector< operations_research::IntVar * > temp3 ;
26829 PyObject * obj0 = 0 ;
26830 PyObject * obj1 = 0 ;
26831 PyObject * obj2 = 0 ;
26832 PyObject * obj3 = 0 ;
26833 PyObject * obj4 = 0 ;
26836 if (!PyArg_UnpackTuple(args,
"Solver_Operator", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
26843 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
26844 if (!PyErr_Occurred())
26851 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
26852 if (!PyErr_Occurred())
26860 arg4 = [
input](int64_t i, int64_t j, int64_t k) {
26861 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LLL", i, j, k);
26866 SWIG_exception_fail(
SWIG_ArgError(ecode5),
"in method '" "Solver_Operator" "', argument " "5"" of type '" "operations_research::Solver::EvaluatorLocalSearchOperators""'");
26871 result = (
operations_research::LocalSearchOperator *)(arg1)->MakeOperator((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3,arg4,arg5);
26886 PyObject *argv[6] = {
26892 argc = PyObject_Length(args);
26893 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
26894 argv[ii] = PyTuple_GET_ITEM(args,ii);
26903 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
26906 const bool is_tuple = PyTuple_Check(argv[1]);
26907 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
26910 :PyList_GetItem(argv[1], i))) {
26934 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
26937 const bool is_tuple = PyTuple_Check(argv[1]);
26938 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
26941 :PyList_GetItem(argv[1], i))) {
26949 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
26952 const bool is_tuple = PyTuple_Check(argv[2]);
26953 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
26956 :PyList_GetItem(argv[2], i))) {
26981 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
26984 const bool is_tuple = PyTuple_Check(argv[1]);
26985 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
26988 :PyList_GetItem(argv[1], i))) {
26996 _v = PyCallable_Check(argv[2]);
27017 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27020 const bool is_tuple = PyTuple_Check(argv[1]);
27021 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27024 :PyList_GetItem(argv[1], i))) {
27032 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
27035 const bool is_tuple = PyTuple_Check(argv[2]);
27036 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
27039 :PyList_GetItem(argv[2], i))) {
27047 _v = PyCallable_Check(argv[3]);
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");
27075 PyObject *resultobj = 0;
27077 std::vector< operations_research::IntVar * > *arg2 = 0 ;
27081 std::vector< operations_research::IntVar * > temp2 ;
27084 PyObject * obj0 = 0 ;
27085 PyObject * obj1 = 0 ;
27086 PyObject * obj2 = 0 ;
27089 if (!PyArg_UnpackTuple(args,
"Solver_RandomLnsOperator", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
27096 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
27097 if (!PyErr_Occurred())
27107 arg3 =
static_cast< int >(val3);
27124 PyObject *resultobj = 0;
27126 std::vector< operations_research::IntVar * > *arg2 = 0 ;
27131 std::vector< operations_research::IntVar * > temp2 ;
27136 PyObject * obj0 = 0 ;
27137 PyObject * obj1 = 0 ;
27138 PyObject * obj2 = 0 ;
27139 PyObject * obj3 = 0 ;
27142 if (!PyArg_UnpackTuple(args,
"Solver_RandomLnsOperator", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
27149 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
27150 if (!PyErr_Occurred())
27160 arg3 =
static_cast< int >(val3);
27165 arg4 =
static_cast< int32_t
>(val4);
27183 PyObject *argv[5] = {
27189 argc = PyObject_Length(args);
27190 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
27191 argv[ii] = PyTuple_GET_ITEM(args,ii);
27200 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27203 const bool is_tuple = PyTuple_Check(argv[1]);
27204 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27207 :PyList_GetItem(argv[1], i))) {
27231 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27234 const bool is_tuple = PyTuple_Check(argv[1]);
27235 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27238 :PyList_GetItem(argv[1], i))) {
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");
27272 PyObject *resultobj = 0;
27279 PyObject * obj0 = 0 ;
27280 PyObject * obj1 = 0 ;
27283 if (!PyArg_UnpackTuple(args,
"Solver_MoveTowardTargetOperator", 2, 2, &obj0, &obj1))
SWIG_fail;
27286 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_MoveTowardTargetOperator" "', argument " "1"" of type '" "operations_research::Solver *""'");
27291 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_MoveTowardTargetOperator" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
27294 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_MoveTowardTargetOperator" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
27313 PyObject *resultobj = 0;
27315 std::vector< operations_research::IntVar * > *arg2 = 0 ;
27316 std::vector< int64_t > *arg3 = 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 ;
27326 if (!PyArg_UnpackTuple(args,
"Solver_MoveTowardTargetOperator", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
27329 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_MoveTowardTargetOperator" "', argument " "1"" of type '" "operations_research::Solver *""'");
27333 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
27334 if (!PyErr_Occurred())
27341 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
27342 if (!PyErr_Occurred())
27365 PyObject *argv[4] = {
27371 argc = PyObject_Length(args);
27372 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
27373 argv[ii] = PyTuple_GET_ITEM(args,ii);
27395 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27398 const bool is_tuple = PyTuple_Check(argv[1]);
27399 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27402 :PyList_GetItem(argv[1], i))) {
27410 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
27413 const bool is_tuple = PyTuple_Check(argv[2]);
27414 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
27416 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
27417 :PyList_GetItem(argv[2], i))) {
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");
27440 PyObject *resultobj = 0;
27442 std::vector< operations_research::LocalSearchOperator * > *arg2 = 0 ;
27445 std::vector< operations_research::LocalSearchOperator * > temp2 ;
27446 PyObject * obj0 = 0 ;
27447 PyObject * obj1 = 0 ;
27450 if (!PyArg_UnpackTuple(args,
"Solver_ConcatenateOperators", 2, 2, &obj0, &obj1))
SWIG_fail;
27457 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::LocalSearchOperator*>)) {
27458 if (!PyErr_Occurred())
27480 PyObject *resultobj = 0;
27482 std::vector< operations_research::LocalSearchOperator * > *arg2 = 0 ;
27486 std::vector< operations_research::LocalSearchOperator * > temp2 ;
27489 PyObject * obj0 = 0 ;
27490 PyObject * obj1 = 0 ;
27491 PyObject * obj2 = 0 ;
27494 if (!PyArg_UnpackTuple(args,
"Solver_ConcatenateOperators", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
27501 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::LocalSearchOperator*>)) {
27502 if (!PyErr_Occurred())
27512 arg3 =
static_cast< bool >(val3);
27529 PyObject *resultobj = 0;
27531 std::vector< operations_research::LocalSearchOperator * > *arg2 = 0 ;
27532 std::function< int64_t (
int,
int) > arg3 ;
27535 std::vector< operations_research::LocalSearchOperator * > temp2 ;
27536 PyObject * obj0 = 0 ;
27537 PyObject * obj1 = 0 ;
27538 PyObject * obj2 = 0 ;
27541 if (!PyArg_UnpackTuple(args,
"Solver_ConcatenateOperators", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
27548 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::LocalSearchOperator*>)) {
27549 if (!PyErr_Occurred())
27557 arg3 = [
input](
int i,
int j) {
27558 return InvokePythonCallableReturning<int64_t>(
input.get(),
"ii", i, j);
27578 PyObject *argv[4] = {
27584 argc = PyObject_Length(args);
27585 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
27586 argv[ii] = PyTuple_GET_ITEM(args,ii);
27595 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27598 const bool is_tuple = PyTuple_Check(argv[1]);
27599 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27602 :PyList_GetItem(argv[1], i))) {
27620 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27623 const bool is_tuple = PyTuple_Check(argv[1]);
27624 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27627 :PyList_GetItem(argv[1], i))) {
27635 _v = PyCallable_Check(argv[2]);
27650 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27653 const bool is_tuple = PyTuple_Check(argv[1]);
27654 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27657 :PyList_GetItem(argv[1], i))) {
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");
27686 PyObject *resultobj = 0;
27688 std::vector< operations_research::LocalSearchOperator * > *arg2 = 0 ;
27691 std::vector< operations_research::LocalSearchOperator * > temp2 ;
27692 PyObject * obj0 = 0 ;
27693 PyObject * obj1 = 0 ;
27696 if (!PyArg_UnpackTuple(args,
"Solver_RandomConcatenateOperators", 2, 2, &obj0, &obj1))
SWIG_fail;
27699 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_RandomConcatenateOperators" "', argument " "1"" of type '" "operations_research::Solver *""'");
27703 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::LocalSearchOperator*>)) {
27704 if (!PyErr_Occurred())
27726 PyObject *resultobj = 0;
27728 std::vector< operations_research::LocalSearchOperator * > *arg2 = 0 ;
27732 std::vector< operations_research::LocalSearchOperator * > temp2 ;
27735 PyObject * obj0 = 0 ;
27736 PyObject * obj1 = 0 ;
27737 PyObject * obj2 = 0 ;
27740 if (!PyArg_UnpackTuple(args,
"Solver_RandomConcatenateOperators", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
27743 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_RandomConcatenateOperators" "', argument " "1"" of type '" "operations_research::Solver *""'");
27747 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::LocalSearchOperator*>)) {
27748 if (!PyErr_Occurred())
27758 arg3 =
static_cast< int32_t
>(val3);
27776 PyObject *argv[4] = {
27782 argc = PyObject_Length(args);
27783 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
27784 argv[ii] = PyTuple_GET_ITEM(args,ii);
27793 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27796 const bool is_tuple = PyTuple_Check(argv[1]);
27797 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27800 :PyList_GetItem(argv[1], i))) {
27818 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27821 const bool is_tuple = PyTuple_Check(argv[1]);
27822 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27825 :PyList_GetItem(argv[1], i))) {
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");
27853 PyObject *resultobj = 0;
27861 PyObject * obj0 = 0 ;
27862 PyObject * obj1 = 0 ;
27863 PyObject * obj2 = 0 ;
27866 if (!PyArg_UnpackTuple(args,
"Solver_NeighborhoodLimit", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
27879 arg3 =
static_cast< int64_t
>(val3);
27896 PyObject *resultobj = 0;
27906 PyObject * obj0 = 0 ;
27907 PyObject * obj1 = 0 ;
27908 PyObject * obj2 = 0 ;
27911 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhase", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
27919 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_LocalSearchPhase" "', argument " "2"" of type '" "operations_research::Assignment *const""'");
27924 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_LocalSearchPhase" "', argument " "3"" of type '" "operations_research::LocalSearchPhaseParameters *const""'");
27943 PyObject *resultobj = 0;
27945 std::vector< operations_research::IntVar * > *arg2 = 0 ;
27950 std::vector< operations_research::IntVar * > temp2 ;
27953 PyObject * obj0 = 0 ;
27954 PyObject * obj1 = 0 ;
27955 PyObject * obj2 = 0 ;
27956 PyObject * obj3 = 0 ;
27959 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhase", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
27966 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
27967 if (!PyErr_Occurred())
27978 SWIG_exception_fail(
SWIG_ArgError(res4),
"in method '" "Solver_LocalSearchPhase" "', argument " "4"" of type '" "operations_research::LocalSearchPhaseParameters *const""'");
27997 PyObject *resultobj = 0;
27999 std::vector< operations_research::IntVar * > *arg2 = 0 ;
28005 std::vector< operations_research::IntVar * > temp2 ;
28008 PyObject * obj0 = 0 ;
28009 PyObject * obj1 = 0 ;
28010 PyObject * obj2 = 0 ;
28011 PyObject * obj3 = 0 ;
28012 PyObject * obj4 = 0 ;
28015 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhase", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
28022 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
28023 if (!PyErr_Occurred())
28037 SWIG_exception_fail(
SWIG_ArgError(res5),
"in method '" "Solver_LocalSearchPhase" "', argument " "5"" of type '" "operations_research::LocalSearchPhaseParameters *const""'");
28056 PyObject *resultobj = 0;
28058 std::vector< operations_research::SequenceVar * > *arg2 = 0 ;
28063 std::vector< operations_research::SequenceVar * > temp2 ;
28066 PyObject * obj0 = 0 ;
28067 PyObject * obj1 = 0 ;
28068 PyObject * obj2 = 0 ;
28069 PyObject * obj3 = 0 ;
28072 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhase", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
28079 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::SequenceVar*>)) {
28080 if (!PyErr_Occurred())
28091 SWIG_exception_fail(
SWIG_ArgError(res4),
"in method '" "Solver_LocalSearchPhase" "', argument " "4"" of type '" "operations_research::LocalSearchPhaseParameters *const""'");
28111 PyObject *argv[6] = {
28117 argc = PyObject_Length(args);
28118 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
28119 argv[ii] = PyTuple_GET_ITEM(args,ii);
28147 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
28150 const bool is_tuple = PyTuple_Check(argv[1]);
28151 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
28154 :PyList_GetItem(argv[1], i))) {
28163 if (_v == 0) PyErr_Clear();
28183 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
28186 const bool is_tuple = PyTuple_Check(argv[1]);
28187 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
28190 :PyList_GetItem(argv[1], i))) {
28199 if (_v == 0) PyErr_Clear();
28219 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
28222 const bool is_tuple = PyTuple_Check(argv[1]);
28223 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
28226 :PyList_GetItem(argv[1], i))) {
28235 if (_v == 0) PyErr_Clear();
28240 if (_v == 0) PyErr_Clear();
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");
28267 PyObject *resultobj = 0;
28276 PyObject * obj0 = 0 ;
28277 PyObject * obj1 = 0 ;
28278 PyObject * obj2 = 0 ;
28279 PyObject * obj3 = 0 ;
28282 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhaseParameters", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
28285 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28290 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28315 PyObject *resultobj = 0;
28327 PyObject * obj0 = 0 ;
28328 PyObject * obj1 = 0 ;
28329 PyObject * obj2 = 0 ;
28330 PyObject * obj3 = 0 ;
28331 PyObject * obj4 = 0 ;
28334 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhaseParameters", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
28337 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28342 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28353 SWIG_exception_fail(
SWIG_ArgError(res5),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "5"" of type '" "operations_research::RegularLimit *const""'");
28372 PyObject *resultobj = 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 ;
28395 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhaseParameters", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
28398 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28403 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28414 SWIG_exception_fail(
SWIG_ArgError(res5),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "5"" of type '" "operations_research::RegularLimit *const""'");
28419 SWIG_exception_fail(
SWIG_ArgError(res6),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "6"" of type '" "operations_research::LocalSearchFilterManager *""'");
28438 PyObject *resultobj = 0;
28450 PyObject * obj0 = 0 ;
28451 PyObject * obj1 = 0 ;
28452 PyObject * obj2 = 0 ;
28453 PyObject * obj3 = 0 ;
28454 PyObject * obj4 = 0 ;
28457 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhaseParameters", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
28460 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28465 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28470 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "3"" of type '" "operations_research::SolutionPool *const""'");
28495 PyObject *resultobj = 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 ;
28518 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhaseParameters", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
28521 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28526 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28531 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "3"" of type '" "operations_research::SolutionPool *const""'");
28542 SWIG_exception_fail(
SWIG_ArgError(res6),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "6"" of type '" "operations_research::RegularLimit *const""'");
28561 PyObject *resultobj = 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 ;
28588 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhaseParameters", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6))
SWIG_fail;
28591 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28596 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28601 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "3"" of type '" "operations_research::SolutionPool *const""'");
28612 SWIG_exception_fail(
SWIG_ArgError(res6),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "6"" of type '" "operations_research::RegularLimit *const""'");
28617 SWIG_exception_fail(
SWIG_ArgError(res7),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "7"" of type '" "operations_research::LocalSearchFilterManager *""'");
28637 PyObject *argv[8] = {
28643 argc = PyObject_Length(args);
28644 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
28645 argv[ii] = PyTuple_GET_ITEM(args,ii);
28659 if (_v == 0) PyErr_Clear();
28664 if (_v == 0) PyErr_Clear();
28685 if (_v == 0) PyErr_Clear();
28690 if (_v == 0) PyErr_Clear();
28720 if (_v == 0) PyErr_Clear();
28725 if (_v == 0) PyErr_Clear();
28747 if (_v == 0) PyErr_Clear();
28752 if (_v == 0) PyErr_Clear();
28787 if (_v == 0) PyErr_Clear();
28792 if (_v == 0) PyErr_Clear();
28823 if (_v == 0) PyErr_Clear();
28828 if (_v == 0) PyErr_Clear();
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");
28863 PyObject *resultobj = 0;
28867 PyObject * obj0 = 0 ;
28870 if (!PyArg_UnpackTuple(args,
"Solver_SearchDepth", 1, 1, &obj0))
SWIG_fail;
28892 PyObject *resultobj = 0;
28896 PyObject * obj0 = 0 ;
28899 if (!PyArg_UnpackTuple(args,
"Solver_SearchLeftDepth", 1, 1, &obj0))
SWIG_fail;
28921 PyObject *resultobj = 0;
28925 PyObject * obj0 = 0 ;
28928 if (!PyArg_UnpackTuple(args,
"Solver_SolveDepth", 1, 1, &obj0))
SWIG_fail;
28950 PyObject *resultobj = 0;
28957 PyObject * obj0 = 0 ;
28958 PyObject * obj1 = 0 ;
28961 if (!PyArg_UnpackTuple(args,
"Solver_Rand64", 2, 2, &obj0, &obj1))
SWIG_fail;
28971 arg2 =
static_cast< int64_t
>(val2);
28974 result = (int64_t)(arg1)->Rand64(arg2);
28988 PyObject *resultobj = 0;
28995 PyObject * obj0 = 0 ;
28996 PyObject * obj1 = 0 ;
28999 if (!PyArg_UnpackTuple(args,
"Solver_Rand32", 2, 2, &obj0, &obj1))
SWIG_fail;
29009 arg2 =
static_cast< int32_t
>(val2);
29012 result = (int32_t)(arg1)->Rand32(arg2);
29026 PyObject *resultobj = 0;
29033 PyObject * obj0 = 0 ;
29034 PyObject * obj1 = 0 ;
29036 if (!PyArg_UnpackTuple(args,
"Solver_ReSeed", 2, 2, &obj0, &obj1))
SWIG_fail;
29046 arg2 =
static_cast< int32_t
>(val2);
29049 (arg1)->ReSeed(arg2);
29063 PyObject *resultobj = 0;
29067 PyObject * obj0 = 0 ;
29068 std::string result;
29070 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchProfile", 1, 1, &obj0))
SWIG_fail;
29073 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_LocalSearchProfile" "', argument " "1"" of type '" "operations_research::Solver const *""'");
29092 PyObject *resultobj = 0;
29096 PyObject * obj0 = 0 ;
29099 if (!PyArg_UnpackTuple(args,
"Solver_Constraints", 1, 1, &obj0))
SWIG_fail;
29121 PyObject *resultobj = 0;
29128 PyObject * obj0 = 0 ;
29129 PyObject * obj1 = 0 ;
29131 if (!PyArg_UnpackTuple(args,
"Solver_Accept", 2, 2, &obj0, &obj1))
SWIG_fail;
29158 PyObject *resultobj = 0;
29162 PyObject * obj0 = 0 ;
29164 if (!PyArg_UnpackTuple(args,
"Solver_FinishCurrentSearch", 1, 1, &obj0))
SWIG_fail;
29172 (arg1)->FinishCurrentSearch();
29186 PyObject *resultobj = 0;
29190 PyObject * obj0 = 0 ;
29192 if (!PyArg_UnpackTuple(args,
"Solver_RestartCurrentSearch", 1, 1, &obj0))
SWIG_fail;
29200 (arg1)->RestartCurrentSearch();
29214 PyObject *resultobj = 0;
29218 PyObject * obj0 = 0 ;
29220 if (!PyArg_UnpackTuple(args,
"Solver_ShouldFail", 1, 1, &obj0))
SWIG_fail;
29228 (arg1)->ShouldFail();
29242 PyObject *resultobj = 0;
29246 PyObject * obj0 = 0 ;
29247 std::string result;
29249 if (!PyArg_UnpackTuple(args,
"Solver___str__", 1, 1, &obj0))
SWIG_fail;
29271 PyObject *resultobj = 0;
29273 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29274 std::vector< operations_research::IntVar * > *arg3 = 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 ;
29286 if (!PyArg_UnpackTuple(args,
"Solver_TreeNoCycle", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
29293 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29294 if (!PyErr_Occurred())
29301 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
29302 if (!PyErr_Occurred())
29311 return InvokePythonCallableReturning<bool>(
input.get(),
"(L)",
index);
29330 PyObject *resultobj = 0;
29332 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29333 std::vector< operations_research::IntVar * > *arg3 = 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 ;
29343 if (!PyArg_UnpackTuple(args,
"Solver_TreeNoCycle", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
29350 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29351 if (!PyErr_Occurred())
29358 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
29359 if (!PyErr_Occurred())
29382 PyObject *argv[5] = {
29388 argc = PyObject_Length(args);
29389 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
29390 argv[ii] = PyTuple_GET_ITEM(args,ii);
29399 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
29402 const bool is_tuple = PyTuple_Check(argv[1]);
29403 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
29406 :PyList_GetItem(argv[1], i))) {
29414 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
29417 const bool is_tuple = PyTuple_Check(argv[2]);
29418 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
29421 :PyList_GetItem(argv[2], i))) {
29440 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
29443 const bool is_tuple = PyTuple_Check(argv[1]);
29444 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
29447 :PyList_GetItem(argv[1], i))) {
29455 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
29458 const bool is_tuple = PyTuple_Check(argv[2]);
29459 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
29462 :PyList_GetItem(argv[2], i))) {
29470 _v = PyCallable_Check(argv[3]);
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");
29490 PyObject *resultobj = 0;
29493 SwigValueWrapper< std::function< std::string () > > arg3 ;
29498 PyObject * obj0 = 0 ;
29499 PyObject * obj1 = 0 ;
29500 PyObject * obj2 = 0 ;
29503 if (!PyArg_UnpackTuple(args,
"Solver_SearchLogWithCallback", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
29513 arg2 =
static_cast< int >(val2);
29517 return InvokePythonCallableReturning<std::string>(
input.get());
29536 PyObject *resultobj = 0;
29538 std::function< int64_t (int64_t) > arg2 ;
29542 PyObject * obj0 = 0 ;
29543 PyObject * obj1 = 0 ;
29544 PyObject * obj2 = 0 ;
29547 if (!PyArg_UnpackTuple(args,
"Solver_ElementFunction", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
29556 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
29578 PyObject *resultobj = 0;
29580 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29581 std::function< int64_t (int64_t) > arg3 ;
29585 std::vector< operations_research::IntVar * > temp2 ;
29588 PyObject * obj0 = 0 ;
29589 PyObject * obj1 = 0 ;
29590 PyObject * obj2 = 0 ;
29591 PyObject * obj3 = 0 ;
29594 if (!PyArg_UnpackTuple(args,
"Solver_VarEvalValStrPhase", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
29601 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29602 if (!PyErr_Occurred())
29611 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
29616 SWIG_exception_fail(
SWIG_ArgError(ecode4),
"in method '" "Solver_VarEvalValStrPhase" "', argument " "4"" of type '" "operations_research::Solver::IntValueStrategy""'");
29635 PyObject *resultobj = 0;
29637 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29642 std::vector< operations_research::IntVar * > temp2 ;
29645 PyObject * obj0 = 0 ;
29646 PyObject * obj1 = 0 ;
29647 PyObject * obj2 = 0 ;
29648 PyObject * obj3 = 0 ;
29651 if (!PyArg_UnpackTuple(args,
"Solver_VarStrValEvalPhase", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
29658 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29659 if (!PyErr_Occurred())
29667 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "Solver_VarStrValEvalPhase" "', argument " "3"" of type '" "operations_research::Solver::IntVarStrategy""'");
29672 arg4 = [
input](int64_t i, int64_t j) {
29673 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
29692 PyObject *resultobj = 0;
29694 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29695 std::function< int64_t (int64_t) > arg3 ;
29699 std::vector< operations_research::IntVar * > temp2 ;
29700 PyObject * obj0 = 0 ;
29701 PyObject * obj1 = 0 ;
29702 PyObject * obj2 = 0 ;
29703 PyObject * obj3 = 0 ;
29706 if (!PyArg_UnpackTuple(args,
"Solver_VarEvalValEvalPhase", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
29713 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29714 if (!PyErr_Occurred())
29723 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
29728 arg4 = [
input](int64_t i, int64_t j) {
29729 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
29748 PyObject *resultobj = 0;
29750 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29753 std::function< int64_t (int64_t) > arg5 ;
29756 std::vector< operations_research::IntVar * > temp2 ;
29759 PyObject * obj0 = 0 ;
29760 PyObject * obj1 = 0 ;
29761 PyObject * obj2 = 0 ;
29762 PyObject * obj3 = 0 ;
29763 PyObject * obj4 = 0 ;
29766 if (!PyArg_UnpackTuple(args,
"Solver_VarStrValEvalTieBreakPhase", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
29769 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_VarStrValEvalTieBreakPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
29773 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29774 if (!PyErr_Occurred())
29782 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "Solver_VarStrValEvalTieBreakPhase" "', argument " "3"" of type '" "operations_research::Solver::IntVarStrategy""'");
29787 arg4 = [
input](int64_t i, int64_t j) {
29788 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
29794 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
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 ;
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 ;
29829 if (!PyArg_UnpackTuple(args,
"Solver_VarEvalValEvalTieBreakPhase", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
29832 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_VarEvalValEvalTieBreakPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
29836 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29837 if (!PyErr_Occurred())
29846 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
29851 arg4 = [
input](int64_t i, int64_t j) {
29852 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
29858 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
29877 PyObject *resultobj = 0;
29879 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29884 std::vector< operations_research::IntVar * > temp2 ;
29887 PyObject * obj0 = 0 ;
29888 PyObject * obj1 = 0 ;
29889 PyObject * obj2 = 0 ;
29890 PyObject * obj3 = 0 ;
29893 if (!PyArg_UnpackTuple(args,
"Solver_EvalEvalStrPhase", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
29900 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29901 if (!PyErr_Occurred())
29909 arg3 = [
input](int64_t i, int64_t j) {
29910 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
29915 SWIG_exception_fail(
SWIG_ArgError(ecode4),
"in method '" "Solver_EvalEvalStrPhase" "', argument " "4"" of type '" "operations_research::Solver::EvaluatorStrategy""'");
29934 PyObject *resultobj = 0;
29936 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29942 std::vector< operations_research::IntVar * > temp2 ;
29945 PyObject * obj0 = 0 ;
29946 PyObject * obj1 = 0 ;
29947 PyObject * obj2 = 0 ;
29948 PyObject * obj3 = 0 ;
29949 PyObject * obj4 = 0 ;
29952 if (!PyArg_UnpackTuple(args,
"Solver_EvalEvalStrTieBreakPhase", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
29955 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_EvalEvalStrTieBreakPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
29959 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29960 if (!PyErr_Occurred())
29968 arg3 = [
input](int64_t i, int64_t j) {
29969 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
29975 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
29980 SWIG_exception_fail(
SWIG_ArgError(ecode5),
"in method '" "Solver_EvalEvalStrTieBreakPhase" "', argument " "5"" of type '" "operations_research::Solver::EvaluatorStrategy""'");
29999 PyObject *resultobj = 0;
30005 std::vector< operations_research::IntVar * > *arg6 = 0 ;
30013 std::vector< operations_research::IntVar * > temp6 ;
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 ;
30025 if (!PyArg_UnpackTuple(args,
"Solver_GuidedLocalSearch", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6))
SWIG_fail;
30035 arg2 =
static_cast< bool >(val2);
30041 arg4 = [
input](int64_t i, int64_t j) {
30042 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
30049 arg5 =
static_cast< int64_t
>(val5);
30051 if (!vector_input_helper(obj5, &temp6, PyObjAs<operations_research::IntVar*>)) {
30052 if (!PyErr_Occurred())
30062 arg7 =
static_cast< double >(val7);
30080 PyObject *argv[9] = {
30086 argc = PyObject_Length(args);
30087 for (ii = 0; (ii < 8) && (ii < argc); ii++) {
30088 argv[ii] = PyTuple_GET_ITEM(args,ii);
30103 if (_v == 0) PyErr_Clear();
30107 _v = PyCallable_Check(argv[3]);
30116 if (!PyTuple_Check(argv[5]) && !PyList_Check(argv[5])) {
30119 const bool is_tuple = PyTuple_Check(argv[5]);
30120 const size_t size = is_tuple ? PyTuple_Size(argv[5]) : PyList_Size(argv[5]);
30123 :PyList_GetItem(argv[5], i))) {
30157 if (_v == 0) PyErr_Clear();
30161 _v = PyCallable_Check(argv[3]);
30170 if (!PyTuple_Check(argv[5]) && !PyList_Check(argv[5])) {
30173 const bool is_tuple = PyTuple_Check(argv[5]);
30174 const size_t size = is_tuple ? PyTuple_Size(argv[5]) : PyList_Size(argv[5]);
30177 :PyList_GetItem(argv[5], i))) {
30211 if (_v == 0) PyErr_Clear();
30215 _v = PyCallable_Check(argv[3]);
30224 if (!PyTuple_Check(argv[5]) && !PyList_Check(argv[5])) {
30227 const bool is_tuple = PyTuple_Check(argv[5]);
30228 const size_t size = is_tuple ? PyTuple_Size(argv[5]) : PyList_Size(argv[5]);
30231 :PyList_GetItem(argv[5], i))) {
30239 if (!PyTuple_Check(argv[6]) && !PyList_Check(argv[6])) {
30242 const bool is_tuple = PyTuple_Check(argv[6]);
30243 const size_t size = is_tuple ? PyTuple_Size(argv[6]) : PyList_Size(argv[6]);
30246 :PyList_GetItem(argv[6], i))) {
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");
30280 PyObject *resultobj = 0;
30282 std::vector< operations_research::IntVar * > *arg2 = 0 ;
30287 std::vector< operations_research::IntVar * > temp2 ;
30290 PyObject * obj0 = 0 ;
30291 PyObject * obj1 = 0 ;
30292 PyObject * obj2 = 0 ;
30293 PyObject * obj3 = 0 ;
30296 if (!PyArg_UnpackTuple(args,
"Solver_SumObjectiveFilter", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
30303 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
30304 if (!PyErr_Occurred())
30312 arg3 = [
input](int64_t i, int64_t j) {
30313 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
30318 SWIG_exception_fail(
SWIG_ArgError(ecode4),
"in method '" "Solver_SumObjectiveFilter" "', argument " "4"" of type '" "operations_research::Solver::LocalSearchFilterBound""'");
30348 PyObject *resultobj = 0;
30349 std::ostream *arg1 = 0 ;
30355 PyObject * obj0 = 0 ;
30356 PyObject * obj1 = 0 ;
30357 std::ostream *result = 0 ;
30359 if (!PyArg_UnpackTuple(args,
"__lshift__", 2, 2, &obj0, &obj1))
SWIG_fail;
30367 arg1 =
reinterpret_cast< std::ostream *
>(argp1);
30385 Py_INCREF(Py_NotImplemented);
30386 return Py_NotImplemented;
30391 PyObject *resultobj = 0;
30392 PyObject *arg1 = (PyObject *) 0 ;
30393 PyObject * obj0 = 0 ;
30396 if (!PyArg_UnpackTuple(args,
"new_BaseObject", 1, 1, &obj0))
SWIG_fail;
30400 if ( arg1 != Py_None ) {
30419 PyObject *resultobj = 0;
30423 PyObject * obj0 = 0 ;
30425 if (!PyArg_UnpackTuple(args,
"delete_BaseObject", 1, 1, &obj0))
SWIG_fail;
30447 PyObject *resultobj = 0;
30451 PyObject * obj0 = 0 ;
30453 bool upcall =
false;
30454 std::string result;
30456 if (!PyArg_UnpackTuple(args,
"BaseObject_DebugString", 1, 1, &obj0))
SWIG_fail;
30459 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "BaseObject_DebugString" "', argument " "1"" of type '" "operations_research::BaseObject const *""'");
30488 PyObject *resultobj = 0;
30492 PyObject * obj0 = 0 ;
30493 std::string result;
30495 if (!PyArg_UnpackTuple(args,
"BaseObject___str__", 1, 1, &obj0))
SWIG_fail;
30517 PyObject *resultobj = 0;
30521 PyObject * obj0 = 0 ;
30522 std::string result;
30524 if (!PyArg_UnpackTuple(args,
"BaseObject___repr__", 1, 1, &obj0))
SWIG_fail;
30546 PyObject *resultobj = 0;
30550 PyObject * obj0 = 0 ;
30552 if (!PyArg_UnpackTuple(args,
"disown_BaseObject", 1, 1, &obj0))
SWIG_fail;
30582 PyObject *resultobj = 0;
30583 std::ostream *arg1 = 0 ;
30589 PyObject * obj0 = 0 ;
30590 PyObject * obj1 = 0 ;
30591 std::ostream *result = 0 ;
30593 if (!PyArg_UnpackTuple(args,
"__lshift__", 2, 2, &obj0, &obj1))
SWIG_fail;
30601 arg1 =
reinterpret_cast< std::ostream *
>(argp1);
30619 Py_INCREF(Py_NotImplemented);
30620 return Py_NotImplemented;
30625 PyObject *resultobj = 0;
30626 PyObject *arg1 = (PyObject *) 0 ;
30630 PyObject * obj0 = 0 ;
30631 PyObject * obj1 = 0 ;
30634 if (!PyArg_UnpackTuple(args,
"new_PropagationBaseObject", 2, 2, &obj0, &obj1))
SWIG_fail;
30638 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "new_PropagationBaseObject" "', argument " "2"" of type '" "operations_research::Solver *const""'");
30643 if ( arg1 != Py_None ) {
30662 PyObject *resultobj = 0;
30666 PyObject * obj0 = 0 ;
30668 if (!PyArg_UnpackTuple(args,
"delete_PropagationBaseObject", 1, 1, &obj0))
SWIG_fail;
30671 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_PropagationBaseObject" "', argument " "1"" of type '" "operations_research::PropagationBaseObject *""'");
30690 PyObject *resultobj = 0;
30694 PyObject * obj0 = 0 ;
30696 bool upcall =
false;
30697 std::string result;
30699 if (!PyArg_UnpackTuple(args,
"PropagationBaseObject_DebugString", 1, 1, &obj0))
SWIG_fail;
30702 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "PropagationBaseObject_DebugString" "', argument " "1"" of type '" "operations_research::PropagationBaseObject const *""'");
30731 PyObject *resultobj = 0;
30735 PyObject * obj0 = 0 ;
30738 if (!PyArg_UnpackTuple(args,
"PropagationBaseObject_solver", 1, 1, &obj0))
SWIG_fail;
30741 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "PropagationBaseObject_solver" "', argument " "1"" of type '" "operations_research::PropagationBaseObject const *""'");
30760 PyObject *resultobj = 0;
30764 PyObject * obj0 = 0 ;
30766 bool upcall =
false;
30767 std::string result;
30769 if (!PyArg_UnpackTuple(args,
"PropagationBaseObject_Name", 1, 1, &obj0))
SWIG_fail;
30772 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "PropagationBaseObject_Name" "', argument " "1"" of type '" "operations_research::PropagationBaseObject const *""'");
30801 PyObject *resultobj = 0;
30805 PyObject * obj0 = 0 ;
30807 if (!PyArg_UnpackTuple(args,
"disown_PropagationBaseObject", 1, 1, &obj0))
SWIG_fail;
30810 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "disown_PropagationBaseObject" "', argument " "1"" of type '" "operations_research::PropagationBaseObject *""'");
30837 PyObject *resultobj = 0;
30838 PyObject *arg1 = (PyObject *) 0 ;
30839 PyObject * obj0 = 0 ;
30842 if (!PyArg_UnpackTuple(args,
"new_Decision", 1, 1, &obj0))
SWIG_fail;
30846 if ( arg1 != Py_None ) {
30850 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing abstract class or protected constructor");
30866 PyObject *resultobj = 0;
30870 PyObject * obj0 = 0 ;
30872 if (!PyArg_UnpackTuple(args,
"delete_Decision", 1, 1, &obj0))
SWIG_fail;
30894 PyObject *resultobj = 0;
30901 PyObject * obj0 = 0 ;
30902 PyObject * obj1 = 0 ;
30904 bool upcall =
false;
30906 if (!PyArg_UnpackTuple(args,
"Decision_ApplyWrapper", 2, 2, &obj0, &obj1))
SWIG_fail;
30925 (arg1)->Apply(arg2);
30943 PyObject *resultobj = 0;
30950 PyObject * obj0 = 0 ;
30951 PyObject * obj1 = 0 ;
30953 bool upcall =
false;
30955 if (!PyArg_UnpackTuple(args,
"Decision_RefuteWrapper", 2, 2, &obj0, &obj1))
SWIG_fail;
30974 (arg1)->Refute(arg2);
30992 PyObject *resultobj = 0;
30996 PyObject * obj0 = 0 ;
30998 bool upcall =
false;
30999 std::string result;
31001 if (!PyArg_UnpackTuple(args,
"Decision_DebugString", 1, 1, &obj0))
SWIG_fail;
31033 PyObject *resultobj = 0;
31037 PyObject * obj0 = 0 ;
31038 std::string result;
31040 if (!PyArg_UnpackTuple(args,
"Decision___repr__", 1, 1, &obj0))
SWIG_fail;
31062 PyObject *resultobj = 0;
31066 PyObject * obj0 = 0 ;
31067 std::string result;
31069 if (!PyArg_UnpackTuple(args,
"Decision___str__", 1, 1, &obj0))
SWIG_fail;
31091 PyObject *resultobj = 0;
31095 PyObject * obj0 = 0 ;
31097 if (!PyArg_UnpackTuple(args,
"disown_Decision", 1, 1, &obj0))
SWIG_fail;
31127 PyObject *resultobj = 0;
31128 PyObject *arg1 = (PyObject *) 0 ;
31129 PyObject * obj0 = 0 ;
31132 if (!PyArg_UnpackTuple(args,
"new_DecisionBuilder", 1, 1, &obj0))
SWIG_fail;
31136 if ( arg1 != Py_None ) {
31140 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing abstract class or protected constructor");
31156 PyObject *resultobj = 0;
31160 PyObject * obj0 = 0 ;
31162 if (!PyArg_UnpackTuple(args,
"delete_DecisionBuilder", 1, 1, &obj0))
SWIG_fail;
31165 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_DecisionBuilder" "', argument " "1"" of type '" "operations_research::DecisionBuilder *""'");
31184 PyObject *resultobj = 0;
31191 PyObject * obj0 = 0 ;
31192 PyObject * obj1 = 0 ;
31194 bool upcall =
false;
31197 if (!PyArg_UnpackTuple(args,
"DecisionBuilder_NextWrapper", 2, 2, &obj0, &obj1))
SWIG_fail;
31200 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DecisionBuilder_NextWrapper" "', argument " "1"" of type '" "operations_research::DecisionBuilder *""'");
31205 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "DecisionBuilder_NextWrapper" "', argument " "2"" of type '" "operations_research::Solver *const""'");
31229 Py_INCREF(resultobj);
31243 PyObject *resultobj = 0;
31247 PyObject * obj0 = 0 ;
31249 bool upcall =
false;
31250 std::string result;
31252 if (!PyArg_UnpackTuple(args,
"DecisionBuilder_DebugString", 1, 1, &obj0))
SWIG_fail;
31255 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DecisionBuilder_DebugString" "', argument " "1"" of type '" "operations_research::DecisionBuilder const *""'");
31284 PyObject *resultobj = 0;
31288 PyObject * obj0 = 0 ;
31289 std::string result;
31291 if (!PyArg_UnpackTuple(args,
"DecisionBuilder___repr__", 1, 1, &obj0))
SWIG_fail;
31294 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DecisionBuilder___repr__" "', argument " "1"" of type '" "operations_research::DecisionBuilder *""'");
31313 PyObject *resultobj = 0;
31317 PyObject * obj0 = 0 ;
31318 std::string result;
31320 if (!PyArg_UnpackTuple(args,
"DecisionBuilder___str__", 1, 1, &obj0))
SWIG_fail;
31323 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DecisionBuilder___str__" "', argument " "1"" of type '" "operations_research::DecisionBuilder *""'");
31342 PyObject *resultobj = 0;
31346 PyObject * obj0 = 0 ;
31348 if (!PyArg_UnpackTuple(args,
"disown_DecisionBuilder", 1, 1, &obj0))
SWIG_fail;
31351 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "disown_DecisionBuilder" "', argument " "1"" of type '" "operations_research::DecisionBuilder *""'");
31378 PyObject *resultobj = 0;
31379 PyObject *arg1 = (PyObject *) 0 ;
31380 PyObject * obj0 = 0 ;
31383 if (!PyArg_UnpackTuple(args,
"new_Demon", 1, 1, &obj0))
SWIG_fail;
31387 if ( arg1 != Py_None ) {
31391 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing abstract class or protected constructor");
31407 PyObject *resultobj = 0;
31411 PyObject * obj0 = 0 ;
31413 if (!PyArg_UnpackTuple(args,
"delete_Demon", 1, 1, &obj0))
SWIG_fail;
31435 PyObject *resultobj = 0;
31442 PyObject * obj0 = 0 ;
31443 PyObject * obj1 = 0 ;
31445 bool upcall =
false;
31447 if (!PyArg_UnpackTuple(args,
"Demon_RunWrapper", 2, 2, &obj0, &obj1))
SWIG_fail;
31484 PyObject *resultobj = 0;
31488 PyObject * obj0 = 0 ;
31490 bool upcall =
false;
31493 if (!PyArg_UnpackTuple(args,
"Demon_Priority", 1, 1, &obj0))
SWIG_fail;
31525 PyObject *resultobj = 0;
31529 PyObject * obj0 = 0 ;
31531 bool upcall =
false;
31532 std::string result;
31534 if (!PyArg_UnpackTuple(args,
"Demon_DebugString", 1, 1, &obj0))
SWIG_fail;
31566 PyObject *resultobj = 0;
31573 PyObject * obj0 = 0 ;
31574 PyObject * obj1 = 0 ;
31576 if (!PyArg_UnpackTuple(args,
"Demon_Inhibit", 2, 2, &obj0, &obj1))
SWIG_fail;
31589 (arg1)->inhibit(arg2);
31603 PyObject *resultobj = 0;
31610 PyObject * obj0 = 0 ;
31611 PyObject * obj1 = 0 ;
31613 if (!PyArg_UnpackTuple(args,
"Demon_Desinhibit", 2, 2, &obj0, &obj1))
SWIG_fail;
31626 (arg1)->desinhibit(arg2);
31640 PyObject *resultobj = 0;
31644 PyObject * obj0 = 0 ;
31646 if (!PyArg_UnpackTuple(args,
"disown_Demon", 1, 1, &obj0))
SWIG_fail;
31676 PyObject *resultobj = 0;
31677 PyObject *arg1 = (PyObject *) 0 ;
31681 PyObject * obj0 = 0 ;
31682 PyObject * obj1 = 0 ;
31685 if (!PyArg_UnpackTuple(args,
"new_Constraint", 2, 2, &obj0, &obj1))
SWIG_fail;
31694 if ( arg1 != Py_None ) {
31698 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing abstract class or protected constructor");
31714 PyObject *resultobj = 0;
31718 PyObject * obj0 = 0 ;
31720 if (!PyArg_UnpackTuple(args,
"delete_Constraint", 1, 1, &obj0))
SWIG_fail;
31742 PyObject *resultobj = 0;
31746 PyObject * obj0 = 0 ;
31748 bool upcall =
false;
31750 if (!PyArg_UnpackTuple(args,
"Constraint_Post", 1, 1, &obj0))
SWIG_fail;
31782 PyObject *resultobj = 0;
31786 PyObject * obj0 = 0 ;
31788 bool upcall =
false;
31790 if (!PyArg_UnpackTuple(args,
"Constraint_InitialPropagateWrapper", 1, 1, &obj0))
SWIG_fail;
31793 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Constraint_InitialPropagateWrapper" "', argument " "1"" of type '" "operations_research::Constraint *""'");
31804 (arg1)->InitialPropagate();
31822 PyObject *resultobj = 0;
31826 PyObject * obj0 = 0 ;
31828 bool upcall =
false;
31829 std::string result;
31831 if (!PyArg_UnpackTuple(args,
"Constraint_DebugString", 1, 1, &obj0))
SWIG_fail;
31834 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Constraint_DebugString" "', argument " "1"" of type '" "operations_research::Constraint const *""'");
31863 PyObject *resultobj = 0;
31867 PyObject * obj0 = 0 ;
31869 bool upcall =
false;
31872 if (!PyArg_UnpackTuple(args,
"Constraint_Var", 1, 1, &obj0))
SWIG_fail;
31907 PyObject *resultobj = 0;
31911 PyObject * obj0 = 0 ;
31912 std::string result;
31914 if (!PyArg_UnpackTuple(args,
"Constraint___repr__", 1, 1, &obj0))
SWIG_fail;
31936 PyObject *resultobj = 0;
31940 PyObject * obj0 = 0 ;
31941 std::string result;
31943 if (!PyArg_UnpackTuple(args,
"Constraint___str__", 1, 1, &obj0))
SWIG_fail;
31965 PyObject *resultobj = 0;
31972 PyObject * obj0 = 0 ;
31973 PyObject * obj1 = 0 ;
31976 if (!PyArg_UnpackTuple(args,
"Constraint___add__", 2, 2, &obj0, &obj1))
SWIG_fail;
31999 Py_INCREF(Py_NotImplemented);
32000 return Py_NotImplemented;
32005 PyObject *resultobj = 0;
32012 PyObject * obj0 = 0 ;
32013 PyObject * obj1 = 0 ;
32016 if (!PyArg_UnpackTuple(args,
"Constraint___add__", 2, 2, &obj0, &obj1))
SWIG_fail;
32039 Py_INCREF(Py_NotImplemented);
32040 return Py_NotImplemented;
32045 PyObject *resultobj = 0;
32052 PyObject * obj0 = 0 ;
32053 PyObject * obj1 = 0 ;
32056 if (!PyArg_UnpackTuple(args,
"Constraint___add__", 2, 2, &obj0, &obj1))
SWIG_fail;
32066 arg2 =
static_cast< int64_t
>(val2);
32079 Py_INCREF(Py_NotImplemented);
32080 return Py_NotImplemented;
32086 PyObject *argv[3] = {
32092 argc = PyObject_Length(args);
32093 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
32094 argv[ii] = PyTuple_GET_ITEM(args,ii);
32141 Py_INCREF(Py_NotImplemented);
32142 return Py_NotImplemented;
32147 PyObject *resultobj = 0;
32154 PyObject * obj0 = 0 ;
32155 PyObject * obj1 = 0 ;
32158 if (!PyArg_UnpackTuple(args,
"Constraint___radd__", 2, 2, &obj0, &obj1))
SWIG_fail;
32168 arg2 =
static_cast< int64_t
>(val2);
32181 Py_INCREF(Py_NotImplemented);
32182 return Py_NotImplemented;
32187 PyObject *resultobj = 0;
32194 PyObject * obj0 = 0 ;
32195 PyObject * obj1 = 0 ;
32198 if (!PyArg_UnpackTuple(args,
"Constraint___sub__", 2, 2, &obj0, &obj1))
SWIG_fail;
32221 Py_INCREF(Py_NotImplemented);
32222 return Py_NotImplemented;
32227 PyObject *resultobj = 0;
32234 PyObject * obj0 = 0 ;
32235 PyObject * obj1 = 0 ;
32238 if (!PyArg_UnpackTuple(args,
"Constraint___sub__", 2, 2, &obj0, &obj1))
SWIG_fail;
32261 Py_INCREF(Py_NotImplemented);
32262 return Py_NotImplemented;
32267 PyObject *resultobj = 0;
32274 PyObject * obj0 = 0 ;
32275 PyObject * obj1 = 0 ;
32278 if (!PyArg_UnpackTuple(args,
"Constraint___sub__", 2, 2, &obj0, &obj1))
SWIG_fail;
32288 arg2 =
static_cast< int64_t
>(val2);
32301 Py_INCREF(Py_NotImplemented);
32302 return Py_NotImplemented;
32308 PyObject *argv[3] = {
32314 argc = PyObject_Length(args);
32315 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
32316 argv[ii] = PyTuple_GET_ITEM(args,ii);
32363 Py_INCREF(Py_NotImplemented);
32364 return Py_NotImplemented;
32369 PyObject *resultobj = 0;
32376 PyObject * obj0 = 0 ;
32377 PyObject * obj1 = 0 ;
32380 if (!PyArg_UnpackTuple(args,
"Constraint___rsub__", 2, 2, &obj0, &obj1))
SWIG_fail;
32390 arg2 =
static_cast< int64_t
>(val2);
32403 Py_INCREF(Py_NotImplemented);
32404 return Py_NotImplemented;
32409 PyObject *resultobj = 0;
32416 PyObject * obj0 = 0 ;
32417 PyObject * obj1 = 0 ;
32420 if (!PyArg_UnpackTuple(args,
"Constraint___mul__", 2, 2, &obj0, &obj1))
SWIG_fail;
32443 Py_INCREF(Py_NotImplemented);
32444 return Py_NotImplemented;
32449 PyObject *resultobj = 0;
32456 PyObject * obj0 = 0 ;
32457 PyObject * obj1 = 0 ;
32460 if (!PyArg_UnpackTuple(args,
"Constraint___mul__", 2, 2, &obj0, &obj1))
SWIG_fail;
32483 Py_INCREF(Py_NotImplemented);
32484 return Py_NotImplemented;
32489 PyObject *resultobj = 0;
32496 PyObject * obj0 = 0 ;
32497 PyObject * obj1 = 0 ;
32500 if (!PyArg_UnpackTuple(args,
"Constraint___mul__", 2, 2, &obj0, &obj1))
SWIG_fail;
32510 arg2 =
static_cast< int64_t
>(val2);
32523 Py_INCREF(Py_NotImplemented);
32524 return Py_NotImplemented;
32530 PyObject *argv[3] = {
32536 argc = PyObject_Length(args);
32537 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
32538 argv[ii] = PyTuple_GET_ITEM(args,ii);
32585 Py_INCREF(Py_NotImplemented);
32586 return Py_NotImplemented;
32591 PyObject *resultobj = 0;
32598 PyObject * obj0 = 0 ;
32599 PyObject * obj1 = 0 ;
32602 if (!PyArg_UnpackTuple(args,
"Constraint___rmul__", 2, 2, &obj0, &obj1))
SWIG_fail;
32612 arg2 =
static_cast< int64_t
>(val2);
32625 Py_INCREF(Py_NotImplemented);
32626 return Py_NotImplemented;
32631 PyObject *resultobj = 0;
32638 PyObject * obj0 = 0 ;
32639 PyObject * obj1 = 0 ;
32642 if (!PyArg_UnpackTuple(args,
"Constraint___floordiv__", 2, 2, &obj0, &obj1))
SWIG_fail;
32652 arg2 =
static_cast< int64_t
>(val2);
32669 PyObject *resultobj = 0;
32673 PyObject * obj0 = 0 ;
32676 if (!PyArg_UnpackTuple(args,
"Constraint___neg__", 1, 1, &obj0))
SWIG_fail;
32694 Py_INCREF(Py_NotImplemented);
32695 return Py_NotImplemented;
32700 PyObject *resultobj = 0;
32704 PyObject * obj0 = 0 ;
32707 if (!PyArg_UnpackTuple(args,
"Constraint___abs__", 1, 1, &obj0))
SWIG_fail;
32729 PyObject *resultobj = 0;
32733 PyObject * obj0 = 0 ;
32736 if (!PyArg_UnpackTuple(args,
"Constraint_Square", 1, 1, &obj0))
SWIG_fail;
32758 PyObject *resultobj = 0;
32765 PyObject * obj0 = 0 ;
32766 PyObject * obj1 = 0 ;
32770 if (!PyArg_UnpackTuple(args,
"Constraint___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
32780 arg2 =
static_cast< int64_t
>(val2);
32792 Py_INCREF(resultobj);
32799 Py_INCREF(Py_NotImplemented);
32800 return Py_NotImplemented;
32805 PyObject *resultobj = 0;
32812 PyObject * obj0 = 0 ;
32813 PyObject * obj1 = 0 ;
32817 if (!PyArg_UnpackTuple(args,
"Constraint___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
32827 arg2 =
static_cast< int64_t
>(val2);
32839 Py_INCREF(resultobj);
32846 Py_INCREF(Py_NotImplemented);
32847 return Py_NotImplemented;
32852 PyObject *resultobj = 0;
32859 PyObject * obj0 = 0 ;
32860 PyObject * obj1 = 0 ;
32864 if (!PyArg_UnpackTuple(args,
"Constraint___ge__", 2, 2, &obj0, &obj1))
SWIG_fail;
32874 arg2 =
static_cast< int64_t
>(val2);
32886 Py_INCREF(resultobj);
32893 Py_INCREF(Py_NotImplemented);
32894 return Py_NotImplemented;
32899 PyObject *resultobj = 0;
32906 PyObject * obj0 = 0 ;
32907 PyObject * obj1 = 0 ;
32911 if (!PyArg_UnpackTuple(args,
"Constraint___gt__", 2, 2, &obj0, &obj1))
SWIG_fail;
32921 arg2 =
static_cast< int64_t
>(val2);
32933 Py_INCREF(resultobj);
32940 Py_INCREF(Py_NotImplemented);
32941 return Py_NotImplemented;
32946 PyObject *resultobj = 0;
32953 PyObject * obj0 = 0 ;
32954 PyObject * obj1 = 0 ;
32958 if (!PyArg_UnpackTuple(args,
"Constraint___le__", 2, 2, &obj0, &obj1))
SWIG_fail;
32968 arg2 =
static_cast< int64_t
>(val2);
32980 Py_INCREF(resultobj);
32987 Py_INCREF(Py_NotImplemented);
32988 return Py_NotImplemented;
32993 PyObject *resultobj = 0;
33000 PyObject * obj0 = 0 ;
33001 PyObject * obj1 = 0 ;
33005 if (!PyArg_UnpackTuple(args,
"Constraint___lt__", 2, 2, &obj0, &obj1))
SWIG_fail;
33015 arg2 =
static_cast< int64_t
>(val2);
33027 Py_INCREF(resultobj);
33034 Py_INCREF(Py_NotImplemented);
33035 return Py_NotImplemented;
33040 PyObject *resultobj = 0;
33047 PyObject * obj0 = 0 ;
33048 PyObject * obj1 = 0 ;
33052 if (!PyArg_UnpackTuple(args,
"Constraint___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
33074 Py_INCREF(resultobj);
33081 Py_INCREF(Py_NotImplemented);
33082 return Py_NotImplemented;
33087 PyObject *resultobj = 0;
33094 PyObject * obj0 = 0 ;
33095 PyObject * obj1 = 0 ;
33099 if (!PyArg_UnpackTuple(args,
"Constraint___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
33121 Py_INCREF(resultobj);
33128 Py_INCREF(Py_NotImplemented);
33129 return Py_NotImplemented;
33134 PyObject *resultobj = 0;
33141 PyObject * obj0 = 0 ;
33142 PyObject * obj1 = 0 ;
33146 if (!PyArg_UnpackTuple(args,
"Constraint___ge__", 2, 2, &obj0, &obj1))
SWIG_fail;
33168 Py_INCREF(resultobj);
33175 Py_INCREF(Py_NotImplemented);
33176 return Py_NotImplemented;
33181 PyObject *resultobj = 0;
33188 PyObject * obj0 = 0 ;
33189 PyObject * obj1 = 0 ;
33193 if (!PyArg_UnpackTuple(args,
"Constraint___gt__", 2, 2, &obj0, &obj1))
SWIG_fail;
33215 Py_INCREF(resultobj);
33222 Py_INCREF(Py_NotImplemented);
33223 return Py_NotImplemented;
33228 PyObject *resultobj = 0;
33235 PyObject * obj0 = 0 ;
33236 PyObject * obj1 = 0 ;
33240 if (!PyArg_UnpackTuple(args,
"Constraint___le__", 2, 2, &obj0, &obj1))
SWIG_fail;
33262 Py_INCREF(resultobj);
33269 Py_INCREF(Py_NotImplemented);
33270 return Py_NotImplemented;
33275 PyObject *resultobj = 0;
33282 PyObject * obj0 = 0 ;
33283 PyObject * obj1 = 0 ;
33287 if (!PyArg_UnpackTuple(args,
"Constraint___lt__", 2, 2, &obj0, &obj1))
SWIG_fail;
33309 Py_INCREF(resultobj);
33316 Py_INCREF(Py_NotImplemented);
33317 return Py_NotImplemented;
33322 PyObject *resultobj = 0;
33329 PyObject * obj0 = 0 ;
33330 PyObject * obj1 = 0 ;
33334 if (!PyArg_UnpackTuple(args,
"Constraint___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
33356 Py_INCREF(resultobj);
33363 Py_INCREF(Py_NotImplemented);
33364 return Py_NotImplemented;
33370 PyObject *argv[3] = {
33376 argc = PyObject_Length(args);
33377 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33378 argv[ii] = PyTuple_GET_ITEM(args,ii);
33425 Py_INCREF(Py_NotImplemented);
33426 return Py_NotImplemented;
33431 PyObject *resultobj = 0;
33438 PyObject * obj0 = 0 ;
33439 PyObject * obj1 = 0 ;
33443 if (!PyArg_UnpackTuple(args,
"Constraint___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
33465 Py_INCREF(resultobj);
33472 Py_INCREF(Py_NotImplemented);
33473 return Py_NotImplemented;
33479 PyObject *argv[3] = {
33485 argc = PyObject_Length(args);
33486 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33487 argv[ii] = PyTuple_GET_ITEM(args,ii);
33534 Py_INCREF(Py_NotImplemented);
33535 return Py_NotImplemented;
33540 PyObject *resultobj = 0;
33547 PyObject * obj0 = 0 ;
33548 PyObject * obj1 = 0 ;
33552 if (!PyArg_UnpackTuple(args,
"Constraint___ge__", 2, 2, &obj0, &obj1))
SWIG_fail;
33574 Py_INCREF(resultobj);
33581 Py_INCREF(Py_NotImplemented);
33582 return Py_NotImplemented;
33588 PyObject *argv[3] = {
33594 argc = PyObject_Length(args);
33595 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33596 argv[ii] = PyTuple_GET_ITEM(args,ii);
33643 Py_INCREF(Py_NotImplemented);
33644 return Py_NotImplemented;
33649 PyObject *resultobj = 0;
33656 PyObject * obj0 = 0 ;
33657 PyObject * obj1 = 0 ;
33661 if (!PyArg_UnpackTuple(args,
"Constraint___gt__", 2, 2, &obj0, &obj1))
SWIG_fail;
33683 Py_INCREF(resultobj);
33690 Py_INCREF(Py_NotImplemented);
33691 return Py_NotImplemented;
33697 PyObject *argv[3] = {
33703 argc = PyObject_Length(args);
33704 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33705 argv[ii] = PyTuple_GET_ITEM(args,ii);
33752 Py_INCREF(Py_NotImplemented);
33753 return Py_NotImplemented;
33758 PyObject *resultobj = 0;
33765 PyObject * obj0 = 0 ;
33766 PyObject * obj1 = 0 ;
33770 if (!PyArg_UnpackTuple(args,
"Constraint___le__", 2, 2, &obj0, &obj1))
SWIG_fail;
33792 Py_INCREF(resultobj);
33799 Py_INCREF(Py_NotImplemented);
33800 return Py_NotImplemented;
33806 PyObject *argv[3] = {
33812 argc = PyObject_Length(args);
33813 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33814 argv[ii] = PyTuple_GET_ITEM(args,ii);
33861 Py_INCREF(Py_NotImplemented);
33862 return Py_NotImplemented;
33867 PyObject *resultobj = 0;
33874 PyObject * obj0 = 0 ;
33875 PyObject * obj1 = 0 ;
33879 if (!PyArg_UnpackTuple(args,
"Constraint___lt__", 2, 2, &obj0, &obj1))
SWIG_fail;
33901 Py_INCREF(resultobj);
33908 Py_INCREF(Py_NotImplemented);
33909 return Py_NotImplemented;
33915 PyObject *argv[3] = {
33921 argc = PyObject_Length(args);
33922 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33923 argv[ii] = PyTuple_GET_ITEM(args,ii);
33970 Py_INCREF(Py_NotImplemented);
33971 return Py_NotImplemented;
33976 PyObject *resultobj = 0;
33978 std::vector< operations_research::IntVar * > *arg2 = 0 ;
33981 std::vector< operations_research::IntVar * > temp2 ;
33982 PyObject * obj0 = 0 ;
33983 PyObject * obj1 = 0 ;
33987 if (!PyArg_UnpackTuple(args,
"Constraint_MapTo", 2, 2, &obj0, &obj1))
SWIG_fail;
33994 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
33995 if (!PyErr_Occurred())
34012 Py_INCREF(resultobj);
34023 PyObject *resultobj = 0;
34025 std::vector< int64_t > *arg2 = 0 ;
34028 std::vector< int64_t > temp2 ;
34029 PyObject * obj0 = 0 ;
34030 PyObject * obj1 = 0 ;
34033 if (!PyArg_UnpackTuple(args,
"Constraint_IndexOf", 2, 2, &obj0, &obj1))
SWIG_fail;
34040 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
34041 if (!PyErr_Occurred())
34063 PyObject *resultobj = 0;
34065 std::vector< operations_research::IntVar * > *arg2 = 0 ;
34068 std::vector< operations_research::IntVar * > temp2 ;
34069 PyObject * obj0 = 0 ;
34070 PyObject * obj1 = 0 ;
34073 if (!PyArg_UnpackTuple(args,
"Constraint_IndexOf", 2, 2, &obj0, &obj1))
SWIG_fail;
34080 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
34081 if (!PyErr_Occurred())
34104 PyObject *argv[3] = {
34110 argc = PyObject_Length(args);
34111 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
34112 argv[ii] = PyTuple_GET_ITEM(args,ii);
34121 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
34124 const bool is_tuple = PyTuple_Check(argv[1]);
34125 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
34127 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
34128 :PyList_GetItem(argv[1], i))) {
34146 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
34149 const bool is_tuple = PyTuple_Check(argv[1]);
34150 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
34153 :PyList_GetItem(argv[1], i))) {
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");
34175 PyObject *resultobj = 0;
34179 PyObject * obj0 = 0 ;
34181 if (!PyArg_UnpackTuple(args,
"disown_Constraint", 1, 1, &obj0))
SWIG_fail;
34211 PyObject *resultobj = 0;
34212 PyObject *arg1 = (PyObject *) 0 ;
34216 PyObject * obj0 = 0 ;
34217 PyObject * obj1 = 0 ;
34220 if (!PyArg_UnpackTuple(args,
"new_SearchMonitor", 2, 2, &obj0, &obj1))
SWIG_fail;
34229 if ( arg1 != Py_None ) {
34248 PyObject *resultobj = 0;
34252 PyObject * obj0 = 0 ;
34254 if (!PyArg_UnpackTuple(args,
"delete_SearchMonitor", 1, 1, &obj0))
SWIG_fail;
34276 PyObject *resultobj = 0;
34280 PyObject * obj0 = 0 ;
34282 bool upcall =
false;
34284 if (!PyArg_UnpackTuple(args,
"SearchMonitor_EnterSearch", 1, 1, &obj0))
SWIG_fail;
34287 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_EnterSearch" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34298 (arg1)->EnterSearch();
34316 PyObject *resultobj = 0;
34320 PyObject * obj0 = 0 ;
34322 bool upcall =
false;
34324 if (!PyArg_UnpackTuple(args,
"SearchMonitor_RestartSearch", 1, 1, &obj0))
SWIG_fail;
34327 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_RestartSearch" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34338 (arg1)->RestartSearch();
34356 PyObject *resultobj = 0;
34360 PyObject * obj0 = 0 ;
34362 bool upcall =
false;
34364 if (!PyArg_UnpackTuple(args,
"SearchMonitor_ExitSearch", 1, 1, &obj0))
SWIG_fail;
34367 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_ExitSearch" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34378 (arg1)->ExitSearch();
34396 PyObject *resultobj = 0;
34401 PyObject * obj0 = 0 ;
34402 PyObject * obj1 = 0 ;
34404 bool upcall =
false;
34406 if (!PyArg_UnpackTuple(args,
"SearchMonitor_BeginNextDecision", 2, 2, &obj0, &obj1))
SWIG_fail;
34409 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_BeginNextDecision" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34423 (arg1)->BeginNextDecision(arg2);
34441 PyObject *resultobj = 0;
34447 PyObject * obj0 = 0 ;
34448 PyObject * obj1 = 0 ;
34449 PyObject * obj2 = 0 ;
34451 bool upcall =
false;
34453 if (!PyArg_UnpackTuple(args,
"SearchMonitor_EndNextDecision", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
34456 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_EndNextDecision" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34473 (arg1)->EndNextDecision(arg2,arg3);
34491 PyObject *resultobj = 0;
34496 PyObject * obj0 = 0 ;
34497 PyObject * obj1 = 0 ;
34499 bool upcall =
false;
34501 if (!PyArg_UnpackTuple(args,
"SearchMonitor_ApplyDecision", 2, 2, &obj0, &obj1))
SWIG_fail;
34504 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_ApplyDecision" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34518 (arg1)->ApplyDecision(arg2);
34536 PyObject *resultobj = 0;
34541 PyObject * obj0 = 0 ;
34542 PyObject * obj1 = 0 ;
34544 bool upcall =
false;
34546 if (!PyArg_UnpackTuple(args,
"SearchMonitor_RefuteDecision", 2, 2, &obj0, &obj1))
SWIG_fail;
34549 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_RefuteDecision" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34563 (arg1)->RefuteDecision(arg2);
34581 PyObject *resultobj = 0;
34589 PyObject * obj0 = 0 ;
34590 PyObject * obj1 = 0 ;
34591 PyObject * obj2 = 0 ;
34593 bool upcall =
false;
34595 if (!PyArg_UnpackTuple(args,
"SearchMonitor_AfterDecision", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
34598 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_AfterDecision" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34608 arg3 =
static_cast< bool >(val3);
34617 (arg1)->AfterDecision(arg2,arg3);
34635 PyObject *resultobj = 0;
34639 PyObject * obj0 = 0 ;
34641 bool upcall =
false;
34643 if (!PyArg_UnpackTuple(args,
"SearchMonitor_BeginFail", 1, 1, &obj0))
SWIG_fail;
34646 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_BeginFail" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34657 (arg1)->BeginFail();
34675 PyObject *resultobj = 0;
34679 PyObject * obj0 = 0 ;
34681 bool upcall =
false;
34683 if (!PyArg_UnpackTuple(args,
"SearchMonitor_EndFail", 1, 1, &obj0))
SWIG_fail;
34715 PyObject *resultobj = 0;
34719 PyObject * obj0 = 0 ;
34721 bool upcall =
false;
34723 if (!PyArg_UnpackTuple(args,
"SearchMonitor_BeginInitialPropagation", 1, 1, &obj0))
SWIG_fail;
34726 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_BeginInitialPropagation" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34737 (arg1)->BeginInitialPropagation();
34755 PyObject *resultobj = 0;
34759 PyObject * obj0 = 0 ;
34761 bool upcall =
false;
34763 if (!PyArg_UnpackTuple(args,
"SearchMonitor_EndInitialPropagation", 1, 1, &obj0))
SWIG_fail;
34766 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_EndInitialPropagation" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34777 (arg1)->EndInitialPropagation();
34795 PyObject *resultobj = 0;
34799 PyObject * obj0 = 0 ;
34801 bool upcall =
false;
34804 if (!PyArg_UnpackTuple(args,
"SearchMonitor_AcceptSolution", 1, 1, &obj0))
SWIG_fail;
34807 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_AcceptSolution" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34816 result = (bool)(arg1)->operations_research::SearchMonitor::AcceptSolution();
34818 result = (bool)(arg1)->AcceptSolution();
34836 PyObject *resultobj = 0;
34840 PyObject * obj0 = 0 ;
34842 bool upcall =
false;
34845 if (!PyArg_UnpackTuple(args,
"SearchMonitor_AtSolution", 1, 1, &obj0))
SWIG_fail;
34848 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_AtSolution" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34857 result = (bool)(arg1)->operations_research::SearchMonitor::AtSolution();
34859 result = (bool)(arg1)->AtSolution();
34877 PyObject *resultobj = 0;
34881 PyObject * obj0 = 0 ;
34883 bool upcall =
false;
34885 if (!PyArg_UnpackTuple(args,
"SearchMonitor_NoMoreSolutions", 1, 1, &obj0))
SWIG_fail;
34888 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_NoMoreSolutions" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34899 (arg1)->NoMoreSolutions();
34917 PyObject *resultobj = 0;
34921 PyObject * obj0 = 0 ;
34923 bool upcall =
false;
34926 if (!PyArg_UnpackTuple(args,
"SearchMonitor_LocalOptimum", 1, 1, &obj0))
SWIG_fail;
34929 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_LocalOptimum" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34938 result = (bool)(arg1)->operations_research::SearchMonitor::LocalOptimum();
34940 result = (bool)(arg1)->LocalOptimum();
34958 PyObject *resultobj = 0;
34968 PyObject * obj0 = 0 ;
34969 PyObject * obj1 = 0 ;
34970 PyObject * obj2 = 0 ;
34972 bool upcall =
false;
34975 if (!PyArg_UnpackTuple(args,
"SearchMonitor_AcceptDelta", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
34978 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_AcceptDelta" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34983 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "SearchMonitor_AcceptDelta" "', argument " "2"" of type '" "operations_research::Assignment *""'");
34988 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "SearchMonitor_AcceptDelta" "', argument " "3"" of type '" "operations_research::Assignment *""'");
34997 result = (bool)(arg1)->operations_research::SearchMonitor::AcceptDelta(arg2,arg3);
34999 result = (bool)(arg1)->AcceptDelta(arg2,arg3);
35017 PyObject *resultobj = 0;
35021 PyObject * obj0 = 0 ;
35023 bool upcall =
false;
35025 if (!PyArg_UnpackTuple(args,
"SearchMonitor_AcceptNeighbor", 1, 1, &obj0))
SWIG_fail;
35028 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_AcceptNeighbor" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
35057 PyObject *resultobj = 0;
35061 PyObject * obj0 = 0 ;
35064 if (!PyArg_UnpackTuple(args,
"SearchMonitor_solver", 1, 1, &obj0))
SWIG_fail;
35067 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_solver" "', argument " "1"" of type '" "operations_research::SearchMonitor const *""'");
35086 PyObject *resultobj = 0;
35090 PyObject * obj0 = 0 ;
35091 std::string result;
35093 if (!PyArg_UnpackTuple(args,
"SearchMonitor___repr__", 1, 1, &obj0))
SWIG_fail;
35096 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor___repr__" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
35115 PyObject *resultobj = 0;
35119 PyObject * obj0 = 0 ;
35120 std::string result;
35122 if (!PyArg_UnpackTuple(args,
"SearchMonitor___str__", 1, 1, &obj0))
SWIG_fail;
35144 PyObject *resultobj = 0;
35148 PyObject * obj0 = 0 ;
35150 if (!PyArg_UnpackTuple(args,
"disown_SearchMonitor", 1, 1, &obj0))
SWIG_fail;
35180 PyObject *resultobj = 0;
35184 PyObject * obj0 = 0 ;
35187 if (!PyArg_UnpackTuple(args,
"IntExpr_Min", 1, 1, &obj0))
SWIG_fail;
35209 PyObject *resultobj = 0;
35216 PyObject * obj0 = 0 ;
35217 PyObject * obj1 = 0 ;
35219 if (!PyArg_UnpackTuple(args,
"IntExpr_SetMin", 2, 2, &obj0, &obj1))
SWIG_fail;
35229 arg2 =
static_cast< int64_t
>(val2);
35237 (arg1)->SetMin(arg2);
35244 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
35256 PyObject *resultobj = 0;
35260 PyObject * obj0 = 0 ;
35263 if (!PyArg_UnpackTuple(args,
"IntExpr_Max", 1, 1, &obj0))
SWIG_fail;
35285 PyObject *resultobj = 0;
35292 PyObject * obj0 = 0 ;
35293 PyObject * obj1 = 0 ;
35295 if (!PyArg_UnpackTuple(args,
"IntExpr_SetMax", 2, 2, &obj0, &obj1))
SWIG_fail;
35305 arg2 =
static_cast< int64_t
>(val2);
35313 (arg1)->SetMax(arg2);
35320 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
35332 PyObject *resultobj = 0;
35342 PyObject * obj0 = 0 ;
35343 PyObject * obj1 = 0 ;
35344 PyObject * obj2 = 0 ;
35346 if (!PyArg_UnpackTuple(args,
"IntExpr_SetRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
35356 arg2 =
static_cast< int64_t
>(val2);
35361 arg3 =
static_cast< int64_t
>(val3);
35369 (arg1)->SetRange(arg2,arg3);
35376 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
35388 PyObject *resultobj = 0;
35395 PyObject * obj0 = 0 ;
35396 PyObject * obj1 = 0 ;
35398 if (!PyArg_UnpackTuple(args,
"IntExpr_SetValue", 2, 2, &obj0, &obj1))
SWIG_fail;
35408 arg2 =
static_cast< int64_t
>(val2);
35416 (arg1)->SetValue(arg2);
35423 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
35435 PyObject *resultobj = 0;
35439 PyObject * obj0 = 0 ;
35442 if (!PyArg_UnpackTuple(args,
"IntExpr_Bound", 1, 1, &obj0))
SWIG_fail;
35464 PyObject *resultobj = 0;
35468 PyObject * obj0 = 0 ;
35471 if (!PyArg_UnpackTuple(args,
"IntExpr_IsVar", 1, 1, &obj0))
SWIG_fail;
35493 PyObject *resultobj = 0;
35497 PyObject * obj0 = 0 ;
35500 if (!PyArg_UnpackTuple(args,
"IntExpr_Var", 1, 1, &obj0))
SWIG_fail;
35522 PyObject *resultobj = 0;
35524 std::string *arg2 = 0 ;
35528 PyObject * obj0 = 0 ;
35529 PyObject * obj1 = 0 ;
35532 if (!PyArg_UnpackTuple(args,
"IntExpr_VarWithName", 2, 2, &obj0, &obj1))
SWIG_fail;
35539 std::string *ptr = (std::string *)0;
35567 PyObject *resultobj = 0;
35574 PyObject * obj0 = 0 ;
35575 PyObject * obj1 = 0 ;
35577 if (!PyArg_UnpackTuple(args,
"IntExpr_WhenRange", 2, 2, &obj0, &obj1))
SWIG_fail;
35590 (arg1)->WhenRange(arg2);
35604 PyObject *resultobj = 0;
35609 PyObject * obj0 = 0 ;
35610 PyObject * obj1 = 0 ;
35612 if (!PyArg_UnpackTuple(args,
"IntExpr_WhenRange", 2, 2, &obj0, &obj1))
SWIG_fail;
35621 return InvokePythonCallableReturning<void>(
input.get());
35626 (arg1)->WhenRange(arg2);
35641 PyObject *argv[3] = {
35647 argc = PyObject_Length(args);
35648 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
35649 argv[ii] = PyTuple_GET_ITEM(args,ii);
35672 _v = PyCallable_Check(argv[1]);
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");
35690 PyObject *resultobj = 0;
35694 PyObject * obj0 = 0 ;
35695 std::string result;
35697 if (!PyArg_UnpackTuple(args,
"IntExpr___repr__", 1, 1, &obj0))
SWIG_fail;
35719 PyObject *resultobj = 0;
35723 PyObject * obj0 = 0 ;
35724 std::string result;
35726 if (!PyArg_UnpackTuple(args,
"IntExpr___str__", 1, 1, &obj0))
SWIG_fail;
35748 PyObject *resultobj = 0;
35755 PyObject * obj0 = 0 ;
35756 PyObject * obj1 = 0 ;
35759 if (!PyArg_UnpackTuple(args,
"IntExpr___add__", 2, 2, &obj0, &obj1))
SWIG_fail;
35782 Py_INCREF(Py_NotImplemented);
35783 return Py_NotImplemented;
35788 PyObject *resultobj = 0;
35795 PyObject * obj0 = 0 ;
35796 PyObject * obj1 = 0 ;
35799 if (!PyArg_UnpackTuple(args,
"IntExpr___add__", 2, 2, &obj0, &obj1))
SWIG_fail;
35822 Py_INCREF(Py_NotImplemented);
35823 return Py_NotImplemented;
35828 PyObject *resultobj = 0;
35835 PyObject * obj0 = 0 ;
35836 PyObject * obj1 = 0 ;
35839 if (!PyArg_UnpackTuple(args,
"IntExpr___add__", 2, 2, &obj0, &obj1))
SWIG_fail;
35849 arg2 =
static_cast< int64_t
>(val2);
35862 Py_INCREF(Py_NotImplemented);
35863 return Py_NotImplemented;
35869 PyObject *argv[3] = {
35875 argc = PyObject_Length(args);
35876 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
35877 argv[ii] = PyTuple_GET_ITEM(args,ii);
35924 Py_INCREF(Py_NotImplemented);
35925 return Py_NotImplemented;
35930 PyObject *resultobj = 0;
35937 PyObject * obj0 = 0 ;
35938 PyObject * obj1 = 0 ;
35941 if (!PyArg_UnpackTuple(args,
"IntExpr___radd__", 2, 2, &obj0, &obj1))
SWIG_fail;
35951 arg2 =
static_cast< int64_t
>(val2);
35964 Py_INCREF(Py_NotImplemented);
35965 return Py_NotImplemented;
35970 PyObject *resultobj = 0;
35977 PyObject * obj0 = 0 ;
35978 PyObject * obj1 = 0 ;
35981 if (!PyArg_UnpackTuple(args,
"IntExpr___sub__", 2, 2, &obj0, &obj1))
SWIG_fail;
36004 Py_INCREF(Py_NotImplemented);
36005 return Py_NotImplemented;
36010 PyObject *resultobj = 0;
36017 PyObject * obj0 = 0 ;
36018 PyObject * obj1 = 0 ;
36021 if (!PyArg_UnpackTuple(args,
"IntExpr___sub__", 2, 2, &obj0, &obj1))
SWIG_fail;
36044 Py_INCREF(Py_NotImplemented);
36045 return Py_NotImplemented;
36050 PyObject *resultobj = 0;
36057 PyObject * obj0 = 0 ;
36058 PyObject * obj1 = 0 ;
36061 if (!PyArg_UnpackTuple(args,
"IntExpr___sub__", 2, 2, &obj0, &obj1))
SWIG_fail;
36071 arg2 =
static_cast< int64_t
>(val2);
36084 Py_INCREF(Py_NotImplemented);
36085 return Py_NotImplemented;
36091 PyObject *argv[3] = {
36097 argc = PyObject_Length(args);
36098 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
36099 argv[ii] = PyTuple_GET_ITEM(args,ii);
36146 Py_INCREF(Py_NotImplemented);
36147 return Py_NotImplemented;
36152 PyObject *resultobj = 0;
36159 PyObject * obj0 = 0 ;
36160 PyObject * obj1 = 0 ;
36163 if (!PyArg_UnpackTuple(args,
"IntExpr___rsub__", 2, 2, &obj0, &obj1))
SWIG_fail;
36173 arg2 =
static_cast< int64_t
>(val2);
36186 Py_INCREF(Py_NotImplemented);
36187 return Py_NotImplemented;
36192 PyObject *resultobj = 0;
36199 PyObject * obj0 = 0 ;
36200 PyObject * obj1 = 0 ;
36203 if (!PyArg_UnpackTuple(args,
"IntExpr___mul__", 2, 2, &obj0, &obj1))
SWIG_fail;
36226 Py_INCREF(Py_NotImplemented);
36227 return Py_NotImplemented;
36232 PyObject *resultobj = 0;
36239 PyObject * obj0 = 0 ;
36240 PyObject * obj1 = 0 ;
36243 if (!PyArg_UnpackTuple(args,
"IntExpr___mul__", 2, 2, &obj0, &obj1))
SWIG_fail;
36266 Py_INCREF(Py_NotImplemented);
36267 return Py_NotImplemented;
36272 PyObject *resultobj = 0;
36279 PyObject * obj0 = 0 ;
36280 PyObject * obj1 = 0 ;
36283 if (!PyArg_UnpackTuple(args,
"IntExpr___mul__", 2, 2, &obj0, &obj1))
SWIG_fail;
36293 arg2 =
static_cast< int64_t
>(val2);
36306 Py_INCREF(Py_NotImplemented);
36307 return Py_NotImplemented;
36313 PyObject *argv[3] = {
36319 argc = PyObject_Length(args);
36320 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
36321 argv[ii] = PyTuple_GET_ITEM(args,ii);
36368 Py_INCREF(Py_NotImplemented);
36369 return Py_NotImplemented;
36374 PyObject *resultobj = 0;
36381 PyObject * obj0 = 0 ;
36382 PyObject * obj1 = 0 ;
36385 if (!PyArg_UnpackTuple(args,
"IntExpr___rmul__", 2, 2, &obj0, &obj1))
SWIG_fail;
36395 arg2 =
static_cast< int64_t
>(val2);
36408 Py_INCREF(Py_NotImplemented);
36409 return Py_NotImplemented;
36414 PyObject *resultobj = 0;
36421 PyObject * obj0 = 0 ;
36422 PyObject * obj1 = 0 ;
36425 if (!PyArg_UnpackTuple(args,
"IntExpr___floordiv__", 2, 2, &obj0, &obj1))
SWIG_fail;
36435 arg2 =
static_cast< int64_t
>(val2);
36452 PyObject *resultobj = 0;
36459 PyObject * obj0 = 0 ;
36460 PyObject * obj1 = 0 ;
36463 if (!PyArg_UnpackTuple(args,
"IntExpr___floordiv__", 2, 2, &obj0, &obj1))
SWIG_fail;
36491 PyObject *argv[3] = {
36497 argc = PyObject_Length(args);
36498 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
36499 argv[ii] = PyTuple_GET_ITEM(args,ii);
36533 " Possible C/C++ prototypes are:\n"
36534 " operations_research::IntExpr::__floordiv__(int64_t)\n"
36535 " operations_research::IntExpr::__floordiv__(operations_research::IntExpr *)\n");
36541 PyObject *resultobj = 0;
36548 PyObject * obj0 = 0 ;
36549 PyObject * obj1 = 0 ;
36552 if (!PyArg_UnpackTuple(args,
"IntExpr___mod__", 2, 2, &obj0, &obj1))
SWIG_fail;
36562 arg2 =
static_cast< int64_t
>(val2);
36575 Py_INCREF(Py_NotImplemented);
36576 return Py_NotImplemented;
36581 PyObject *resultobj = 0;
36588 PyObject * obj0 = 0 ;
36589 PyObject * obj1 = 0 ;
36592 if (!PyArg_UnpackTuple(args,
"IntExpr___mod__", 2, 2, &obj0, &obj1))
SWIG_fail;
36615 Py_INCREF(Py_NotImplemented);
36616 return Py_NotImplemented;
36622 PyObject *argv[3] = {
36628 argc = PyObject_Length(args);
36629 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
36630 argv[ii] = PyTuple_GET_ITEM(args,ii);
36663 Py_INCREF(Py_NotImplemented);
36664 return Py_NotImplemented;
36669 PyObject *resultobj = 0;
36673 PyObject * obj0 = 0 ;
36676 if (!PyArg_UnpackTuple(args,
"IntExpr___neg__", 1, 1, &obj0))
SWIG_fail;
36694 Py_INCREF(Py_NotImplemented);
36695 return Py_NotImplemented;
36700 PyObject *resultobj = 0;
36704 PyObject * obj0 = 0 ;
36707 if (!PyArg_UnpackTuple(args,
"IntExpr___abs__", 1, 1, &obj0))
SWIG_fail;
36729 PyObject *resultobj = 0;
36733 PyObject * obj0 = 0 ;
36736 if (!PyArg_UnpackTuple(args,
"IntExpr_Square", 1, 1, &obj0))
SWIG_fail;
36758 PyObject *resultobj = 0;
36765 PyObject * obj0 = 0 ;
36766 PyObject * obj1 = 0 ;
36770 if (!PyArg_UnpackTuple(args,
"IntExpr___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
36780 arg2 =
static_cast< int64_t
>(val2);
36792 Py_INCREF(resultobj);
36799 Py_INCREF(Py_NotImplemented);
36800 return Py_NotImplemented;
36805 PyObject *resultobj = 0;
36812 PyObject * obj0 = 0 ;
36813 PyObject * obj1 = 0 ;
36817 if (!PyArg_UnpackTuple(args,
"IntExpr___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
36827 arg2 =
static_cast< int64_t
>(val2);
36839 Py_INCREF(resultobj);
36846 Py_INCREF(Py_NotImplemented);
36847 return Py_NotImplemented;
36852 PyObject *resultobj = 0;
36859 PyObject * obj0 = 0 ;
36860 PyObject * obj1 = 0 ;
36864 if (!PyArg_UnpackTuple(args,
"IntExpr___ge__", 2, 2, &obj0, &obj1))
SWIG_fail;
36874 arg2 =
static_cast< int64_t
>(val2);
36886 Py_INCREF(resultobj);
36893 Py_INCREF(Py_NotImplemented);
36894 return Py_NotImplemented;
36899 PyObject *resultobj = 0;
36906 PyObject * obj0 = 0 ;
36907 PyObject * obj1 = 0 ;
36911 if (!PyArg_UnpackTuple(args,
"IntExpr___gt__", 2, 2, &obj0, &obj1))
SWIG_fail;
36921 arg2 =
static_cast< int64_t
>(val2);
36933 Py_INCREF(resultobj);
36940 Py_INCREF(Py_NotImplemented);
36941 return Py_NotImplemented;
36946 PyObject *resultobj = 0;
36953 PyObject * obj0 = 0 ;
36954 PyObject * obj1 = 0 ;
36958 if (!PyArg_UnpackTuple(args,
"IntExpr___le__", 2, 2, &obj0, &obj1))
SWIG_fail;
36968 arg2 =
static_cast< int64_t
>(val2);
36980 Py_INCREF(resultobj);
36987 Py_INCREF(Py_NotImplemented);
36988 return Py_NotImplemented;
36993 PyObject *resultobj = 0;
37000 PyObject * obj0 = 0 ;
37001 PyObject * obj1 = 0 ;
37005 if (!PyArg_UnpackTuple(args,
"IntExpr___lt__", 2, 2, &obj0, &obj1))
SWIG_fail;
37015 arg2 =
static_cast< int64_t
>(val2);
37027 Py_INCREF(resultobj);
37034 Py_INCREF(Py_NotImplemented);
37035 return Py_NotImplemented;
37040 PyObject *resultobj = 0;
37047 PyObject * obj0 = 0 ;
37048 PyObject * obj1 = 0 ;
37052 if (!PyArg_UnpackTuple(args,
"IntExpr___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
37074 Py_INCREF(resultobj);
37081 Py_INCREF(Py_NotImplemented);
37082 return Py_NotImplemented;
37087 PyObject *resultobj = 0;
37094 PyObject * obj0 = 0 ;
37095 PyObject * obj1 = 0 ;
37099 if (!PyArg_UnpackTuple(args,
"IntExpr___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
37121 Py_INCREF(resultobj);
37128 Py_INCREF(Py_NotImplemented);
37129 return Py_NotImplemented;
37134 PyObject *resultobj = 0;
37141 PyObject * obj0 = 0 ;
37142 PyObject * obj1 = 0 ;
37146 if (!PyArg_UnpackTuple(args,
"IntExpr___ge__", 2, 2, &obj0, &obj1))
SWIG_fail;
37168 Py_INCREF(resultobj);
37175 Py_INCREF(Py_NotImplemented);
37176 return Py_NotImplemented;
37181 PyObject *resultobj = 0;
37188 PyObject * obj0 = 0 ;
37189 PyObject * obj1 = 0 ;
37193 if (!PyArg_UnpackTuple(args,
"IntExpr___gt__", 2, 2, &obj0, &obj1))
SWIG_fail;
37215 Py_INCREF(resultobj);
37222 Py_INCREF(Py_NotImplemented);
37223 return Py_NotImplemented;
37228 PyObject *resultobj = 0;
37235 PyObject * obj0 = 0 ;
37236 PyObject * obj1 = 0 ;
37240 if (!PyArg_UnpackTuple(args,
"IntExpr___le__", 2, 2, &obj0, &obj1))
SWIG_fail;
37262 Py_INCREF(resultobj);
37269 Py_INCREF(Py_NotImplemented);
37270 return Py_NotImplemented;
37275 PyObject *resultobj = 0;
37282 PyObject * obj0 = 0 ;
37283 PyObject * obj1 = 0 ;
37287 if (!PyArg_UnpackTuple(args,
"IntExpr___lt__", 2, 2, &obj0, &obj1))
SWIG_fail;
37309 Py_INCREF(resultobj);
37316 Py_INCREF(Py_NotImplemented);
37317 return Py_NotImplemented;
37322 PyObject *resultobj = 0;
37329 PyObject * obj0 = 0 ;
37330 PyObject * obj1 = 0 ;
37334 if (!PyArg_UnpackTuple(args,
"IntExpr___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
37356 Py_INCREF(resultobj);
37363 Py_INCREF(Py_NotImplemented);
37364 return Py_NotImplemented;
37370 PyObject *argv[3] = {
37376 argc = PyObject_Length(args);
37377 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37378 argv[ii] = PyTuple_GET_ITEM(args,ii);
37425 Py_INCREF(Py_NotImplemented);
37426 return Py_NotImplemented;
37431 PyObject *resultobj = 0;
37438 PyObject * obj0 = 0 ;
37439 PyObject * obj1 = 0 ;
37443 if (!PyArg_UnpackTuple(args,
"IntExpr___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
37465 Py_INCREF(resultobj);
37472 Py_INCREF(Py_NotImplemented);
37473 return Py_NotImplemented;
37479 PyObject *argv[3] = {
37485 argc = PyObject_Length(args);
37486 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37487 argv[ii] = PyTuple_GET_ITEM(args,ii);
37534 Py_INCREF(Py_NotImplemented);
37535 return Py_NotImplemented;
37540 PyObject *resultobj = 0;
37547 PyObject * obj0 = 0 ;
37548 PyObject * obj1 = 0 ;
37552 if (!PyArg_UnpackTuple(args,
"IntExpr___ge__", 2, 2, &obj0, &obj1))
SWIG_fail;
37574 Py_INCREF(resultobj);
37581 Py_INCREF(Py_NotImplemented);
37582 return Py_NotImplemented;
37588 PyObject *argv[3] = {
37594 argc = PyObject_Length(args);
37595 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37596 argv[ii] = PyTuple_GET_ITEM(args,ii);
37643 Py_INCREF(Py_NotImplemented);
37644 return Py_NotImplemented;
37649 PyObject *resultobj = 0;
37656 PyObject * obj0 = 0 ;
37657 PyObject * obj1 = 0 ;
37661 if (!PyArg_UnpackTuple(args,
"IntExpr___gt__", 2, 2, &obj0, &obj1))
SWIG_fail;
37683 Py_INCREF(resultobj);
37690 Py_INCREF(Py_NotImplemented);
37691 return Py_NotImplemented;
37697 PyObject *argv[3] = {
37703 argc = PyObject_Length(args);
37704 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37705 argv[ii] = PyTuple_GET_ITEM(args,ii);
37752 Py_INCREF(Py_NotImplemented);
37753 return Py_NotImplemented;
37758 PyObject *resultobj = 0;
37765 PyObject * obj0 = 0 ;
37766 PyObject * obj1 = 0 ;
37770 if (!PyArg_UnpackTuple(args,
"IntExpr___le__", 2, 2, &obj0, &obj1))
SWIG_fail;
37792 Py_INCREF(resultobj);
37799 Py_INCREF(Py_NotImplemented);
37800 return Py_NotImplemented;
37806 PyObject *argv[3] = {
37812 argc = PyObject_Length(args);
37813 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37814 argv[ii] = PyTuple_GET_ITEM(args,ii);
37861 Py_INCREF(Py_NotImplemented);
37862 return Py_NotImplemented;
37867 PyObject *resultobj = 0;
37874 PyObject * obj0 = 0 ;
37875 PyObject * obj1 = 0 ;
37879 if (!PyArg_UnpackTuple(args,
"IntExpr___lt__", 2, 2, &obj0, &obj1))
SWIG_fail;
37901 Py_INCREF(resultobj);
37908 Py_INCREF(Py_NotImplemented);
37909 return Py_NotImplemented;
37915 PyObject *argv[3] = {
37921 argc = PyObject_Length(args);
37922 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37923 argv[ii] = PyTuple_GET_ITEM(args,ii);
37970 Py_INCREF(Py_NotImplemented);
37971 return Py_NotImplemented;
37976 PyObject *resultobj = 0;
37978 std::vector< operations_research::IntVar * > *arg2 = 0 ;
37981 std::vector< operations_research::IntVar * > temp2 ;
37982 PyObject * obj0 = 0 ;
37983 PyObject * obj1 = 0 ;
37987 if (!PyArg_UnpackTuple(args,
"IntExpr_MapTo", 2, 2, &obj0, &obj1))
SWIG_fail;
37994 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
37995 if (!PyErr_Occurred())
38012 Py_INCREF(resultobj);
38023 PyObject *resultobj = 0;
38025 std::vector< int64_t > *arg2 = 0 ;
38028 std::vector< int64_t > temp2 ;
38029 PyObject * obj0 = 0 ;
38030 PyObject * obj1 = 0 ;
38033 if (!PyArg_UnpackTuple(args,
"IntExpr_IndexOf", 2, 2, &obj0, &obj1))
SWIG_fail;
38040 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38041 if (!PyErr_Occurred())
38063 PyObject *resultobj = 0;
38065 std::vector< operations_research::IntVar * > *arg2 = 0 ;
38068 std::vector< operations_research::IntVar * > temp2 ;
38069 PyObject * obj0 = 0 ;
38070 PyObject * obj1 = 0 ;
38073 if (!PyArg_UnpackTuple(args,
"IntExpr_IndexOf", 2, 2, &obj0, &obj1))
SWIG_fail;
38080 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
38081 if (!PyErr_Occurred())
38104 PyObject *argv[3] = {
38110 argc = PyObject_Length(args);
38111 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
38112 argv[ii] = PyTuple_GET_ITEM(args,ii);
38121 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
38124 const bool is_tuple = PyTuple_Check(argv[1]);
38125 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
38127 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
38128 :PyList_GetItem(argv[1], i))) {
38146 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
38149 const bool is_tuple = PyTuple_Check(argv[1]);
38150 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
38153 :PyList_GetItem(argv[1], i))) {
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");
38175 PyObject *resultobj = 0;
38177 std::vector< int64_t > *arg2 = 0 ;
38180 std::vector< int64_t > temp2 ;
38181 PyObject * obj0 = 0 ;
38182 PyObject * obj1 = 0 ;
38185 if (!PyArg_UnpackTuple(args,
"IntExpr_IsMember", 2, 2, &obj0, &obj1))
SWIG_fail;
38192 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38193 if (!PyErr_Occurred())
38215 PyObject *resultobj = 0;
38217 std::vector< int64_t > *arg2 = 0 ;
38220 std::vector< int64_t > temp2 ;
38221 PyObject * obj0 = 0 ;
38222 PyObject * obj1 = 0 ;
38226 if (!PyArg_UnpackTuple(args,
"IntExpr_Member", 2, 2, &obj0, &obj1))
SWIG_fail;
38233 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38234 if (!PyErr_Occurred())
38251 Py_INCREF(resultobj);
38262 PyObject *resultobj = 0;
38264 std::vector< int64_t > *arg2 = 0 ;
38265 std::vector< int64_t > *arg3 = 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 ;
38276 if (!PyArg_UnpackTuple(args,
"IntExpr_NotMember", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
38283 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38284 if (!PyErr_Occurred())
38291 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
38292 if (!PyErr_Occurred())
38309 Py_INCREF(resultobj);
38327 PyObject *resultobj = 0;
38331 PyObject * obj0 = 0 ;
38333 if (!PyArg_UnpackTuple(args,
"IntVarIterator_Init", 1, 1, &obj0))
SWIG_fail;
38355 PyObject *resultobj = 0;
38359 PyObject * obj0 = 0 ;
38362 if (!PyArg_UnpackTuple(args,
"IntVarIterator_Ok", 1, 1, &obj0))
SWIG_fail;
38365 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarIterator_Ok" "', argument " "1"" of type '" "operations_research::IntVarIterator const *""'");
38384 PyObject *resultobj = 0;
38388 PyObject * obj0 = 0 ;
38391 if (!PyArg_UnpackTuple(args,
"IntVarIterator_Value", 1, 1, &obj0))
SWIG_fail;
38394 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarIterator_Value" "', argument " "1"" of type '" "operations_research::IntVarIterator const *""'");
38413 PyObject *resultobj = 0;
38417 PyObject * obj0 = 0 ;
38419 if (!PyArg_UnpackTuple(args,
"IntVarIterator_Next", 1, 1, &obj0))
SWIG_fail;
38441 PyObject *resultobj = 0;
38445 PyObject * obj0 = 0 ;
38446 std::string result;
38448 if (!PyArg_UnpackTuple(args,
"IntVarIterator_DebugString", 1, 1, &obj0))
SWIG_fail;
38451 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarIterator_DebugString" "', argument " "1"" of type '" "operations_research::IntVarIterator const *""'");
38477 PyObject *resultobj = 0;
38481 PyObject * obj0 = 0 ;
38484 if (!PyArg_UnpackTuple(args,
"IntVar_IsVar", 1, 1, &obj0))
SWIG_fail;
38506 PyObject *resultobj = 0;
38510 PyObject * obj0 = 0 ;
38513 if (!PyArg_UnpackTuple(args,
"IntVar_Var", 1, 1, &obj0))
SWIG_fail;
38535 PyObject *resultobj = 0;
38539 PyObject * obj0 = 0 ;
38542 if (!PyArg_UnpackTuple(args,
"IntVar_Value", 1, 1, &obj0))
SWIG_fail;
38564 PyObject *resultobj = 0;
38571 PyObject * obj0 = 0 ;
38572 PyObject * obj1 = 0 ;
38574 if (!PyArg_UnpackTuple(args,
"IntVar_RemoveValue", 2, 2, &obj0, &obj1))
SWIG_fail;
38584 arg2 =
static_cast< int64_t
>(val2);
38592 (arg1)->RemoveValue(arg2);
38599 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
38611 PyObject *resultobj = 0;
38621 PyObject * obj0 = 0 ;
38622 PyObject * obj1 = 0 ;
38623 PyObject * obj2 = 0 ;
38625 if (!PyArg_UnpackTuple(args,
"IntVar_RemoveInterval", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
38635 arg2 =
static_cast< int64_t
>(val2);
38640 arg3 =
static_cast< int64_t
>(val3);
38643 (arg1)->RemoveInterval(arg2,arg3);
38657 PyObject *resultobj = 0;
38659 std::vector< int64_t > *arg2 = 0 ;
38662 std::vector< int64_t > temp2 ;
38663 PyObject * obj0 = 0 ;
38664 PyObject * obj1 = 0 ;
38666 if (!PyArg_UnpackTuple(args,
"IntVar_RemoveValues", 2, 2, &obj0, &obj1))
SWIG_fail;
38673 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38674 if (!PyErr_Occurred())
38687 (arg1)->RemoveValues((std::vector< int64_t >
const &)*arg2);
38694 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
38706 PyObject *resultobj = 0;
38708 std::vector< int64_t > *arg2 = 0 ;
38711 std::vector< int64_t > temp2 ;
38712 PyObject * obj0 = 0 ;
38713 PyObject * obj1 = 0 ;
38715 if (!PyArg_UnpackTuple(args,
"IntVar_SetValues", 2, 2, &obj0, &obj1))
SWIG_fail;
38722 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38723 if (!PyErr_Occurred())
38731 (arg1)->SetValues((std::vector< int64_t >
const &)*arg2);
38745 PyObject *resultobj = 0;
38752 PyObject * obj0 = 0 ;
38753 PyObject * obj1 = 0 ;
38755 if (!PyArg_UnpackTuple(args,
"IntVar_WhenBound", 2, 2, &obj0, &obj1))
SWIG_fail;
38768 (arg1)->WhenBound(arg2);
38782 PyObject *resultobj = 0;
38787 PyObject * obj0 = 0 ;
38788 PyObject * obj1 = 0 ;
38790 if (!PyArg_UnpackTuple(args,
"IntVar_WhenBound", 2, 2, &obj0, &obj1))
SWIG_fail;
38799 return InvokePythonCallableReturning<void>(
input.get());
38804 (arg1)->WhenBound(arg2);
38819 PyObject *argv[3] = {
38825 argc = PyObject_Length(args);
38826 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
38827 argv[ii] = PyTuple_GET_ITEM(args,ii);
38850 _v = PyCallable_Check(argv[1]);
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");
38868 PyObject *resultobj = 0;
38875 PyObject * obj0 = 0 ;
38876 PyObject * obj1 = 0 ;
38878 if (!PyArg_UnpackTuple(args,
"IntVar_WhenDomain", 2, 2, &obj0, &obj1))
SWIG_fail;
38891 (arg1)->WhenDomain(arg2);
38905 PyObject *resultobj = 0;
38910 PyObject * obj0 = 0 ;
38911 PyObject * obj1 = 0 ;
38913 if (!PyArg_UnpackTuple(args,
"IntVar_WhenDomain", 2, 2, &obj0, &obj1))
SWIG_fail;
38922 return InvokePythonCallableReturning<void>(
input.get());
38927 (arg1)->WhenDomain(arg2);
38942 PyObject *argv[3] = {
38948 argc = PyObject_Length(args);
38949 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
38950 argv[ii] = PyTuple_GET_ITEM(args,ii);
38973 _v = PyCallable_Check(argv[1]);
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");
38991 PyObject *resultobj = 0;
38995 PyObject * obj0 = 0 ;
38998 if (!PyArg_UnpackTuple(args,
"IntVar_Size", 1, 1, &obj0))
SWIG_fail;
39020 PyObject *resultobj = 0;
39027 PyObject * obj0 = 0 ;
39028 PyObject * obj1 = 0 ;
39031 if (!PyArg_UnpackTuple(args,
"IntVar_Contains", 2, 2, &obj0, &obj1))
SWIG_fail;
39041 arg2 =
static_cast< int64_t
>(val2);
39058 PyObject *resultobj = 0;
39065 PyObject * obj0 = 0 ;
39066 PyObject * obj1 = 0 ;
39069 if (!PyArg_UnpackTuple(args,
"IntVar_HoleIteratorAux", 2, 2, &obj0, &obj1))
SWIG_fail;
39079 arg2 =
static_cast< bool >(val2);
39096 PyObject *resultobj = 0;
39103 PyObject * obj0 = 0 ;
39104 PyObject * obj1 = 0 ;
39107 if (!PyArg_UnpackTuple(args,
"IntVar_DomainIteratorAux", 2, 2, &obj0, &obj1))
SWIG_fail;
39110 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVar_DomainIteratorAux" "', argument " "1"" of type '" "operations_research::IntVar const *""'");
39117 arg2 =
static_cast< bool >(val2);
39134 PyObject *resultobj = 0;
39138 PyObject * obj0 = 0 ;
39141 if (!PyArg_UnpackTuple(args,
"IntVar_OldMin", 1, 1, &obj0))
SWIG_fail;
39163 PyObject *resultobj = 0;
39167 PyObject * obj0 = 0 ;
39170 if (!PyArg_UnpackTuple(args,
"IntVar_OldMax", 1, 1, &obj0))
SWIG_fail;
39192 PyObject *resultobj = 0;
39196 PyObject * obj0 = 0 ;
39197 std::string result;
39199 if (!PyArg_UnpackTuple(args,
"IntVar___repr__", 1, 1, &obj0))
SWIG_fail;
39221 PyObject *resultobj = 0;
39225 PyObject * obj0 = 0 ;
39226 std::string result;
39228 if (!PyArg_UnpackTuple(args,
"IntVar___str__", 1, 1, &obj0))
SWIG_fail;
39257 PyObject *resultobj = 0;
39261 PyObject * obj0 = 0 ;
39262 std::string result;
39264 if (!PyArg_UnpackTuple(args,
"SolutionCollector_DebugString", 1, 1, &obj0))
SWIG_fail;
39267 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_DebugString" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39286 PyObject *resultobj = 0;
39291 PyObject * obj0 = 0 ;
39292 PyObject * obj1 = 0 ;
39294 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
39297 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Add" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39319 PyObject *resultobj = 0;
39321 std::vector< operations_research::IntVar * > *arg2 = 0 ;
39324 std::vector< operations_research::IntVar * > temp2 ;
39325 PyObject * obj0 = 0 ;
39326 PyObject * obj1 = 0 ;
39328 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
39331 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Add" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39335 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
39336 if (!PyErr_Occurred())
39344 (arg1)->Add((std::vector< operations_research::IntVar * >
const &)*arg2);
39358 PyObject *resultobj = 0;
39363 PyObject * obj0 = 0 ;
39364 PyObject * obj1 = 0 ;
39366 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
39369 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Add" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39391 PyObject *resultobj = 0;
39393 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
39396 std::vector< operations_research::IntervalVar * > temp2 ;
39397 PyObject * obj0 = 0 ;
39398 PyObject * obj1 = 0 ;
39400 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
39403 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Add" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39407 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
39408 if (!PyErr_Occurred())
39416 (arg1)->Add((std::vector< operations_research::IntervalVar * >
const &)*arg2);
39430 PyObject *resultobj = 0;
39435 PyObject * obj0 = 0 ;
39436 PyObject * obj1 = 0 ;
39438 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
39441 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Add" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39463 PyObject *resultobj = 0;
39465 std::vector< operations_research::SequenceVar * > *arg2 = 0 ;
39468 std::vector< operations_research::SequenceVar * > temp2 ;
39469 PyObject * obj0 = 0 ;
39470 PyObject * obj1 = 0 ;
39472 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
39475 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Add" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39479 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::SequenceVar*>)) {
39480 if (!PyErr_Occurred())
39488 (arg1)->Add((std::vector< operations_research::SequenceVar * >
const &)*arg2);
39503 PyObject *argv[3] = {
39509 argc = PyObject_Length(args);
39510 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
39511 argv[ii] = PyTuple_GET_ITEM(args,ii);
39521 if (_v == 0) PyErr_Clear();
39535 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
39538 const bool is_tuple = PyTuple_Check(argv[1]);
39539 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
39542 :PyList_GetItem(argv[1], i))) {
39561 if (_v == 0) PyErr_Clear();
39575 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
39578 const bool is_tuple = PyTuple_Check(argv[1]);
39579 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
39582 :PyList_GetItem(argv[1], i))) {
39601 if (_v == 0) PyErr_Clear();
39615 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
39618 const bool is_tuple = PyTuple_Check(argv[1]);
39619 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
39622 :PyList_GetItem(argv[1], i))) {
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");
39648 PyObject *resultobj = 0;
39653 PyObject * obj0 = 0 ;
39654 PyObject * obj1 = 0 ;
39656 if (!PyArg_UnpackTuple(args,
"SolutionCollector_AddObjective", 2, 2, &obj0, &obj1))
SWIG_fail;
39659 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_AddObjective" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39667 (arg1)->AddObjective(arg2);
39681 PyObject *resultobj = 0;
39685 PyObject * obj0 = 0 ;
39687 if (!PyArg_UnpackTuple(args,
"SolutionCollector_EnterSearch", 1, 1, &obj0))
SWIG_fail;
39690 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_EnterSearch" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39695 (arg1)->EnterSearch();
39709 PyObject *resultobj = 0;
39713 PyObject * obj0 = 0 ;
39716 if (!PyArg_UnpackTuple(args,
"SolutionCollector_SolutionCount", 1, 1, &obj0))
SWIG_fail;
39719 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_SolutionCount" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39738 PyObject *resultobj = 0;
39745 PyObject * obj0 = 0 ;
39746 PyObject * obj1 = 0 ;
39749 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Solution", 2, 2, &obj0, &obj1))
SWIG_fail;
39752 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Solution" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39759 arg2 =
static_cast< int >(val2);
39776 PyObject *resultobj = 0;
39783 PyObject * obj0 = 0 ;
39784 PyObject * obj1 = 0 ;
39787 if (!PyArg_UnpackTuple(args,
"SolutionCollector_WallTime", 2, 2, &obj0, &obj1))
SWIG_fail;
39790 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_WallTime" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39797 arg2 =
static_cast< int >(val2);
39814 PyObject *resultobj = 0;
39821 PyObject * obj0 = 0 ;
39822 PyObject * obj1 = 0 ;
39825 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Branches", 2, 2, &obj0, &obj1))
SWIG_fail;
39828 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Branches" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39835 arg2 =
static_cast< int >(val2);
39852 PyObject *resultobj = 0;
39859 PyObject * obj0 = 0 ;
39860 PyObject * obj1 = 0 ;
39863 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Failures", 2, 2, &obj0, &obj1))
SWIG_fail;
39866 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Failures" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39873 arg2 =
static_cast< int >(val2);
39890 PyObject *resultobj = 0;
39897 PyObject * obj0 = 0 ;
39898 PyObject * obj1 = 0 ;
39901 if (!PyArg_UnpackTuple(args,
"SolutionCollector_ObjectiveValue", 2, 2, &obj0, &obj1))
SWIG_fail;
39904 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_ObjectiveValue" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39911 arg2 =
static_cast< int >(val2);
39928 PyObject *resultobj = 0;
39936 PyObject * obj0 = 0 ;
39937 PyObject * obj1 = 0 ;
39938 PyObject * obj2 = 0 ;
39941 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Value", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
39944 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Value" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39951 arg2 =
static_cast< int >(val2);
39971 PyObject *resultobj = 0;
39979 PyObject * obj0 = 0 ;
39980 PyObject * obj1 = 0 ;
39981 PyObject * obj2 = 0 ;
39984 if (!PyArg_UnpackTuple(args,
"SolutionCollector_StartValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
39987 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_StartValue" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39994 arg2 =
static_cast< int >(val2);
40014 PyObject *resultobj = 0;
40022 PyObject * obj0 = 0 ;
40023 PyObject * obj1 = 0 ;
40024 PyObject * obj2 = 0 ;
40027 if (!PyArg_UnpackTuple(args,
"SolutionCollector_EndValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
40030 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_EndValue" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
40037 arg2 =
static_cast< int >(val2);
40057 PyObject *resultobj = 0;
40065 PyObject * obj0 = 0 ;
40066 PyObject * obj1 = 0 ;
40067 PyObject * obj2 = 0 ;
40070 if (!PyArg_UnpackTuple(args,
"SolutionCollector_DurationValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
40073 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_DurationValue" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
40080 arg2 =
static_cast< int >(val2);
40100 PyObject *resultobj = 0;
40108 PyObject * obj0 = 0 ;
40109 PyObject * obj1 = 0 ;
40110 PyObject * obj2 = 0 ;
40113 if (!PyArg_UnpackTuple(args,
"SolutionCollector_PerformedValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
40116 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_PerformedValue" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
40123 arg2 =
static_cast< int >(val2);
40143 PyObject *resultobj = 0;
40151 PyObject * obj0 = 0 ;
40152 PyObject * obj1 = 0 ;
40153 PyObject * obj2 = 0 ;
40154 std::vector< int > *result = 0 ;
40156 if (!PyArg_UnpackTuple(args,
"SolutionCollector_ForwardSequence", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
40159 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_ForwardSequence" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
40166 arg2 =
static_cast< int >(val2);
40179 resultobj = vector_output_helper(result, &PyInt_FromLong);
40188 PyObject *resultobj = 0;
40196 PyObject * obj0 = 0 ;
40197 PyObject * obj1 = 0 ;
40198 PyObject * obj2 = 0 ;
40199 std::vector< int > *result = 0 ;
40201 if (!PyArg_UnpackTuple(args,
"SolutionCollector_BackwardSequence", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
40204 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_BackwardSequence" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
40211 arg2 =
static_cast< int >(val2);
40224 resultobj = vector_output_helper(result, &PyInt_FromLong);
40233 PyObject *resultobj = 0;
40241 PyObject * obj0 = 0 ;
40242 PyObject * obj1 = 0 ;
40243 PyObject * obj2 = 0 ;
40244 std::vector< int > *result = 0 ;
40246 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Unperformed", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
40249 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Unperformed" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
40256 arg2 =
static_cast< int >(val2);
40269 resultobj = vector_output_helper(result, &PyInt_FromLong);
40285 PyObject *resultobj = 0;
40289 PyObject * obj0 = 0 ;
40292 if (!PyArg_UnpackTuple(args,
"OptimizeVar_Best", 1, 1, &obj0))
SWIG_fail;
40314 PyObject *resultobj = 0;
40318 PyObject * obj0 = 0 ;
40321 if (!PyArg_UnpackTuple(args,
"OptimizeVar_Var", 1, 1, &obj0))
SWIG_fail;
40343 PyObject *resultobj = 0;
40353 PyObject * obj0 = 0 ;
40354 PyObject * obj1 = 0 ;
40355 PyObject * obj2 = 0 ;
40358 if (!PyArg_UnpackTuple(args,
"OptimizeVar_AcceptDelta", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
40376 result = (bool)(arg1)->AcceptDelta(arg2,arg3);
40390 PyObject *resultobj = 0;
40394 PyObject * obj0 = 0 ;
40396 if (!PyArg_UnpackTuple(args,
"OptimizeVar_EnterSearch", 1, 1, &obj0))
SWIG_fail;
40404 (arg1)->EnterSearch();
40418 PyObject *resultobj = 0;
40423 PyObject * obj0 = 0 ;
40424 PyObject * obj1 = 0 ;
40426 if (!PyArg_UnpackTuple(args,
"OptimizeVar_BeginNextDecision", 2, 2, &obj0, &obj1))
SWIG_fail;
40429 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "OptimizeVar_BeginNextDecision" "', argument " "1"" of type '" "operations_research::OptimizeVar *""'");
40437 (arg1)->BeginNextDecision(arg2);
40451 PyObject *resultobj = 0;
40456 PyObject * obj0 = 0 ;
40457 PyObject * obj1 = 0 ;
40459 if (!PyArg_UnpackTuple(args,
"OptimizeVar_RefuteDecision", 2, 2, &obj0, &obj1))
SWIG_fail;
40462 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "OptimizeVar_RefuteDecision" "', argument " "1"" of type '" "operations_research::OptimizeVar *""'");
40470 (arg1)->RefuteDecision(arg2);
40484 PyObject *resultobj = 0;
40488 PyObject * obj0 = 0 ;
40491 if (!PyArg_UnpackTuple(args,
"OptimizeVar_AtSolution", 1, 1, &obj0))
SWIG_fail;
40513 PyObject *resultobj = 0;
40517 PyObject * obj0 = 0 ;
40520 if (!PyArg_UnpackTuple(args,
"OptimizeVar_AcceptSolution", 1, 1, &obj0))
SWIG_fail;
40523 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "OptimizeVar_AcceptSolution" "', argument " "1"" of type '" "operations_research::OptimizeVar *""'");
40542 PyObject *resultobj = 0;
40546 PyObject * obj0 = 0 ;
40547 std::string result;
40549 if (!PyArg_UnpackTuple(args,
"OptimizeVar_DebugString", 1, 1, &obj0))
SWIG_fail;
40552 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "OptimizeVar_DebugString" "', argument " "1"" of type '" "operations_research::OptimizeVar const *""'");
40578 PyObject *resultobj = 0;
40582 PyObject * obj0 = 0 ;
40584 if (!PyArg_UnpackTuple(args,
"delete_SearchLimit", 1, 1, &obj0))
SWIG_fail;
40606 PyObject *resultobj = 0;
40610 PyObject * obj0 = 0 ;
40613 if (!PyArg_UnpackTuple(args,
"SearchLimit_Crossed", 1, 1, &obj0))
SWIG_fail;
40616 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchLimit_Crossed" "', argument " "1"" of type '" "operations_research::SearchLimit const *""'");
40635 PyObject *resultobj = 0;
40639 PyObject * obj0 = 0 ;
40642 if (!PyArg_UnpackTuple(args,
"SearchLimit_Check", 1, 1, &obj0))
SWIG_fail;
40650 result = (bool)(arg1)->
Check();
40664 PyObject *resultobj = 0;
40668 PyObject * obj0 = 0 ;
40670 if (!PyArg_UnpackTuple(args,
"SearchLimit_Init", 1, 1, &obj0))
SWIG_fail;
40692 PyObject *resultobj = 0;
40696 PyObject * obj0 = 0 ;
40698 if (!PyArg_UnpackTuple(args,
"SearchLimit_EnterSearch", 1, 1, &obj0))
SWIG_fail;
40706 (arg1)->EnterSearch();
40720 PyObject *resultobj = 0;
40725 PyObject * obj0 = 0 ;
40726 PyObject * obj1 = 0 ;
40728 if (!PyArg_UnpackTuple(args,
"SearchLimit_BeginNextDecision", 2, 2, &obj0, &obj1))
SWIG_fail;
40731 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchLimit_BeginNextDecision" "', argument " "1"" of type '" "operations_research::SearchLimit *""'");
40739 (arg1)->BeginNextDecision(arg2);
40753 PyObject *resultobj = 0;
40758 PyObject * obj0 = 0 ;
40759 PyObject * obj1 = 0 ;
40761 if (!PyArg_UnpackTuple(args,
"SearchLimit_RefuteDecision", 2, 2, &obj0, &obj1))
SWIG_fail;
40764 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchLimit_RefuteDecision" "', argument " "1"" of type '" "operations_research::SearchLimit *""'");
40772 (arg1)->RefuteDecision(arg2);
40786 PyObject *resultobj = 0;
40790 PyObject * obj0 = 0 ;
40791 std::string result;
40793 if (!PyArg_UnpackTuple(args,
"SearchLimit_DebugString", 1, 1, &obj0))
SWIG_fail;
40796 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchLimit_DebugString" "', argument " "1"" of type '" "operations_research::SearchLimit const *""'");
40822 PyObject *resultobj = 0;
40826 PyObject * obj0 = 0 ;
40829 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartMin", 1, 1, &obj0))
SWIG_fail;
40832 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
40851 PyObject *resultobj = 0;
40855 PyObject * obj0 = 0 ;
40858 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartMax", 1, 1, &obj0))
SWIG_fail;
40861 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
40880 PyObject *resultobj = 0;
40887 PyObject * obj0 = 0 ;
40888 PyObject * obj1 = 0 ;
40890 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetStartMin", 2, 2, &obj0, &obj1))
SWIG_fail;
40900 arg2 =
static_cast< int64_t
>(val2);
40908 (arg1)->SetStartMin(arg2);
40915 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
40927 PyObject *resultobj = 0;
40934 PyObject * obj0 = 0 ;
40935 PyObject * obj1 = 0 ;
40937 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetStartMax", 2, 2, &obj0, &obj1))
SWIG_fail;
40947 arg2 =
static_cast< int64_t
>(val2);
40955 (arg1)->SetStartMax(arg2);
40962 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
40974 PyObject *resultobj = 0;
40984 PyObject * obj0 = 0 ;
40985 PyObject * obj1 = 0 ;
40986 PyObject * obj2 = 0 ;
40988 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetStartRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
40991 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_SetStartRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
40998 arg2 =
static_cast< int64_t
>(val2);
41003 arg3 =
static_cast< int64_t
>(val3);
41011 (arg1)->SetStartRange(arg2,arg3);
41018 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
41030 PyObject *resultobj = 0;
41034 PyObject * obj0 = 0 ;
41037 if (!PyArg_UnpackTuple(args,
"IntervalVar_OldStartMin", 1, 1, &obj0))
SWIG_fail;
41040 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_OldStartMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41059 PyObject *resultobj = 0;
41063 PyObject * obj0 = 0 ;
41066 if (!PyArg_UnpackTuple(args,
"IntervalVar_OldStartMax", 1, 1, &obj0))
SWIG_fail;
41069 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_OldStartMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41088 PyObject *resultobj = 0;
41095 PyObject * obj0 = 0 ;
41096 PyObject * obj1 = 0 ;
41098 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenStartRange", 2, 2, &obj0, &obj1))
SWIG_fail;
41101 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenStartRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41106 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_WhenStartRange" "', argument " "2"" of type '" "operations_research::Demon *const""'");
41111 (arg1)->WhenStartRange(arg2);
41125 PyObject *resultobj = 0;
41130 PyObject * obj0 = 0 ;
41131 PyObject * obj1 = 0 ;
41133 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenStartRange", 2, 2, &obj0, &obj1))
SWIG_fail;
41136 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenStartRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41142 return InvokePythonCallableReturning<void>(
input.get());
41147 (arg1)->WhenStartRange(arg2);
41162 PyObject *argv[3] = {
41168 argc = PyObject_Length(args);
41169 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
41170 argv[ii] = PyTuple_GET_ITEM(args,ii);
41193 _v = PyCallable_Check(argv[1]);
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");
41211 PyObject *resultobj = 0;
41218 PyObject * obj0 = 0 ;
41219 PyObject * obj1 = 0 ;
41221 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenStartBound", 2, 2, &obj0, &obj1))
SWIG_fail;
41224 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenStartBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41229 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_WhenStartBound" "', argument " "2"" of type '" "operations_research::Demon *const""'");
41234 (arg1)->WhenStartBound(arg2);
41248 PyObject *resultobj = 0;
41253 PyObject * obj0 = 0 ;
41254 PyObject * obj1 = 0 ;
41256 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenStartBound", 2, 2, &obj0, &obj1))
SWIG_fail;
41259 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenStartBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41265 return InvokePythonCallableReturning<void>(
input.get());
41270 (arg1)->WhenStartBound(arg2);
41285 PyObject *argv[3] = {
41291 argc = PyObject_Length(args);
41292 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
41293 argv[ii] = PyTuple_GET_ITEM(args,ii);
41316 _v = PyCallable_Check(argv[1]);
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");
41334 PyObject *resultobj = 0;
41338 PyObject * obj0 = 0 ;
41341 if (!PyArg_UnpackTuple(args,
"IntervalVar_DurationMin", 1, 1, &obj0))
SWIG_fail;
41344 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_DurationMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41363 PyObject *resultobj = 0;
41367 PyObject * obj0 = 0 ;
41370 if (!PyArg_UnpackTuple(args,
"IntervalVar_DurationMax", 1, 1, &obj0))
SWIG_fail;
41373 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_DurationMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41392 PyObject *resultobj = 0;
41399 PyObject * obj0 = 0 ;
41400 PyObject * obj1 = 0 ;
41402 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetDurationMin", 2, 2, &obj0, &obj1))
SWIG_fail;
41405 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_SetDurationMin" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41412 arg2 =
static_cast< int64_t
>(val2);
41420 (arg1)->SetDurationMin(arg2);
41427 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
41439 PyObject *resultobj = 0;
41446 PyObject * obj0 = 0 ;
41447 PyObject * obj1 = 0 ;
41449 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetDurationMax", 2, 2, &obj0, &obj1))
SWIG_fail;
41452 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_SetDurationMax" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41459 arg2 =
static_cast< int64_t
>(val2);
41467 (arg1)->SetDurationMax(arg2);
41474 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
41486 PyObject *resultobj = 0;
41496 PyObject * obj0 = 0 ;
41497 PyObject * obj1 = 0 ;
41498 PyObject * obj2 = 0 ;
41500 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetDurationRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
41503 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_SetDurationRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41510 arg2 =
static_cast< int64_t
>(val2);
41515 arg3 =
static_cast< int64_t
>(val3);
41523 (arg1)->SetDurationRange(arg2,arg3);
41530 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
41542 PyObject *resultobj = 0;
41546 PyObject * obj0 = 0 ;
41549 if (!PyArg_UnpackTuple(args,
"IntervalVar_OldDurationMin", 1, 1, &obj0))
SWIG_fail;
41552 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_OldDurationMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41571 PyObject *resultobj = 0;
41575 PyObject * obj0 = 0 ;
41578 if (!PyArg_UnpackTuple(args,
"IntervalVar_OldDurationMax", 1, 1, &obj0))
SWIG_fail;
41581 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_OldDurationMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41600 PyObject *resultobj = 0;
41607 PyObject * obj0 = 0 ;
41608 PyObject * obj1 = 0 ;
41610 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenDurationRange", 2, 2, &obj0, &obj1))
SWIG_fail;
41613 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenDurationRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41618 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_WhenDurationRange" "', argument " "2"" of type '" "operations_research::Demon *const""'");
41623 (arg1)->WhenDurationRange(arg2);
41637 PyObject *resultobj = 0;
41642 PyObject * obj0 = 0 ;
41643 PyObject * obj1 = 0 ;
41645 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenDurationRange", 2, 2, &obj0, &obj1))
SWIG_fail;
41648 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenDurationRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41654 return InvokePythonCallableReturning<void>(
input.get());
41659 (arg1)->WhenDurationRange(arg2);
41674 PyObject *argv[3] = {
41680 argc = PyObject_Length(args);
41681 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
41682 argv[ii] = PyTuple_GET_ITEM(args,ii);
41705 _v = PyCallable_Check(argv[1]);
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");
41723 PyObject *resultobj = 0;
41730 PyObject * obj0 = 0 ;
41731 PyObject * obj1 = 0 ;
41733 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenDurationBound", 2, 2, &obj0, &obj1))
SWIG_fail;
41736 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenDurationBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41741 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_WhenDurationBound" "', argument " "2"" of type '" "operations_research::Demon *const""'");
41746 (arg1)->WhenDurationBound(arg2);
41760 PyObject *resultobj = 0;
41765 PyObject * obj0 = 0 ;
41766 PyObject * obj1 = 0 ;
41768 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenDurationBound", 2, 2, &obj0, &obj1))
SWIG_fail;
41771 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenDurationBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41777 return InvokePythonCallableReturning<void>(
input.get());
41782 (arg1)->WhenDurationBound(arg2);
41797 PyObject *argv[3] = {
41803 argc = PyObject_Length(args);
41804 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
41805 argv[ii] = PyTuple_GET_ITEM(args,ii);
41828 _v = PyCallable_Check(argv[1]);
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");
41846 PyObject *resultobj = 0;
41850 PyObject * obj0 = 0 ;
41853 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndMin", 1, 1, &obj0))
SWIG_fail;
41856 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_EndMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41875 PyObject *resultobj = 0;
41879 PyObject * obj0 = 0 ;
41882 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndMax", 1, 1, &obj0))
SWIG_fail;
41885 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_EndMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41904 PyObject *resultobj = 0;
41911 PyObject * obj0 = 0 ;
41912 PyObject * obj1 = 0 ;
41914 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetEndMin", 2, 2, &obj0, &obj1))
SWIG_fail;
41924 arg2 =
static_cast< int64_t
>(val2);
41932 (arg1)->SetEndMin(arg2);
41939 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
41951 PyObject *resultobj = 0;
41958 PyObject * obj0 = 0 ;
41959 PyObject * obj1 = 0 ;
41961 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetEndMax", 2, 2, &obj0, &obj1))
SWIG_fail;
41971 arg2 =
static_cast< int64_t
>(val2);
41979 (arg1)->SetEndMax(arg2);
41986 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
41998 PyObject *resultobj = 0;
42008 PyObject * obj0 = 0 ;
42009 PyObject * obj1 = 0 ;
42010 PyObject * obj2 = 0 ;
42012 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetEndRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
42022 arg2 =
static_cast< int64_t
>(val2);
42027 arg3 =
static_cast< int64_t
>(val3);
42035 (arg1)->SetEndRange(arg2,arg3);
42042 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
42054 PyObject *resultobj = 0;
42058 PyObject * obj0 = 0 ;
42061 if (!PyArg_UnpackTuple(args,
"IntervalVar_OldEndMin", 1, 1, &obj0))
SWIG_fail;
42064 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_OldEndMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42083 PyObject *resultobj = 0;
42087 PyObject * obj0 = 0 ;
42090 if (!PyArg_UnpackTuple(args,
"IntervalVar_OldEndMax", 1, 1, &obj0))
SWIG_fail;
42093 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_OldEndMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42112 PyObject *resultobj = 0;
42119 PyObject * obj0 = 0 ;
42120 PyObject * obj1 = 0 ;
42122 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenEndRange", 2, 2, &obj0, &obj1))
SWIG_fail;
42125 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenEndRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42135 (arg1)->WhenEndRange(arg2);
42149 PyObject *resultobj = 0;
42154 PyObject * obj0 = 0 ;
42155 PyObject * obj1 = 0 ;
42157 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenEndRange", 2, 2, &obj0, &obj1))
SWIG_fail;
42160 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenEndRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42166 return InvokePythonCallableReturning<void>(
input.get());
42171 (arg1)->WhenEndRange(arg2);
42186 PyObject *argv[3] = {
42192 argc = PyObject_Length(args);
42193 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
42194 argv[ii] = PyTuple_GET_ITEM(args,ii);
42217 _v = PyCallable_Check(argv[1]);
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");
42235 PyObject *resultobj = 0;
42242 PyObject * obj0 = 0 ;
42243 PyObject * obj1 = 0 ;
42245 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenEndBound", 2, 2, &obj0, &obj1))
SWIG_fail;
42248 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenEndBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42258 (arg1)->WhenEndBound(arg2);
42272 PyObject *resultobj = 0;
42277 PyObject * obj0 = 0 ;
42278 PyObject * obj1 = 0 ;
42280 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenEndBound", 2, 2, &obj0, &obj1))
SWIG_fail;
42283 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenEndBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42289 return InvokePythonCallableReturning<void>(
input.get());
42294 (arg1)->WhenEndBound(arg2);
42309 PyObject *argv[3] = {
42315 argc = PyObject_Length(args);
42316 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
42317 argv[ii] = PyTuple_GET_ITEM(args,ii);
42340 _v = PyCallable_Check(argv[1]);
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");
42358 PyObject *resultobj = 0;
42362 PyObject * obj0 = 0 ;
42365 if (!PyArg_UnpackTuple(args,
"IntervalVar_MustBePerformed", 1, 1, &obj0))
SWIG_fail;
42368 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_MustBePerformed" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42387 PyObject *resultobj = 0;
42391 PyObject * obj0 = 0 ;
42394 if (!PyArg_UnpackTuple(args,
"IntervalVar_MayBePerformed", 1, 1, &obj0))
SWIG_fail;
42397 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_MayBePerformed" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42416 PyObject *resultobj = 0;
42420 PyObject * obj0 = 0 ;
42423 if (!PyArg_UnpackTuple(args,
"IntervalVar_CannotBePerformed", 1, 1, &obj0))
SWIG_fail;
42426 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_CannotBePerformed" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42445 PyObject *resultobj = 0;
42449 PyObject * obj0 = 0 ;
42452 if (!PyArg_UnpackTuple(args,
"IntervalVar_IsPerformedBound", 1, 1, &obj0))
SWIG_fail;
42455 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_IsPerformedBound" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42474 PyObject *resultobj = 0;
42481 PyObject * obj0 = 0 ;
42482 PyObject * obj1 = 0 ;
42484 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetPerformed", 2, 2, &obj0, &obj1))
SWIG_fail;
42487 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_SetPerformed" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42494 arg2 =
static_cast< bool >(val2);
42502 (arg1)->SetPerformed(arg2);
42509 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
42521 PyObject *resultobj = 0;
42525 PyObject * obj0 = 0 ;
42528 if (!PyArg_UnpackTuple(args,
"IntervalVar_WasPerformedBound", 1, 1, &obj0))
SWIG_fail;
42531 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WasPerformedBound" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42550 PyObject *resultobj = 0;
42557 PyObject * obj0 = 0 ;
42558 PyObject * obj1 = 0 ;
42560 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenPerformedBound", 2, 2, &obj0, &obj1))
SWIG_fail;
42563 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenPerformedBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42568 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_WhenPerformedBound" "', argument " "2"" of type '" "operations_research::Demon *const""'");
42573 (arg1)->WhenPerformedBound(arg2);
42587 PyObject *resultobj = 0;
42592 PyObject * obj0 = 0 ;
42593 PyObject * obj1 = 0 ;
42595 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenPerformedBound", 2, 2, &obj0, &obj1))
SWIG_fail;
42598 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenPerformedBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42604 return InvokePythonCallableReturning<void>(
input.get());
42609 (arg1)->WhenPerformedBound(arg2);
42624 PyObject *argv[3] = {
42630 argc = PyObject_Length(args);
42631 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
42632 argv[ii] = PyTuple_GET_ITEM(args,ii);
42655 _v = PyCallable_Check(argv[1]);
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");
42673 PyObject *resultobj = 0;
42680 PyObject * obj0 = 0 ;
42681 PyObject * obj1 = 0 ;
42683 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenAnything", 2, 2, &obj0, &obj1))
SWIG_fail;
42686 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenAnything" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42696 (arg1)->WhenAnything(arg2);
42710 PyObject *resultobj = 0;
42715 PyObject * obj0 = 0 ;
42716 PyObject * obj1 = 0 ;
42718 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenAnything", 2, 2, &obj0, &obj1))
SWIG_fail;
42721 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenAnything" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42727 return InvokePythonCallableReturning<void>(
input.get());
42732 (arg1)->WhenAnything(arg2);
42747 PyObject *argv[3] = {
42753 argc = PyObject_Length(args);
42754 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
42755 argv[ii] = PyTuple_GET_ITEM(args,ii);
42778 _v = PyCallable_Check(argv[1]);
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");
42796 PyObject *resultobj = 0;
42800 PyObject * obj0 = 0 ;
42803 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartExpr", 1, 1, &obj0))
SWIG_fail;
42825 PyObject *resultobj = 0;
42829 PyObject * obj0 = 0 ;
42832 if (!PyArg_UnpackTuple(args,
"IntervalVar_DurationExpr", 1, 1, &obj0))
SWIG_fail;
42835 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_DurationExpr" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42854 PyObject *resultobj = 0;
42858 PyObject * obj0 = 0 ;
42861 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndExpr", 1, 1, &obj0))
SWIG_fail;
42883 PyObject *resultobj = 0;
42887 PyObject * obj0 = 0 ;
42890 if (!PyArg_UnpackTuple(args,
"IntervalVar_PerformedExpr", 1, 1, &obj0))
SWIG_fail;
42893 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_PerformedExpr" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42912 PyObject *resultobj = 0;
42919 PyObject * obj0 = 0 ;
42920 PyObject * obj1 = 0 ;
42923 if (!PyArg_UnpackTuple(args,
"IntervalVar_SafeStartExpr", 2, 2, &obj0, &obj1))
SWIG_fail;
42926 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_SafeStartExpr" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42933 arg2 =
static_cast< int64_t
>(val2);
42950 PyObject *resultobj = 0;
42957 PyObject * obj0 = 0 ;
42958 PyObject * obj1 = 0 ;
42961 if (!PyArg_UnpackTuple(args,
"IntervalVar_SafeDurationExpr", 2, 2, &obj0, &obj1))
SWIG_fail;
42964 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_SafeDurationExpr" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42971 arg2 =
static_cast< int64_t
>(val2);
42988 PyObject *resultobj = 0;
42995 PyObject * obj0 = 0 ;
42996 PyObject * obj1 = 0 ;
42999 if (!PyArg_UnpackTuple(args,
"IntervalVar_SafeEndExpr", 2, 2, &obj0, &obj1))
SWIG_fail;
43009 arg2 =
static_cast< int64_t
>(val2);
43026 PyObject *resultobj = 0;
43033 PyObject * obj0 = 0 ;
43034 PyObject * obj1 = 0 ;
43038 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAfterEnd", 2, 2, &obj0, &obj1))
SWIG_fail;
43041 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_EndsAfterEnd" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43046 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_EndsAfterEnd" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43060 Py_INCREF(resultobj);
43071 PyObject *resultobj = 0;
43081 PyObject * obj0 = 0 ;
43082 PyObject * obj1 = 0 ;
43083 PyObject * obj2 = 0 ;
43087 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAfterEndWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43090 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_EndsAfterEndWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43095 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_EndsAfterEndWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43102 arg3 =
static_cast< int64_t
>(val3);
43114 Py_INCREF(resultobj);
43125 PyObject *resultobj = 0;
43132 PyObject * obj0 = 0 ;
43133 PyObject * obj1 = 0 ;
43137 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAfterStart", 2, 2, &obj0, &obj1))
SWIG_fail;
43140 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_EndsAfterStart" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43145 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_EndsAfterStart" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43159 Py_INCREF(resultobj);
43170 PyObject *resultobj = 0;
43180 PyObject * obj0 = 0 ;
43181 PyObject * obj1 = 0 ;
43182 PyObject * obj2 = 0 ;
43186 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAfterStartWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43189 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_EndsAfterStartWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43194 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_EndsAfterStartWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43201 arg3 =
static_cast< int64_t
>(val3);
43213 Py_INCREF(resultobj);
43224 PyObject *resultobj = 0;
43231 PyObject * obj0 = 0 ;
43232 PyObject * obj1 = 0 ;
43236 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAtEnd", 2, 2, &obj0, &obj1))
SWIG_fail;
43258 Py_INCREF(resultobj);
43269 PyObject *resultobj = 0;
43279 PyObject * obj0 = 0 ;
43280 PyObject * obj1 = 0 ;
43281 PyObject * obj2 = 0 ;
43285 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAtEndWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43288 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_EndsAtEndWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43293 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_EndsAtEndWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43300 arg3 =
static_cast< int64_t
>(val3);
43312 Py_INCREF(resultobj);
43323 PyObject *resultobj = 0;
43330 PyObject * obj0 = 0 ;
43331 PyObject * obj1 = 0 ;
43335 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAtStart", 2, 2, &obj0, &obj1))
SWIG_fail;
43357 Py_INCREF(resultobj);
43368 PyObject *resultobj = 0;
43378 PyObject * obj0 = 0 ;
43379 PyObject * obj1 = 0 ;
43380 PyObject * obj2 = 0 ;
43384 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAtStartWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43387 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_EndsAtStartWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43392 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_EndsAtStartWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43399 arg3 =
static_cast< int64_t
>(val3);
43411 Py_INCREF(resultobj);
43422 PyObject *resultobj = 0;
43429 PyObject * obj0 = 0 ;
43430 PyObject * obj1 = 0 ;
43434 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAfterEnd", 2, 2, &obj0, &obj1))
SWIG_fail;
43437 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartsAfterEnd" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43442 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_StartsAfterEnd" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43456 Py_INCREF(resultobj);
43467 PyObject *resultobj = 0;
43477 PyObject * obj0 = 0 ;
43478 PyObject * obj1 = 0 ;
43479 PyObject * obj2 = 0 ;
43483 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAfterEndWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43486 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartsAfterEndWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43491 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_StartsAfterEndWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43498 arg3 =
static_cast< int64_t
>(val3);
43510 Py_INCREF(resultobj);
43521 PyObject *resultobj = 0;
43528 PyObject * obj0 = 0 ;
43529 PyObject * obj1 = 0 ;
43533 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAfterStart", 2, 2, &obj0, &obj1))
SWIG_fail;
43536 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartsAfterStart" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43541 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_StartsAfterStart" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43555 Py_INCREF(resultobj);
43566 PyObject *resultobj = 0;
43576 PyObject * obj0 = 0 ;
43577 PyObject * obj1 = 0 ;
43578 PyObject * obj2 = 0 ;
43582 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAfterStartWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43585 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartsAfterStartWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43590 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_StartsAfterStartWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43597 arg3 =
static_cast< int64_t
>(val3);
43609 Py_INCREF(resultobj);
43620 PyObject *resultobj = 0;
43627 PyObject * obj0 = 0 ;
43628 PyObject * obj1 = 0 ;
43632 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAtEnd", 2, 2, &obj0, &obj1))
SWIG_fail;
43654 Py_INCREF(resultobj);
43665 PyObject *resultobj = 0;
43675 PyObject * obj0 = 0 ;
43676 PyObject * obj1 = 0 ;
43677 PyObject * obj2 = 0 ;
43681 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAtEndWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43684 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartsAtEndWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43689 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_StartsAtEndWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43696 arg3 =
static_cast< int64_t
>(val3);
43708 Py_INCREF(resultobj);
43719 PyObject *resultobj = 0;
43726 PyObject * obj0 = 0 ;
43727 PyObject * obj1 = 0 ;
43731 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAtStart", 2, 2, &obj0, &obj1))
SWIG_fail;
43734 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartsAtStart" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43739 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_StartsAtStart" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43753 Py_INCREF(resultobj);
43764 PyObject *resultobj = 0;
43774 PyObject * obj0 = 0 ;
43775 PyObject * obj1 = 0 ;
43776 PyObject * obj2 = 0 ;
43780 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAtStartWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43783 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartsAtStartWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43788 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_StartsAtStartWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43795 arg3 =
static_cast< int64_t
>(val3);
43807 Py_INCREF(resultobj);
43818 PyObject *resultobj = 0;
43825 PyObject * obj0 = 0 ;
43826 PyObject * obj1 = 0 ;
43830 if (!PyArg_UnpackTuple(args,
"IntervalVar_StaysInSync", 2, 2, &obj0, &obj1))
SWIG_fail;
43852 Py_INCREF(resultobj);
43863 PyObject *resultobj = 0;
43873 PyObject * obj0 = 0 ;
43874 PyObject * obj1 = 0 ;
43875 PyObject * obj2 = 0 ;
43879 if (!PyArg_UnpackTuple(args,
"IntervalVar_StaysInSyncWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43882 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StaysInSyncWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43887 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_StaysInSyncWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43894 arg3 =
static_cast< int64_t
>(val3);
43906 Py_INCREF(resultobj);
43917 PyObject *resultobj = 0;
43924 PyObject * obj0 = 0 ;
43925 PyObject * obj1 = 0 ;
43929 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAfter", 2, 2, &obj0, &obj1))
SWIG_fail;
43939 arg2 =
static_cast< int64_t
>(val2);
43951 Py_INCREF(resultobj);
43962 PyObject *resultobj = 0;
43969 PyObject * obj0 = 0 ;
43970 PyObject * obj1 = 0 ;
43974 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAt", 2, 2, &obj0, &obj1))
SWIG_fail;
43984 arg2 =
static_cast< int64_t
>(val2);
43996 Py_INCREF(resultobj);
44007 PyObject *resultobj = 0;
44014 PyObject * obj0 = 0 ;
44015 PyObject * obj1 = 0 ;
44019 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsBefore", 2, 2, &obj0, &obj1))
SWIG_fail;
44029 arg2 =
static_cast< int64_t
>(val2);
44041 Py_INCREF(resultobj);
44052 PyObject *resultobj = 0;
44059 PyObject * obj0 = 0 ;
44060 PyObject * obj1 = 0 ;
44064 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAfter", 2, 2, &obj0, &obj1))
SWIG_fail;
44074 arg2 =
static_cast< int64_t
>(val2);
44086 Py_INCREF(resultobj);
44097 PyObject *resultobj = 0;
44104 PyObject * obj0 = 0 ;
44105 PyObject * obj1 = 0 ;
44109 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAt", 2, 2, &obj0, &obj1))
SWIG_fail;
44119 arg2 =
static_cast< int64_t
>(val2);
44131 Py_INCREF(resultobj);
44142 PyObject *resultobj = 0;
44149 PyObject * obj0 = 0 ;
44150 PyObject * obj1 = 0 ;
44154 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsBefore", 2, 2, &obj0, &obj1))
SWIG_fail;
44157 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartsBefore" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
44164 arg2 =
static_cast< int64_t
>(val2);
44176 Py_INCREF(resultobj);
44187 PyObject *resultobj = 0;
44194 PyObject * obj0 = 0 ;
44195 PyObject * obj1 = 0 ;
44199 if (!PyArg_UnpackTuple(args,
"IntervalVar_CrossesDate", 2, 2, &obj0, &obj1))
SWIG_fail;
44209 arg2 =
static_cast< int64_t
>(val2);
44221 Py_INCREF(resultobj);
44232 PyObject *resultobj = 0;
44239 PyObject * obj0 = 0 ;
44240 PyObject * obj1 = 0 ;
44244 if (!PyArg_UnpackTuple(args,
"IntervalVar_AvoidsDate", 2, 2, &obj0, &obj1))
SWIG_fail;
44254 arg2 =
static_cast< int64_t
>(val2);
44266 Py_INCREF(resultobj);
44277 PyObject *resultobj = 0;
44281 PyObject * obj0 = 0 ;
44282 std::string result;
44284 if (!PyArg_UnpackTuple(args,
"IntervalVar___repr__", 1, 1, &obj0))
SWIG_fail;
44306 PyObject *resultobj = 0;
44310 PyObject * obj0 = 0 ;
44311 std::string result;
44313 if (!PyArg_UnpackTuple(args,
"IntervalVar___str__", 1, 1, &obj0))
SWIG_fail;
44342 PyObject *resultobj = 0;
44346 PyObject * obj0 = 0 ;
44347 std::string result;
44349 if (!PyArg_UnpackTuple(args,
"SequenceVar_DebugString", 1, 1, &obj0))
SWIG_fail;
44352 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVar_DebugString" "', argument " "1"" of type '" "operations_research::SequenceVar const *""'");
44371 PyObject *resultobj = 0;
44378 PyObject * obj0 = 0 ;
44379 PyObject * obj1 = 0 ;
44381 if (!PyArg_UnpackTuple(args,
"SequenceVar_RankFirst", 2, 2, &obj0, &obj1))
SWIG_fail;
44391 arg2 =
static_cast< int >(val2);
44394 (arg1)->RankFirst(arg2);
44408 PyObject *resultobj = 0;
44415 PyObject * obj0 = 0 ;
44416 PyObject * obj1 = 0 ;
44418 if (!PyArg_UnpackTuple(args,
"SequenceVar_RankNotFirst", 2, 2, &obj0, &obj1))
SWIG_fail;
44421 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVar_RankNotFirst" "', argument " "1"" of type '" "operations_research::SequenceVar *""'");
44428 arg2 =
static_cast< int >(val2);
44431 (arg1)->RankNotFirst(arg2);
44445 PyObject *resultobj = 0;
44452 PyObject * obj0 = 0 ;
44453 PyObject * obj1 = 0 ;
44455 if (!PyArg_UnpackTuple(args,
"SequenceVar_RankLast", 2, 2, &obj0, &obj1))
SWIG_fail;
44465 arg2 =
static_cast< int >(val2);
44468 (arg1)->RankLast(arg2);
44482 PyObject *resultobj = 0;
44489 PyObject * obj0 = 0 ;
44490 PyObject * obj1 = 0 ;
44492 if (!PyArg_UnpackTuple(args,
"SequenceVar_RankNotLast", 2, 2, &obj0, &obj1))
SWIG_fail;
44502 arg2 =
static_cast< int >(val2);
44505 (arg1)->RankNotLast(arg2);
44519 PyObject *resultobj = 0;
44526 PyObject * obj0 = 0 ;
44527 PyObject * obj1 = 0 ;
44530 if (!PyArg_UnpackTuple(args,
"SequenceVar_Interval", 2, 2, &obj0, &obj1))
SWIG_fail;
44533 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVar_Interval" "', argument " "1"" of type '" "operations_research::SequenceVar const *""'");
44540 arg2 =
static_cast< int >(val2);
44557 PyObject *resultobj = 0;
44564 PyObject * obj0 = 0 ;
44565 PyObject * obj1 = 0 ;
44568 if (!PyArg_UnpackTuple(args,
"SequenceVar_Next", 2, 2, &obj0, &obj1))
SWIG_fail;
44578 arg2 =
static_cast< int >(val2);
44595 PyObject *resultobj = 0;
44599 PyObject * obj0 = 0 ;
44602 if (!PyArg_UnpackTuple(args,
"SequenceVar_Size", 1, 1, &obj0))
SWIG_fail;
44624 PyObject *resultobj = 0;
44628 PyObject * obj0 = 0 ;
44629 std::string result;
44631 if (!PyArg_UnpackTuple(args,
"SequenceVar___repr__", 1, 1, &obj0))
SWIG_fail;
44653 PyObject *resultobj = 0;
44657 PyObject * obj0 = 0 ;
44658 std::string result;
44660 if (!PyArg_UnpackTuple(args,
"SequenceVar___str__", 1, 1, &obj0))
SWIG_fail;
44689 PyObject *resultobj = 0;
44693 PyObject * obj0 = 0 ;
44695 if (!PyArg_UnpackTuple(args,
"AssignmentElement_Activate", 1, 1, &obj0))
SWIG_fail;
44698 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "AssignmentElement_Activate" "', argument " "1"" of type '" "operations_research::AssignmentElement *""'");
44703 (arg1)->Activate();
44717 PyObject *resultobj = 0;
44721 PyObject * obj0 = 0 ;
44723 if (!PyArg_UnpackTuple(args,
"AssignmentElement_Deactivate", 1, 1, &obj0))
SWIG_fail;
44726 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "AssignmentElement_Deactivate" "', argument " "1"" of type '" "operations_research::AssignmentElement *""'");
44731 (arg1)->Deactivate();
44745 PyObject *resultobj = 0;
44749 PyObject * obj0 = 0 ;
44752 if (!PyArg_UnpackTuple(args,
"AssignmentElement_Activated", 1, 1, &obj0))
SWIG_fail;
44755 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "AssignmentElement_Activated" "', argument " "1"" of type '" "operations_research::AssignmentElement const *""'");
44774 PyObject *resultobj = 0;
44778 PyObject * obj0 = 0 ;
44780 if (!PyArg_UnpackTuple(args,
"delete_AssignmentElement", 1, 1, &obj0))
SWIG_fail;
44783 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_AssignmentElement" "', argument " "1"" of type '" "operations_research::AssignmentElement *""'");
44809 PyObject *resultobj = 0;
44813 PyObject * obj0 = 0 ;
44816 if (!PyArg_UnpackTuple(args,
"IntVarElement_Var", 1, 1, &obj0))
SWIG_fail;
44819 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement_Var" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
44838 PyObject *resultobj = 0;
44842 PyObject * obj0 = 0 ;
44845 if (!PyArg_UnpackTuple(args,
"IntVarElement_Min", 1, 1, &obj0))
SWIG_fail;
44848 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement_Min" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
44867 PyObject *resultobj = 0;
44874 PyObject * obj0 = 0 ;
44875 PyObject * obj1 = 0 ;
44877 if (!PyArg_UnpackTuple(args,
"IntVarElement_SetMin", 2, 2, &obj0, &obj1))
SWIG_fail;
44887 arg2 =
static_cast< int64_t
>(val2);
44890 (arg1)->SetMin(arg2);
44904 PyObject *resultobj = 0;
44908 PyObject * obj0 = 0 ;
44911 if (!PyArg_UnpackTuple(args,
"IntVarElement_Max", 1, 1, &obj0))
SWIG_fail;
44914 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement_Max" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
44933 PyObject *resultobj = 0;
44940 PyObject * obj0 = 0 ;
44941 PyObject * obj1 = 0 ;
44943 if (!PyArg_UnpackTuple(args,
"IntVarElement_SetMax", 2, 2, &obj0, &obj1))
SWIG_fail;
44953 arg2 =
static_cast< int64_t
>(val2);
44956 (arg1)->SetMax(arg2);
44970 PyObject *resultobj = 0;
44974 PyObject * obj0 = 0 ;
44977 if (!PyArg_UnpackTuple(args,
"IntVarElement_Value", 1, 1, &obj0))
SWIG_fail;
44980 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement_Value" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
44999 PyObject *resultobj = 0;
45003 PyObject * obj0 = 0 ;
45006 if (!PyArg_UnpackTuple(args,
"IntVarElement_Bound", 1, 1, &obj0))
SWIG_fail;
45009 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement_Bound" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
45028 PyObject *resultobj = 0;
45038 PyObject * obj0 = 0 ;
45039 PyObject * obj1 = 0 ;
45040 PyObject * obj2 = 0 ;
45042 if (!PyArg_UnpackTuple(args,
"IntVarElement_SetRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
45045 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement_SetRange" "', argument " "1"" of type '" "operations_research::IntVarElement *""'");
45052 arg2 =
static_cast< int64_t
>(val2);
45057 arg3 =
static_cast< int64_t
>(val3);
45060 (arg1)->SetRange(arg2,arg3);
45074 PyObject *resultobj = 0;
45081 PyObject * obj0 = 0 ;
45082 PyObject * obj1 = 0 ;
45084 if (!PyArg_UnpackTuple(args,
"IntVarElement_SetValue", 2, 2, &obj0, &obj1))
SWIG_fail;
45087 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement_SetValue" "', argument " "1"" of type '" "operations_research::IntVarElement *""'");
45094 arg2 =
static_cast< int64_t
>(val2);
45097 (arg1)->SetValue(arg2);
45111 PyObject *resultobj = 0;
45118 PyObject * obj0 = 0 ;
45119 PyObject * obj1 = 0 ;
45122 if (!PyArg_UnpackTuple(args,
"IntVarElement___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
45125 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement___eq__" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
45130 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntVarElement___eq__" "', argument " "2"" of type '" "operations_research::IntVarElement const &""'");
45133 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "IntVarElement___eq__" "', argument " "2"" of type '" "operations_research::IntVarElement const &""'");
45148 Py_INCREF(Py_NotImplemented);
45149 return Py_NotImplemented;
45154 PyObject *resultobj = 0;
45161 PyObject * obj0 = 0 ;
45162 PyObject * obj1 = 0 ;
45165 if (!PyArg_UnpackTuple(args,
"IntVarElement___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
45168 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement___ne__" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
45173 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntVarElement___ne__" "', argument " "2"" of type '" "operations_research::IntVarElement const &""'");
45176 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "IntVarElement___ne__" "', argument " "2"" of type '" "operations_research::IntVarElement const &""'");
45191 Py_INCREF(Py_NotImplemented);
45192 return Py_NotImplemented;
45197 PyObject *resultobj = 0;
45201 PyObject * obj0 = 0 ;
45203 if (!PyArg_UnpackTuple(args,
"delete_IntVarElement", 1, 1, &obj0))
SWIG_fail;
45232 PyObject *resultobj = 0;
45236 PyObject * obj0 = 0 ;
45239 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_Var", 1, 1, &obj0))
SWIG_fail;
45242 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_Var" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45261 PyObject *resultobj = 0;
45265 PyObject * obj0 = 0 ;
45268 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_StartMin", 1, 1, &obj0))
SWIG_fail;
45271 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_StartMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45290 PyObject *resultobj = 0;
45294 PyObject * obj0 = 0 ;
45297 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_StartMax", 1, 1, &obj0))
SWIG_fail;
45300 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_StartMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45319 PyObject *resultobj = 0;
45323 PyObject * obj0 = 0 ;
45326 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_StartValue", 1, 1, &obj0))
SWIG_fail;
45329 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_StartValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45348 PyObject *resultobj = 0;
45352 PyObject * obj0 = 0 ;
45355 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_DurationMin", 1, 1, &obj0))
SWIG_fail;
45358 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_DurationMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45377 PyObject *resultobj = 0;
45381 PyObject * obj0 = 0 ;
45384 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_DurationMax", 1, 1, &obj0))
SWIG_fail;
45387 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_DurationMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45406 PyObject *resultobj = 0;
45410 PyObject * obj0 = 0 ;
45413 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_DurationValue", 1, 1, &obj0))
SWIG_fail;
45416 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_DurationValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45435 PyObject *resultobj = 0;
45439 PyObject * obj0 = 0 ;
45442 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_EndMin", 1, 1, &obj0))
SWIG_fail;
45445 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_EndMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45464 PyObject *resultobj = 0;
45468 PyObject * obj0 = 0 ;
45471 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_EndMax", 1, 1, &obj0))
SWIG_fail;
45474 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_EndMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45493 PyObject *resultobj = 0;
45497 PyObject * obj0 = 0 ;
45500 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_EndValue", 1, 1, &obj0))
SWIG_fail;
45503 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_EndValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45522 PyObject *resultobj = 0;
45526 PyObject * obj0 = 0 ;
45529 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_PerformedMin", 1, 1, &obj0))
SWIG_fail;
45532 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_PerformedMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45551 PyObject *resultobj = 0;
45555 PyObject * obj0 = 0 ;
45558 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_PerformedMax", 1, 1, &obj0))
SWIG_fail;
45561 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_PerformedMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45580 PyObject *resultobj = 0;
45584 PyObject * obj0 = 0 ;
45587 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_PerformedValue", 1, 1, &obj0))
SWIG_fail;
45590 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_PerformedValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45609 PyObject *resultobj = 0;
45616 PyObject * obj0 = 0 ;
45617 PyObject * obj1 = 0 ;
45619 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetStartMin", 2, 2, &obj0, &obj1))
SWIG_fail;
45622 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetStartMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45629 arg2 =
static_cast< int64_t
>(val2);
45632 (arg1)->SetStartMin(arg2);
45646 PyObject *resultobj = 0;
45653 PyObject * obj0 = 0 ;
45654 PyObject * obj1 = 0 ;
45656 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetStartMax", 2, 2, &obj0, &obj1))
SWIG_fail;
45659 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetStartMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45666 arg2 =
static_cast< int64_t
>(val2);
45669 (arg1)->SetStartMax(arg2);
45683 PyObject *resultobj = 0;
45693 PyObject * obj0 = 0 ;
45694 PyObject * obj1 = 0 ;
45695 PyObject * obj2 = 0 ;
45697 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetStartRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
45700 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetStartRange" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45707 arg2 =
static_cast< int64_t
>(val2);
45712 arg3 =
static_cast< int64_t
>(val3);
45715 (arg1)->SetStartRange(arg2,arg3);
45729 PyObject *resultobj = 0;
45736 PyObject * obj0 = 0 ;
45737 PyObject * obj1 = 0 ;
45739 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetStartValue", 2, 2, &obj0, &obj1))
SWIG_fail;
45742 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetStartValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45749 arg2 =
static_cast< int64_t
>(val2);
45752 (arg1)->SetStartValue(arg2);
45766 PyObject *resultobj = 0;
45773 PyObject * obj0 = 0 ;
45774 PyObject * obj1 = 0 ;
45776 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetDurationMin", 2, 2, &obj0, &obj1))
SWIG_fail;
45779 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetDurationMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45786 arg2 =
static_cast< int64_t
>(val2);
45789 (arg1)->SetDurationMin(arg2);
45803 PyObject *resultobj = 0;
45810 PyObject * obj0 = 0 ;
45811 PyObject * obj1 = 0 ;
45813 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetDurationMax", 2, 2, &obj0, &obj1))
SWIG_fail;
45816 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetDurationMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45823 arg2 =
static_cast< int64_t
>(val2);
45826 (arg1)->SetDurationMax(arg2);
45840 PyObject *resultobj = 0;
45850 PyObject * obj0 = 0 ;
45851 PyObject * obj1 = 0 ;
45852 PyObject * obj2 = 0 ;
45854 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetDurationRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
45857 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetDurationRange" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45864 arg2 =
static_cast< int64_t
>(val2);
45869 arg3 =
static_cast< int64_t
>(val3);
45872 (arg1)->SetDurationRange(arg2,arg3);
45886 PyObject *resultobj = 0;
45893 PyObject * obj0 = 0 ;
45894 PyObject * obj1 = 0 ;
45896 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetDurationValue", 2, 2, &obj0, &obj1))
SWIG_fail;
45899 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetDurationValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45906 arg2 =
static_cast< int64_t
>(val2);
45909 (arg1)->SetDurationValue(arg2);
45923 PyObject *resultobj = 0;
45930 PyObject * obj0 = 0 ;
45931 PyObject * obj1 = 0 ;
45933 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetEndMin", 2, 2, &obj0, &obj1))
SWIG_fail;
45936 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetEndMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45943 arg2 =
static_cast< int64_t
>(val2);
45946 (arg1)->SetEndMin(arg2);
45960 PyObject *resultobj = 0;
45967 PyObject * obj0 = 0 ;
45968 PyObject * obj1 = 0 ;
45970 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetEndMax", 2, 2, &obj0, &obj1))
SWIG_fail;
45973 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetEndMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45980 arg2 =
static_cast< int64_t
>(val2);
45983 (arg1)->SetEndMax(arg2);
45997 PyObject *resultobj = 0;
46007 PyObject * obj0 = 0 ;
46008 PyObject * obj1 = 0 ;
46009 PyObject * obj2 = 0 ;
46011 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetEndRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
46014 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetEndRange" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46021 arg2 =
static_cast< int64_t
>(val2);
46026 arg3 =
static_cast< int64_t
>(val3);
46029 (arg1)->SetEndRange(arg2,arg3);
46043 PyObject *resultobj = 0;
46050 PyObject * obj0 = 0 ;
46051 PyObject * obj1 = 0 ;
46053 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetEndValue", 2, 2, &obj0, &obj1))
SWIG_fail;
46056 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetEndValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46063 arg2 =
static_cast< int64_t
>(val2);
46066 (arg1)->SetEndValue(arg2);
46080 PyObject *resultobj = 0;
46087 PyObject * obj0 = 0 ;
46088 PyObject * obj1 = 0 ;
46090 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetPerformedMin", 2, 2, &obj0, &obj1))
SWIG_fail;
46093 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetPerformedMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46100 arg2 =
static_cast< int64_t
>(val2);
46103 (arg1)->SetPerformedMin(arg2);
46117 PyObject *resultobj = 0;
46124 PyObject * obj0 = 0 ;
46125 PyObject * obj1 = 0 ;
46127 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetPerformedMax", 2, 2, &obj0, &obj1))
SWIG_fail;
46130 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetPerformedMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46137 arg2 =
static_cast< int64_t
>(val2);
46140 (arg1)->SetPerformedMax(arg2);
46154 PyObject *resultobj = 0;
46164 PyObject * obj0 = 0 ;
46165 PyObject * obj1 = 0 ;
46166 PyObject * obj2 = 0 ;
46168 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetPerformedRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
46171 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetPerformedRange" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46178 arg2 =
static_cast< int64_t
>(val2);
46183 arg3 =
static_cast< int64_t
>(val3);
46186 (arg1)->SetPerformedRange(arg2,arg3);
46200 PyObject *resultobj = 0;
46207 PyObject * obj0 = 0 ;
46208 PyObject * obj1 = 0 ;
46210 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetPerformedValue", 2, 2, &obj0, &obj1))
SWIG_fail;
46213 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetPerformedValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46220 arg2 =
static_cast< int64_t
>(val2);
46223 (arg1)->SetPerformedValue(arg2);
46237 PyObject *resultobj = 0;
46244 PyObject * obj0 = 0 ;
46245 PyObject * obj1 = 0 ;
46248 if (!PyArg_UnpackTuple(args,
"IntervalVarElement___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
46251 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement___eq__" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
46256 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVarElement___eq__" "', argument " "2"" of type '" "operations_research::IntervalVarElement const &""'");
46259 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "IntervalVarElement___eq__" "', argument " "2"" of type '" "operations_research::IntervalVarElement const &""'");
46274 Py_INCREF(Py_NotImplemented);
46275 return Py_NotImplemented;
46280 PyObject *resultobj = 0;
46287 PyObject * obj0 = 0 ;
46288 PyObject * obj1 = 0 ;
46291 if (!PyArg_UnpackTuple(args,
"IntervalVarElement___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
46294 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement___ne__" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
46299 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVarElement___ne__" "', argument " "2"" of type '" "operations_research::IntervalVarElement const &""'");
46302 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "IntervalVarElement___ne__" "', argument " "2"" of type '" "operations_research::IntervalVarElement const &""'");
46317 Py_INCREF(Py_NotImplemented);
46318 return Py_NotImplemented;
46323 PyObject *resultobj = 0;
46327 PyObject * obj0 = 0 ;
46329 if (!PyArg_UnpackTuple(args,
"delete_IntervalVarElement", 1, 1, &obj0))
SWIG_fail;
46332 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_IntervalVarElement" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46358 PyObject *resultobj = 0;
46362 PyObject * obj0 = 0 ;
46365 if (!PyArg_UnpackTuple(args,
"SequenceVarElement_Var", 1, 1, &obj0))
SWIG_fail;
46368 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement_Var" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46387 PyObject *resultobj = 0;
46391 PyObject * obj0 = 0 ;
46392 std::vector< int > *result = 0 ;
46394 if (!PyArg_UnpackTuple(args,
"SequenceVarElement_ForwardSequence", 1, 1, &obj0))
SWIG_fail;
46397 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement_ForwardSequence" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46409 resultobj = vector_output_helper(result, &PyInt_FromLong);
46418 PyObject *resultobj = 0;
46422 PyObject * obj0 = 0 ;
46423 std::vector< int > *result = 0 ;
46425 if (!PyArg_UnpackTuple(args,
"SequenceVarElement_BackwardSequence", 1, 1, &obj0))
SWIG_fail;
46428 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement_BackwardSequence" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46440 resultobj = vector_output_helper(result, &PyInt_FromLong);
46449 PyObject *resultobj = 0;
46453 PyObject * obj0 = 0 ;
46454 std::vector< int > *result = 0 ;
46456 if (!PyArg_UnpackTuple(args,
"SequenceVarElement_Unperformed", 1, 1, &obj0))
SWIG_fail;
46459 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement_Unperformed" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46471 resultobj = vector_output_helper(result, &PyInt_FromLong);
46480 PyObject *resultobj = 0;
46482 std::vector< int > *arg2 = 0 ;
46483 std::vector< int > *arg3 = 0 ;
46484 std::vector< int > *arg4 = 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 ;
46495 if (!PyArg_UnpackTuple(args,
"SequenceVarElement_SetSequence", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
46498 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement_SetSequence" "', argument " "1"" of type '" "operations_research::SequenceVarElement *""'");
46502 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
46503 if (!PyErr_Occurred())
46510 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
46511 if (!PyErr_Occurred())
46518 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
46519 if (!PyErr_Occurred())
46527 (arg1)->SetSequence((std::vector< int >
const &)*arg2,(std::vector< int >
const &)*arg3,(std::vector< int >
const &)*arg4);
46541 PyObject *resultobj = 0;
46543 std::vector< int > *arg2 = 0 ;
46546 std::vector< int > temp2 ;
46547 PyObject * obj0 = 0 ;
46548 PyObject * obj1 = 0 ;
46550 if (!PyArg_UnpackTuple(args,
"SequenceVarElement_SetForwardSequence", 2, 2, &obj0, &obj1))
SWIG_fail;
46553 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement_SetForwardSequence" "', argument " "1"" of type '" "operations_research::SequenceVarElement *""'");
46557 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
46558 if (!PyErr_Occurred())
46566 (arg1)->SetForwardSequence((std::vector< int >
const &)*arg2);
46580 PyObject *resultobj = 0;
46582 std::vector< int > *arg2 = 0 ;
46585 std::vector< int > temp2 ;
46586 PyObject * obj0 = 0 ;
46587 PyObject * obj1 = 0 ;
46589 if (!PyArg_UnpackTuple(args,
"SequenceVarElement_SetBackwardSequence", 2, 2, &obj0, &obj1))
SWIG_fail;
46592 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement_SetBackwardSequence" "', argument " "1"" of type '" "operations_research::SequenceVarElement *""'");
46596 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
46597 if (!PyErr_Occurred())
46605 (arg1)->SetBackwardSequence((std::vector< int >
const &)*arg2);
46619 PyObject *resultobj = 0;
46621 std::vector< int > *arg2 = 0 ;
46624 std::vector< int > temp2 ;
46625 PyObject * obj0 = 0 ;
46626 PyObject * obj1 = 0 ;
46628 if (!PyArg_UnpackTuple(args,
"SequenceVarElement_SetUnperformed", 2, 2, &obj0, &obj1))
SWIG_fail;
46631 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement_SetUnperformed" "', argument " "1"" of type '" "operations_research::SequenceVarElement *""'");
46635 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
46636 if (!PyErr_Occurred())
46644 (arg1)->SetUnperformed((std::vector< int >
const &)*arg2);
46658 PyObject *resultobj = 0;
46665 PyObject * obj0 = 0 ;
46666 PyObject * obj1 = 0 ;
46669 if (!PyArg_UnpackTuple(args,
"SequenceVarElement___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
46672 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement___eq__" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46677 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "SequenceVarElement___eq__" "', argument " "2"" of type '" "operations_research::SequenceVarElement const &""'");
46680 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "SequenceVarElement___eq__" "', argument " "2"" of type '" "operations_research::SequenceVarElement const &""'");
46695 Py_INCREF(Py_NotImplemented);
46696 return Py_NotImplemented;
46701 PyObject *resultobj = 0;
46708 PyObject * obj0 = 0 ;
46709 PyObject * obj1 = 0 ;
46712 if (!PyArg_UnpackTuple(args,
"SequenceVarElement___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
46715 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement___ne__" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46720 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "SequenceVarElement___ne__" "', argument " "2"" of type '" "operations_research::SequenceVarElement const &""'");
46723 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "SequenceVarElement___ne__" "', argument " "2"" of type '" "operations_research::SequenceVarElement const &""'");
46738 Py_INCREF(Py_NotImplemented);
46739 return Py_NotImplemented;
46744 PyObject *resultobj = 0;
46748 PyObject * obj0 = 0 ;
46750 if (!PyArg_UnpackTuple(args,
"delete_SequenceVarElement", 1, 1, &obj0))
SWIG_fail;
46753 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_SequenceVarElement" "', argument " "1"" of type '" "operations_research::SequenceVarElement *""'");
46779 PyObject *resultobj = 0;
46783 PyObject * obj0 = 0 ;
46785 if (!PyArg_UnpackTuple(args,
"Assignment_Clear", 1, 1, &obj0))
SWIG_fail;
46807 PyObject *resultobj = 0;
46811 PyObject * obj0 = 0 ;
46814 if (!PyArg_UnpackTuple(args,
"Assignment_Empty", 1, 1, &obj0))
SWIG_fail;
46836 PyObject *resultobj = 0;
46840 PyObject * obj0 = 0 ;
46843 if (!PyArg_UnpackTuple(args,
"Assignment_Size", 1, 1, &obj0))
SWIG_fail;
46865 PyObject *resultobj = 0;
46869 PyObject * obj0 = 0 ;
46872 if (!PyArg_UnpackTuple(args,
"Assignment_NumIntVars", 1, 1, &obj0))
SWIG_fail;
46875 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_NumIntVars" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
46894 PyObject *resultobj = 0;
46898 PyObject * obj0 = 0 ;
46901 if (!PyArg_UnpackTuple(args,
"Assignment_NumIntervalVars", 1, 1, &obj0))
SWIG_fail;
46904 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_NumIntervalVars" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
46923 PyObject *resultobj = 0;
46927 PyObject * obj0 = 0 ;
46930 if (!PyArg_UnpackTuple(args,
"Assignment_NumSequenceVars", 1, 1, &obj0))
SWIG_fail;
46933 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_NumSequenceVars" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
46952 PyObject *resultobj = 0;
46956 PyObject * obj0 = 0 ;
46958 if (!PyArg_UnpackTuple(args,
"Assignment_Store", 1, 1, &obj0))
SWIG_fail;
46980 PyObject *resultobj = 0;
46984 PyObject * obj0 = 0 ;
46986 if (!PyArg_UnpackTuple(args,
"Assignment_Restore", 1, 1, &obj0))
SWIG_fail;
47008 PyObject *resultobj = 0;
47010 std::string *arg2 = 0 ;
47014 PyObject * obj0 = 0 ;
47015 PyObject * obj1 = 0 ;
47018 if (!PyArg_UnpackTuple(args,
"Assignment_Load", 2, 2, &obj0, &obj1))
SWIG_fail;
47025 std::string *ptr = (std::string *)0;
47037 result = (bool)(arg1)->Load((std::string
const &)*arg2);
47053 PyObject *resultobj = 0;
47058 PyObject * obj0 = 0 ;
47059 PyObject * obj1 = 0 ;
47061 if (!PyArg_UnpackTuple(args,
"Assignment_Load", 2, 2, &obj0, &obj1))
SWIG_fail;
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);
47078 Py_DECREF(pyresult);
47104 PyObject *argv[3] = {
47110 argc = PyObject_Length(args);
47111 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
47112 argv[ii] = PyTuple_GET_ITEM(args,ii);
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)) {
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");
47166 PyObject *resultobj = 0;
47168 std::string *arg2 = 0 ;
47172 PyObject * obj0 = 0 ;
47173 PyObject * obj1 = 0 ;
47176 if (!PyArg_UnpackTuple(args,
"Assignment_Save", 2, 2, &obj0, &obj1))
SWIG_fail;
47183 std::string *ptr = (std::string *)0;
47211 PyObject *resultobj = 0;
47216 PyObject * obj0 = 0 ;
47217 PyObject * obj1 = 0 ;
47219 if (!PyArg_UnpackTuple(args,
"Assignment_Save", 2, 2, &obj0, &obj1))
SWIG_fail;
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);
47236 Py_DECREF(pyresult);
47249 std::string encoded_protobuf;
47250 arg2->SerializeToString(&encoded_protobuf);
47252 PyObject*
const python_encoded_protobuf =
47253 PyBytes_FromStringAndSize(encoded_protobuf.c_str(),
47254 encoded_protobuf.size());
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) {
47284 PyObject *argv[3] = {
47290 argc = PyObject_Length(args);
47291 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
47292 argv[ii] = PyTuple_GET_ITEM(args,ii);
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)) {
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");
47346 PyObject *resultobj = 0;
47351 PyObject * obj0 = 0 ;
47352 PyObject * obj1 = 0 ;
47354 if (!PyArg_UnpackTuple(args,
"Assignment_AddObjective", 2, 2, &obj0, &obj1))
SWIG_fail;
47365 (arg1)->AddObjective(arg2);
47379 PyObject *resultobj = 0;
47383 PyObject * obj0 = 0 ;
47386 if (!PyArg_UnpackTuple(args,
"Assignment_Objective", 1, 1, &obj0))
SWIG_fail;
47389 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_Objective" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47408 PyObject *resultobj = 0;
47412 PyObject * obj0 = 0 ;
47415 if (!PyArg_UnpackTuple(args,
"Assignment_HasObjective", 1, 1, &obj0))
SWIG_fail;
47418 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_HasObjective" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47437 PyObject *resultobj = 0;
47441 PyObject * obj0 = 0 ;
47444 if (!PyArg_UnpackTuple(args,
"Assignment_ObjectiveMin", 1, 1, &obj0))
SWIG_fail;
47447 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_ObjectiveMin" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47466 PyObject *resultobj = 0;
47470 PyObject * obj0 = 0 ;
47473 if (!PyArg_UnpackTuple(args,
"Assignment_ObjectiveMax", 1, 1, &obj0))
SWIG_fail;
47476 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_ObjectiveMax" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47495 PyObject *resultobj = 0;
47499 PyObject * obj0 = 0 ;
47502 if (!PyArg_UnpackTuple(args,
"Assignment_ObjectiveValue", 1, 1, &obj0))
SWIG_fail;
47505 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_ObjectiveValue" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47524 PyObject *resultobj = 0;
47528 PyObject * obj0 = 0 ;
47531 if (!PyArg_UnpackTuple(args,
"Assignment_ObjectiveBound", 1, 1, &obj0))
SWIG_fail;
47534 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_ObjectiveBound" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47553 PyObject *resultobj = 0;
47560 PyObject * obj0 = 0 ;
47561 PyObject * obj1 = 0 ;
47563 if (!PyArg_UnpackTuple(args,
"Assignment_SetObjectiveMin", 2, 2, &obj0, &obj1))
SWIG_fail;
47566 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetObjectiveMin" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47573 arg2 =
static_cast< int64_t
>(val2);
47576 (arg1)->SetObjectiveMin(arg2);
47590 PyObject *resultobj = 0;
47597 PyObject * obj0 = 0 ;
47598 PyObject * obj1 = 0 ;
47600 if (!PyArg_UnpackTuple(args,
"Assignment_SetObjectiveMax", 2, 2, &obj0, &obj1))
SWIG_fail;
47603 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetObjectiveMax" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47610 arg2 =
static_cast< int64_t
>(val2);
47613 (arg1)->SetObjectiveMax(arg2);
47627 PyObject *resultobj = 0;
47634 PyObject * obj0 = 0 ;
47635 PyObject * obj1 = 0 ;
47637 if (!PyArg_UnpackTuple(args,
"Assignment_SetObjectiveValue", 2, 2, &obj0, &obj1))
SWIG_fail;
47640 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetObjectiveValue" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47647 arg2 =
static_cast< int64_t
>(val2);
47650 (arg1)->SetObjectiveValue(arg2);
47664 PyObject *resultobj = 0;
47674 PyObject * obj0 = 0 ;
47675 PyObject * obj1 = 0 ;
47676 PyObject * obj2 = 0 ;
47678 if (!PyArg_UnpackTuple(args,
"Assignment_SetObjectiveRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
47681 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetObjectiveRange" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47688 arg2 =
static_cast< int64_t
>(val2);
47693 arg3 =
static_cast< int64_t
>(val3);
47696 (arg1)->SetObjectiveRange(arg2,arg3);
47710 PyObject *resultobj = 0;
47715 PyObject * obj0 = 0 ;
47716 PyObject * obj1 = 0 ;
47719 if (!PyArg_UnpackTuple(args,
"Assignment_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
47744 PyObject *resultobj = 0;
47746 std::vector< operations_research::IntVar * > *arg2 = 0 ;
47749 std::vector< operations_research::IntVar * > temp2 ;
47750 PyObject * obj0 = 0 ;
47751 PyObject * obj1 = 0 ;
47753 if (!PyArg_UnpackTuple(args,
"Assignment_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
47760 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
47761 if (!PyErr_Occurred())
47769 (arg1)->Add((std::vector< operations_research::IntVar * >
const &)*arg2);
47783 PyObject *resultobj = 0;
47788 PyObject * obj0 = 0 ;
47789 PyObject * obj1 = 0 ;
47792 if (!PyArg_UnpackTuple(args,
"Assignment_Min", 2, 2, &obj0, &obj1))
SWIG_fail;
47817 PyObject *resultobj = 0;
47822 PyObject * obj0 = 0 ;
47823 PyObject * obj1 = 0 ;
47826 if (!PyArg_UnpackTuple(args,
"Assignment_Max", 2, 2, &obj0, &obj1))
SWIG_fail;
47851 PyObject *resultobj = 0;
47856 PyObject * obj0 = 0 ;
47857 PyObject * obj1 = 0 ;
47860 if (!PyArg_UnpackTuple(args,
"Assignment_Value", 2, 2, &obj0, &obj1))
SWIG_fail;
47885 PyObject *resultobj = 0;
47890 PyObject * obj0 = 0 ;
47891 PyObject * obj1 = 0 ;
47894 if (!PyArg_UnpackTuple(args,
"Assignment_Bound", 2, 2, &obj0, &obj1))
SWIG_fail;
47919 PyObject *resultobj = 0;
47927 PyObject * obj0 = 0 ;
47928 PyObject * obj1 = 0 ;
47929 PyObject * obj2 = 0 ;
47931 if (!PyArg_UnpackTuple(args,
"Assignment_SetMin", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
47944 arg3 =
static_cast< int64_t
>(val3);
47961 PyObject *resultobj = 0;
47969 PyObject * obj0 = 0 ;
47970 PyObject * obj1 = 0 ;
47971 PyObject * obj2 = 0 ;
47973 if (!PyArg_UnpackTuple(args,
"Assignment_SetMax", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
47986 arg3 =
static_cast< int64_t
>(val3);
48003 PyObject *resultobj = 0;
48014 PyObject * obj0 = 0 ;
48015 PyObject * obj1 = 0 ;
48016 PyObject * obj2 = 0 ;
48017 PyObject * obj3 = 0 ;
48019 if (!PyArg_UnpackTuple(args,
"Assignment_SetRange", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
48032 arg3 =
static_cast< int64_t
>(val3);
48037 arg4 =
static_cast< int64_t
>(val4);
48054 PyObject *resultobj = 0;
48062 PyObject * obj0 = 0 ;
48063 PyObject * obj1 = 0 ;
48064 PyObject * obj2 = 0 ;
48066 if (!PyArg_UnpackTuple(args,
"Assignment_SetValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48079 arg3 =
static_cast< int64_t
>(val3);
48096 PyObject *resultobj = 0;
48101 PyObject * obj0 = 0 ;
48102 PyObject * obj1 = 0 ;
48105 if (!PyArg_UnpackTuple(args,
"Assignment_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
48130 PyObject *resultobj = 0;
48132 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
48135 std::vector< operations_research::IntervalVar * > temp2 ;
48136 PyObject * obj0 = 0 ;
48137 PyObject * obj1 = 0 ;
48139 if (!PyArg_UnpackTuple(args,
"Assignment_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
48146 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
48147 if (!PyErr_Occurred())
48155 (arg1)->Add((std::vector< operations_research::IntervalVar * >
const &)*arg2);
48169 PyObject *resultobj = 0;
48174 PyObject * obj0 = 0 ;
48175 PyObject * obj1 = 0 ;
48178 if (!PyArg_UnpackTuple(args,
"Assignment_StartMin", 2, 2, &obj0, &obj1))
SWIG_fail;
48181 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_StartMin" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48203 PyObject *resultobj = 0;
48208 PyObject * obj0 = 0 ;
48209 PyObject * obj1 = 0 ;
48212 if (!PyArg_UnpackTuple(args,
"Assignment_StartMax", 2, 2, &obj0, &obj1))
SWIG_fail;
48215 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_StartMax" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48237 PyObject *resultobj = 0;
48242 PyObject * obj0 = 0 ;
48243 PyObject * obj1 = 0 ;
48246 if (!PyArg_UnpackTuple(args,
"Assignment_StartValue", 2, 2, &obj0, &obj1))
SWIG_fail;
48249 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_StartValue" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48271 PyObject *resultobj = 0;
48276 PyObject * obj0 = 0 ;
48277 PyObject * obj1 = 0 ;
48280 if (!PyArg_UnpackTuple(args,
"Assignment_DurationMin", 2, 2, &obj0, &obj1))
SWIG_fail;
48283 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_DurationMin" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48305 PyObject *resultobj = 0;
48310 PyObject * obj0 = 0 ;
48311 PyObject * obj1 = 0 ;
48314 if (!PyArg_UnpackTuple(args,
"Assignment_DurationMax", 2, 2, &obj0, &obj1))
SWIG_fail;
48317 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_DurationMax" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48339 PyObject *resultobj = 0;
48344 PyObject * obj0 = 0 ;
48345 PyObject * obj1 = 0 ;
48348 if (!PyArg_UnpackTuple(args,
"Assignment_DurationValue", 2, 2, &obj0, &obj1))
SWIG_fail;
48351 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_DurationValue" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48373 PyObject *resultobj = 0;
48378 PyObject * obj0 = 0 ;
48379 PyObject * obj1 = 0 ;
48382 if (!PyArg_UnpackTuple(args,
"Assignment_EndMin", 2, 2, &obj0, &obj1))
SWIG_fail;
48407 PyObject *resultobj = 0;
48412 PyObject * obj0 = 0 ;
48413 PyObject * obj1 = 0 ;
48416 if (!PyArg_UnpackTuple(args,
"Assignment_EndMax", 2, 2, &obj0, &obj1))
SWIG_fail;
48441 PyObject *resultobj = 0;
48446 PyObject * obj0 = 0 ;
48447 PyObject * obj1 = 0 ;
48450 if (!PyArg_UnpackTuple(args,
"Assignment_EndValue", 2, 2, &obj0, &obj1))
SWIG_fail;
48453 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_EndValue" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48475 PyObject *resultobj = 0;
48480 PyObject * obj0 = 0 ;
48481 PyObject * obj1 = 0 ;
48484 if (!PyArg_UnpackTuple(args,
"Assignment_PerformedMin", 2, 2, &obj0, &obj1))
SWIG_fail;
48487 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_PerformedMin" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48509 PyObject *resultobj = 0;
48514 PyObject * obj0 = 0 ;
48515 PyObject * obj1 = 0 ;
48518 if (!PyArg_UnpackTuple(args,
"Assignment_PerformedMax", 2, 2, &obj0, &obj1))
SWIG_fail;
48521 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_PerformedMax" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48543 PyObject *resultobj = 0;
48548 PyObject * obj0 = 0 ;
48549 PyObject * obj1 = 0 ;
48552 if (!PyArg_UnpackTuple(args,
"Assignment_PerformedValue", 2, 2, &obj0, &obj1))
SWIG_fail;
48555 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_PerformedValue" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48577 PyObject *resultobj = 0;
48585 PyObject * obj0 = 0 ;
48586 PyObject * obj1 = 0 ;
48587 PyObject * obj2 = 0 ;
48589 if (!PyArg_UnpackTuple(args,
"Assignment_SetStartMin", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48602 arg3 =
static_cast< int64_t
>(val3);
48619 PyObject *resultobj = 0;
48627 PyObject * obj0 = 0 ;
48628 PyObject * obj1 = 0 ;
48629 PyObject * obj2 = 0 ;
48631 if (!PyArg_UnpackTuple(args,
"Assignment_SetStartMax", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48644 arg3 =
static_cast< int64_t
>(val3);
48661 PyObject *resultobj = 0;
48672 PyObject * obj0 = 0 ;
48673 PyObject * obj1 = 0 ;
48674 PyObject * obj2 = 0 ;
48675 PyObject * obj3 = 0 ;
48677 if (!PyArg_UnpackTuple(args,
"Assignment_SetStartRange", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
48690 arg3 =
static_cast< int64_t
>(val3);
48695 arg4 =
static_cast< int64_t
>(val4);
48712 PyObject *resultobj = 0;
48720 PyObject * obj0 = 0 ;
48721 PyObject * obj1 = 0 ;
48722 PyObject * obj2 = 0 ;
48724 if (!PyArg_UnpackTuple(args,
"Assignment_SetStartValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48737 arg3 =
static_cast< int64_t
>(val3);
48754 PyObject *resultobj = 0;
48762 PyObject * obj0 = 0 ;
48763 PyObject * obj1 = 0 ;
48764 PyObject * obj2 = 0 ;
48766 if (!PyArg_UnpackTuple(args,
"Assignment_SetDurationMin", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48769 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetDurationMin" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48779 arg3 =
static_cast< int64_t
>(val3);
48796 PyObject *resultobj = 0;
48804 PyObject * obj0 = 0 ;
48805 PyObject * obj1 = 0 ;
48806 PyObject * obj2 = 0 ;
48808 if (!PyArg_UnpackTuple(args,
"Assignment_SetDurationMax", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48811 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetDurationMax" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48821 arg3 =
static_cast< int64_t
>(val3);
48838 PyObject *resultobj = 0;
48849 PyObject * obj0 = 0 ;
48850 PyObject * obj1 = 0 ;
48851 PyObject * obj2 = 0 ;
48852 PyObject * obj3 = 0 ;
48854 if (!PyArg_UnpackTuple(args,
"Assignment_SetDurationRange", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
48857 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetDurationRange" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48867 arg3 =
static_cast< int64_t
>(val3);
48872 arg4 =
static_cast< int64_t
>(val4);
48889 PyObject *resultobj = 0;
48897 PyObject * obj0 = 0 ;
48898 PyObject * obj1 = 0 ;
48899 PyObject * obj2 = 0 ;
48901 if (!PyArg_UnpackTuple(args,
"Assignment_SetDurationValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48904 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetDurationValue" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48914 arg3 =
static_cast< int64_t
>(val3);
48931 PyObject *resultobj = 0;
48939 PyObject * obj0 = 0 ;
48940 PyObject * obj1 = 0 ;
48941 PyObject * obj2 = 0 ;
48943 if (!PyArg_UnpackTuple(args,
"Assignment_SetEndMin", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48956 arg3 =
static_cast< int64_t
>(val3);
48973 PyObject *resultobj = 0;
48981 PyObject * obj0 = 0 ;
48982 PyObject * obj1 = 0 ;
48983 PyObject * obj2 = 0 ;
48985 if (!PyArg_UnpackTuple(args,
"Assignment_SetEndMax", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48998 arg3 =
static_cast< int64_t
>(val3);
49015 PyObject *resultobj = 0;
49026 PyObject * obj0 = 0 ;
49027 PyObject * obj1 = 0 ;
49028 PyObject * obj2 = 0 ;
49029 PyObject * obj3 = 0 ;
49031 if (!PyArg_UnpackTuple(args,
"Assignment_SetEndRange", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
49044 arg3 =
static_cast< int64_t
>(val3);
49049 arg4 =
static_cast< int64_t
>(val4);
49066 PyObject *resultobj = 0;
49074 PyObject * obj0 = 0 ;
49075 PyObject * obj1 = 0 ;
49076 PyObject * obj2 = 0 ;
49078 if (!PyArg_UnpackTuple(args,
"Assignment_SetEndValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
49091 arg3 =
static_cast< int64_t
>(val3);
49108 PyObject *resultobj = 0;
49116 PyObject * obj0 = 0 ;
49117 PyObject * obj1 = 0 ;
49118 PyObject * obj2 = 0 ;
49120 if (!PyArg_UnpackTuple(args,
"Assignment_SetPerformedMin", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
49123 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetPerformedMin" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49133 arg3 =
static_cast< int64_t
>(val3);
49150 PyObject *resultobj = 0;
49158 PyObject * obj0 = 0 ;
49159 PyObject * obj1 = 0 ;
49160 PyObject * obj2 = 0 ;
49162 if (!PyArg_UnpackTuple(args,
"Assignment_SetPerformedMax", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
49165 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetPerformedMax" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49175 arg3 =
static_cast< int64_t
>(val3);
49192 PyObject *resultobj = 0;
49203 PyObject * obj0 = 0 ;
49204 PyObject * obj1 = 0 ;
49205 PyObject * obj2 = 0 ;
49206 PyObject * obj3 = 0 ;
49208 if (!PyArg_UnpackTuple(args,
"Assignment_SetPerformedRange", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
49211 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetPerformedRange" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49221 arg3 =
static_cast< int64_t
>(val3);
49226 arg4 =
static_cast< int64_t
>(val4);
49243 PyObject *resultobj = 0;
49251 PyObject * obj0 = 0 ;
49252 PyObject * obj1 = 0 ;
49253 PyObject * obj2 = 0 ;
49255 if (!PyArg_UnpackTuple(args,
"Assignment_SetPerformedValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
49258 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetPerformedValue" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49268 arg3 =
static_cast< int64_t
>(val3);
49285 PyObject *resultobj = 0;
49290 PyObject * obj0 = 0 ;
49291 PyObject * obj1 = 0 ;
49294 if (!PyArg_UnpackTuple(args,
"Assignment_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
49319 PyObject *resultobj = 0;
49321 std::vector< operations_research::SequenceVar * > *arg2 = 0 ;
49324 std::vector< operations_research::SequenceVar * > temp2 ;
49325 PyObject * obj0 = 0 ;
49326 PyObject * obj1 = 0 ;
49328 if (!PyArg_UnpackTuple(args,
"Assignment_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
49335 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::SequenceVar*>)) {
49336 if (!PyErr_Occurred())
49344 (arg1)->Add((std::vector< operations_research::SequenceVar * >
const &)*arg2);
49359 PyObject *argv[3] = {
49365 argc = PyObject_Length(args);
49366 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
49367 argv[ii] = PyTuple_GET_ITEM(args,ii);
49377 if (_v == 0) PyErr_Clear();
49391 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
49394 const bool is_tuple = PyTuple_Check(argv[1]);
49395 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
49398 :PyList_GetItem(argv[1], i))) {
49417 if (_v == 0) PyErr_Clear();
49431 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
49434 const bool is_tuple = PyTuple_Check(argv[1]);
49435 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
49438 :PyList_GetItem(argv[1], i))) {
49457 if (_v == 0) PyErr_Clear();
49471 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
49474 const bool is_tuple = PyTuple_Check(argv[1]);
49475 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
49478 :PyList_GetItem(argv[1], i))) {
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");
49504 PyObject *resultobj = 0;
49509 PyObject * obj0 = 0 ;
49510 PyObject * obj1 = 0 ;
49511 std::vector< int > *result = 0 ;
49513 if (!PyArg_UnpackTuple(args,
"Assignment_ForwardSequence", 2, 2, &obj0, &obj1))
SWIG_fail;
49516 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_ForwardSequence" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
49531 resultobj = vector_output_helper(result, &PyInt_FromLong);
49540 PyObject *resultobj = 0;
49545 PyObject * obj0 = 0 ;
49546 PyObject * obj1 = 0 ;
49547 std::vector< int > *result = 0 ;
49549 if (!PyArg_UnpackTuple(args,
"Assignment_BackwardSequence", 2, 2, &obj0, &obj1))
SWIG_fail;
49552 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_BackwardSequence" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
49567 resultobj = vector_output_helper(result, &PyInt_FromLong);
49576 PyObject *resultobj = 0;
49581 PyObject * obj0 = 0 ;
49582 PyObject * obj1 = 0 ;
49583 std::vector< int > *result = 0 ;
49585 if (!PyArg_UnpackTuple(args,
"Assignment_Unperformed", 2, 2, &obj0, &obj1))
SWIG_fail;
49588 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_Unperformed" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
49603 resultobj = vector_output_helper(result, &PyInt_FromLong);
49612 PyObject *resultobj = 0;
49615 std::vector< int > *arg3 = 0 ;
49616 std::vector< int > *arg4 = 0 ;
49617 std::vector< int > *arg5 = 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 ;
49629 if (!PyArg_UnpackTuple(args,
"Assignment_SetSequence", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
49639 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
49640 if (!PyErr_Occurred())
49647 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
49648 if (!PyErr_Occurred())
49655 if (!vector_input_helper(obj4, &temp5, PyObjAs<int>)) {
49656 if (!PyErr_Occurred())
49664 (arg1)->SetSequence((
operations_research::SequenceVar const *)arg2,(std::vector< int >
const &)*arg3,(std::vector< int >
const &)*arg4,(std::vector< int >
const &)*arg5);
49678 PyObject *resultobj = 0;
49681 std::vector< int > *arg3 = 0 ;
49684 std::vector< int > temp3 ;
49685 PyObject * obj0 = 0 ;
49686 PyObject * obj1 = 0 ;
49687 PyObject * obj2 = 0 ;
49689 if (!PyArg_UnpackTuple(args,
"Assignment_SetForwardSequence", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
49692 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetForwardSequence" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49699 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
49700 if (!PyErr_Occurred())
49722 PyObject *resultobj = 0;
49725 std::vector< int > *arg3 = 0 ;
49728 std::vector< int > temp3 ;
49729 PyObject * obj0 = 0 ;
49730 PyObject * obj1 = 0 ;
49731 PyObject * obj2 = 0 ;
49733 if (!PyArg_UnpackTuple(args,
"Assignment_SetBackwardSequence", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
49736 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetBackwardSequence" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49743 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
49744 if (!PyErr_Occurred())
49766 PyObject *resultobj = 0;
49769 std::vector< int > *arg3 = 0 ;
49772 std::vector< int > temp3 ;
49773 PyObject * obj0 = 0 ;
49774 PyObject * obj1 = 0 ;
49775 PyObject * obj2 = 0 ;
49777 if (!PyArg_UnpackTuple(args,
"Assignment_SetUnperformed", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
49780 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetUnperformed" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49787 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
49788 if (!PyErr_Occurred())
49810 PyObject *resultobj = 0;
49815 PyObject * obj0 = 0 ;
49816 PyObject * obj1 = 0 ;
49818 if (!PyArg_UnpackTuple(args,
"Assignment_Activate", 2, 2, &obj0, &obj1))
SWIG_fail;
49843 PyObject *resultobj = 0;
49848 PyObject * obj0 = 0 ;
49849 PyObject * obj1 = 0 ;
49851 if (!PyArg_UnpackTuple(args,
"Assignment_Deactivate", 2, 2, &obj0, &obj1))
SWIG_fail;
49876 PyObject *resultobj = 0;
49881 PyObject * obj0 = 0 ;
49882 PyObject * obj1 = 0 ;
49885 if (!PyArg_UnpackTuple(args,
"Assignment_Activated", 2, 2, &obj0, &obj1))
SWIG_fail;
49888 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_Activated" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
49910 PyObject *resultobj = 0;
49915 PyObject * obj0 = 0 ;
49916 PyObject * obj1 = 0 ;
49918 if (!PyArg_UnpackTuple(args,
"Assignment_Activate", 2, 2, &obj0, &obj1))
SWIG_fail;
49943 PyObject *resultobj = 0;
49948 PyObject * obj0 = 0 ;
49949 PyObject * obj1 = 0 ;
49951 if (!PyArg_UnpackTuple(args,
"Assignment_Deactivate", 2, 2, &obj0, &obj1))
SWIG_fail;
49976 PyObject *resultobj = 0;
49981 PyObject * obj0 = 0 ;
49982 PyObject * obj1 = 0 ;
49985 if (!PyArg_UnpackTuple(args,
"Assignment_Activated", 2, 2, &obj0, &obj1))
SWIG_fail;
49988 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_Activated" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50010 PyObject *resultobj = 0;
50015 PyObject * obj0 = 0 ;
50016 PyObject * obj1 = 0 ;
50018 if (!PyArg_UnpackTuple(args,
"Assignment_Activate", 2, 2, &obj0, &obj1))
SWIG_fail;
50044 PyObject *argv[3] = {
50050 argc = PyObject_Length(args);
50051 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
50052 argv[ii] = PyTuple_GET_ITEM(args,ii);
50062 if (_v == 0) PyErr_Clear();
50077 if (_v == 0) PyErr_Clear();
50092 if (_v == 0) PyErr_Clear();
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");
50111 PyObject *resultobj = 0;
50116 PyObject * obj0 = 0 ;
50117 PyObject * obj1 = 0 ;
50119 if (!PyArg_UnpackTuple(args,
"Assignment_Deactivate", 2, 2, &obj0, &obj1))
SWIG_fail;
50145 PyObject *argv[3] = {
50151 argc = PyObject_Length(args);
50152 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
50153 argv[ii] = PyTuple_GET_ITEM(args,ii);
50163 if (_v == 0) PyErr_Clear();
50178 if (_v == 0) PyErr_Clear();
50193 if (_v == 0) PyErr_Clear();
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");
50212 PyObject *resultobj = 0;
50217 PyObject * obj0 = 0 ;
50218 PyObject * obj1 = 0 ;
50221 if (!PyArg_UnpackTuple(args,
"Assignment_Activated", 2, 2, &obj0, &obj1))
SWIG_fail;
50224 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_Activated" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50247 PyObject *argv[3] = {
50253 argc = PyObject_Length(args);
50254 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
50255 argv[ii] = PyTuple_GET_ITEM(args,ii);
50265 if (_v == 0) PyErr_Clear();
50280 if (_v == 0) PyErr_Clear();
50295 if (_v == 0) PyErr_Clear();
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");
50314 PyObject *resultobj = 0;
50318 PyObject * obj0 = 0 ;
50319 std::string result;
50321 if (!PyArg_UnpackTuple(args,
"Assignment_DebugString", 1, 1, &obj0))
SWIG_fail;
50324 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_DebugString" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50343 PyObject *resultobj = 0;
50347 PyObject * obj0 = 0 ;
50350 if (!PyArg_UnpackTuple(args,
"Assignment_IntVarContainer", 1, 1, &obj0))
SWIG_fail;
50353 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_IntVarContainer" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50372 PyObject *resultobj = 0;
50376 PyObject * obj0 = 0 ;
50379 if (!PyArg_UnpackTuple(args,
"Assignment_MutableIntVarContainer", 1, 1, &obj0))
SWIG_fail;
50382 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_MutableIntVarContainer" "', argument " "1"" of type '" "operations_research::Assignment *""'");
50401 PyObject *resultobj = 0;
50405 PyObject * obj0 = 0 ;
50408 if (!PyArg_UnpackTuple(args,
"Assignment_IntervalVarContainer", 1, 1, &obj0))
SWIG_fail;
50411 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_IntervalVarContainer" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50430 PyObject *resultobj = 0;
50434 PyObject * obj0 = 0 ;
50437 if (!PyArg_UnpackTuple(args,
"Assignment_MutableIntervalVarContainer", 1, 1, &obj0))
SWIG_fail;
50440 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_MutableIntervalVarContainer" "', argument " "1"" of type '" "operations_research::Assignment *""'");
50459 PyObject *resultobj = 0;
50463 PyObject * obj0 = 0 ;
50466 if (!PyArg_UnpackTuple(args,
"Assignment_SequenceVarContainer", 1, 1, &obj0))
SWIG_fail;
50469 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SequenceVarContainer" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50488 PyObject *resultobj = 0;
50492 PyObject * obj0 = 0 ;
50495 if (!PyArg_UnpackTuple(args,
"Assignment_MutableSequenceVarContainer", 1, 1, &obj0))
SWIG_fail;
50498 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_MutableSequenceVarContainer" "', argument " "1"" of type '" "operations_research::Assignment *""'");
50517 PyObject *resultobj = 0;
50524 PyObject * obj0 = 0 ;
50525 PyObject * obj1 = 0 ;
50528 if (!PyArg_UnpackTuple(args,
"Assignment___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
50539 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Assignment___eq__" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
50554 Py_INCREF(Py_NotImplemented);
50555 return Py_NotImplemented;
50560 PyObject *resultobj = 0;
50567 PyObject * obj0 = 0 ;
50568 PyObject * obj1 = 0 ;
50571 if (!PyArg_UnpackTuple(args,
"Assignment___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
50582 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Assignment___ne__" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
50597 Py_INCREF(Py_NotImplemented);
50598 return Py_NotImplemented;
50610 PyObject *resultobj = 0;
50611 std::ostream *arg1 = 0 ;
50617 PyObject * obj0 = 0 ;
50618 PyObject * obj1 = 0 ;
50619 std::ostream *result = 0 ;
50621 if (!PyArg_UnpackTuple(args,
"__lshift__", 2, 2, &obj0, &obj1))
SWIG_fail;
50629 arg1 =
reinterpret_cast< std::ostream *
>(argp1);
50635 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "__lshift__" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
50650 Py_INCREF(Py_NotImplemented);
50651 return Py_NotImplemented;
50657 PyObject *argv[3] = {
50663 argc = PyObject_Length(args);
50664 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
50665 argv[ii] = PyTuple_GET_ITEM(args,ii);
50710 Py_INCREF(Py_NotImplemented);
50711 return Py_NotImplemented;
50716 PyObject *resultobj = 0;
50718 std::vector< int64_t > *arg2 = 0 ;
50719 std::vector< int64_t > *arg3 = 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 ;
50728 if (!PyArg_UnpackTuple(args,
"Pack_AddWeightedSumLessOrEqualConstantDimension", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
50731 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Pack_AddWeightedSumLessOrEqualConstantDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
50735 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
50736 if (!PyErr_Occurred())
50743 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
50744 if (!PyErr_Occurred())
50752 (arg1)->AddWeightedSumLessOrEqualConstantDimension((std::vector< int64_t >
const &)*arg2,(std::vector< int64_t >
const &)*arg3);
50766 PyObject *resultobj = 0;
50769 std::vector< int64_t > *arg3 = 0 ;
50772 std::vector< int64_t > temp3 ;
50773 PyObject * obj0 = 0 ;
50774 PyObject * obj1 = 0 ;
50775 PyObject * obj2 = 0 ;
50777 if (!PyArg_UnpackTuple(args,
"Pack_AddWeightedSumLessOrEqualConstantDimension", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
50780 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Pack_AddWeightedSumLessOrEqualConstantDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
50786 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
50790 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
50791 if (!PyErr_Occurred())
50799 (arg1)->AddWeightedSumLessOrEqualConstantDimension(arg2,(std::vector< int64_t >
const &)*arg3);
50813 PyObject *resultobj = 0;
50816 std::vector< int64_t > *arg3 = 0 ;
50819 std::vector< int64_t > temp3 ;
50820 PyObject * obj0 = 0 ;
50821 PyObject * obj1 = 0 ;
50822 PyObject * obj2 = 0 ;
50824 if (!PyArg_UnpackTuple(args,
"Pack_AddWeightedSumLessOrEqualConstantDimension", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
50827 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Pack_AddWeightedSumLessOrEqualConstantDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
50832 arg2 = [
input](int64_t i, int64_t j) {
50833 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
50837 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
50838 if (!PyErr_Occurred())
50846 (arg1)->AddWeightedSumLessOrEqualConstantDimension(arg2,(std::vector< int64_t >
const &)*arg3);
50861 PyObject *argv[4] = {
50867 argc = PyObject_Length(args);
50868 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
50869 argv[ii] = PyTuple_GET_ITEM(args,ii);
50878 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
50881 const bool is_tuple = PyTuple_Check(argv[1]);
50882 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
50884 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
50885 :PyList_GetItem(argv[1], i))) {
50893 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
50896 const bool is_tuple = PyTuple_Check(argv[2]);
50897 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
50899 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
50900 :PyList_GetItem(argv[2], i))) {
50919 _v = PyCallable_Check(argv[1]);
50923 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
50926 const bool is_tuple = PyTuple_Check(argv[2]);
50927 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
50929 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
50930 :PyList_GetItem(argv[2], i))) {
50949 _v = PyCallable_Check(argv[1]);
50953 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
50956 const bool is_tuple = PyTuple_Check(argv[2]);
50957 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
50959 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
50960 :PyList_GetItem(argv[2], i))) {
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");
50984 PyObject *resultobj = 0;
50986 std::vector< int64_t > *arg2 = 0 ;
50987 std::vector< operations_research::IntVar * > *arg3 = 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 ;
50996 if (!PyArg_UnpackTuple(args,
"Pack_AddWeightedSumEqualVarDimension", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
50999 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Pack_AddWeightedSumEqualVarDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
51003 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
51004 if (!PyErr_Occurred())
51011 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
51012 if (!PyErr_Occurred())
51020 (arg1)->AddWeightedSumEqualVarDimension((std::vector< int64_t >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3);
51034 PyObject *resultobj = 0;
51037 std::vector< operations_research::IntVar * > *arg3 = 0 ;
51040 std::vector< operations_research::IntVar * > temp3 ;
51041 PyObject * obj0 = 0 ;
51042 PyObject * obj1 = 0 ;
51043 PyObject * obj2 = 0 ;
51045 if (!PyArg_UnpackTuple(args,
"Pack_AddWeightedSumEqualVarDimension", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
51048 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Pack_AddWeightedSumEqualVarDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
51053 arg2 = [
input](int64_t i, int64_t j) {
51054 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
51058 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
51059 if (!PyErr_Occurred())
51067 (arg1)->AddWeightedSumEqualVarDimension(arg2,(std::vector< operations_research::IntVar * >
const &)*arg3);
51082 PyObject *argv[4] = {
51088 argc = PyObject_Length(args);
51089 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
51090 argv[ii] = PyTuple_GET_ITEM(args,ii);
51099 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
51102 const bool is_tuple = PyTuple_Check(argv[1]);
51103 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
51105 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
51106 :PyList_GetItem(argv[1], i))) {
51114 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
51117 const bool is_tuple = PyTuple_Check(argv[2]);
51118 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
51121 :PyList_GetItem(argv[2], i))) {
51140 _v = PyCallable_Check(argv[1]);
51144 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
51147 const bool is_tuple = PyTuple_Check(argv[2]);
51148 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
51151 :PyList_GetItem(argv[2], i))) {
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");
51174 PyObject *resultobj = 0;
51176 std::vector< operations_research::IntVar * > *arg2 = 0 ;
51177 std::vector< int64_t > *arg3 = 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 ;
51186 if (!PyArg_UnpackTuple(args,
"Pack_AddSumVariableWeightsLessOrEqualConstantDimension", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
51189 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Pack_AddSumVariableWeightsLessOrEqualConstantDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
51193 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
51194 if (!PyErr_Occurred())
51201 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
51202 if (!PyErr_Occurred())
51210 (arg1)->AddSumVariableWeightsLessOrEqualConstantDimension((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3);
51224 PyObject *resultobj = 0;
51226 std::vector< int64_t > *arg2 = 0 ;
51230 std::vector< int64_t > temp2 ;
51231 PyObject * obj0 = 0 ;
51232 PyObject * obj1 = 0 ;
51233 PyObject * obj2 = 0 ;
51235 if (!PyArg_UnpackTuple(args,
"Pack_AddWeightedSumOfAssignedDimension", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
51238 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Pack_AddWeightedSumOfAssignedDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
51242 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
51243 if (!PyErr_Occurred())
51254 (arg1)->AddWeightedSumOfAssignedDimension((std::vector< int64_t >
const &)*arg2,arg3);
51268 PyObject *resultobj = 0;
51273 PyObject * obj0 = 0 ;
51274 PyObject * obj1 = 0 ;
51276 if (!PyArg_UnpackTuple(args,
"Pack_AddCountUsedBinDimension", 2, 2, &obj0, &obj1))
SWIG_fail;
51287 (arg1)->AddCountUsedBinDimension(arg2);
51301 PyObject *resultobj = 0;
51306 PyObject * obj0 = 0 ;
51307 PyObject * obj1 = 0 ;
51309 if (!PyArg_UnpackTuple(args,
"Pack_AddCountAssignedItemsDimension", 2, 2, &obj0, &obj1))
SWIG_fail;
51312 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Pack_AddCountAssignedItemsDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
51320 (arg1)->AddCountAssignedItemsDimension(arg2);
51334 PyObject *resultobj = 0;
51338 PyObject * obj0 = 0 ;
51340 if (!PyArg_UnpackTuple(args,
"Pack_Post", 1, 1, &obj0))
SWIG_fail;
51362 PyObject *resultobj = 0;
51366 PyObject * obj0 = 0 ;
51368 if (!PyArg_UnpackTuple(args,
"Pack_InitialPropagateWrapper", 1, 1, &obj0))
SWIG_fail;
51376 (arg1)->InitialPropagate();
51390 PyObject *resultobj = 0;
51394 PyObject * obj0 = 0 ;
51395 std::string result;
51397 if (!PyArg_UnpackTuple(args,
"Pack_DebugString", 1, 1, &obj0))
SWIG_fail;
51426 PyObject *resultobj = 0;
51430 PyObject * obj0 = 0 ;
51433 if (!PyArg_UnpackTuple(args,
"DisjunctiveConstraint_SequenceVar", 1, 1, &obj0))
SWIG_fail;
51436 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DisjunctiveConstraint_SequenceVar" "', argument " "1"" of type '" "operations_research::DisjunctiveConstraint *""'");
51455 PyObject *resultobj = 0;
51460 PyObject * obj0 = 0 ;
51461 PyObject * obj1 = 0 ;
51463 if (!PyArg_UnpackTuple(args,
"DisjunctiveConstraint_SetTransitionTime", 2, 2, &obj0, &obj1))
SWIG_fail;
51466 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DisjunctiveConstraint_SetTransitionTime" "', argument " "1"" of type '" "operations_research::DisjunctiveConstraint *""'");
51471 arg2 = [
input](int64_t i, int64_t j) {
51472 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
51477 (arg1)->SetTransitionTime(arg2);
51491 PyObject *resultobj = 0;
51501 PyObject * obj0 = 0 ;
51502 PyObject * obj1 = 0 ;
51503 PyObject * obj2 = 0 ;
51506 if (!PyArg_UnpackTuple(args,
"DisjunctiveConstraint_TransitionTime", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
51509 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DisjunctiveConstraint_TransitionTime" "', argument " "1"" of type '" "operations_research::DisjunctiveConstraint *""'");
51516 arg2 =
static_cast< int >(val2);
51521 arg3 =
static_cast< int >(val3);
51524 result = (int64_t)(arg1)->TransitionTime(arg2,arg3);
51545 PyObject *resultobj = 0;
51550 PyObject * obj0 = 0 ;
51553 if (!PyArg_UnpackTuple(args,
"new_RevInteger", 1, 1, &obj0))
SWIG_fail;
51558 temp1 =
static_cast< long >(val1);
51576 PyObject *resultobj = 0;
51580 PyObject * obj0 = 0 ;
51583 if (!PyArg_UnpackTuple(args,
"RevInteger_Value", 1, 1, &obj0))
SWIG_fail;
51586 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RevInteger_Value" "', argument " "1"" of type '" "operations_research::Rev< int64_t > const *""'");
51605 PyObject *resultobj = 0;
51616 PyObject * obj0 = 0 ;
51617 PyObject * obj1 = 0 ;
51618 PyObject * obj2 = 0 ;
51620 if (!PyArg_UnpackTuple(args,
"RevInteger_SetValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
51635 temp3 =
static_cast< long >(val3);
51639 (arg1)->SetValue(arg2,(
long const &)*arg3);
51653 PyObject *resultobj = 0;
51657 PyObject * obj0 = 0 ;
51659 if (!PyArg_UnpackTuple(args,
"delete_RevInteger", 1, 1, &obj0))
SWIG_fail;
51692 PyObject *resultobj = 0;
51697 PyObject * obj0 = 0 ;
51700 if (!PyArg_UnpackTuple(args,
"new_NumericalRevInteger", 1, 1, &obj0))
SWIG_fail;
51705 temp1 =
static_cast< long >(val1);
51723 PyObject *resultobj = 0;
51734 PyObject * obj0 = 0 ;
51735 PyObject * obj1 = 0 ;
51736 PyObject * obj2 = 0 ;
51738 if (!PyArg_UnpackTuple(args,
"NumericalRevInteger_Add", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
51741 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "NumericalRevInteger_Add" "', argument " "1"" of type '" "operations_research::NumericalRev< int64_t > *""'");
51753 temp3 =
static_cast< long >(val3);
51757 (arg1)->Add(arg2,(
long const &)*arg3);
51771 PyObject *resultobj = 0;
51778 PyObject * obj0 = 0 ;
51779 PyObject * obj1 = 0 ;
51781 if (!PyArg_UnpackTuple(args,
"NumericalRevInteger_Incr", 2, 2, &obj0, &obj1))
SWIG_fail;
51784 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "NumericalRevInteger_Incr" "', argument " "1"" of type '" "operations_research::NumericalRev< int64_t > *""'");
51789 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "NumericalRevInteger_Incr" "', argument " "2"" of type '" "operations_research::Solver *const""'");
51794 (arg1)->Incr(arg2);
51808 PyObject *resultobj = 0;
51815 PyObject * obj0 = 0 ;
51816 PyObject * obj1 = 0 ;
51818 if (!PyArg_UnpackTuple(args,
"NumericalRevInteger_Decr", 2, 2, &obj0, &obj1))
SWIG_fail;
51821 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "NumericalRevInteger_Decr" "', argument " "1"" of type '" "operations_research::NumericalRev< int64_t > *""'");
51826 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "NumericalRevInteger_Decr" "', argument " "2"" of type '" "operations_research::Solver *const""'");
51831 (arg1)->Decr(arg2);
51845 PyObject *resultobj = 0;
51849 PyObject * obj0 = 0 ;
51851 if (!PyArg_UnpackTuple(args,
"delete_NumericalRevInteger", 1, 1, &obj0))
SWIG_fail;
51854 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_NumericalRevInteger" "', argument " "1"" of type '" "operations_research::NumericalRev< int64_t > *""'");
51884 PyObject *resultobj = 0;
51889 PyObject * obj0 = 0 ;
51892 if (!PyArg_UnpackTuple(args,
"new_RevBool", 1, 1, &obj0))
SWIG_fail;
51897 temp1 =
static_cast< bool >(val1);
51915 PyObject *resultobj = 0;
51919 PyObject * obj0 = 0 ;
51922 if (!PyArg_UnpackTuple(args,
"RevBool_Value", 1, 1, &obj0))
SWIG_fail;
51944 PyObject *resultobj = 0;
51955 PyObject * obj0 = 0 ;
51956 PyObject * obj1 = 0 ;
51957 PyObject * obj2 = 0 ;
51959 if (!PyArg_UnpackTuple(args,
"RevBool_SetValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
51974 temp3 =
static_cast< bool >(val3);
51978 (arg1)->SetValue(arg2,(
bool const &)*arg3);
51992 PyObject *resultobj = 0;
51996 PyObject * obj0 = 0 ;
51998 if (!PyArg_UnpackTuple(args,
"delete_RevBool", 1, 1, &obj0))
SWIG_fail;
52031 PyObject *resultobj = 0;
52036 PyObject * obj0 = 0 ;
52037 PyObject * obj1 = 0 ;
52040 if (!PyArg_UnpackTuple(args,
"IntVarContainer_Contains", 2, 2, &obj0, &obj1))
SWIG_fail;
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 *""'");
52065 PyObject *resultobj = 0;
52072 PyObject * obj0 = 0 ;
52073 PyObject * obj1 = 0 ;
52076 if (!PyArg_UnpackTuple(args,
"IntVarContainer_Element", 2, 2, &obj0, &obj1))
SWIG_fail;
52079 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarContainer_Element" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > *""'");
52086 arg2 =
static_cast< int >(val2);
52103 PyObject *resultobj = 0;
52107 PyObject * obj0 = 0 ;
52110 if (!PyArg_UnpackTuple(args,
"IntVarContainer_Size", 1, 1, &obj0))
SWIG_fail;
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 *""'");
52132 PyObject *resultobj = 0;
52136 PyObject * obj0 = 0 ;
52138 if (!PyArg_UnpackTuple(args,
"IntVarContainer_Store", 1, 1, &obj0))
SWIG_fail;
52141 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarContainer_Store" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > *""'");
52160 PyObject *resultobj = 0;
52164 PyObject * obj0 = 0 ;
52166 if (!PyArg_UnpackTuple(args,
"IntVarContainer_Restore", 1, 1, &obj0))
SWIG_fail;
52169 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarContainer_Restore" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > *""'");
52188 PyObject *resultobj = 0;
52195 PyObject * obj0 = 0 ;
52196 PyObject * obj1 = 0 ;
52199 if (!PyArg_UnpackTuple(args,
"IntVarContainer___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
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 *""'");
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 &""'");
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 &""'");
52225 Py_INCREF(Py_NotImplemented);
52226 return Py_NotImplemented;
52231 PyObject *resultobj = 0;
52238 PyObject * obj0 = 0 ;
52239 PyObject * obj1 = 0 ;
52242 if (!PyArg_UnpackTuple(args,
"IntVarContainer___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
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 *""'");
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 &""'");
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 &""'");
52268 Py_INCREF(Py_NotImplemented);
52269 return Py_NotImplemented;
52274 PyObject *resultobj = 0;
52278 PyObject * obj0 = 0 ;
52280 if (!PyArg_UnpackTuple(args,
"delete_IntVarContainer", 1, 1, &obj0))
SWIG_fail;
52283 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_IntVarContainer" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > *""'");
52309 PyObject *resultobj = 0;
52314 PyObject * obj0 = 0 ;
52315 PyObject * obj1 = 0 ;
52318 if (!PyArg_UnpackTuple(args,
"IntervalVarContainer_Contains", 2, 2, &obj0, &obj1))
SWIG_fail;
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 *""'");
52343 PyObject *resultobj = 0;
52350 PyObject * obj0 = 0 ;
52351 PyObject * obj1 = 0 ;
52354 if (!PyArg_UnpackTuple(args,
"IntervalVarContainer_Element", 2, 2, &obj0, &obj1))
SWIG_fail;
52357 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarContainer_Element" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > *""'");
52364 arg2 =
static_cast< int >(val2);
52381 PyObject *resultobj = 0;
52385 PyObject * obj0 = 0 ;
52388 if (!PyArg_UnpackTuple(args,
"IntervalVarContainer_Size", 1, 1, &obj0))
SWIG_fail;
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 *""'");
52410 PyObject *resultobj = 0;
52414 PyObject * obj0 = 0 ;
52416 if (!PyArg_UnpackTuple(args,
"IntervalVarContainer_Store", 1, 1, &obj0))
SWIG_fail;
52419 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarContainer_Store" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > *""'");
52438 PyObject *resultobj = 0;
52442 PyObject * obj0 = 0 ;
52444 if (!PyArg_UnpackTuple(args,
"IntervalVarContainer_Restore", 1, 1, &obj0))
SWIG_fail;
52447 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarContainer_Restore" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > *""'");
52466 PyObject *resultobj = 0;
52473 PyObject * obj0 = 0 ;
52474 PyObject * obj1 = 0 ;
52477 if (!PyArg_UnpackTuple(args,
"IntervalVarContainer___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
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 *""'");
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 &""'");
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 &""'");
52503 Py_INCREF(Py_NotImplemented);
52504 return Py_NotImplemented;
52509 PyObject *resultobj = 0;
52516 PyObject * obj0 = 0 ;
52517 PyObject * obj1 = 0 ;
52520 if (!PyArg_UnpackTuple(args,
"IntervalVarContainer___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
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 *""'");
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 &""'");
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 &""'");
52546 Py_INCREF(Py_NotImplemented);
52547 return Py_NotImplemented;
52552 PyObject *resultobj = 0;
52556 PyObject * obj0 = 0 ;
52558 if (!PyArg_UnpackTuple(args,
"delete_IntervalVarContainer", 1, 1, &obj0))
SWIG_fail;
52561 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_IntervalVarContainer" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > *""'");
52587 PyObject *resultobj = 0;
52592 PyObject * obj0 = 0 ;
52593 PyObject * obj1 = 0 ;
52596 if (!PyArg_UnpackTuple(args,
"SequenceVarContainer_Contains", 2, 2, &obj0, &obj1))
SWIG_fail;
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 *""'");
52621 PyObject *resultobj = 0;
52628 PyObject * obj0 = 0 ;
52629 PyObject * obj1 = 0 ;
52632 if (!PyArg_UnpackTuple(args,
"SequenceVarContainer_Element", 2, 2, &obj0, &obj1))
SWIG_fail;
52635 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarContainer_Element" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > *""'");
52642 arg2 =
static_cast< int >(val2);
52659 PyObject *resultobj = 0;
52663 PyObject * obj0 = 0 ;
52666 if (!PyArg_UnpackTuple(args,
"SequenceVarContainer_Size", 1, 1, &obj0))
SWIG_fail;
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 *""'");
52688 PyObject *resultobj = 0;
52692 PyObject * obj0 = 0 ;
52694 if (!PyArg_UnpackTuple(args,
"SequenceVarContainer_Store", 1, 1, &obj0))
SWIG_fail;
52697 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarContainer_Store" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > *""'");
52716 PyObject *resultobj = 0;
52720 PyObject * obj0 = 0 ;
52722 if (!PyArg_UnpackTuple(args,
"SequenceVarContainer_Restore", 1, 1, &obj0))
SWIG_fail;
52725 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarContainer_Restore" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > *""'");
52744 PyObject *resultobj = 0;
52751 PyObject * obj0 = 0 ;
52752 PyObject * obj1 = 0 ;
52755 if (!PyArg_UnpackTuple(args,
"SequenceVarContainer___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
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 *""'");
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 &""'");
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 &""'");
52781 Py_INCREF(Py_NotImplemented);
52782 return Py_NotImplemented;
52787 PyObject *resultobj = 0;
52794 PyObject * obj0 = 0 ;
52795 PyObject * obj1 = 0 ;
52798 if (!PyArg_UnpackTuple(args,
"SequenceVarContainer___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
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 *""'");
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 &""'");
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 &""'");
52824 Py_INCREF(Py_NotImplemented);
52825 return Py_NotImplemented;
52830 PyObject *resultobj = 0;
52834 PyObject * obj0 = 0 ;
52836 if (!PyArg_UnpackTuple(args,
"delete_SequenceVarContainer", 1, 1, &obj0))
SWIG_fail;
52839 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_SequenceVarContainer" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > *""'");
52865 PyObject *resultobj = 0;
52875 PyObject * obj0 = 0 ;
52876 PyObject * obj1 = 0 ;
52877 PyObject * obj2 = 0 ;
52879 bool upcall =
false;
52882 if (!PyArg_UnpackTuple(args,
"LocalSearchOperator_NextNeighbor", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
52885 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "LocalSearchOperator_NextNeighbor" "', argument " "1"" of type '" "operations_research::LocalSearchOperator *""'");
52890 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "LocalSearchOperator_NextNeighbor" "', argument " "2"" of type '" "operations_research::Assignment *""'");
52895 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "LocalSearchOperator_NextNeighbor" "', argument " "3"" of type '" "operations_research::Assignment *""'");
52906 result = (bool)(arg1)->MakeNextNeighbor(arg2,arg3);
52924 PyObject *resultobj = 0;
52931 PyObject * obj0 = 0 ;
52932 PyObject * obj1 = 0 ;
52934 bool upcall =
false;
52936 if (!PyArg_UnpackTuple(args,
"LocalSearchOperator_Start", 2, 2, &obj0, &obj1))
SWIG_fail;
52939 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "LocalSearchOperator_Start" "', argument " "1"" of type '" "operations_research::LocalSearchOperator *""'");
52944 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "LocalSearchOperator_Start" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
52973 PyObject *resultobj = 0;
52977 PyObject * obj0 = 0 ;
52979 if (!PyArg_UnpackTuple(args,
"disown_LocalSearchOperator", 1, 1, &obj0))
SWIG_fail;
52982 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "disown_LocalSearchOperator" "', argument " "1"" of type '" "operations_research::LocalSearchOperator *""'");
53005 PyObject *resultobj = 0;
53012 PyObject * obj0 = 0 ;
53013 PyObject * obj1 = 0 ;
53015 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperatorTemplate_Start", 2, 2, &obj0, &obj1))
SWIG_fail;
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 > *""'");
53023 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntVarLocalSearchOperatorTemplate_Start" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
53042 PyObject *resultobj = 0;
53046 PyObject * obj0 = 0 ;
53048 bool upcall =
false;
53051 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperatorTemplate_IsIncremental", 1, 1, &obj0))
SWIG_fail;
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 *""'");
53083 PyObject *resultobj = 0;
53087 PyObject * obj0 = 0 ;
53090 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperatorTemplate_Size", 1, 1, &obj0))
SWIG_fail;
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 *""'");
53112 PyObject *resultobj = 0;
53119 PyObject * obj0 = 0 ;
53120 PyObject * obj1 = 0 ;
53123 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperatorTemplate_Value", 2, 2, &obj0, &obj1))
SWIG_fail;
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 *""'");
53133 arg2 =
static_cast< int64_t
>(val2);
53150 PyObject *resultobj = 0;
53157 PyObject * obj0 = 0 ;
53158 PyObject * obj1 = 0 ;
53161 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperatorTemplate_OldValue", 2, 2, &obj0, &obj1))
SWIG_fail;
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 *""'");
53171 arg2 =
static_cast< int64_t
>(val2);
53188 PyObject *resultobj = 0;
53199 PyObject * obj0 = 0 ;
53200 PyObject * obj1 = 0 ;
53201 PyObject * obj2 = 0 ;
53203 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperatorTemplate_SetValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
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 > *""'");
53213 arg2 =
static_cast< int64_t
>(val2);
53218 temp3 =
static_cast< long >(val3);
53222 (arg1)->SetValue(arg2,(
long const &)*arg3);
53236 PyObject *resultobj = 0;
53240 PyObject * obj0 = 0 ;
53242 bool upcall =
false;
53244 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperatorTemplate_OnStart", 1, 1, &obj0))
SWIG_fail;
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 > *""'");
53283 PyObject *resultobj = 0;
53284 PyObject *arg1 = (PyObject *) 0 ;
53285 PyObject * obj0 = 0 ;
53288 if (!PyArg_UnpackTuple(args,
"new_IntVarLocalSearchOperator", 1, 1, &obj0))
SWIG_fail;
53292 if ( arg1 != Py_None ) {
53311 PyObject *resultobj = 0;
53312 PyObject *arg1 = (PyObject *) 0 ;
53313 std::vector< operations_research::IntVar * > *arg2 = 0 ;
53315 std::vector< operations_research::IntVar * > temp2 ;
53318 PyObject * obj0 = 0 ;
53319 PyObject * obj1 = 0 ;
53320 PyObject * obj2 = 0 ;
53323 if (!PyArg_UnpackTuple(args,
"new_IntVarLocalSearchOperator", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
53326 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
53327 if (!PyErr_Occurred())
53337 arg3 =
static_cast< bool >(val3);
53340 if ( arg1 != Py_None ) {
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 ;
53367 if (!PyArg_UnpackTuple(args,
"new_IntVarLocalSearchOperator", 2, 2, &obj0, &obj1))
SWIG_fail;
53370 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
53371 if (!PyErr_Occurred())
53379 if ( arg1 != Py_None ) {
53399 PyObject *argv[4] = {
53405 argc = PyObject_Length(args);
53406 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
53407 argv[ii] = PyTuple_GET_ITEM(args,ii);
53411 _v = (argv[0] != 0);
53418 _v = (argv[0] != 0);
53421 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
53424 const bool is_tuple = PyTuple_Check(argv[1]);
53425 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
53428 :PyList_GetItem(argv[1], i))) {
53441 _v = (argv[0] != 0);
53444 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
53447 const bool is_tuple = PyTuple_Check(argv[1]);
53448 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
53451 :PyList_GetItem(argv[1], i))) {
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");
53480 PyObject *resultobj = 0;
53484 PyObject * obj0 = 0 ;
53486 if (!PyArg_UnpackTuple(args,
"delete_IntVarLocalSearchOperator", 1, 1, &obj0))
SWIG_fail;
53489 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_IntVarLocalSearchOperator" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchOperator *""'");
53508 PyObject *resultobj = 0;
53518 PyObject * obj0 = 0 ;
53519 PyObject * obj1 = 0 ;
53520 PyObject * obj2 = 0 ;
53522 bool upcall =
false;
53525 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperator_NextNeighbor", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
53528 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarLocalSearchOperator_NextNeighbor" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchOperator *""'");
53533 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntVarLocalSearchOperator_NextNeighbor" "', argument " "2"" of type '" "operations_research::Assignment *""'");
53538 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "IntVarLocalSearchOperator_NextNeighbor" "', argument " "3"" of type '" "operations_research::Assignment *""'");
53547 result = (bool)(arg1)->operations_research::IntVarLocalSearchOperator::MakeNextNeighbor(arg2,arg3);
53549 result = (bool)(arg1)->MakeNextNeighbor(arg2,arg3);
53567 PyObject *resultobj = 0;
53571 PyObject * obj0 = 0 ;
53573 bool upcall =
false;
53577 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperator_OneNeighbor", 1, 1, &obj0))
SWIG_fail;
53580 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarLocalSearchOperator_OneNeighbor" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchOperator *""'");
53584 if (!director || !(director->
swig_get_inner(
"MakeOneNeighbor"))) {
53585 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing protected member MakeOneNeighbor");
53596 result = (bool)(darg)->MakeOneNeighbor();
53614 PyObject *resultobj = 0;
53618 PyObject * obj0 = 0 ;
53620 if (!PyArg_UnpackTuple(args,
"disown_IntVarLocalSearchOperator", 1, 1, &obj0))
SWIG_fail;
53623 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "disown_IntVarLocalSearchOperator" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchOperator *""'");
53650 PyObject *resultobj = 0;
53657 PyObject * obj0 = 0 ;
53658 PyObject * obj1 = 0 ;
53660 if (!PyArg_UnpackTuple(args,
"SequenceVarLocalSearchOperatorTemplate_Start", 2, 2, &obj0, &obj1))
SWIG_fail;
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 > *""'");
53668 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "SequenceVarLocalSearchOperatorTemplate_Start" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
53687 PyObject *resultobj = 0;
53691 PyObject * obj0 = 0 ;
53694 if (!PyArg_UnpackTuple(args,
"SequenceVarLocalSearchOperatorTemplate_IsIncremental", 1, 1, &obj0))
SWIG_fail;
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 *""'");
53716 PyObject *resultobj = 0;
53720 PyObject * obj0 = 0 ;
53723 if (!PyArg_UnpackTuple(args,
"SequenceVarLocalSearchOperatorTemplate_Size", 1, 1, &obj0))
SWIG_fail;
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 *""'");
53745 PyObject *resultobj = 0;
53752 PyObject * obj0 = 0 ;
53753 PyObject * obj1 = 0 ;
53754 std::vector< int > *result = 0 ;
53756 if (!PyArg_UnpackTuple(args,
"SequenceVarLocalSearchOperatorTemplate_Value", 2, 2, &obj0, &obj1))
SWIG_fail;
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 *""'");
53766 arg2 =
static_cast< int64_t
>(val2);
53776 resultobj = vector_output_helper(result, &PyInt_FromLong);
53785 PyObject *resultobj = 0;
53792 PyObject * obj0 = 0 ;
53793 PyObject * obj1 = 0 ;
53794 std::vector< int > *result = 0 ;
53796 if (!PyArg_UnpackTuple(args,
"SequenceVarLocalSearchOperatorTemplate_OldValue", 2, 2, &obj0, &obj1))
SWIG_fail;
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 *""'");
53806 arg2 =
static_cast< int64_t
>(val2);
53816 resultobj = vector_output_helper(result, &PyInt_FromLong);
53825 PyObject *resultobj = 0;
53828 std::vector< int > *arg3 = 0 ;
53833 std::vector< int > temp3 ;
53834 PyObject * obj0 = 0 ;
53835 PyObject * obj1 = 0 ;
53836 PyObject * obj2 = 0 ;
53838 if (!PyArg_UnpackTuple(args,
"SequenceVarLocalSearchOperatorTemplate_SetValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
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 > *""'");
53848 arg2 =
static_cast< int64_t
>(val2);
53850 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
53851 if (!PyErr_Occurred())
53859 (arg1)->SetValue(arg2,(std::vector< int >
const &)*arg3);
53873 PyObject *resultobj = 0;
53877 PyObject * obj0 = 0 ;
53879 if (!PyArg_UnpackTuple(args,
"SequenceVarLocalSearchOperatorTemplate_OnStart", 1, 1, &obj0))
SWIG_fail;
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 > *""'");
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 ;
53923 if (!PyArg_UnpackTuple(args,
"new_BaseLns", 2, 2, &obj0, &obj1))
SWIG_fail;
53926 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
53927 if (!PyErr_Occurred())
53935 if ( arg1 != Py_None ) {
53939 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing abstract class or protected constructor");
53955 PyObject *resultobj = 0;
53959 PyObject * obj0 = 0 ;
53961 if (!PyArg_UnpackTuple(args,
"delete_BaseLns", 1, 1, &obj0))
SWIG_fail;
53983 PyObject *resultobj = 0;
53987 PyObject * obj0 = 0 ;
53989 bool upcall =
false;
53991 if (!PyArg_UnpackTuple(args,
"BaseLns_InitFragments", 1, 1, &obj0))
SWIG_fail;
54005 (arg1)->InitFragments();
54023 PyObject *resultobj = 0;
54027 PyObject * obj0 = 0 ;
54029 bool upcall =
false;
54032 if (!PyArg_UnpackTuple(args,
"BaseLns_NextFragment", 1, 1, &obj0))
SWIG_fail;
54046 result = (bool)(arg1)->NextFragment();
54064 PyObject *resultobj = 0;
54071 PyObject * obj0 = 0 ;
54072 PyObject * obj1 = 0 ;
54074 if (!PyArg_UnpackTuple(args,
"BaseLns_AppendToFragment", 2, 2, &obj0, &obj1))
SWIG_fail;
54084 arg2 =
static_cast< int >(val2);
54087 (arg1)->AppendToFragment(arg2);
54101 PyObject *resultobj = 0;
54105 PyObject * obj0 = 0 ;
54108 if (!PyArg_UnpackTuple(args,
"BaseLns_FragmentSize", 1, 1, &obj0))
SWIG_fail;
54130 PyObject *resultobj = 0;
54137 PyObject * obj0 = 0 ;
54138 PyObject * obj1 = 0 ;
54141 if (!PyArg_UnpackTuple(args,
"BaseLns___getitem__", 2, 2, &obj0, &obj1))
SWIG_fail;
54151 arg2 =
static_cast< int >(val2);
54168 PyObject *resultobj = 0;
54172 PyObject * obj0 = 0 ;
54175 if (!PyArg_UnpackTuple(args,
"BaseLns___len__", 1, 1, &obj0))
SWIG_fail;
54197 PyObject *resultobj = 0;
54201 PyObject * obj0 = 0 ;
54203 if (!PyArg_UnpackTuple(args,
"disown_BaseLns", 1, 1, &obj0))
SWIG_fail;
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 ;
54241 if (!PyArg_UnpackTuple(args,
"new_ChangeValue", 2, 2, &obj0, &obj1))
SWIG_fail;
54244 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
54245 if (!PyErr_Occurred())
54253 if ( arg1 != Py_None ) {
54257 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing abstract class or protected constructor");
54273 PyObject *resultobj = 0;
54277 PyObject * obj0 = 0 ;
54279 if (!PyArg_UnpackTuple(args,
"delete_ChangeValue", 1, 1, &obj0))
SWIG_fail;
54301 PyObject *resultobj = 0;
54311 PyObject * obj0 = 0 ;
54312 PyObject * obj1 = 0 ;
54313 PyObject * obj2 = 0 ;
54315 bool upcall =
false;
54318 if (!PyArg_UnpackTuple(args,
"ChangeValue_ModifyValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
54328 arg2 =
static_cast< int64_t
>(val2);
54333 arg3 =
static_cast< int64_t
>(val3);
54342 result = (int64_t)(arg1)->ModifyValue(arg2,arg3);
54360 PyObject *resultobj = 0;
54364 PyObject * obj0 = 0 ;
54366 bool upcall =
false;
54370 if (!PyArg_UnpackTuple(args,
"ChangeValue_OneNeighbor", 1, 1, &obj0))
SWIG_fail;
54377 if (!director || !(director->
swig_get_inner(
"MakeOneNeighbor"))) {
54378 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing protected member MakeOneNeighbor");
54389 result = (bool)(darg)->MakeOneNeighbor();
54407 PyObject *resultobj = 0;
54411 PyObject * obj0 = 0 ;
54413 if (!PyArg_UnpackTuple(args,
"disown_ChangeValue", 1, 1, &obj0))
SWIG_fail;
54443 PyObject *resultobj = 0;
54447 PyObject * obj0 = 0 ;
54450 if (!PyArg_UnpackTuple(args,
"PathOperator_Neighbor", 1, 1, &obj0))
SWIG_fail;
54479 PyObject *resultobj = 0;
54495 PyObject * obj0 = 0 ;
54496 PyObject * obj1 = 0 ;
54497 PyObject * obj2 = 0 ;
54498 PyObject * obj3 = 0 ;
54499 PyObject * obj4 = 0 ;
54502 if (!PyArg_UnpackTuple(args,
"LocalSearchFilter_Accept", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
54505 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "LocalSearchFilter_Accept" "', argument " "1"" of type '" "operations_research::LocalSearchFilter *""'");
54510 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "LocalSearchFilter_Accept" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
54515 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "LocalSearchFilter_Accept" "', argument " "3"" of type '" "operations_research::Assignment const *""'");
54522 arg4 =
static_cast< int64_t
>(val4);
54527 arg5 =
static_cast< int64_t
>(val5);
54544 PyObject *resultobj = 0;
54548 PyObject * obj0 = 0 ;
54551 if (!PyArg_UnpackTuple(args,
"LocalSearchFilter_IsIncremental", 1, 1, &obj0))
SWIG_fail;
54554 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "LocalSearchFilter_IsIncremental" "', argument " "1"" of type '" "operations_research::LocalSearchFilter const *""'");
54573 PyObject *resultobj = 0;
54583 PyObject * obj0 = 0 ;
54584 PyObject * obj1 = 0 ;
54585 PyObject * obj2 = 0 ;
54587 if (!PyArg_UnpackTuple(args,
"LocalSearchFilter_Synchronize", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
54590 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "LocalSearchFilter_Synchronize" "', argument " "1"" of type '" "operations_research::LocalSearchFilter *""'");
54595 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "LocalSearchFilter_Synchronize" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
54600 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "LocalSearchFilter_Synchronize" "', argument " "3"" of type '" "operations_research::Assignment const *""'");
54619 PyObject *resultobj = 0;
54623 PyObject * obj0 = 0 ;
54625 if (!PyArg_UnpackTuple(args,
"delete_LocalSearchFilter", 1, 1, &obj0))
SWIG_fail;
54628 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_LocalSearchFilter" "', argument " "1"" of type '" "operations_research::LocalSearchFilter *""'");
54654 PyObject *resultobj = 0;
54658 PyObject * obj0 = 0 ;
54659 std::string result;
54661 if (!PyArg_UnpackTuple(args,
"LocalSearchFilterManager_DebugString", 1, 1, &obj0))
SWIG_fail;
54664 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "LocalSearchFilterManager_DebugString" "', argument " "1"" of type '" "operations_research::LocalSearchFilterManager const *""'");
54683 PyObject *resultobj = 0;
54684 SwigValueWrapper< std::vector< operations_research::LocalSearchFilterManager::FilterEvent > > arg1 ;
54687 PyObject * obj0 = 0 ;
54690 if (!PyArg_UnpackTuple(args,
"new_LocalSearchFilterManager", 1, 1, &obj0))
SWIG_fail;
54694 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "new_LocalSearchFilterManager" "', argument " "1"" of type '" "std::vector< operations_research::LocalSearchFilterManager::FilterEvent >""'");
54697 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "new_LocalSearchFilterManager" "', argument " "1"" of type '" "std::vector< operations_research::LocalSearchFilterManager::FilterEvent >""'");
54699 std::vector< operations_research::LocalSearchFilterManager::FilterEvent > * temp =
reinterpret_cast< std::vector< operations_research::LocalSearchFilterManager::FilterEvent > *
>(argp1);
54720 PyObject *resultobj = 0;
54721 SwigValueWrapper< std::vector< operations_research::LocalSearchFilter * > > arg1 ;
54722 std::vector< operations_research::LocalSearchFilter * > temp1 ;
54723 PyObject * obj0 = 0 ;
54726 if (!PyArg_UnpackTuple(args,
"new_LocalSearchFilterManager", 1, 1, &obj0))
SWIG_fail;
54728 if (!vector_input_helper(obj0, &temp1, PyObjAs<operations_research::LocalSearchFilter*>)) {
54729 if (!PyErr_Occurred())
54733 arg1 = std::move(temp1);
54752 PyObject *argv[2] = {
54758 argc = PyObject_Length(args);
54759 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
54760 argv[ii] = PyTuple_GET_ITEM(args,ii);
54773 if (!PyTuple_Check(argv[0]) && !PyList_Check(argv[0])) {
54776 const bool is_tuple = PyTuple_Check(argv[0]);
54777 const size_t size = is_tuple ? PyTuple_Size(argv[0]) : PyList_Size(argv[0]);
54780 :PyList_GetItem(argv[0], i))) {
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");
54801 PyObject *resultobj = 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 ;
54828 if (!PyArg_UnpackTuple(args,
"LocalSearchFilterManager_Accept", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
54831 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "LocalSearchFilterManager_Accept" "', argument " "1"" of type '" "operations_research::LocalSearchFilterManager *""'");
54836 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "LocalSearchFilterManager_Accept" "', argument " "2"" of type '" "operations_research::LocalSearchMonitor *const""'");
54841 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "LocalSearchFilterManager_Accept" "', argument " "3"" of type '" "operations_research::Assignment const *""'");
54846 SWIG_exception_fail(
SWIG_ArgError(res4),
"in method '" "LocalSearchFilterManager_Accept" "', argument " "4"" of type '" "operations_research::Assignment const *""'");
54853 arg5 =
static_cast< int64_t
>(val5);
54858 arg6 =
static_cast< int64_t
>(val6);
54875 PyObject *resultobj = 0;
54885 PyObject * obj0 = 0 ;
54886 PyObject * obj1 = 0 ;
54887 PyObject * obj2 = 0 ;
54889 if (!PyArg_UnpackTuple(args,
"LocalSearchFilterManager_Synchronize", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
54892 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "LocalSearchFilterManager_Synchronize" "', argument " "1"" of type '" "operations_research::LocalSearchFilterManager *""'");
54897 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "LocalSearchFilterManager_Synchronize" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
54902 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "LocalSearchFilterManager_Synchronize" "', argument " "3"" of type '" "operations_research::Assignment const *""'");
54921 PyObject *resultobj = 0;
54925 PyObject * obj0 = 0 ;
54927 if (!PyArg_UnpackTuple(args,
"delete_LocalSearchFilterManager", 1, 1, &obj0))
SWIG_fail;
54930 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_LocalSearchFilterManager" "', argument " "1"" of type '" "operations_research::LocalSearchFilterManager *""'");
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 ;
54968 if (!PyArg_UnpackTuple(args,
"new_IntVarLocalSearchFilter", 2, 2, &obj0, &obj1))
SWIG_fail;
54971 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
54972 if (!PyErr_Occurred())
54980 if ( arg1 != Py_None ) {
54984 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing abstract class or protected constructor");
55000 PyObject *resultobj = 0;
55004 PyObject * obj0 = 0 ;
55006 if (!PyArg_UnpackTuple(args,
"delete_IntVarLocalSearchFilter", 1, 1, &obj0))
SWIG_fail;
55009 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_IntVarLocalSearchFilter" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter *""'");
55028 PyObject *resultobj = 0;
55038 PyObject * obj0 = 0 ;
55039 PyObject * obj1 = 0 ;
55040 PyObject * obj2 = 0 ;
55042 bool upcall =
false;
55044 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchFilter_Synchronize", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
55047 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarLocalSearchFilter_Synchronize" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter *""'");
55052 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntVarLocalSearchFilter_Synchronize" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
55057 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "IntVarLocalSearchFilter_Synchronize" "', argument " "3"" of type '" "operations_research::Assignment const *""'");
55086 PyObject *resultobj = 0;
55090 PyObject * obj0 = 0 ;
55093 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchFilter_Size", 1, 1, &obj0))
SWIG_fail;
55096 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarLocalSearchFilter_Size" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter const *""'");
55115 PyObject *resultobj = 0;
55122 PyObject * obj0 = 0 ;
55123 PyObject * obj1 = 0 ;
55126 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchFilter_Value", 2, 2, &obj0, &obj1))
SWIG_fail;
55129 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarLocalSearchFilter_Value" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter const *""'");
55136 arg2 =
static_cast< int >(val2);
55153 PyObject *resultobj = 0;
55158 PyObject * obj0 = 0 ;
55159 PyObject * obj1 = 0 ;
55162 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchFilter_IndexFromVar", 2, 2, &obj0, &obj1))
SWIG_fail;
55165 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarLocalSearchFilter_IndexFromVar" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter const *""'");
55187 PyObject *resultobj = 0;
55191 PyObject * obj0 = 0 ;
55193 if (!PyArg_UnpackTuple(args,
"disown_IntVarLocalSearchFilter", 1, 1, &obj0))
SWIG_fail;
55196 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "disown_IntVarLocalSearchFilter" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter *""'");
55223 PyObject *resultobj = 0;
55227 PyObject * obj0 = 0 ;
55230 if (!PyArg_UnpackTuple(args,
"BooleanVar_Min", 1, 1, &obj0))
SWIG_fail;
55252 PyObject *resultobj = 0;
55259 PyObject * obj0 = 0 ;
55260 PyObject * obj1 = 0 ;
55262 if (!PyArg_UnpackTuple(args,
"BooleanVar_SetMin", 2, 2, &obj0, &obj1))
SWIG_fail;
55272 arg2 =
static_cast< int64_t
>(val2);
55280 (arg1)->SetMin(arg2);
55287 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
55299 PyObject *resultobj = 0;
55303 PyObject * obj0 = 0 ;
55306 if (!PyArg_UnpackTuple(args,
"BooleanVar_Max", 1, 1, &obj0))
SWIG_fail;
55328 PyObject *resultobj = 0;
55335 PyObject * obj0 = 0 ;
55336 PyObject * obj1 = 0 ;
55338 if (!PyArg_UnpackTuple(args,
"BooleanVar_SetMax", 2, 2, &obj0, &obj1))
SWIG_fail;
55348 arg2 =
static_cast< int64_t
>(val2);
55356 (arg1)->SetMax(arg2);
55363 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
55375 PyObject *resultobj = 0;
55385 PyObject * obj0 = 0 ;
55386 PyObject * obj1 = 0 ;
55387 PyObject * obj2 = 0 ;
55389 if (!PyArg_UnpackTuple(args,
"BooleanVar_SetRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
55399 arg2 =
static_cast< int64_t
>(val2);
55404 arg3 =
static_cast< int64_t
>(val3);
55412 (arg1)->SetRange(arg2,arg3);
55419 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
55431 PyObject *resultobj = 0;
55435 PyObject * obj0 = 0 ;
55438 if (!PyArg_UnpackTuple(args,
"BooleanVar_Bound", 1, 1, &obj0))
SWIG_fail;
55460 PyObject *resultobj = 0;
55464 PyObject * obj0 = 0 ;
55467 if (!PyArg_UnpackTuple(args,
"BooleanVar_Value", 1, 1, &obj0))
SWIG_fail;
55489 PyObject *resultobj = 0;
55496 PyObject * obj0 = 0 ;
55497 PyObject * obj1 = 0 ;
55499 if (!PyArg_UnpackTuple(args,
"BooleanVar_RemoveValue", 2, 2, &obj0, &obj1))
SWIG_fail;
55509 arg2 =
static_cast< int64_t
>(val2);
55517 (arg1)->RemoveValue(arg2);
55524 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
55536 PyObject *resultobj = 0;
55546 PyObject * obj0 = 0 ;
55547 PyObject * obj1 = 0 ;
55548 PyObject * obj2 = 0 ;
55550 if (!PyArg_UnpackTuple(args,
"BooleanVar_RemoveInterval", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
55553 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "BooleanVar_RemoveInterval" "', argument " "1"" of type '" "operations_research::BooleanVar *""'");
55560 arg2 =
static_cast< int64_t
>(val2);
55565 arg3 =
static_cast< int64_t
>(val3);
55568 (arg1)->RemoveInterval(arg2,arg3);
55582 PyObject *resultobj = 0;
55589 PyObject * obj0 = 0 ;
55590 PyObject * obj1 = 0 ;
55592 if (!PyArg_UnpackTuple(args,
"BooleanVar_WhenBound", 2, 2, &obj0, &obj1))
SWIG_fail;
55605 (arg1)->WhenBound(arg2);
55619 PyObject *resultobj = 0;
55626 PyObject * obj0 = 0 ;
55627 PyObject * obj1 = 0 ;
55629 if (!PyArg_UnpackTuple(args,
"BooleanVar_WhenRange", 2, 2, &obj0, &obj1))
SWIG_fail;
55642 (arg1)->WhenRange(arg2);
55656 PyObject *resultobj = 0;
55663 PyObject * obj0 = 0 ;
55664 PyObject * obj1 = 0 ;
55666 if (!PyArg_UnpackTuple(args,
"BooleanVar_WhenDomain", 2, 2, &obj0, &obj1))
SWIG_fail;
55679 (arg1)->WhenDomain(arg2);
55693 PyObject *resultobj = 0;
55697 PyObject * obj0 = 0 ;
55700 if (!PyArg_UnpackTuple(args,
"BooleanVar_Size", 1, 1, &obj0))
SWIG_fail;
55722 PyObject *resultobj = 0;
55729 PyObject * obj0 = 0 ;
55730 PyObject * obj1 = 0 ;
55733 if (!PyArg_UnpackTuple(args,
"BooleanVar_Contains", 2, 2, &obj0, &obj1))
SWIG_fail;
55736 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "BooleanVar_Contains" "', argument " "1"" of type '" "operations_research::BooleanVar const *""'");
55743 arg2 =
static_cast< int64_t
>(val2);
55760 PyObject *resultobj = 0;
55767 PyObject * obj0 = 0 ;
55768 PyObject * obj1 = 0 ;
55771 if (!PyArg_UnpackTuple(args,
"BooleanVar_HoleIteratorAux", 2, 2, &obj0, &obj1))
SWIG_fail;
55774 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "BooleanVar_HoleIteratorAux" "', argument " "1"" of type '" "operations_research::BooleanVar const *""'");
55781 arg2 =
static_cast< bool >(val2);
55798 PyObject *resultobj = 0;
55805 PyObject * obj0 = 0 ;
55806 PyObject * obj1 = 0 ;
55809 if (!PyArg_UnpackTuple(args,
"BooleanVar_DomainIteratorAux", 2, 2, &obj0, &obj1))
SWIG_fail;
55812 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "BooleanVar_DomainIteratorAux" "', argument " "1"" of type '" "operations_research::BooleanVar const *""'");
55819 arg2 =
static_cast< bool >(val2);
55836 PyObject *resultobj = 0;
55840 PyObject * obj0 = 0 ;
55841 std::string result;
55843 if (!PyArg_UnpackTuple(args,
"BooleanVar_DebugString", 1, 1, &obj0))
SWIG_fail;
55846 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "BooleanVar_DebugString" "', argument " "1"" of type '" "operations_research::BooleanVar const *""'");
55872 PyObject *resultobj = 0;
55880 PyObject * obj0 = 0 ;
55881 PyObject * obj1 = 0 ;
55882 PyObject * obj2 = 0 ;
55885 if (!PyArg_UnpackTuple(args,
"new_RoutingIndexManager", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
55890 arg1 =
static_cast< int >(val1);
55895 arg2 =
static_cast< int >(val2);
55897 arg3 = operations_research::RoutingNodeIndex(PyInt_AsLong(obj2));
55915 PyObject *resultobj = 0;
55918 std::vector< operations_research::RoutingIndexManager::NodeIndex > *arg3 = 0 ;
55919 std::vector< operations_research::RoutingIndexManager::NodeIndex > *arg4 = 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 ;
55932 if (!PyArg_UnpackTuple(args,
"new_RoutingIndexManager", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
55937 arg1 =
static_cast< int >(val1);
55942 arg2 =
static_cast< int >(val2);
55944 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::RoutingNodeIndex>)) {
55945 if (!PyErr_Occurred())
55952 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::RoutingNodeIndex>)) {
55953 if (!PyErr_Occurred())
55976 PyObject *argv[5] = {
55982 argc = PyObject_Length(args);
55983 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
55984 argv[ii] = PyTuple_GET_ITEM(args,ii);
56021 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
56024 const bool is_tuple = PyTuple_Check(argv[2]);
56025 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
56027 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
56028 :PyList_GetItem(argv[2], i))) {
56036 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
56039 const bool is_tuple = PyTuple_Check(argv[3]);
56040 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
56042 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
56043 :PyList_GetItem(argv[3], i))) {
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");
56067 PyObject *resultobj = 0;
56071 PyObject * obj0 = 0 ;
56073 if (!PyArg_UnpackTuple(args,
"delete_RoutingIndexManager", 1, 1, &obj0))
SWIG_fail;
56076 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_RoutingIndexManager" "', argument " "1"" of type '" "operations_research::RoutingIndexManager *""'");
56095 PyObject *resultobj = 0;
56099 PyObject * obj0 = 0 ;
56102 if (!PyArg_UnpackTuple(args,
"RoutingIndexManager_GetNumberOfNodes", 1, 1, &obj0))
SWIG_fail;
56105 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingIndexManager_GetNumberOfNodes" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56124 PyObject *resultobj = 0;
56128 PyObject * obj0 = 0 ;
56131 if (!PyArg_UnpackTuple(args,
"RoutingIndexManager_GetNumberOfVehicles", 1, 1, &obj0))
SWIG_fail;
56134 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingIndexManager_GetNumberOfVehicles" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56153 PyObject *resultobj = 0;
56157 PyObject * obj0 = 0 ;
56160 if (!PyArg_UnpackTuple(args,
"RoutingIndexManager_GetNumberOfIndices", 1, 1, &obj0))
SWIG_fail;
56163 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingIndexManager_GetNumberOfIndices" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56182 PyObject *resultobj = 0;
56189 PyObject * obj0 = 0 ;
56190 PyObject * obj1 = 0 ;
56193 if (!PyArg_UnpackTuple(args,
"RoutingIndexManager_GetStartIndex", 2, 2, &obj0, &obj1))
SWIG_fail;
56196 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingIndexManager_GetStartIndex" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56203 arg2 =
static_cast< int >(val2);
56220 PyObject *resultobj = 0;
56227 PyObject * obj0 = 0 ;
56228 PyObject * obj1 = 0 ;
56231 if (!PyArg_UnpackTuple(args,
"RoutingIndexManager_GetEndIndex", 2, 2, &obj0, &obj1))
SWIG_fail;
56234 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingIndexManager_GetEndIndex" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56241 arg2 =
static_cast< int >(val2);
56258 PyObject *resultobj = 0;
56263 PyObject * obj0 = 0 ;
56264 PyObject * obj1 = 0 ;
56267 if (!PyArg_UnpackTuple(args,
"RoutingIndexManager_NodeToIndex", 2, 2, &obj0, &obj1))
SWIG_fail;
56270 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingIndexManager_NodeToIndex" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56274 arg2 = operations_research::RoutingNodeIndex(PyInt_AsLong(obj1));
56292 PyObject *resultobj = 0;
56299 PyObject * obj0 = 0 ;
56300 PyObject * obj1 = 0 ;
56303 if (!PyArg_UnpackTuple(args,
"RoutingIndexManager_IndexToNode", 2, 2, &obj0, &obj1))
SWIG_fail;
56306 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingIndexManager_IndexToNode" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56313 arg2 =
static_cast< int64_t
>(val2);
56323 resultobj = PyInt_FromLong((&result)->
value());
56343 PyObject *resultobj = 0;
56346 if (!PyArg_UnpackTuple(args,
"DefaultRoutingModelParameters", 0, 0))
SWIG_fail;
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);
56365 PyObject*
const python_encoded_protobuf = PyBytes_FromStringAndSize(
56366 encoded_protobuf.c_str(), encoded_protobuf.size());
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;
56389 PyObject *resultobj = 0;
56392 if (!PyArg_UnpackTuple(args,
"DefaultRoutingSearchParameters", 0, 0))
SWIG_fail;
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);
56411 PyObject*
const python_encoded_protobuf = PyBytes_FromStringAndSize(
56412 encoded_protobuf.c_str(), encoded_protobuf.size());
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;
56435 PyObject *resultobj = 0;
56437 PyObject * obj0 = 0 ;
56438 std::string result;
56440 if (!PyArg_UnpackTuple(args,
"FindErrorInRoutingSearchParameters", 1, 1, &obj0))
SWIG_fail;
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);
56452 Py_DECREF(pyresult);
56483 PyObject *pyobj = 0;
56497 PyObject *pyobj = 0;
56511 PyObject *pyobj = 0;
56519 PyObject *resultobj = 0;
56523 PyObject * obj0 = 0 ;
56526 if (!PyArg_UnpackTuple(args,
"new_RoutingModel", 1, 1, &obj0))
SWIG_fail;
56529 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "new_RoutingModel" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const &""'");
56532 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "new_RoutingModel" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const &""'");
56551 PyObject *resultobj = 0;
56556 PyObject * obj0 = 0 ;
56557 PyObject * obj1 = 0 ;
56560 if (!PyArg_UnpackTuple(args,
"new_RoutingModel", 2, 2, &obj0, &obj1))
SWIG_fail;
56563 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "new_RoutingModel" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const &""'");
56566 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "new_RoutingModel" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const &""'");
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);
56580 Py_DECREF(pyresult);
56606 PyObject *argv[3] = {
56612 argc = PyObject_Length(args);
56613 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
56614 argv[ii] = PyTuple_GET_ITEM(args,ii);
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)) {
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");
56662 PyObject *resultobj = 0;
56666 PyObject * obj0 = 0 ;
56668 if (!PyArg_UnpackTuple(args,
"delete_RoutingModel", 1, 1, &obj0))
SWIG_fail;
56690 PyObject *resultobj = 0;
56692 std::vector< int64_t > arg2 ;
56695 std::vector< int64_t > temp2 ;
56696 PyObject * obj0 = 0 ;
56697 PyObject * obj1 = 0 ;
56700 if (!PyArg_UnpackTuple(args,
"RoutingModel_RegisterUnaryTransitVector", 2, 2, &obj0, &obj1))
SWIG_fail;
56703 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RegisterUnaryTransitVector" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56707 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
56708 if (!PyErr_Occurred())
56712 arg2 = std::move(temp2);
56716 result = (int)(arg1)->RegisterUnaryTransitVector(arg2);
56730 PyObject *resultobj = 0;
56735 PyObject * obj0 = 0 ;
56736 PyObject * obj1 = 0 ;
56739 if (!PyArg_UnpackTuple(args,
"RoutingModel_RegisterUnaryTransitCallback", 2, 2, &obj0, &obj1))
SWIG_fail;
56742 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RegisterUnaryTransitCallback" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56748 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
56753 result = (int)(arg1)->RegisterUnaryTransitCallback(arg2);
56767 PyObject *resultobj = 0;
56772 PyObject * obj0 = 0 ;
56773 PyObject * obj1 = 0 ;
56776 if (!PyArg_UnpackTuple(args,
"RoutingModel_RegisterPositiveUnaryTransitCallback", 2, 2, &obj0, &obj1))
SWIG_fail;
56779 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RegisterPositiveUnaryTransitCallback" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56785 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
56790 result = (int)(arg1)->RegisterPositiveUnaryTransitCallback(arg2);
56804 PyObject *resultobj = 0;
56806 std::vector< std::vector< int64_t > > arg2 ;
56809 std::vector< std::vector< int64_t > > temp2 ;
56810 PyObject * obj0 = 0 ;
56811 PyObject * obj1 = 0 ;
56814 if (!PyArg_UnpackTuple(args,
"RoutingModel_RegisterTransitMatrix", 2, 2, &obj0, &obj1))
SWIG_fail;
56817 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RegisterTransitMatrix" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56821 if (!PyList_Check(obj1)) {
56822 PyErr_SetString(PyExc_TypeError,
"Expecting a list of tuples");
56825 int len = PyList_Size(obj1);
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");
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),
56848 arg2 = std::move(temp2);
56852 result = (int)(arg1)->RegisterTransitMatrix(arg2);
56866 PyObject *resultobj = 0;
56871 PyObject * obj0 = 0 ;
56872 PyObject * obj1 = 0 ;
56875 if (!PyArg_UnpackTuple(args,
"RoutingModel_RegisterTransitCallback", 2, 2, &obj0, &obj1))
SWIG_fail;
56878 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RegisterTransitCallback" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56883 arg2 = [
input](int64_t i, int64_t j) {
56884 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
56889 result = (int)(arg1)->RegisterTransitCallback(arg2);
56903 PyObject *resultobj = 0;
56908 PyObject * obj0 = 0 ;
56909 PyObject * obj1 = 0 ;
56912 if (!PyArg_UnpackTuple(args,
"RoutingModel_RegisterPositiveTransitCallback", 2, 2, &obj0, &obj1))
SWIG_fail;
56915 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RegisterPositiveTransitCallback" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56920 arg2 = [
input](int64_t i, int64_t j) {
56921 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
56926 result = (int)(arg1)->RegisterPositiveTransitCallback(arg2);
56940 PyObject *resultobj = 0;
56947 PyObject * obj0 = 0 ;
56948 PyObject * obj1 = 0 ;
56951 if (!PyArg_UnpackTuple(args,
"RoutingModel_TransitCallback", 2, 2, &obj0, &obj1))
SWIG_fail;
56954 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_TransitCallback" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
56961 arg2 =
static_cast< int >(val2);
56978 PyObject *resultobj = 0;
56985 PyObject * obj0 = 0 ;
56986 PyObject * obj1 = 0 ;
56989 if (!PyArg_UnpackTuple(args,
"RoutingModel_UnaryTransitCallbackOrNull", 2, 2, &obj0, &obj1))
SWIG_fail;
56992 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_UnaryTransitCallbackOrNull" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
56999 arg2 =
static_cast< int >(val2);
57016 PyObject *resultobj = 0;
57022 std::string *arg6 = 0 ;
57034 PyObject * obj0 = 0 ;
57035 PyObject * obj1 = 0 ;
57036 PyObject * obj2 = 0 ;
57037 PyObject * obj3 = 0 ;
57038 PyObject * obj4 = 0 ;
57039 PyObject * obj5 = 0 ;
57042 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddDimension", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
57045 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddDimension" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57052 arg2 =
static_cast< int >(val2);
57057 arg3 =
static_cast< int64_t
>(val3);
57062 arg4 =
static_cast< int64_t
>(val4);
57067 arg5 =
static_cast< bool >(val5);
57069 std::string *ptr = (std::string *)0;
57081 result = (bool)(arg1)->AddDimension(arg2,arg3,arg4,arg5,(std::string
const &)*arg6);
57097 PyObject *resultobj = 0;
57099 std::vector< int > *arg2 = 0 ;
57103 std::string *arg6 = 0 ;
57106 std::vector< int > temp2 ;
57114 PyObject * obj0 = 0 ;
57115 PyObject * obj1 = 0 ;
57116 PyObject * obj2 = 0 ;
57117 PyObject * obj3 = 0 ;
57118 PyObject * obj4 = 0 ;
57119 PyObject * obj5 = 0 ;
57122 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddDimensionWithVehicleTransits", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
57125 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddDimensionWithVehicleTransits" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57129 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
57130 if (!PyErr_Occurred())
57140 arg3 =
static_cast< int64_t
>(val3);
57145 arg4 =
static_cast< int64_t
>(val4);
57150 arg5 =
static_cast< bool >(val5);
57152 std::string *ptr = (std::string *)0;
57155 SWIG_exception_fail(
SWIG_ArgError(res6),
"in method '" "RoutingModel_AddDimensionWithVehicleTransits" "', argument " "6"" of type '" "std::string const &""'");
57158 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddDimensionWithVehicleTransits" "', argument " "6"" of type '" "std::string const &""'");
57164 result = (bool)(arg1)->AddDimensionWithVehicleTransits((std::vector< int >
const &)*arg2,arg3,arg4,arg5,(std::string
const &)*arg6);
57180 PyObject *resultobj = 0;
57184 std::vector< int64_t > arg4 ;
57186 std::string *arg6 = 0 ;
57193 std::vector< int64_t > temp4 ;
57197 PyObject * obj0 = 0 ;
57198 PyObject * obj1 = 0 ;
57199 PyObject * obj2 = 0 ;
57200 PyObject * obj3 = 0 ;
57201 PyObject * obj4 = 0 ;
57202 PyObject * obj5 = 0 ;
57205 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddDimensionWithVehicleCapacity", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
57208 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddDimensionWithVehicleCapacity" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57215 arg2 =
static_cast< int >(val2);
57220 arg3 =
static_cast< int64_t
>(val3);
57222 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
57223 if (!PyErr_Occurred())
57227 arg4 = std::move(temp4);
57233 arg5 =
static_cast< bool >(val5);
57235 std::string *ptr = (std::string *)0;
57238 SWIG_exception_fail(
SWIG_ArgError(res6),
"in method '" "RoutingModel_AddDimensionWithVehicleCapacity" "', argument " "6"" of type '" "std::string const &""'");
57241 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddDimensionWithVehicleCapacity" "', argument " "6"" of type '" "std::string const &""'");
57247 result = (bool)(arg1)->AddDimensionWithVehicleCapacity(arg2,arg3,arg4,arg5,(std::string
const &)*arg6);
57263 PyObject *resultobj = 0;
57265 std::vector< int > *arg2 = 0 ;
57267 std::vector< int64_t > arg4 ;
57269 std::string *arg6 = 0 ;
57272 std::vector< int > temp2 ;
57275 std::vector< int64_t > temp4 ;
57279 PyObject * obj0 = 0 ;
57280 PyObject * obj1 = 0 ;
57281 PyObject * obj2 = 0 ;
57282 PyObject * obj3 = 0 ;
57283 PyObject * obj4 = 0 ;
57284 PyObject * obj5 = 0 ;
57287 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddDimensionWithVehicleTransitAndCapacity", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
57290 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddDimensionWithVehicleTransitAndCapacity" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57294 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
57295 if (!PyErr_Occurred())
57303 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "RoutingModel_AddDimensionWithVehicleTransitAndCapacity" "', argument " "3"" of type '" "int64_t""'");
57305 arg3 =
static_cast< int64_t
>(val3);
57307 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
57308 if (!PyErr_Occurred())
57312 arg4 = std::move(temp4);
57316 SWIG_exception_fail(
SWIG_ArgError(ecode5),
"in method '" "RoutingModel_AddDimensionWithVehicleTransitAndCapacity" "', argument " "5"" of type '" "bool""'");
57318 arg5 =
static_cast< bool >(val5);
57320 std::string *ptr = (std::string *)0;
57323 SWIG_exception_fail(
SWIG_ArgError(res6),
"in method '" "RoutingModel_AddDimensionWithVehicleTransitAndCapacity" "', argument " "6"" of type '" "std::string const &""'");
57326 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddDimensionWithVehicleTransitAndCapacity" "', argument " "6"" of type '" "std::string const &""'");
57332 result = (bool)(arg1)->AddDimensionWithVehicleTransitAndCapacity((std::vector< int >
const &)*arg2,arg3,arg4,arg5,(std::string
const &)*arg6);
57348 PyObject *resultobj = 0;
57354 std::string *arg6 = 0 ;
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;
57374 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddConstantDimensionWithSlack", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
57377 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddConstantDimensionWithSlack" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57384 arg2 =
static_cast< int64_t
>(val2);
57389 arg3 =
static_cast< int64_t
>(val3);
57394 arg4 =
static_cast< int64_t
>(val4);
57399 arg5 =
static_cast< bool >(val5);
57401 std::string *ptr = (std::string *)0;
57404 SWIG_exception_fail(
SWIG_ArgError(res6),
"in method '" "RoutingModel_AddConstantDimensionWithSlack" "', argument " "6"" of type '" "std::string const &""'");
57407 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddConstantDimensionWithSlack" "', argument " "6"" of type '" "std::string const &""'");
57413 result = (arg1)->AddConstantDimensionWithSlack(arg2,arg3,arg4,arg5,(std::string
const &)*arg6);
57420 resultobj = Py_BuildValue(
"(ib)", (&result)->first, (&result)->second);
57431 PyObject *resultobj = 0;
57436 std::string *arg5 = 0 ;
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;
57453 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddConstantDimension", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
57456 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddConstantDimension" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57463 arg2 =
static_cast< int64_t
>(val2);
57468 arg3 =
static_cast< int64_t
>(val3);
57473 arg4 =
static_cast< bool >(val4);
57475 std::string *ptr = (std::string *)0;
57481 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddConstantDimension" "', argument " "5"" of type '" "std::string const &""'");
57487 result = (arg1)->AddConstantDimension(arg2,arg3,arg4,(std::string
const &)*arg5);
57494 resultobj = Py_BuildValue(
"(ib)", (&result)->first, (&result)->second);
57505 PyObject *resultobj = 0;
57507 std::vector< int64_t > arg2 ;
57510 std::string *arg5 = 0 ;
57513 std::vector< int64_t > temp2 ;
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;
57526 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddVectorDimension", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
57529 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddVectorDimension" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57533 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
57534 if (!PyErr_Occurred())
57538 arg2 = std::move(temp2);
57544 arg3 =
static_cast< int64_t
>(val3);
57549 arg4 =
static_cast< bool >(val4);
57551 std::string *ptr = (std::string *)0;
57557 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddVectorDimension" "', argument " "5"" of type '" "std::string const &""'");
57563 result = (arg1)->AddVectorDimension(arg2,arg3,arg4,(std::string
const &)*arg5);
57570 resultobj = Py_BuildValue(
"(ib)", (&result)->first, (&result)->second);
57581 PyObject *resultobj = 0;
57583 std::vector< std::vector< int64_t > > arg2 ;
57586 std::string *arg5 = 0 ;
57589 std::vector< std::vector< int64_t > > temp2 ;
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;
57602 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddMatrixDimension", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
57605 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddMatrixDimension" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57609 if (!PyList_Check(obj1)) {
57610 PyErr_SetString(PyExc_TypeError,
"Expecting a list of tuples");
57613 int len = PyList_Size(obj1);
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");
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),
57636 arg2 = std::move(temp2);
57642 arg3 =
static_cast< int64_t
>(val3);
57647 arg4 =
static_cast< bool >(val4);
57649 std::string *ptr = (std::string *)0;
57655 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddMatrixDimension" "', argument " "5"" of type '" "std::string const &""'");
57661 result = (arg1)->AddMatrixDimension(arg2,arg3,arg4,(std::string
const &)*arg5);
57668 resultobj = Py_BuildValue(
"(ib)", (&result)->first, (&result)->second);
57679 PyObject *resultobj = 0;
57682 SwigValueWrapper< std::vector< operations_research::IntVar * > > arg3 ;
57683 SwigValueWrapper< std::vector< operations_research::IntVar * > > arg4 ;
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 ;
57697 if (!PyArg_UnpackTuple(args,
"RoutingModel_MakePathSpansAndTotalSlacks", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
57700 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_MakePathSpansAndTotalSlacks" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57705 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_MakePathSpansAndTotalSlacks" "', argument " "2"" of type '" "operations_research::RoutingDimension const *""'");
57709 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
57710 if (!PyErr_Occurred())
57714 arg3 = std::move(temp3);
57717 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
57718 if (!PyErr_Occurred())
57722 arg4 = std::move(temp4);
57735 Py_INCREF(resultobj);
57746 PyObject *resultobj = 0;
57750 PyObject * obj0 = 0 ;
57751 SwigValueWrapper< std::vector< std::string > > result;
57753 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetAllDimensionNames", 1, 1, &obj0))
SWIG_fail;
57756 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetAllDimensionNames" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57768 resultobj = vector_output_helper(&result, &SwigString_FromString);
57777 PyObject *resultobj = 0;
57781 PyObject * obj0 = 0 ;
57782 std::vector< operations_research::RoutingDimension * > *result = 0 ;
57784 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDimensions", 1, 1, &obj0))
SWIG_fail;
57787 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDimensions" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57806 PyObject *resultobj = 0;
57810 PyObject * obj0 = 0 ;
57811 SwigValueWrapper< std::vector< operations_research::RoutingDimension * > > result;
57813 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDimensionsWithSoftOrSpanCosts", 1, 1, &obj0))
SWIG_fail;
57816 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDimensionsWithSoftOrSpanCosts" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57835 PyObject *resultobj = 0;
57839 PyObject * obj0 = 0 ;
57840 std::vector< std::unique_ptr< operations_research::GlobalDimensionCumulOptimizer > > *result = 0 ;
57842 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetGlobalDimensionCumulOptimizers", 1, 1, &obj0))
SWIG_fail;
57845 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetGlobalDimensionCumulOptimizers" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57850 result = (std::vector< std::unique_ptr< operations_research::GlobalDimensionCumulOptimizer > > *) &((
operations_research::RoutingModel const *)arg1)->GetGlobalDimensionCumulOptimizers();
57864 PyObject *resultobj = 0;
57868 PyObject * obj0 = 0 ;
57869 std::vector< std::unique_ptr< operations_research::GlobalDimensionCumulOptimizer > > *result = 0 ;
57871 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetGlobalDimensionCumulMPOptimizers", 1, 1, &obj0))
SWIG_fail;
57874 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetGlobalDimensionCumulMPOptimizers" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57879 result = (std::vector< std::unique_ptr< operations_research::GlobalDimensionCumulOptimizer > > *) &((
operations_research::RoutingModel const *)arg1)->GetGlobalDimensionCumulMPOptimizers();
57893 PyObject *resultobj = 0;
57897 PyObject * obj0 = 0 ;
57898 std::vector< std::unique_ptr< operations_research::LocalDimensionCumulOptimizer > > *result = 0 ;
57900 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetLocalDimensionCumulOptimizers", 1, 1, &obj0))
SWIG_fail;
57903 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetLocalDimensionCumulOptimizers" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57908 result = (std::vector< std::unique_ptr< operations_research::LocalDimensionCumulOptimizer > > *) &((
operations_research::RoutingModel const *)arg1)->GetLocalDimensionCumulOptimizers();
57922 PyObject *resultobj = 0;
57926 PyObject * obj0 = 0 ;
57927 std::vector< std::unique_ptr< operations_research::LocalDimensionCumulOptimizer > > *result = 0 ;
57929 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetLocalDimensionCumulMPOptimizers", 1, 1, &obj0))
SWIG_fail;
57932 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetLocalDimensionCumulMPOptimizers" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57937 result = (std::vector< std::unique_ptr< operations_research::LocalDimensionCumulOptimizer > > *) &((
operations_research::RoutingModel const *)arg1)->GetLocalDimensionCumulMPOptimizers();
57951 PyObject *resultobj = 0;
57958 PyObject * obj0 = 0 ;
57959 PyObject * obj1 = 0 ;
57962 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetMutableGlobalCumulOptimizer", 2, 2, &obj0, &obj1))
SWIG_fail;
57965 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetMutableGlobalCumulOptimizer" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57970 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_GetMutableGlobalCumulOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
57973 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_GetMutableGlobalCumulOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
57992 PyObject *resultobj = 0;
57999 PyObject * obj0 = 0 ;
58000 PyObject * obj1 = 0 ;
58003 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetMutableGlobalCumulMPOptimizer", 2, 2, &obj0, &obj1))
SWIG_fail;
58006 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetMutableGlobalCumulMPOptimizer" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58011 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_GetMutableGlobalCumulMPOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
58014 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_GetMutableGlobalCumulMPOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
58033 PyObject *resultobj = 0;
58040 PyObject * obj0 = 0 ;
58041 PyObject * obj1 = 0 ;
58044 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetMutableLocalCumulOptimizer", 2, 2, &obj0, &obj1))
SWIG_fail;
58047 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetMutableLocalCumulOptimizer" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58052 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_GetMutableLocalCumulOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
58055 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_GetMutableLocalCumulOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
58074 PyObject *resultobj = 0;
58081 PyObject * obj0 = 0 ;
58082 PyObject * obj1 = 0 ;
58085 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetMutableLocalCumulMPOptimizer", 2, 2, &obj0, &obj1))
SWIG_fail;
58088 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetMutableLocalCumulMPOptimizer" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58093 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_GetMutableLocalCumulMPOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
58096 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_GetMutableLocalCumulMPOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
58115 PyObject *resultobj = 0;
58117 std::string *arg2 = 0 ;
58121 PyObject * obj0 = 0 ;
58122 PyObject * obj1 = 0 ;
58125 if (!PyArg_UnpackTuple(args,
"RoutingModel_HasDimension", 2, 2, &obj0, &obj1))
SWIG_fail;
58128 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_HasDimension" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58132 std::string *ptr = (std::string *)0;
58160 PyObject *resultobj = 0;
58162 std::string *arg2 = 0 ;
58166 PyObject * obj0 = 0 ;
58167 PyObject * obj1 = 0 ;
58170 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDimensionOrDie", 2, 2, &obj0, &obj1))
SWIG_fail;
58173 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDimensionOrDie" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58177 std::string *ptr = (std::string *)0;
58183 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_GetDimensionOrDie" "', argument " "2"" of type '" "std::string const &""'");
58205 PyObject *resultobj = 0;
58207 std::string *arg2 = 0 ;
58211 PyObject * obj0 = 0 ;
58212 PyObject * obj1 = 0 ;
58215 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetMutableDimension", 2, 2, &obj0, &obj1))
SWIG_fail;
58218 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetMutableDimension" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58222 std::string *ptr = (std::string *)0;
58228 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_GetMutableDimension" "', argument " "2"" of type '" "std::string const &""'");
58250 PyObject *resultobj = 0;
58252 std::string *arg2 = 0 ;
58256 PyObject * obj0 = 0 ;
58257 PyObject * obj1 = 0 ;
58259 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetPrimaryConstrainedDimension", 2, 2, &obj0, &obj1))
SWIG_fail;
58262 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetPrimaryConstrainedDimension" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58266 std::string *ptr = (std::string *)0;
58269 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_SetPrimaryConstrainedDimension" "', argument " "2"" of type '" "std::string const &""'");
58272 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_SetPrimaryConstrainedDimension" "', argument " "2"" of type '" "std::string const &""'");
58278 (arg1)->SetPrimaryConstrainedDimension((std::string
const &)*arg2);
58294 PyObject *resultobj = 0;
58298 PyObject * obj0 = 0 ;
58299 std::string *result = 0 ;
58301 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetPrimaryConstrainedDimension", 1, 1, &obj0))
SWIG_fail;
58304 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetPrimaryConstrainedDimension" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58323 PyObject *resultobj = 0;
58330 PyObject * obj0 = 0 ;
58331 PyObject * obj1 = 0 ;
58332 std::vector< int > *result = 0 ;
58334 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDimensionResourceGroupIndices", 2, 2, &obj0, &obj1))
SWIG_fail;
58337 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDimensionResourceGroupIndices" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58342 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_GetDimensionResourceGroupIndices" "', argument " "2"" of type '" "operations_research::RoutingDimension const *""'");
58354 resultobj = vector_output_helper(result, &PyInt_FromLong);
58363 PyObject *resultobj = 0;
58365 std::vector< int64_t > *arg2 = 0 ;
58370 std::vector< int64_t > temp2 ;
58375 PyObject * obj0 = 0 ;
58376 PyObject * obj1 = 0 ;
58377 PyObject * obj2 = 0 ;
58378 PyObject * obj3 = 0 ;
58381 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddDisjunction", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
58384 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddDisjunction" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58388 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
58389 if (!PyErr_Occurred())
58399 arg3 =
static_cast< int64_t
>(val3);
58404 arg4 =
static_cast< int64_t
>(val4);
58407 result = (arg1)->AddDisjunction((std::vector< int64_t >
const &)*arg2,arg3,arg4);
58414 resultobj = PyInt_FromLong((&result)->
value());
58423 PyObject *resultobj = 0;
58425 std::vector< int64_t > *arg2 = 0 ;
58429 std::vector< int64_t > temp2 ;
58432 PyObject * obj0 = 0 ;
58433 PyObject * obj1 = 0 ;
58434 PyObject * obj2 = 0 ;
58437 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddDisjunction", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
58440 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddDisjunction" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58444 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
58445 if (!PyErr_Occurred())
58455 arg3 =
static_cast< int64_t
>(val3);
58458 result = (arg1)->AddDisjunction((std::vector< int64_t >
const &)*arg2,arg3);
58465 resultobj = PyInt_FromLong((&result)->
value());
58474 PyObject *resultobj = 0;
58476 std::vector< int64_t > *arg2 = 0 ;
58479 std::vector< int64_t > temp2 ;
58480 PyObject * obj0 = 0 ;
58481 PyObject * obj1 = 0 ;
58484 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddDisjunction", 2, 2, &obj0, &obj1))
SWIG_fail;
58487 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddDisjunction" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58491 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
58492 if (!PyErr_Occurred())
58500 result = (arg1)->AddDisjunction((std::vector< int64_t >
const &)*arg2);
58507 resultobj = PyInt_FromLong((&result)->
value());
58517 PyObject *argv[5] = {
58523 argc = PyObject_Length(args);
58524 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
58525 argv[ii] = PyTuple_GET_ITEM(args,ii);
58534 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
58537 const bool is_tuple = PyTuple_Check(argv[1]);
58538 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
58540 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
58541 :PyList_GetItem(argv[1], i))) {
58559 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
58562 const bool is_tuple = PyTuple_Check(argv[1]);
58563 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
58565 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
58566 :PyList_GetItem(argv[1], i))) {
58590 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
58593 const bool is_tuple = PyTuple_Check(argv[1]);
58594 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
58596 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
58597 :PyList_GetItem(argv[1], i))) {
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");
58632 PyObject *resultobj = 0;
58639 PyObject * obj0 = 0 ;
58640 PyObject * obj1 = 0 ;
58641 std::vector< operations_research::RoutingModel::DisjunctionIndex > *result = 0 ;
58643 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDisjunctionIndices", 2, 2, &obj0, &obj1))
SWIG_fail;
58646 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDisjunctionIndices" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58653 arg2 =
static_cast< int64_t
>(val2);
58656 result = (std::vector< operations_research::RoutingModel::DisjunctionIndex > *) &((
operations_research::RoutingModel const *)arg1)->GetDisjunctionIndices(arg2);
58663 resultobj = vector_output_helper(result, &PyInt_FromIndexT<operations_research::RoutingDisjunctionIndex>);
58672 PyObject *resultobj = 0;
58677 PyObject * obj0 = 0 ;
58678 PyObject * obj1 = 0 ;
58681 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDisjunctionPenalty", 2, 2, &obj0, &obj1))
SWIG_fail;
58684 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDisjunctionPenalty" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58688 arg2 = operations_research::RoutingDisjunctionIndex(PyInt_AsLong(obj1));
58706 PyObject *resultobj = 0;
58711 PyObject * obj0 = 0 ;
58712 PyObject * obj1 = 0 ;
58715 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDisjunctionMaxCardinality", 2, 2, &obj0, &obj1))
SWIG_fail;
58718 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDisjunctionMaxCardinality" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58722 arg2 = operations_research::RoutingDisjunctionIndex(PyInt_AsLong(obj1));
58740 PyObject *resultobj = 0;
58744 PyObject * obj0 = 0 ;
58747 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetNumberOfDisjunctions", 1, 1, &obj0))
SWIG_fail;
58750 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetNumberOfDisjunctions" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58769 PyObject *resultobj = 0;
58773 PyObject * obj0 = 0 ;
58774 std::vector< std::pair< int64_t,int64_t > > result;
58776 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetPerfectBinaryDisjunctions", 1, 1, &obj0))
SWIG_fail;
58779 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetPerfectBinaryDisjunctions" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58798 PyObject *resultobj = 0;
58802 PyObject * obj0 = 0 ;
58804 if (!PyArg_UnpackTuple(args,
"RoutingModel_IgnoreDisjunctionsAlreadyForcedToZero", 1, 1, &obj0))
SWIG_fail;
58807 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_IgnoreDisjunctionsAlreadyForcedToZero" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58812 (arg1)->IgnoreDisjunctionsAlreadyForcedToZero();
58826 PyObject *resultobj = 0;
58828 std::vector< int64_t > *arg2 = 0 ;
58832 std::vector< int64_t > temp2 ;
58835 PyObject * obj0 = 0 ;
58836 PyObject * obj1 = 0 ;
58837 PyObject * obj2 = 0 ;
58839 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddSoftSameVehicleConstraint", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
58842 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddSoftSameVehicleConstraint" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58846 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
58847 if (!PyErr_Occurred())
58857 arg3 =
static_cast< int64_t
>(val3);
58860 (arg1)->AddSoftSameVehicleConstraint((std::vector< int64_t >
const &)*arg2,arg3);
58874 PyObject *resultobj = 0;
58876 std::vector< int > *arg2 = 0 ;
58880 std::vector< int > temp2 ;
58883 PyObject * obj0 = 0 ;
58884 PyObject * obj1 = 0 ;
58885 PyObject * obj2 = 0 ;
58887 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetAllowedVehiclesForIndex", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
58890 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetAllowedVehiclesForIndex" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58894 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
58895 if (!PyErr_Occurred())
58905 arg3 =
static_cast< int64_t
>(val3);
58908 (arg1)->SetAllowedVehiclesForIndex((std::vector< int >
const &)*arg2,arg3);
58922 PyObject *resultobj = 0;
58932 PyObject * obj0 = 0 ;
58933 PyObject * obj1 = 0 ;
58934 PyObject * obj2 = 0 ;
58937 if (!PyArg_UnpackTuple(args,
"RoutingModel_IsVehicleAllowedForIndex", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
58940 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_IsVehicleAllowedForIndex" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58947 arg2 =
static_cast< int >(val2);
58952 arg3 =
static_cast< int64_t
>(val3);
58955 result = (bool)(arg1)->IsVehicleAllowedForIndex(arg2,arg3);
58969 PyObject *resultobj = 0;
58979 PyObject * obj0 = 0 ;
58980 PyObject * obj1 = 0 ;
58981 PyObject * obj2 = 0 ;
58983 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddPickupAndDelivery", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
58986 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddPickupAndDelivery" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58993 arg2 =
static_cast< int64_t
>(val2);
58998 arg3 =
static_cast< int64_t
>(val3);
59001 (arg1)->AddPickupAndDelivery(arg2,arg3);
59015 PyObject *resultobj = 0;
59021 PyObject * obj0 = 0 ;
59022 PyObject * obj1 = 0 ;
59023 PyObject * obj2 = 0 ;
59025 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddPickupAndDeliverySets", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
59028 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddPickupAndDeliverySets" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59032 arg2 = operations_research::RoutingDisjunctionIndex(PyInt_AsLong(obj1));
59035 arg3 = operations_research::RoutingDisjunctionIndex(PyInt_AsLong(obj2));
59039 (arg1)->AddPickupAndDeliverySets(arg2,arg3);
59053 PyObject *resultobj = 0;
59060 PyObject * obj0 = 0 ;
59061 PyObject * obj1 = 0 ;
59062 std::vector< std::pair< int,int > > *result = 0 ;
59064 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetPickupIndexPairs", 2, 2, &obj0, &obj1))
SWIG_fail;
59067 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetPickupIndexPairs" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59074 arg2 =
static_cast< int64_t
>(val2);
59091 PyObject *resultobj = 0;
59098 PyObject * obj0 = 0 ;
59099 PyObject * obj1 = 0 ;
59100 std::vector< std::pair< int,int > > *result = 0 ;
59102 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDeliveryIndexPairs", 2, 2, &obj0, &obj1))
SWIG_fail;
59105 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDeliveryIndexPairs" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59112 arg2 =
static_cast< int64_t
>(val2);
59129 PyObject *resultobj = 0;
59136 PyObject * obj0 = 0 ;
59137 PyObject * obj1 = 0 ;
59139 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetPickupAndDeliveryPolicyOfAllVehicles", 2, 2, &obj0, &obj1))
SWIG_fail;
59142 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetPickupAndDeliveryPolicyOfAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59147 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingModel_SetPickupAndDeliveryPolicyOfAllVehicles" "', argument " "2"" of type '" "operations_research::RoutingModel::PickupAndDeliveryPolicy""'");
59152 (arg1)->SetPickupAndDeliveryPolicyOfAllVehicles(arg2);
59166 PyObject *resultobj = 0;
59176 PyObject * obj0 = 0 ;
59177 PyObject * obj1 = 0 ;
59178 PyObject * obj2 = 0 ;
59180 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetPickupAndDeliveryPolicyOfVehicle", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
59183 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetPickupAndDeliveryPolicyOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59188 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingModel_SetPickupAndDeliveryPolicyOfVehicle" "', argument " "2"" of type '" "operations_research::RoutingModel::PickupAndDeliveryPolicy""'");
59195 arg3 =
static_cast< int >(val3);
59198 (arg1)->SetPickupAndDeliveryPolicyOfVehicle(arg2,arg3);
59212 PyObject *resultobj = 0;
59219 PyObject * obj0 = 0 ;
59220 PyObject * obj1 = 0 ;
59223 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetPickupAndDeliveryPolicyOfVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
59226 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetPickupAndDeliveryPolicyOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59233 arg2 =
static_cast< int >(val2);
59250 PyObject *resultobj = 0;
59254 PyObject * obj0 = 0 ;
59257 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetNumOfSingletonNodes", 1, 1, &obj0))
SWIG_fail;
59260 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetNumOfSingletonNodes" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59279 PyObject *resultobj = 0;
59292 PyObject * obj0 = 0 ;
59293 PyObject * obj1 = 0 ;
59294 PyObject * obj2 = 0 ;
59295 PyObject * obj3 = 0 ;
59297 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetVisitType", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
59300 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetVisitType" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59307 arg2 =
static_cast< int64_t
>(val2);
59312 arg3 =
static_cast< int >(val3);
59315 SWIG_exception_fail(
SWIG_ArgError(ecode4),
"in method '" "RoutingModel_SetVisitType" "', argument " "4"" of type '" "operations_research::RoutingModel::VisitTypePolicy""'");
59320 (arg1)->SetVisitType(arg2,arg3,arg4);
59334 PyObject *resultobj = 0;
59341 PyObject * obj0 = 0 ;
59342 PyObject * obj1 = 0 ;
59345 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetVisitType", 2, 2, &obj0, &obj1))
SWIG_fail;
59348 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetVisitType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59355 arg2 =
static_cast< int64_t
>(val2);
59372 PyObject *resultobj = 0;
59379 PyObject * obj0 = 0 ;
59380 PyObject * obj1 = 0 ;
59381 std::vector< int > *result = 0 ;
59383 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetSingleNodesOfType", 2, 2, &obj0, &obj1))
SWIG_fail;
59386 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetSingleNodesOfType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59393 arg2 =
static_cast< int >(val2);
59403 resultobj = vector_output_helper(result, &PyInt_FromLong);
59412 PyObject *resultobj = 0;
59419 PyObject * obj0 = 0 ;
59420 PyObject * obj1 = 0 ;
59421 std::vector< int > *result = 0 ;
59423 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetPairIndicesOfType", 2, 2, &obj0, &obj1))
SWIG_fail;
59426 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetPairIndicesOfType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59433 arg2 =
static_cast< int >(val2);
59443 resultobj = vector_output_helper(result, &PyInt_FromLong);
59452 PyObject *resultobj = 0;
59459 PyObject * obj0 = 0 ;
59460 PyObject * obj1 = 0 ;
59463 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetVisitTypePolicy", 2, 2, &obj0, &obj1))
SWIG_fail;
59466 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetVisitTypePolicy" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59473 arg2 =
static_cast< int64_t
>(val2);
59490 PyObject *resultobj = 0;
59494 PyObject * obj0 = 0 ;
59496 if (!PyArg_UnpackTuple(args,
"RoutingModel_CloseVisitTypes", 1, 1, &obj0))
SWIG_fail;
59499 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_CloseVisitTypes" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59504 (arg1)->CloseVisitTypes();
59518 PyObject *resultobj = 0;
59522 PyObject * obj0 = 0 ;
59525 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetNumberOfVisitTypes", 1, 1, &obj0))
SWIG_fail;
59528 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetNumberOfVisitTypes" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59547 PyObject *resultobj = 0;
59557 PyObject * obj0 = 0 ;
59558 PyObject * obj1 = 0 ;
59559 PyObject * obj2 = 0 ;
59561 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddHardTypeIncompatibility", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
59564 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddHardTypeIncompatibility" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59571 arg2 =
static_cast< int >(val2);
59576 arg3 =
static_cast< int >(val3);
59579 (arg1)->AddHardTypeIncompatibility(arg2,arg3);
59593 PyObject *resultobj = 0;
59603 PyObject * obj0 = 0 ;
59604 PyObject * obj1 = 0 ;
59605 PyObject * obj2 = 0 ;
59607 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddTemporalTypeIncompatibility", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
59610 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddTemporalTypeIncompatibility" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59617 arg2 =
static_cast< int >(val2);
59622 arg3 =
static_cast< int >(val3);
59625 (arg1)->AddTemporalTypeIncompatibility(arg2,arg3);
59639 PyObject *resultobj = 0;
59646 PyObject * obj0 = 0 ;
59647 PyObject * obj1 = 0 ;
59648 absl::flat_hash_set< int > *result = 0 ;
59650 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetHardTypeIncompatibilitiesOfType", 2, 2, &obj0, &obj1))
SWIG_fail;
59653 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetHardTypeIncompatibilitiesOfType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59660 arg2 =
static_cast< int >(val2);
59677 PyObject *resultobj = 0;
59684 PyObject * obj0 = 0 ;
59685 PyObject * obj1 = 0 ;
59686 absl::flat_hash_set< int > *result = 0 ;
59688 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetTemporalTypeIncompatibilitiesOfType", 2, 2, &obj0, &obj1))
SWIG_fail;
59691 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetTemporalTypeIncompatibilitiesOfType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59698 arg2 =
static_cast< int >(val2);
59715 PyObject *resultobj = 0;
59719 PyObject * obj0 = 0 ;
59722 if (!PyArg_UnpackTuple(args,
"RoutingModel_HasHardTypeIncompatibilities", 1, 1, &obj0))
SWIG_fail;
59725 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_HasHardTypeIncompatibilities" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59744 PyObject *resultobj = 0;
59748 PyObject * obj0 = 0 ;
59751 if (!PyArg_UnpackTuple(args,
"RoutingModel_HasTemporalTypeIncompatibilities", 1, 1, &obj0))
SWIG_fail;
59754 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_HasTemporalTypeIncompatibilities" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59773 PyObject *resultobj = 0;
59776 absl::flat_hash_set< int > arg3 ;
59783 PyObject * obj0 = 0 ;
59784 PyObject * obj1 = 0 ;
59785 PyObject * obj2 = 0 ;
59787 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddSameVehicleRequiredTypeAlternatives", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
59790 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddSameVehicleRequiredTypeAlternatives" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59797 arg2 =
static_cast< int >(val2);
59801 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "RoutingModel_AddSameVehicleRequiredTypeAlternatives" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59804 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddSameVehicleRequiredTypeAlternatives" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59806 absl::flat_hash_set< int > * temp =
reinterpret_cast< absl::flat_hash_set< int > *
>(argp3);
59813 (arg1)->AddSameVehicleRequiredTypeAlternatives(arg2,arg3);
59827 PyObject *resultobj = 0;
59830 absl::flat_hash_set< int > arg3 ;
59837 PyObject * obj0 = 0 ;
59838 PyObject * obj1 = 0 ;
59839 PyObject * obj2 = 0 ;
59841 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddRequiredTypeAlternativesWhenAddingType", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
59844 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddRequiredTypeAlternativesWhenAddingType" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59849 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingModel_AddRequiredTypeAlternativesWhenAddingType" "', argument " "2"" of type '" "int""'");
59851 arg2 =
static_cast< int >(val2);
59855 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "RoutingModel_AddRequiredTypeAlternativesWhenAddingType" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59858 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddRequiredTypeAlternativesWhenAddingType" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59860 absl::flat_hash_set< int > * temp =
reinterpret_cast< absl::flat_hash_set< int > *
>(argp3);
59867 (arg1)->AddRequiredTypeAlternativesWhenAddingType(arg2,arg3);
59881 PyObject *resultobj = 0;
59884 absl::flat_hash_set< int > arg3 ;
59891 PyObject * obj0 = 0 ;
59892 PyObject * obj1 = 0 ;
59893 PyObject * obj2 = 0 ;
59895 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddRequiredTypeAlternativesWhenRemovingType", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
59898 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddRequiredTypeAlternativesWhenRemovingType" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59903 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingModel_AddRequiredTypeAlternativesWhenRemovingType" "', argument " "2"" of type '" "int""'");
59905 arg2 =
static_cast< int >(val2);
59909 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "RoutingModel_AddRequiredTypeAlternativesWhenRemovingType" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59912 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddRequiredTypeAlternativesWhenRemovingType" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59914 absl::flat_hash_set< int > * temp =
reinterpret_cast< absl::flat_hash_set< int > *
>(argp3);
59921 (arg1)->AddRequiredTypeAlternativesWhenRemovingType(arg2,arg3);
59935 PyObject *resultobj = 0;
59942 PyObject * obj0 = 0 ;
59943 PyObject * obj1 = 0 ;
59944 std::vector< absl::flat_hash_set< int > > *result = 0 ;
59946 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetSameVehicleRequiredTypeAlternativesOfType", 2, 2, &obj0, &obj1))
SWIG_fail;
59949 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetSameVehicleRequiredTypeAlternativesOfType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59954 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingModel_GetSameVehicleRequiredTypeAlternativesOfType" "', argument " "2"" of type '" "int""'");
59956 arg2 =
static_cast< int >(val2);
59973 PyObject *resultobj = 0;
59980 PyObject * obj0 = 0 ;
59981 PyObject * obj1 = 0 ;
59982 std::vector< absl::flat_hash_set< int > > *result = 0 ;
59984 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetRequiredTypeAlternativesWhenAddingType", 2, 2, &obj0, &obj1))
SWIG_fail;
59987 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetRequiredTypeAlternativesWhenAddingType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59992 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingModel_GetRequiredTypeAlternativesWhenAddingType" "', argument " "2"" of type '" "int""'");
59994 arg2 =
static_cast< int >(val2);
60011 PyObject *resultobj = 0;
60018 PyObject * obj0 = 0 ;
60019 PyObject * obj1 = 0 ;
60020 std::vector< absl::flat_hash_set< int > > *result = 0 ;
60022 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetRequiredTypeAlternativesWhenRemovingType", 2, 2, &obj0, &obj1))
SWIG_fail;
60025 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetRequiredTypeAlternativesWhenRemovingType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60030 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingModel_GetRequiredTypeAlternativesWhenRemovingType" "', argument " "2"" of type '" "int""'");
60032 arg2 =
static_cast< int >(val2);
60049 PyObject *resultobj = 0;
60053 PyObject * obj0 = 0 ;
60056 if (!PyArg_UnpackTuple(args,
"RoutingModel_HasSameVehicleTypeRequirements", 1, 1, &obj0))
SWIG_fail;
60059 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_HasSameVehicleTypeRequirements" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60078 PyObject *resultobj = 0;
60082 PyObject * obj0 = 0 ;
60085 if (!PyArg_UnpackTuple(args,
"RoutingModel_HasTemporalTypeRequirements", 1, 1, &obj0))
SWIG_fail;
60088 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_HasTemporalTypeRequirements" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60107 PyObject *resultobj = 0;
60111 PyObject * obj0 = 0 ;
60114 if (!PyArg_UnpackTuple(args,
"RoutingModel_HasTypeRegulations", 1, 1, &obj0))
SWIG_fail;
60117 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_HasTypeRegulations" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60136 PyObject *resultobj = 0;
60143 PyObject * obj0 = 0 ;
60144 PyObject * obj1 = 0 ;
60147 if (!PyArg_UnpackTuple(args,
"RoutingModel_UnperformedPenalty", 2, 2, &obj0, &obj1))
SWIG_fail;
60150 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_UnperformedPenalty" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60157 arg2 =
static_cast< int64_t
>(val2);
60174 PyObject *resultobj = 0;
60184 PyObject * obj0 = 0 ;
60185 PyObject * obj1 = 0 ;
60186 PyObject * obj2 = 0 ;
60189 if (!PyArg_UnpackTuple(args,
"RoutingModel_UnperformedPenaltyOrValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
60192 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_UnperformedPenaltyOrValue" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60199 arg2 =
static_cast< int64_t
>(val2);
60204 arg3 =
static_cast< int64_t
>(val3);
60221 PyObject *resultobj = 0;
60225 PyObject * obj0 = 0 ;
60228 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDepot", 1, 1, &obj0))
SWIG_fail;
60231 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDepot" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60250 PyObject *resultobj = 0;
60257 PyObject * obj0 = 0 ;
60258 PyObject * obj1 = 0 ;
60260 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetMaximumNumberOfActiveVehicles", 2, 2, &obj0, &obj1))
SWIG_fail;
60263 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetMaximumNumberOfActiveVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60270 arg2 =
static_cast< int >(val2);
60273 (arg1)->SetMaximumNumberOfActiveVehicles(arg2);
60287 PyObject *resultobj = 0;
60291 PyObject * obj0 = 0 ;
60294 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetMaximumNumberOfActiveVehicles", 1, 1, &obj0))
SWIG_fail;
60297 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetMaximumNumberOfActiveVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60316 PyObject *resultobj = 0;
60323 PyObject * obj0 = 0 ;
60324 PyObject * obj1 = 0 ;
60326 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetArcCostEvaluatorOfAllVehicles", 2, 2, &obj0, &obj1))
SWIG_fail;
60329 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetArcCostEvaluatorOfAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60336 arg2 =
static_cast< int >(val2);
60339 (arg1)->SetArcCostEvaluatorOfAllVehicles(arg2);
60353 PyObject *resultobj = 0;
60363 PyObject * obj0 = 0 ;
60364 PyObject * obj1 = 0 ;
60365 PyObject * obj2 = 0 ;
60367 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetArcCostEvaluatorOfVehicle", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
60370 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetArcCostEvaluatorOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60377 arg2 =
static_cast< int >(val2);
60382 arg3 =
static_cast< int >(val3);
60385 (arg1)->SetArcCostEvaluatorOfVehicle(arg2,arg3);
60399 PyObject *resultobj = 0;
60406 PyObject * obj0 = 0 ;
60407 PyObject * obj1 = 0 ;
60409 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetFixedCostOfAllVehicles", 2, 2, &obj0, &obj1))
SWIG_fail;
60412 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetFixedCostOfAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60419 arg2 =
static_cast< int64_t
>(val2);
60422 (arg1)->SetFixedCostOfAllVehicles(arg2);
60436 PyObject *resultobj = 0;
60446 PyObject * obj0 = 0 ;
60447 PyObject * obj1 = 0 ;
60448 PyObject * obj2 = 0 ;
60450 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetFixedCostOfVehicle", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
60453 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetFixedCostOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60460 arg2 =
static_cast< int64_t
>(val2);
60465 arg3 =
static_cast< int >(val3);
60468 (arg1)->SetFixedCostOfVehicle(arg2,arg3);
60482 PyObject *resultobj = 0;
60489 PyObject * obj0 = 0 ;
60490 PyObject * obj1 = 0 ;
60493 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetFixedCostOfVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
60496 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetFixedCostOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60503 arg2 =
static_cast< int >(val2);
60520 PyObject *resultobj = 0;
60530 PyObject * obj0 = 0 ;
60531 PyObject * obj1 = 0 ;
60532 PyObject * obj2 = 0 ;
60534 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetAmortizedCostFactorsOfAllVehicles", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
60537 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetAmortizedCostFactorsOfAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60542 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingModel_SetAmortizedCostFactorsOfAllVehicles" "', argument " "2"" of type '" "int64_t""'");
60544 arg2 =
static_cast< int64_t
>(val2);
60547 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "RoutingModel_SetAmortizedCostFactorsOfAllVehicles" "', argument " "3"" of type '" "int64_t""'");
60549 arg3 =
static_cast< int64_t
>(val3);
60552 (arg1)->SetAmortizedCostFactorsOfAllVehicles(arg2,arg3);
60566 PyObject *resultobj = 0;
60579 PyObject * obj0 = 0 ;
60580 PyObject * obj1 = 0 ;
60581 PyObject * obj2 = 0 ;
60582 PyObject * obj3 = 0 ;
60584 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetAmortizedCostFactorsOfVehicle", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
60587 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetAmortizedCostFactorsOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60594 arg2 =
static_cast< int64_t
>(val2);
60599 arg3 =
static_cast< int64_t
>(val3);
60604 arg4 =
static_cast< int >(val4);
60607 (arg1)->SetAmortizedCostFactorsOfVehicle(arg2,arg3,arg4);
60621 PyObject *resultobj = 0;
60625 PyObject * obj0 = 0 ;
60626 std::vector< int64_t > *result = 0 ;
60628 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetAmortizedLinearCostFactorOfVehicles", 1, 1, &obj0))
SWIG_fail;
60631 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetAmortizedLinearCostFactorOfVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60643 resultobj = vector_output_helper(result, &PyLong_FromLongLong);
60652 PyObject *resultobj = 0;
60656 PyObject * obj0 = 0 ;
60657 std::vector< int64_t > *result = 0 ;
60659 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetAmortizedQuadraticCostFactorOfVehicles", 1, 1, &obj0))
SWIG_fail;
60662 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetAmortizedQuadraticCostFactorOfVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60674 resultobj = vector_output_helper(result, &PyLong_FromLongLong);
60683 PyObject *resultobj = 0;
60693 PyObject * obj0 = 0 ;
60694 PyObject * obj1 = 0 ;
60695 PyObject * obj2 = 0 ;
60697 if (!PyArg_UnpackTuple(args,
"RoutingModel_ConsiderEmptyRouteCostsForVehicle", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
60700 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ConsiderEmptyRouteCostsForVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60707 arg2 =
static_cast< bool >(val2);
60712 arg3 =
static_cast< int >(val3);
60715 (arg1)->ConsiderEmptyRouteCostsForVehicle(arg2,arg3);
60729 PyObject *resultobj = 0;
60736 PyObject * obj0 = 0 ;
60737 PyObject * obj1 = 0 ;
60740 if (!PyArg_UnpackTuple(args,
"RoutingModel_AreEmptyRouteCostsConsideredForVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
60743 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AreEmptyRouteCostsConsideredForVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60750 arg2 =
static_cast< int >(val2);
60767 PyObject *resultobj = 0;
60772 PyObject * obj0 = 0 ;
60773 PyObject * obj1 = 0 ;
60775 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetFirstSolutionEvaluator", 2, 2, &obj0, &obj1))
SWIG_fail;
60778 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetFirstSolutionEvaluator" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60783 arg2 = [
input](int64_t i, int64_t j) {
60784 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
60789 (arg1)->SetFirstSolutionEvaluator(arg2);
60803 PyObject *resultobj = 0;
60810 PyObject * obj0 = 0 ;
60811 PyObject * obj1 = 0 ;
60813 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddLocalSearchOperator", 2, 2, &obj0, &obj1))
SWIG_fail;
60816 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddLocalSearchOperator" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60821 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_AddLocalSearchOperator" "', argument " "2"" of type '" "operations_research::LocalSearchOperator *""'");
60826 (arg1)->AddLocalSearchOperator(arg2);
60840 PyObject *resultobj = 0;
60845 PyObject * obj0 = 0 ;
60846 PyObject * obj1 = 0 ;
60848 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddSearchMonitor", 2, 2, &obj0, &obj1))
SWIG_fail;
60851 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddSearchMonitor" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60859 (arg1)->AddSearchMonitor(arg2);
60873 PyObject *resultobj = 0;
60875 std::function< void () > arg2 ;
60878 PyObject * obj0 = 0 ;
60879 PyObject * obj1 = 0 ;
60881 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddAtSolutionCallback", 2, 2, &obj0, &obj1))
SWIG_fail;
60884 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddAtSolutionCallback" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60890 return InvokePythonCallableReturning<void>(
input.get());
60895 (arg1)->AddAtSolutionCallback(arg2);
60909 PyObject *resultobj = 0;
60916 PyObject * obj0 = 0 ;
60917 PyObject * obj1 = 0 ;
60919 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddVariableMinimizedByFinalizer", 2, 2, &obj0, &obj1))
SWIG_fail;
60922 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddVariableMinimizedByFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60927 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_AddVariableMinimizedByFinalizer" "', argument " "2"" of type '" "operations_research::IntVar *""'");
60932 (arg1)->AddVariableMinimizedByFinalizer(arg2);
60946 PyObject *resultobj = 0;
60953 PyObject * obj0 = 0 ;
60954 PyObject * obj1 = 0 ;
60956 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddVariableMaximizedByFinalizer", 2, 2, &obj0, &obj1))
SWIG_fail;
60959 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddVariableMaximizedByFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60964 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_AddVariableMaximizedByFinalizer" "', argument " "2"" of type '" "operations_research::IntVar *""'");
60969 (arg1)->AddVariableMaximizedByFinalizer(arg2);
60983 PyObject *resultobj = 0;
60993 PyObject * obj0 = 0 ;
60994 PyObject * obj1 = 0 ;
60995 PyObject * obj2 = 0 ;
60997 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddWeightedVariableMinimizedByFinalizer", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
61000 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddWeightedVariableMinimizedByFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61005 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_AddWeightedVariableMinimizedByFinalizer" "', argument " "2"" of type '" "operations_research::IntVar *""'");
61010 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "RoutingModel_AddWeightedVariableMinimizedByFinalizer" "', argument " "3"" of type '" "int64_t""'");
61012 arg3 =
static_cast< int64_t
>(val3);
61015 (arg1)->AddWeightedVariableMinimizedByFinalizer(arg2,arg3);
61029 PyObject *resultobj = 0;
61039 PyObject * obj0 = 0 ;
61040 PyObject * obj1 = 0 ;
61041 PyObject * obj2 = 0 ;
61043 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddVariableTargetToFinalizer", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
61046 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddVariableTargetToFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61051 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_AddVariableTargetToFinalizer" "', argument " "2"" of type '" "operations_research::IntVar *""'");
61058 arg3 =
static_cast< int64_t
>(val3);
61061 (arg1)->AddVariableTargetToFinalizer(arg2,arg3);
61075 PyObject *resultobj = 0;
61079 PyObject * obj0 = 0 ;
61081 if (!PyArg_UnpackTuple(args,
"RoutingModel_CloseModel", 1, 1, &obj0))
SWIG_fail;
61084 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_CloseModel" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61089 (arg1)->CloseModel();
61103 PyObject *resultobj = 0;
61108 PyObject * obj0 = 0 ;
61109 PyObject * obj1 = 0 ;
61111 if (!PyArg_UnpackTuple(args,
"RoutingModel_CloseModelWithParameters", 2, 2, &obj0, &obj1))
SWIG_fail;
61114 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_CloseModelWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
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);
61128 Py_DECREF(pyresult);
61153 PyObject *resultobj = 0;
61160 PyObject * obj0 = 0 ;
61161 PyObject * obj1 = 0 ;
61164 if (!PyArg_UnpackTuple(args,
"RoutingModel_Solve", 2, 2, &obj0, &obj1))
SWIG_fail;
61191 PyObject *resultobj = 0;
61195 PyObject * obj0 = 0 ;
61198 if (!PyArg_UnpackTuple(args,
"RoutingModel_Solve", 1, 1, &obj0))
SWIG_fail;
61221 PyObject *argv[3] = {
61227 argc = PyObject_Length(args);
61228 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
61229 argv[ii] = PyTuple_GET_ITEM(args,ii);
61257 " Possible C/C++ prototypes are:\n"
61258 " operations_research::RoutingModel::Solve(operations_research::Assignment const *)\n"
61259 " operations_research::RoutingModel::Solve()\n");
61265 PyObject *resultobj = 0;
61268 std::vector< operations_research::Assignment const * > *arg3 = (std::vector< operations_research::Assignment const * > *) 0 ;
61273 PyObject * obj0 = 0 ;
61274 PyObject * obj1 = 0 ;
61275 PyObject * obj2 = 0 ;
61278 if (!PyArg_UnpackTuple(args,
"RoutingModel_SolveWithParameters", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
61281 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SolveWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
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);
61295 Py_DECREF(pyresult);
61300 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "RoutingModel_SolveWithParameters" "', argument " "3"" of type '" "std::vector< operations_research::Assignment const * > *""'");
61302 arg3 =
reinterpret_cast< std::vector< operations_research::Assignment const * > *
>(argp3);
61325 PyObject *resultobj = 0;
61330 PyObject * obj0 = 0 ;
61331 PyObject * obj1 = 0 ;
61334 if (!PyArg_UnpackTuple(args,
"RoutingModel_SolveWithParameters", 2, 2, &obj0, &obj1))
SWIG_fail;
61337 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SolveWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
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);
61351 Py_DECREF(pyresult);
61377 PyObject *argv[4] = {
61383 argc = PyObject_Length(args);
61384 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
61385 argv[ii] = PyTuple_GET_ITEM(args,ii);
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)) {
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)) {
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");
61459 PyObject *resultobj = 0;
61463 std::vector< operations_research::Assignment const * > *arg4 = (std::vector< operations_research::Assignment const * > *) 0 ;
61470 PyObject * obj0 = 0 ;
61471 PyObject * obj1 = 0 ;
61472 PyObject * obj2 = 0 ;
61473 PyObject * obj3 = 0 ;
61476 if (!PyArg_UnpackTuple(args,
"RoutingModel_SolveFromAssignmentWithParameters", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
61479 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SolveFromAssignmentWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61484 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_SolveFromAssignmentWithParameters" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
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);
61498 Py_DECREF(pyresult);
61503 SWIG_exception_fail(
SWIG_ArgError(res4),
"in method '" "RoutingModel_SolveFromAssignmentWithParameters" "', argument " "4"" of type '" "std::vector< operations_research::Assignment const * > *""'");
61505 arg4 =
reinterpret_cast< std::vector< operations_research::Assignment const * > *
>(argp4);
61528 PyObject *resultobj = 0;
61536 PyObject * obj0 = 0 ;
61537 PyObject * obj1 = 0 ;
61538 PyObject * obj2 = 0 ;
61541 if (!PyArg_UnpackTuple(args,
"RoutingModel_SolveFromAssignmentWithParameters", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
61544 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SolveFromAssignmentWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61549 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_SolveFromAssignmentWithParameters" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
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);
61563 Py_DECREF(pyresult);
61589 PyObject *argv[5] = {
61595 argc = PyObject_Length(args);
61596 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
61597 argv[ii] = PyTuple_GET_ITEM(args,ii);
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)) {
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)) {
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");
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 ;
61692 PyObject * obj0 = 0 ;
61693 PyObject * obj1 = 0 ;
61694 PyObject * obj2 = 0 ;
61695 PyObject * obj3 = 0 ;
61698 if (!PyArg_UnpackTuple(args,
"RoutingModel_SolveFromAssignmentsWithParameters", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
61701 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61706 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "2"" of type '" "std::vector< operations_research::Assignment const * > const &""'");
61709 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "2"" of type '" "std::vector< operations_research::Assignment const * > const &""'");
61711 arg2 =
reinterpret_cast< std::vector< operations_research::Assignment const * > *
>(argp2);
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);
61723 Py_DECREF(pyresult);
61728 SWIG_exception_fail(
SWIG_ArgError(res4),
"in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "4"" of type '" "std::vector< operations_research::Assignment const * > *""'");
61730 arg4 =
reinterpret_cast< std::vector< operations_research::Assignment const * > *
>(argp4);
61753 PyObject *resultobj = 0;
61755 std::vector< operations_research::Assignment const * > *arg2 = 0 ;
61761 PyObject * obj0 = 0 ;
61762 PyObject * obj1 = 0 ;
61763 PyObject * obj2 = 0 ;
61766 if (!PyArg_UnpackTuple(args,
"RoutingModel_SolveFromAssignmentsWithParameters", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
61769 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61774 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "2"" of type '" "std::vector< operations_research::Assignment const * > const &""'");
61777 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "2"" of type '" "std::vector< operations_research::Assignment const * > const &""'");
61779 arg2 =
reinterpret_cast< std::vector< operations_research::Assignment const * > *
>(argp2);
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);
61791 Py_DECREF(pyresult);
61817 PyObject *argv[5] = {
61823 argc = PyObject_Length(args);
61824 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
61825 argv[ii] = PyTuple_GET_ITEM(args,ii);
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)) {
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)) {
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");
61907 PyObject *resultobj = 0;
61920 PyObject * obj0 = 0 ;
61921 PyObject * obj1 = 0 ;
61922 PyObject * obj2 = 0 ;
61923 PyObject * obj3 = 0 ;
61925 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetAssignmentFromOtherModelAssignment", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
61928 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetAssignmentFromOtherModelAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61933 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_SetAssignmentFromOtherModelAssignment" "', argument " "2"" of type '" "operations_research::Assignment *""'");
61938 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "RoutingModel_SetAssignmentFromOtherModelAssignment" "', argument " "3"" of type '" "operations_research::RoutingModel const *""'");
61943 SWIG_exception_fail(
SWIG_ArgError(res4),
"in method '" "RoutingModel_SetAssignmentFromOtherModelAssignment" "', argument " "4"" of type '" "operations_research::Assignment const *""'");
61962 PyObject *resultobj = 0;
61966 PyObject * obj0 = 0 ;
61969 if (!PyArg_UnpackTuple(args,
"RoutingModel_ComputeLowerBound", 1, 1, &obj0))
SWIG_fail;
61972 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ComputeLowerBound" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61991 PyObject *resultobj = 0;
61995 PyObject * obj0 = 0 ;
61998 if (!PyArg_UnpackTuple(args,
"RoutingModel_status", 1, 1, &obj0))
SWIG_fail;
62001 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_status" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62020 PyObject *resultobj = 0;
62022 std::vector< int64_t > *arg2 = 0 ;
62025 std::vector< int64_t > temp2 ;
62026 PyObject * obj0 = 0 ;
62027 PyObject * obj1 = 0 ;
62030 if (!PyArg_UnpackTuple(args,
"RoutingModel_ApplyLocks", 2, 2, &obj0, &obj1))
SWIG_fail;
62033 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ApplyLocks" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62037 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
62038 if (!PyErr_Occurred())
62060 PyObject *resultobj = 0;
62062 std::vector< std::vector< int64_t > > *arg2 = 0 ;
62066 std::vector< std::vector< int64_t > > temp2 ;
62069 PyObject * obj0 = 0 ;
62070 PyObject * obj1 = 0 ;
62071 PyObject * obj2 = 0 ;
62074 if (!PyArg_UnpackTuple(args,
"RoutingModel_ApplyLocksToAllVehicles", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
62077 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ApplyLocksToAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62081 if (!PyList_Check(obj1)) {
62082 PyErr_SetString(PyExc_TypeError,
"Expecting a list of tuples");
62085 int len = PyList_Size(obj1);
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");
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),
62114 arg3 =
static_cast< bool >(val3);
62117 result = (bool)(arg1)->ApplyLocksToAllVehicles((std::vector< std::vector< int64_t > >
const &)*arg2,arg3);
62131 PyObject *resultobj = 0;
62135 PyObject * obj0 = 0 ;
62138 if (!PyArg_UnpackTuple(args,
"RoutingModel_PreAssignment", 1, 1, &obj0))
SWIG_fail;
62141 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_PreAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62160 PyObject *resultobj = 0;
62164 PyObject * obj0 = 0 ;
62167 if (!PyArg_UnpackTuple(args,
"RoutingModel_MutablePreAssignment", 1, 1, &obj0))
SWIG_fail;
62170 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_MutablePreAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62189 PyObject *resultobj = 0;
62191 std::string *arg2 = 0 ;
62195 PyObject * obj0 = 0 ;
62196 PyObject * obj1 = 0 ;
62199 if (!PyArg_UnpackTuple(args,
"RoutingModel_WriteAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
62202 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_WriteAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62206 std::string *ptr = (std::string *)0;
62212 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_WriteAssignment" "', argument " "2"" of type '" "std::string const &""'");
62234 PyObject *resultobj = 0;
62236 std::string *arg2 = 0 ;
62240 PyObject * obj0 = 0 ;
62241 PyObject * obj1 = 0 ;
62244 if (!PyArg_UnpackTuple(args,
"RoutingModel_ReadAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
62247 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ReadAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62251 std::string *ptr = (std::string *)0;
62257 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_ReadAssignment" "', argument " "2"" of type '" "std::string const &""'");
62279 PyObject *resultobj = 0;
62286 PyObject * obj0 = 0 ;
62287 PyObject * obj1 = 0 ;
62290 if (!PyArg_UnpackTuple(args,
"RoutingModel_RestoreAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
62293 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RestoreAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62298 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_RestoreAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62301 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_RestoreAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62320 PyObject *resultobj = 0;
62322 std::vector< std::vector< int64_t > > *arg2 = 0 ;
62326 std::vector< std::vector< int64_t > > temp2 ;
62329 PyObject * obj0 = 0 ;
62330 PyObject * obj1 = 0 ;
62331 PyObject * obj2 = 0 ;
62334 if (!PyArg_UnpackTuple(args,
"RoutingModel_ReadAssignmentFromRoutes", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
62337 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ReadAssignmentFromRoutes" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62341 if (!PyList_Check(obj1)) {
62342 PyErr_SetString(PyExc_TypeError,
"Expecting a list of tuples");
62345 int len = PyList_Size(obj1);
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");
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),
62374 arg3 =
static_cast< bool >(val3);
62391 PyObject *resultobj = 0;
62393 std::vector< std::vector< int64_t > > *arg2 = 0 ;
62399 std::vector< std::vector< int64_t > > temp2 ;
62406 PyObject * obj0 = 0 ;
62407 PyObject * obj1 = 0 ;
62408 PyObject * obj2 = 0 ;
62409 PyObject * obj3 = 0 ;
62410 PyObject * obj4 = 0 ;
62413 if (!PyArg_UnpackTuple(args,
"RoutingModel_RoutesToAssignment", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
62416 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RoutesToAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62420 if (!PyList_Check(obj1)) {
62421 PyErr_SetString(PyExc_TypeError,
"Expecting a list of tuples");
62424 int len = PyList_Size(obj1);
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");
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),
62453 arg3 =
static_cast< bool >(val3);
62458 arg4 =
static_cast< bool >(val4);
62461 SWIG_exception_fail(
SWIG_ArgError(res5),
"in method '" "RoutingModel_RoutesToAssignment" "', argument " "5"" of type '" "operations_research::Assignment *const""'");
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 ;
62490 PyObject * obj0 = 0 ;
62491 PyObject * obj1 = 0 ;
62492 PyObject * obj2 = 0 ;
62494 if (!PyArg_UnpackTuple(args,
"RoutingModel_AssignmentToRoutes", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
62497 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AssignmentToRoutes" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62502 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_AssignmentToRoutes" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62505 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AssignmentToRoutes" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62510 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "RoutingModel_AssignmentToRoutes" "', argument " "3"" of type '" "std::vector< std::vector< int64_t > > *const""'");
62512 arg3 =
reinterpret_cast< std::vector< std::vector< int64_t >
> * >(argp3);
62529 PyObject *resultobj = 0;
62536 PyObject * obj0 = 0 ;
62537 PyObject * obj1 = 0 ;
62540 if (!PyArg_UnpackTuple(args,
"RoutingModel_CompactAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
62543 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_CompactAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62548 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_CompactAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62551 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_CompactAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62570 PyObject *resultobj = 0;
62577 PyObject * obj0 = 0 ;
62578 PyObject * obj1 = 0 ;
62581 if (!PyArg_UnpackTuple(args,
"RoutingModel_CompactAndCheckAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
62584 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_CompactAndCheckAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62589 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_CompactAndCheckAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62592 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_CompactAndCheckAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62611 PyObject *resultobj = 0;
62616 PyObject * obj0 = 0 ;
62617 PyObject * obj1 = 0 ;
62619 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddToAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
62622 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddToAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62630 (arg1)->AddToAssignment(arg2);
62644 PyObject *resultobj = 0;
62649 PyObject * obj0 = 0 ;
62650 PyObject * obj1 = 0 ;
62652 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddIntervalToAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
62655 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddIntervalToAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62663 (arg1)->AddIntervalToAssignment(arg2);
62677 PyObject *resultobj = 0;
62680 absl::Duration arg3 ;
62687 PyObject * obj0 = 0 ;
62688 PyObject * obj1 = 0 ;
62689 PyObject * obj2 = 0 ;
62692 if (!PyArg_UnpackTuple(args,
"RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
62695 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62700 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
62706 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment" "', argument " "3"" of type '" "absl::Duration""'");
62709 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment" "', argument " "3"" of type '" "absl::Duration""'");
62711 absl::Duration * temp =
reinterpret_cast< absl::Duration *
>(argp3);
62732 PyObject *resultobj = 0;
62739 PyObject * obj0 = 0 ;
62740 PyObject * obj1 = 0 ;
62742 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddLocalSearchFilter", 2, 2, &obj0, &obj1))
SWIG_fail;
62745 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddLocalSearchFilter" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62750 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_AddLocalSearchFilter" "', argument " "2"" of type '" "operations_research::LocalSearchFilter *""'");
62755 (arg1)->AddLocalSearchFilter(arg2);
62769 PyObject *resultobj = 0;
62776 PyObject * obj0 = 0 ;
62777 PyObject * obj1 = 0 ;
62780 if (!PyArg_UnpackTuple(args,
"RoutingModel_Start", 2, 2, &obj0, &obj1))
SWIG_fail;
62783 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_Start" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62790 arg2 =
static_cast< int >(val2);
62807 PyObject *resultobj = 0;
62814 PyObject * obj0 = 0 ;
62815 PyObject * obj1 = 0 ;
62818 if (!PyArg_UnpackTuple(args,
"RoutingModel_End", 2, 2, &obj0, &obj1))
SWIG_fail;
62828 arg2 =
static_cast< int >(val2);
62845 PyObject *resultobj = 0;
62852 PyObject * obj0 = 0 ;
62853 PyObject * obj1 = 0 ;
62856 if (!PyArg_UnpackTuple(args,
"RoutingModel_IsStart", 2, 2, &obj0, &obj1))
SWIG_fail;
62859 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_IsStart" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62866 arg2 =
static_cast< int64_t
>(val2);
62883 PyObject *resultobj = 0;
62890 PyObject * obj0 = 0 ;
62891 PyObject * obj1 = 0 ;
62894 if (!PyArg_UnpackTuple(args,
"RoutingModel_IsEnd", 2, 2, &obj0, &obj1))
SWIG_fail;
62897 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_IsEnd" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62904 arg2 =
static_cast< int64_t
>(val2);
62921 PyObject *resultobj = 0;
62928 PyObject * obj0 = 0 ;
62929 PyObject * obj1 = 0 ;
62932 if (!PyArg_UnpackTuple(args,
"RoutingModel_VehicleIndex", 2, 2, &obj0, &obj1))
SWIG_fail;
62935 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_VehicleIndex" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62942 arg2 =
static_cast< int64_t
>(val2);
62959 PyObject *resultobj = 0;
62969 PyObject * obj0 = 0 ;
62970 PyObject * obj1 = 0 ;
62971 PyObject * obj2 = 0 ;
62974 if (!PyArg_UnpackTuple(args,
"RoutingModel_Next", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
62977 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_Next" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62985 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_Next" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62992 arg3 =
static_cast< int64_t
>(val3);
63009 PyObject *resultobj = 0;
63019 PyObject * obj0 = 0 ;
63020 PyObject * obj1 = 0 ;
63021 PyObject * obj2 = 0 ;
63024 if (!PyArg_UnpackTuple(args,
"RoutingModel_IsVehicleUsed", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
63027 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_IsVehicleUsed" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63032 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_IsVehicleUsed" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
63035 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_IsVehicleUsed" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
63042 arg3 =
static_cast< int >(val3);
63059 PyObject *resultobj = 0;
63066 PyObject * obj0 = 0 ;
63067 PyObject * obj1 = 0 ;
63070 if (!PyArg_UnpackTuple(args,
"RoutingModel_NextVar", 2, 2, &obj0, &obj1))
SWIG_fail;
63073 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_NextVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63080 arg2 =
static_cast< int64_t
>(val2);
63097 PyObject *resultobj = 0;
63104 PyObject * obj0 = 0 ;
63105 PyObject * obj1 = 0 ;
63108 if (!PyArg_UnpackTuple(args,
"RoutingModel_ActiveVar", 2, 2, &obj0, &obj1))
SWIG_fail;
63111 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ActiveVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63118 arg2 =
static_cast< int64_t
>(val2);
63135 PyObject *resultobj = 0;
63142 PyObject * obj0 = 0 ;
63143 PyObject * obj1 = 0 ;
63146 if (!PyArg_UnpackTuple(args,
"RoutingModel_ActiveVehicleVar", 2, 2, &obj0, &obj1))
SWIG_fail;
63149 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ActiveVehicleVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63156 arg2 =
static_cast< int >(val2);
63173 PyObject *resultobj = 0;
63180 PyObject * obj0 = 0 ;
63181 PyObject * obj1 = 0 ;
63184 if (!PyArg_UnpackTuple(args,
"RoutingModel_VehicleCostsConsideredVar", 2, 2, &obj0, &obj1))
SWIG_fail;
63187 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_VehicleCostsConsideredVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63194 arg2 =
static_cast< int >(val2);
63211 PyObject *resultobj = 0;
63218 PyObject * obj0 = 0 ;
63219 PyObject * obj1 = 0 ;
63222 if (!PyArg_UnpackTuple(args,
"RoutingModel_VehicleVar", 2, 2, &obj0, &obj1))
SWIG_fail;
63225 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_VehicleVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63232 arg2 =
static_cast< int64_t
>(val2);
63249 PyObject *resultobj = 0;
63253 PyObject * obj0 = 0 ;
63256 if (!PyArg_UnpackTuple(args,
"RoutingModel_CostVar", 1, 1, &obj0))
SWIG_fail;
63259 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_CostVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63278 PyObject *resultobj = 0;
63291 PyObject * obj0 = 0 ;
63292 PyObject * obj1 = 0 ;
63293 PyObject * obj2 = 0 ;
63294 PyObject * obj3 = 0 ;
63297 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetArcCostForVehicle", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
63300 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetArcCostForVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63307 arg2 =
static_cast< int64_t
>(val2);
63312 arg3 =
static_cast< int64_t
>(val3);
63317 arg4 =
static_cast< int64_t
>(val4);
63334 PyObject *resultobj = 0;
63338 PyObject * obj0 = 0 ;
63341 if (!PyArg_UnpackTuple(args,
"RoutingModel_CostsAreHomogeneousAcrossVehicles", 1, 1, &obj0))
SWIG_fail;
63344 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_CostsAreHomogeneousAcrossVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63363 PyObject *resultobj = 0;
63373 PyObject * obj0 = 0 ;
63374 PyObject * obj1 = 0 ;
63375 PyObject * obj2 = 0 ;
63378 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetHomogeneousCost", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
63381 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetHomogeneousCost" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63388 arg2 =
static_cast< int64_t
>(val2);
63393 arg3 =
static_cast< int64_t
>(val3);
63410 PyObject *resultobj = 0;
63420 PyObject * obj0 = 0 ;
63421 PyObject * obj1 = 0 ;
63422 PyObject * obj2 = 0 ;
63425 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetArcCostForFirstSolution", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
63428 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetArcCostForFirstSolution" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63435 arg2 =
static_cast< int64_t
>(val2);
63440 arg3 =
static_cast< int64_t
>(val3);
63457 PyObject *resultobj = 0;
63470 PyObject * obj0 = 0 ;
63471 PyObject * obj1 = 0 ;
63472 PyObject * obj2 = 0 ;
63473 PyObject * obj3 = 0 ;
63476 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetArcCostForClass", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
63479 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetArcCostForClass" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63486 arg2 =
static_cast< int64_t
>(val2);
63491 arg3 =
static_cast< int64_t
>(val3);
63496 arg4 =
static_cast< int64_t
>(val4);
63513 PyObject *resultobj = 0;
63520 PyObject * obj0 = 0 ;
63521 PyObject * obj1 = 0 ;
63524 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetCostClassIndexOfVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
63527 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetCostClassIndexOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63534 arg2 =
static_cast< int64_t
>(val2);
63544 resultobj = PyInt_FromLong((&result)->
value());
63553 PyObject *resultobj = 0;
63558 PyObject * obj0 = 0 ;
63559 PyObject * obj1 = 0 ;
63562 if (!PyArg_UnpackTuple(args,
"RoutingModel_HasVehicleWithCostClassIndex", 2, 2, &obj0, &obj1))
SWIG_fail;
63565 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_HasVehicleWithCostClassIndex" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63569 arg2 = operations_research::RoutingCostClassIndex(PyInt_AsLong(obj1));
63587 PyObject *resultobj = 0;
63591 PyObject * obj0 = 0 ;
63594 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetCostClassesCount", 1, 1, &obj0))
SWIG_fail;
63597 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetCostClassesCount" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63616 PyObject *resultobj = 0;
63620 PyObject * obj0 = 0 ;
63623 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetNonZeroCostClassesCount", 1, 1, &obj0))
SWIG_fail;
63626 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetNonZeroCostClassesCount" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63645 PyObject *resultobj = 0;
63652 PyObject * obj0 = 0 ;
63653 PyObject * obj1 = 0 ;
63656 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetVehicleClassIndexOfVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
63659 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetVehicleClassIndexOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63666 arg2 =
static_cast< int64_t
>(val2);
63676 resultobj = PyInt_FromLong((&result)->
value());
63685 PyObject *resultobj = 0;
63690 PyObject * obj0 = 0 ;
63691 PyObject * obj1 = 0 ;
63694 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetVehicleOfClass", 2, 2, &obj0, &obj1))
SWIG_fail;
63697 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetVehicleOfClass" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63701 arg2 = operations_research::RoutingVehicleClassIndex(PyInt_AsLong(obj1));
63719 PyObject *resultobj = 0;
63723 PyObject * obj0 = 0 ;
63726 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetVehicleClassesCount", 1, 1, &obj0))
SWIG_fail;
63729 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetVehicleClassesCount" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63748 PyObject *resultobj = 0;
63755 PyObject * obj0 = 0 ;
63756 PyObject * obj1 = 0 ;
63757 std::vector< int > *result = 0 ;
63759 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetSameVehicleIndicesOfIndex", 2, 2, &obj0, &obj1))
SWIG_fail;
63762 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetSameVehicleIndicesOfIndex" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63769 arg2 =
static_cast< int >(val2);
63779 resultobj = vector_output_helper(result, &PyInt_FromLong);
63788 PyObject *resultobj = 0;
63792 PyObject * obj0 = 0 ;
63795 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetVehicleTypeContainer", 1, 1, &obj0))
SWIG_fail;
63798 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetVehicleTypeContainer" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63817 PyObject *resultobj = 0;
63830 PyObject * obj0 = 0 ;
63831 PyObject * obj1 = 0 ;
63832 PyObject * obj2 = 0 ;
63833 PyObject * obj3 = 0 ;
63836 if (!PyArg_UnpackTuple(args,
"RoutingModel_ArcIsMoreConstrainedThanArc", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
63839 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ArcIsMoreConstrainedThanArc" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
63846 arg2 =
static_cast< int64_t
>(val2);
63851 arg3 =
static_cast< int64_t
>(val3);
63856 arg4 =
static_cast< int64_t
>(val4);
63859 result = (bool)(arg1)->ArcIsMoreConstrainedThanArc(arg2,arg3,arg4);
63873 PyObject *resultobj = 0;
63876 std::string *arg3 = 0 ;
63882 PyObject * obj0 = 0 ;
63883 PyObject * obj1 = 0 ;
63884 PyObject * obj2 = 0 ;
63885 std::string result;
63887 if (!PyArg_UnpackTuple(args,
"RoutingModel_DebugOutputAssignment", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
63890 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_DebugOutputAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63895 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_DebugOutputAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
63898 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_DebugOutputAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
63902 std::string *ptr = (std::string *)0;
63908 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_DebugOutputAssignment" "', argument " "3"" of type '" "std::string const &""'");
63930 PyObject *resultobj = 0;
63934 PyObject * obj0 = 0 ;
63937 if (!PyArg_UnpackTuple(args,
"RoutingModel_solver", 1, 1, &obj0))
SWIG_fail;
63940 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_solver" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63959 PyObject *resultobj = 0;
63963 PyObject * obj0 = 0 ;
63966 if (!PyArg_UnpackTuple(args,
"RoutingModel_CheckLimit", 1, 1, &obj0))
SWIG_fail;
63969 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_CheckLimit" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
63988 PyObject *resultobj = 0;
63992 PyObject * obj0 = 0 ;
63993 absl::Duration result;
63995 if (!PyArg_UnpackTuple(args,
"RoutingModel_RemainingTime", 1, 1, &obj0))
SWIG_fail;
63998 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RemainingTime" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64017 PyObject *resultobj = 0;
64021 PyObject * obj0 = 0 ;
64024 if (!PyArg_UnpackTuple(args,
"RoutingModel_nodes", 1, 1, &obj0))
SWIG_fail;
64027 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_nodes" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64046 PyObject *resultobj = 0;
64050 PyObject * obj0 = 0 ;
64053 if (!PyArg_UnpackTuple(args,
"RoutingModel_vehicles", 1, 1, &obj0))
SWIG_fail;
64056 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_vehicles" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64075 PyObject *resultobj = 0;
64079 PyObject * obj0 = 0 ;
64082 if (!PyArg_UnpackTuple(args,
"RoutingModel_Size", 1, 1, &obj0))
SWIG_fail;
64085 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_Size" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64104 PyObject *resultobj = 0;
64109 PyObject * obj0 = 0 ;
64110 PyObject * obj1 = 0 ;
64113 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetNumberOfDecisionsInFirstSolution", 2, 2, &obj0, &obj1))
SWIG_fail;
64116 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetNumberOfDecisionsInFirstSolution" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
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);
64130 Py_DECREF(pyresult);
64155 PyObject *resultobj = 0;
64160 PyObject * obj0 = 0 ;
64161 PyObject * obj1 = 0 ;
64164 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetNumberOfRejectsInFirstSolution", 2, 2, &obj0, &obj1))
SWIG_fail;
64167 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetNumberOfRejectsInFirstSolution" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
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);
64181 Py_DECREF(pyresult);
64206 PyObject *resultobj = 0;
64210 PyObject * obj0 = 0 ;
64213 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetAutomaticFirstSolutionStrategy", 1, 1, &obj0))
SWIG_fail;
64216 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetAutomaticFirstSolutionStrategy" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64235 PyObject *resultobj = 0;
64239 PyObject * obj0 = 0 ;
64242 if (!PyArg_UnpackTuple(args,
"RoutingModel_IsMatchingModel", 1, 1, &obj0))
SWIG_fail;
64245 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_IsMatchingModel" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64264 PyObject *resultobj = 0;
64267 std::function< int64_t (int64_t) > arg3 ;
64272 PyObject * obj0 = 0 ;
64273 PyObject * obj1 = 0 ;
64274 PyObject * obj2 = 0 ;
64278 if (!PyArg_UnpackTuple(args,
"RoutingModel_MakeGuidedSlackFinalizer", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
64281 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_MakeGuidedSlackFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
64286 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_MakeGuidedSlackFinalizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const *""'");
64292 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
64306 Py_INCREF(resultobj);
64317 PyObject *resultobj = 0;
64324 PyObject * obj0 = 0 ;
64325 PyObject * obj1 = 0 ;
64329 if (!PyArg_UnpackTuple(args,
"RoutingModel_MakeSelfDependentDimensionFinalizer", 2, 2, &obj0, &obj1))
SWIG_fail;
64332 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_MakeSelfDependentDimensionFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
64337 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_MakeSelfDependentDimensionFinalizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const *""'");
64351 Py_INCREF(resultobj);
64379 PyObject *pyobj = 0;
64393 PyObject *pyobj = 0;
64407 PyObject *pyobj = 0;
64415 PyObject *resultobj = 0;
64418 if (!PyArg_UnpackTuple(args,
"new_RoutingModelVisitor", 0, 0))
SWIG_fail;
64435 PyObject *resultobj = 0;
64439 PyObject * obj0 = 0 ;
64441 if (!PyArg_UnpackTuple(args,
"delete_RoutingModelVisitor", 1, 1, &obj0))
SWIG_fail;
64444 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_RoutingModelVisitor" "', argument " "1"" of type '" "operations_research::RoutingModelVisitor *""'");
64474 PyObject *resultobj = 0;
64478 PyObject * obj0 = 0 ;
64481 if (!PyArg_UnpackTuple(args,
"new_GlobalVehicleBreaksConstraint", 1, 1, &obj0))
SWIG_fail;
64484 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "new_GlobalVehicleBreaksConstraint" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
64503 PyObject *resultobj = 0;
64507 PyObject * obj0 = 0 ;
64508 std::string result;
64510 if (!PyArg_UnpackTuple(args,
"GlobalVehicleBreaksConstraint_DebugString", 1, 1, &obj0))
SWIG_fail;
64513 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "GlobalVehicleBreaksConstraint_DebugString" "', argument " "1"" of type '" "operations_research::GlobalVehicleBreaksConstraint const *""'");
64532 PyObject *resultobj = 0;
64536 PyObject * obj0 = 0 ;
64538 if (!PyArg_UnpackTuple(args,
"GlobalVehicleBreaksConstraint_Post", 1, 1, &obj0))
SWIG_fail;
64541 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "GlobalVehicleBreaksConstraint_Post" "', argument " "1"" of type '" "operations_research::GlobalVehicleBreaksConstraint *""'");
64560 PyObject *resultobj = 0;
64564 PyObject * obj0 = 0 ;
64566 if (!PyArg_UnpackTuple(args,
"GlobalVehicleBreaksConstraint_InitialPropagateWrapper", 1, 1, &obj0))
SWIG_fail;
64569 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "GlobalVehicleBreaksConstraint_InitialPropagateWrapper" "', argument " "1"" of type '" "operations_research::GlobalVehicleBreaksConstraint *""'");
64574 (arg1)->InitialPropagate();
64588 PyObject *resultobj = 0;
64592 PyObject * obj0 = 0 ;
64594 if (!PyArg_UnpackTuple(args,
"delete_GlobalVehicleBreaksConstraint", 1, 1, &obj0))
SWIG_fail;
64597 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_GlobalVehicleBreaksConstraint" "', argument " "1"" of type '" "operations_research::GlobalVehicleBreaksConstraint *""'");
64627 PyObject *resultobj = 0;
64631 PyObject * obj0 = 0 ;
64633 if (!PyArg_UnpackTuple(args,
"delete_TypeRegulationsChecker", 1, 1, &obj0))
SWIG_fail;
64636 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_TypeRegulationsChecker" "', argument " "1"" of type '" "operations_research::TypeRegulationsChecker *""'");
64655 PyObject *resultobj = 0;
64658 std::function< int64_t (int64_t) > *arg3 = 0 ;
64665 PyObject * obj0 = 0 ;
64666 PyObject * obj1 = 0 ;
64667 PyObject * obj2 = 0 ;
64670 if (!PyArg_UnpackTuple(args,
"TypeRegulationsChecker_CheckVehicle", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
64673 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "TypeRegulationsChecker_CheckVehicle" "', argument " "1"" of type '" "operations_research::TypeRegulationsChecker *""'");
64680 arg2 =
static_cast< int >(val2);
64683 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "TypeRegulationsChecker_CheckVehicle" "', argument " "3"" of type '" "std::function< int64_t (int64_t) > const &""'");
64686 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "TypeRegulationsChecker_CheckVehicle" "', argument " "3"" of type '" "std::function< int64_t (int64_t) > const &""'");
64688 arg3 =
reinterpret_cast< std::function< int64_t (int64_t)
> * >(argp3);
64691 result = (bool)(arg1)->CheckVehicle(arg2,(std::function< int64_t (int64_t) >
const &)*arg3);
64712 PyObject *resultobj = 0;
64719 PyObject * obj0 = 0 ;
64720 PyObject * obj1 = 0 ;
64723 if (!PyArg_UnpackTuple(args,
"new_TypeIncompatibilityChecker", 2, 2, &obj0, &obj1))
SWIG_fail;
64726 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "new_TypeIncompatibilityChecker" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64729 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "new_TypeIncompatibilityChecker" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64736 arg2 =
static_cast< bool >(val2);
64753 PyObject *resultobj = 0;
64757 PyObject * obj0 = 0 ;
64759 if (!PyArg_UnpackTuple(args,
"delete_TypeIncompatibilityChecker", 1, 1, &obj0))
SWIG_fail;
64762 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_TypeIncompatibilityChecker" "', argument " "1"" of type '" "operations_research::TypeIncompatibilityChecker *""'");
64792 PyObject *resultobj = 0;
64796 PyObject * obj0 = 0 ;
64799 if (!PyArg_UnpackTuple(args,
"new_TypeRequirementChecker", 1, 1, &obj0))
SWIG_fail;
64802 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "new_TypeRequirementChecker" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64805 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "new_TypeRequirementChecker" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64824 PyObject *resultobj = 0;
64828 PyObject * obj0 = 0 ;
64830 if (!PyArg_UnpackTuple(args,
"delete_TypeRequirementChecker", 1, 1, &obj0))
SWIG_fail;
64833 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_TypeRequirementChecker" "', argument " "1"" of type '" "operations_research::TypeRequirementChecker *""'");
64863 PyObject *resultobj = 0;
64867 PyObject * obj0 = 0 ;
64870 if (!PyArg_UnpackTuple(args,
"new_TypeRegulationsConstraint", 1, 1, &obj0))
SWIG_fail;
64873 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "new_TypeRegulationsConstraint" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64876 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "new_TypeRegulationsConstraint" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64895 PyObject *resultobj = 0;
64899 PyObject * obj0 = 0 ;
64901 if (!PyArg_UnpackTuple(args,
"TypeRegulationsConstraint_Post", 1, 1, &obj0))
SWIG_fail;
64904 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "TypeRegulationsConstraint_Post" "', argument " "1"" of type '" "operations_research::TypeRegulationsConstraint *""'");
64923 PyObject *resultobj = 0;
64927 PyObject * obj0 = 0 ;
64929 if (!PyArg_UnpackTuple(args,
"TypeRegulationsConstraint_InitialPropagateWrapper", 1, 1, &obj0))
SWIG_fail;
64932 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "TypeRegulationsConstraint_InitialPropagateWrapper" "', argument " "1"" of type '" "operations_research::TypeRegulationsConstraint *""'");
64937 (arg1)->InitialPropagate();
64951 PyObject *resultobj = 0;
64955 PyObject * obj0 = 0 ;
64957 if (!PyArg_UnpackTuple(args,
"delete_TypeRegulationsConstraint", 1, 1, &obj0))
SWIG_fail;
64960 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_TypeRegulationsConstraint" "', argument " "1"" of type '" "operations_research::TypeRegulationsConstraint *""'");
64990 PyObject *resultobj = 0;
64994 PyObject * obj0 = 0 ;
64996 if (!PyArg_UnpackTuple(args,
"delete_RoutingDimension", 1, 1, &obj0))
SWIG_fail;
64999 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_RoutingDimension" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65018 PyObject *resultobj = 0;
65022 PyObject * obj0 = 0 ;
65025 if (!PyArg_UnpackTuple(args,
"RoutingDimension_model", 1, 1, &obj0))
SWIG_fail;
65028 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_model" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65047 PyObject *resultobj = 0;
65060 PyObject * obj0 = 0 ;
65061 PyObject * obj1 = 0 ;
65062 PyObject * obj2 = 0 ;
65063 PyObject * obj3 = 0 ;
65066 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetTransitValue", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
65069 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetTransitValue" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65076 arg2 =
static_cast< int64_t
>(val2);
65081 arg3 =
static_cast< int64_t
>(val3);
65086 arg4 =
static_cast< int64_t
>(val4);
65103 PyObject *resultobj = 0;
65116 PyObject * obj0 = 0 ;
65117 PyObject * obj1 = 0 ;
65118 PyObject * obj2 = 0 ;
65119 PyObject * obj3 = 0 ;
65122 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetTransitValueFromClass", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
65125 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetTransitValueFromClass" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65132 arg2 =
static_cast< int64_t
>(val2);
65137 arg3 =
static_cast< int64_t
>(val3);
65142 arg4 =
static_cast< int64_t
>(val4);
65159 PyObject *resultobj = 0;
65166 PyObject * obj0 = 0 ;
65167 PyObject * obj1 = 0 ;
65170 if (!PyArg_UnpackTuple(args,
"RoutingDimension_CumulVar", 2, 2, &obj0, &obj1))
SWIG_fail;
65173 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_CumulVar" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65180 arg2 =
static_cast< int64_t
>(val2);
65197 PyObject *resultobj = 0;
65204 PyObject * obj0 = 0 ;
65205 PyObject * obj1 = 0 ;
65208 if (!PyArg_UnpackTuple(args,
"RoutingDimension_TransitVar", 2, 2, &obj0, &obj1))
SWIG_fail;
65211 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_TransitVar" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65218 arg2 =
static_cast< int64_t
>(val2);
65235 PyObject *resultobj = 0;
65242 PyObject * obj0 = 0 ;
65243 PyObject * obj1 = 0 ;
65246 if (!PyArg_UnpackTuple(args,
"RoutingDimension_FixedTransitVar", 2, 2, &obj0, &obj1))
SWIG_fail;
65249 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_FixedTransitVar" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65256 arg2 =
static_cast< int64_t
>(val2);
65273 PyObject *resultobj = 0;
65280 PyObject * obj0 = 0 ;
65281 PyObject * obj1 = 0 ;
65284 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SlackVar", 2, 2, &obj0, &obj1))
SWIG_fail;
65287 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SlackVar" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65294 arg2 =
static_cast< int64_t
>(val2);
65311 PyObject *resultobj = 0;
65321 PyObject * obj0 = 0 ;
65322 PyObject * obj1 = 0 ;
65323 PyObject * obj2 = 0 ;
65325 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetSpanUpperBoundForVehicle", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
65328 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetSpanUpperBoundForVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65335 arg2 =
static_cast< int64_t
>(val2);
65340 arg3 =
static_cast< int >(val3);
65343 (arg1)->SetSpanUpperBoundForVehicle(arg2,arg3);
65357 PyObject *resultobj = 0;
65367 PyObject * obj0 = 0 ;
65368 PyObject * obj1 = 0 ;
65369 PyObject * obj2 = 0 ;
65371 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetSpanCostCoefficientForVehicle", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
65374 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetSpanCostCoefficientForVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65379 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingDimension_SetSpanCostCoefficientForVehicle" "', argument " "2"" of type '" "int64_t""'");
65381 arg2 =
static_cast< int64_t
>(val2);
65386 arg3 =
static_cast< int >(val3);
65389 (arg1)->SetSpanCostCoefficientForVehicle(arg2,arg3);
65403 PyObject *resultobj = 0;
65410 PyObject * obj0 = 0 ;
65411 PyObject * obj1 = 0 ;
65413 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetSpanCostCoefficientForAllVehicles", 2, 2, &obj0, &obj1))
SWIG_fail;
65416 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetSpanCostCoefficientForAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65421 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingDimension_SetSpanCostCoefficientForAllVehicles" "', argument " "2"" of type '" "int64_t""'");
65423 arg2 =
static_cast< int64_t
>(val2);
65426 (arg1)->SetSpanCostCoefficientForAllVehicles(arg2);
65440 PyObject *resultobj = 0;
65447 PyObject * obj0 = 0 ;
65448 PyObject * obj1 = 0 ;
65450 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetGlobalSpanCostCoefficient", 2, 2, &obj0, &obj1))
SWIG_fail;
65453 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetGlobalSpanCostCoefficient" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65460 arg2 =
static_cast< int64_t
>(val2);
65463 (arg1)->SetGlobalSpanCostCoefficient(arg2);
65477 PyObject *resultobj = 0;
65490 PyObject * obj0 = 0 ;
65491 PyObject * obj1 = 0 ;
65492 PyObject * obj2 = 0 ;
65493 PyObject * obj3 = 0 ;
65495 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetCumulVarSoftUpperBound", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
65498 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetCumulVarSoftUpperBound" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65505 arg2 =
static_cast< int64_t
>(val2);
65510 arg3 =
static_cast< int64_t
>(val3);
65515 arg4 =
static_cast< int64_t
>(val4);
65518 (arg1)->SetCumulVarSoftUpperBound(arg2,arg3,arg4);
65532 PyObject *resultobj = 0;
65539 PyObject * obj0 = 0 ;
65540 PyObject * obj1 = 0 ;
65543 if (!PyArg_UnpackTuple(args,
"RoutingDimension_HasCumulVarSoftUpperBound", 2, 2, &obj0, &obj1))
SWIG_fail;
65546 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_HasCumulVarSoftUpperBound" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65553 arg2 =
static_cast< int64_t
>(val2);
65570 PyObject *resultobj = 0;
65577 PyObject * obj0 = 0 ;
65578 PyObject * obj1 = 0 ;
65581 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetCumulVarSoftUpperBound", 2, 2, &obj0, &obj1))
SWIG_fail;
65584 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetCumulVarSoftUpperBound" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65591 arg2 =
static_cast< int64_t
>(val2);
65608 PyObject *resultobj = 0;
65615 PyObject * obj0 = 0 ;
65616 PyObject * obj1 = 0 ;
65619 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetCumulVarSoftUpperBoundCoefficient", 2, 2, &obj0, &obj1))
SWIG_fail;
65622 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetCumulVarSoftUpperBoundCoefficient" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65627 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingDimension_GetCumulVarSoftUpperBoundCoefficient" "', argument " "2"" of type '" "int64_t""'");
65629 arg2 =
static_cast< int64_t
>(val2);
65646 PyObject *resultobj = 0;
65659 PyObject * obj0 = 0 ;
65660 PyObject * obj1 = 0 ;
65661 PyObject * obj2 = 0 ;
65662 PyObject * obj3 = 0 ;
65664 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetCumulVarSoftLowerBound", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
65667 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetCumulVarSoftLowerBound" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65674 arg2 =
static_cast< int64_t
>(val2);
65679 arg3 =
static_cast< int64_t
>(val3);
65684 arg4 =
static_cast< int64_t
>(val4);
65687 (arg1)->SetCumulVarSoftLowerBound(arg2,arg3,arg4);
65701 PyObject *resultobj = 0;
65708 PyObject * obj0 = 0 ;
65709 PyObject * obj1 = 0 ;
65712 if (!PyArg_UnpackTuple(args,
"RoutingDimension_HasCumulVarSoftLowerBound", 2, 2, &obj0, &obj1))
SWIG_fail;
65715 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_HasCumulVarSoftLowerBound" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65722 arg2 =
static_cast< int64_t
>(val2);
65739 PyObject *resultobj = 0;
65746 PyObject * obj0 = 0 ;
65747 PyObject * obj1 = 0 ;
65750 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetCumulVarSoftLowerBound", 2, 2, &obj0, &obj1))
SWIG_fail;
65753 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetCumulVarSoftLowerBound" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65760 arg2 =
static_cast< int64_t
>(val2);
65777 PyObject *resultobj = 0;
65784 PyObject * obj0 = 0 ;
65785 PyObject * obj1 = 0 ;
65788 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetCumulVarSoftLowerBoundCoefficient", 2, 2, &obj0, &obj1))
SWIG_fail;
65791 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetCumulVarSoftLowerBoundCoefficient" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65796 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingDimension_GetCumulVarSoftLowerBoundCoefficient" "', argument " "2"" of type '" "int64_t""'");
65798 arg2 =
static_cast< int64_t
>(val2);
65815 PyObject *resultobj = 0;
65817 SwigValueWrapper< std::vector< operations_research::IntervalVar * > > arg2 ;
65819 std::vector< int64_t > arg4 ;
65822 std::vector< operations_research::IntervalVar * > temp2 ;
65825 std::vector< int64_t > temp4 ;
65826 PyObject * obj0 = 0 ;
65827 PyObject * obj1 = 0 ;
65828 PyObject * obj2 = 0 ;
65829 PyObject * obj3 = 0 ;
65831 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetBreakIntervalsOfVehicle", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
65834 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetBreakIntervalsOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65838 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
65839 if (!PyErr_Occurred())
65843 arg2 = std::move(temp2);
65849 arg3 =
static_cast< int >(val3);
65851 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
65852 if (!PyErr_Occurred())
65856 arg4 = std::move(temp4);
65860 (arg1)->SetBreakIntervalsOfVehicle(arg2,arg3,arg4);
65874 PyObject *resultobj = 0;
65887 PyObject * obj0 = 0 ;
65888 PyObject * obj1 = 0 ;
65889 PyObject * obj2 = 0 ;
65890 PyObject * obj3 = 0 ;
65892 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetBreakDistanceDurationOfVehicle", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
65895 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetBreakDistanceDurationOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65900 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingDimension_SetBreakDistanceDurationOfVehicle" "', argument " "2"" of type '" "int64_t""'");
65902 arg2 =
static_cast< int64_t
>(val2);
65905 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "RoutingDimension_SetBreakDistanceDurationOfVehicle" "', argument " "3"" of type '" "int64_t""'");
65907 arg3 =
static_cast< int64_t
>(val3);
65912 arg4 =
static_cast< int >(val4);
65915 (arg1)->SetBreakDistanceDurationOfVehicle(arg2,arg3,arg4);
65929 PyObject *resultobj = 0;
65933 PyObject * obj0 = 0 ;
65935 if (!PyArg_UnpackTuple(args,
"RoutingDimension_InitializeBreaks", 1, 1, &obj0))
SWIG_fail;
65938 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_InitializeBreaks" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65943 (arg1)->InitializeBreaks();
65957 PyObject *resultobj = 0;
65961 PyObject * obj0 = 0 ;
65964 if (!PyArg_UnpackTuple(args,
"RoutingDimension_HasBreakConstraints", 1, 1, &obj0))
SWIG_fail;
65967 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_HasBreakConstraints" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65986 PyObject *resultobj = 0;
65993 PyObject * obj0 = 0 ;
65994 PyObject * obj1 = 0 ;
65997 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetPreTravelEvaluatorOfVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
66000 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetPreTravelEvaluatorOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66007 arg2 =
static_cast< int >(val2);
66024 PyObject *resultobj = 0;
66031 PyObject * obj0 = 0 ;
66032 PyObject * obj1 = 0 ;
66035 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetPostTravelEvaluatorOfVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
66038 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetPostTravelEvaluatorOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66045 arg2 =
static_cast< int >(val2);
66062 PyObject *resultobj = 0;
66066 PyObject * obj0 = 0 ;
66069 if (!PyArg_UnpackTuple(args,
"RoutingDimension_base_dimension", 1, 1, &obj0))
SWIG_fail;
66072 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_base_dimension" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66091 PyObject *resultobj = 0;
66098 PyObject * obj0 = 0 ;
66099 PyObject * obj1 = 0 ;
66102 if (!PyArg_UnpackTuple(args,
"RoutingDimension_ShortestTransitionSlack", 2, 2, &obj0, &obj1))
SWIG_fail;
66105 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_ShortestTransitionSlack" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66112 arg2 =
static_cast< int64_t
>(val2);
66129 PyObject *resultobj = 0;
66133 PyObject * obj0 = 0 ;
66134 std::string *result = 0 ;
66136 if (!PyArg_UnpackTuple(args,
"RoutingDimension_name", 1, 1, &obj0))
SWIG_fail;
66139 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_name" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66158 PyObject *resultobj = 0;
66166 PyObject * obj0 = 0 ;
66167 PyObject * obj1 = 0 ;
66168 PyObject * obj2 = 0 ;
66170 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetPickupToDeliveryLimitFunctionForPair", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
66173 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetPickupToDeliveryLimitFunctionForPair" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
66178 arg2 = [
input](
int i,
int j) {
66179 return InvokePythonCallableReturning<int64_t>(
input.get(),
"ii", i, j);
66184 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "RoutingDimension_SetPickupToDeliveryLimitFunctionForPair" "', argument " "3"" of type '" "int""'");
66186 arg3 =
static_cast< int >(val3);
66189 (arg1)->SetPickupToDeliveryLimitFunctionForPair(arg2,arg3);
66203 PyObject *resultobj = 0;
66207 PyObject * obj0 = 0 ;
66210 if (!PyArg_UnpackTuple(args,
"RoutingDimension_HasPickupToDeliveryLimits", 1, 1, &obj0))
SWIG_fail;
66213 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_HasPickupToDeliveryLimits" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66232 PyObject *resultobj = 0;
66245 PyObject * obj0 = 0 ;
66246 PyObject * obj1 = 0 ;
66247 PyObject * obj2 = 0 ;
66248 PyObject * obj3 = 0 ;
66250 if (!PyArg_UnpackTuple(args,
"RoutingDimension_AddNodePrecedence", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
66253 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_AddNodePrecedence" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
66260 arg2 =
static_cast< int64_t
>(val2);
66265 arg3 =
static_cast< int64_t
>(val3);
66270 arg4 =
static_cast< int64_t
>(val4);
66273 (arg1)->AddNodePrecedence(arg2,arg3,arg4);
66287 PyObject *resultobj = 0;
66294 PyObject * obj0 = 0 ;
66295 PyObject * obj1 = 0 ;
66298 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetSpanUpperBoundForVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
66301 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetSpanUpperBoundForVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66308 arg2 =
static_cast< int >(val2);
66325 PyObject *resultobj = 0;
66332 PyObject * obj0 = 0 ;
66333 PyObject * obj1 = 0 ;
66336 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetSpanCostCoefficientForVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
66339 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetSpanCostCoefficientForVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66346 arg2 =
static_cast< int >(val2);
66363 PyObject *resultobj = 0;
66367 PyObject * obj0 = 0 ;
66370 if (!PyArg_UnpackTuple(args,
"RoutingDimension_global_span_cost_coefficient", 1, 1, &obj0))
SWIG_fail;
66373 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_global_span_cost_coefficient" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66392 PyObject *resultobj = 0;
66396 PyObject * obj0 = 0 ;
66399 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetGlobalOptimizerOffset", 1, 1, &obj0))
SWIG_fail;
66402 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetGlobalOptimizerOffset" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66421 PyObject *resultobj = 0;
66428 PyObject * obj0 = 0 ;
66429 PyObject * obj1 = 0 ;
66432 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetLocalOptimizerOffsetForVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
66435 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetLocalOptimizerOffsetForVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66442 arg2 =
static_cast< int >(val2);
66466 PyObject *resultobj = 0;
66468 SwigValueWrapper< std::vector< operations_research::IntVar * > > arg2 ;
66469 std::vector< int64_t > arg3 ;
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 ;
66479 if (!PyArg_UnpackTuple(args,
"MakeSetValuesFromTargets", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
66486 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
66487 if (!PyErr_Occurred())
66491 arg2 = std::move(temp2);
66494 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
66495 if (!PyErr_Occurred())
66499 arg3 = std::move(temp3);
66517 PyObject *resultobj = 0;
66528 PyObject * obj0 = 0 ;
66529 PyObject * obj1 = 0 ;
66530 PyObject * obj2 = 0 ;
66531 PyObject * obj3 = 0 ;
66534 if (!PyArg_UnpackTuple(args,
"SolveModelWithSat", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
66537 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolveModelWithSat" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
66540 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "SolveModelWithSat" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
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);
66554 Py_DECREF(pyresult);
66591 "This parameter describes how the next variable to instantiate\n"
66592 "will be chosen.\n"
66595 "This parameter describes how the next variable to instantiate\n"
66596 "will be chosen.\n"
66601 "Maximum number of intervals that the initialization of impacts will scan\n"
66605 "Maximum number of intervals that the initialization of impacts will scan\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"
66614 "The default phase will run heuristics periodically. This parameter\n"
66615 "indicates if we should run all heuristics, or a randomly selected\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"
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"
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"
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"
66641 "This represents the amount of information displayed by the default search.\n"
66642 "NONE means no display, VERBOSE means extra information.\n"
66645 "This represents the amount of information displayed by the default search.\n"
66646 "NONE means no display, VERBOSE means extra information.\n"
66659 "Adds the constraint 'c' to the model.\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"
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"
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"
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"
66699 {
"Solver_CheckAssignment",
_wrap_Solver_CheckAssignment, METH_VARARGS,
" Checks whether the given assignment satisfies all relevant constraints."},
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"
66705 {
"Solver_Fail",
_wrap_Solver_Fail, METH_VARARGS,
" Abandon the current branch in the search tree. A backtrack will follow."},
66708 "DEPRECATED: Use Now() instead.\n"
66709 "Time elapsed, in ms since the creation of the solver.\n"
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."},
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"
66719 {
"Solver_FailStamp",
_wrap_Solver_FailStamp, METH_VARARGS,
" The fail_stamp() is incremented after each backtrack."},
66722 "MakeIntVar will create the best range based int var for the bounds given.\n"
66727 "MakeIntVar will create a variable with the given sparse domain.\n"
66732 "MakeIntVar will create a variable with the given sparse domain.\n"
66737 "MakeIntVar will create the best range based int var for the bounds given.\n"
66742 "MakeIntVar will create a variable with the given sparse domain.\n"
66747 "MakeIntVar will create a variable with the given sparse domain.\n"
66751 "MakeBoolVar will create a variable with a {0, 1} domain.\n"
66756 "MakeBoolVar will create a variable with a {0, 1} domain.\n"
66760 "IntConst will create a constant expression.\n"
66765 "IntConst will create a constant expression.\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"
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"
66804 "2D version of function-based element expression, values(expr1, expr2).\n"
66812 "Returns the expression expr such that vars[expr] == value.\n"
66813 "It assumes that vars are all different.\n"
66822 "std::min (left, right)\n"
66827 "std::min(expr, value)\n"
66832 "std::min(expr, value)\n"
66841 "std::max(left, right)\n"
66846 "std::max(expr, value)\n"
66851 "std::max(expr, value)\n"
66855 "Semi continuous Expression (x <= 0 -> f(x) = 0; x > 0 -> f(x) = ax + b)\n"
66856 "a >= 0 and b >= 0\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"
66902 "This method is a specialized case of the MakeConstraintDemon\n"
66903 "method to call the InitiatePropagate of the constraint 'ct'.\n"
66906 "This method is a specialized case of the MakeConstraintDemon\n"
66907 "method to call the InitiatePropagate of the constraint 'ct' with\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"
66920 "expr not in set.\n"
66925 "expr should not be in the list of forbidden intervals [start[i]..end[i]].\n"
66930 "expr should not be in the list of forbidden intervals [start[i]..end[i]].\n"
66936 "|{i | vars[i] == value}| == max_count\n"
66941 "|{i | vars[i] == value}| == max_count\n"
66945 "Aggregated version of count: |{i | v[i] == values[j]}| == cards[j]\n"
66950 "Aggregated version of count: |{i | v[i] == values[j]}| == cards[j]\n"
66955 "Aggregated version of count: |{i | v[i] == j}| == cards[j]\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"
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"
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"
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"
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"
66992 "Deviation constraint:\n"
66993 "sum_i |n * vars[i] - total_sum| <= deviation_var and\n"
66994 "sum_i vars[i] == total_sum\n"
66999 "All variables are pairwise different. This corresponds to the\n"
67000 "stronger version of the propagation algorithm.\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"
67010 "All variables are pairwise different, unless they are assigned to\n"
67011 "the escape value.\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"
67019 "This constraint propagates in both directions: from \"vars\" to\n"
67020 "\"sorted_vars\" and vice-versa.\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"
67027 "For more info, please have a look at:\n"
67028 " https://mpi-inf.mpg.de/~mehlhorn/ftp/Mehlhorn-Thiel.pdf\n"
67031 "Creates a constraint that enforces that left is lexicographically less\n"
67035 "Creates a constraint that enforces that left is lexicographically less\n"
67036 "than or equal to right.\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"
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"
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"
67057 {
"Solver_Circuit",
_wrap_Solver_Circuit, METH_VARARGS,
" Force the \"nexts\" variable to create a complete Hamiltonian path."},
67059 "Force the \"nexts\" variable to create a complete Hamiltonian path\n"
67060 "for those that do not loop upon themselves.\n"
67063 "Delayed version of the same constraint: propagation on the nexts variables\n"
67064 "is delayed until all constraints have propagated.\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"
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"
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"
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"
67103 "Compatibility layer for Python API.\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"
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"
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"
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"
67144 "Creates a performed interval var with a fixed duration. The duration must\n"
67145 "be greater than 0.\n"
67150 "Creates an interval var with a fixed duration, and performed_variable.\n"
67151 "The duration must be greater than 0.\n"
67155 "Creates an interval var by specifying the bounds on start,\n"
67156 "duration, and end.\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"
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"
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"
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"
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"
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"
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"
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"
67202 " This is very useful to implement propagators that may only modify\n"
67203 " the start max or end max.\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"
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"
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"
67221 " This is very useful for implementing propagators that may only modify\n"
67222 " the start min or end min.\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"
67233 "This constraint implements a temporal disjunction between two\n"
67237 "This constraint forces all interval vars into an non-overlapping\n"
67238 "sequence. Intervals with zero duration can be scheduled anywhere.\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"
67246 "Intervals and demands should be vectors of equal size.\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"
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"
67259 "Intervals and demands should be vectors of equal size.\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"
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"
67272 "Intervals and demands should be vectors of equal size.\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"
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"
67285 "Intervals and demands should be vectors of equal size.\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"
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"
67298 "Intervals and demands should be vectors of equal size.\n"
67300 "Demands should be positive.\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"
67309 "Intervals and demands should be vectors of equal size.\n"
67311 "Demands should be positive.\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"
67322 "This method creates an empty assignment.\n"
67327 "This method creates an assignment which is a copy of 'a'.\n"
67331 "Collect the first solution of the search.\n"
67336 "Collect the first solution of the search. The variables will need to\n"
67337 "be added later.\n"
67341 "Collect the last solution of the search.\n"
67346 "Collect the last solution of the search. The variables will need to\n"
67347 "be added later.\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"
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"
67367 "Collect all solutions of the search.\n"
67372 "Collect all solutions of the search. The variables will need to\n"
67373 "be added later.\n"
67377 {
"Solver_Optimize",
_wrap_Solver_Optimize, METH_VARARGS,
" Creates a objective with a given sense (true = maximization)."},
67380 "Creates a minimization weighted objective. The actual objective is\n"
67381 "scalar_prod(sub_objectives, weights).\n"
67386 "Creates a minimization weighted objective. The actual objective is\n"
67387 "scalar_prod(sub_objectives, weights).\n"
67391 "Creates a maximization weigthed objective.\n"
67396 "Creates a maximization weigthed objective.\n"
67400 "Creates a weighted objective with a given sense (true = maximization).\n"
67405 "Creates a weighted objective with a given sense (true = maximization).\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"
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"
67432 "This search monitor will restart the search periodically after 'frequency'\n"
67435 {
"Solver_TimeLimit",
_wrap_Solver_TimeLimit, METH_VARARGS,
" Creates a search limit that constrains the running time."},
67437 "Creates a search limit that constrains the number of branches\n"
67438 "explored in the search tree.\n"
67441 "Creates a search limit that constrains the number of failures\n"
67442 "that can happen when exploring the search tree.\n"
67445 "Creates a search limit that constrains the number of solutions found\n"
67446 "during the search.\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"
67455 " The SearchMonitors below will display a periodic search log\n"
67456 " on LOG(INFO) every branch_period branches explored.\n"
67461 " At each solution, this monitor also display the var value.\n"
67466 " At each solution, this monitor will also display result of\n"
67467 "``display_callback``.\n"
67472 " At each solution, this monitor will display the 'var' value and the\n"
67473 " result of ``display_callback``.\n"
67478 " OptimizeVar Search Logs\n"
67479 " At each solution, this monitor will also display the 'opt_var' value.\n"
67484 " Creates a search monitor that will also print the result of the\n"
67485 " display callback.\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"
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"
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"
67519 "Returns a decision that tries to rank first the ith interval var\n"
67520 "in the sequence variable.\n"
67523 "Returns a decision that tries to rank last the ith interval var\n"
67524 "in the sequence variable.\n"
67528 "Phases on IntVar arrays.\n"
67529 "for all other functions that have several homonyms in this .h).\n"
67534 "Scheduling phases.\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"
67541 "Returns a decision builder that will add the given constraint to\n"
67547 "Returns a DecisionBuilder which restores an Assignment\n"
67548 "(calls void Assignment::Restore())\n"
67551 "Returns a DecisionBuilder which stores an Assignment\n"
67552 "(calls void Assignment::Store())\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"
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"
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"
67585 "Randomized version of local search concatenator; calls a random operator\n"
67586 "at each call to MakeNextNeighbor().\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"
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"
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"
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"
67631 "Variant with a sub_decison_builder specific to the first solution.\n"
67635 "Gets the search depth of the current active search. Returns -1 if\n"
67636 "there is no active search opened.\n"
67639 "Gets the search left depth of the current active search. Returns -1 if\n"
67640 "there is no active search opened.\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"
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."},
67651 "Counts the number of constraints that have been added\n"
67652 "to the solver before the search.\n"
67654 {
"Solver_Accept",
_wrap_Solver_Accept, METH_VARARGS,
" Accepts the given model visitor."},
67658 "These methods are only useful for the SWIG wrappers, which need a way\n"
67659 "to externally cause the Solver to fail.\n"
67694 {
"Decision_ApplyWrapper",
_wrap_Decision_ApplyWrapper, METH_VARARGS,
" Apply will be called first when the decision is executed."},
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"
67717 "This indicates the priority of a demon. Immediate demons are treated\n"
67718 "separately and corresponds to variables.\n"
67721 {
"Demon_RunWrapper",
_wrap_Demon_RunWrapper, METH_VARARGS,
" This is the main callback of the demon."},
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"
67729 "This method inhibits the demon in the search tree below the\n"
67730 "current position.\n"
67732 {
"Demon_Desinhibit",
_wrap_Demon_Desinhibit, METH_VARARGS,
" This method un-inhibits the demon that was previously inhibited."},
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"
67743 "This method performs the initial propagation of the\n"
67744 "constraint. It is called just after the post.\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"
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"
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"
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"
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"
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."},
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"
67832 "Attach a demon that will watch the min or the max of the expression.\n"
67837 "Attach a demon that will watch the min or the max of the expression.\n"
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."},
67873 "This method returns the value of the variable. This method checks\n"
67874 "before that the variable is bound.\n"
67876 {
"IntVar_RemoveValue",
_wrap_IntVar_RemoveValue, METH_VARARGS,
" This method removes the value 'v' from the domain of the variable."},
67878 "This method removes the interval 'l' .. 'u' from the domain of\n"
67879 "the variable. It assumes that 'l' <= 'u'.\n"
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."},
67885 "This method attaches a demon that will be awakened when the\n"
67886 "variable is bound.\n"
67891 "This method attaches a closure that will be awakened when the\n"
67892 "variable is bound.\n"
67896 "This method attaches a demon that will watch any domain\n"
67897 "modification of the domain of the variable.\n"
67902 "This method attaches a closure that will watch any domain\n"
67903 "modification of the domain of the variable.\n"
67905 {
"IntVar_Size",
_wrap_IntVar_Size, METH_VARARGS,
" This method returns the number of values in the domain of the variable."},
67907 "This method returns whether the value 'v' is in the domain of the\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"
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"
67934 "Returns the number of failures encountered at the time of the nth\n"
67938 {
"SolutionCollector_Value",
_wrap_SolutionCollector_Value, METH_VARARGS,
" This is a shortcut to get the Value of 'var' in the nth solution."},
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"
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"
67954 "This is a shortcut to get the list of unperformed of 'var' in the\n"
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."},
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"
67976 {
"SearchLimit_Init",
_wrap_SearchLimit_Init, METH_VARARGS,
" This method is called when the search limit is initialized."},
67983 "These methods query, set, and watch the start position of the\n"
67994 {
"IntervalVar_DurationMin",
_wrap_IntervalVar_DurationMin, METH_VARARGS,
" These methods query, set, and watch the duration of the interval var."},
68003 {
"IntervalVar_EndMin",
_wrap_IntervalVar_EndMin, METH_VARARGS,
" These methods query, set, and watch the end position of the interval var."},
68013 "These methods query, set, and watch the performed status of the\n"
68024 "Attaches a demon awakened when anything about this interval changes.\n"
68029 "Attaches a closure awakened when anything about this interval changes.\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"
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"
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"
68081 "Indicates that the index_th interval var will not be ranked first\n"
68082 "of all currently unranked interval vars.\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"
68089 "Indicates that the index_th interval var will not be ranked first\n"
68090 "of all currently unranked interval vars.\n"
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."},
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"
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"
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"
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"
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"
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"
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"
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"
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"
68293 "This dimension enforces that cost_var == sum of weights[i] for\n"
68294 "all objects 'i' assigned to a bin.\n"
68297 "This dimension links 'count_var' to the actual number of bins used in the\n"
68301 "This dimension links 'count_var' to the actual number of items\n"
68302 "assigned to a bin in the pack.\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"
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"
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"
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"
68380 "This method should not be overridden. Override OnStart() instead which is\n"
68381 "called before exiting this method.\n"
68386 "Returns the value in the current assignment of the variable of given\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"
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"
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"
68416 "This method should not be overridden. Override OnStart() instead which is\n"
68417 "called before exiting this method.\n"
68422 "Returns the value in the current assignment of the variable of given\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"
68448 {
"ChangeValue_OneNeighbor",
_wrap_ChangeValue_OneNeighbor, METH_VARARGS,
" This method should not be overridden. Override ModifyValue() instead."},
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"
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"
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"
68489 "This method should not be overridden. Override OnSynchronize() instead\n"
68490 "which is called before exiting this method.\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"
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"
68539 "Constructor taking an index manager. The version which does not take\n"
68540 "RoutingModelParameters is equivalent to passing\n"
68541 "DefaultRoutingModelParameters().\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"
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"
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"
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"
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"
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"
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"
68625 "Returns [global|local]_dimension_optimizers_, which are empty if the model\n"
68626 "has not been closed.\n"
68632 "Returns the global/local dimension cumul optimizer for a given dimension,\n"
68633 "or nullptr if there is none.\n"
68641 "Returns a dimension from its name. Returns nullptr if the dimension does\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"
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"
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"
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"
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"
68676 "Returns the maximum number of possible active nodes of the node\n"
68677 "disjunction of index 'index'.\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"
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"
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"
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"
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"
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"
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"
68732 "Sets the Pickup and delivery policy of all vehicles. It is equivalent to\n"
68733 "calling SetPickupAndDeliveryPolicyOfVehicle on all vehicles.\n"
68738 "Returns the number of non-start/end nodes which do not appear in a\n"
68739 "pickup/delivery pair.\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"
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"
68762 "Returns true iff any hard (resp. temporal) type incompatibilities have\n"
68763 "been added to the model.\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"
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"
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"
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"
68792 "Returns the set of same-vehicle requirement alternatives for the given\n"
68798 "Returns true iff any same-route (resp. temporal) type requirements have\n"
68799 "been added to the model.\n"
68803 "Returns true iff the model has any incompatibilities or requirements set\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"
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"
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"
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"
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"
68836 "Sets the fixed cost of all vehicle routes. It is equivalent to calling\n"
68837 "SetFixedCostOfVehicle on all vehicle routes.\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"
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"
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"
68860 "Sets the linear and quadratic cost factor of all vehicles.\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"
68873 "Adds a local search operator to the set of operators used to solve the\n"
68874 "vehicle routing problem.\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"
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"
68889 "Adds a variable to maximize in the solution finalizer (see above for\n"
68890 "information on the solution finalizer).\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"
68897 "Add a variable to set the closest possible to the target value in the\n"
68898 "solution finalizer.\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"
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"
68913 "Solves the current routing model; closes the current model.\n"
68914 "This is equivalent to calling\n"
68915 "SolveWithParameters(DefaultRoutingSearchParameters())\n"
68917 "SolveFromAssignmentWithParameters(assignment,\n"
68918 " DefaultRoutingSearchParameters()).\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"
68930 "Same as above, except that if assignment is not null, it will be used as\n"
68931 "the initial solution.\n"
68934 "Same as above but will try all assignments in order as first solutions\n"
68935 "until one succeeds.\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"
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"
68951 {
"RoutingModel_status",
_wrap_RoutingModel_status, METH_VARARGS,
" Returns the current status of the routing model."},
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"
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"
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"
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"
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"
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"
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"
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"
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"
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"
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"
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"
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"
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"
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"
69073 "Model inspection.\n"
69074 "Returns the variable index of the starting node of a vehicle route.\n"
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."},
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"
69084 "Assignment inspection\n"
69085 "Returns the variable index of the node directly after the node\n"
69086 "corresponding to 'index' in 'assignment'.\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"
69093 {
"RoutingModel_ActiveVar",
_wrap_RoutingModel_ActiveVar, METH_VARARGS,
" Returns the active variable of the node corresponding to index."},
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"
69099 "Returns the variable specifying whether or not costs are considered for\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"
69106 {
"RoutingModel_CostVar",
_wrap_RoutingModel_CostVar, METH_VARARGS,
" Returns the global cost variable which is being minimized."},
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"
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"
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"
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"
69130 "Returns true iff the model contains a vehicle with the given\n"
69131 "cost_class_index.\n"
69137 "Returns a vehicle of the given vehicle class, and -1 if there are no\n"
69138 "vehicles for this class.\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"
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"
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"
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"
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"
69181 "Sizes and indices\n"
69182 "Returns the number of nodes in the model.\n"
69185 {
"RoutingModel_Size",
_wrap_RoutingModel_Size, METH_VARARGS,
" Returns the number of next variables in the model."},
69187 "Returns statistics on first solution search, number of decisions sent to\n"
69188 "filters, number of decisions rejected by filters.\n"
69194 "The next few members are in the public section only for testing purposes.\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"
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"
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"
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"
69264 "Get the cumul, transit and slack variables for the given node (given as\n"
69265 "int64_t var index).\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"
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"
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"
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"
69303 "Returns true if a soft upper bound has been set for a given variable\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"
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"
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"
69324 "This is also handy to model earliness costs when the dimension represents\n"
69328 "Returns true if a soft lower bound has been set for a given variable\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"
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"
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"
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"
69357 "Deprecated, sets pre_travel(i, j) = node_visit_transit[i].\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"
69366 "Sets up vehicle_break_intervals_, vehicle_break_distance_duration_,\n"
69367 "pre_travel_evaluators and post_travel_evaluators.\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"
69393 "A decision builder which tries to assign values to variables as close as\n"
69394 "possible to target values first.\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"
69402 { NULL, NULL, 0, NULL }
69406 { NULL, NULL, 0, NULL }
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};
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};
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};
69934static swig_cast_info _swigc__p_operations_research__AssignmentElement[] = { {&
_swigt__p_operations_research__AssignmentElement, 0, 0, 0}, {&
_swigt__p_operations_research__IntVarElement,
_p_operations_research__IntVarElementTo_p_operations_research__AssignmentElement, 0, 0}, {&
_swigt__p_operations_research__IntervalVarElement,
_p_operations_research__IntervalVarElementTo_p_operations_research__AssignmentElement, 0, 0}, {&
_swigt__p_operations_research__SequenceVarElement,
_p_operations_research__SequenceVarElementTo_p_operations_research__AssignmentElement, 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}};
69945static swig_cast_info _swigc__p_operations_research__Constraint[] = { {&
_swigt__p_operations_research__Constraint, 0, 0, 0}, {&
_swigt__p_operations_research__CastConstraint,
_p_operations_research__CastConstraintTo_p_operations_research__Constraint, 0, 0}, {&
_swigt__p_operations_research__DisjunctiveConstraint,
_p_operations_research__DisjunctiveConstraintTo_p_operations_research__Constraint, 0, 0}, {&
_swigt__p_operations_research__TypeRegulationsConstraint,
_p_operations_research__TypeRegulationsConstraintTo_p_operations_research__Constraint, 0, 0}, {&
_swigt__p_operations_research__Pack,
_p_operations_research__PackTo_p_operations_research__Constraint, 0, 0}, {&
_swigt__p_operations_research__GlobalVehicleBreaksConstraint,
_p_operations_research__GlobalVehicleBreaksConstraintTo_p_operations_research__Constraint, 0, 0},{0, 0, 0, 0}};
69948static swig_cast_info _swigc__p_operations_research__DecisionVisitor[] = { {&
_swigt__p_operations_research__DecisionVisitor, 0, 0, 0}, {&
_swigt__p_operations_research__SymmetryBreaker,
_p_operations_research__SymmetryBreakerTo_p_operations_research__DecisionVisitor, 0, 0},{0, 0, 0, 0}};
69955static swig_cast_info _swigc__p_operations_research__IntExpr[] = { {&
_swigt__p_operations_research__BooleanVar,
_p_operations_research__BooleanVarTo_p_operations_research__IntExpr, 0, 0}, {&
_swigt__p_operations_research__IntVar,
_p_operations_research__IntVarTo_p_operations_research__IntExpr, 0, 0}, {&
_swigt__p_operations_research__IntExpr, 0, 0, 0}, {&
_swigt__p_operations_research__BaseIntExpr,
_p_operations_research__BaseIntExprTo_p_operations_research__IntExpr, 0, 0},{0, 0, 0, 0}};
69957static swig_cast_info _swigc__p_operations_research__IntVar[] = { {&
_swigt__p_operations_research__BooleanVar,
_p_operations_research__BooleanVarTo_p_operations_research__IntVar, 0, 0}, {&
_swigt__p_operations_research__IntVar, 0, 0, 0},{0, 0, 0, 0}};
69961static swig_cast_info _swigc__p_operations_research__IntVarLocalSearchOperator[] = { {&
_swigt__p_operations_research__IntVarLocalSearchOperator, 0, 0, 0}, {&
_swigt__p_operations_research__PathOperator,
_p_operations_research__PathOperatorTo_p_operations_research__IntVarLocalSearchOperator, 0, 0}, {&
_swigt__p_operations_research__BaseLns,
_p_operations_research__BaseLnsTo_p_operations_research__IntVarLocalSearchOperator, 0, 0}, {&
_swigt__p_operations_research__ChangeValue,
_p_operations_research__ChangeValueTo_p_operations_research__IntVarLocalSearchOperator, 0, 0},{0, 0, 0, 0}};
69965static swig_cast_info _swigc__p_operations_research__LocalSearchFilter[] = { {&
_swigt__p_operations_research__LocalSearchFilter, 0, 0, 0}, {&
_swigt__p_operations_research__IntVarLocalSearchFilter,
_p_operations_research__IntVarLocalSearchFilterTo_p_operations_research__LocalSearchFilter, 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}};
69978static swig_cast_info _swigc__p_operations_research__RevT_long_t[] = { {&
_swigt__p_operations_research__RevT_long_t, 0, 0, 0}, {&
_swigt__p_operations_research__NumericalRevT_long_t,
_p_operations_research__NumericalRevT_long_tTo_p_operations_research__RevT_long_t, 0, 0},{0, 0, 0, 0}};
69984static swig_cast_info _swigc__p_operations_research__SearchLimit[] = { {&
_swigt__p_operations_research__RegularLimit,
_p_operations_research__RegularLimitTo_p_operations_research__SearchLimit, 0, 0}, {&
_swigt__p_operations_research__SearchLimit, 0, 0, 0}, {&
_swigt__p_operations_research__ImprovementSearchLimit,
_p_operations_research__ImprovementSearchLimitTo_p_operations_research__SearchLimit, 0, 0},{0, 0, 0, 0}};
69985static swig_cast_info _swigc__p_operations_research__SearchMonitor[] = { {&
_swigt__p_operations_research__SearchMonitor, 0, 0, 0}, {&
_swigt__p_operations_research__OptimizeVar,
_p_operations_research__OptimizeVarTo_p_operations_research__SearchMonitor, 0, 0}, {&
_swigt__p_operations_research__PropagationMonitor,
_p_operations_research__PropagationMonitorTo_p_operations_research__SearchMonitor, 0, 0}, {&
_swigt__p_operations_research__LocalSearchMonitor,
_p_operations_research__LocalSearchMonitorTo_p_operations_research__SearchMonitor, 0, 0}, {&
_swigt__p_operations_research__SolutionCollector,
_p_operations_research__SolutionCollectorTo_p_operations_research__SearchMonitor, 0, 0}, {&
_swigt__p_operations_research__RegularLimit,
_p_operations_research__RegularLimitTo_p_operations_research__SearchMonitor, 0, 0}, {&
_swigt__p_operations_research__SearchLimit,
_p_operations_research__SearchLimitTo_p_operations_research__SearchMonitor, 0, 0}, {&
_swigt__p_operations_research__ImprovementSearchLimit,
_p_operations_research__ImprovementSearchLimitTo_p_operations_research__SearchMonitor, 0, 0}, {&
_swigt__p_operations_research__SearchLog,
_p_operations_research__SearchLogTo_p_operations_research__SearchMonitor, 0, 0},{0, 0, 0, 0}};
69994static swig_cast_info _swigc__p_operations_research__TypeRegulationsChecker[] = { {&
_swigt__p_operations_research__TypeRegulationsChecker, 0, 0, 0}, {&
_swigt__p_operations_research__TypeIncompatibilityChecker,
_p_operations_research__TypeIncompatibilityCheckerTo_p_operations_research__TypeRegulationsChecker, 0, 0}, {&
_swigt__p_operations_research__TypeRequirementChecker,
_p_operations_research__TypeRequirementCheckerTo_p_operations_research__TypeRegulationsChecker, 0, 0},{0, 0, 0, 0}};
69997static swig_cast_info _swigc__p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t[] = { {&
_swigt__p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t, 0, 0, 0}, {&
_swigt__p_operations_research__IntVarLocalSearchOperator,
_p_operations_research__IntVarLocalSearchOperatorTo_p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t, 0, 0}, {&
_swigt__p_operations_research__PathOperator,
_p_operations_research__PathOperatorTo_p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t, 0, 0}, {&
_swigt__p_operations_research__BaseLns,
_p_operations_research__BaseLnsTo_p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t, 0, 0}, {&
_swigt__p_operations_research__ChangeValue,
_p_operations_research__ChangeValueTo_p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t, 0, 0},{0, 0, 0, 0}};
69998static swig_cast_info _swigc__p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_t[] = { {&
_swigt__p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_t, 0, 0, 0}, {&
_swigt__p_operations_research__SequenceVarLocalSearchOperator,
_p_operations_research__SequenceVarLocalSearchOperatorTo_p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_t, 0, 0},{0, 0, 0, 0}};
70130{0, 0, 0, 0.0, 0, 0}};
70184#define SWIGRUNTIME_DEBUG
70207 if (!module_head) {
70220 }
while (iter!= module_head);
70231 if (init == 0)
return;
70234#ifdef SWIGRUNTIME_DEBUG
70235 printf(
"SWIG_InitializeModule: size %lu\n", (
unsigned long)
swig_module.
size);
70242#ifdef SWIGRUNTIME_DEBUG
70252#ifdef SWIGRUNTIME_DEBUG
70253 printf(
"SWIG_InitializeModule: found type %s\n", type->
name);
70257#ifdef SWIGRUNTIME_DEBUG
70258 printf(
"SWIG_InitializeModule: found and overwrite type %s \n", type->
name);
70267 while (cast->
type) {
70270#ifdef SWIGRUNTIME_DEBUG
70271 printf(
"SWIG_InitializeModule: look cast %s\n", cast->
type->
name);
70275#ifdef SWIGRUNTIME_DEBUG
70276 if (ret) printf(
"SWIG_InitializeModule: found cast %s\n", ret->
name);
70281#ifdef SWIGRUNTIME_DEBUG
70282 printf(
"SWIG_InitializeModule: skip old type %s\n", ret->
name);
70289#ifdef SWIGRUNTIME_DEBUG
70290 if (ocast) printf(
"SWIG_InitializeModule: skip old cast %s\n", ret->
name);
70292 if (!ocast) ret = 0;
70297#ifdef SWIGRUNTIME_DEBUG
70298 printf(
"SWIG_InitializeModule: adding cast %s\n", cast->
type->
name);
70313#ifdef SWIGRUNTIME_DEBUG
70314 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
70319 while (cast->
type) {
70320 printf(
"SWIG_InitializeModule: cast type %s\n", cast->
type->
name);
70324 printf(
"---- Total casts: %d\n",j);
70326 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
70339 static int init_run = 0;
70341 if (init_run)
return;
70352 equiv = equiv->
next;
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)
70383 PyObject *(*get_attr)(void);
70395#if PY_VERSION_HEX >= 0x03000000
70396 return PyUnicode_InternFromString(
"<Swig global variables>");
70398 return PyString_FromString(
"<Swig global variables>");
70404#if PY_VERSION_HEX >= 0x03000000
70405 PyObject *str = PyUnicode_InternFromString(
"(");
70410 tail = PyUnicode_FromString(
var->name);
70411 joined = PyUnicode_Concat(str,
tail);
70416 tail = PyUnicode_InternFromString(
", ");
70417 joined = PyUnicode_Concat(str,
tail);
70423 tail = PyUnicode_InternFromString(
")");
70424 joined = PyUnicode_Concat(str,
tail);
70429 PyObject *str = PyString_FromString(
"(");
70432 PyString_ConcatAndDel(&str,PyString_FromString(
var->name));
70433 if (
var->next) PyString_ConcatAndDel(&str,PyString_FromString(
", "));
70435 PyString_ConcatAndDel(&str,PyString_FromString(
")"));
70453 PyObject *res = NULL;
70456 if (strcmp(
var->name,n) == 0) {
70457 res = (*
var->get_attr)();
70462 if (res == NULL && !PyErr_Occurred()) {
70463 PyErr_Format(PyExc_AttributeError,
"Unknown C global variable '%s'", n);
70473 if (strcmp(
var->name,n) == 0) {
70474 res = (*
var->set_attr)(p);
70479 if (res == 1 && !PyErr_Occurred()) {
70480 PyErr_Format(PyExc_AttributeError,
"Unknown C global variable '%s'", n);
70487 static char varlink__doc__[] =
"Swig var link object";
70488 static PyTypeObject varlink_type;
70489 static int type_init = 0;
70491 const PyTypeObject tmp = {
70492#if PY_VERSION_HEX >= 0x03000000
70493 PyVarObject_HEAD_INIT(NULL, 0)
70495 PyObject_HEAD_INIT(NULL)
70522 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
70525#if PY_VERSION_HEX >= 0x03040000
70528#if PY_VERSION_HEX >= 0x03080000
70531#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
70542 varlink_type = tmp;
70544 if (PyType_Ready(&varlink_type) < 0)
70547 return &varlink_type;
70557 return ((PyObject*) result);
70565 size_t size = strlen(
name)+1;
70579 static PyObject *globals = 0;
70595 for (i = 0; constants[i].
type; ++i) {
70596 switch(constants[i].type) {
70601 obj =
SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
70608 PyDict_SetItemString(d, constants[i].
name, obj);
70624 for (i = 0; methods[i].ml_name; ++i) {
70625 const char *c = methods[i].ml_doc;
70627 c = strstr(c,
"swig_ptr: ");
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]);
70642 size_t shift = (ci->
ptype) - types;
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);
70649 memcpy(buff, methods[i].ml_doc, ldoc);
70651 memcpy(buff,
"swig_ptr: ", 10);
70654 methods[i].ml_doc = ndoc;
70692 if (PyCFunction_Check(func)) {
70693 PyCFunctionObject *funcobj = (PyCFunctionObject *)func;
70696 func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module);
70698#if PY_VERSION_HEX >= 0x03000000
70699 return PyInstanceMethod_New(func);
70701 return PyMethod_New(func, NULL, NULL);
70711 if (PyCFunction_Check(func)) {
70712 PyCFunctionObject *funcobj = (PyCFunctionObject *)func;
70715 func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module);
70717 return PyStaticMethod_New(func);
70733#if PY_VERSION_HEX >= 0x03000000
70739 PyObject *m, *d, *md, *globals;
70741#if PY_VERSION_HEX >= 0x03000000
70742 static struct PyModuleDef SWIG_module = {
70743 PyModuleDef_HEAD_INIT,
70755#if defined(SWIGPYTHON_BUILTIN)
70757 0, 0, 0, 0, 0, 0, 0
70759 static PyGetSetDef this_getset_def = {
70760 (
char *)
"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
70762 static SwigPyGetSet thisown_getset_closure = {
70766 static PyGetSetDef thisown_getset_def = {
70767 (
char *)
"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
70769 PyTypeObject *builtin_pytype;
70770 int builtin_base_count;
70773 PyGetSetDescrObject *static_getset;
70774 PyTypeObject *metatype;
70775 PyTypeObject *swigpyobject;
70777 PyObject *public_interface, *public_symbol;
70778 PyObject *this_descr;
70779 PyObject *thisown_descr;
70780 PyObject *
self = 0;
70783 (void)builtin_pytype;
70784 (void)builtin_base_count;
70785 (void)builtin_basetype;
70787 (void)static_getset;
70791 metatype = SwigPyObjectType();
70801#ifndef SWIGPYTHON_BUILTIN
70808#if PY_VERSION_HEX >= 0x03000000
70809 m = PyModule_Create(&SWIG_module);
70814 md = d = PyModule_GetDict(m);
70819#ifdef SWIGPYTHON_BUILTIN
70823 assert(SwigPyObject_stype);
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
70843 (void)thisown_descr;
70845 public_interface = PyList_New(0);
70847 (void)public_symbol;
70849 PyDict_SetItemString(md,
"__all__", public_interface);
70850 Py_DECREF(public_interface);
70852 SwigPyBuiltin_AddPublicSymbol(public_interface,
SwigMethods[i].ml_name);
70932 PyErr_SetString(PyExc_TypeError,
"Failure to create SWIG globals.");
70933#if PY_VERSION_HEX >= 0x03000000
70939 PyDict_SetItemString(md,
"cvar", globals);
70940 Py_DECREF(globals);
70951#if PY_VERSION_HEX >= 0x03000000
SharedPyPtr(const SharedPyPtr &other)
SharedPyPtr(PyObject *obj)
static void raise(JNIEnv *jenv, jthrowable throwable)
DirectorException(const char *msg)
const char * what() const
DirectorException(PyObject *error, const char *hdr="", const char *msg="")
const char * getMessage() const
virtual ~DirectorException()
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
DirectorMethodException(const char *msg="")
static void raise(const char *msg)
DirectorPureVirtualException(const char *msg)
DirectorPureVirtualException(const char *msg="")
static void raise(PyObject *error, const char *msg)
DirectorTypeMismatchException(PyObject *error, const char *msg="")
DirectorTypeMismatchException(const char *msg="")
Guard(PyThread_type_lock &mutex)
virtual bool HoldsDelta() const
virtual bool HasFragments() const
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 bool IsIncremental() const
virtual void InitFragments()
virtual ~SwigDirector_BaseLns()
virtual bool NextFragment()
SwigDirector_BaseObject(PyObject *self)
virtual std::string DebugString() const
virtual ~SwigDirector_BaseObject()
virtual bool HoldsDelta() const
virtual bool HasFragments() const
virtual ~SwigDirector_ChangeValue()
void swig_set_inner(const char *swig_protected_method_name, bool swig_val) const
virtual bool MakeOneNeighborSwigPublic()
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 bool IsIncremental() const
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 ~SwigDirector_Constraint()
virtual std::string DebugString() const
virtual ~SwigDirector_DecisionBuilder()
virtual operations_research::Decision * Next(operations_research::Solver *const s)
This is the main method of the decision builder class.
SwigDirector_DecisionBuilder()
virtual ~SwigDirector_Decision()
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 ~SwigDirector_Demon()
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 std::string DebugString() const
virtual void OnSynchronize(operations_research::Assignment const *delta)
virtual ~SwigDirector_IntVarLocalSearchFilter()
virtual bool IsIncremental() const
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.
virtual bool HoldsDelta() const
virtual ~SwigDirector_IntVarLocalSearchOperator()
virtual bool HasFragments() const
void swig_set_inner(const char *swig_protected_method_name, bool swig_val) const
virtual bool MakeOneNeighborSwigPublic()
virtual bool MakeNextNeighbor(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
Redefines MakeNextNeighbor to export a simpler interface.
virtual std::string DebugString() const
virtual bool SkipUnchanged(int index) const
virtual bool MakeOneNeighbor()
Creates a new neighbor.
virtual bool IsIncremental() const
virtual void OnStart()
Called by Start() after synchronizing the operator with the current assignment.
SwigDirector_IntVarLocalSearchOperator()
virtual bool HoldsDelta() const
virtual bool HasFragments() const
virtual bool MakeNextNeighbor(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
SwigDirector_LocalSearchOperator()
virtual std::string DebugString() const
virtual void Start(operations_research::Assignment const *assignment)
virtual ~SwigDirector_LocalSearchOperator()
virtual std::string name() const
Object naming.
virtual std::string DebugString() const
virtual ~SwigDirector_PropagationBaseObject()
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 ~SwigDirector_SearchMonitor()
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.
std::string DebugString() const override
This is the base class for building an Lns operator.
bool HasFragments() const override
virtual void InitFragments()
A BaseObject is the root of all reversibly allocated objects.
std::string DebugString() const override
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...
std::string DebugString() const override
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.
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 ...
std::string DebugString() const override
The base class for all local search operators.
virtual bool HasFragments() const
virtual bool HoldsDelta() const
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.
bool AtSolution() override
This method is called when a valid solution is found.
std::string DebugString() const override
std::string DebugString() const override
Base class of the local search operators dedicated to path modifications (a path is a set of nodes li...
virtual bool MakeNeighbor()=0
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.
std::function< int64_t(int, int)> PickupToDeliveryLimitFunction
Limits, in terms of maximum difference between the cumul variables, between the pickup and delivery a...
Manager for any NodeIndex <-> variable index conversion.
RoutingNodeIndex NodeIndex
int64_t ComputeLowerBound()
Computes a lower bound to the routing problem solving a linear assignment problem.
RoutingTransitCallback1 TransitCallback1
bool CheckLimit()
Returns true if the search limit has been crossed.
VisitTypePolicy
Set the node visit types and incompatibilities/requirements between the types (see below).
@ TYPE_ADDED_TO_VEHICLE
When visited, the number of types 'T' on the vehicle increases by one.
@ ADDED_TYPE_REMOVED_FROM_VEHICLE
When visited, one instance of type 'T' previously added to the route (TYPE_ADDED_TO_VEHICLE),...
@ TYPE_ON_VEHICLE_UP_TO_VISIT
With the following policy, the visit enforces that type 'T' is considered on the route from its start...
@ 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...
static const int64_t kNoPenalty
Constant used to express a hard constraint instead of a soft penalty.
RoutingTransitCallback2 TransitCallback2
std::vector< std::string > GetAllDimensionNames() const
Outputs the names of all dimensions added to the routing engine.
Status
Status of the search.
@ ROUTING_SUCCESS
Problem solved successfully after calling RoutingModel::Solve().
@ ROUTING_FAIL
No solution found to the problem after calling RoutingModel::Solve().
@ ROUTING_NOT_SOLVED
Problem not solved yet (before calling RoutingModel::Solve()).
@ ROUTING_INVALID
Model, model parameters or flags are not valid.
@ ROUTING_FAIL_TIMEOUT
Time limit reached before finding a solution with RoutingModel::Solve().
std::vector< RoutingDimension * > GetDimensionsWithSoftOrSpanCosts() const
Returns dimensions with soft or vehicle span costs.
PickupAndDeliveryPolicy
Types of precedence policy applied to pickup and delivery pairs.
@ PICKUP_AND_DELIVERY_LIFO
Deliveries must be performed in reverse order of pickups.
@ PICKUP_AND_DELIVERY_NO_ORDER
Any precedence is accepted.
@ PICKUP_AND_DELIVERY_FIFO
Deliveries must be performed in the same order as pickups.
RoutingVehicleClassIndex VehicleClassIndex
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 "...
RoutingCostClassIndex CostClassIndex
operations_research::FirstSolutionStrategy::Value GetAutomaticFirstSolutionStrategy() const
Returns the automatic first solution strategy selected.
absl::Duration RemainingTime() const
Returns the time left in the search limit.
static const DimensionIndex kNoDimension
Constant used to express the "no dimension" index, returned when a dimension name does not correspond...
static const DisjunctionIndex kNoDisjunction
Constant used to express the "no disjunction" index, returned when a node does not appear in any disj...
RoutingDisjunctionIndex DisjunctionIndex
static const char kLightElement2[]
static const char kRemoveValues[]
static const char kLightElement[]
Constraint types.
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
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'.
Constraint * MakeLess(IntExpr *const left, IntExpr *const right)
left < right
IntExpr * MakeAbs(IntExpr *const expr)
|expr|
Constraint * MakeEquality(IntExpr *const left, IntExpr *const right)
left == right
Constraint * MakeIntervalVarRelationWithDelay(IntervalVar *const t1, BinaryIntervalRelation r, IntervalVar *const t2, int64_t delay)
This method creates a relation between two interval vars.
Constraint * MakeLessOrEqual(IntExpr *const left, IntExpr *const right)
left <= right
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.
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
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.
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]
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)
void clear_fail_intercept()
IntExpr * MakeDifference(IntExpr *const left, IntExpr *const right)
left - right
Constraint * MakeNonEquality(IntExpr *const left, IntExpr *const right)
left != right
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.
@ CHOOSE_MIN_SLACK_RANK_FORWARD
@ CHOOSE_RANDOM_RANK_FORWARD
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.
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
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.
The following constraint ensures that incompatibilities and requirements between types are respected.
Checker for type requirements.
Base operator class for operators manipulating variables.
virtual bool SkipUnchanged(int index) const
bool HoldsDelta() const override
PyObject * operator->() const
SwigPtr_PyObject(PyObject *obj, bool initial_ref=true)
SwigPtr_PyObject & operator=(const SwigPtr_PyObject &item)
SwigPtr_PyObject(const SwigPtr_PyObject &item)
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[]
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)
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)
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)
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[]
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)
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)
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)
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[]
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)
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)
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)
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[]
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)
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))
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))
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)
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_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)
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)
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
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)
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)
std::function< int64_t(const Model &)> Value(IntegerVariable v)
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,...
FirstSolutionStrategy_Value
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...
RoutingSearchParameters DefaultRoutingSearchParameters()
void AcceptNeighbor(Search *const search)
static int input(yyscan_t yyscanner)
GCItem * operator->() const
GCItem_var(GCItem *item=0)
GCItem_var & operator=(GCItem *item)
virtual int get_own() const
PyObject_HEAD void * pack
This struct holds all parameters for the default search.
@ CHOOSE_MAX_VALUE_IMPACT
@ CHOOSE_MAX_AVERAGE_IMPACT
Struct used to sort and store vehicles by their type.
Creates a search monitor from logging parameters.
SwigVar_PyObject(PyObject *obj=0)
SwigVar_PyObject & operator=(PyObject *obj)
struct swig_cast_info * prev
struct swig_cast_info * next
swig_converter_func converter
int(* set_attr)(PyObject *)
struct swig_globalvar * next
PyObject *(* get_attr)(void)
swig_type_info ** type_initial
struct swig_module_info * next
swig_cast_info ** cast_initial
struct swig_cast_info * cast
PyObject_HEAD swig_globalvar * vars