16 #define SWIG_DIRECTORS 17 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE 22 template<
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; }
38 template <
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 72 # if defined(__GNUC__) 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 86 # if defined(_MSC_VER) 87 # pragma warning(disable : 4505) 91 #ifndef SWIGUNUSEDPARM 93 # define SWIGUNUSEDPARM(p) 95 # define SWIGUNUSEDPARM(p) p SWIGUNUSED 101 # define SWIGINTERN static SWIGUNUSED 105 #ifndef SWIGINTERNINLINE 106 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE 110 #if defined(__GNUC__) 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) 364 typedef 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 >= 0x03000000 814 str = PyUnicode_AsUTF8String(str);
818 PyBytes_AsStringAndSize(str, &cstr, &len);
819 newstr = (
char *)
malloc(len+1);
820 memcpy(newstr, cstr, len+1);
825 return PyString_AsString(str);
829 #if PY_VERSION_HEX >= 0x03000000 830 # define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) 832 # define SWIG_Python_str_DelForPy3(x) 839 #if PY_VERSION_HEX >= 0x03000000 840 return PyUnicode_FromString(c);
842 return PyString_FromString(c);
847 # define PyObject_DEL PyObject_Del 852 # define SWIGPY_USE_CAPSULE 853 # define SWIGPY_CAPSULE_NAME ("swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) 855 #if PY_VERSION_HEX < 0x03020000 856 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type) 857 #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name) 858 #define Py_hash_t long 870 type = PyExc_MemoryError;
873 type = PyExc_IOError;
876 type = PyExc_RuntimeError;
879 type = PyExc_IndexError;
882 type = PyExc_TypeError;
885 type = PyExc_ZeroDivisionError;
888 type = PyExc_OverflowError;
891 type = PyExc_SyntaxError;
894 type = PyExc_ValueError;
897 type = PyExc_SystemError;
900 type = PyExc_AttributeError;
903 type = PyExc_RuntimeError;
914 PyObject *traceback = 0;
916 if (PyErr_Occurred())
917 PyErr_Fetch(&type, &
value, &traceback);
919 PyObject *old_str = PyObject_Str(
value);
924 PyErr_Format(type,
"%s %s", tmp, mesg);
926 PyErr_Format(type,
"%s", mesg);
931 PyErr_SetString(PyExc_RuntimeError, mesg);
941 error = PyErr_Occurred();
942 return error && PyErr_GivenExceptionMatches(error, PyExc_TypeError);
951 PyObject *type = NULL, *
value = NULL, *traceback = NULL;
952 PyErr_Fetch(&type, &
value, &traceback);
953 #if PY_VERSION_HEX >= 0x03000000 954 newvalue = PyUnicode_FromFormat(
"%S\nAdditional information:\n%s",
value,
message);
956 newvalue = PyString_FromFormat(
"%s\nAdditional information:\n%s", PyString_AsString(
value),
message);
959 PyErr_Restore(type, newvalue, traceback);
962 PyErr_SetString(PyExc_TypeError,
message);
966 #if defined(SWIG_PYTHON_NO_THREADS) 967 # if defined(SWIG_PYTHON_THREADS) 968 # undef SWIG_PYTHON_THREADS 971 #if defined(SWIG_PYTHON_THREADS) 972 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) 973 # define SWIG_PYTHON_USE_GIL 975 # if defined(SWIG_PYTHON_USE_GIL) 976 # ifndef SWIG_PYTHON_INITIALIZE_THREADS 977 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() 980 class SWIG_Python_Thread_Block {
982 PyGILState_STATE state;
984 void end() {
if (status) { PyGILState_Release(state); status =
false;} }
985 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
986 ~SWIG_Python_Thread_Block() { end(); }
988 class SWIG_Python_Thread_Allow {
992 void end() {
if (status) { PyEval_RestoreThread(save); status =
false; }}
993 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
994 ~SWIG_Python_Thread_Allow() { end(); }
996 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block 997 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() 998 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow 999 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() 1001 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() 1002 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) 1003 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() 1004 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) 1007 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) 1008 # define SWIG_PYTHON_INITIALIZE_THREADS 1010 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) 1011 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK 1013 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) 1014 # define SWIG_PYTHON_THREAD_END_BLOCK 1016 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) 1017 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW 1019 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) 1020 # define SWIG_PYTHON_THREAD_END_ALLOW 1024 # define SWIG_PYTHON_INITIALIZE_THREADS 1025 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK 1026 # define SWIG_PYTHON_THREAD_END_BLOCK 1027 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW 1028 # define SWIG_PYTHON_THREAD_END_ALLOW 1044 #define SWIG_PY_POINTER 4 1045 #define SWIG_PY_BINARY 5 1071 #if PY_VERSION_HEX < 0x02070000 1072 # error "This version of SWIG only supports Python >= 2.7" 1075 #if PY_VERSION_HEX >= 0x03000000 && PY_VERSION_HEX < 0x03020000 1076 # error "This version of SWIG only supports Python 3 >= 3.2" 1082 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) 1083 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) 1084 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) 1086 #ifdef SWIGPYTHON_BUILTIN 1087 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) 1089 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) 1092 #define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) 1094 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) 1095 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) 1096 #define swig_owntype int 1099 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) 1100 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) 1103 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) 1104 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) 1107 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) 1108 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0) 1111 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) 1112 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) 1117 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) 1118 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) 1119 #define SWIG_NewClientData(obj) SwigPyClientData_New(obj) 1121 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj 1122 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg 1123 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) 1124 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) 1125 #define SWIG_fail goto fail 1135 PyErr_SetObject(errtype, obj);
1143 PyErr_SetString(errtype, msg);
1147 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) 1151 #if defined(SWIGPYTHON_BUILTIN) 1154 SwigPyBuiltin_AddPublicSymbol(PyObject *seq,
const char *key) {
1155 PyObject *s = PyString_InternFromString(key);
1156 PyList_Append(seq, s);
1162 PyDict_SetItemString(d,
name, obj);
1164 if (public_interface)
1165 SwigPyBuiltin_AddPublicSymbol(public_interface,
name);
1172 PyDict_SetItemString(d,
name, obj);
1184 }
else if (result == Py_None) {
1188 if (!PyList_Check(result)) {
1189 PyObject *o2 = result;
1190 result = PyList_New(1);
1191 PyList_SetItem(result, 0, o2);
1193 PyList_Append(result,obj);
1208 PyErr_Format(PyExc_TypeError,
"%s expected %s%d arguments, got none",
1213 if (!PyTuple_Check(args)) {
1214 if (min <= 1 && max >= 1) {
1217 for (i = 1; i <
max; ++i) {
1222 PyErr_SetString(PyExc_SystemError,
"UnpackTuple() argument list is not a tuple");
1225 Py_ssize_t l = PyTuple_GET_SIZE(args);
1227 PyErr_Format(PyExc_TypeError,
"%s expected %s%d arguments, got %d",
1230 }
else if (l >
max) {
1231 PyErr_Format(PyExc_TypeError,
"%s expected %s%d arguments, got %d",
1236 for (i = 0; i < l; ++i) {
1237 objs[i] = PyTuple_GET_ITEM(args, i);
1239 for (; l <
max; ++l) {
1248 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); 1255 #define SWIG_STATIC_POINTER(var) var 1257 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var 1265 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) 1266 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) 1268 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) 1270 #define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2) 1271 #define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN) 1282 PyObject *none = Py_None;
1296 PyTypeObject *pytype;
1305 PyErr_SetString(PyExc_TypeError,
"Implicit conversion is prohibited for explicit constructors.");
1312 PyObject *klass = data ? data->
klass : 0;
1313 return (klass ? klass : PyExc_RuntimeError);
1326 Py_INCREF(data->
klass);
1328 if (PyClass_Check(obj)) {
1333 data->
newraw = PyObject_GetAttrString(data->
klass,
"__new__");
1336 data->
newargs = PyTuple_New(1);
1337 PyTuple_SetItem(data->
newargs, 0, obj);
1344 data->
destroy = PyObject_GetAttrString(data->
klass,
"__swig_destroy__");
1345 if (PyErr_Occurred()) {
1352 flags = PyCFunction_GET_FLAGS(data->
destroy);
1353 data->
delargs = !(flags & (METH_O));
1365 Py_XDECREF(data->
newraw);
1378 #ifdef SWIGPYTHON_BUILTIN 1384 #ifdef SWIGPYTHON_BUILTIN 1387 SwigPyObject_get___dict__(PyObject *v, PyObject *
SWIGUNUSEDPARM(args))
1392 sobj->dict = PyDict_New();
1394 Py_INCREF(sobj->dict);
1403 return PyLong_FromVoidPtr(v->
ptr);
1409 PyObject *res = NULL;
1410 PyObject *args = PyTuple_New(1);
1415 #if PY_VERSION_HEX >= 0x03000000 1416 res = PyUnicode_Format(ofmt,args);
1418 res = PyString_Format(ofmt,args);
1447 # if PY_VERSION_HEX >= 0x03000000 1448 PyObject *joined = PyUnicode_Concat(repr, nrep);
1453 PyString_ConcatAndDel(&repr,nrep);
1472 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1480 if( op != Py_EQ && op != Py_NE ) {
1481 Py_INCREF(Py_NotImplemented);
1482 return Py_NotImplemented;
1491 #ifdef SWIGPYTHON_BUILTIN 1496 assert(SwigPyObject_stype);
1512 #ifdef SWIGPYTHON_BUILTIN 1514 if (PyType_IsSubtype(op->ob_type, target_tp))
1516 return (strcmp(op->ob_type->tp_name,
"SwigPyObject") == 0);
1519 || (strcmp(
Py_TYPE(op)->tp_name,
"SwigPyObject") == 0);
1534 PyObject *destroy = data ? data->
destroy : 0;
1546 PyObject *type = NULL, *
value = NULL, *traceback = NULL;
1547 PyErr_Fetch(&type, &
value, &traceback);
1555 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1556 PyObject *mself = PyCFunction_GET_SELF(destroy);
1557 res = ((*meth)(mself, v));
1560 PyErr_WriteUnraisable(destroy);
1562 PyErr_Restore(type,
value, traceback);
1566 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) 1569 printf(
"swig/python detected a memory leak of type '%s', no destructor found.\n", (
name ?
name :
"unknown"));
1582 PyErr_SetString(PyExc_TypeError,
"Attempt to append a non SwigPyObject");
1595 Py_INCREF(sobj->
next);
1622 if (!PyArg_UnpackTuple(args,
"own", 0, 1, &val)) {
1626 PyObject *obj = PyBool_FromLong(sobj->
own);
1628 if (PyObject_IsTrue(val)) {
1642 {
"own",
SwigPyObject_own, METH_VARARGS,
"returns/sets ownership of the pointer"},
1651 static char swigobject_doc[] =
"Swig object carries a C/C++ instance pointer";
1653 static PyNumberMethods SwigPyObject_as_number = {
1658 #
if PY_VERSION_HEX < 0x03000000
1674 #
if PY_VERSION_HEX < 0x03000000
1678 #if PY_VERSION_HEX < 0x03000000 1684 #if PY_VERSION_HEX < 0x03000000 1688 #if PY_VERSION_HEX >= 0x03050000 1689 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1690 #elif PY_VERSION_HEX >= 0x03000000 1691 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1693 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1697 static PyTypeObject swigpyobject_type;
1698 static int type_init = 0;
1700 const PyTypeObject tmp = {
1701 #if PY_VERSION_HEX >= 0x03000000 1702 PyVarObject_HEAD_INIT(NULL, 0)
1704 PyObject_HEAD_INIT(NULL)
1714 #if PY_VERSION_HEX >= 0x03000000 1720 &SwigPyObject_as_number,
1726 PyObject_GenericGetAttr,
1757 #
if PY_VERSION_HEX >= 0x03040000
1768 swigpyobject_type = tmp;
1770 if (PyType_Ready(&swigpyobject_type) < 0)
1773 return &swigpyobject_type;
1786 return (PyObject *)sobj;
1827 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1828 return s ? s : strncmp((
const char *)v->
pack, (
const char *)w->
pack, 2*v->
size);
1842 || (strcmp((op)->ob_type->tp_name,
"SwigPyPacked") == 0);
1857 static char swigpacked_doc[] =
"Swig object carries a C/C++ instance pointer";
1858 static PyTypeObject swigpypacked_type;
1859 static int type_init = 0;
1861 const PyTypeObject tmp = {
1862 #if PY_VERSION_HEX>=0x03000000 1863 PyVarObject_HEAD_INIT(NULL, 0)
1865 PyObject_HEAD_INIT(NULL)
1875 #if PY_VERSION_HEX>=0x03000000 1887 PyObject_GenericGetAttr,
1918 #
if PY_VERSION_HEX >= 0x03040000
1929 swigpypacked_type = tmp;
1931 if (PyType_Ready(&swigpypacked_type) < 0)
1934 return &swigpypacked_type;
1942 void *pack =
malloc(size);
1944 memcpy(pack, ptr, size);
1953 return (PyObject *) sobj;
1961 if (sobj->
size != size)
return 0;
1962 memcpy(ptr, sobj->
pack, size);
1986 #if PY_VERSION_HEX>=0x03000000 1987 #define SWIG_PYTHON_SLOW_GETSET_THIS 1998 #ifdef SWIGPYTHON_BUILTIN 2000 # ifdef PyWeakref_CheckProxy 2001 if (PyWeakref_CheckProxy(pyobj)) {
2002 pyobj = PyWeakref_GET_OBJECT(pyobj);
2012 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) 2013 if (PyInstance_Check(pyobj)) {
2014 obj = _PyInstance_Lookup(pyobj,
SWIG_This());
2016 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2017 if (dictptr != NULL) {
2018 PyObject *dict = *dictptr;
2019 obj = dict ? PyDict_GetItem(dict,
SWIG_This()) : 0;
2021 #ifdef PyWeakref_CheckProxy 2022 if (PyWeakref_CheckProxy(pyobj)) {
2023 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2027 obj = PyObject_GetAttr(pyobj,
SWIG_This());
2031 if (PyErr_Occurred()) PyErr_Clear();
2037 obj = PyObject_GetAttr(pyobj,
SWIG_This());
2041 if (PyErr_Occurred()) PyErr_Clear();
2061 int oldown = sobj->
own;
2079 if (obj == Py_None && !implicit_conv) {
2091 void *vptr = sobj->
ptr;
2096 if (ptr) *ptr = vptr;
2116 if (ptr) *ptr = vptr;
2122 *own = *own | sobj->
own;
2128 if (implicit_conv) {
2131 PyObject *klass = data->
klass;
2137 if (PyErr_Occurred()) {
2162 if (!
SWIG_IsOK(res) && obj == Py_None) {
2165 if (PyErr_Occurred())
2178 if (!PyCFunction_Check(obj)) {
2185 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2186 const char *desc = doc ? strstr(doc,
"swig_ptr: ") : 0;
2232 PyObject *newraw = data->
newraw;
2234 inst = PyObject_Call(newraw, data->
newargs, NULL);
2236 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) 2237 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2238 if (dictptr != NULL) {
2239 PyObject *dict = *dictptr;
2241 dict = PyDict_New();
2243 PyDict_SetItem(dict,
SWIG_This(), swig_this);
2248 PyObject_SetAttr(inst, key, swig_this);
2252 #if PY_VERSION_HEX >= 0x03000000 2253 PyObject *empty_args = PyTuple_New(0);
2255 PyObject *empty_kwargs = PyDict_New();
2257 inst = ((PyTypeObject *)data->
newargs)->tp_new((PyTypeObject *)data->
newargs, empty_args, empty_kwargs);
2258 Py_DECREF(empty_kwargs);
2260 PyObject_SetAttr(inst,
SWIG_This(), swig_this);
2261 Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
2264 Py_DECREF(empty_args);
2267 PyObject *dict = PyDict_New();
2269 PyDict_SetItem(dict,
SWIG_This(), swig_this);
2270 inst = PyInstance_NewRaw(data->
newargs, dict);
2282 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) 2283 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2284 if (dictptr != NULL) {
2287 dict = PyDict_New();
2290 PyDict_SetItem(dict,
SWIG_This(), swig_this);
2294 dict = PyObject_GetAttrString(inst,
"__dict__");
2295 PyDict_SetItem(dict,
SWIG_This(), swig_this);
2329 if (clientdata && clientdata->
pytype) {
2334 PyObject *next_self = clientdata->
pytype->tp_alloc(clientdata->
pytype, 0);
2335 while (newobj->
next)
2337 newobj->
next = next_self;
2339 #ifdef SWIGPYTHON_BUILTIN 2345 #ifdef SWIGPYTHON_BUILTIN 2354 return (PyObject*) newobj;
2381 #ifdef SWIG_LINK_RUNTIME 2382 void *SWIG_ReturnGlobalTypeList(
void *);
2387 static void *type_pointer = (
void *)0;
2389 if (!type_pointer) {
2390 #ifdef SWIG_LINK_RUNTIME 2391 type_pointer = SWIG_ReturnGlobalTypeList((
void *)0);
2394 if (PyErr_Occurred()) {
2396 type_pointer = (
void *)0;
2422 #if PY_VERSION_HEX >= 0x03000000 2426 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };
2427 PyObject *module = Py_InitModule(
"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
2430 if (pointer && module) {
2433 Py_XDECREF(pointer);
2449 PyObject *obj = PyDict_GetItem(cache, key);
2457 obj = PyCapsule_New((
void*) descriptor, NULL, NULL);
2458 PyDict_SetItem(cache, key, obj);
2469 #define SWIG_POINTER_EXCEPTION 0 2470 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) 2471 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) 2476 if (PyErr_Occurred()) {
2478 PyObject *
value = 0;
2479 PyObject *traceback = 0;
2480 PyErr_Fetch(&type, &
value, &traceback);
2482 PyObject *old_str = PyObject_Str(
value);
2484 const char *errmesg = tmp ? tmp :
"Invalid error message";
2488 PyErr_Format(type,
"%s %s", mesg, errmesg);
2490 PyErr_Format(type,
"%s %s", errmesg, mesg);
2504 if (PyErr_Occurred()) {
2507 PyOS_snprintf(mesg,
sizeof(mesg),
"argument number %d:", argnum);
2519 return ty ? ty->
str :
"";
2526 #if defined(SWIG_COBJECT_TYPES) 2530 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, 'SwigPyObject(%s)' is received",
2537 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2539 PyObject *str = PyObject_Str(obj);
2542 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, '%s(%s)' is received",
2546 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, '%s' is received",
2553 PyErr_Format(PyExc_TypeError,
"a '%s' is expected", type);
2555 PyErr_Format(PyExc_TypeError,
"unexpected type is received");
2566 #if SWIG_POINTER_EXCEPTION 2576 #ifdef SWIGPYTHON_BUILTIN 2578 SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *
name, PyObject *
value) {
2579 PyTypeObject *tp = obj->ob_type;
2581 PyObject *encoded_name;
2585 # ifdef Py_USING_UNICODE 2586 if (PyString_Check(
name)) {
2587 name = PyUnicode_Decode(PyString_AsString(
name), PyString_Size(
name), NULL, NULL);
2590 }
else if (!PyUnicode_Check(
name))
2592 if (!PyString_Check(
name))
2595 PyErr_Format(PyExc_TypeError,
"attribute name must be string, not '%.200s'",
name->ob_type->tp_name);
2602 if (PyType_Ready(tp) < 0)
2606 descr = _PyType_Lookup(tp,
name);
2609 f = descr->ob_type->tp_descr_set;
2611 if (PyString_Check(
name)) {
2612 encoded_name =
name;
2615 encoded_name = PyUnicode_AsUTF8String(
name);
2619 PyErr_Format(PyExc_AttributeError,
"'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2620 Py_DECREF(encoded_name);
2622 res = f(descr, obj,
value);
2638 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) 2640 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else 2659 #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0) 2672 #ifdef SWIG_DIRECTOR_STATIC 2683 #ifndef SWIG_DIRECTOR_PYTHON_HEADER_ 2684 #define SWIG_DIRECTOR_PYTHON_HEADER_ 2688 #include <exception> 2699 #ifndef SWIG_PYTHON_DIRECTOR_NO_VTABLE 2700 #ifndef SWIG_PYTHON_DIRECTOR_VTABLE 2701 #define SWIG_PYTHON_DIRECTOR_VTABLE 2711 #ifndef SWIG_DIRECTOR_NO_UEH 2712 #ifndef SWIG_DIRECTOR_UEH 2713 #define SWIG_DIRECTOR_UEH 2723 #ifdef SWIG_DIRECTOR_NORTTI 2728 # ifndef SWIG_DIRECTOR_RTDIR 2729 # define SWIG_DIRECTOR_RTDIR 2733 SWIGINTERN std::map<void *, Director *>& get_rtdir_map() {
2734 static std::map<void *, Director *> rtdir_map;
2739 get_rtdir_map()[vptr] = rtdir;
2743 std::map<void *, Director *>::const_iterator pos = get_rtdir_map().find(vptr);
2744 Director *rtdir = (pos != get_rtdir_map().end()) ? pos->second : 0;
2750 # define SWIG_DIRECTOR_CAST(ARG) Swig::get_rtdir(static_cast<void *>(ARG)) 2751 # define SWIG_DIRECTOR_RGTR(ARG1, ARG2) Swig::set_rtdir(static_cast<void *>(ARG1), ARG2) 2755 # define SWIG_DIRECTOR_CAST(ARG) dynamic_cast<Swig::Director *>(ARG) 2756 # define SWIG_DIRECTOR_RGTR(ARG1, ARG2) 2813 template <
typename Type>
2826 template <
typename Type>
2840 class DirectorException :
public std::exception {
2850 if (!PyErr_Occurred()) {
2851 PyErr_SetString(error,
what());
2868 static void raise(PyObject *error,
const char *msg) {
2872 static void raise(
const char *msg) {
2873 raise(PyExc_RuntimeError, msg);
2888 static void raise(PyObject *error,
const char *msg) {
2892 static void raise(
const char *msg) {
2904 static void raise(
const char *msg) {
2910 class DirectorPureVirtualException :
public DirectorException {
2913 :
DirectorException(PyExc_RuntimeError,
"SWIG director pure virtual method called", msg) {
2916 static void raise(
const char *msg) {
2922 #if defined(SWIG_PYTHON_THREADS) 2924 # if !defined(__THREAD__) 2925 # define __THREAD__ 1 2930 # include "pythread.h" 2932 PyThread_type_lock &mutex_;
2935 Guard(PyThread_type_lock & mutex) : mutex_(mutex) {
2936 PyThread_acquire_lock(mutex_, WAIT_LOCK);
2940 PyThread_release_lock(mutex_);
2943 # define SWIG_GUARD(mutex) Guard _guard(mutex) 2945 # define SWIG_GUARD(mutex) 2952 PyObject *swig_self;
2954 mutable bool swig_disown_flag;
2957 void swig_decref()
const {
2958 if (swig_disown_flag) {
2960 Py_DECREF(swig_self);
2967 Director(PyObject *
self) : swig_self(self), swig_disown_flag(false) {
2982 if (!swig_disown_flag) {
2983 swig_disown_flag=
true;
2990 if (swig_disown_flag) {
2991 Py_INCREF(swig_self);
3005 typedef std::map<void *, GCItem_var> swig_ownership_map;
3006 mutable swig_ownership_map swig_owner;
3008 static PyThread_type_lock swig_mutex_own;
3012 template <
typename Type>
3020 template <
typename Type>
3039 swig_ownership_map::iterator iter = swig_owner.find(vptr);
3040 if (iter != swig_owner.end()) {
3041 own = iter->second->get_own();
3042 swig_owner.erase(iter);
3048 template <
typename Type>
3055 return PyWeakref_NewProxy(pyobj, NULL);
3060 PyThread_type_lock Director::swig_mutex_own = PyThread_allocate_lock();
3068 #define SWIGTYPE_p_CostClassIndex swig_types[0] 3069 #define SWIGTYPE_p_DimensionIndex swig_types[1] 3070 #define SWIGTYPE_p_DisjunctionIndex swig_types[2] 3071 #define SWIGTYPE_p_PickupToDeliveryLimitFunction swig_types[3] 3072 #define SWIGTYPE_p_RoutingDimensionIndex swig_types[4] 3073 #define SWIGTYPE_p_RoutingDisjunctionIndex swig_types[5] 3074 #define SWIGTYPE_p_TransitCallback1 swig_types[6] 3075 #define SWIGTYPE_p_TransitCallback2 swig_types[7] 3076 #define SWIGTYPE_p_VehicleClassIndex swig_types[8] 3077 #define SWIGTYPE_p_absl__Duration swig_types[9] 3078 #define SWIGTYPE_p_absl__flat_hash_setT_int_t swig_types[10] 3079 #define SWIGTYPE_p_char swig_types[11] 3080 #define SWIGTYPE_p_int swig_types[12] 3081 #define SWIGTYPE_p_long swig_types[13] 3082 #define SWIGTYPE_p_operations_research__Assignment swig_types[14] 3083 #define SWIGTYPE_p_operations_research__AssignmentContainerT_operations_research__IntVar_operations_research__IntVarElement_t swig_types[15] 3084 #define SWIGTYPE_p_operations_research__AssignmentContainerT_operations_research__IntervalVar_operations_research__IntervalVarElement_t swig_types[16] 3085 #define SWIGTYPE_p_operations_research__AssignmentContainerT_operations_research__SequenceVar_operations_research__SequenceVarElement_t swig_types[17] 3086 #define SWIGTYPE_p_operations_research__AssignmentElement swig_types[18] 3087 #define SWIGTYPE_p_operations_research__BaseIntExpr swig_types[19] 3088 #define SWIGTYPE_p_operations_research__BaseLns swig_types[20] 3089 #define SWIGTYPE_p_operations_research__BaseObject swig_types[21] 3090 #define SWIGTYPE_p_operations_research__BooleanVar swig_types[22] 3091 #define SWIGTYPE_p_operations_research__CastConstraint swig_types[23] 3092 #define SWIGTYPE_p_operations_research__ChangeValue swig_types[24] 3093 #define SWIGTYPE_p_operations_research__Constraint swig_types[25] 3094 #define SWIGTYPE_p_operations_research__Decision swig_types[26] 3095 #define SWIGTYPE_p_operations_research__DecisionBuilder swig_types[27] 3096 #define SWIGTYPE_p_operations_research__DecisionVisitor swig_types[28] 3097 #define SWIGTYPE_p_operations_research__DefaultPhaseParameters swig_types[29] 3098 #define SWIGTYPE_p_operations_research__Demon swig_types[30] 3099 #define SWIGTYPE_p_operations_research__DisjunctiveConstraint swig_types[31] 3100 #define SWIGTYPE_p_operations_research__FirstSolutionStrategy__Value swig_types[32] 3101 #define SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer swig_types[33] 3102 #define SWIGTYPE_p_operations_research__GlobalVehicleBreaksConstraint swig_types[34] 3103 #define SWIGTYPE_p_operations_research__ImprovementSearchLimit swig_types[35] 3104 #define SWIGTYPE_p_operations_research__IntExpr swig_types[36] 3105 #define SWIGTYPE_p_operations_research__IntTupleSet swig_types[37] 3106 #define SWIGTYPE_p_operations_research__IntVar swig_types[38] 3107 #define SWIGTYPE_p_operations_research__IntVarElement swig_types[39] 3108 #define SWIGTYPE_p_operations_research__IntVarIterator swig_types[40] 3109 #define SWIGTYPE_p_operations_research__IntVarLocalSearchFilter swig_types[41] 3110 #define SWIGTYPE_p_operations_research__IntVarLocalSearchOperator swig_types[42] 3111 #define SWIGTYPE_p_operations_research__IntervalVar swig_types[43] 3112 #define SWIGTYPE_p_operations_research__IntervalVarElement swig_types[44] 3113 #define SWIGTYPE_p_operations_research__LocalDimensionCumulOptimizer swig_types[45] 3114 #define SWIGTYPE_p_operations_research__LocalSearchFilter swig_types[46] 3115 #define SWIGTYPE_p_operations_research__LocalSearchFilterManager swig_types[47] 3116 #define SWIGTYPE_p_operations_research__LocalSearchMonitor swig_types[48] 3117 #define SWIGTYPE_p_operations_research__LocalSearchOperator swig_types[49] 3118 #define SWIGTYPE_p_operations_research__LocalSearchPhaseParameters swig_types[50] 3119 #define SWIGTYPE_p_operations_research__ModelVisitor swig_types[51] 3120 #define SWIGTYPE_p_operations_research__NumericalRevT_long_t swig_types[52] 3121 #define SWIGTYPE_p_operations_research__OptimizeVar swig_types[53] 3122 #define SWIGTYPE_p_operations_research__Pack swig_types[54] 3123 #define SWIGTYPE_p_operations_research__PathOperator swig_types[55] 3124 #define SWIGTYPE_p_operations_research__PropagationBaseObject swig_types[56] 3125 #define SWIGTYPE_p_operations_research__PropagationMonitor swig_types[57] 3126 #define SWIGTYPE_p_operations_research__RegularLimit swig_types[58] 3127 #define SWIGTYPE_p_operations_research__RevT_bool_t swig_types[59] 3128 #define SWIGTYPE_p_operations_research__RevT_long_t swig_types[60] 3129 #define SWIGTYPE_p_operations_research__RoutingDimension swig_types[61] 3130 #define SWIGTYPE_p_operations_research__RoutingIndexManager swig_types[62] 3131 #define SWIGTYPE_p_operations_research__RoutingModel swig_types[63] 3132 #define SWIGTYPE_p_operations_research__RoutingModelVisitor swig_types[64] 3133 #define SWIGTYPE_p_operations_research__RoutingModel__VehicleTypeContainer swig_types[65] 3134 #define SWIGTYPE_p_operations_research__SearchLimit swig_types[66] 3135 #define SWIGTYPE_p_operations_research__SearchLog swig_types[67] 3136 #define SWIGTYPE_p_operations_research__SearchMonitor swig_types[68] 3137 #define SWIGTYPE_p_operations_research__SequenceVar swig_types[69] 3138 #define SWIGTYPE_p_operations_research__SequenceVarElement swig_types[70] 3139 #define SWIGTYPE_p_operations_research__SequenceVarLocalSearchOperator swig_types[71] 3140 #define SWIGTYPE_p_operations_research__SolutionCollector swig_types[72] 3141 #define SWIGTYPE_p_operations_research__SolutionPool swig_types[73] 3142 #define SWIGTYPE_p_operations_research__Solver swig_types[74] 3143 #define SWIGTYPE_p_operations_research__Solver__SearchLogParameters swig_types[75] 3144 #define SWIGTYPE_p_operations_research__SymmetryBreaker swig_types[76] 3145 #define SWIGTYPE_p_operations_research__TypeIncompatibilityChecker swig_types[77] 3146 #define SWIGTYPE_p_operations_research__TypeRegulationsChecker swig_types[78] 3147 #define SWIGTYPE_p_operations_research__TypeRegulationsConstraint swig_types[79] 3148 #define SWIGTYPE_p_operations_research__TypeRequirementChecker swig_types[80] 3149 #define SWIGTYPE_p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t swig_types[81] 3150 #define SWIGTYPE_p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_t swig_types[82] 3151 #define SWIGTYPE_p_short swig_types[83] 3152 #define SWIGTYPE_p_signed_char swig_types[84] 3153 #define SWIGTYPE_p_std__functionT_long_flongF_t swig_types[85] 3154 #define SWIGTYPE_p_std__functionT_long_flong_longF_t swig_types[86] 3155 #define SWIGTYPE_p_std__ostream swig_types[87] 3156 #define SWIGTYPE_p_std__pairT_std__vectorT_long_t_std__vectorT_long_t_t swig_types[88] 3157 #define SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t swig_types[89] 3158 #define SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t swig_types[90] 3159 #define SWIGTYPE_p_std__vectorT_operations_research__LocalSearchFilterManager__FilterEvent_t swig_types[91] 3160 #define SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_p_t swig_types[92] 3161 #define SWIGTYPE_p_std__vectorT_std__pairT_int_int_t_t swig_types[93] 3162 #define SWIGTYPE_p_std__vectorT_std__pairT_long_long_t_t swig_types[94] 3163 #define SWIGTYPE_p_std__vectorT_std__pairT_std__vectorT_long_t_std__vectorT_long_t_t_t swig_types[95] 3164 #define SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__GlobalDimensionCumulOptimizer_t_t swig_types[96] 3165 #define SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__LocalDimensionCumulOptimizer_t_t swig_types[97] 3166 #define SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t swig_types[98] 3167 #define SWIGTYPE_p_unsigned_char swig_types[99] 3168 #define SWIGTYPE_p_unsigned_int swig_types[100] 3169 #define SWIGTYPE_p_unsigned_long swig_types[101] 3170 #define SWIGTYPE_p_unsigned_short swig_types[102] 3173 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) 3174 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) 3178 #ifdef SWIG_TypeQuery 3179 # undef SWIG_TypeQuery 3181 #define SWIG_TypeQuery SWIG_Python_TypeQuery 3186 #if PY_VERSION_HEX >= 0x03000000 3187 # define SWIG_init PyInit__pywrapcp 3190 # define SWIG_init init_pywrapcp 3193 #define SWIG_name "_pywrapcp" 3195 #define SWIGVERSION 0x040001 3196 #define SWIG_VERSION SWIGVERSION 3199 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) 3200 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) 3203 #include <stdexcept> 3207 class SwigPtr_PyObject {
3235 Py_XINCREF(item._obj);
3249 operator PyObject *()
const 3263 struct SwigVar_PyObject : SwigPtr_PyObject {
3286 #define SWIGWORDSIZE64 3290 #if (__WORDSIZE == 32) || (LONG_MAX == INT_MAX) 3291 # error "SWIG wrapped code invalid in 32 bit architecture, regenerate code using -DSWIGWORDSIZE32" 3298 #include "ortools/base/python-swig.h" 3305 #include <functional> 3317 PyObject*
get()
const {
return obj_; }
3323 PyObject*
const obj_;
3326 template <
typename ReturnT>
3329 ReturnT result = ReturnT();
3331 if (!PyErr_Occurred()) {
3332 PyErr_SetString(PyExc_RuntimeError,
3333 "SWIG std::function invocation failed.");
3337 if (!PyObjAs<ReturnT>(pyresult, &result)) {
3338 if (!PyErr_Occurred()) {
3339 PyErr_SetString(PyExc_RuntimeError,
3340 "SWIG std::function invocation failed.");
3343 Py_DECREF(pyresult);
3351 if (!PyErr_Occurred()) {
3352 PyErr_SetString(PyExc_RuntimeError,
3353 "SWIG std::function invocation failed.");
3356 Py_DECREF(pyresult);
3360 template <
typename ReturnT,
typename... Args>
3362 const char* format, Args... args) {
3365 return HandleResult<ReturnT>(
3366 PyObject_CallFunction(pyfunc, const_cast<char*>(format), args...));
3369 template <
typename ReturnT>
3371 return HandleResult<ReturnT>(PyObject_CallFunctionObjArgs(pyfunc,
nullptr));
3385 #include "ortools/constraint_solver/python/pywrapcp_util.h" 3462 if (t ==
nullptr)
return false;
3471 if (c ==
nullptr || c->
Var() ==
nullptr)
return false;
3487 if (t ==
nullptr)
return false;
3496 if (c ==
nullptr || c->
Var() ==
nullptr)
return false;
3628 PyObject*
const pysolver =
3631 PyObject*
const pyresult = PyEval_CallFunction(pyfunc,
"(O)", pysolver);
3633 PyErr_SetString(PyExc_RuntimeError,
3634 "std::function<void(Solver*)> invocation failed.");
3636 Py_DECREF(pyresult);
3644 return PyInt_FromLong((
long)
value);
3649 #if !defined(SWIG_NO_LLONG_MAX) 3650 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) 3651 # define LLONG_MAX __LONG_LONG_MAX__ 3652 # define LLONG_MIN (-LLONG_MAX - 1LL) 3653 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) 3662 if (PyFloat_Check(obj)) {
3663 if (val) *val = PyFloat_AsDouble(obj);
3665 #if PY_VERSION_HEX < 0x03000000 3666 }
else if (PyInt_Check(obj)) {
3667 if (val) *val = (double) PyInt_AsLong(obj);
3670 }
else if (PyLong_Check(obj)) {
3671 double v = PyLong_AsDouble(obj);
3672 if (!PyErr_Occurred()) {
3679 #ifdef SWIG_PYTHON_CAST_MODE 3682 double d = PyFloat_AsDouble(obj);
3683 if (!PyErr_Occurred()) {
3690 long v = PyLong_AsLong(obj);
3691 if (!PyErr_Occurred()) {
3713 if ((
min <= x && x <=
max)) {
3714 double fx = floor(x);
3715 double cx = ceil(x);
3716 double rd = ((x - fx) < 0.5) ? fx : cx;
3717 if ((errno == EDOM) || (errno == ERANGE)) {
3720 double summ, reps, diff;
3723 }
else if (rd > x) {
3730 if (reps < 8*DBL_EPSILON) {
3743 #if PY_VERSION_HEX < 0x03000000 3744 if (PyInt_Check(obj)) {
3745 if (val) *val = PyInt_AsLong(obj);
3749 if (PyLong_Check(obj)) {
3750 long v = PyLong_AsLong(obj);
3751 if (!PyErr_Occurred()) {
3759 #ifdef SWIG_PYTHON_CAST_MODE 3762 long v = PyInt_AsLong(obj);
3763 if (!PyErr_Occurred()) {
3773 if (val) *val = (long)(d);
3789 if ((v < INT_MIN || v > INT_MAX)) {
3792 if (val) *val = static_cast< int >(v);
3803 if (!PyBool_Check(obj))
3805 r = PyObject_IsTrue(obj);
3808 if (val) *val = r ? true :
false;
3816 return PyBool_FromLong(
value ? 1 : 0);
3823 static int init = 0;
3836 #if PY_VERSION_HEX>=0x03000000 3837 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) 3838 if (PyBytes_Check(obj))
3840 if (PyUnicode_Check(obj))
3843 if (PyString_Check(obj))
3846 char *cstr; Py_ssize_t len;
3848 #if PY_VERSION_HEX>=0x03000000 3849 #if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR) 3850 if (!alloc && cptr) {
3857 obj = PyUnicode_AsUTF8String(obj);
3863 PyBytes_AsStringAndSize(obj, &cstr, &len);
3865 PyString_AsStringAndSize(obj, &cstr, &len);
3870 *cptr = reinterpret_cast< char* >(memcpy(
new char[len + 1], cstr,
sizeof(
char)*(len + 1)));
3877 #if PY_VERSION_HEX>=0x03000000 3878 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) 3879 *cptr = PyBytes_AsString(obj);
3890 if (psize) *psize = len + 1;
3891 #if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR) 3896 #if defined(SWIG_PYTHON_2_UNICODE) 3897 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) 3898 #error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once" 3900 #if PY_VERSION_HEX<0x03000000 3901 if (PyUnicode_Check(obj)) {
3902 char *cstr; Py_ssize_t len;
3903 if (!alloc && cptr) {
3906 obj = PyUnicode_AsUTF8String(obj);
3909 if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
3912 *cptr = reinterpret_cast< char* >(memcpy(
new char[len + 1], cstr,
sizeof(
char)*(len + 1)));
3914 if (psize) *psize = len + 1;
3926 if (pchar_descriptor) {
3929 if (cptr) *cptr = (
char *) vptr;
3930 if (psize) *psize = vptr ? (strlen((
char *)vptr) + 1) : 0;
3943 char* buf = 0 ;
size_t size = 0;
int alloc =
SWIG_OLDOBJ;
3946 if (val) *val =
new std::string(buf, size - 1);
3954 static int init = 0;
3971 #define SWIG_From_long PyInt_FromLong 3977 return (
value > LONG_MAX) ?
3978 PyLong_FromUnsignedLong(
value) : PyInt_FromLong(static_cast< long >(
value));
3986 if (size > INT_MAX) {
3988 return pchar_descriptor ?
3991 #if PY_VERSION_HEX >= 0x03000000 3992 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) 3993 return PyBytes_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3995 return PyUnicode_DecodeUTF8(carray, static_cast< Py_ssize_t >(size),
"surrogateescape");
3998 return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
4014 return self->DebugString();
4017 return self->MakeNoCycle(nexts, active,
callback,
false);
4020 return self->MakeSearchLog(period,
callback);
4023 return self->MakeElement(values,
index);
4026 return self->MakePhase(vars, var_evaluator, val_str);
4029 return self->MakePhase(vars, var_str, val_eval);
4032 return self->MakePhase(vars, var_eval, val_eval);
4035 return self->MakePhase(vars, var_str, val_eval, tie_breaker);
4038 return self->MakePhase(vars, var_eval, val_eval, tie_breaker);
4041 return self->MakePhase(vars, evaluator, str);
4044 return self->MakePhase(vars, evaluator, tie_breaker, str);
4047 return self->MakeGuidedLocalSearch(maximize,
4055 return self->MakeSumObjectiveFilter(vars,
4060 return self->DebugString();
4063 return self->DebugString();
4066 return self->DebugString();
4069 return self->DebugString();
4072 return self->DebugString();
4075 return self->DebugString();
4078 return self->DebugString();
4081 return self->DebugString();
4195 return self->DebugString();
4198 return self->DebugString();
4201 return self->DebugString();
4204 return self->DebugString();
4336 return self->DebugString();
4339 return self->DebugString();
4446 return self->DebugString();
4449 return self->DebugString();
4452 return self->DebugString();
4455 return self->DebugString();
4458 return self->Value(
index);
4461 return self->Size();
4471 template<
typename IndexT>
4473 return PyInt_FromLong(i.value());
4478 bool PyObjAs(PyObject *py, operations_research::RoutingNodeIndex* i) {
4480 if (!
PyObjAs(py, &temp))
return false;
4481 *i = operations_research::RoutingNodeIndex(temp);
4487 bool PyObjAs(PyObject *py, operations_research::RoutingCostClassIndex* i) {
4489 if (!
PyObjAs(py, &temp))
return false;
4490 *i = operations_research::RoutingCostClassIndex(temp);
4496 bool PyObjAs(PyObject *py, operations_research::RoutingDimensionIndex* i) {
4498 if (!
PyObjAs(py, &temp))
return false;
4499 *i = operations_research::RoutingDimensionIndex(temp);
4505 bool PyObjAs(PyObject *py, operations_research::RoutingDisjunctionIndex* i) {
4507 if (!
PyObjAs(py, &temp))
return false;
4508 *i = operations_research::RoutingDisjunctionIndex(temp);
4514 bool PyObjAs(PyObject *py, operations_research::RoutingVehicleClassIndex* i) {
4516 if (!
PyObjAs(py, &temp))
return false;
4517 *i = operations_research::RoutingVehicleClassIndex(temp);
4557 std::string c_result;
4561 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 4562 const size_t swig_method_index = 0;
4563 const char *
const swig_method_name =
"DebugString";
4564 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4572 PyObject *error = PyErr_Occurred();
4574 if (error != NULL) {
4579 std::string *swig_optr = 0;
4581 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
4584 c_result = *swig_optr;
4586 return (std::string) c_result;
4601 std::string c_result;
4605 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 4606 const size_t swig_method_index = 0;
4607 const char *
const swig_method_name =
"DebugString";
4608 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4616 PyObject *error = PyErr_Occurred();
4618 if (error != NULL) {
4623 std::string *swig_optr = 0;
4625 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
4628 c_result = *swig_optr;
4630 return (std::string) c_result;
4635 std::string c_result;
4639 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 4640 const size_t swig_method_index = 1;
4641 const char *
const swig_method_name =
"Name";
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;
4679 std::string c_result;
4683 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 4684 const size_t swig_method_index = 0;
4685 const char *
const swig_method_name =
"DebugString";
4686 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4694 PyObject *error = PyErr_Occurred();
4696 if (error != NULL) {
4701 std::string *swig_optr = 0;
4703 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
4706 c_result = *swig_optr;
4708 return (std::string) c_result;
4718 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 4719 const size_t swig_method_index = 1;
4720 const char *
const swig_method_name =
"ApplyWrapper";
4721 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4728 PyObject *error = PyErr_Occurred();
4730 if (error != NULL) {
4744 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 4745 const size_t swig_method_index = 2;
4746 const char *
const swig_method_name =
"RefuteWrapper";
4747 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4754 PyObject *error = PyErr_Occurred();
4756 if (error != NULL) {
4775 std::string c_result;
4779 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 4780 const size_t swig_method_index = 0;
4781 const char *
const swig_method_name =
"DebugString";
4782 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4790 PyObject *error = PyErr_Occurred();
4792 if (error != NULL) {
4797 std::string *swig_optr = 0;
4799 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
4802 c_result = *swig_optr;
4804 return (std::string) c_result;
4819 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 4820 const size_t swig_method_index = 1;
4821 const char *
const swig_method_name =
"NextWrapper";
4822 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4829 PyObject *error = PyErr_Occurred();
4831 if (error != NULL) {
4840 c_result = reinterpret_cast< operations_research::Decision * >(swig_argp);
4857 std::string c_result;
4861 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 4862 const size_t swig_method_index = 0;
4863 const char *
const swig_method_name =
"DebugString";
4864 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4872 PyObject *error = PyErr_Occurred();
4874 if (error != NULL) {
4879 std::string *swig_optr = 0;
4881 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
4884 c_result = *swig_optr;
4886 return (std::string) c_result;
4896 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 4897 const size_t swig_method_index = 1;
4898 const char *
const swig_method_name =
"RunWrapper";
4899 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4906 PyObject *error = PyErr_Occurred();
4908 if (error != NULL) {
4922 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 4923 const size_t swig_method_index = 2;
4924 const char *
const swig_method_name =
"Priority";
4925 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4933 PyObject *error = PyErr_Occurred();
4935 if (error != NULL) {
4945 c_result = static_cast< operations_research::Solver::DemonPriority >(swig_val);
4961 std::string c_result;
4965 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 4966 const size_t swig_method_index = 0;
4967 const char *
const swig_method_name =
"DebugString";
4968 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
4976 PyObject *error = PyErr_Occurred();
4978 if (error != NULL) {
4983 std::string *swig_optr = 0;
4985 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
4988 c_result = *swig_optr;
4990 return (std::string) c_result;
4995 std::string c_result;
4999 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5000 const size_t swig_method_index = 1;
5001 const char *
const swig_method_name =
"Name";
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;
5032 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5033 const size_t swig_method_index = 2;
5034 const char *
const swig_method_name =
"Post";
5035 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5043 PyObject *error = PyErr_Occurred();
5045 if (error != NULL) {
5057 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5058 const size_t swig_method_index = 3;
5059 const char *
const swig_method_name =
"InitialPropagateWrapper";
5060 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5068 PyObject *error = PyErr_Occurred();
5070 if (error != NULL) {
5092 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5093 const size_t swig_method_index = 4;
5094 const char *
const swig_method_name =
"Var";
5095 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5103 PyObject *error = PyErr_Occurred();
5105 if (error != NULL) {
5114 c_result = reinterpret_cast< operations_research::IntVar * >(swig_argp);
5131 std::string c_result;
5135 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5136 const size_t swig_method_index = 0;
5137 const char *
const swig_method_name =
"DebugString";
5138 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5146 PyObject *error = PyErr_Occurred();
5148 if (error != NULL) {
5153 std::string *swig_optr = 0;
5155 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
5158 c_result = *swig_optr;
5160 return (std::string) c_result;
5168 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5169 const size_t swig_method_index = 1;
5170 const char *
const swig_method_name =
"EnterSearch";
5171 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5179 PyObject *error = PyErr_Occurred();
5181 if (error != NULL) {
5193 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5194 const size_t swig_method_index = 2;
5195 const char *
const swig_method_name =
"RestartSearch";
5196 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5204 PyObject *error = PyErr_Occurred();
5206 if (error != NULL) {
5218 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5219 const size_t swig_method_index = 3;
5220 const char *
const swig_method_name =
"ExitSearch";
5221 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5229 PyObject *error = PyErr_Occurred();
5231 if (error != NULL) {
5245 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5246 const size_t swig_method_index = 4;
5247 const char *
const swig_method_name =
"BeginNextDecision";
5248 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5255 PyObject *error = PyErr_Occurred();
5257 if (error != NULL) {
5273 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5274 const size_t swig_method_index = 5;
5275 const char *
const swig_method_name =
"EndNextDecision";
5276 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5277 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5283 PyObject *error = PyErr_Occurred();
5285 if (error != NULL) {
5299 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5300 const size_t swig_method_index = 6;
5301 const char *
const swig_method_name =
"ApplyDecision";
5302 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5309 PyObject *error = PyErr_Occurred();
5311 if (error != NULL) {
5325 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5326 const size_t swig_method_index = 7;
5327 const char *
const swig_method_name =
"RefuteDecision";
5328 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5335 PyObject *error = PyErr_Occurred();
5337 if (error != NULL) {
5353 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5354 const size_t swig_method_index = 8;
5355 const char *
const swig_method_name =
"AfterDecision";
5356 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5357 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5363 PyObject *error = PyErr_Occurred();
5365 if (error != NULL) {
5377 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5378 const size_t swig_method_index = 9;
5379 const char *
const swig_method_name =
"BeginFail";
5380 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5388 PyObject *error = PyErr_Occurred();
5390 if (error != NULL) {
5402 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5403 const size_t swig_method_index = 10;
5404 const char *
const swig_method_name =
"EndFail";
5405 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5413 PyObject *error = PyErr_Occurred();
5415 if (error != NULL) {
5427 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5428 const size_t swig_method_index = 11;
5429 const char *
const swig_method_name =
"BeginInitialPropagation";
5430 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5438 PyObject *error = PyErr_Occurred();
5440 if (error != NULL) {
5452 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5453 const size_t swig_method_index = 12;
5454 const char *
const swig_method_name =
"EndInitialPropagation";
5455 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5463 PyObject *error = PyErr_Occurred();
5465 if (error != NULL) {
5474 bool c_result = SwigValueInit< bool >() ;
5479 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5480 const size_t swig_method_index = 13;
5481 const char *
const swig_method_name =
"AcceptSolution";
5482 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5490 PyObject *error = PyErr_Occurred();
5492 if (error != NULL) {
5502 c_result = static_cast< bool >(swig_val);
5503 return (
bool) c_result;
5508 bool c_result = SwigValueInit< bool >() ;
5513 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5514 const size_t swig_method_index = 14;
5515 const char *
const swig_method_name =
"AtSolution";
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;
5545 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5546 const size_t swig_method_index = 15;
5547 const char *
const swig_method_name =
"NoMoreSolutions";
5548 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5556 PyObject *error = PyErr_Occurred();
5558 if (error != NULL) {
5567 bool c_result = SwigValueInit< bool >() ;
5572 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5573 const size_t swig_method_index = 16;
5574 const char *
const swig_method_name =
"LocalOptimum";
5575 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5583 PyObject *error = PyErr_Occurred();
5585 if (error != NULL) {
5595 c_result = static_cast< bool >(swig_val);
5596 return (
bool) c_result;
5601 bool c_result = SwigValueInit< bool >() ;
5610 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5611 const size_t swig_method_index = 17;
5612 const char *
const swig_method_name =
"AcceptDelta";
5613 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5614 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5620 PyObject *error = PyErr_Occurred();
5622 if (error != NULL) {
5632 c_result = static_cast< bool >(swig_val);
5633 return (
bool) c_result;
5641 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5642 const size_t swig_method_index = 18;
5643 const char *
const swig_method_name =
"AcceptNeighbor";
5644 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5652 PyObject *error = PyErr_Occurred();
5654 if (error != NULL) {
5703 std::string c_result;
5707 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5708 const size_t swig_method_index = 0;
5709 const char *
const swig_method_name =
"DebugString";
5710 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5718 PyObject *error = PyErr_Occurred();
5720 if (error != NULL) {
5725 std::string *swig_optr = 0;
5727 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
5730 c_result = *swig_optr;
5732 return (std::string) c_result;
5737 bool c_result = SwigValueInit< bool >() ;
5746 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5747 const size_t swig_method_index = 1;
5748 const char *
const swig_method_name =
"NextNeighbor";
5749 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5750 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5756 PyObject *error = PyErr_Occurred();
5758 if (error != NULL) {
5768 c_result = static_cast< bool >(swig_val);
5769 return (
bool) c_result;
5779 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5780 const size_t swig_method_index = 2;
5781 const char *
const swig_method_name =
"Start";
5782 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5789 PyObject *error = PyErr_Occurred();
5791 if (error != NULL) {
5832 std::string c_result;
5836 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5837 const size_t swig_method_index = 0;
5838 const char *
const swig_method_name =
"DebugString";
5839 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5847 PyObject *error = PyErr_Occurred();
5849 if (error != NULL) {
5854 std::string *swig_optr = 0;
5856 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
5859 c_result = *swig_optr;
5861 return (std::string) c_result;
5866 bool c_result = SwigValueInit< bool >() ;
5875 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5876 const size_t swig_method_index = 1;
5877 const char *
const swig_method_name =
"NextNeighbor";
5878 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5879 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5885 PyObject *error = PyErr_Occurred();
5887 if (error != NULL) {
5897 c_result = static_cast< bool >(swig_val);
5898 return (
bool) c_result;
5918 bool c_result = SwigValueInit< bool >() ;
5923 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5924 const size_t swig_method_index = 2;
5925 const char *
const swig_method_name =
"IsIncremental";
5926 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5934 PyObject *error = PyErr_Occurred();
5936 if (error != NULL) {
5946 c_result = static_cast< bool >(swig_val);
5947 return (
bool) c_result;
5960 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5961 const size_t swig_method_index = 3;
5962 const char *
const swig_method_name =
"OnStart";
5963 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5971 PyObject *error = PyErr_Occurred();
5973 if (error != NULL) {
5982 bool c_result = SwigValueInit< bool >() ;
5988 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 5989 const size_t swig_method_index = 4;
5990 const char *
const swig_method_name =
"OneNeighbor";
5991 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6000 PyObject *error = PyErr_Occurred();
6002 if (error != NULL) {
6012 c_result = static_cast< bool >(swig_val);
6013 return (
bool) c_result;
6028 std::string c_result;
6032 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 6033 const size_t swig_method_index = 0;
6034 const char *
const swig_method_name =
"DebugString";
6035 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6043 PyObject *error = PyErr_Occurred();
6045 if (error != NULL) {
6050 std::string *swig_optr = 0;
6052 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
6055 c_result = *swig_optr;
6057 return (std::string) c_result;
6062 bool c_result = SwigValueInit< bool >() ;
6071 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 6072 const size_t swig_method_index = 1;
6073 const char *
const swig_method_name =
"NextNeighbor";
6074 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6075 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6081 PyObject *error = PyErr_Occurred();
6083 if (error != NULL) {
6093 c_result = static_cast< bool >(swig_val);
6094 return (
bool) c_result;
6114 bool c_result = SwigValueInit< bool >() ;
6119 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 6120 const size_t swig_method_index = 2;
6121 const char *
const swig_method_name =
"IsIncremental";
6122 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6130 PyObject *error = PyErr_Occurred();
6132 if (error != NULL) {
6142 c_result = static_cast< bool >(swig_val);
6143 return (
bool) c_result;
6151 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 6152 const size_t swig_method_index = 3;
6153 const char *
const swig_method_name =
"InitFragments";
6154 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6162 PyObject *error = PyErr_Occurred();
6164 if (error != NULL) {
6173 bool c_result = SwigValueInit< bool >() ;
6178 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 6179 const size_t swig_method_index = 4;
6180 const char *
const swig_method_name =
"NextFragment";
6181 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6189 PyObject *error = PyErr_Occurred();
6191 if (error != NULL) {
6201 c_result = static_cast< bool >(swig_val);
6202 return (
bool) c_result;
6217 std::string c_result;
6221 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 6222 const size_t swig_method_index = 0;
6223 const char *
const swig_method_name =
"DebugString";
6224 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6232 PyObject *error = PyErr_Occurred();
6234 if (error != NULL) {
6239 std::string *swig_optr = 0;
6241 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
6244 c_result = *swig_optr;
6246 return (std::string) c_result;
6251 bool c_result = SwigValueInit< bool >() ;
6260 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 6261 const size_t swig_method_index = 1;
6262 const char *
const swig_method_name =
"NextNeighbor";
6263 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6264 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6270 PyObject *error = PyErr_Occurred();
6272 if (error != NULL) {
6282 c_result = static_cast< bool >(swig_val);
6283 return (
bool) c_result;
6303 bool c_result = SwigValueInit< bool >() ;
6308 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 6309 const size_t swig_method_index = 2;
6310 const char *
const swig_method_name =
"IsIncremental";
6311 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6319 PyObject *error = PyErr_Occurred();
6321 if (error != NULL) {
6331 c_result = static_cast< bool >(swig_val);
6332 return (
bool) c_result;
6345 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 6346 const size_t swig_method_index = 3;
6347 const char *
const swig_method_name =
"OnStart";
6348 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6356 PyObject *error = PyErr_Occurred();
6358 if (error != NULL) {
6367 bool c_result = SwigValueInit< bool >() ;
6373 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 6374 const size_t swig_method_index = 4;
6375 const char *
const swig_method_name =
"OneNeighbor";
6376 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6385 PyObject *error = PyErr_Occurred();
6387 if (error != NULL) {
6397 c_result = static_cast< bool >(swig_val);
6398 return (
bool) c_result;
6403 int64_t c_result = SwigValueInit< int64_t >() ;
6412 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 6413 const size_t swig_method_index = 5;
6414 const char *
const swig_method_name =
"ModifyValue";
6415 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6416 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6422 PyObject *error = PyErr_Occurred();
6424 if (error != NULL) {
6434 c_result = static_cast< int64_t >(swig_val);
6435 return (int64_t) c_result;
6450 std::string c_result;
6454 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 6455 const size_t swig_method_index = 0;
6456 const char *
const swig_method_name =
"DebugString";
6457 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6465 PyObject *error = PyErr_Occurred();
6467 if (error != NULL) {
6472 std::string *swig_optr = 0;
6474 if (!
SWIG_IsOK(swig_ores) || !swig_optr) {
6477 c_result = *swig_optr;
6479 return (std::string) c_result;
6494 bool c_result = SwigValueInit< bool >() ;
6507 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 6508 const size_t swig_method_index = 1;
6509 const char *
const swig_method_name =
"Accept";
6510 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6511 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2,(PyObject *)obj3, NULL);
6514 swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(
swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2,(PyObject *)obj3, NULL);
6517 PyObject *error = PyErr_Occurred();
6519 if (error != NULL) {
6529 c_result = static_cast< bool >(swig_val);
6530 return (
bool) c_result;
6535 bool c_result = SwigValueInit< bool >() ;
6540 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 6541 const size_t swig_method_index = 2;
6542 const char *
const swig_method_name =
"IsIncremental";
6543 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6551 PyObject *error = PyErr_Occurred();
6553 if (error != NULL) {
6563 c_result = static_cast< bool >(swig_val);
6564 return (
bool) c_result;
6576 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) 6577 const size_t swig_method_index = 3;
6578 const char *
const swig_method_name =
"Synchronize";
6579 PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6580 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6586 PyObject *error = PyErr_Occurred();
6588 if (error != NULL) {
6625 PyObject *resultobj = 0;
6632 PyObject * obj0 = 0 ;
6633 PyObject * obj1 = 0 ;
6635 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_var_selection_schema_set", 2, 2, &obj0, &obj1))
SWIG_fail;
6638 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_var_selection_schema_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6640 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6643 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "DefaultPhaseParameters_var_selection_schema_set" "', argument " "2"" of type '" "operations_research::DefaultPhaseParameters::VariableSelection""'");
6645 arg2 = static_cast< operations_research::DefaultPhaseParameters::VariableSelection >(val2);
6646 if (arg1) (arg1)->var_selection_schema = arg2;
6655 PyObject *resultobj = 0;
6659 PyObject * obj0 = 0 ;
6662 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_var_selection_schema_get", 1, 1, &obj0))
SWIG_fail;
6665 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_var_selection_schema_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6667 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6677 PyObject *resultobj = 0;
6684 PyObject * obj0 = 0 ;
6685 PyObject * obj1 = 0 ;
6687 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_value_selection_schema_set", 2, 2, &obj0, &obj1))
SWIG_fail;
6690 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_value_selection_schema_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6692 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6695 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "DefaultPhaseParameters_value_selection_schema_set" "', argument " "2"" of type '" "operations_research::DefaultPhaseParameters::ValueSelection""'");
6697 arg2 = static_cast< operations_research::DefaultPhaseParameters::ValueSelection >(val2);
6698 if (arg1) (arg1)->value_selection_schema = arg2;
6707 PyObject *resultobj = 0;
6711 PyObject * obj0 = 0 ;
6714 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_value_selection_schema_get", 1, 1, &obj0))
SWIG_fail;
6717 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_value_selection_schema_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6719 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6729 PyObject *resultobj = 0;
6736 PyObject * obj0 = 0 ;
6737 PyObject * obj1 = 0 ;
6739 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_initialization_splits_set", 2, 2, &obj0, &obj1))
SWIG_fail;
6742 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_initialization_splits_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6744 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6749 arg2 = static_cast< int >(val2);
6750 if (arg1) (arg1)->initialization_splits = arg2;
6759 PyObject *resultobj = 0;
6763 PyObject * obj0 = 0 ;
6766 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_initialization_splits_get", 1, 1, &obj0))
SWIG_fail;
6769 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_initialization_splits_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6771 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6772 result = (int) ((arg1)->initialization_splits);
6781 PyObject *resultobj = 0;
6788 PyObject * obj0 = 0 ;
6789 PyObject * obj1 = 0 ;
6791 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_run_all_heuristics_set", 2, 2, &obj0, &obj1))
SWIG_fail;
6794 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_run_all_heuristics_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6796 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6801 arg2 = static_cast< bool >(val2);
6802 if (arg1) (arg1)->run_all_heuristics = arg2;
6811 PyObject *resultobj = 0;
6815 PyObject * obj0 = 0 ;
6818 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_run_all_heuristics_get", 1, 1, &obj0))
SWIG_fail;
6821 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_run_all_heuristics_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6823 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6824 result = (bool) ((arg1)->run_all_heuristics);
6833 PyObject *resultobj = 0;
6840 PyObject * obj0 = 0 ;
6841 PyObject * obj1 = 0 ;
6843 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_heuristic_period_set", 2, 2, &obj0, &obj1))
SWIG_fail;
6846 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_heuristic_period_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6848 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6853 arg2 = static_cast< int >(val2);
6854 if (arg1) (arg1)->heuristic_period = arg2;
6863 PyObject *resultobj = 0;
6867 PyObject * obj0 = 0 ;
6870 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_heuristic_period_get", 1, 1, &obj0))
SWIG_fail;
6873 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_heuristic_period_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6875 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6876 result = (int) ((arg1)->heuristic_period);
6885 PyObject *resultobj = 0;
6892 PyObject * obj0 = 0 ;
6893 PyObject * obj1 = 0 ;
6895 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_heuristic_num_failures_limit_set", 2, 2, &obj0, &obj1))
SWIG_fail;
6898 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_heuristic_num_failures_limit_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6900 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6903 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "DefaultPhaseParameters_heuristic_num_failures_limit_set" "', argument " "2"" of type '" "int""'");
6905 arg2 = static_cast< int >(val2);
6906 if (arg1) (arg1)->heuristic_num_failures_limit = arg2;
6915 PyObject *resultobj = 0;
6919 PyObject * obj0 = 0 ;
6922 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_heuristic_num_failures_limit_get", 1, 1, &obj0))
SWIG_fail;
6925 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_heuristic_num_failures_limit_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6927 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6928 result = (int) ((arg1)->heuristic_num_failures_limit);
6937 PyObject *resultobj = 0;
6944 PyObject * obj0 = 0 ;
6945 PyObject * obj1 = 0 ;
6947 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_persistent_impact_set", 2, 2, &obj0, &obj1))
SWIG_fail;
6950 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_persistent_impact_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6952 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6957 arg2 = static_cast< bool >(val2);
6958 if (arg1) (arg1)->persistent_impact = arg2;
6967 PyObject *resultobj = 0;
6971 PyObject * obj0 = 0 ;
6974 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_persistent_impact_get", 1, 1, &obj0))
SWIG_fail;
6977 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_persistent_impact_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
6979 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
6980 result = (bool) ((arg1)->persistent_impact);
6989 PyObject *resultobj = 0;
6996 PyObject * obj0 = 0 ;
6997 PyObject * obj1 = 0 ;
6999 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_random_seed_set", 2, 2, &obj0, &obj1))
SWIG_fail;
7002 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_random_seed_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7004 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
7009 arg2 = static_cast< int >(val2);
7010 if (arg1) (arg1)->random_seed = arg2;
7019 PyObject *resultobj = 0;
7023 PyObject * obj0 = 0 ;
7026 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_random_seed_get", 1, 1, &obj0))
SWIG_fail;
7029 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_random_seed_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7031 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
7032 result = (int) ((arg1)->random_seed);
7041 PyObject *resultobj = 0;
7048 PyObject * obj0 = 0 ;
7049 PyObject * obj1 = 0 ;
7051 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_display_level_set", 2, 2, &obj0, &obj1))
SWIG_fail;
7054 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_display_level_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7056 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
7059 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "DefaultPhaseParameters_display_level_set" "', argument " "2"" of type '" "operations_research::DefaultPhaseParameters::DisplayLevel""'");
7061 arg2 = static_cast< operations_research::DefaultPhaseParameters::DisplayLevel >(val2);
7062 if (arg1) (arg1)->display_level = arg2;
7071 PyObject *resultobj = 0;
7075 PyObject * obj0 = 0 ;
7078 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_display_level_get", 1, 1, &obj0))
SWIG_fail;
7081 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_display_level_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7083 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
7093 PyObject *resultobj = 0;
7100 PyObject * obj0 = 0 ;
7101 PyObject * obj1 = 0 ;
7103 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_decision_builder_set", 2, 2, &obj0, &obj1))
SWIG_fail;
7106 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_decision_builder_set" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7108 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
7111 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "DefaultPhaseParameters_decision_builder_set" "', argument " "2"" of type '" "operations_research::DecisionBuilder *""'");
7113 arg2 = reinterpret_cast< operations_research::DecisionBuilder * >(argp2);
7114 if (arg1) (arg1)->decision_builder = arg2;
7123 PyObject *resultobj = 0;
7127 PyObject * obj0 = 0 ;
7130 if (!PyArg_UnpackTuple(args,
"DefaultPhaseParameters_decision_builder_get", 1, 1, &obj0))
SWIG_fail;
7133 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DefaultPhaseParameters_decision_builder_get" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7135 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
7145 PyObject *resultobj = 0;
7148 if (!PyArg_UnpackTuple(args,
"new_DefaultPhaseParameters", 0, 0))
SWIG_fail;
7165 PyObject *resultobj = 0;
7169 PyObject * obj0 = 0 ;
7171 if (!PyArg_UnpackTuple(args,
"delete_DefaultPhaseParameters", 1, 1, &obj0))
SWIG_fail;
7174 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_DefaultPhaseParameters" "', argument " "1"" of type '" "operations_research::DefaultPhaseParameters *""'");
7176 arg1 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp1);
7204 PyObject *resultobj = 0;
7205 std::string *arg1 = 0 ;
7207 PyObject * obj0 = 0 ;
7210 if (!PyArg_UnpackTuple(args,
"new_Solver", 1, 1, &obj0))
SWIG_fail;
7212 std::string *ptr = (std::string *)0;
7240 PyObject *resultobj = 0;
7241 std::string *arg1 = 0 ;
7244 PyObject * obj0 = 0 ;
7245 PyObject * obj1 = 0 ;
7248 if (!PyArg_UnpackTuple(args,
"new_Solver", 2, 2, &obj0, &obj1))
SWIG_fail;
7250 std::string *ptr = (std::string *)0;
7262 PyObject*
const pyresult = PyObject_CallMethod(
7263 obj1, const_cast<char*>(
"SerializeToString"),
nullptr);
7264 if (pyresult !=
nullptr) {
7265 char* buffer =
nullptr;
7266 Py_ssize_t length = 0;
7267 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
7268 if (buffer !=
nullptr) {
7269 arg2->ParseFromArray(buffer, length);
7271 Py_DECREF(pyresult);
7299 PyObject *argv[3] = {
7305 argc = PyObject_Length(args);
7306 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
7307 argv[ii] = PyTuple_GET_ITEM(args,ii);
7324 PyObject*
const module = PyImport_ImportModule(
"ortools.constraint_solver.solver_parameters_pb2");
7325 if (module !=
nullptr) {
7326 PyObject*
const dict = PyModule_GetDict(module);
7327 if (dict !=
nullptr) {
7328 PyObject*
const clss = PyDict_GetItemString(dict,
"ConstraintSolverParameters");
7329 if (clss !=
nullptr) {
7330 if (PyObject_IsInstance(argv[1], clss)) {
7347 " Possible C/C++ prototypes are:\n" 7348 " operations_research::Solver::Solver(std::string const &)\n" 7349 " operations_research::Solver::Solver(std::string const &,operations_research::ConstraintSolverParameters const &)\n");
7355 PyObject *resultobj = 0;
7359 PyObject * obj0 = 0 ;
7361 if (!PyArg_UnpackTuple(args,
"delete_Solver", 1, 1, &obj0))
SWIG_fail;
7366 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7383 PyObject *resultobj = 0;
7387 PyObject * obj0 = 0 ;
7390 if (!PyArg_UnpackTuple(args,
"Solver_Parameters", 1, 1, &obj0))
SWIG_fail;
7395 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7405 PyObject*
const module = PyImport_ImportModule(
"ortools.constraint_solver.solver_parameters_pb2");
7406 if (module !=
nullptr) {
7407 PyObject*
const dict = PyModule_GetDict(module);
7408 if (dict !=
nullptr) {
7409 PyObject*
const clss = PyDict_GetItemString(dict,
"ConstraintSolverParameters");
7410 if (clss !=
nullptr) {
7411 std::string encoded_protobuf;
7412 (&result)->SerializeToString(&encoded_protobuf);
7414 PyObject*
const python_encoded_protobuf = PyBytes_FromStringAndSize(
7415 encoded_protobuf.c_str(), encoded_protobuf.size());
7420 PyObject*
const result = PyObject_CallMethod(
7421 clss, const_cast<char*>(
"FromString"),
7422 const_cast<char*>(
"(O)"),
7423 python_encoded_protobuf);
7424 Py_DECREF(python_encoded_protobuf);
7438 PyObject *resultobj = 0;
7441 if (!PyArg_UnpackTuple(args,
"Solver_DefaultSolverParameters", 0, 0))
SWIG_fail;
7451 PyObject*
const module = PyImport_ImportModule(
"ortools.constraint_solver.solver_parameters_pb2");
7452 if (module !=
nullptr) {
7453 PyObject*
const dict = PyModule_GetDict(module);
7454 if (dict !=
nullptr) {
7455 PyObject*
const clss = PyDict_GetItemString(dict,
"ConstraintSolverParameters");
7456 if (clss !=
nullptr) {
7457 std::string encoded_protobuf;
7458 (&result)->SerializeToString(&encoded_protobuf);
7460 PyObject*
const python_encoded_protobuf = PyBytes_FromStringAndSize(
7461 encoded_protobuf.c_str(), encoded_protobuf.size());
7466 PyObject*
const result = PyObject_CallMethod(
7467 clss, const_cast<char*>(
"FromString"),
7468 const_cast<char*>(
"(O)"),
7469 python_encoded_protobuf);
7470 Py_DECREF(python_encoded_protobuf);
7484 PyObject *resultobj = 0;
7491 PyObject * obj0 = 0 ;
7492 PyObject * obj1 = 0 ;
7494 if (!PyArg_UnpackTuple(args,
"Solver_AddConstraint", 2, 2, &obj0, &obj1))
SWIG_fail;
7499 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7504 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
7512 (arg1)->AddConstraint(arg2);
7519 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
7531 PyObject *resultobj = 0;
7534 std::vector< operations_research::SearchMonitor * > *arg3 = 0 ;
7537 std::vector< operations_research::SearchMonitor * > temp3 ;
7538 PyObject * obj0 = 0 ;
7539 PyObject * obj1 = 0 ;
7540 PyObject * obj2 = 0 ;
7543 if (!PyArg_UnpackTuple(args,
"Solver_Solve", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
7548 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7553 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::SearchMonitor*>)) {
7554 if (!PyErr_Occurred())
7562 result = (bool)(arg1)->Solve(arg2,(std::vector< operations_research::SearchMonitor * >
const &)*arg3);
7576 PyObject *resultobj = 0;
7581 PyObject * obj0 = 0 ;
7582 PyObject * obj1 = 0 ;
7585 if (!PyArg_UnpackTuple(args,
"Solver_Solve", 2, 2, &obj0, &obj1))
SWIG_fail;
7590 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7596 result = (bool)(arg1)->Solve(arg2);
7610 PyObject *resultobj = 0;
7616 PyObject * obj0 = 0 ;
7617 PyObject * obj1 = 0 ;
7618 PyObject * obj2 = 0 ;
7621 if (!PyArg_UnpackTuple(args,
"Solver_Solve", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
7626 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7635 result = (bool)(arg1)->Solve(arg2,arg3);
7649 PyObject *resultobj = 0;
7656 PyObject * obj0 = 0 ;
7657 PyObject * obj1 = 0 ;
7658 PyObject * obj2 = 0 ;
7659 PyObject * obj3 = 0 ;
7662 if (!PyArg_UnpackTuple(args,
"Solver_Solve", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
7667 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7679 result = (bool)(arg1)->Solve(arg2,arg3,arg4);
7693 PyObject *resultobj = 0;
7701 PyObject * obj0 = 0 ;
7702 PyObject * obj1 = 0 ;
7703 PyObject * obj2 = 0 ;
7704 PyObject * obj3 = 0 ;
7705 PyObject * obj4 = 0 ;
7708 if (!PyArg_UnpackTuple(args,
"Solver_Solve", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
7713 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7728 result = (bool)(arg1)->Solve(arg2,arg3,arg4,arg5);
7742 PyObject *resultobj = 0;
7751 PyObject * obj0 = 0 ;
7752 PyObject * obj1 = 0 ;
7753 PyObject * obj2 = 0 ;
7754 PyObject * obj3 = 0 ;
7755 PyObject * obj4 = 0 ;
7756 PyObject * obj5 = 0 ;
7759 if (!PyArg_UnpackTuple(args,
"Solver_Solve", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
7764 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
7782 result = (bool)(arg1)->Solve(arg2,arg3,arg4,arg5,arg6);
7797 PyObject *argv[7] = {
7803 argc = PyObject_Length(args);
7804 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
7805 argv[ii] = PyTuple_GET_ITEM(args,ii);
7815 if (_v == 0) PyErr_Clear();
7830 if (_v == 0) PyErr_Clear();
7834 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
7837 const bool is_tuple = PyTuple_Check(argv[2]);
7838 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
7841 :PyList_GetItem(argv[2], i))) {
7861 if (_v == 0) PyErr_Clear();
7866 if (_v == 0) PyErr_Clear();
7882 if (_v == 0) PyErr_Clear();
7887 if (_v == 0) PyErr_Clear();
7892 if (_v == 0) PyErr_Clear();
7909 if (_v == 0) PyErr_Clear();
7914 if (_v == 0) PyErr_Clear();
7919 if (_v == 0) PyErr_Clear();
7924 if (_v == 0) PyErr_Clear();
7942 if (_v == 0) PyErr_Clear();
7947 if (_v == 0) PyErr_Clear();
7952 if (_v == 0) PyErr_Clear();
7957 if (_v == 0) PyErr_Clear();
7962 if (_v == 0) PyErr_Clear();
7976 " Possible C/C++ prototypes are:\n" 7977 " operations_research::Solver::Solve(operations_research::DecisionBuilder *const,std::vector< operations_research::SearchMonitor * > const &)\n" 7978 " operations_research::Solver::Solve(operations_research::DecisionBuilder *const)\n" 7979 " operations_research::Solver::Solve(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const)\n" 7980 " operations_research::Solver::Solve(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n" 7981 " operations_research::Solver::Solve(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n" 7982 " 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");
7988 PyObject *resultobj = 0;
7991 std::vector< operations_research::SearchMonitor * > *arg3 = 0 ;
7994 std::vector< operations_research::SearchMonitor * > temp3 ;
7995 PyObject * obj0 = 0 ;
7996 PyObject * obj1 = 0 ;
7997 PyObject * obj2 = 0 ;
7999 if (!PyArg_UnpackTuple(args,
"Solver_NewSearch", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
8004 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8009 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::SearchMonitor*>)) {
8010 if (!PyErr_Occurred())
8018 (arg1)->NewSearch(arg2,(std::vector< operations_research::SearchMonitor * >
const &)*arg3);
8032 PyObject *resultobj = 0;
8037 PyObject * obj0 = 0 ;
8038 PyObject * obj1 = 0 ;
8040 if (!PyArg_UnpackTuple(args,
"Solver_NewSearch", 2, 2, &obj0, &obj1))
SWIG_fail;
8045 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8051 (arg1)->NewSearch(arg2);
8065 PyObject *resultobj = 0;
8071 PyObject * obj0 = 0 ;
8072 PyObject * obj1 = 0 ;
8073 PyObject * obj2 = 0 ;
8075 if (!PyArg_UnpackTuple(args,
"Solver_NewSearch", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
8080 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8089 (arg1)->NewSearch(arg2,arg3);
8103 PyObject *resultobj = 0;
8110 PyObject * obj0 = 0 ;
8111 PyObject * obj1 = 0 ;
8112 PyObject * obj2 = 0 ;
8113 PyObject * obj3 = 0 ;
8115 if (!PyArg_UnpackTuple(args,
"Solver_NewSearch", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
8120 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8132 (arg1)->NewSearch(arg2,arg3,arg4);
8146 PyObject *resultobj = 0;
8154 PyObject * obj0 = 0 ;
8155 PyObject * obj1 = 0 ;
8156 PyObject * obj2 = 0 ;
8157 PyObject * obj3 = 0 ;
8158 PyObject * obj4 = 0 ;
8160 if (!PyArg_UnpackTuple(args,
"Solver_NewSearch", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
8165 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8180 (arg1)->NewSearch(arg2,arg3,arg4,arg5);
8194 PyObject *resultobj = 0;
8203 PyObject * obj0 = 0 ;
8204 PyObject * obj1 = 0 ;
8205 PyObject * obj2 = 0 ;
8206 PyObject * obj3 = 0 ;
8207 PyObject * obj4 = 0 ;
8208 PyObject * obj5 = 0 ;
8210 if (!PyArg_UnpackTuple(args,
"Solver_NewSearch", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
8215 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8233 (arg1)->NewSearch(arg2,arg3,arg4,arg5,arg6);
8248 PyObject *argv[7] = {
8254 argc = PyObject_Length(args);
8255 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
8256 argv[ii] = PyTuple_GET_ITEM(args,ii);
8266 if (_v == 0) PyErr_Clear();
8281 if (_v == 0) PyErr_Clear();
8285 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
8288 const bool is_tuple = PyTuple_Check(argv[2]);
8289 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
8292 :PyList_GetItem(argv[2], i))) {
8312 if (_v == 0) PyErr_Clear();
8317 if (_v == 0) PyErr_Clear();
8333 if (_v == 0) PyErr_Clear();
8338 if (_v == 0) PyErr_Clear();
8343 if (_v == 0) PyErr_Clear();
8360 if (_v == 0) PyErr_Clear();
8365 if (_v == 0) PyErr_Clear();
8370 if (_v == 0) PyErr_Clear();
8375 if (_v == 0) PyErr_Clear();
8393 if (_v == 0) PyErr_Clear();
8398 if (_v == 0) PyErr_Clear();
8403 if (_v == 0) PyErr_Clear();
8408 if (_v == 0) PyErr_Clear();
8413 if (_v == 0) PyErr_Clear();
8427 " Possible C/C++ prototypes are:\n" 8428 " operations_research::Solver::NewSearch(operations_research::DecisionBuilder *const,std::vector< operations_research::SearchMonitor * > const &)\n" 8429 " operations_research::Solver::NewSearch(operations_research::DecisionBuilder *const)\n" 8430 " operations_research::Solver::NewSearch(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const)\n" 8431 " operations_research::Solver::NewSearch(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n" 8432 " operations_research::Solver::NewSearch(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n" 8433 " 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");
8439 PyObject *resultobj = 0;
8443 PyObject * obj0 = 0 ;
8446 if (!PyArg_UnpackTuple(args,
"Solver_NextSolution", 1, 1, &obj0))
SWIG_fail;
8451 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8454 result = (bool)(arg1)->NextSolution();
8468 PyObject *resultobj = 0;
8472 PyObject * obj0 = 0 ;
8474 if (!PyArg_UnpackTuple(args,
"Solver_RestartSearch", 1, 1, &obj0))
SWIG_fail;
8479 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8482 (arg1)->RestartSearch();
8496 PyObject *resultobj = 0;
8500 PyObject * obj0 = 0 ;
8502 if (!PyArg_UnpackTuple(args,
"Solver_EndSearch", 1, 1, &obj0))
SWIG_fail;
8507 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8510 (arg1)->EndSearch();
8524 PyObject *resultobj = 0;
8527 std::vector< operations_research::SearchMonitor * > *arg3 = 0 ;
8530 std::vector< operations_research::SearchMonitor * > temp3 ;
8531 PyObject * obj0 = 0 ;
8532 PyObject * obj1 = 0 ;
8533 PyObject * obj2 = 0 ;
8536 if (!PyArg_UnpackTuple(args,
"Solver_SolveAndCommit", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
8541 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8546 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::SearchMonitor*>)) {
8547 if (!PyErr_Occurred())
8555 result = (bool)(arg1)->SolveAndCommit(arg2,(std::vector< operations_research::SearchMonitor * >
const &)*arg3);
8569 PyObject *resultobj = 0;
8574 PyObject * obj0 = 0 ;
8575 PyObject * obj1 = 0 ;
8578 if (!PyArg_UnpackTuple(args,
"Solver_SolveAndCommit", 2, 2, &obj0, &obj1))
SWIG_fail;
8583 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8589 result = (bool)(arg1)->SolveAndCommit(arg2);
8603 PyObject *resultobj = 0;
8609 PyObject * obj0 = 0 ;
8610 PyObject * obj1 = 0 ;
8611 PyObject * obj2 = 0 ;
8614 if (!PyArg_UnpackTuple(args,
"Solver_SolveAndCommit", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
8619 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8628 result = (bool)(arg1)->SolveAndCommit(arg2,arg3);
8642 PyObject *resultobj = 0;
8649 PyObject * obj0 = 0 ;
8650 PyObject * obj1 = 0 ;
8651 PyObject * obj2 = 0 ;
8652 PyObject * obj3 = 0 ;
8655 if (!PyArg_UnpackTuple(args,
"Solver_SolveAndCommit", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
8660 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8672 result = (bool)(arg1)->SolveAndCommit(arg2,arg3,arg4);
8686 PyObject *resultobj = 0;
8694 PyObject * obj0 = 0 ;
8695 PyObject * obj1 = 0 ;
8696 PyObject * obj2 = 0 ;
8697 PyObject * obj3 = 0 ;
8698 PyObject * obj4 = 0 ;
8701 if (!PyArg_UnpackTuple(args,
"Solver_SolveAndCommit", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
8706 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8721 result = (bool)(arg1)->SolveAndCommit(arg2,arg3,arg4,arg5);
8736 PyObject *argv[6] = {
8742 argc = PyObject_Length(args);
8743 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
8744 argv[ii] = PyTuple_GET_ITEM(args,ii);
8754 if (_v == 0) PyErr_Clear();
8769 if (_v == 0) PyErr_Clear();
8773 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
8776 const bool is_tuple = PyTuple_Check(argv[2]);
8777 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
8780 :PyList_GetItem(argv[2], i))) {
8800 if (_v == 0) PyErr_Clear();
8805 if (_v == 0) PyErr_Clear();
8821 if (_v == 0) PyErr_Clear();
8826 if (_v == 0) PyErr_Clear();
8831 if (_v == 0) PyErr_Clear();
8848 if (_v == 0) PyErr_Clear();
8853 if (_v == 0) PyErr_Clear();
8858 if (_v == 0) PyErr_Clear();
8863 if (_v == 0) PyErr_Clear();
8876 " Possible C/C++ prototypes are:\n" 8877 " operations_research::Solver::SolveAndCommit(operations_research::DecisionBuilder *const,std::vector< operations_research::SearchMonitor * > const &)\n" 8878 " operations_research::Solver::SolveAndCommit(operations_research::DecisionBuilder *const)\n" 8879 " operations_research::Solver::SolveAndCommit(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const)\n" 8880 " operations_research::Solver::SolveAndCommit(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n" 8881 " operations_research::Solver::SolveAndCommit(operations_research::DecisionBuilder *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n");
8887 PyObject *resultobj = 0;
8894 PyObject * obj0 = 0 ;
8895 PyObject * obj1 = 0 ;
8898 if (!PyArg_UnpackTuple(args,
"Solver_CheckAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
8903 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8906 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_CheckAssignment" "', argument " "2"" of type '" "operations_research::Assignment *const""'");
8908 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
8911 result = (bool)(arg1)->CheckAssignment(arg2);
8925 PyObject *resultobj = 0;
8932 PyObject * obj0 = 0 ;
8933 PyObject * obj1 = 0 ;
8936 if (!PyArg_UnpackTuple(args,
"Solver_CheckConstraint", 2, 2, &obj0, &obj1))
SWIG_fail;
8941 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8944 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_CheckConstraint" "', argument " "2"" of type '" "operations_research::Constraint *const""'");
8946 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
8949 result = (bool)(arg1)->CheckConstraint(arg2);
8963 PyObject *resultobj = 0;
8967 PyObject * obj0 = 0 ;
8969 if (!PyArg_UnpackTuple(args,
"Solver_Fail", 1, 1, &obj0))
SWIG_fail;
8974 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
8989 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
9001 PyObject *resultobj = 0;
9004 if (!PyArg_UnpackTuple(args,
"Solver_MemoryUsage", 0, 0))
SWIG_fail;
9021 PyObject *resultobj = 0;
9025 PyObject * obj0 = 0 ;
9028 if (!PyArg_UnpackTuple(args,
"Solver_WallTime", 1, 1, &obj0))
SWIG_fail;
9033 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9050 PyObject *resultobj = 0;
9054 PyObject * obj0 = 0 ;
9057 if (!PyArg_UnpackTuple(args,
"Solver_Branches", 1, 1, &obj0))
SWIG_fail;
9062 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9079 PyObject *resultobj = 0;
9083 PyObject * obj0 = 0 ;
9086 if (!PyArg_UnpackTuple(args,
"Solver_Solutions", 1, 1, &obj0))
SWIG_fail;
9091 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9108 PyObject *resultobj = 0;
9112 PyObject * obj0 = 0 ;
9115 if (!PyArg_UnpackTuple(args,
"Solver_Failures", 1, 1, &obj0))
SWIG_fail;
9120 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9137 PyObject *resultobj = 0;
9141 PyObject * obj0 = 0 ;
9144 if (!PyArg_UnpackTuple(args,
"Solver_AcceptedNeighbors", 1, 1, &obj0))
SWIG_fail;
9147 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_AcceptedNeighbors" "', argument " "1"" of type '" "operations_research::Solver const *""'");
9149 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9166 PyObject *resultobj = 0;
9170 PyObject * obj0 = 0 ;
9173 if (!PyArg_UnpackTuple(args,
"Solver_Stamp", 1, 1, &obj0))
SWIG_fail;
9178 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9195 PyObject *resultobj = 0;
9199 PyObject * obj0 = 0 ;
9202 if (!PyArg_UnpackTuple(args,
"Solver_FailStamp", 1, 1, &obj0))
SWIG_fail;
9207 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9224 PyObject *resultobj = 0;
9228 std::string *arg4 = 0 ;
9236 PyObject * obj0 = 0 ;
9237 PyObject * obj1 = 0 ;
9238 PyObject * obj2 = 0 ;
9239 PyObject * obj3 = 0 ;
9242 if (!PyArg_UnpackTuple(args,
"Solver_IntVar", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
9247 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9252 arg2 = static_cast< int64_t >(val2);
9257 arg3 = static_cast< int64_t >(val3);
9259 std::string *ptr = (std::string *)0;
9287 PyObject *resultobj = 0;
9289 std::vector< int64_t > *arg2 = 0 ;
9290 std::string *arg3 = 0 ;
9293 std::vector< int64_t > temp2 ;
9295 PyObject * obj0 = 0 ;
9296 PyObject * obj1 = 0 ;
9297 PyObject * obj2 = 0 ;
9300 if (!PyArg_UnpackTuple(args,
"Solver_IntVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
9305 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9307 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
9308 if (!PyErr_Occurred())
9315 std::string *ptr = (std::string *)0;
9343 PyObject *resultobj = 0;
9345 std::vector< int > *arg2 = 0 ;
9346 std::string *arg3 = 0 ;
9349 std::vector< int > temp2 ;
9351 PyObject * obj0 = 0 ;
9352 PyObject * obj1 = 0 ;
9353 PyObject * obj2 = 0 ;
9356 if (!PyArg_UnpackTuple(args,
"Solver_IntVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
9361 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9363 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
9364 if (!PyErr_Occurred())
9371 std::string *ptr = (std::string *)0;
9399 PyObject *resultobj = 0;
9409 PyObject * obj0 = 0 ;
9410 PyObject * obj1 = 0 ;
9411 PyObject * obj2 = 0 ;
9414 if (!PyArg_UnpackTuple(args,
"Solver_IntVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
9419 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9424 arg2 = static_cast< int64_t >(val2);
9429 arg3 = static_cast< int64_t >(val3);
9446 PyObject *resultobj = 0;
9448 std::vector< int64_t > *arg2 = 0 ;
9451 std::vector< int64_t > temp2 ;
9452 PyObject * obj0 = 0 ;
9453 PyObject * obj1 = 0 ;
9456 if (!PyArg_UnpackTuple(args,
"Solver_IntVar", 2, 2, &obj0, &obj1))
SWIG_fail;
9461 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9463 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
9464 if (!PyErr_Occurred())
9486 PyObject *resultobj = 0;
9488 std::vector< int > *arg2 = 0 ;
9491 std::vector< int > temp2 ;
9492 PyObject * obj0 = 0 ;
9493 PyObject * obj1 = 0 ;
9496 if (!PyArg_UnpackTuple(args,
"Solver_IntVar", 2, 2, &obj0, &obj1))
SWIG_fail;
9501 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9503 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
9504 if (!PyErr_Occurred())
9527 PyObject *argv[5] = {
9533 argc = PyObject_Length(args);
9534 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
9535 argv[ii] = PyTuple_GET_ITEM(args,ii);
9544 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
9547 const bool is_tuple = PyTuple_Check(argv[1]);
9548 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
9550 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
9551 :PyList_GetItem(argv[1], i))) {
9569 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
9572 const bool is_tuple = PyTuple_Check(argv[1]);
9573 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
9575 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
9576 :PyList_GetItem(argv[1], i))) {
9594 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
9597 const bool is_tuple = PyTuple_Check(argv[1]);
9598 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
9600 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
9601 :PyList_GetItem(argv[1], i))) {
9623 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
9626 const bool is_tuple = PyTuple_Check(argv[1]);
9627 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
9629 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
9630 :PyList_GetItem(argv[1], i))) {
9694 " Possible C/C++ prototypes are:\n" 9695 " operations_research::Solver::MakeIntVar(int64_t,int64_t,std::string const &)\n" 9696 " operations_research::Solver::MakeIntVar(std::vector< int64_t > const &,std::string const &)\n" 9697 " operations_research::Solver::MakeIntVar(std::vector< int > const &,std::string const &)\n" 9698 " operations_research::Solver::MakeIntVar(int64_t,int64_t)\n" 9699 " operations_research::Solver::MakeIntVar(std::vector< int64_t > const &)\n" 9700 " operations_research::Solver::MakeIntVar(std::vector< int > const &)\n");
9706 PyObject *resultobj = 0;
9708 std::string *arg2 = 0 ;
9712 PyObject * obj0 = 0 ;
9713 PyObject * obj1 = 0 ;
9716 if (!PyArg_UnpackTuple(args,
"Solver_BoolVar", 2, 2, &obj0, &obj1))
SWIG_fail;
9721 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9723 std::string *ptr = (std::string *)0;
9751 PyObject *resultobj = 0;
9755 PyObject * obj0 = 0 ;
9758 if (!PyArg_UnpackTuple(args,
"Solver_BoolVar", 1, 1, &obj0))
SWIG_fail;
9763 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9781 PyObject *argv[3] = {
9787 argc = PyObject_Length(args);
9788 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
9789 argv[ii] = PyTuple_GET_ITEM(args,ii);
9816 " Possible C/C++ prototypes are:\n" 9817 " operations_research::Solver::MakeBoolVar(std::string const &)\n" 9818 " operations_research::Solver::MakeBoolVar()\n");
9824 PyObject *resultobj = 0;
9827 std::string *arg3 = 0 ;
9833 PyObject * obj0 = 0 ;
9834 PyObject * obj1 = 0 ;
9835 PyObject * obj2 = 0 ;
9838 if (!PyArg_UnpackTuple(args,
"Solver_IntConst", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
9843 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9848 arg2 = static_cast< int64_t >(val2);
9850 std::string *ptr = (std::string *)0;
9878 PyObject *resultobj = 0;
9885 PyObject * obj0 = 0 ;
9886 PyObject * obj1 = 0 ;
9889 if (!PyArg_UnpackTuple(args,
"Solver_IntConst", 2, 2, &obj0, &obj1))
SWIG_fail;
9894 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9899 arg2 = static_cast< int64_t >(val2);
9917 PyObject *argv[4] = {
9923 argc = PyObject_Length(args);
9924 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
9925 argv[ii] = PyTuple_GET_ITEM(args,ii);
9964 " Possible C/C++ prototypes are:\n" 9965 " operations_research::Solver::MakeIntConst(int64_t,std::string const &)\n" 9966 " operations_research::Solver::MakeIntConst(int64_t)\n");
9972 PyObject *resultobj = 0;
9974 std::vector< operations_research::IntVar * > *arg2 = 0 ;
9977 std::vector< operations_research::IntVar * > temp2 ;
9978 PyObject * obj0 = 0 ;
9979 PyObject * obj1 = 0 ;
9982 if (!PyArg_UnpackTuple(args,
"Solver_Sum", 2, 2, &obj0, &obj1))
SWIG_fail;
9987 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
9989 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
9990 if (!PyErr_Occurred())
10012 PyObject *resultobj = 0;
10014 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10015 std::vector< int64_t > *arg3 = 0 ;
10018 std::vector< operations_research::IntVar * > temp2 ;
10019 std::vector< int64_t > temp3 ;
10020 PyObject * obj0 = 0 ;
10021 PyObject * obj1 = 0 ;
10022 PyObject * obj2 = 0 ;
10025 if (!PyArg_UnpackTuple(args,
"Solver_ScalProd", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10030 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10032 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
10033 if (!PyErr_Occurred())
10040 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
10041 if (!PyErr_Occurred())
10049 result = (
operations_research::IntExpr *)(arg1)->MakeScalProd((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3);
10063 PyObject *resultobj = 0;
10065 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10066 std::vector< int > *arg3 = 0 ;
10069 std::vector< operations_research::IntVar * > temp2 ;
10070 std::vector< int > temp3 ;
10071 PyObject * obj0 = 0 ;
10072 PyObject * obj1 = 0 ;
10073 PyObject * obj2 = 0 ;
10076 if (!PyArg_UnpackTuple(args,
"Solver_ScalProd", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10081 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10083 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
10084 if (!PyErr_Occurred())
10091 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
10092 if (!PyErr_Occurred())
10100 result = (
operations_research::IntExpr *)(arg1)->MakeScalProd((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int >
const &)*arg3);
10115 PyObject *argv[4] = {
10121 argc = PyObject_Length(args);
10122 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
10123 argv[ii] = PyTuple_GET_ITEM(args,ii);
10132 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10135 const bool is_tuple = PyTuple_Check(argv[1]);
10136 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10139 :PyList_GetItem(argv[1], i))) {
10147 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
10150 const bool is_tuple = PyTuple_Check(argv[2]);
10151 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
10153 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
10154 :PyList_GetItem(argv[2], i))) {
10173 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10176 const bool is_tuple = PyTuple_Check(argv[1]);
10177 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10180 :PyList_GetItem(argv[1], i))) {
10188 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
10191 const bool is_tuple = PyTuple_Check(argv[2]);
10192 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
10194 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
10195 :PyList_GetItem(argv[2], i))) {
10210 " Possible C/C++ prototypes are:\n" 10211 " operations_research::Solver::MakeScalProd(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &)\n" 10212 " operations_research::Solver::MakeScalProd(std::vector< operations_research::IntVar * > const &,std::vector< int > const &)\n");
10218 PyObject *resultobj = 0;
10220 std::vector< int64_t > *arg2 = 0 ;
10224 std::vector< int64_t > temp2 ;
10225 PyObject * obj0 = 0 ;
10226 PyObject * obj1 = 0 ;
10227 PyObject * obj2 = 0 ;
10230 if (!PyArg_UnpackTuple(args,
"Solver_Element", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10235 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10237 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
10238 if (!PyErr_Occurred())
10263 PyObject *resultobj = 0;
10265 std::vector< int > *arg2 = 0 ;
10269 std::vector< int > temp2 ;
10270 PyObject * obj0 = 0 ;
10271 PyObject * obj1 = 0 ;
10272 PyObject * obj2 = 0 ;
10275 if (!PyArg_UnpackTuple(args,
"Solver_Element", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10280 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10282 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
10283 if (!PyErr_Occurred())
10308 PyObject *resultobj = 0;
10314 PyObject * obj0 = 0 ;
10315 PyObject * obj1 = 0 ;
10316 PyObject * obj2 = 0 ;
10319 if (!PyArg_UnpackTuple(args,
"Solver_Element", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10324 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10328 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
10350 PyObject *resultobj = 0;
10359 PyObject * obj0 = 0 ;
10360 PyObject * obj1 = 0 ;
10361 PyObject * obj2 = 0 ;
10362 PyObject * obj3 = 0 ;
10365 if (!PyArg_UnpackTuple(args,
"Solver_MonotonicElement", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
10370 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10374 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
10381 arg3 = static_cast< bool >(val3);
10401 PyObject *resultobj = 0;
10408 PyObject * obj0 = 0 ;
10409 PyObject * obj1 = 0 ;
10410 PyObject * obj2 = 0 ;
10411 PyObject * obj3 = 0 ;
10414 if (!PyArg_UnpackTuple(args,
"Solver_Element", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
10419 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10422 arg2 = [
input](int64_t i, int64_t j) {
10423 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
10448 PyObject *resultobj = 0;
10450 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10454 std::vector< operations_research::IntVar * > temp2 ;
10455 PyObject * obj0 = 0 ;
10456 PyObject * obj1 = 0 ;
10457 PyObject * obj2 = 0 ;
10460 if (!PyArg_UnpackTuple(args,
"Solver_Element", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10465 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10467 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
10468 if (!PyErr_Occurred())
10494 PyObject *argv[5] = {
10500 argc = PyObject_Length(args);
10501 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
10502 argv[ii] = PyTuple_GET_ITEM(args,ii);
10511 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10514 const bool is_tuple = PyTuple_Check(argv[1]);
10515 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10517 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
10518 :PyList_GetItem(argv[1], i))) {
10527 if (_v == 0) PyErr_Clear();
10542 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10545 const bool is_tuple = PyTuple_Check(argv[1]);
10546 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10548 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
10549 :PyList_GetItem(argv[1], i))) {
10558 if (_v == 0) PyErr_Clear();
10573 _v = PyCallable_Check(argv[1]);
10578 if (_v == 0) PyErr_Clear();
10593 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10596 const bool is_tuple = PyTuple_Check(argv[1]);
10597 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10600 :PyList_GetItem(argv[1], i))) {
10609 if (_v == 0) PyErr_Clear();
10624 _v = PyCallable_Check(argv[1]);
10629 if (_v == 0) PyErr_Clear();
10634 if (_v == 0) PyErr_Clear();
10646 " Possible C/C++ prototypes are:\n" 10647 " operations_research::Solver::MakeElement(std::vector< int64_t > const &,operations_research::IntVar *const)\n" 10648 " operations_research::Solver::MakeElement(std::vector< int > const &,operations_research::IntVar *const)\n" 10649 " operations_research::Solver::MakeElement(operations_research::Solver::IndexEvaluator1,operations_research::IntVar *const)\n" 10650 " operations_research::Solver::MakeElement(operations_research::Solver::IndexEvaluator2,operations_research::IntVar *const,operations_research::IntVar *const)\n" 10651 " operations_research::Solver::MakeElement(std::vector< operations_research::IntVar * > const &,operations_research::IntVar *const)\n");
10657 PyObject *resultobj = 0;
10659 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10663 std::vector< operations_research::IntVar * > temp2 ;
10666 PyObject * obj0 = 0 ;
10667 PyObject * obj1 = 0 ;
10668 PyObject * obj2 = 0 ;
10671 if (!PyArg_UnpackTuple(args,
"Solver_IndexExpression", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10676 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10678 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
10679 if (!PyErr_Occurred())
10689 arg3 = static_cast< int64_t >(val3);
10692 result = (
operations_research::IntExpr *)(arg1)->MakeIndexExpression((std::vector< operations_research::IntVar * >
const &)*arg2,arg3);
10706 PyObject *resultobj = 0;
10708 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10711 std::vector< operations_research::IntVar * > temp2 ;
10712 PyObject * obj0 = 0 ;
10713 PyObject * obj1 = 0 ;
10716 if (!PyArg_UnpackTuple(args,
"Solver_Min", 2, 2, &obj0, &obj1))
SWIG_fail;
10721 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10723 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
10724 if (!PyErr_Occurred())
10746 PyObject *resultobj = 0;
10752 PyObject * obj0 = 0 ;
10753 PyObject * obj1 = 0 ;
10754 PyObject * obj2 = 0 ;
10757 if (!PyArg_UnpackTuple(args,
"Solver_Min", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10762 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10785 PyObject *resultobj = 0;
10793 PyObject * obj0 = 0 ;
10794 PyObject * obj1 = 0 ;
10795 PyObject * obj2 = 0 ;
10798 if (!PyArg_UnpackTuple(args,
"Solver_Min", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10803 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10811 arg3 = static_cast< int64_t >(val3);
10828 PyObject *resultobj = 0;
10836 PyObject * obj0 = 0 ;
10837 PyObject * obj1 = 0 ;
10838 PyObject * obj2 = 0 ;
10841 if (!PyArg_UnpackTuple(args,
"Solver_Min", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
10846 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
10854 arg3 = static_cast< int >(val3);
10872 PyObject *argv[4] = {
10878 argc = PyObject_Length(args);
10879 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
10880 argv[ii] = PyTuple_GET_ITEM(args,ii);
10889 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
10892 const bool is_tuple = PyTuple_Check(argv[1]);
10893 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
10896 :PyList_GetItem(argv[1], i))) {
10915 if (_v == 0) PyErr_Clear();
10920 if (_v == 0) PyErr_Clear();
10936 if (_v == 0) PyErr_Clear();
10957 if (_v == 0) PyErr_Clear();
10973 " Possible C/C++ prototypes are:\n" 10974 " operations_research::Solver::MakeMin(std::vector< operations_research::IntVar * > const &)\n" 10975 " operations_research::Solver::MakeMin(operations_research::IntExpr *const,operations_research::IntExpr *const)\n" 10976 " operations_research::Solver::MakeMin(operations_research::IntExpr *const,int64_t)\n" 10977 " operations_research::Solver::MakeMin(operations_research::IntExpr *const,int)\n");
10983 PyObject *resultobj = 0;
10985 std::vector< operations_research::IntVar * > *arg2 = 0 ;
10988 std::vector< operations_research::IntVar * > temp2 ;
10989 PyObject * obj0 = 0 ;
10990 PyObject * obj1 = 0 ;
10993 if (!PyArg_UnpackTuple(args,
"Solver_Max", 2, 2, &obj0, &obj1))
SWIG_fail;
10998 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11000 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
11001 if (!PyErr_Occurred())
11023 PyObject *resultobj = 0;
11029 PyObject * obj0 = 0 ;
11030 PyObject * obj1 = 0 ;
11031 PyObject * obj2 = 0 ;
11034 if (!PyArg_UnpackTuple(args,
"Solver_Max", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
11039 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11062 PyObject *resultobj = 0;
11070 PyObject * obj0 = 0 ;
11071 PyObject * obj1 = 0 ;
11072 PyObject * obj2 = 0 ;
11075 if (!PyArg_UnpackTuple(args,
"Solver_Max", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
11080 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11088 arg3 = static_cast< int64_t >(val3);
11105 PyObject *resultobj = 0;
11113 PyObject * obj0 = 0 ;
11114 PyObject * obj1 = 0 ;
11115 PyObject * obj2 = 0 ;
11118 if (!PyArg_UnpackTuple(args,
"Solver_Max", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
11123 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11131 arg3 = static_cast< int >(val3);
11149 PyObject *argv[4] = {
11155 argc = PyObject_Length(args);
11156 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
11157 argv[ii] = PyTuple_GET_ITEM(args,ii);
11166 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
11169 const bool is_tuple = PyTuple_Check(argv[1]);
11170 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
11173 :PyList_GetItem(argv[1], i))) {
11192 if (_v == 0) PyErr_Clear();
11197 if (_v == 0) PyErr_Clear();
11213 if (_v == 0) PyErr_Clear();
11234 if (_v == 0) PyErr_Clear();
11250 " Possible C/C++ prototypes are:\n" 11251 " operations_research::Solver::MakeMax(std::vector< operations_research::IntVar * > const &)\n" 11252 " operations_research::Solver::MakeMax(operations_research::IntExpr *const,operations_research::IntExpr *const)\n" 11253 " operations_research::Solver::MakeMax(operations_research::IntExpr *const,int64_t)\n" 11254 " operations_research::Solver::MakeMax(operations_research::IntExpr *const,int)\n");
11260 PyObject *resultobj = 0;
11279 PyObject * obj0 = 0 ;
11280 PyObject * obj1 = 0 ;
11281 PyObject * obj2 = 0 ;
11282 PyObject * obj3 = 0 ;
11283 PyObject * obj4 = 0 ;
11284 PyObject * obj5 = 0 ;
11287 if (!PyArg_UnpackTuple(args,
"Solver_ConvexPiecewiseExpr", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
11292 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11297 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
11302 arg3 = static_cast< int64_t >(val3);
11307 arg4 = static_cast< int64_t >(val4);
11312 arg5 = static_cast< int64_t >(val5);
11317 arg6 = static_cast< int64_t >(val6);
11334 PyObject *resultobj = 0;
11345 PyObject * obj0 = 0 ;
11346 PyObject * obj1 = 0 ;
11347 PyObject * obj2 = 0 ;
11348 PyObject * obj3 = 0 ;
11351 if (!PyArg_UnpackTuple(args,
"Solver_SemiContinuousExpr", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
11356 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11364 arg3 = static_cast< int64_t >(val3);
11369 arg4 = static_cast< int64_t >(val4);
11386 PyObject *resultobj = 0;
11395 PyObject * obj0 = 0 ;
11396 PyObject * obj1 = 0 ;
11397 PyObject * obj2 = 0 ;
11398 PyObject * obj3 = 0 ;
11401 if (!PyArg_UnpackTuple(args,
"Solver_ConditionalExpression", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
11406 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11417 arg4 = static_cast< int64_t >(val4);
11434 PyObject *resultobj = 0;
11438 PyObject * obj0 = 0 ;
11441 if (!PyArg_UnpackTuple(args,
"Solver_TrueConstraint", 1, 1, &obj0))
SWIG_fail;
11446 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11463 PyObject *resultobj = 0;
11467 PyObject * obj0 = 0 ;
11470 if (!PyArg_UnpackTuple(args,
"Solver_FalseConstraint", 1, 1, &obj0))
SWIG_fail;
11475 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11492 PyObject *resultobj = 0;
11494 std::string *arg2 = 0 ;
11498 PyObject * obj0 = 0 ;
11499 PyObject * obj1 = 0 ;
11502 if (!PyArg_UnpackTuple(args,
"Solver_FalseConstraint", 2, 2, &obj0, &obj1))
SWIG_fail;
11507 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11509 std::string *ptr = (std::string *)0;
11538 PyObject *argv[3] = {
11544 argc = PyObject_Length(args);
11545 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
11546 argv[ii] = PyTuple_GET_ITEM(args,ii);
11573 " Possible C/C++ prototypes are:\n" 11574 " operations_research::Solver::MakeFalseConstraint()\n" 11575 " operations_research::Solver::MakeFalseConstraint(std::string const &)\n");
11581 PyObject *resultobj = 0;
11590 PyObject * obj0 = 0 ;
11591 PyObject * obj1 = 0 ;
11592 PyObject * obj2 = 0 ;
11593 PyObject * obj3 = 0 ;
11596 if (!PyArg_UnpackTuple(args,
"Solver_IsEqualCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
11601 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11609 arg3 = static_cast< int64_t >(val3);
11629 PyObject *resultobj = 0;
11637 PyObject * obj0 = 0 ;
11638 PyObject * obj1 = 0 ;
11639 PyObject * obj2 = 0 ;
11642 if (!PyArg_UnpackTuple(args,
"Solver_IsEqualCstVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
11647 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11655 arg3 = static_cast< int64_t >(val3);
11672 PyObject *resultobj = 0;
11681 PyObject * obj0 = 0 ;
11682 PyObject * obj1 = 0 ;
11683 PyObject * obj2 = 0 ;
11684 PyObject * obj3 = 0 ;
11687 if (!PyArg_UnpackTuple(args,
"Solver_IsEqualCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
11692 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11700 arg3 = reinterpret_cast< operations_research::IntExpr * >(argp3);
11720 PyObject *resultobj = 0;
11728 PyObject * obj0 = 0 ;
11729 PyObject * obj1 = 0 ;
11730 PyObject * obj2 = 0 ;
11733 if (!PyArg_UnpackTuple(args,
"Solver_IsEqualVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
11738 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11746 arg3 = reinterpret_cast< operations_research::IntExpr * >(argp3);
11763 PyObject *resultobj = 0;
11772 PyObject * obj0 = 0 ;
11773 PyObject * obj1 = 0 ;
11774 PyObject * obj2 = 0 ;
11775 PyObject * obj3 = 0 ;
11778 if (!PyArg_UnpackTuple(args,
"Solver_IsDifferentCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
11783 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11791 arg3 = static_cast< int64_t >(val3);
11811 PyObject *resultobj = 0;
11819 PyObject * obj0 = 0 ;
11820 PyObject * obj1 = 0 ;
11821 PyObject * obj2 = 0 ;
11824 if (!PyArg_UnpackTuple(args,
"Solver_IsDifferentCstVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
11829 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11837 arg3 = static_cast< int64_t >(val3);
11854 PyObject *resultobj = 0;
11860 PyObject * obj0 = 0 ;
11861 PyObject * obj1 = 0 ;
11862 PyObject * obj2 = 0 ;
11865 if (!PyArg_UnpackTuple(args,
"Solver_IsDifferentVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
11870 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11893 PyObject *resultobj = 0;
11900 PyObject * obj0 = 0 ;
11901 PyObject * obj1 = 0 ;
11902 PyObject * obj2 = 0 ;
11903 PyObject * obj3 = 0 ;
11906 if (!PyArg_UnpackTuple(args,
"Solver_IsDifferentCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
11911 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11937 PyObject *resultobj = 0;
11946 PyObject * obj0 = 0 ;
11947 PyObject * obj1 = 0 ;
11948 PyObject * obj2 = 0 ;
11949 PyObject * obj3 = 0 ;
11952 if (!PyArg_UnpackTuple(args,
"Solver_IsLessOrEqualCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
11957 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
11965 arg3 = static_cast< int64_t >(val3);
11985 PyObject *resultobj = 0;
11993 PyObject * obj0 = 0 ;
11994 PyObject * obj1 = 0 ;
11995 PyObject * obj2 = 0 ;
11998 if (!PyArg_UnpackTuple(args,
"Solver_IsLessOrEqualCstVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12003 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12011 arg3 = static_cast< int64_t >(val3);
12028 PyObject *resultobj = 0;
12034 PyObject * obj0 = 0 ;
12035 PyObject * obj1 = 0 ;
12036 PyObject * obj2 = 0 ;
12039 if (!PyArg_UnpackTuple(args,
"Solver_IsLessOrEqualVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12044 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12067 PyObject *resultobj = 0;
12074 PyObject * obj0 = 0 ;
12075 PyObject * obj1 = 0 ;
12076 PyObject * obj2 = 0 ;
12077 PyObject * obj3 = 0 ;
12080 if (!PyArg_UnpackTuple(args,
"Solver_IsLessOrEqualCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
12085 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12111 PyObject *resultobj = 0;
12120 PyObject * obj0 = 0 ;
12121 PyObject * obj1 = 0 ;
12122 PyObject * obj2 = 0 ;
12123 PyObject * obj3 = 0 ;
12126 if (!PyArg_UnpackTuple(args,
"Solver_IsGreaterOrEqualCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
12131 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12139 arg3 = static_cast< int64_t >(val3);
12159 PyObject *resultobj = 0;
12167 PyObject * obj0 = 0 ;
12168 PyObject * obj1 = 0 ;
12169 PyObject * obj2 = 0 ;
12172 if (!PyArg_UnpackTuple(args,
"Solver_IsGreaterOrEqualCstVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12175 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_IsGreaterOrEqualCstVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
12177 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12185 arg3 = static_cast< int64_t >(val3);
12202 PyObject *resultobj = 0;
12208 PyObject * obj0 = 0 ;
12209 PyObject * obj1 = 0 ;
12210 PyObject * obj2 = 0 ;
12213 if (!PyArg_UnpackTuple(args,
"Solver_IsGreaterOrEqualVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12218 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12241 PyObject *resultobj = 0;
12248 PyObject * obj0 = 0 ;
12249 PyObject * obj1 = 0 ;
12250 PyObject * obj2 = 0 ;
12251 PyObject * obj3 = 0 ;
12254 if (!PyArg_UnpackTuple(args,
"Solver_IsGreaterOrEqualCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
12259 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12285 PyObject *resultobj = 0;
12294 PyObject * obj0 = 0 ;
12295 PyObject * obj1 = 0 ;
12296 PyObject * obj2 = 0 ;
12297 PyObject * obj3 = 0 ;
12300 if (!PyArg_UnpackTuple(args,
"Solver_IsGreaterCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
12305 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12313 arg3 = static_cast< int64_t >(val3);
12333 PyObject *resultobj = 0;
12341 PyObject * obj0 = 0 ;
12342 PyObject * obj1 = 0 ;
12343 PyObject * obj2 = 0 ;
12346 if (!PyArg_UnpackTuple(args,
"Solver_IsGreaterCstVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12351 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12359 arg3 = static_cast< int64_t >(val3);
12376 PyObject *resultobj = 0;
12382 PyObject * obj0 = 0 ;
12383 PyObject * obj1 = 0 ;
12384 PyObject * obj2 = 0 ;
12387 if (!PyArg_UnpackTuple(args,
"Solver_IsGreaterVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12392 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12415 PyObject *resultobj = 0;
12422 PyObject * obj0 = 0 ;
12423 PyObject * obj1 = 0 ;
12424 PyObject * obj2 = 0 ;
12425 PyObject * obj3 = 0 ;
12428 if (!PyArg_UnpackTuple(args,
"Solver_IsGreaterCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
12433 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12459 PyObject *resultobj = 0;
12468 PyObject * obj0 = 0 ;
12469 PyObject * obj1 = 0 ;
12470 PyObject * obj2 = 0 ;
12471 PyObject * obj3 = 0 ;
12474 if (!PyArg_UnpackTuple(args,
"Solver_IsLessCstCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
12479 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12487 arg3 = static_cast< int64_t >(val3);
12507 PyObject *resultobj = 0;
12515 PyObject * obj0 = 0 ;
12516 PyObject * obj1 = 0 ;
12517 PyObject * obj2 = 0 ;
12520 if (!PyArg_UnpackTuple(args,
"Solver_IsLessCstVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12525 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12533 arg3 = static_cast< int64_t >(val3);
12550 PyObject *resultobj = 0;
12556 PyObject * obj0 = 0 ;
12557 PyObject * obj1 = 0 ;
12558 PyObject * obj2 = 0 ;
12561 if (!PyArg_UnpackTuple(args,
"Solver_IsLessVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12566 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12589 PyObject *resultobj = 0;
12596 PyObject * obj0 = 0 ;
12597 PyObject * obj1 = 0 ;
12598 PyObject * obj2 = 0 ;
12599 PyObject * obj3 = 0 ;
12602 if (!PyArg_UnpackTuple(args,
"Solver_IsLessCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
12607 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12633 PyObject *resultobj = 0;
12635 std::vector< operations_research::IntVar * > *arg2 = 0 ;
12639 std::vector< operations_research::IntVar * > temp2 ;
12642 PyObject * obj0 = 0 ;
12643 PyObject * obj1 = 0 ;
12644 PyObject * obj2 = 0 ;
12647 if (!PyArg_UnpackTuple(args,
"Solver_SumLessOrEqual", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12652 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12654 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
12655 if (!PyErr_Occurred())
12665 arg3 = static_cast< int64_t >(val3);
12682 PyObject *resultobj = 0;
12684 std::vector< operations_research::IntVar * > *arg2 = 0 ;
12688 std::vector< operations_research::IntVar * > temp2 ;
12691 PyObject * obj0 = 0 ;
12692 PyObject * obj1 = 0 ;
12693 PyObject * obj2 = 0 ;
12696 if (!PyArg_UnpackTuple(args,
"Solver_SumGreaterOrEqual", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12701 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12703 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
12704 if (!PyErr_Occurred())
12714 arg3 = static_cast< int64_t >(val3);
12731 PyObject *resultobj = 0;
12733 std::vector< operations_research::IntVar * > *arg2 = 0 ;
12737 std::vector< operations_research::IntVar * > temp2 ;
12740 PyObject * obj0 = 0 ;
12741 PyObject * obj1 = 0 ;
12742 PyObject * obj2 = 0 ;
12745 if (!PyArg_UnpackTuple(args,
"Solver_SumEquality", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12750 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12752 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
12753 if (!PyErr_Occurred())
12763 arg3 = static_cast< int64_t >(val3);
12780 PyObject *resultobj = 0;
12782 std::vector< operations_research::IntVar * > *arg2 = 0 ;
12786 std::vector< operations_research::IntVar * > temp2 ;
12787 PyObject * obj0 = 0 ;
12788 PyObject * obj1 = 0 ;
12789 PyObject * obj2 = 0 ;
12792 if (!PyArg_UnpackTuple(args,
"Solver_SumEquality", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
12797 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12799 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
12800 if (!PyErr_Occurred())
12826 PyObject *argv[4] = {
12832 argc = PyObject_Length(args);
12833 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
12834 argv[ii] = PyTuple_GET_ITEM(args,ii);
12843 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
12846 const bool is_tuple = PyTuple_Check(argv[1]);
12847 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
12850 :PyList_GetItem(argv[1], i))) {
12859 if (_v == 0) PyErr_Clear();
12874 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
12877 const bool is_tuple = PyTuple_Check(argv[1]);
12878 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
12881 :PyList_GetItem(argv[1], i))) {
12901 " Possible C/C++ prototypes are:\n" 12902 " operations_research::Solver::MakeSumEquality(std::vector< operations_research::IntVar * > const &,int64_t)\n" 12903 " operations_research::Solver::MakeSumEquality(std::vector< operations_research::IntVar * > const &,operations_research::IntVar *const)\n");
12909 PyObject *resultobj = 0;
12911 std::vector< operations_research::IntVar * > *arg2 = 0 ;
12912 std::vector< int64_t > *arg3 = 0 ;
12916 std::vector< operations_research::IntVar * > temp2 ;
12917 std::vector< int64_t > temp3 ;
12920 PyObject * obj0 = 0 ;
12921 PyObject * obj1 = 0 ;
12922 PyObject * obj2 = 0 ;
12923 PyObject * obj3 = 0 ;
12926 if (!PyArg_UnpackTuple(args,
"Solver_ScalProdEquality", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
12931 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12933 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
12934 if (!PyErr_Occurred())
12941 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
12942 if (!PyErr_Occurred())
12952 arg4 = static_cast< int64_t >(val4);
12955 result = (
operations_research::Constraint *)(arg1)->MakeScalProdEquality((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3,arg4);
12969 PyObject *resultobj = 0;
12971 std::vector< operations_research::IntVar * > *arg2 = 0 ;
12972 std::vector< int > *arg3 = 0 ;
12976 std::vector< operations_research::IntVar * > temp2 ;
12977 std::vector< int > temp3 ;
12980 PyObject * obj0 = 0 ;
12981 PyObject * obj1 = 0 ;
12982 PyObject * obj2 = 0 ;
12983 PyObject * obj3 = 0 ;
12986 if (!PyArg_UnpackTuple(args,
"Solver_ScalProdEquality", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
12991 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
12993 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
12994 if (!PyErr_Occurred())
13001 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
13002 if (!PyErr_Occurred())
13012 arg4 = static_cast< int64_t >(val4);
13015 result = (
operations_research::Constraint *)(arg1)->MakeScalProdEquality((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,arg4);
13029 PyObject *resultobj = 0;
13031 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13032 std::vector< int64_t > *arg3 = 0 ;
13036 std::vector< operations_research::IntVar * > temp2 ;
13037 std::vector< int64_t > temp3 ;
13038 PyObject * obj0 = 0 ;
13039 PyObject * obj1 = 0 ;
13040 PyObject * obj2 = 0 ;
13041 PyObject * obj3 = 0 ;
13044 if (!PyArg_UnpackTuple(args,
"Solver_ScalProdEquality", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
13049 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13051 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13052 if (!PyErr_Occurred())
13059 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
13060 if (!PyErr_Occurred())
13071 result = (
operations_research::Constraint *)(arg1)->MakeScalProdEquality((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3,arg4);
13085 PyObject *resultobj = 0;
13087 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13088 std::vector< int > *arg3 = 0 ;
13092 std::vector< operations_research::IntVar * > temp2 ;
13093 std::vector< int > temp3 ;
13094 PyObject * obj0 = 0 ;
13095 PyObject * obj1 = 0 ;
13096 PyObject * obj2 = 0 ;
13097 PyObject * obj3 = 0 ;
13100 if (!PyArg_UnpackTuple(args,
"Solver_ScalProdEquality", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
13105 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13107 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13108 if (!PyErr_Occurred())
13115 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
13116 if (!PyErr_Occurred())
13127 result = (
operations_research::Constraint *)(arg1)->MakeScalProdEquality((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,arg4);
13142 PyObject *argv[5] = {
13148 argc = PyObject_Length(args);
13149 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
13150 argv[ii] = PyTuple_GET_ITEM(args,ii);
13159 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13162 const bool is_tuple = PyTuple_Check(argv[1]);
13163 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13166 :PyList_GetItem(argv[1], i))) {
13174 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13177 const bool is_tuple = PyTuple_Check(argv[2]);
13178 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13180 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13181 :PyList_GetItem(argv[2], i))) {
13190 if (_v == 0) PyErr_Clear();
13206 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13209 const bool is_tuple = PyTuple_Check(argv[1]);
13210 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13213 :PyList_GetItem(argv[1], i))) {
13221 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13224 const bool is_tuple = PyTuple_Check(argv[2]);
13225 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13227 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13228 :PyList_GetItem(argv[2], i))) {
13237 if (_v == 0) PyErr_Clear();
13253 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13256 const bool is_tuple = PyTuple_Check(argv[1]);
13257 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13260 :PyList_GetItem(argv[1], i))) {
13268 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13271 const bool is_tuple = PyTuple_Check(argv[2]);
13272 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13274 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13275 :PyList_GetItem(argv[2], i))) {
13300 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13303 const bool is_tuple = PyTuple_Check(argv[1]);
13304 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13307 :PyList_GetItem(argv[1], i))) {
13315 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13318 const bool is_tuple = PyTuple_Check(argv[2]);
13319 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13321 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13322 :PyList_GetItem(argv[2], i))) {
13343 " Possible C/C++ prototypes are:\n" 13344 " operations_research::Solver::MakeScalProdEquality(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,int64_t)\n" 13345 " operations_research::Solver::MakeScalProdEquality(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,int64_t)\n" 13346 " operations_research::Solver::MakeScalProdEquality(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,operations_research::IntVar *const)\n" 13347 " operations_research::Solver::MakeScalProdEquality(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,operations_research::IntVar *const)\n");
13353 PyObject *resultobj = 0;
13355 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13356 std::vector< int64_t > *arg3 = 0 ;
13360 std::vector< operations_research::IntVar * > temp2 ;
13361 std::vector< int64_t > temp3 ;
13364 PyObject * obj0 = 0 ;
13365 PyObject * obj1 = 0 ;
13366 PyObject * obj2 = 0 ;
13367 PyObject * obj3 = 0 ;
13370 if (!PyArg_UnpackTuple(args,
"Solver_ScalProdGreaterOrEqual", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
13373 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_ScalProdGreaterOrEqual" "', argument " "1"" of type '" "operations_research::Solver *""'");
13375 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13377 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13378 if (!PyErr_Occurred())
13385 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
13386 if (!PyErr_Occurred())
13396 arg4 = static_cast< int64_t >(val4);
13399 result = (
operations_research::Constraint *)(arg1)->MakeScalProdGreaterOrEqual((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3,arg4);
13413 PyObject *resultobj = 0;
13415 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13416 std::vector< int > *arg3 = 0 ;
13420 std::vector< operations_research::IntVar * > temp2 ;
13421 std::vector< int > temp3 ;
13424 PyObject * obj0 = 0 ;
13425 PyObject * obj1 = 0 ;
13426 PyObject * obj2 = 0 ;
13427 PyObject * obj3 = 0 ;
13430 if (!PyArg_UnpackTuple(args,
"Solver_ScalProdGreaterOrEqual", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
13433 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_ScalProdGreaterOrEqual" "', argument " "1"" of type '" "operations_research::Solver *""'");
13435 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13437 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13438 if (!PyErr_Occurred())
13445 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
13446 if (!PyErr_Occurred())
13456 arg4 = static_cast< int64_t >(val4);
13459 result = (
operations_research::Constraint *)(arg1)->MakeScalProdGreaterOrEqual((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,arg4);
13474 PyObject *argv[5] = {
13480 argc = PyObject_Length(args);
13481 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
13482 argv[ii] = PyTuple_GET_ITEM(args,ii);
13491 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13494 const bool is_tuple = PyTuple_Check(argv[1]);
13495 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13498 :PyList_GetItem(argv[1], i))) {
13506 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13509 const bool is_tuple = PyTuple_Check(argv[2]);
13510 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13512 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13513 :PyList_GetItem(argv[2], i))) {
13538 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13541 const bool is_tuple = PyTuple_Check(argv[1]);
13542 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13545 :PyList_GetItem(argv[1], i))) {
13553 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13556 const bool is_tuple = PyTuple_Check(argv[2]);
13557 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13559 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13560 :PyList_GetItem(argv[2], i))) {
13581 " Possible C/C++ prototypes are:\n" 13582 " operations_research::Solver::MakeScalProdGreaterOrEqual(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,int64_t)\n" 13583 " operations_research::Solver::MakeScalProdGreaterOrEqual(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,int64_t)\n");
13589 PyObject *resultobj = 0;
13591 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13592 std::vector< int64_t > *arg3 = 0 ;
13596 std::vector< operations_research::IntVar * > temp2 ;
13597 std::vector< int64_t > temp3 ;
13600 PyObject * obj0 = 0 ;
13601 PyObject * obj1 = 0 ;
13602 PyObject * obj2 = 0 ;
13603 PyObject * obj3 = 0 ;
13606 if (!PyArg_UnpackTuple(args,
"Solver_ScalProdLessOrEqual", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
13611 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13613 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13614 if (!PyErr_Occurred())
13621 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
13622 if (!PyErr_Occurred())
13632 arg4 = static_cast< int64_t >(val4);
13635 result = (
operations_research::Constraint *)(arg1)->MakeScalProdLessOrEqual((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3,arg4);
13649 PyObject *resultobj = 0;
13651 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13652 std::vector< int > *arg3 = 0 ;
13656 std::vector< operations_research::IntVar * > temp2 ;
13657 std::vector< int > temp3 ;
13660 PyObject * obj0 = 0 ;
13661 PyObject * obj1 = 0 ;
13662 PyObject * obj2 = 0 ;
13663 PyObject * obj3 = 0 ;
13666 if (!PyArg_UnpackTuple(args,
"Solver_ScalProdLessOrEqual", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
13671 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13673 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13674 if (!PyErr_Occurred())
13681 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
13682 if (!PyErr_Occurred())
13692 arg4 = static_cast< int64_t >(val4);
13695 result = (
operations_research::Constraint *)(arg1)->MakeScalProdLessOrEqual((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,arg4);
13710 PyObject *argv[5] = {
13716 argc = PyObject_Length(args);
13717 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
13718 argv[ii] = PyTuple_GET_ITEM(args,ii);
13727 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13730 const bool is_tuple = PyTuple_Check(argv[1]);
13731 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13734 :PyList_GetItem(argv[1], i))) {
13742 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13745 const bool is_tuple = PyTuple_Check(argv[2]);
13746 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13748 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13749 :PyList_GetItem(argv[2], i))) {
13774 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
13777 const bool is_tuple = PyTuple_Check(argv[1]);
13778 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
13781 :PyList_GetItem(argv[1], i))) {
13789 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
13792 const bool is_tuple = PyTuple_Check(argv[2]);
13793 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
13795 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
13796 :PyList_GetItem(argv[2], i))) {
13817 " Possible C/C++ prototypes are:\n" 13818 " operations_research::Solver::MakeScalProdLessOrEqual(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,int64_t)\n" 13819 " operations_research::Solver::MakeScalProdLessOrEqual(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,int64_t)\n");
13825 PyObject *resultobj = 0;
13827 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13831 std::vector< operations_research::IntVar * > temp2 ;
13832 PyObject * obj0 = 0 ;
13833 PyObject * obj1 = 0 ;
13834 PyObject * obj2 = 0 ;
13837 if (!PyArg_UnpackTuple(args,
"Solver_MinEquality", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
13842 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13844 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13845 if (!PyErr_Occurred())
13870 PyObject *resultobj = 0;
13872 std::vector< operations_research::IntVar * > *arg2 = 0 ;
13876 std::vector< operations_research::IntVar * > temp2 ;
13877 PyObject * obj0 = 0 ;
13878 PyObject * obj1 = 0 ;
13879 PyObject * obj2 = 0 ;
13882 if (!PyArg_UnpackTuple(args,
"Solver_MaxEquality", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
13887 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13889 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
13890 if (!PyErr_Occurred())
13915 PyObject *resultobj = 0;
13917 std::vector< int64_t > *arg2 = 0 ;
13922 std::vector< int64_t > temp2 ;
13923 PyObject * obj0 = 0 ;
13924 PyObject * obj1 = 0 ;
13925 PyObject * obj2 = 0 ;
13926 PyObject * obj3 = 0 ;
13929 if (!PyArg_UnpackTuple(args,
"Solver_ElementEquality", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
13934 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13936 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
13937 if (!PyErr_Occurred())
13965 PyObject *resultobj = 0;
13967 std::vector< int > *arg2 = 0 ;
13972 std::vector< int > temp2 ;
13973 PyObject * obj0 = 0 ;
13974 PyObject * obj1 = 0 ;
13975 PyObject * obj2 = 0 ;
13976 PyObject * obj3 = 0 ;
13979 if (!PyArg_UnpackTuple(args,
"Solver_ElementEquality", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
13984 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
13986 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
13987 if (!PyErr_Occurred())
14015 PyObject *resultobj = 0;
14017 std::vector< operations_research::IntVar * > *arg2 = 0 ;
14022 std::vector< operations_research::IntVar * > temp2 ;
14023 PyObject * obj0 = 0 ;
14024 PyObject * obj1 = 0 ;
14025 PyObject * obj2 = 0 ;
14026 PyObject * obj3 = 0 ;
14029 if (!PyArg_UnpackTuple(args,
"Solver_ElementEquality", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
14034 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14036 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
14037 if (!PyErr_Occurred())
14065 PyObject *resultobj = 0;
14067 std::vector< operations_research::IntVar * > *arg2 = 0 ;
14072 std::vector< operations_research::IntVar * > temp2 ;
14075 PyObject * obj0 = 0 ;
14076 PyObject * obj1 = 0 ;
14077 PyObject * obj2 = 0 ;
14078 PyObject * obj3 = 0 ;
14081 if (!PyArg_UnpackTuple(args,
"Solver_ElementEquality", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
14086 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14088 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
14089 if (!PyErr_Occurred())
14102 arg4 = static_cast< int64_t >(val4);
14120 PyObject *argv[5] = {
14126 argc = PyObject_Length(args);
14127 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
14128 argv[ii] = PyTuple_GET_ITEM(args,ii);
14137 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
14140 const bool is_tuple = PyTuple_Check(argv[1]);
14141 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
14143 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
14144 :PyList_GetItem(argv[1], i))) {
14153 if (_v == 0) PyErr_Clear();
14158 if (_v == 0) PyErr_Clear();
14174 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
14177 const bool is_tuple = PyTuple_Check(argv[1]);
14178 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
14180 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
14181 :PyList_GetItem(argv[1], i))) {
14190 if (_v == 0) PyErr_Clear();
14195 if (_v == 0) PyErr_Clear();
14211 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
14214 const bool is_tuple = PyTuple_Check(argv[1]);
14215 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
14218 :PyList_GetItem(argv[1], i))) {
14227 if (_v == 0) PyErr_Clear();
14232 if (_v == 0) PyErr_Clear();
14248 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
14251 const bool is_tuple = PyTuple_Check(argv[1]);
14252 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
14255 :PyList_GetItem(argv[1], i))) {
14264 if (_v == 0) PyErr_Clear();
14281 " Possible C/C++ prototypes are:\n" 14282 " operations_research::Solver::MakeElementEquality(std::vector< int64_t > const &,operations_research::IntVar *const,operations_research::IntVar *const)\n" 14283 " operations_research::Solver::MakeElementEquality(std::vector< int > const &,operations_research::IntVar *const,operations_research::IntVar *const)\n" 14284 " operations_research::Solver::MakeElementEquality(std::vector< operations_research::IntVar * > const &,operations_research::IntVar *const,operations_research::IntVar *const)\n" 14285 " operations_research::Solver::MakeElementEquality(std::vector< operations_research::IntVar * > const &,operations_research::IntVar *const,int64_t)\n");
14291 PyObject *resultobj = 0;
14297 PyObject * obj0 = 0 ;
14298 PyObject * obj1 = 0 ;
14299 PyObject * obj2 = 0 ;
14302 if (!PyArg_UnpackTuple(args,
"Solver_AbsEquality", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
14307 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14330 PyObject *resultobj = 0;
14332 std::vector< operations_research::IntVar * > *arg2 = 0 ;
14337 std::vector< operations_research::IntVar * > temp2 ;
14340 PyObject * obj0 = 0 ;
14341 PyObject * obj1 = 0 ;
14342 PyObject * obj2 = 0 ;
14343 PyObject * obj3 = 0 ;
14346 if (!PyArg_UnpackTuple(args,
"Solver_IndexOfConstraint", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
14351 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14353 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
14354 if (!PyErr_Occurred())
14367 arg4 = static_cast< int64_t >(val4);
14384 PyObject *resultobj = 0;
14391 PyObject * obj0 = 0 ;
14392 PyObject * obj1 = 0 ;
14395 if (!PyArg_UnpackTuple(args,
"Solver_ConstraintInitialPropagateCallback", 2, 2, &obj0, &obj1))
SWIG_fail;
14398 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_ConstraintInitialPropagateCallback" "', argument " "1"" of type '" "operations_research::Solver *""'");
14400 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14403 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_ConstraintInitialPropagateCallback" "', argument " "2"" of type '" "operations_research::Constraint *const""'");
14405 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
14422 PyObject *resultobj = 0;
14429 PyObject * obj0 = 0 ;
14430 PyObject * obj1 = 0 ;
14433 if (!PyArg_UnpackTuple(args,
"Solver_DelayedConstraintInitialPropagateCallback", 2, 2, &obj0, &obj1))
SWIG_fail;
14436 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_DelayedConstraintInitialPropagateCallback" "', argument " "1"" of type '" "operations_research::Solver *""'");
14438 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14441 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_DelayedConstraintInitialPropagateCallback" "', argument " "2"" of type '" "operations_research::Constraint *const""'");
14443 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
14460 PyObject *resultobj = 0;
14465 PyObject * obj0 = 0 ;
14466 PyObject * obj1 = 0 ;
14469 if (!PyArg_UnpackTuple(args,
"Solver_ClosureDemon", 2, 2, &obj0, &obj1))
SWIG_fail;
14474 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14478 return InvokePythonCallableReturning<void>(
input.get());
14497 PyObject *resultobj = 0;
14508 PyObject * obj0 = 0 ;
14509 PyObject * obj1 = 0 ;
14510 PyObject * obj2 = 0 ;
14511 PyObject * obj3 = 0 ;
14514 if (!PyArg_UnpackTuple(args,
"Solver_BetweenCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
14519 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14527 arg3 = static_cast< int64_t >(val3);
14532 arg4 = static_cast< int64_t >(val4);
14549 PyObject *resultobj = 0;
14561 PyObject * obj0 = 0 ;
14562 PyObject * obj1 = 0 ;
14563 PyObject * obj2 = 0 ;
14564 PyObject * obj3 = 0 ;
14565 PyObject * obj4 = 0 ;
14568 if (!PyArg_UnpackTuple(args,
"Solver_IsBetweenCt", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
14573 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14581 arg3 = static_cast< int64_t >(val3);
14586 arg4 = static_cast< int64_t >(val4);
14606 PyObject *resultobj = 0;
14617 PyObject * obj0 = 0 ;
14618 PyObject * obj1 = 0 ;
14619 PyObject * obj2 = 0 ;
14620 PyObject * obj3 = 0 ;
14623 if (!PyArg_UnpackTuple(args,
"Solver_IsBetweenVar", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
14628 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14636 arg3 = static_cast< int64_t >(val3);
14641 arg4 = static_cast< int64_t >(val4);
14658 PyObject *resultobj = 0;
14661 std::vector< int64_t > *arg3 = 0 ;
14664 std::vector< int64_t > temp3 ;
14665 PyObject * obj0 = 0 ;
14666 PyObject * obj1 = 0 ;
14667 PyObject * obj2 = 0 ;
14670 if (!PyArg_UnpackTuple(args,
"Solver_MemberCt", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
14675 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14680 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
14681 if (!PyErr_Occurred())
14703 PyObject *resultobj = 0;
14706 std::vector< int > *arg3 = 0 ;
14709 std::vector< int > temp3 ;
14710 PyObject * obj0 = 0 ;
14711 PyObject * obj1 = 0 ;
14712 PyObject * obj2 = 0 ;
14715 if (!PyArg_UnpackTuple(args,
"Solver_MemberCt", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
14720 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14725 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
14726 if (!PyErr_Occurred())
14749 PyObject *argv[4] = {
14755 argc = PyObject_Length(args);
14756 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
14757 argv[ii] = PyTuple_GET_ITEM(args,ii);
14767 if (_v == 0) PyErr_Clear();
14771 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
14774 const bool is_tuple = PyTuple_Check(argv[2]);
14775 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
14777 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
14778 :PyList_GetItem(argv[2], i))) {
14798 if (_v == 0) PyErr_Clear();
14802 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
14805 const bool is_tuple = PyTuple_Check(argv[2]);
14806 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
14808 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
14809 :PyList_GetItem(argv[2], i))) {
14824 " Possible C/C++ prototypes are:\n" 14825 " operations_research::Solver::MakeMemberCt(operations_research::IntExpr *const,std::vector< int64_t > const &)\n" 14826 " operations_research::Solver::MakeMemberCt(operations_research::IntExpr *const,std::vector< int > const &)\n");
14832 PyObject *resultobj = 0;
14835 std::vector< int64_t > *arg3 = 0 ;
14838 std::vector< int64_t > temp3 ;
14839 PyObject * obj0 = 0 ;
14840 PyObject * obj1 = 0 ;
14841 PyObject * obj2 = 0 ;
14844 if (!PyArg_UnpackTuple(args,
"Solver_NotMemberCt", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
14849 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14854 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
14855 if (!PyErr_Occurred())
14877 PyObject *resultobj = 0;
14880 std::vector< int > *arg3 = 0 ;
14883 std::vector< int > temp3 ;
14884 PyObject * obj0 = 0 ;
14885 PyObject * obj1 = 0 ;
14886 PyObject * obj2 = 0 ;
14889 if (!PyArg_UnpackTuple(args,
"Solver_NotMemberCt", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
14894 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14899 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
14900 if (!PyErr_Occurred())
14922 PyObject *resultobj = 0;
14925 std::vector< int64_t > arg3 ;
14926 std::vector< int64_t > arg4 ;
14929 std::vector< int64_t > temp3 ;
14930 std::vector< int64_t > temp4 ;
14931 PyObject * obj0 = 0 ;
14932 PyObject * obj1 = 0 ;
14933 PyObject * obj2 = 0 ;
14934 PyObject * obj3 = 0 ;
14937 if (!PyArg_UnpackTuple(args,
"Solver_NotMemberCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
14942 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
14947 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
14948 if (!PyErr_Occurred())
14952 arg3 = std::move(temp3);
14955 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
14956 if (!PyErr_Occurred())
14960 arg4 = std::move(temp4);
14978 PyObject *resultobj = 0;
14981 std::vector< int > arg3 ;
14982 std::vector< int > arg4 ;
14985 std::vector< int > temp3 ;
14986 std::vector< int > temp4 ;
14987 PyObject * obj0 = 0 ;
14988 PyObject * obj1 = 0 ;
14989 PyObject * obj2 = 0 ;
14990 PyObject * obj3 = 0 ;
14993 if (!PyArg_UnpackTuple(args,
"Solver_NotMemberCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
14998 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15003 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
15004 if (!PyErr_Occurred())
15008 arg3 = std::move(temp3);
15011 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
15012 if (!PyErr_Occurred())
15016 arg4 = std::move(temp4);
15035 PyObject *argv[5] = {
15041 argc = PyObject_Length(args);
15042 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
15043 argv[ii] = PyTuple_GET_ITEM(args,ii);
15053 if (_v == 0) PyErr_Clear();
15057 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15060 const bool is_tuple = PyTuple_Check(argv[2]);
15061 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15063 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15064 :PyList_GetItem(argv[2], i))) {
15084 if (_v == 0) PyErr_Clear();
15088 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15091 const bool is_tuple = PyTuple_Check(argv[2]);
15092 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15094 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15095 :PyList_GetItem(argv[2], i))) {
15115 if (_v == 0) PyErr_Clear();
15119 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15122 const bool is_tuple = PyTuple_Check(argv[2]);
15123 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15125 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15126 :PyList_GetItem(argv[2], i))) {
15134 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
15137 const bool is_tuple = PyTuple_Check(argv[3]);
15138 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
15140 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
15141 :PyList_GetItem(argv[3], i))) {
15162 if (_v == 0) PyErr_Clear();
15166 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15169 const bool is_tuple = PyTuple_Check(argv[2]);
15170 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15172 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15173 :PyList_GetItem(argv[2], i))) {
15181 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
15184 const bool is_tuple = PyTuple_Check(argv[3]);
15185 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
15187 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
15188 :PyList_GetItem(argv[3], i))) {
15204 " Possible C/C++ prototypes are:\n" 15205 " operations_research::Solver::MakeNotMemberCt(operations_research::IntExpr *const,std::vector< int64_t > const &)\n" 15206 " operations_research::Solver::MakeNotMemberCt(operations_research::IntExpr *const,std::vector< int > const &)\n" 15207 " operations_research::Solver::MakeNotMemberCt(operations_research::IntExpr *const,std::vector< int64_t >,std::vector< int64_t >)\n" 15208 " operations_research::Solver::MakeNotMemberCt(operations_research::IntExpr *const,std::vector< int >,std::vector< int >)\n");
15214 PyObject *resultobj = 0;
15217 std::vector< int64_t > *arg3 = 0 ;
15221 std::vector< int64_t > temp3 ;
15222 PyObject * obj0 = 0 ;
15223 PyObject * obj1 = 0 ;
15224 PyObject * obj2 = 0 ;
15225 PyObject * obj3 = 0 ;
15228 if (!PyArg_UnpackTuple(args,
"Solver_IsMemberCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
15233 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15238 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
15239 if (!PyErr_Occurred())
15264 PyObject *resultobj = 0;
15267 std::vector< int > *arg3 = 0 ;
15271 std::vector< int > temp3 ;
15272 PyObject * obj0 = 0 ;
15273 PyObject * obj1 = 0 ;
15274 PyObject * obj2 = 0 ;
15275 PyObject * obj3 = 0 ;
15278 if (!PyArg_UnpackTuple(args,
"Solver_IsMemberCt", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
15283 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15288 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
15289 if (!PyErr_Occurred())
15315 PyObject *argv[5] = {
15321 argc = PyObject_Length(args);
15322 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
15323 argv[ii] = PyTuple_GET_ITEM(args,ii);
15333 if (_v == 0) PyErr_Clear();
15337 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15340 const bool is_tuple = PyTuple_Check(argv[2]);
15341 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15343 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15344 :PyList_GetItem(argv[2], i))) {
15353 if (_v == 0) PyErr_Clear();
15370 if (_v == 0) PyErr_Clear();
15374 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15377 const bool is_tuple = PyTuple_Check(argv[2]);
15378 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15380 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15381 :PyList_GetItem(argv[2], i))) {
15390 if (_v == 0) PyErr_Clear();
15402 " Possible C/C++ prototypes are:\n" 15403 " operations_research::Solver::MakeIsMemberCt(operations_research::IntExpr *const,std::vector< int64_t > const &,operations_research::IntVar *const)\n" 15404 " operations_research::Solver::MakeIsMemberCt(operations_research::IntExpr *const,std::vector< int > const &,operations_research::IntVar *const)\n");
15410 PyObject *resultobj = 0;
15413 std::vector< int64_t > *arg3 = 0 ;
15416 std::vector< int64_t > temp3 ;
15417 PyObject * obj0 = 0 ;
15418 PyObject * obj1 = 0 ;
15419 PyObject * obj2 = 0 ;
15422 if (!PyArg_UnpackTuple(args,
"Solver_IsMemberVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
15427 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15432 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
15433 if (!PyErr_Occurred())
15455 PyObject *resultobj = 0;
15458 std::vector< int > *arg3 = 0 ;
15461 std::vector< int > temp3 ;
15462 PyObject * obj0 = 0 ;
15463 PyObject * obj1 = 0 ;
15464 PyObject * obj2 = 0 ;
15467 if (!PyArg_UnpackTuple(args,
"Solver_IsMemberVar", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
15472 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15477 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
15478 if (!PyErr_Occurred())
15501 PyObject *argv[4] = {
15507 argc = PyObject_Length(args);
15508 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
15509 argv[ii] = PyTuple_GET_ITEM(args,ii);
15519 if (_v == 0) PyErr_Clear();
15523 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15526 const bool is_tuple = PyTuple_Check(argv[2]);
15527 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15529 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15530 :PyList_GetItem(argv[2], i))) {
15550 if (_v == 0) PyErr_Clear();
15554 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
15557 const bool is_tuple = PyTuple_Check(argv[2]);
15558 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
15560 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
15561 :PyList_GetItem(argv[2], i))) {
15576 " Possible C/C++ prototypes are:\n" 15577 " operations_research::Solver::MakeIsMemberVar(operations_research::IntExpr *const,std::vector< int64_t > const &)\n" 15578 " operations_research::Solver::MakeIsMemberVar(operations_research::IntExpr *const,std::vector< int > const &)\n");
15584 PyObject *resultobj = 0;
15586 std::vector< operations_research::IntVar * > *arg2 = 0 ;
15591 std::vector< operations_research::IntVar * > temp2 ;
15596 PyObject * obj0 = 0 ;
15597 PyObject * obj1 = 0 ;
15598 PyObject * obj2 = 0 ;
15599 PyObject * obj3 = 0 ;
15602 if (!PyArg_UnpackTuple(args,
"Solver_Count", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
15607 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15609 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
15610 if (!PyErr_Occurred())
15620 arg3 = static_cast< int64_t >(val3);
15625 arg4 = static_cast< int64_t >(val4);
15642 PyObject *resultobj = 0;
15644 std::vector< operations_research::IntVar * > *arg2 = 0 ;
15649 std::vector< operations_research::IntVar * > temp2 ;
15652 PyObject * obj0 = 0 ;
15653 PyObject * obj1 = 0 ;
15654 PyObject * obj2 = 0 ;
15655 PyObject * obj3 = 0 ;
15658 if (!PyArg_UnpackTuple(args,
"Solver_Count", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
15663 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15665 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
15666 if (!PyErr_Occurred())
15676 arg3 = static_cast< int64_t >(val3);
15697 PyObject *argv[5] = {
15703 argc = PyObject_Length(args);
15704 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
15705 argv[ii] = PyTuple_GET_ITEM(args,ii);
15714 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
15717 const bool is_tuple = PyTuple_Check(argv[1]);
15718 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
15721 :PyList_GetItem(argv[1], i))) {
15735 if (_v == 0) PyErr_Clear();
15751 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
15754 const bool is_tuple = PyTuple_Check(argv[1]);
15755 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
15758 :PyList_GetItem(argv[1], i))) {
15784 " Possible C/C++ prototypes are:\n" 15785 " operations_research::Solver::MakeCount(std::vector< operations_research::IntVar * > const &,int64_t,int64_t)\n" 15786 " operations_research::Solver::MakeCount(std::vector< operations_research::IntVar * > const &,int64_t,operations_research::IntVar *const)\n");
15792 PyObject *resultobj = 0;
15794 std::vector< operations_research::IntVar * > *arg2 = 0 ;
15795 std::vector< int64_t > *arg3 = 0 ;
15796 std::vector< operations_research::IntVar * > *arg4 = 0 ;
15799 std::vector< operations_research::IntVar * > temp2 ;
15800 std::vector< int64_t > temp3 ;
15801 std::vector< operations_research::IntVar * > temp4 ;
15802 PyObject * obj0 = 0 ;
15803 PyObject * obj1 = 0 ;
15804 PyObject * obj2 = 0 ;
15805 PyObject * obj3 = 0 ;
15808 if (!PyArg_UnpackTuple(args,
"Solver_Distribute", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
15813 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15815 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
15816 if (!PyErr_Occurred())
15823 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
15824 if (!PyErr_Occurred())
15831 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
15832 if (!PyErr_Occurred())
15840 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);
15854 PyObject *resultobj = 0;
15856 std::vector< operations_research::IntVar * > *arg2 = 0 ;
15857 std::vector< int > *arg3 = 0 ;
15858 std::vector< operations_research::IntVar * > *arg4 = 0 ;
15861 std::vector< operations_research::IntVar * > temp2 ;
15862 std::vector< int > temp3 ;
15863 std::vector< operations_research::IntVar * > temp4 ;
15864 PyObject * obj0 = 0 ;
15865 PyObject * obj1 = 0 ;
15866 PyObject * obj2 = 0 ;
15867 PyObject * obj3 = 0 ;
15870 if (!PyArg_UnpackTuple(args,
"Solver_Distribute", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
15875 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15877 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
15878 if (!PyErr_Occurred())
15885 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
15886 if (!PyErr_Occurred())
15893 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
15894 if (!PyErr_Occurred())
15902 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);
15916 PyObject *resultobj = 0;
15918 std::vector< operations_research::IntVar * > *arg2 = 0 ;
15919 std::vector< operations_research::IntVar * > *arg3 = 0 ;
15922 std::vector< operations_research::IntVar * > temp2 ;
15923 std::vector< operations_research::IntVar * > temp3 ;
15924 PyObject * obj0 = 0 ;
15925 PyObject * obj1 = 0 ;
15926 PyObject * obj2 = 0 ;
15929 if (!PyArg_UnpackTuple(args,
"Solver_Distribute", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
15934 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15936 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
15937 if (!PyErr_Occurred())
15944 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
15945 if (!PyErr_Occurred())
15953 result = (
operations_research::Constraint *)(arg1)->MakeDistribute((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3);
15967 PyObject *resultobj = 0;
15969 std::vector< operations_research::IntVar * > *arg2 = 0 ;
15975 std::vector< operations_research::IntVar * > temp2 ;
15982 PyObject * obj0 = 0 ;
15983 PyObject * obj1 = 0 ;
15984 PyObject * obj2 = 0 ;
15985 PyObject * obj3 = 0 ;
15986 PyObject * obj4 = 0 ;
15989 if (!PyArg_UnpackTuple(args,
"Solver_Distribute", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
15994 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
15996 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
15997 if (!PyErr_Occurred())
16007 arg3 = static_cast< int64_t >(val3);
16012 arg4 = static_cast< int64_t >(val4);
16017 arg5 = static_cast< int64_t >(val5);
16034 PyObject *resultobj = 0;
16036 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16037 std::vector< int64_t > *arg3 = 0 ;
16038 std::vector< int64_t > *arg4 = 0 ;
16041 std::vector< operations_research::IntVar * > temp2 ;
16042 std::vector< int64_t > temp3 ;
16043 std::vector< int64_t > temp4 ;
16044 PyObject * obj0 = 0 ;
16045 PyObject * obj1 = 0 ;
16046 PyObject * obj2 = 0 ;
16047 PyObject * obj3 = 0 ;
16050 if (!PyArg_UnpackTuple(args,
"Solver_Distribute", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
16055 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
16057 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16058 if (!PyErr_Occurred())
16065 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
16066 if (!PyErr_Occurred())
16073 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
16074 if (!PyErr_Occurred())
16082 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);
16096 PyObject *resultobj = 0;
16098 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16099 std::vector< int > *arg3 = 0 ;
16100 std::vector< int > *arg4 = 0 ;
16103 std::vector< operations_research::IntVar * > temp2 ;
16104 std::vector< int > temp3 ;
16105 std::vector< int > temp4 ;
16106 PyObject * obj0 = 0 ;
16107 PyObject * obj1 = 0 ;
16108 PyObject * obj2 = 0 ;
16109 PyObject * obj3 = 0 ;
16112 if (!PyArg_UnpackTuple(args,
"Solver_Distribute", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
16117 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
16119 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16120 if (!PyErr_Occurred())
16127 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
16128 if (!PyErr_Occurred())
16135 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
16136 if (!PyErr_Occurred())
16144 result = (
operations_research::Constraint *)(arg1)->MakeDistribute((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,(std::vector< int >
const &)*arg4);
16158 PyObject *resultobj = 0;
16160 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16161 std::vector< int64_t > *arg3 = 0 ;
16162 std::vector< int64_t > *arg4 = 0 ;
16163 std::vector< int64_t > *arg5 = 0 ;
16166 std::vector< operations_research::IntVar * > temp2 ;
16167 std::vector< int64_t > temp3 ;
16168 std::vector< int64_t > temp4 ;
16169 std::vector< int64_t > temp5 ;
16170 PyObject * obj0 = 0 ;
16171 PyObject * obj1 = 0 ;
16172 PyObject * obj2 = 0 ;
16173 PyObject * obj3 = 0 ;
16174 PyObject * obj4 = 0 ;
16177 if (!PyArg_UnpackTuple(args,
"Solver_Distribute", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
16182 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
16184 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16185 if (!PyErr_Occurred())
16192 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
16193 if (!PyErr_Occurred())
16200 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
16201 if (!PyErr_Occurred())
16208 if (!vector_input_helper(obj4, &temp5, PyObjAs<int64_t>)) {
16209 if (!PyErr_Occurred())
16217 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);
16231 PyObject *resultobj = 0;
16233 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16234 std::vector< int > *arg3 = 0 ;
16235 std::vector< int > *arg4 = 0 ;
16236 std::vector< int > *arg5 = 0 ;
16239 std::vector< operations_research::IntVar * > temp2 ;
16240 std::vector< int > temp3 ;
16241 std::vector< int > temp4 ;
16242 std::vector< int > temp5 ;
16243 PyObject * obj0 = 0 ;
16244 PyObject * obj1 = 0 ;
16245 PyObject * obj2 = 0 ;
16246 PyObject * obj3 = 0 ;
16247 PyObject * obj4 = 0 ;
16250 if (!PyArg_UnpackTuple(args,
"Solver_Distribute", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
16255 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
16257 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16258 if (!PyErr_Occurred())
16265 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
16266 if (!PyErr_Occurred())
16273 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
16274 if (!PyErr_Occurred())
16281 if (!vector_input_helper(obj4, &temp5, PyObjAs<int>)) {
16282 if (!PyErr_Occurred())
16290 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);
16305 PyObject *argv[6] = {
16311 argc = PyObject_Length(args);
16312 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
16313 argv[ii] = PyTuple_GET_ITEM(args,ii);
16322 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16325 const bool is_tuple = PyTuple_Check(argv[1]);
16326 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16329 :PyList_GetItem(argv[1], i))) {
16337 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16340 const bool is_tuple = PyTuple_Check(argv[2]);
16341 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16344 :PyList_GetItem(argv[2], i))) {
16363 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16366 const bool is_tuple = PyTuple_Check(argv[1]);
16367 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16370 :PyList_GetItem(argv[1], i))) {
16378 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16381 const bool is_tuple = PyTuple_Check(argv[2]);
16382 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16384 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16385 :PyList_GetItem(argv[2], i))) {
16393 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16396 const bool is_tuple = PyTuple_Check(argv[3]);
16397 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16400 :PyList_GetItem(argv[3], i))) {
16420 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16423 const bool is_tuple = PyTuple_Check(argv[1]);
16424 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16427 :PyList_GetItem(argv[1], i))) {
16435 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16438 const bool is_tuple = PyTuple_Check(argv[2]);
16439 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16441 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16442 :PyList_GetItem(argv[2], i))) {
16450 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16453 const bool is_tuple = PyTuple_Check(argv[3]);
16454 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16457 :PyList_GetItem(argv[3], i))) {
16477 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16480 const bool is_tuple = PyTuple_Check(argv[1]);
16481 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16484 :PyList_GetItem(argv[1], i))) {
16492 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16495 const bool is_tuple = PyTuple_Check(argv[2]);
16496 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16498 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16499 :PyList_GetItem(argv[2], i))) {
16507 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16510 const bool is_tuple = PyTuple_Check(argv[3]);
16511 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16513 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
16514 :PyList_GetItem(argv[3], i))) {
16534 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16537 const bool is_tuple = PyTuple_Check(argv[1]);
16538 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16541 :PyList_GetItem(argv[1], i))) {
16549 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16552 const bool is_tuple = PyTuple_Check(argv[2]);
16553 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16555 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16556 :PyList_GetItem(argv[2], i))) {
16564 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16567 const bool is_tuple = PyTuple_Check(argv[3]);
16568 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16570 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
16571 :PyList_GetItem(argv[3], i))) {
16591 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16594 const bool is_tuple = PyTuple_Check(argv[1]);
16595 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16598 :PyList_GetItem(argv[1], i))) {
16606 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16609 const bool is_tuple = PyTuple_Check(argv[2]);
16610 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16612 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16613 :PyList_GetItem(argv[2], i))) {
16621 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16624 const bool is_tuple = PyTuple_Check(argv[3]);
16625 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16627 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
16628 :PyList_GetItem(argv[3], i))) {
16636 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
16639 const bool is_tuple = PyTuple_Check(argv[4]);
16640 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
16642 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
16643 :PyList_GetItem(argv[4], i))) {
16664 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16667 const bool is_tuple = PyTuple_Check(argv[1]);
16668 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16671 :PyList_GetItem(argv[1], i))) {
16679 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
16682 const bool is_tuple = PyTuple_Check(argv[2]);
16683 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
16685 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
16686 :PyList_GetItem(argv[2], i))) {
16694 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
16697 const bool is_tuple = PyTuple_Check(argv[3]);
16698 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
16700 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
16701 :PyList_GetItem(argv[3], i))) {
16709 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
16712 const bool is_tuple = PyTuple_Check(argv[4]);
16713 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
16715 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
16716 :PyList_GetItem(argv[4], i))) {
16737 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16740 const bool is_tuple = PyTuple_Check(argv[1]);
16741 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16744 :PyList_GetItem(argv[1], i))) {
16776 " Possible C/C++ prototypes are:\n" 16777 " operations_research::Solver::MakeDistribute(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,std::vector< operations_research::IntVar * > const &)\n" 16778 " operations_research::Solver::MakeDistribute(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,std::vector< operations_research::IntVar * > const &)\n" 16779 " operations_research::Solver::MakeDistribute(std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &)\n" 16780 " operations_research::Solver::MakeDistribute(std::vector< operations_research::IntVar * > const &,int64_t,int64_t,int64_t)\n" 16781 " operations_research::Solver::MakeDistribute(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,std::vector< int64_t > const &)\n" 16782 " operations_research::Solver::MakeDistribute(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,std::vector< int > const &)\n" 16783 " 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" 16784 " operations_research::Solver::MakeDistribute(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,std::vector< int > const &,std::vector< int > const &)\n");
16790 PyObject *resultobj = 0;
16792 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16797 std::vector< operations_research::IntVar * > temp2 ;
16800 PyObject * obj0 = 0 ;
16801 PyObject * obj1 = 0 ;
16802 PyObject * obj2 = 0 ;
16803 PyObject * obj3 = 0 ;
16806 if (!PyArg_UnpackTuple(args,
"Solver_Deviation", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
16811 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
16813 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16814 if (!PyErr_Occurred())
16827 arg4 = static_cast< int64_t >(val4);
16844 PyObject *resultobj = 0;
16846 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16849 std::vector< operations_research::IntVar * > temp2 ;
16850 PyObject * obj0 = 0 ;
16851 PyObject * obj1 = 0 ;
16854 if (!PyArg_UnpackTuple(args,
"Solver_AllDifferent", 2, 2, &obj0, &obj1))
SWIG_fail;
16859 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
16861 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16862 if (!PyErr_Occurred())
16884 PyObject *resultobj = 0;
16886 std::vector< operations_research::IntVar * > *arg2 = 0 ;
16890 std::vector< operations_research::IntVar * > temp2 ;
16893 PyObject * obj0 = 0 ;
16894 PyObject * obj1 = 0 ;
16895 PyObject * obj2 = 0 ;
16898 if (!PyArg_UnpackTuple(args,
"Solver_AllDifferent", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
16903 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
16905 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
16906 if (!PyErr_Occurred())
16916 arg3 = static_cast< bool >(val3);
16934 PyObject *argv[4] = {
16940 argc = PyObject_Length(args);
16941 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
16942 argv[ii] = PyTuple_GET_ITEM(args,ii);
16951 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16954 const bool is_tuple = PyTuple_Check(argv[1]);
16955 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16958 :PyList_GetItem(argv[1], i))) {
16976 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
16979 const bool is_tuple = PyTuple_Check(argv[1]);
16980 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
16983 :PyList_GetItem(argv[1], i))) {
17003 " Possible C/C++ prototypes are:\n" 17004 " operations_research::Solver::MakeAllDifferent(std::vector< operations_research::IntVar * > const &)\n" 17005 " operations_research::Solver::MakeAllDifferent(std::vector< operations_research::IntVar * > const &,bool)\n");
17011 PyObject *resultobj = 0;
17013 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17017 std::vector< operations_research::IntVar * > temp2 ;
17020 PyObject * obj0 = 0 ;
17021 PyObject * obj1 = 0 ;
17022 PyObject * obj2 = 0 ;
17025 if (!PyArg_UnpackTuple(args,
"Solver_AllDifferentExcept", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
17030 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17032 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17033 if (!PyErr_Occurred())
17043 arg3 = static_cast< int64_t >(val3);
17060 PyObject *resultobj = 0;
17062 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17063 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17066 std::vector< operations_research::IntVar * > temp2 ;
17067 std::vector< operations_research::IntVar * > temp3 ;
17068 PyObject * obj0 = 0 ;
17069 PyObject * obj1 = 0 ;
17070 PyObject * obj2 = 0 ;
17073 if (!PyArg_UnpackTuple(args,
"Solver_SortingConstraint", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
17078 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17080 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17081 if (!PyErr_Occurred())
17088 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17089 if (!PyErr_Occurred())
17097 result = (
operations_research::Constraint *)(arg1)->MakeSortingConstraint((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3);
17111 PyObject *resultobj = 0;
17113 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17114 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17117 std::vector< operations_research::IntVar * > temp2 ;
17118 std::vector< operations_research::IntVar * > temp3 ;
17119 PyObject * obj0 = 0 ;
17120 PyObject * obj1 = 0 ;
17121 PyObject * obj2 = 0 ;
17124 if (!PyArg_UnpackTuple(args,
"Solver_LexicalLess", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
17129 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17131 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17132 if (!PyErr_Occurred())
17139 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17140 if (!PyErr_Occurred())
17148 result = (
operations_research::Constraint *)(arg1)->MakeLexicalLess((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3);
17162 PyObject *resultobj = 0;
17164 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17165 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17168 std::vector< operations_research::IntVar * > temp2 ;
17169 std::vector< operations_research::IntVar * > temp3 ;
17170 PyObject * obj0 = 0 ;
17171 PyObject * obj1 = 0 ;
17172 PyObject * obj2 = 0 ;
17175 if (!PyArg_UnpackTuple(args,
"Solver_LexicalLessOrEqual", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
17180 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17182 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17183 if (!PyErr_Occurred())
17190 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17191 if (!PyErr_Occurred())
17199 result = (
operations_research::Constraint *)(arg1)->MakeLexicalLessOrEqual((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3);
17213 PyObject *resultobj = 0;
17215 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17216 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17219 std::vector< operations_research::IntVar * > temp2 ;
17220 std::vector< operations_research::IntVar * > temp3 ;
17221 PyObject * obj0 = 0 ;
17222 PyObject * obj1 = 0 ;
17223 PyObject * obj2 = 0 ;
17226 if (!PyArg_UnpackTuple(args,
"Solver_InversePermutationConstraint", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
17229 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_InversePermutationConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
17231 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17233 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17234 if (!PyErr_Occurred())
17241 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17242 if (!PyErr_Occurred())
17250 result = (
operations_research::Constraint *)(arg1)->MakeInversePermutationConstraint((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3);
17264 PyObject *resultobj = 0;
17266 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17267 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17270 std::vector< operations_research::IntVar * > temp2 ;
17271 std::vector< operations_research::IntVar * > temp3 ;
17272 PyObject * obj0 = 0 ;
17273 PyObject * obj1 = 0 ;
17274 PyObject * obj2 = 0 ;
17277 if (!PyArg_UnpackTuple(args,
"Solver_NullIntersect", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
17282 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17284 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17285 if (!PyErr_Occurred())
17292 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17293 if (!PyErr_Occurred())
17301 result = (
operations_research::Constraint *)(arg1)->MakeNullIntersect((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3);
17315 PyObject *resultobj = 0;
17317 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17318 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17322 std::vector< operations_research::IntVar * > temp2 ;
17323 std::vector< operations_research::IntVar * > temp3 ;
17326 PyObject * obj0 = 0 ;
17327 PyObject * obj1 = 0 ;
17328 PyObject * obj2 = 0 ;
17329 PyObject * obj3 = 0 ;
17332 if (!PyArg_UnpackTuple(args,
"Solver_NullIntersectExcept", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
17337 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17339 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17340 if (!PyErr_Occurred())
17347 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17348 if (!PyErr_Occurred())
17358 arg4 = static_cast< int64_t >(val4);
17361 result = (
operations_research::Constraint *)(arg1)->MakeNullIntersectExcept((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3,arg4);
17375 PyObject *resultobj = 0;
17377 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17380 std::vector< operations_research::IntVar * > temp2 ;
17381 PyObject * obj0 = 0 ;
17382 PyObject * obj1 = 0 ;
17385 if (!PyArg_UnpackTuple(args,
"Solver_Circuit", 2, 2, &obj0, &obj1))
SWIG_fail;
17390 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17392 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17393 if (!PyErr_Occurred())
17415 PyObject *resultobj = 0;
17417 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17420 std::vector< operations_research::IntVar * > temp2 ;
17421 PyObject * obj0 = 0 ;
17422 PyObject * obj1 = 0 ;
17425 if (!PyArg_UnpackTuple(args,
"Solver_SubCircuit", 2, 2, &obj0, &obj1))
SWIG_fail;
17430 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17432 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17433 if (!PyErr_Occurred())
17455 PyObject *resultobj = 0;
17457 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17458 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17459 std::vector< operations_research::IntVar * > *arg4 = 0 ;
17460 std::vector< operations_research::IntVar * > *arg5 = 0 ;
17463 std::vector< operations_research::IntVar * > temp2 ;
17464 std::vector< operations_research::IntVar * > temp3 ;
17465 std::vector< operations_research::IntVar * > temp4 ;
17466 std::vector< operations_research::IntVar * > temp5 ;
17467 PyObject * obj0 = 0 ;
17468 PyObject * obj1 = 0 ;
17469 PyObject * obj2 = 0 ;
17470 PyObject * obj3 = 0 ;
17471 PyObject * obj4 = 0 ;
17474 if (!PyArg_UnpackTuple(args,
"Solver_PathCumul", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
17479 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17481 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17482 if (!PyErr_Occurred())
17489 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17490 if (!PyErr_Occurred())
17497 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
17498 if (!PyErr_Occurred())
17505 if (!vector_input_helper(obj4, &temp5, PyObjAs<operations_research::IntVar*>)) {
17506 if (!PyErr_Occurred())
17514 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);
17528 PyObject *resultobj = 0;
17530 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17531 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17532 std::vector< operations_research::IntVar * > *arg4 = 0 ;
17533 std::vector< operations_research::IntVar * > *arg5 = 0 ;
17536 std::vector< operations_research::IntVar * > temp2 ;
17537 std::vector< operations_research::IntVar * > temp3 ;
17538 std::vector< operations_research::IntVar * > temp4 ;
17539 std::vector< operations_research::IntVar * > temp5 ;
17540 PyObject * obj0 = 0 ;
17541 PyObject * obj1 = 0 ;
17542 PyObject * obj2 = 0 ;
17543 PyObject * obj3 = 0 ;
17544 PyObject * obj4 = 0 ;
17547 if (!PyArg_UnpackTuple(args,
"Solver_DelayedPathCumul", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
17552 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17554 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17555 if (!PyErr_Occurred())
17562 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17563 if (!PyErr_Occurred())
17570 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
17571 if (!PyErr_Occurred())
17578 if (!vector_input_helper(obj4, &temp5, PyObjAs<operations_research::IntVar*>)) {
17579 if (!PyErr_Occurred())
17587 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);
17601 PyObject *resultobj = 0;
17603 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17604 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17605 std::vector< operations_research::IntVar * > *arg4 = 0 ;
17609 std::vector< operations_research::IntVar * > temp2 ;
17610 std::vector< operations_research::IntVar * > temp3 ;
17611 std::vector< operations_research::IntVar * > temp4 ;
17612 PyObject * obj0 = 0 ;
17613 PyObject * obj1 = 0 ;
17614 PyObject * obj2 = 0 ;
17615 PyObject * obj3 = 0 ;
17616 PyObject * obj4 = 0 ;
17619 if (!PyArg_UnpackTuple(args,
"Solver_PathCumul", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
17624 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17626 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17627 if (!PyErr_Occurred())
17634 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17635 if (!PyErr_Occurred())
17642 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
17643 if (!PyErr_Occurred())
17651 arg5 = [
input](int64_t i, int64_t j) {
17652 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
17657 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);
17671 PyObject *resultobj = 0;
17673 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17674 std::vector< operations_research::IntVar * > *arg3 = 0 ;
17675 std::vector< operations_research::IntVar * > *arg4 = 0 ;
17676 std::vector< operations_research::IntVar * > *arg5 = 0 ;
17680 std::vector< operations_research::IntVar * > temp2 ;
17681 std::vector< operations_research::IntVar * > temp3 ;
17682 std::vector< operations_research::IntVar * > temp4 ;
17683 std::vector< operations_research::IntVar * > temp5 ;
17684 PyObject * obj0 = 0 ;
17685 PyObject * obj1 = 0 ;
17686 PyObject * obj2 = 0 ;
17687 PyObject * obj3 = 0 ;
17688 PyObject * obj4 = 0 ;
17689 PyObject * obj5 = 0 ;
17692 if (!PyArg_UnpackTuple(args,
"Solver_PathCumul", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
17697 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
17699 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
17700 if (!PyErr_Occurred())
17707 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
17708 if (!PyErr_Occurred())
17715 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
17716 if (!PyErr_Occurred())
17723 if (!vector_input_helper(obj4, &temp5, PyObjAs<operations_research::IntVar*>)) {
17724 if (!PyErr_Occurred())
17732 arg6 = [
input](int64_t i, int64_t j) {
17733 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
17738 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);
17753 PyObject *argv[7] = {
17759 argc = PyObject_Length(args);
17760 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
17761 argv[ii] = PyTuple_GET_ITEM(args,ii);
17770 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
17773 const bool is_tuple = PyTuple_Check(argv[1]);
17774 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
17777 :PyList_GetItem(argv[1], i))) {
17785 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
17788 const bool is_tuple = PyTuple_Check(argv[2]);
17789 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
17792 :PyList_GetItem(argv[2], i))) {
17800 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
17803 const bool is_tuple = PyTuple_Check(argv[3]);
17804 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
17807 :PyList_GetItem(argv[3], i))) {
17815 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
17818 const bool is_tuple = PyTuple_Check(argv[4]);
17819 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
17822 :PyList_GetItem(argv[4], i))) {
17843 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
17846 const bool is_tuple = PyTuple_Check(argv[1]);
17847 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
17850 :PyList_GetItem(argv[1], i))) {
17858 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
17861 const bool is_tuple = PyTuple_Check(argv[2]);
17862 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
17865 :PyList_GetItem(argv[2], i))) {
17873 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
17876 const bool is_tuple = PyTuple_Check(argv[3]);
17877 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
17880 :PyList_GetItem(argv[3], i))) {
17888 _v = PyCallable_Check(argv[4]);
17905 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
17908 const bool is_tuple = PyTuple_Check(argv[1]);
17909 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
17912 :PyList_GetItem(argv[1], i))) {
17920 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
17923 const bool is_tuple = PyTuple_Check(argv[2]);
17924 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
17927 :PyList_GetItem(argv[2], i))) {
17935 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
17938 const bool is_tuple = PyTuple_Check(argv[3]);
17939 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
17942 :PyList_GetItem(argv[3], i))) {
17950 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
17953 const bool is_tuple = PyTuple_Check(argv[4]);
17954 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
17957 :PyList_GetItem(argv[4], i))) {
17965 _v = PyCallable_Check(argv[5]);
17979 " Possible C/C++ prototypes are:\n" 17980 " 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" 17981 " 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" 17982 " 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");
17988 PyObject *resultobj = 0;
17990 std::vector< operations_research::IntVar * > *arg2 = 0 ;
17994 std::vector< operations_research::IntVar * > temp2 ;
17997 PyObject * obj0 = 0 ;
17998 PyObject * obj1 = 0 ;
17999 PyObject * obj2 = 0 ;
18002 if (!PyArg_UnpackTuple(args,
"Solver_AllowedAssignments", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
18007 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
18009 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18010 if (!PyErr_Occurred())
18018 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_AllowedAssignments" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18021 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_AllowedAssignments" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18023 arg3 = reinterpret_cast< operations_research::IntTupleSet * >(argp3);
18040 PyObject *resultobj = 0;
18042 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18045 std::vector< int64_t > *arg5 = 0 ;
18048 std::vector< operations_research::IntVar * > temp2 ;
18053 std::vector< int64_t > temp5 ;
18054 PyObject * obj0 = 0 ;
18055 PyObject * obj1 = 0 ;
18056 PyObject * obj2 = 0 ;
18057 PyObject * obj3 = 0 ;
18058 PyObject * obj4 = 0 ;
18061 if (!PyArg_UnpackTuple(args,
"Solver_TransitionConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
18066 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
18068 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18069 if (!PyErr_Occurred())
18077 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_TransitionConstraint" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18080 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_TransitionConstraint" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18082 arg3 = reinterpret_cast< operations_research::IntTupleSet * >(argp3);
18087 arg4 = static_cast< int64_t >(val4);
18089 if (!vector_input_helper(obj4, &temp5, PyObjAs<int64_t>)) {
18090 if (!PyErr_Occurred())
18112 PyObject *resultobj = 0;
18114 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18117 std::vector< int > *arg5 = 0 ;
18120 std::vector< operations_research::IntVar * > temp2 ;
18125 std::vector< int > temp5 ;
18126 PyObject * obj0 = 0 ;
18127 PyObject * obj1 = 0 ;
18128 PyObject * obj2 = 0 ;
18129 PyObject * obj3 = 0 ;
18130 PyObject * obj4 = 0 ;
18133 if (!PyArg_UnpackTuple(args,
"Solver_TransitionConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
18138 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
18140 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18141 if (!PyErr_Occurred())
18149 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_TransitionConstraint" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18152 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_TransitionConstraint" "', argument " "3"" of type '" "operations_research::IntTupleSet const &""'");
18154 arg3 = reinterpret_cast< operations_research::IntTupleSet * >(argp3);
18159 arg4 = static_cast< int64_t >(val4);
18161 if (!vector_input_helper(obj4, &temp5, PyObjAs<int>)) {
18162 if (!PyErr_Occurred())
18184 PyObject *resultobj = 0;
18186 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18187 std::vector< std::vector< int64_t > > *arg3 = 0 ;
18190 std::vector< operations_research::IntVar * > temp2 ;
18191 std::vector< std::vector< int64_t > > temp3 ;
18192 PyObject * obj0 = 0 ;
18193 PyObject * obj1 = 0 ;
18194 PyObject * obj2 = 0 ;
18197 if (!PyArg_UnpackTuple(args,
"Solver_AllowedAssignments", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
18202 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
18204 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18205 if (!PyErr_Occurred())
18212 if (!PyList_Check(obj2)) {
18213 PyErr_SetString(PyExc_TypeError,
"Expecting a list of tuples");
18216 int len = PyList_Size(obj2);
18220 for (
size_t i = 0; i < len; ++i) {
18221 PyObject *tuple = PyList_GetItem(obj2, i);
18222 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
18223 PyErr_SetString(PyExc_TypeError,
"Expecting a sequence");
18226 bool is_tuple = PyTuple_Check(tuple);
18227 int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
18228 temp3[i].resize(arity);
18229 for (
size_t j = 0; j < arity; ++j) {
18230 bool success = PyObjAs<int64_t>(
18231 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j),
18243 result = (
operations_research::Constraint *)(arg1)->MakeAllowedAssignments((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< std::vector< int64_t > >
const &)*arg3);
18258 PyObject *argv[4] = {
18264 argc = PyObject_Length(args);
18265 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
18266 argv[ii] = PyTuple_GET_ITEM(args,ii);
18275 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18278 const bool is_tuple = PyTuple_Check(argv[1]);
18279 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18282 :PyList_GetItem(argv[1], i))) {
18304 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18307 const bool is_tuple = PyTuple_Check(argv[1]);
18308 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18311 :PyList_GetItem(argv[1], i))) {
18319 if (!PyList_Check(argv[2])) {
18322 const int size = PyList_Size(argv[2]);
18323 bool failed =
false;
18324 for (
size_t i = 0; i < size; ++i) {
18325 PyObject*
const tuple = PyList_GetItem(argv[2], i);
18326 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
18330 const bool is_tuple = PyTuple_Check(tuple);
18331 const int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
18332 for (
size_t j = 0; j < arity; ++j) {
18333 PyObject*
const entry =
18334 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j);
18335 if (!SwigPyIntOrLong_Check(entry)) {
18345 _v = failed ? 0 : 1;
18357 " Possible C/C++ prototypes are:\n" 18358 " operations_research::Solver::MakeAllowedAssignments(std::vector< operations_research::IntVar * > const &,operations_research::IntTupleSet const &)\n" 18359 " operations_research::Solver::MakeAllowedAssignments(std::vector< operations_research::IntVar * > const &,std::vector< std::vector< int64_t > > const &)\n");
18365 PyObject *resultobj = 0;
18367 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18368 std::vector< std::vector< int64_t > > *arg3 = 0 ;
18370 std::vector< int > *arg5 = 0 ;
18373 std::vector< operations_research::IntVar * > temp2 ;
18374 std::vector< std::vector< int64_t > > temp3 ;
18377 std::vector< int > temp5 ;
18378 PyObject * obj0 = 0 ;
18379 PyObject * obj1 = 0 ;
18380 PyObject * obj2 = 0 ;
18381 PyObject * obj3 = 0 ;
18382 PyObject * obj4 = 0 ;
18385 if (!PyArg_UnpackTuple(args,
"Solver_TransitionConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
18390 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
18392 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18393 if (!PyErr_Occurred())
18400 if (!PyList_Check(obj2)) {
18401 PyErr_SetString(PyExc_TypeError,
"Expecting a list of tuples");
18404 int len = PyList_Size(obj2);
18408 for (
size_t i = 0; i < len; ++i) {
18409 PyObject *tuple = PyList_GetItem(obj2, i);
18410 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
18411 PyErr_SetString(PyExc_TypeError,
"Expecting a sequence");
18414 bool is_tuple = PyTuple_Check(tuple);
18415 int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
18416 temp3[i].resize(arity);
18417 for (
size_t j = 0; j < arity; ++j) {
18418 bool success = PyObjAs<int64_t>(
18419 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j),
18433 arg4 = static_cast< int64_t >(val4);
18435 if (!vector_input_helper(obj4, &temp5, PyObjAs<int>)) {
18436 if (!PyErr_Occurred())
18444 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);
18459 PyObject *argv[6] = {
18465 argc = PyObject_Length(args);
18466 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
18467 argv[ii] = PyTuple_GET_ITEM(args,ii);
18476 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18479 const bool is_tuple = PyTuple_Check(argv[1]);
18480 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18483 :PyList_GetItem(argv[1], i))) {
18499 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
18502 const bool is_tuple = PyTuple_Check(argv[4]);
18503 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
18505 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
18506 :PyList_GetItem(argv[4], i))) {
18527 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18530 const bool is_tuple = PyTuple_Check(argv[1]);
18531 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18534 :PyList_GetItem(argv[1], i))) {
18550 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
18553 const bool is_tuple = PyTuple_Check(argv[4]);
18554 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
18556 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
18557 :PyList_GetItem(argv[4], i))) {
18578 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18581 const bool is_tuple = PyTuple_Check(argv[1]);
18582 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18585 :PyList_GetItem(argv[1], i))) {
18593 if (!PyList_Check(argv[2])) {
18596 const int size = PyList_Size(argv[2]);
18597 bool failed =
false;
18598 for (
size_t i = 0; i < size; ++i) {
18599 PyObject*
const tuple = PyList_GetItem(argv[2], i);
18600 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
18604 const bool is_tuple = PyTuple_Check(tuple);
18605 const int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
18606 for (
size_t j = 0; j < arity; ++j) {
18607 PyObject*
const entry =
18608 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j);
18609 if (!SwigPyIntOrLong_Check(entry)) {
18619 _v = failed ? 0 : 1;
18629 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
18632 const bool is_tuple = PyTuple_Check(argv[4]);
18633 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
18635 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
18636 :PyList_GetItem(argv[4], i))) {
18653 " Possible C/C++ prototypes are:\n" 18654 " operations_research::Solver::MakeTransitionConstraint(std::vector< operations_research::IntVar * > const &,operations_research::IntTupleSet const &,int64_t,std::vector< int64_t > const &)\n" 18655 " operations_research::Solver::MakeTransitionConstraint(std::vector< operations_research::IntVar * > const &,operations_research::IntTupleSet const &,int64_t,std::vector< int > const &)\n" 18656 " operations_research::Solver::MakeTransitionConstraint(std::vector< operations_research::IntVar * > const &,std::vector< std::vector< int64_t > > const &,int64_t,std::vector< int > const &)\n");
18662 PyObject *resultobj = 0;
18664 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18665 std::vector< operations_research::IntVar * > *arg3 = 0 ;
18666 std::vector< operations_research::IntVar * > *arg4 = 0 ;
18667 std::vector< operations_research::IntVar * > *arg5 = 0 ;
18670 std::vector< operations_research::IntVar * > temp2 ;
18671 std::vector< operations_research::IntVar * > temp3 ;
18672 std::vector< operations_research::IntVar * > temp4 ;
18673 std::vector< operations_research::IntVar * > temp5 ;
18674 PyObject * obj0 = 0 ;
18675 PyObject * obj1 = 0 ;
18676 PyObject * obj2 = 0 ;
18677 PyObject * obj3 = 0 ;
18678 PyObject * obj4 = 0 ;
18681 if (!PyArg_UnpackTuple(args,
"Solver_NonOverlappingBoxesConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
18684 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_NonOverlappingBoxesConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
18686 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
18688 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18689 if (!PyErr_Occurred())
18696 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
18697 if (!PyErr_Occurred())
18704 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
18705 if (!PyErr_Occurred())
18712 if (!vector_input_helper(obj4, &temp5, PyObjAs<operations_research::IntVar*>)) {
18713 if (!PyErr_Occurred())
18721 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);
18735 PyObject *resultobj = 0;
18737 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18738 std::vector< operations_research::IntVar * > *arg3 = 0 ;
18739 std::vector< int64_t > *arg4 = 0 ;
18740 std::vector< int64_t > *arg5 = 0 ;
18743 std::vector< operations_research::IntVar * > temp2 ;
18744 std::vector< operations_research::IntVar * > temp3 ;
18745 std::vector< int64_t > temp4 ;
18746 std::vector< int64_t > temp5 ;
18747 PyObject * obj0 = 0 ;
18748 PyObject * obj1 = 0 ;
18749 PyObject * obj2 = 0 ;
18750 PyObject * obj3 = 0 ;
18751 PyObject * obj4 = 0 ;
18754 if (!PyArg_UnpackTuple(args,
"Solver_NonOverlappingBoxesConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
18757 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_NonOverlappingBoxesConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
18759 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
18761 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18762 if (!PyErr_Occurred())
18769 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
18770 if (!PyErr_Occurred())
18777 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
18778 if (!PyErr_Occurred())
18785 if (!vector_input_helper(obj4, &temp5, PyObjAs<int64_t>)) {
18786 if (!PyErr_Occurred())
18794 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);
18808 PyObject *resultobj = 0;
18810 std::vector< operations_research::IntVar * > *arg2 = 0 ;
18811 std::vector< operations_research::IntVar * > *arg3 = 0 ;
18812 std::vector< int > *arg4 = 0 ;
18813 std::vector< int > *arg5 = 0 ;
18816 std::vector< operations_research::IntVar * > temp2 ;
18817 std::vector< operations_research::IntVar * > temp3 ;
18818 std::vector< int > temp4 ;
18819 std::vector< int > temp5 ;
18820 PyObject * obj0 = 0 ;
18821 PyObject * obj1 = 0 ;
18822 PyObject * obj2 = 0 ;
18823 PyObject * obj3 = 0 ;
18824 PyObject * obj4 = 0 ;
18827 if (!PyArg_UnpackTuple(args,
"Solver_NonOverlappingBoxesConstraint", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
18830 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_NonOverlappingBoxesConstraint" "', argument " "1"" of type '" "operations_research::Solver *""'");
18832 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
18834 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
18835 if (!PyErr_Occurred())
18842 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
18843 if (!PyErr_Occurred())
18850 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
18851 if (!PyErr_Occurred())
18858 if (!vector_input_helper(obj4, &temp5, PyObjAs<int>)) {
18859 if (!PyErr_Occurred())
18867 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);
18882 PyObject *argv[6] = {
18888 argc = PyObject_Length(args);
18889 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
18890 argv[ii] = PyTuple_GET_ITEM(args,ii);
18899 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18902 const bool is_tuple = PyTuple_Check(argv[1]);
18903 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18906 :PyList_GetItem(argv[1], i))) {
18914 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
18917 const bool is_tuple = PyTuple_Check(argv[2]);
18918 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
18921 :PyList_GetItem(argv[2], i))) {
18929 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
18932 const bool is_tuple = PyTuple_Check(argv[3]);
18933 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
18936 :PyList_GetItem(argv[3], i))) {
18944 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
18947 const bool is_tuple = PyTuple_Check(argv[4]);
18948 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
18951 :PyList_GetItem(argv[4], i))) {
18972 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
18975 const bool is_tuple = PyTuple_Check(argv[1]);
18976 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
18979 :PyList_GetItem(argv[1], i))) {
18987 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
18990 const bool is_tuple = PyTuple_Check(argv[2]);
18991 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
18994 :PyList_GetItem(argv[2], i))) {
19002 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
19005 const bool is_tuple = PyTuple_Check(argv[3]);
19006 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
19008 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
19009 :PyList_GetItem(argv[3], i))) {
19017 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
19020 const bool is_tuple = PyTuple_Check(argv[4]);
19021 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
19023 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
19024 :PyList_GetItem(argv[4], i))) {
19045 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
19048 const bool is_tuple = PyTuple_Check(argv[1]);
19049 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
19052 :PyList_GetItem(argv[1], i))) {
19060 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
19063 const bool is_tuple = PyTuple_Check(argv[2]);
19064 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
19067 :PyList_GetItem(argv[2], i))) {
19075 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
19078 const bool is_tuple = PyTuple_Check(argv[3]);
19079 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
19081 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
19082 :PyList_GetItem(argv[3], i))) {
19090 if (!PyTuple_Check(argv[4]) && !PyList_Check(argv[4])) {
19093 const bool is_tuple = PyTuple_Check(argv[4]);
19094 const size_t size = is_tuple ? PyTuple_Size(argv[4]) : PyList_Size(argv[4]);
19096 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[4], i)
19097 :PyList_GetItem(argv[4], i))) {
19114 " Possible C/C++ prototypes are:\n" 19115 " 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" 19116 " 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" 19117 " 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");
19123 PyObject *resultobj = 0;
19125 std::vector< operations_research::IntVar * > *arg2 = 0 ;
19129 std::vector< operations_research::IntVar * > temp2 ;
19132 PyObject * obj0 = 0 ;
19133 PyObject * obj1 = 0 ;
19134 PyObject * obj2 = 0 ;
19137 if (!PyArg_UnpackTuple(args,
"Solver_Pack", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
19142 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19144 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
19145 if (!PyErr_Occurred())
19155 arg3 = static_cast< int >(val3);
19158 result = (
operations_research::Pack *)(arg1)->MakePack((std::vector< operations_research::IntVar * >
const &)*arg2,arg3);
19172 PyObject *resultobj = 0;
19178 std::string *arg6 = 0 ;
19190 PyObject * obj0 = 0 ;
19191 PyObject * obj1 = 0 ;
19192 PyObject * obj2 = 0 ;
19193 PyObject * obj3 = 0 ;
19194 PyObject * obj4 = 0 ;
19195 PyObject * obj5 = 0 ;
19198 if (!PyArg_UnpackTuple(args,
"Solver_FixedDurationIntervalVar", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
19201 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FixedDurationIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19203 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19208 arg2 = static_cast< int64_t >(val2);
19213 arg3 = static_cast< int64_t >(val3);
19218 arg4 = static_cast< int64_t >(val4);
19223 arg5 = static_cast< bool >(val5);
19225 std::string *ptr = (std::string *)0;
19231 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_FixedDurationIntervalVar" "', argument " "6"" of type '" "std::string const &""'");
19253 PyObject *resultobj = 0;
19257 std::string *arg4 = 0 ;
19263 PyObject * obj0 = 0 ;
19264 PyObject * obj1 = 0 ;
19265 PyObject * obj2 = 0 ;
19266 PyObject * obj3 = 0 ;
19269 if (!PyArg_UnpackTuple(args,
"Solver_FixedDurationIntervalVar", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
19272 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FixedDurationIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19274 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19282 arg3 = static_cast< int64_t >(val3);
19284 std::string *ptr = (std::string *)0;
19290 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_FixedDurationIntervalVar" "', argument " "4"" of type '" "std::string const &""'");
19312 PyObject *resultobj = 0;
19317 std::string *arg5 = 0 ;
19323 PyObject * obj0 = 0 ;
19324 PyObject * obj1 = 0 ;
19325 PyObject * obj2 = 0 ;
19326 PyObject * obj3 = 0 ;
19327 PyObject * obj4 = 0 ;
19330 if (!PyArg_UnpackTuple(args,
"Solver_FixedDurationIntervalVar", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
19333 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FixedDurationIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19335 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19343 arg3 = static_cast< int64_t >(val3);
19348 std::string *ptr = (std::string *)0;
19354 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_FixedDurationIntervalVar" "', argument " "5"" of type '" "std::string const &""'");
19377 PyObject *argv[7] = {
19383 argc = PyObject_Length(args);
19384 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
19385 argv[ii] = PyTuple_GET_ITEM(args,ii);
19395 if (_v == 0) PyErr_Clear();
19420 if (_v == 0) PyErr_Clear();
19430 if (_v == 0) PyErr_Clear();
19483 " Possible C/C++ prototypes are:\n" 19484 " operations_research::Solver::MakeFixedDurationIntervalVar(int64_t,int64_t,int64_t,bool,std::string const &)\n" 19485 " operations_research::Solver::MakeFixedDurationIntervalVar(operations_research::IntVar *const,int64_t,std::string const &)\n" 19486 " operations_research::Solver::MakeFixedDurationIntervalVar(operations_research::IntVar *const,int64_t,operations_research::IntVar *const,std::string const &)\n");
19492 PyObject *resultobj = 0;
19496 std::string *arg4 = 0 ;
19504 PyObject * obj0 = 0 ;
19505 PyObject * obj1 = 0 ;
19506 PyObject * obj2 = 0 ;
19507 PyObject * obj3 = 0 ;
19510 if (!PyArg_UnpackTuple(args,
"Solver_FixedInterval", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
19515 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19520 arg2 = static_cast< int64_t >(val2);
19525 arg3 = static_cast< int64_t >(val3);
19527 std::string *ptr = (std::string *)0;
19555 PyObject *resultobj = 0;
19564 std::string *arg9 = 0 ;
19582 PyObject * obj0 = 0 ;
19583 PyObject * obj1 = 0 ;
19584 PyObject * obj2 = 0 ;
19585 PyObject * obj3 = 0 ;
19586 PyObject * obj4 = 0 ;
19587 PyObject * obj5 = 0 ;
19588 PyObject * obj6 = 0 ;
19589 PyObject * obj7 = 0 ;
19590 PyObject * obj8 = 0 ;
19593 if (!PyArg_UnpackTuple(args,
"Solver_IntervalVar", 9, 9, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7, &obj8))
SWIG_fail;
19598 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19603 arg2 = static_cast< int64_t >(val2);
19608 arg3 = static_cast< int64_t >(val3);
19613 arg4 = static_cast< int64_t >(val4);
19618 arg5 = static_cast< int64_t >(val5);
19623 arg6 = static_cast< int64_t >(val6);
19628 arg7 = static_cast< int64_t >(val7);
19633 arg8 = static_cast< bool >(val8);
19635 std::string *ptr = (std::string *)0;
19663 PyObject *resultobj = 0;
19668 PyObject * obj0 = 0 ;
19669 PyObject * obj1 = 0 ;
19672 if (!PyArg_UnpackTuple(args,
"Solver_MirrorInterval", 2, 2, &obj0, &obj1))
SWIG_fail;
19677 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19697 PyObject *resultobj = 0;
19708 PyObject * obj0 = 0 ;
19709 PyObject * obj1 = 0 ;
19710 PyObject * obj2 = 0 ;
19711 PyObject * obj3 = 0 ;
19714 if (!PyArg_UnpackTuple(args,
"Solver_FixedDurationStartSyncedOnStartIntervalVar", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
19717 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FixedDurationStartSyncedOnStartIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19719 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19725 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "Solver_FixedDurationStartSyncedOnStartIntervalVar" "', argument " "3"" of type '" "int64_t""'");
19727 arg3 = static_cast< int64_t >(val3);
19730 SWIG_exception_fail(
SWIG_ArgError(ecode4),
"in method '" "Solver_FixedDurationStartSyncedOnStartIntervalVar" "', argument " "4"" of type '" "int64_t""'");
19732 arg4 = static_cast< int64_t >(val4);
19749 PyObject *resultobj = 0;
19760 PyObject * obj0 = 0 ;
19761 PyObject * obj1 = 0 ;
19762 PyObject * obj2 = 0 ;
19763 PyObject * obj3 = 0 ;
19766 if (!PyArg_UnpackTuple(args,
"Solver_FixedDurationStartSyncedOnEndIntervalVar", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
19769 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FixedDurationStartSyncedOnEndIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19771 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19779 arg3 = static_cast< int64_t >(val3);
19784 arg4 = static_cast< int64_t >(val4);
19801 PyObject *resultobj = 0;
19812 PyObject * obj0 = 0 ;
19813 PyObject * obj1 = 0 ;
19814 PyObject * obj2 = 0 ;
19815 PyObject * obj3 = 0 ;
19818 if (!PyArg_UnpackTuple(args,
"Solver_FixedDurationEndSyncedOnStartIntervalVar", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
19821 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FixedDurationEndSyncedOnStartIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19823 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19831 arg3 = static_cast< int64_t >(val3);
19836 arg4 = static_cast< int64_t >(val4);
19853 PyObject *resultobj = 0;
19864 PyObject * obj0 = 0 ;
19865 PyObject * obj1 = 0 ;
19866 PyObject * obj2 = 0 ;
19867 PyObject * obj3 = 0 ;
19870 if (!PyArg_UnpackTuple(args,
"Solver_FixedDurationEndSyncedOnEndIntervalVar", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
19873 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FixedDurationEndSyncedOnEndIntervalVar" "', argument " "1"" of type '" "operations_research::Solver *""'");
19875 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19883 arg3 = static_cast< int64_t >(val3);
19888 arg4 = static_cast< int64_t >(val4);
19905 PyObject *resultobj = 0;
19910 PyObject * obj0 = 0 ;
19911 PyObject * obj1 = 0 ;
19914 if (!PyArg_UnpackTuple(args,
"Solver_IntervalRelaxedMin", 2, 2, &obj0, &obj1))
SWIG_fail;
19919 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19939 PyObject *resultobj = 0;
19944 PyObject * obj0 = 0 ;
19945 PyObject * obj1 = 0 ;
19948 if (!PyArg_UnpackTuple(args,
"Solver_IntervalRelaxedMax", 2, 2, &obj0, &obj1))
SWIG_fail;
19953 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
19973 PyObject *resultobj = 0;
19980 PyObject * obj0 = 0 ;
19981 PyObject * obj1 = 0 ;
19982 PyObject * obj2 = 0 ;
19983 PyObject * obj3 = 0 ;
19986 if (!PyArg_UnpackTuple(args,
"Solver_TemporalDisjunction", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
19991 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20017 PyObject *resultobj = 0;
20023 PyObject * obj0 = 0 ;
20024 PyObject * obj1 = 0 ;
20025 PyObject * obj2 = 0 ;
20028 if (!PyArg_UnpackTuple(args,
"Solver_TemporalDisjunction", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
20033 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20057 PyObject *argv[5] = {
20063 argc = PyObject_Length(args);
20064 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
20065 argv[ii] = PyTuple_GET_ITEM(args,ii);
20075 if (_v == 0) PyErr_Clear();
20080 if (_v == 0) PyErr_Clear();
20096 if (_v == 0) PyErr_Clear();
20101 if (_v == 0) PyErr_Clear();
20106 if (_v == 0) PyErr_Clear();
20118 " Possible C/C++ prototypes are:\n" 20119 " operations_research::Solver::MakeTemporalDisjunction(operations_research::IntervalVar *const,operations_research::IntervalVar *const,operations_research::IntVar *const)\n" 20120 " operations_research::Solver::MakeTemporalDisjunction(operations_research::IntervalVar *const,operations_research::IntervalVar *const)\n");
20126 PyObject *resultobj = 0;
20128 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20129 std::string *arg3 = 0 ;
20132 std::vector< operations_research::IntervalVar * > temp2 ;
20134 PyObject * obj0 = 0 ;
20135 PyObject * obj1 = 0 ;
20136 PyObject * obj2 = 0 ;
20139 if (!PyArg_UnpackTuple(args,
"Solver_DisjunctiveConstraint", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
20144 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20146 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20147 if (!PyErr_Occurred())
20154 std::string *ptr = (std::string *)0;
20160 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_DisjunctiveConstraint" "', argument " "3"" of type '" "std::string const &""'");
20182 PyObject *resultobj = 0;
20184 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20185 std::vector< int64_t > *arg3 = 0 ;
20187 std::string *arg5 = 0 ;
20190 std::vector< operations_research::IntervalVar * > temp2 ;
20191 std::vector< int64_t > temp3 ;
20195 PyObject * obj0 = 0 ;
20196 PyObject * obj1 = 0 ;
20197 PyObject * obj2 = 0 ;
20198 PyObject * obj3 = 0 ;
20199 PyObject * obj4 = 0 ;
20202 if (!PyArg_UnpackTuple(args,
"Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
20207 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20209 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20210 if (!PyErr_Occurred())
20217 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
20218 if (!PyErr_Occurred())
20228 arg4 = static_cast< int64_t >(val4);
20230 std::string *ptr = (std::string *)0;
20242 result = (
operations_research::Constraint *)(arg1)->MakeCumulative((std::vector< operations_research::IntervalVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3,arg4,(std::string
const &)*arg5);
20258 PyObject *resultobj = 0;
20260 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20261 std::vector< int > *arg3 = 0 ;
20263 std::string *arg5 = 0 ;
20266 std::vector< operations_research::IntervalVar * > temp2 ;
20267 std::vector< int > temp3 ;
20271 PyObject * obj0 = 0 ;
20272 PyObject * obj1 = 0 ;
20273 PyObject * obj2 = 0 ;
20274 PyObject * obj3 = 0 ;
20275 PyObject * obj4 = 0 ;
20278 if (!PyArg_UnpackTuple(args,
"Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
20283 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20285 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20286 if (!PyErr_Occurred())
20293 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
20294 if (!PyErr_Occurred())
20304 arg4 = static_cast< int64_t >(val4);
20306 std::string *ptr = (std::string *)0;
20318 result = (
operations_research::Constraint *)(arg1)->MakeCumulative((std::vector< operations_research::IntervalVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,arg4,(std::string
const &)*arg5);
20334 PyObject *resultobj = 0;
20336 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20337 std::vector< int64_t > *arg3 = 0 ;
20339 std::string *arg5 = 0 ;
20342 std::vector< operations_research::IntervalVar * > temp2 ;
20343 std::vector< int64_t > temp3 ;
20345 PyObject * obj0 = 0 ;
20346 PyObject * obj1 = 0 ;
20347 PyObject * obj2 = 0 ;
20348 PyObject * obj3 = 0 ;
20349 PyObject * obj4 = 0 ;
20352 if (!PyArg_UnpackTuple(args,
"Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
20357 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20359 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20360 if (!PyErr_Occurred())
20367 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
20368 if (!PyErr_Occurred())
20378 std::string *ptr = (std::string *)0;
20390 result = (
operations_research::Constraint *)(arg1)->MakeCumulative((std::vector< operations_research::IntervalVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3,arg4,(std::string
const &)*arg5);
20406 PyObject *resultobj = 0;
20408 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20409 std::vector< int > *arg3 = 0 ;
20411 std::string *arg5 = 0 ;
20414 std::vector< operations_research::IntervalVar * > temp2 ;
20415 std::vector< int > temp3 ;
20417 PyObject * obj0 = 0 ;
20418 PyObject * obj1 = 0 ;
20419 PyObject * obj2 = 0 ;
20420 PyObject * obj3 = 0 ;
20421 PyObject * obj4 = 0 ;
20424 if (!PyArg_UnpackTuple(args,
"Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
20429 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20431 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20432 if (!PyErr_Occurred())
20439 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
20440 if (!PyErr_Occurred())
20450 std::string *ptr = (std::string *)0;
20462 result = (
operations_research::Constraint *)(arg1)->MakeCumulative((std::vector< operations_research::IntervalVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,arg4,(std::string
const &)*arg5);
20478 PyObject *resultobj = 0;
20480 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20481 std::vector< operations_research::IntVar * > *arg3 = 0 ;
20483 std::string *arg5 = 0 ;
20486 std::vector< operations_research::IntervalVar * > temp2 ;
20487 std::vector< operations_research::IntVar * > temp3 ;
20491 PyObject * obj0 = 0 ;
20492 PyObject * obj1 = 0 ;
20493 PyObject * obj2 = 0 ;
20494 PyObject * obj3 = 0 ;
20495 PyObject * obj4 = 0 ;
20498 if (!PyArg_UnpackTuple(args,
"Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
20503 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20505 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20506 if (!PyErr_Occurred())
20513 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
20514 if (!PyErr_Occurred())
20524 arg4 = static_cast< int64_t >(val4);
20526 std::string *ptr = (std::string *)0;
20538 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);
20554 PyObject *resultobj = 0;
20556 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20557 std::vector< operations_research::IntVar * > *arg3 = 0 ;
20559 std::string *arg5 = 0 ;
20562 std::vector< operations_research::IntervalVar * > temp2 ;
20563 std::vector< operations_research::IntVar * > temp3 ;
20565 PyObject * obj0 = 0 ;
20566 PyObject * obj1 = 0 ;
20567 PyObject * obj2 = 0 ;
20568 PyObject * obj3 = 0 ;
20569 PyObject * obj4 = 0 ;
20572 if (!PyArg_UnpackTuple(args,
"Solver_Cumulative", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
20577 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20579 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20580 if (!PyErr_Occurred())
20587 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
20588 if (!PyErr_Occurred())
20598 std::string *ptr = (std::string *)0;
20610 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);
20627 PyObject *argv[6] = {
20633 argc = PyObject_Length(args);
20634 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
20635 argv[ii] = PyTuple_GET_ITEM(args,ii);
20644 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20647 const bool is_tuple = PyTuple_Check(argv[1]);
20648 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20651 :PyList_GetItem(argv[1], i))) {
20659 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20662 const bool is_tuple = PyTuple_Check(argv[2]);
20663 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20665 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
20666 :PyList_GetItem(argv[2], i))) {
20675 if (_v == 0) PyErr_Clear();
20695 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20698 const bool is_tuple = PyTuple_Check(argv[1]);
20699 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20702 :PyList_GetItem(argv[1], i))) {
20710 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20713 const bool is_tuple = PyTuple_Check(argv[2]);
20714 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20716 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
20717 :PyList_GetItem(argv[2], i))) {
20726 if (_v == 0) PyErr_Clear();
20746 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20749 const bool is_tuple = PyTuple_Check(argv[1]);
20750 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20753 :PyList_GetItem(argv[1], i))) {
20761 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20764 const bool is_tuple = PyTuple_Check(argv[2]);
20765 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20767 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
20768 :PyList_GetItem(argv[2], i))) {
20797 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20800 const bool is_tuple = PyTuple_Check(argv[1]);
20801 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20804 :PyList_GetItem(argv[1], i))) {
20812 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20815 const bool is_tuple = PyTuple_Check(argv[2]);
20816 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20818 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
20819 :PyList_GetItem(argv[2], i))) {
20848 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20851 const bool is_tuple = PyTuple_Check(argv[1]);
20852 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20855 :PyList_GetItem(argv[1], i))) {
20863 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20866 const bool is_tuple = PyTuple_Check(argv[2]);
20867 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20870 :PyList_GetItem(argv[2], i))) {
20879 if (_v == 0) PyErr_Clear();
20899 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
20902 const bool is_tuple = PyTuple_Check(argv[1]);
20903 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
20906 :PyList_GetItem(argv[1], i))) {
20914 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
20917 const bool is_tuple = PyTuple_Check(argv[2]);
20918 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
20921 :PyList_GetItem(argv[2], i))) {
20946 " Possible C/C++ prototypes are:\n" 20947 " operations_research::Solver::MakeCumulative(std::vector< operations_research::IntervalVar * > const &,std::vector< int64_t > const &,int64_t,std::string const &)\n" 20948 " operations_research::Solver::MakeCumulative(std::vector< operations_research::IntervalVar * > const &,std::vector< int > const &,int64_t,std::string const &)\n" 20949 " operations_research::Solver::MakeCumulative(std::vector< operations_research::IntervalVar * > const &,std::vector< int64_t > const &,operations_research::IntVar *const,std::string const &)\n" 20950 " operations_research::Solver::MakeCumulative(std::vector< operations_research::IntervalVar * > const &,std::vector< int > const &,operations_research::IntVar *const,std::string const &)\n" 20951 " operations_research::Solver::MakeCumulative(std::vector< operations_research::IntervalVar * > const &,std::vector< operations_research::IntVar * > const &,int64_t,std::string const &)\n" 20952 " operations_research::Solver::MakeCumulative(std::vector< operations_research::IntervalVar * > const &,std::vector< operations_research::IntVar * > const &,operations_research::IntVar *const,std::string const &)\n");
20958 PyObject *resultobj = 0;
20960 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
20964 std::vector< operations_research::IntervalVar * > temp2 ;
20965 PyObject * obj0 = 0 ;
20966 PyObject * obj1 = 0 ;
20967 PyObject * obj2 = 0 ;
20970 if (!PyArg_UnpackTuple(args,
"Solver_Cover", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
20975 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
20977 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
20978 if (!PyErr_Occurred())
21003 PyObject *resultobj = 0;
21007 PyObject * obj0 = 0 ;
21010 if (!PyArg_UnpackTuple(args,
"Solver_Assignment", 1, 1, &obj0))
SWIG_fail;
21015 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21032 PyObject *resultobj = 0;
21039 PyObject * obj0 = 0 ;
21040 PyObject * obj1 = 0 ;
21043 if (!PyArg_UnpackTuple(args,
"Solver_Assignment", 2, 2, &obj0, &obj1))
SWIG_fail;
21048 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21051 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_Assignment" "', argument " "2"" of type '" "operations_research::Assignment const *const""'");
21053 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
21071 PyObject *argv[3] = {
21077 argc = PyObject_Length(args);
21078 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
21079 argv[ii] = PyTuple_GET_ITEM(args,ii);
21107 " Possible C/C++ prototypes are:\n" 21108 " operations_research::Solver::MakeAssignment()\n" 21109 " operations_research::Solver::MakeAssignment(operations_research::Assignment const *const)\n");
21115 PyObject *resultobj = 0;
21122 PyObject * obj0 = 0 ;
21123 PyObject * obj1 = 0 ;
21126 if (!PyArg_UnpackTuple(args,
"Solver_FirstSolutionCollector", 2, 2, &obj0, &obj1))
SWIG_fail;
21129 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FirstSolutionCollector" "', argument " "1"" of type '" "operations_research::Solver *""'");
21131 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21134 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_FirstSolutionCollector" "', argument " "2"" of type '" "operations_research::Assignment const *const""'");
21136 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
21153 PyObject *resultobj = 0;
21157 PyObject * obj0 = 0 ;
21160 if (!PyArg_UnpackTuple(args,
"Solver_FirstSolutionCollector", 1, 1, &obj0))
SWIG_fail;
21163 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_FirstSolutionCollector" "', argument " "1"" of type '" "operations_research::Solver *""'");
21165 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21183 PyObject *argv[3] = {
21189 argc = PyObject_Length(args);
21190 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
21191 argv[ii] = PyTuple_GET_ITEM(args,ii);
21219 " Possible C/C++ prototypes are:\n" 21220 " operations_research::Solver::MakeFirstSolutionCollector(operations_research::Assignment const *const)\n" 21221 " operations_research::Solver::MakeFirstSolutionCollector()\n");
21227 PyObject *resultobj = 0;
21234 PyObject * obj0 = 0 ;
21235 PyObject * obj1 = 0 ;
21238 if (!PyArg_UnpackTuple(args,
"Solver_LastSolutionCollector", 2, 2, &obj0, &obj1))
SWIG_fail;
21243 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21246 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_LastSolutionCollector" "', argument " "2"" of type '" "operations_research::Assignment const *const""'");
21248 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
21265 PyObject *resultobj = 0;
21269 PyObject * obj0 = 0 ;
21272 if (!PyArg_UnpackTuple(args,
"Solver_LastSolutionCollector", 1, 1, &obj0))
SWIG_fail;
21277 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21295 PyObject *argv[3] = {
21301 argc = PyObject_Length(args);
21302 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
21303 argv[ii] = PyTuple_GET_ITEM(args,ii);
21331 " Possible C/C++ prototypes are:\n" 21332 " operations_research::Solver::MakeLastSolutionCollector(operations_research::Assignment const *const)\n" 21333 " operations_research::Solver::MakeLastSolutionCollector()\n");
21339 PyObject *resultobj = 0;
21349 PyObject * obj0 = 0 ;
21350 PyObject * obj1 = 0 ;
21351 PyObject * obj2 = 0 ;
21354 if (!PyArg_UnpackTuple(args,
"Solver_BestValueSolutionCollector", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
21357 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_BestValueSolutionCollector" "', argument " "1"" of type '" "operations_research::Solver *""'");
21359 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21362 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_BestValueSolutionCollector" "', argument " "2"" of type '" "operations_research::Assignment const *const""'");
21364 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
21369 arg3 = static_cast< bool >(val3);
21386 PyObject *resultobj = 0;
21393 PyObject * obj0 = 0 ;
21394 PyObject * obj1 = 0 ;
21397 if (!PyArg_UnpackTuple(args,
"Solver_BestValueSolutionCollector", 2, 2, &obj0, &obj1))
SWIG_fail;
21400 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_BestValueSolutionCollector" "', argument " "1"" of type '" "operations_research::Solver *""'");
21402 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21407 arg2 = static_cast< bool >(val2);
21425 PyObject *argv[4] = {
21431 argc = PyObject_Length(args);
21432 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
21433 argv[ii] = PyTuple_GET_ITEM(args,ii);
21473 " Possible C/C++ prototypes are:\n" 21474 " operations_research::Solver::MakeBestValueSolutionCollector(operations_research::Assignment const *const,bool)\n" 21475 " operations_research::Solver::MakeBestValueSolutionCollector(bool)\n");
21481 PyObject *resultobj = 0;
21488 PyObject * obj0 = 0 ;
21489 PyObject * obj1 = 0 ;
21492 if (!PyArg_UnpackTuple(args,
"Solver_AllSolutionCollector", 2, 2, &obj0, &obj1))
SWIG_fail;
21497 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21500 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_AllSolutionCollector" "', argument " "2"" of type '" "operations_research::Assignment const *const""'");
21502 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
21519 PyObject *resultobj = 0;
21523 PyObject * obj0 = 0 ;
21526 if (!PyArg_UnpackTuple(args,
"Solver_AllSolutionCollector", 1, 1, &obj0))
SWIG_fail;
21531 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21549 PyObject *argv[3] = {
21555 argc = PyObject_Length(args);
21556 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
21557 argv[ii] = PyTuple_GET_ITEM(args,ii);
21585 " Possible C/C++ prototypes are:\n" 21586 " operations_research::Solver::MakeAllSolutionCollector(operations_research::Assignment const *const)\n" 21587 " operations_research::Solver::MakeAllSolutionCollector()\n");
21593 PyObject *resultobj = 0;
21601 PyObject * obj0 = 0 ;
21602 PyObject * obj1 = 0 ;
21603 PyObject * obj2 = 0 ;
21606 if (!PyArg_UnpackTuple(args,
"Solver_Minimize", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
21611 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21619 arg3 = static_cast< int64_t >(val3);
21636 PyObject *resultobj = 0;
21644 PyObject * obj0 = 0 ;
21645 PyObject * obj1 = 0 ;
21646 PyObject * obj2 = 0 ;
21649 if (!PyArg_UnpackTuple(args,
"Solver_Maximize", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
21654 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21662 arg3 = static_cast< int64_t >(val3);
21679 PyObject *resultobj = 0;
21690 PyObject * obj0 = 0 ;
21691 PyObject * obj1 = 0 ;
21692 PyObject * obj2 = 0 ;
21693 PyObject * obj3 = 0 ;
21696 if (!PyArg_UnpackTuple(args,
"Solver_Optimize", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
21701 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21706 arg2 = static_cast< bool >(val2);
21714 arg4 = static_cast< int64_t >(val4);
21731 PyObject *resultobj = 0;
21733 std::vector< operations_research::IntVar * > *arg2 = 0 ;
21734 std::vector< int64_t > *arg3 = 0 ;
21738 std::vector< operations_research::IntVar * > temp2 ;
21739 std::vector< int64_t > temp3 ;
21742 PyObject * obj0 = 0 ;
21743 PyObject * obj1 = 0 ;
21744 PyObject * obj2 = 0 ;
21745 PyObject * obj3 = 0 ;
21748 if (!PyArg_UnpackTuple(args,
"Solver_WeightedMinimize", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
21753 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21755 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
21756 if (!PyErr_Occurred())
21763 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
21764 if (!PyErr_Occurred())
21774 arg4 = static_cast< int64_t >(val4);
21777 result = (
operations_research::OptimizeVar *)(arg1)->MakeWeightedMinimize((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3,arg4);
21791 PyObject *resultobj = 0;
21793 std::vector< operations_research::IntVar * > *arg2 = 0 ;
21794 std::vector< int > *arg3 = 0 ;
21798 std::vector< operations_research::IntVar * > temp2 ;
21799 std::vector< int > temp3 ;
21802 PyObject * obj0 = 0 ;
21803 PyObject * obj1 = 0 ;
21804 PyObject * obj2 = 0 ;
21805 PyObject * obj3 = 0 ;
21808 if (!PyArg_UnpackTuple(args,
"Solver_WeightedMinimize", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
21813 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21815 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
21816 if (!PyErr_Occurred())
21823 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
21824 if (!PyErr_Occurred())
21834 arg4 = static_cast< int64_t >(val4);
21837 result = (
operations_research::OptimizeVar *)(arg1)->MakeWeightedMinimize((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,arg4);
21852 PyObject *argv[5] = {
21858 argc = PyObject_Length(args);
21859 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
21860 argv[ii] = PyTuple_GET_ITEM(args,ii);
21869 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
21872 const bool is_tuple = PyTuple_Check(argv[1]);
21873 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
21876 :PyList_GetItem(argv[1], i))) {
21884 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
21887 const bool is_tuple = PyTuple_Check(argv[2]);
21888 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
21890 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
21891 :PyList_GetItem(argv[2], i))) {
21916 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
21919 const bool is_tuple = PyTuple_Check(argv[1]);
21920 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
21923 :PyList_GetItem(argv[1], i))) {
21931 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
21934 const bool is_tuple = PyTuple_Check(argv[2]);
21935 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
21937 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
21938 :PyList_GetItem(argv[2], i))) {
21959 " Possible C/C++ prototypes are:\n" 21960 " operations_research::Solver::MakeWeightedMinimize(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,int64_t)\n" 21961 " operations_research::Solver::MakeWeightedMinimize(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,int64_t)\n");
21967 PyObject *resultobj = 0;
21969 std::vector< operations_research::IntVar * > *arg2 = 0 ;
21970 std::vector< int64_t > *arg3 = 0 ;
21974 std::vector< operations_research::IntVar * > temp2 ;
21975 std::vector< int64_t > temp3 ;
21978 PyObject * obj0 = 0 ;
21979 PyObject * obj1 = 0 ;
21980 PyObject * obj2 = 0 ;
21981 PyObject * obj3 = 0 ;
21984 if (!PyArg_UnpackTuple(args,
"Solver_WeightedMaximize", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
21989 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
21991 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
21992 if (!PyErr_Occurred())
21999 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
22000 if (!PyErr_Occurred())
22010 arg4 = static_cast< int64_t >(val4);
22013 result = (
operations_research::OptimizeVar *)(arg1)->MakeWeightedMaximize((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3,arg4);
22027 PyObject *resultobj = 0;
22029 std::vector< operations_research::IntVar * > *arg2 = 0 ;
22030 std::vector< int > *arg3 = 0 ;
22034 std::vector< operations_research::IntVar * > temp2 ;
22035 std::vector< int > temp3 ;
22038 PyObject * obj0 = 0 ;
22039 PyObject * obj1 = 0 ;
22040 PyObject * obj2 = 0 ;
22041 PyObject * obj3 = 0 ;
22044 if (!PyArg_UnpackTuple(args,
"Solver_WeightedMaximize", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
22049 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22051 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
22052 if (!PyErr_Occurred())
22059 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
22060 if (!PyErr_Occurred())
22070 arg4 = static_cast< int64_t >(val4);
22073 result = (
operations_research::OptimizeVar *)(arg1)->MakeWeightedMaximize((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int >
const &)*arg3,arg4);
22088 PyObject *argv[5] = {
22094 argc = PyObject_Length(args);
22095 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
22096 argv[ii] = PyTuple_GET_ITEM(args,ii);
22105 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
22108 const bool is_tuple = PyTuple_Check(argv[1]);
22109 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
22112 :PyList_GetItem(argv[1], i))) {
22120 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
22123 const bool is_tuple = PyTuple_Check(argv[2]);
22124 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
22126 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
22127 :PyList_GetItem(argv[2], i))) {
22152 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
22155 const bool is_tuple = PyTuple_Check(argv[1]);
22156 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
22159 :PyList_GetItem(argv[1], i))) {
22167 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
22170 const bool is_tuple = PyTuple_Check(argv[2]);
22171 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
22173 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
22174 :PyList_GetItem(argv[2], i))) {
22195 " Possible C/C++ prototypes are:\n" 22196 " operations_research::Solver::MakeWeightedMaximize(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,int64_t)\n" 22197 " operations_research::Solver::MakeWeightedMaximize(std::vector< operations_research::IntVar * > const &,std::vector< int > const &,int64_t)\n");
22203 PyObject *resultobj = 0;
22206 std::vector< operations_research::IntVar * > *arg3 = 0 ;
22207 std::vector< int64_t > *arg4 = 0 ;
22213 std::vector< operations_research::IntVar * > temp3 ;
22214 std::vector< int64_t > temp4 ;
22217 PyObject * obj0 = 0 ;
22218 PyObject * obj1 = 0 ;
22219 PyObject * obj2 = 0 ;
22220 PyObject * obj3 = 0 ;
22221 PyObject * obj4 = 0 ;
22224 if (!PyArg_UnpackTuple(args,
"Solver_WeightedOptimize", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
22229 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22234 arg2 = static_cast< bool >(val2);
22236 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
22237 if (!PyErr_Occurred())
22244 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
22245 if (!PyErr_Occurred())
22255 arg5 = static_cast< int64_t >(val5);
22258 result = (
operations_research::OptimizeVar *)(arg1)->MakeWeightedOptimize(arg2,(std::vector< operations_research::IntVar * >
const &)*arg3,(std::vector< int64_t >
const &)*arg4,arg5);
22272 PyObject *resultobj = 0;
22275 std::vector< operations_research::IntVar * > *arg3 = 0 ;
22276 std::vector< int > *arg4 = 0 ;
22282 std::vector< operations_research::IntVar * > temp3 ;
22283 std::vector< int > temp4 ;
22286 PyObject * obj0 = 0 ;
22287 PyObject * obj1 = 0 ;
22288 PyObject * obj2 = 0 ;
22289 PyObject * obj3 = 0 ;
22290 PyObject * obj4 = 0 ;
22293 if (!PyArg_UnpackTuple(args,
"Solver_WeightedOptimize", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
22298 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22303 arg2 = static_cast< bool >(val2);
22305 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
22306 if (!PyErr_Occurred())
22313 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
22314 if (!PyErr_Occurred())
22324 arg5 = static_cast< int64_t >(val5);
22327 result = (
operations_research::OptimizeVar *)(arg1)->MakeWeightedOptimize(arg2,(std::vector< operations_research::IntVar * >
const &)*arg3,(std::vector< int >
const &)*arg4,arg5);
22342 PyObject *argv[6] = {
22348 argc = PyObject_Length(args);
22349 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
22350 argv[ii] = PyTuple_GET_ITEM(args,ii);
22364 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
22367 const bool is_tuple = PyTuple_Check(argv[2]);
22368 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
22371 :PyList_GetItem(argv[2], i))) {
22379 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
22382 const bool is_tuple = PyTuple_Check(argv[3]);
22383 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
22385 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
22386 :PyList_GetItem(argv[3], i))) {
22417 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
22420 const bool is_tuple = PyTuple_Check(argv[2]);
22421 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
22424 :PyList_GetItem(argv[2], i))) {
22432 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
22435 const bool is_tuple = PyTuple_Check(argv[3]);
22436 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
22438 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
22439 :PyList_GetItem(argv[3], i))) {
22461 " Possible C/C++ prototypes are:\n" 22462 " operations_research::Solver::MakeWeightedOptimize(bool,std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &,int64_t)\n" 22463 " operations_research::Solver::MakeWeightedOptimize(bool,std::vector< operations_research::IntVar * > const &,std::vector< int > const &,int64_t)\n");
22469 PyObject *resultobj = 0;
22474 std::vector< operations_research::IntVar * > *arg5 = 0 ;
22484 std::vector< operations_research::IntVar * > temp5 ;
22491 PyObject * obj0 = 0 ;
22492 PyObject * obj1 = 0 ;
22493 PyObject * obj2 = 0 ;
22494 PyObject * obj3 = 0 ;
22495 PyObject * obj4 = 0 ;
22496 PyObject * obj5 = 0 ;
22497 PyObject * obj6 = 0 ;
22498 PyObject * obj7 = 0 ;
22501 if (!PyArg_UnpackTuple(args,
"Solver_TabuSearch", 8, 8, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7))
SWIG_fail;
22506 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22511 arg2 = static_cast< bool >(val2);
22519 arg4 = static_cast< int64_t >(val4);
22521 if (!vector_input_helper(obj4, &temp5, PyObjAs<operations_research::IntVar*>)) {
22522 if (!PyErr_Occurred())
22532 arg6 = static_cast< int64_t >(val6);
22537 arg7 = static_cast< int64_t >(val7);
22542 arg8 = static_cast< double >(val8);
22559 PyObject *resultobj = 0;
22573 PyObject * obj0 = 0 ;
22574 PyObject * obj1 = 0 ;
22575 PyObject * obj2 = 0 ;
22576 PyObject * obj3 = 0 ;
22577 PyObject * obj4 = 0 ;
22580 if (!PyArg_UnpackTuple(args,
"Solver_SimulatedAnnealing", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
22585 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22590 arg2 = static_cast< bool >(val2);
22598 arg4 = static_cast< int64_t >(val4);
22603 arg5 = static_cast< int64_t >(val5);
22620 PyObject *resultobj = 0;
22626 std::vector< operations_research::IntVar * > *arg6 = 0 ;
22634 std::vector< operations_research::IntVar * > temp6 ;
22637 PyObject * obj0 = 0 ;
22638 PyObject * obj1 = 0 ;
22639 PyObject * obj2 = 0 ;
22640 PyObject * obj3 = 0 ;
22641 PyObject * obj4 = 0 ;
22642 PyObject * obj5 = 0 ;
22643 PyObject * obj6 = 0 ;
22646 if (!PyArg_UnpackTuple(args,
"Solver_GuidedLocalSearch", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6))
SWIG_fail;
22651 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22656 arg2 = static_cast< bool >(val2);
22662 arg4 = [
input](int64_t i, int64_t j) {
22663 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
22670 arg5 = static_cast< int64_t >(val5);
22672 if (!vector_input_helper(obj5, &temp6, PyObjAs<operations_research::IntVar*>)) {
22673 if (!PyErr_Occurred())
22683 arg7 = static_cast< double >(val7);
22700 PyObject *resultobj = 0;
22706 std::vector< operations_research::IntVar * > *arg6 = 0 ;
22707 std::vector< operations_research::IntVar * > *arg7 = 0 ;
22715 std::vector< operations_research::IntVar * > temp6 ;
22716 std::vector< operations_research::IntVar * > temp7 ;
22719 PyObject * obj0 = 0 ;
22720 PyObject * obj1 = 0 ;
22721 PyObject * obj2 = 0 ;
22722 PyObject * obj3 = 0 ;
22723 PyObject * obj4 = 0 ;
22724 PyObject * obj5 = 0 ;
22725 PyObject * obj6 = 0 ;
22726 PyObject * obj7 = 0 ;
22729 if (!PyArg_UnpackTuple(args,
"Solver_GuidedLocalSearch", 8, 8, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7))
SWIG_fail;
22734 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22739 arg2 = static_cast< bool >(val2);
22745 arg4 = [
input](int64_t i, int64_t j, int64_t k) {
22746 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LLL", i, j, k);
22753 arg5 = static_cast< int64_t >(val5);
22755 if (!vector_input_helper(obj5, &temp6, PyObjAs<operations_research::IntVar*>)) {
22756 if (!PyErr_Occurred())
22763 if (!vector_input_helper(obj6, &temp7, PyObjAs<operations_research::IntVar*>)) {
22764 if (!PyErr_Occurred())
22774 arg8 = static_cast< double >(val8);
22777 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);
22791 PyObject *resultobj = 0;
22798 PyObject * obj0 = 0 ;
22799 PyObject * obj1 = 0 ;
22802 if (!PyArg_UnpackTuple(args,
"Solver_LubyRestart", 2, 2, &obj0, &obj1))
SWIG_fail;
22807 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22812 arg2 = static_cast< int >(val2);
22829 PyObject *resultobj = 0;
22836 PyObject * obj0 = 0 ;
22837 PyObject * obj1 = 0 ;
22840 if (!PyArg_UnpackTuple(args,
"Solver_ConstantRestart", 2, 2, &obj0, &obj1))
SWIG_fail;
22845 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22850 arg2 = static_cast< int >(val2);
22867 PyObject *resultobj = 0;
22869 absl::Duration arg2 ;
22874 PyObject * obj0 = 0 ;
22875 PyObject * obj1 = 0 ;
22878 if (!PyArg_UnpackTuple(args,
"Solver_TimeLimit", 2, 2, &obj0, &obj1))
SWIG_fail;
22883 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22892 absl::Duration * temp = reinterpret_cast< absl::Duration * >(argp2);
22913 PyObject *resultobj = 0;
22920 PyObject * obj0 = 0 ;
22921 PyObject * obj1 = 0 ;
22924 if (!PyArg_UnpackTuple(args,
"Solver_TimeLimit", 2, 2, &obj0, &obj1))
SWIG_fail;
22929 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
22934 arg2 = static_cast< int64_t >(val2);
22952 PyObject *argv[3] = {
22958 argc = PyObject_Length(args);
22959 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
22960 argv[ii] = PyTuple_GET_ITEM(args,ii);
22993 " Possible C/C++ prototypes are:\n" 22994 " operations_research::Solver::MakeTimeLimit(absl::Duration)\n" 22995 " operations_research::Solver::MakeTimeLimit(int64_t)\n");
23001 PyObject *resultobj = 0;
23008 PyObject * obj0 = 0 ;
23009 PyObject * obj1 = 0 ;
23012 if (!PyArg_UnpackTuple(args,
"Solver_BranchesLimit", 2, 2, &obj0, &obj1))
SWIG_fail;
23017 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23022 arg2 = static_cast< int64_t >(val2);
23039 PyObject *resultobj = 0;
23046 PyObject * obj0 = 0 ;
23047 PyObject * obj1 = 0 ;
23050 if (!PyArg_UnpackTuple(args,
"Solver_FailuresLimit", 2, 2, &obj0, &obj1))
SWIG_fail;
23055 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23060 arg2 = static_cast< int64_t >(val2);
23077 PyObject *resultobj = 0;
23084 PyObject * obj0 = 0 ;
23085 PyObject * obj1 = 0 ;
23088 if (!PyArg_UnpackTuple(args,
"Solver_SolutionsLimit", 2, 2, &obj0, &obj1))
SWIG_fail;
23093 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23098 arg2 = static_cast< int64_t >(val2);
23115 PyObject *resultobj = 0;
23117 absl::Duration arg2 ;
23137 PyObject * obj0 = 0 ;
23138 PyObject * obj1 = 0 ;
23139 PyObject * obj2 = 0 ;
23140 PyObject * obj3 = 0 ;
23141 PyObject * obj4 = 0 ;
23142 PyObject * obj5 = 0 ;
23143 PyObject * obj6 = 0 ;
23146 if (!PyArg_UnpackTuple(args,
"Solver_Limit", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6))
SWIG_fail;
23151 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23160 absl::Duration * temp = reinterpret_cast< absl::Duration * >(argp2);
23169 arg3 = static_cast< int64_t >(val3);
23174 arg4 = static_cast< int64_t >(val4);
23179 arg5 = static_cast< int64_t >(val5);
23184 arg6 = static_cast< bool >(val6);
23189 arg7 = static_cast< bool >(val7);
23206 PyObject *resultobj = 0;
23208 absl::Duration arg2 ;
23225 PyObject * obj0 = 0 ;
23226 PyObject * obj1 = 0 ;
23227 PyObject * obj2 = 0 ;
23228 PyObject * obj3 = 0 ;
23229 PyObject * obj4 = 0 ;
23230 PyObject * obj5 = 0 ;
23233 if (!PyArg_UnpackTuple(args,
"Solver_Limit", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
23238 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23247 absl::Duration * temp = reinterpret_cast< absl::Duration * >(argp2);
23256 arg3 = static_cast< int64_t >(val3);
23261 arg4 = static_cast< int64_t >(val4);
23266 arg5 = static_cast< int64_t >(val5);
23271 arg6 = static_cast< bool >(val6);
23288 PyObject *resultobj = 0;
23290 absl::Duration arg2 ;
23304 PyObject * obj0 = 0 ;
23305 PyObject * obj1 = 0 ;
23306 PyObject * obj2 = 0 ;
23307 PyObject * obj3 = 0 ;
23308 PyObject * obj4 = 0 ;
23311 if (!PyArg_UnpackTuple(args,
"Solver_Limit", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
23316 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23325 absl::Duration * temp = reinterpret_cast< absl::Duration * >(argp2);
23334 arg3 = static_cast< int64_t >(val3);
23339 arg4 = static_cast< int64_t >(val4);
23344 arg5 = static_cast< int64_t >(val5);
23361 PyObject *resultobj = 0;
23366 PyObject * obj0 = 0 ;
23367 PyObject * obj1 = 0 ;
23370 if (!PyArg_UnpackTuple(args,
"Solver_Limit", 2, 2, &obj0, &obj1))
SWIG_fail;
23375 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23378 PyObject*
const pyresult = PyObject_CallMethod(
23379 obj1, const_cast<char*>(
"SerializeToString"),
nullptr);
23380 if (pyresult !=
nullptr) {
23381 char* buffer =
nullptr;
23382 Py_ssize_t length = 0;
23383 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
23384 if (buffer !=
nullptr) {
23385 arg2->ParseFromArray(buffer, length);
23387 Py_DECREF(pyresult);
23412 PyObject *resultobj = 0;
23434 PyObject * obj0 = 0 ;
23435 PyObject * obj1 = 0 ;
23436 PyObject * obj2 = 0 ;
23437 PyObject * obj3 = 0 ;
23438 PyObject * obj4 = 0 ;
23439 PyObject * obj5 = 0 ;
23440 PyObject * obj6 = 0 ;
23443 if (!PyArg_UnpackTuple(args,
"Solver_Limit", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6))
SWIG_fail;
23448 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23453 arg2 = static_cast< int64_t >(val2);
23458 arg3 = static_cast< int64_t >(val3);
23463 arg4 = static_cast< int64_t >(val4);
23468 arg5 = static_cast< int64_t >(val5);
23473 arg6 = static_cast< bool >(val6);
23478 arg7 = static_cast< bool >(val7);
23495 PyObject *resultobj = 0;
23514 PyObject * obj0 = 0 ;
23515 PyObject * obj1 = 0 ;
23516 PyObject * obj2 = 0 ;
23517 PyObject * obj3 = 0 ;
23518 PyObject * obj4 = 0 ;
23519 PyObject * obj5 = 0 ;
23522 if (!PyArg_UnpackTuple(args,
"Solver_Limit", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
23527 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23532 arg2 = static_cast< int64_t >(val2);
23537 arg3 = static_cast< int64_t >(val3);
23542 arg4 = static_cast< int64_t >(val4);
23547 arg5 = static_cast< int64_t >(val5);
23552 arg6 = static_cast< bool >(val6);
23569 PyObject *resultobj = 0;
23585 PyObject * obj0 = 0 ;
23586 PyObject * obj1 = 0 ;
23587 PyObject * obj2 = 0 ;
23588 PyObject * obj3 = 0 ;
23589 PyObject * obj4 = 0 ;
23592 if (!PyArg_UnpackTuple(args,
"Solver_Limit", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
23597 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23602 arg2 = static_cast< int64_t >(val2);
23607 arg3 = static_cast< int64_t >(val3);
23612 arg4 = static_cast< int64_t >(val4);
23617 arg5 = static_cast< int64_t >(val5);
23634 PyObject *resultobj = 0;
23644 PyObject * obj0 = 0 ;
23645 PyObject * obj1 = 0 ;
23646 PyObject * obj2 = 0 ;
23649 if (!PyArg_UnpackTuple(args,
"Solver_Limit", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
23654 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
23659 arg2 = reinterpret_cast< operations_research::SearchLimit * >(argp2);
23664 arg3 = reinterpret_cast< operations_research::SearchLimit * >(argp3);
23682 PyObject *argv[8] = {
23688 argc = PyObject_Length(args);
23689 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
23690 argv[ii] = PyTuple_GET_ITEM(args,ii);
23700 PyObject*
const module = PyImport_ImportModule(
"ortools.constraint_solver.search_limit_pb2");
23701 if (module !=
nullptr) {
23702 PyObject*
const dict = PyModule_GetDict(module);
23703 if (dict !=
nullptr) {
23704 PyObject*
const clss = PyDict_GetItemString(dict,
"RegularLimitParameters");
23705 if (clss !=
nullptr) {
23706 if (PyObject_IsInstance(argv[1], clss)) {
23970 " Possible C/C++ prototypes are:\n" 23971 " operations_research::Solver::MakeLimit(absl::Duration,int64_t,int64_t,int64_t,bool,bool)\n" 23972 " operations_research::Solver::MakeLimit(absl::Duration,int64_t,int64_t,int64_t,bool)\n" 23973 " operations_research::Solver::MakeLimit(absl::Duration,int64_t,int64_t,int64_t)\n" 23974 " operations_research::Solver::MakeLimit(operations_research::RegularLimitParameters const &)\n" 23975 " operations_research::Solver::MakeLimit(int64_t,int64_t,int64_t,int64_t,bool,bool)\n" 23976 " operations_research::Solver::MakeLimit(int64_t,int64_t,int64_t,int64_t,bool)\n" 23977 " operations_research::Solver::MakeLimit(int64_t,int64_t,int64_t,int64_t)\n" 23978 " operations_research::Solver::MakeLimit(operations_research::SearchLimit *const,operations_research::SearchLimit *const)\n");
23984 PyObject *resultobj = 0;
23986 std::function< bool () > arg2 ;
23989 PyObject * obj0 = 0 ;
23990 PyObject * obj1 = 0 ;
23993 if (!PyArg_UnpackTuple(args,
"Solver_CustomLimit", 2, 2, &obj0, &obj1))
SWIG_fail;
23998 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24002 return InvokePythonCallableReturning<bool>(
input.get());
24021 PyObject *resultobj = 0;
24028 PyObject * obj0 = 0 ;
24029 PyObject * obj1 = 0 ;
24032 if (!PyArg_UnpackTuple(args,
"Solver_SearchLog", 2, 2, &obj0, &obj1))
SWIG_fail;
24037 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24042 arg2 = static_cast< int >(val2);
24059 PyObject *resultobj = 0;
24067 PyObject * obj0 = 0 ;
24068 PyObject * obj1 = 0 ;
24069 PyObject * obj2 = 0 ;
24072 if (!PyArg_UnpackTuple(args,
"Solver_SearchLog", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
24077 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24082 arg2 = static_cast< int >(val2);
24102 PyObject *resultobj = 0;
24105 SwigValueWrapper< std::function< std::string () > > arg3 ;
24110 PyObject * obj0 = 0 ;
24111 PyObject * obj1 = 0 ;
24112 PyObject * obj2 = 0 ;
24115 if (!PyArg_UnpackTuple(args,
"Solver_SearchLog", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
24120 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24125 arg2 = static_cast< int >(val2);
24129 return InvokePythonCallableReturning<std::string>(
input.get());
24148 PyObject *resultobj = 0;
24152 SwigValueWrapper< std::function< std::string () > > arg4 ;
24159 PyObject * obj0 = 0 ;
24160 PyObject * obj1 = 0 ;
24161 PyObject * obj2 = 0 ;
24162 PyObject * obj3 = 0 ;
24165 if (!PyArg_UnpackTuple(args,
"Solver_SearchLog", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
24170 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24175 arg2 = static_cast< int >(val2);
24180 arg3 = reinterpret_cast< operations_research::IntVar * >(argp3);
24184 return InvokePythonCallableReturning<std::string>(
input.get());
24203 PyObject *resultobj = 0;
24213 PyObject * obj0 = 0 ;
24214 PyObject * obj1 = 0 ;
24215 PyObject * obj2 = 0 ;
24218 if (!PyArg_UnpackTuple(args,
"Solver_SearchLog", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
24223 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24228 arg2 = static_cast< int >(val2);
24233 arg3 = reinterpret_cast< operations_research::OptimizeVar * >(argp3);
24250 PyObject *resultobj = 0;
24254 SwigValueWrapper< std::function< std::string () > > arg4 ;
24261 PyObject * obj0 = 0 ;
24262 PyObject * obj1 = 0 ;
24263 PyObject * obj2 = 0 ;
24264 PyObject * obj3 = 0 ;
24267 if (!PyArg_UnpackTuple(args,
"Solver_SearchLog", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
24272 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24277 arg2 = static_cast< int >(val2);
24282 arg3 = reinterpret_cast< operations_research::OptimizeVar * >(argp3);
24286 return InvokePythonCallableReturning<std::string>(
input.get());
24305 PyObject *resultobj = 0;
24312 PyObject * obj0 = 0 ;
24313 PyObject * obj1 = 0 ;
24316 if (!PyArg_UnpackTuple(args,
"Solver_SearchLog", 2, 2, &obj0, &obj1))
SWIG_fail;
24321 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24325 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_SearchLog" "', argument " "2"" of type '" "operations_research::Solver::SearchLogParameters""'");
24328 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_SearchLog" "', argument " "2"" of type '" "operations_research::Solver::SearchLogParameters""'");
24352 PyObject *argv[5] = {
24358 argc = PyObject_Length(args);
24359 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
24360 argv[ii] = PyTuple_GET_ITEM(args,ii);
24402 _v = PyCallable_Check(argv[2]);
24443 if (_v == 0) PyErr_Clear();
24467 _v = PyCallable_Check(argv[3]);
24492 _v = PyCallable_Check(argv[3]);
24504 " Possible C/C++ prototypes are:\n" 24505 " operations_research::Solver::MakeSearchLog(int)\n" 24506 " operations_research::Solver::MakeSearchLog(int,operations_research::IntVar *const)\n" 24507 " operations_research::Solver::MakeSearchLog(int,std::function< std::string () >)\n" 24508 " operations_research::Solver::MakeSearchLog(int,operations_research::IntVar *,std::function< std::string () >)\n" 24509 " operations_research::Solver::MakeSearchLog(int,operations_research::OptimizeVar *const)\n" 24510 " operations_research::Solver::MakeSearchLog(int,operations_research::OptimizeVar *const,std::function< std::string () >)\n" 24511 " operations_research::Solver::MakeSearchLog(operations_research::Solver::SearchLogParameters)\n");
24517 PyObject *resultobj = 0;
24519 std::string *arg2 = 0 ;
24523 PyObject * obj0 = 0 ;
24524 PyObject * obj1 = 0 ;
24527 if (!PyArg_UnpackTuple(args,
"Solver_SearchTrace", 2, 2, &obj0, &obj1))
SWIG_fail;
24532 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24534 std::string *ptr = (std::string *)0;
24562 PyObject *resultobj = 0;
24566 PyObject * obj0 = 0 ;
24569 if (!PyArg_UnpackTuple(args,
"Solver_PrintModelVisitor", 1, 1, &obj0))
SWIG_fail;
24574 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24591 PyObject *resultobj = 0;
24595 PyObject * obj0 = 0 ;
24598 if (!PyArg_UnpackTuple(args,
"Solver_StatisticsModelVisitor", 1, 1, &obj0))
SWIG_fail;
24601 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_StatisticsModelVisitor" "', argument " "1"" of type '" "operations_research::Solver *""'");
24603 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24620 PyObject *resultobj = 0;
24628 PyObject * obj0 = 0 ;
24629 PyObject * obj1 = 0 ;
24630 PyObject * obj2 = 0 ;
24633 if (!PyArg_UnpackTuple(args,
"Solver_AssignVariableValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
24638 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24646 arg3 = static_cast< int64_t >(val3);
24663 PyObject *resultobj = 0;
24671 PyObject * obj0 = 0 ;
24672 PyObject * obj1 = 0 ;
24673 PyObject * obj2 = 0 ;
24676 if (!PyArg_UnpackTuple(args,
"Solver_VariableLessOrEqualValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
24679 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_VariableLessOrEqualValue" "', argument " "1"" of type '" "operations_research::Solver *""'");
24681 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24689 arg3 = static_cast< int64_t >(val3);
24706 PyObject *resultobj = 0;
24714 PyObject * obj0 = 0 ;
24715 PyObject * obj1 = 0 ;
24716 PyObject * obj2 = 0 ;
24719 if (!PyArg_UnpackTuple(args,
"Solver_VariableGreaterOrEqualValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
24722 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_VariableGreaterOrEqualValue" "', argument " "1"" of type '" "operations_research::Solver *""'");
24724 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24732 arg3 = static_cast< int64_t >(val3);
24749 PyObject *resultobj = 0;
24760 PyObject * obj0 = 0 ;
24761 PyObject * obj1 = 0 ;
24762 PyObject * obj2 = 0 ;
24763 PyObject * obj3 = 0 ;
24766 if (!PyArg_UnpackTuple(args,
"Solver_SplitVariableDomain", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
24771 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24779 arg3 = static_cast< int64_t >(val3);
24784 arg4 = static_cast< bool >(val4);
24801 PyObject *resultobj = 0;
24809 PyObject * obj0 = 0 ;
24810 PyObject * obj1 = 0 ;
24811 PyObject * obj2 = 0 ;
24814 if (!PyArg_UnpackTuple(args,
"Solver_AssignVariableValueOrFail", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
24817 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_AssignVariableValueOrFail" "', argument " "1"" of type '" "operations_research::Solver *""'");
24819 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24827 arg3 = static_cast< int64_t >(val3);
24844 PyObject *resultobj = 0;
24846 std::vector< operations_research::IntVar * > *arg2 = 0 ;
24847 std::vector< int64_t > *arg3 = 0 ;
24850 std::vector< operations_research::IntVar * > temp2 ;
24851 std::vector< int64_t > temp3 ;
24852 PyObject * obj0 = 0 ;
24853 PyObject * obj1 = 0 ;
24854 PyObject * obj2 = 0 ;
24857 if (!PyArg_UnpackTuple(args,
"Solver_AssignVariablesValues", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
24862 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24864 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
24865 if (!PyErr_Occurred())
24872 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
24873 if (!PyErr_Occurred())
24881 result = (
operations_research::Decision *)(arg1)->MakeAssignVariablesValues((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3);
24895 PyObject *resultobj = 0;
24899 PyObject * obj0 = 0 ;
24902 if (!PyArg_UnpackTuple(args,
"Solver_FailDecision", 1, 1, &obj0))
SWIG_fail;
24907 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24924 PyObject *resultobj = 0;
24930 PyObject * obj0 = 0 ;
24931 PyObject * obj1 = 0 ;
24932 PyObject * obj2 = 0 ;
24935 if (!PyArg_UnpackTuple(args,
"Solver_Decision", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
24940 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24967 PyObject *resultobj = 0;
24969 std::vector< operations_research::DecisionBuilder * > *arg2 = 0 ;
24972 std::vector< operations_research::DecisionBuilder * > temp2 ;
24973 PyObject * obj0 = 0 ;
24974 PyObject * obj1 = 0 ;
24977 if (!PyArg_UnpackTuple(args,
"Solver_Compose", 2, 2, &obj0, &obj1))
SWIG_fail;
24982 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
24984 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::DecisionBuilder*>)) {
24985 if (!PyErr_Occurred())
25007 PyObject *resultobj = 0;
25009 std::vector< operations_research::DecisionBuilder * > *arg2 = 0 ;
25012 std::vector< operations_research::DecisionBuilder * > temp2 ;
25013 PyObject * obj0 = 0 ;
25014 PyObject * obj1 = 0 ;
25017 if (!PyArg_UnpackTuple(args,
"Solver_Try", 2, 2, &obj0, &obj1))
SWIG_fail;
25022 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25024 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::DecisionBuilder*>)) {
25025 if (!PyErr_Occurred())
25047 PyObject *resultobj = 0;
25049 std::vector< operations_research::IntVar * > *arg2 = 0 ;
25054 std::vector< operations_research::IntVar * > temp2 ;
25059 PyObject * obj0 = 0 ;
25060 PyObject * obj1 = 0 ;
25061 PyObject * obj2 = 0 ;
25062 PyObject * obj3 = 0 ;
25065 if (!PyArg_UnpackTuple(args,
"Solver_Phase", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
25070 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25072 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
25073 if (!PyErr_Occurred())
25083 arg3 = static_cast< operations_research::Solver::IntVarStrategy >(val3);
25086 SWIG_exception_fail(
SWIG_ArgError(ecode4),
"in method '" "Solver_Phase" "', argument " "4"" of type '" "operations_research::Solver::IntValueStrategy""'");
25088 arg4 = static_cast< operations_research::Solver::IntValueStrategy >(val4);
25105 PyObject *resultobj = 0;
25107 std::vector< operations_research::IntVar * > *arg2 = 0 ;
25110 std::vector< operations_research::IntVar * > temp2 ;
25111 PyObject * obj0 = 0 ;
25112 PyObject * obj1 = 0 ;
25115 if (!PyArg_UnpackTuple(args,
"Solver_DefaultPhase", 2, 2, &obj0, &obj1))
SWIG_fail;
25120 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25122 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
25123 if (!PyErr_Occurred())
25145 PyObject *resultobj = 0;
25147 std::vector< operations_research::IntVar * > *arg2 = 0 ;
25151 std::vector< operations_research::IntVar * > temp2 ;
25154 PyObject * obj0 = 0 ;
25155 PyObject * obj1 = 0 ;
25156 PyObject * obj2 = 0 ;
25159 if (!PyArg_UnpackTuple(args,
"Solver_DefaultPhase", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
25164 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25166 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
25167 if (!PyErr_Occurred())
25175 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_DefaultPhase" "', argument " "3"" of type '" "operations_research::DefaultPhaseParameters const &""'");
25178 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_DefaultPhase" "', argument " "3"" of type '" "operations_research::DefaultPhaseParameters const &""'");
25180 arg3 = reinterpret_cast< operations_research::DefaultPhaseParameters * >(argp3);
25198 PyObject *argv[4] = {
25204 argc = PyObject_Length(args);
25205 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
25206 argv[ii] = PyTuple_GET_ITEM(args,ii);
25215 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
25218 const bool is_tuple = PyTuple_Check(argv[1]);
25219 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
25222 :PyList_GetItem(argv[1], i))) {
25240 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
25243 const bool is_tuple = PyTuple_Check(argv[1]);
25244 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
25247 :PyList_GetItem(argv[1], i))) {
25265 " Possible C/C++ prototypes are:\n" 25266 " operations_research::Solver::MakeDefaultPhase(std::vector< operations_research::IntVar * > const &)\n" 25267 " operations_research::Solver::MakeDefaultPhase(std::vector< operations_research::IntVar * > const &,operations_research::DefaultPhaseParameters const &)\n");
25273 PyObject *resultobj = 0;
25277 int64_t *arg4 = (int64_t *) (int64_t *)0 ;
25284 PyObject * obj0 = 0 ;
25285 PyObject * obj1 = 0 ;
25286 PyObject * obj2 = 0 ;
25287 PyObject * obj3 = 0 ;
25290 if (!PyArg_UnpackTuple(args,
"Solver_ScheduleOrPostpone", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
25295 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25303 arg3 = static_cast< int64_t >(val3);
25308 arg4 = reinterpret_cast< int64_t * >(argp4);
25325 PyObject *resultobj = 0;
25329 int64_t *arg4 = (int64_t *) (int64_t *)0 ;
25336 PyObject * obj0 = 0 ;
25337 PyObject * obj1 = 0 ;
25338 PyObject * obj2 = 0 ;
25339 PyObject * obj3 = 0 ;
25342 if (!PyArg_UnpackTuple(args,
"Solver_ScheduleOrExpedite", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
25347 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25355 arg3 = static_cast< int64_t >(val3);
25360 arg4 = reinterpret_cast< int64_t * >(argp4);
25377 PyObject *resultobj = 0;
25385 PyObject * obj0 = 0 ;
25386 PyObject * obj1 = 0 ;
25387 PyObject * obj2 = 0 ;
25390 if (!PyArg_UnpackTuple(args,
"Solver_RankFirstInterval", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
25395 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25403 arg3 = static_cast< int >(val3);
25420 PyObject *resultobj = 0;
25428 PyObject * obj0 = 0 ;
25429 PyObject * obj1 = 0 ;
25430 PyObject * obj2 = 0 ;
25433 if (!PyArg_UnpackTuple(args,
"Solver_RankLastInterval", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
25438 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25446 arg3 = static_cast< int >(val3);
25463 PyObject *resultobj = 0;
25465 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
25469 std::vector< operations_research::IntervalVar * > temp2 ;
25472 PyObject * obj0 = 0 ;
25473 PyObject * obj1 = 0 ;
25474 PyObject * obj2 = 0 ;
25477 if (!PyArg_UnpackTuple(args,
"Solver_Phase", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
25482 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25484 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
25485 if (!PyErr_Occurred())
25493 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "Solver_Phase" "', argument " "3"" of type '" "operations_research::Solver::IntervalStrategy""'");
25495 arg3 = static_cast< operations_research::Solver::IntervalStrategy >(val3);
25512 PyObject *resultobj = 0;
25514 std::vector< operations_research::SequenceVar * > *arg2 = 0 ;
25518 std::vector< operations_research::SequenceVar * > temp2 ;
25521 PyObject * obj0 = 0 ;
25522 PyObject * obj1 = 0 ;
25523 PyObject * obj2 = 0 ;
25526 if (!PyArg_UnpackTuple(args,
"Solver_Phase", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
25531 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25533 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::SequenceVar*>)) {
25534 if (!PyErr_Occurred())
25542 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "Solver_Phase" "', argument " "3"" of type '" "operations_research::Solver::SequenceStrategy""'");
25544 arg3 = static_cast< operations_research::Solver::SequenceStrategy >(val3);
25562 PyObject *argv[5] = {
25568 argc = PyObject_Length(args);
25569 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
25570 argv[ii] = PyTuple_GET_ITEM(args,ii);
25579 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
25582 const bool is_tuple = PyTuple_Check(argv[1]);
25583 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
25586 :PyList_GetItem(argv[1], i))) {
25610 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
25613 const bool is_tuple = PyTuple_Check(argv[1]);
25614 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
25617 :PyList_GetItem(argv[1], i))) {
25641 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
25644 const bool is_tuple = PyTuple_Check(argv[1]);
25645 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
25648 :PyList_GetItem(argv[1], i))) {
25674 " Possible C/C++ prototypes are:\n" 25675 " operations_research::Solver::MakePhase(std::vector< operations_research::IntVar * > const &,operations_research::Solver::IntVarStrategy,operations_research::Solver::IntValueStrategy)\n" 25676 " operations_research::Solver::MakePhase(std::vector< operations_research::IntervalVar * > const &,operations_research::Solver::IntervalStrategy)\n" 25677 " operations_research::Solver::MakePhase(std::vector< operations_research::SequenceVar * > const &,operations_research::Solver::SequenceStrategy)\n");
25683 PyObject *resultobj = 0;
25687 std::vector< operations_research::IntVar * > *arg4 = 0 ;
25692 std::vector< operations_research::IntVar * > temp4 ;
25693 PyObject * obj0 = 0 ;
25694 PyObject * obj1 = 0 ;
25695 PyObject * obj2 = 0 ;
25696 PyObject * obj3 = 0 ;
25699 if (!PyArg_UnpackTuple(args,
"Solver_DecisionBuilderFromAssignment", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
25702 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_DecisionBuilderFromAssignment" "', argument " "1"" of type '" "operations_research::Solver *""'");
25704 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25707 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_DecisionBuilderFromAssignment" "', argument " "2"" of type '" "operations_research::Assignment *const""'");
25709 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
25714 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
25715 if (!PyErr_Occurred())
25737 PyObject *resultobj = 0;
25744 PyObject * obj0 = 0 ;
25745 PyObject * obj1 = 0 ;
25748 if (!PyArg_UnpackTuple(args,
"Solver_ConstraintAdder", 2, 2, &obj0, &obj1))
SWIG_fail;
25753 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25756 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_ConstraintAdder" "', argument " "2"" of type '" "operations_research::Constraint *const""'");
25758 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
25775 PyObject *resultobj = 0;
25778 std::vector< operations_research::SearchMonitor * > *arg3 = 0 ;
25781 std::vector< operations_research::SearchMonitor * > temp3 ;
25782 PyObject * obj0 = 0 ;
25783 PyObject * obj1 = 0 ;
25784 PyObject * obj2 = 0 ;
25787 if (!PyArg_UnpackTuple(args,
"Solver_SolveOnce", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
25792 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25797 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::SearchMonitor*>)) {
25798 if (!PyErr_Occurred())
25820 PyObject *resultobj = 0;
25834 PyObject * obj0 = 0 ;
25835 PyObject * obj1 = 0 ;
25836 PyObject * obj2 = 0 ;
25837 PyObject * obj3 = 0 ;
25838 PyObject * obj4 = 0 ;
25841 if (!PyArg_UnpackTuple(args,
"Solver_NestedOptimize", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
25846 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25852 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
25854 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
25859 arg4 = static_cast< bool >(val4);
25864 arg5 = static_cast< int64_t >(val5);
25881 PyObject *resultobj = 0;
25896 PyObject * obj0 = 0 ;
25897 PyObject * obj1 = 0 ;
25898 PyObject * obj2 = 0 ;
25899 PyObject * obj3 = 0 ;
25900 PyObject * obj4 = 0 ;
25901 PyObject * obj5 = 0 ;
25904 if (!PyArg_UnpackTuple(args,
"Solver_NestedOptimize", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
25909 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25915 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
25917 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
25922 arg4 = static_cast< bool >(val4);
25927 arg5 = static_cast< int64_t >(val5);
25947 PyObject *resultobj = 0;
25963 PyObject * obj0 = 0 ;
25964 PyObject * obj1 = 0 ;
25965 PyObject * obj2 = 0 ;
25966 PyObject * obj3 = 0 ;
25967 PyObject * obj4 = 0 ;
25968 PyObject * obj5 = 0 ;
25969 PyObject * obj6 = 0 ;
25972 if (!PyArg_UnpackTuple(args,
"Solver_NestedOptimize", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6))
SWIG_fail;
25977 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
25983 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
25985 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
25990 arg4 = static_cast< bool >(val4);
25995 arg5 = static_cast< int64_t >(val5);
26018 PyObject *resultobj = 0;
26035 PyObject * obj0 = 0 ;
26036 PyObject * obj1 = 0 ;
26037 PyObject * obj2 = 0 ;
26038 PyObject * obj3 = 0 ;
26039 PyObject * obj4 = 0 ;
26040 PyObject * obj5 = 0 ;
26041 PyObject * obj6 = 0 ;
26042 PyObject * obj7 = 0 ;
26045 if (!PyArg_UnpackTuple(args,
"Solver_NestedOptimize", 8, 8, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7))
SWIG_fail;
26050 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26056 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
26058 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
26063 arg4 = static_cast< bool >(val4);
26068 arg5 = static_cast< int64_t >(val5);
26094 PyObject *resultobj = 0;
26112 PyObject * obj0 = 0 ;
26113 PyObject * obj1 = 0 ;
26114 PyObject * obj2 = 0 ;
26115 PyObject * obj3 = 0 ;
26116 PyObject * obj4 = 0 ;
26117 PyObject * obj5 = 0 ;
26118 PyObject * obj6 = 0 ;
26119 PyObject * obj7 = 0 ;
26120 PyObject * obj8 = 0 ;
26123 if (!PyArg_UnpackTuple(args,
"Solver_NestedOptimize", 9, 9, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7, &obj8))
SWIG_fail;
26128 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26134 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
26136 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
26141 arg4 = static_cast< bool >(val4);
26146 arg5 = static_cast< int64_t >(val5);
26175 PyObject *resultobj = 0;
26181 std::vector< operations_research::SearchMonitor * > *arg6 = 0 ;
26190 std::vector< operations_research::SearchMonitor * > temp6 ;
26191 PyObject * obj0 = 0 ;
26192 PyObject * obj1 = 0 ;
26193 PyObject * obj2 = 0 ;
26194 PyObject * obj3 = 0 ;
26195 PyObject * obj4 = 0 ;
26196 PyObject * obj5 = 0 ;
26199 if (!PyArg_UnpackTuple(args,
"Solver_NestedOptimize", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
26204 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26210 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_NestedOptimize" "', argument " "3"" of type '" "operations_research::Assignment *const""'");
26212 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
26217 arg4 = static_cast< bool >(val4);
26222 arg5 = static_cast< int64_t >(val5);
26224 if (!vector_input_helper(obj5, &temp6, PyObjAs<operations_research::SearchMonitor*>)) {
26225 if (!PyErr_Occurred())
26248 PyObject *argv[10] = {
26254 argc = PyObject_Length(args);
26255 for (ii = 0; (ii < 9) && (ii < argc); ii++) {
26256 argv[ii] = PyTuple_GET_ITEM(args,ii);
26266 if (_v == 0) PyErr_Clear();
26298 if (_v == 0) PyErr_Clear();
26317 if (_v == 0) PyErr_Clear();
26336 if (_v == 0) PyErr_Clear();
26354 if (!PyTuple_Check(argv[5]) && !PyList_Check(argv[5])) {
26357 const bool is_tuple = PyTuple_Check(argv[5]);
26358 const size_t size = is_tuple ? PyTuple_Size(argv[5]) : PyList_Size(argv[5]);
26361 :PyList_GetItem(argv[5], i))) {
26384 if (_v == 0) PyErr_Clear();
26403 if (_v == 0) PyErr_Clear();
26408 if (_v == 0) PyErr_Clear();
26428 if (_v == 0) PyErr_Clear();
26447 if (_v == 0) PyErr_Clear();
26452 if (_v == 0) PyErr_Clear();
26457 if (_v == 0) PyErr_Clear();
26478 if (_v == 0) PyErr_Clear();
26497 if (_v == 0) PyErr_Clear();
26502 if (_v == 0) PyErr_Clear();
26507 if (_v == 0) PyErr_Clear();
26512 if (_v == 0) PyErr_Clear();
26529 " Possible C/C++ prototypes are:\n" 26530 " operations_research::Solver::MakeNestedOptimize(operations_research::DecisionBuilder *const,operations_research::Assignment *const,bool,int64_t)\n" 26531 " operations_research::Solver::MakeNestedOptimize(operations_research::DecisionBuilder *const,operations_research::Assignment *const,bool,int64_t,operations_research::SearchMonitor *const)\n" 26532 " operations_research::Solver::MakeNestedOptimize(operations_research::DecisionBuilder *const,operations_research::Assignment *const,bool,int64_t,operations_research::SearchMonitor *const,operations_research::SearchMonitor *const)\n" 26533 " 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" 26534 " 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" 26535 " operations_research::Solver::MakeNestedOptimize(operations_research::DecisionBuilder *const,operations_research::Assignment *const,bool,int64_t,std::vector< operations_research::SearchMonitor * > const &)\n");
26541 PyObject *resultobj = 0;
26548 PyObject * obj0 = 0 ;
26549 PyObject * obj1 = 0 ;
26552 if (!PyArg_UnpackTuple(args,
"Solver_RestoreAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
26557 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26562 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
26579 PyObject *resultobj = 0;
26586 PyObject * obj0 = 0 ;
26587 PyObject * obj1 = 0 ;
26590 if (!PyArg_UnpackTuple(args,
"Solver_StoreAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
26595 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26600 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
26617 PyObject *resultobj = 0;
26619 std::vector< operations_research::IntVar * > *arg2 = 0 ;
26623 std::vector< operations_research::IntVar * > temp2 ;
26626 PyObject * obj0 = 0 ;
26627 PyObject * obj1 = 0 ;
26628 PyObject * obj2 = 0 ;
26631 if (!PyArg_UnpackTuple(args,
"Solver_Operator", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
26636 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26638 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
26639 if (!PyErr_Occurred())
26647 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "Solver_Operator" "', argument " "3"" of type '" "operations_research::Solver::LocalSearchOperators""'");
26649 arg3 = static_cast< operations_research::Solver::LocalSearchOperators >(val3);
26666 PyObject *resultobj = 0;
26668 std::vector< operations_research::IntVar * > *arg2 = 0 ;
26669 std::vector< operations_research::IntVar * > *arg3 = 0 ;
26673 std::vector< operations_research::IntVar * > temp2 ;
26674 std::vector< operations_research::IntVar * > temp3 ;
26677 PyObject * obj0 = 0 ;
26678 PyObject * obj1 = 0 ;
26679 PyObject * obj2 = 0 ;
26680 PyObject * obj3 = 0 ;
26683 if (!PyArg_UnpackTuple(args,
"Solver_Operator", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
26688 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26690 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
26691 if (!PyErr_Occurred())
26698 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
26699 if (!PyErr_Occurred())
26707 SWIG_exception_fail(
SWIG_ArgError(ecode4),
"in method '" "Solver_Operator" "', argument " "4"" of type '" "operations_research::Solver::LocalSearchOperators""'");
26709 arg4 = static_cast< operations_research::Solver::LocalSearchOperators >(val4);
26712 result = (
operations_research::LocalSearchOperator *)(arg1)->MakeOperator((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3,arg4);
26726 PyObject *resultobj = 0;
26728 std::vector< operations_research::IntVar * > *arg2 = 0 ;
26733 std::vector< operations_research::IntVar * > temp2 ;
26736 PyObject * obj0 = 0 ;
26737 PyObject * obj1 = 0 ;
26738 PyObject * obj2 = 0 ;
26739 PyObject * obj3 = 0 ;
26742 if (!PyArg_UnpackTuple(args,
"Solver_Operator", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
26747 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26749 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
26750 if (!PyErr_Occurred())
26758 arg3 = [
input](int64_t i, int64_t j, int64_t k) {
26759 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LLL", i, j, k);
26764 SWIG_exception_fail(
SWIG_ArgError(ecode4),
"in method '" "Solver_Operator" "', argument " "4"" of type '" "operations_research::Solver::EvaluatorLocalSearchOperators""'");
26766 arg4 = static_cast< operations_research::Solver::EvaluatorLocalSearchOperators >(val4);
26783 PyObject *resultobj = 0;
26785 std::vector< operations_research::IntVar * > *arg2 = 0 ;
26786 std::vector< operations_research::IntVar * > *arg3 = 0 ;
26791 std::vector< operations_research::IntVar * > temp2 ;
26792 std::vector< operations_research::IntVar * > temp3 ;
26795 PyObject * obj0 = 0 ;
26796 PyObject * obj1 = 0 ;
26797 PyObject * obj2 = 0 ;
26798 PyObject * obj3 = 0 ;
26799 PyObject * obj4 = 0 ;
26802 if (!PyArg_UnpackTuple(args,
"Solver_Operator", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
26807 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
26809 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
26810 if (!PyErr_Occurred())
26817 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
26818 if (!PyErr_Occurred())
26826 arg4 = [
input](int64_t i, int64_t j, int64_t k) {
26827 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LLL", i, j, k);
26832 SWIG_exception_fail(
SWIG_ArgError(ecode5),
"in method '" "Solver_Operator" "', argument " "5"" of type '" "operations_research::Solver::EvaluatorLocalSearchOperators""'");
26834 arg5 = static_cast< operations_research::Solver::EvaluatorLocalSearchOperators >(val5);
26837 result = (
operations_research::LocalSearchOperator *)(arg1)->MakeOperator((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3,arg4,arg5);
26852 PyObject *argv[6] = {
26858 argc = PyObject_Length(args);
26859 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
26860 argv[ii] = PyTuple_GET_ITEM(args,ii);
26869 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
26872 const bool is_tuple = PyTuple_Check(argv[1]);
26873 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
26876 :PyList_GetItem(argv[1], i))) {
26900 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
26903 const bool is_tuple = PyTuple_Check(argv[1]);
26904 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
26907 :PyList_GetItem(argv[1], i))) {
26915 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
26918 const bool is_tuple = PyTuple_Check(argv[2]);
26919 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
26922 :PyList_GetItem(argv[2], i))) {
26947 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
26950 const bool is_tuple = PyTuple_Check(argv[1]);
26951 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
26954 :PyList_GetItem(argv[1], i))) {
26962 _v = PyCallable_Check(argv[2]);
26983 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
26986 const bool is_tuple = PyTuple_Check(argv[1]);
26987 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
26990 :PyList_GetItem(argv[1], i))) {
26998 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
27001 const bool is_tuple = PyTuple_Check(argv[2]);
27002 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
27005 :PyList_GetItem(argv[2], i))) {
27013 _v = PyCallable_Check(argv[3]);
27031 " Possible C/C++ prototypes are:\n" 27032 " operations_research::Solver::MakeOperator(std::vector< operations_research::IntVar * > const &,operations_research::Solver::LocalSearchOperators)\n" 27033 " operations_research::Solver::MakeOperator(std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &,operations_research::Solver::LocalSearchOperators)\n" 27034 " operations_research::Solver::MakeOperator(std::vector< operations_research::IntVar * > const &,operations_research::Solver::IndexEvaluator3,operations_research::Solver::EvaluatorLocalSearchOperators)\n" 27035 " 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");
27041 PyObject *resultobj = 0;
27043 std::vector< operations_research::IntVar * > *arg2 = 0 ;
27047 std::vector< operations_research::IntVar * > temp2 ;
27050 PyObject * obj0 = 0 ;
27051 PyObject * obj1 = 0 ;
27052 PyObject * obj2 = 0 ;
27055 if (!PyArg_UnpackTuple(args,
"Solver_RandomLnsOperator", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
27060 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27062 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
27063 if (!PyErr_Occurred())
27073 arg3 = static_cast< int >(val3);
27090 PyObject *resultobj = 0;
27092 std::vector< operations_research::IntVar * > *arg2 = 0 ;
27097 std::vector< operations_research::IntVar * > temp2 ;
27102 PyObject * obj0 = 0 ;
27103 PyObject * obj1 = 0 ;
27104 PyObject * obj2 = 0 ;
27105 PyObject * obj3 = 0 ;
27108 if (!PyArg_UnpackTuple(args,
"Solver_RandomLnsOperator", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
27113 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27115 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
27116 if (!PyErr_Occurred())
27126 arg3 = static_cast< int >(val3);
27131 arg4 = static_cast< int32_t >(val4);
27149 PyObject *argv[5] = {
27155 argc = PyObject_Length(args);
27156 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
27157 argv[ii] = PyTuple_GET_ITEM(args,ii);
27166 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27169 const bool is_tuple = PyTuple_Check(argv[1]);
27170 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27173 :PyList_GetItem(argv[1], i))) {
27197 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27200 const bool is_tuple = PyTuple_Check(argv[1]);
27201 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27204 :PyList_GetItem(argv[1], i))) {
27230 " Possible C/C++ prototypes are:\n" 27231 " operations_research::Solver::MakeRandomLnsOperator(std::vector< operations_research::IntVar * > const &,int)\n" 27232 " operations_research::Solver::MakeRandomLnsOperator(std::vector< operations_research::IntVar * > const &,int,int32_t)\n");
27238 PyObject *resultobj = 0;
27245 PyObject * obj0 = 0 ;
27246 PyObject * obj1 = 0 ;
27249 if (!PyArg_UnpackTuple(args,
"Solver_MoveTowardTargetOperator", 2, 2, &obj0, &obj1))
SWIG_fail;
27252 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_MoveTowardTargetOperator" "', argument " "1"" of type '" "operations_research::Solver *""'");
27254 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27257 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_MoveTowardTargetOperator" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
27260 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Solver_MoveTowardTargetOperator" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
27262 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
27279 PyObject *resultobj = 0;
27281 std::vector< operations_research::IntVar * > *arg2 = 0 ;
27282 std::vector< int64_t > *arg3 = 0 ;
27285 std::vector< operations_research::IntVar * > temp2 ;
27286 std::vector< int64_t > temp3 ;
27287 PyObject * obj0 = 0 ;
27288 PyObject * obj1 = 0 ;
27289 PyObject * obj2 = 0 ;
27292 if (!PyArg_UnpackTuple(args,
"Solver_MoveTowardTargetOperator", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
27295 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_MoveTowardTargetOperator" "', argument " "1"" of type '" "operations_research::Solver *""'");
27297 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27299 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
27300 if (!PyErr_Occurred())
27307 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
27308 if (!PyErr_Occurred())
27331 PyObject *argv[4] = {
27337 argc = PyObject_Length(args);
27338 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
27339 argv[ii] = PyTuple_GET_ITEM(args,ii);
27361 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27364 const bool is_tuple = PyTuple_Check(argv[1]);
27365 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27368 :PyList_GetItem(argv[1], i))) {
27376 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
27379 const bool is_tuple = PyTuple_Check(argv[2]);
27380 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
27382 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
27383 :PyList_GetItem(argv[2], i))) {
27398 " Possible C/C++ prototypes are:\n" 27399 " operations_research::Solver::MakeMoveTowardTargetOperator(operations_research::Assignment const &)\n" 27400 " operations_research::Solver::MakeMoveTowardTargetOperator(std::vector< operations_research::IntVar * > const &,std::vector< int64_t > const &)\n");
27406 PyObject *resultobj = 0;
27408 std::vector< operations_research::LocalSearchOperator * > *arg2 = 0 ;
27411 std::vector< operations_research::LocalSearchOperator * > temp2 ;
27412 PyObject * obj0 = 0 ;
27413 PyObject * obj1 = 0 ;
27416 if (!PyArg_UnpackTuple(args,
"Solver_ConcatenateOperators", 2, 2, &obj0, &obj1))
SWIG_fail;
27421 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27423 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::LocalSearchOperator*>)) {
27424 if (!PyErr_Occurred())
27446 PyObject *resultobj = 0;
27448 std::vector< operations_research::LocalSearchOperator * > *arg2 = 0 ;
27452 std::vector< operations_research::LocalSearchOperator * > temp2 ;
27455 PyObject * obj0 = 0 ;
27456 PyObject * obj1 = 0 ;
27457 PyObject * obj2 = 0 ;
27460 if (!PyArg_UnpackTuple(args,
"Solver_ConcatenateOperators", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
27465 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27467 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::LocalSearchOperator*>)) {
27468 if (!PyErr_Occurred())
27478 arg3 = static_cast< bool >(val3);
27495 PyObject *resultobj = 0;
27497 std::vector< operations_research::LocalSearchOperator * > *arg2 = 0 ;
27498 std::function< int64_t (
int,
int) > arg3 ;
27501 std::vector< operations_research::LocalSearchOperator * > temp2 ;
27502 PyObject * obj0 = 0 ;
27503 PyObject * obj1 = 0 ;
27504 PyObject * obj2 = 0 ;
27507 if (!PyArg_UnpackTuple(args,
"Solver_ConcatenateOperators", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
27512 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27514 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::LocalSearchOperator*>)) {
27515 if (!PyErr_Occurred())
27523 arg3 = [
input](
int i,
int j) {
27524 return InvokePythonCallableReturning<int64_t>(
input.get(),
"ii", i, j);
27544 PyObject *argv[4] = {
27550 argc = PyObject_Length(args);
27551 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
27552 argv[ii] = PyTuple_GET_ITEM(args,ii);
27561 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27564 const bool is_tuple = PyTuple_Check(argv[1]);
27565 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27568 :PyList_GetItem(argv[1], i))) {
27586 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27589 const bool is_tuple = PyTuple_Check(argv[1]);
27590 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27593 :PyList_GetItem(argv[1], i))) {
27601 _v = PyCallable_Check(argv[2]);
27616 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27619 const bool is_tuple = PyTuple_Check(argv[1]);
27620 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27623 :PyList_GetItem(argv[1], i))) {
27643 " Possible C/C++ prototypes are:\n" 27644 " operations_research::Solver::ConcatenateOperators(std::vector< operations_research::LocalSearchOperator * > const &)\n" 27645 " operations_research::Solver::ConcatenateOperators(std::vector< operations_research::LocalSearchOperator * > const &,bool)\n" 27646 " operations_research::Solver::ConcatenateOperators(std::vector< operations_research::LocalSearchOperator * > const &,std::function< int64_t (int,int) >)\n");
27652 PyObject *resultobj = 0;
27654 std::vector< operations_research::LocalSearchOperator * > *arg2 = 0 ;
27657 std::vector< operations_research::LocalSearchOperator * > temp2 ;
27658 PyObject * obj0 = 0 ;
27659 PyObject * obj1 = 0 ;
27662 if (!PyArg_UnpackTuple(args,
"Solver_RandomConcatenateOperators", 2, 2, &obj0, &obj1))
SWIG_fail;
27665 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_RandomConcatenateOperators" "', argument " "1"" of type '" "operations_research::Solver *""'");
27667 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27669 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::LocalSearchOperator*>)) {
27670 if (!PyErr_Occurred())
27692 PyObject *resultobj = 0;
27694 std::vector< operations_research::LocalSearchOperator * > *arg2 = 0 ;
27698 std::vector< operations_research::LocalSearchOperator * > temp2 ;
27701 PyObject * obj0 = 0 ;
27702 PyObject * obj1 = 0 ;
27703 PyObject * obj2 = 0 ;
27706 if (!PyArg_UnpackTuple(args,
"Solver_RandomConcatenateOperators", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
27709 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_RandomConcatenateOperators" "', argument " "1"" of type '" "operations_research::Solver *""'");
27711 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27713 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::LocalSearchOperator*>)) {
27714 if (!PyErr_Occurred())
27724 arg3 = static_cast< int32_t >(val3);
27742 PyObject *argv[4] = {
27748 argc = PyObject_Length(args);
27749 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
27750 argv[ii] = PyTuple_GET_ITEM(args,ii);
27759 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27762 const bool is_tuple = PyTuple_Check(argv[1]);
27763 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27766 :PyList_GetItem(argv[1], i))) {
27784 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
27787 const bool is_tuple = PyTuple_Check(argv[1]);
27788 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
27791 :PyList_GetItem(argv[1], i))) {
27811 " Possible C/C++ prototypes are:\n" 27812 " operations_research::Solver::RandomConcatenateOperators(std::vector< operations_research::LocalSearchOperator * > const &)\n" 27813 " operations_research::Solver::RandomConcatenateOperators(std::vector< operations_research::LocalSearchOperator * > const &,int32_t)\n");
27819 PyObject *resultobj = 0;
27827 PyObject * obj0 = 0 ;
27828 PyObject * obj1 = 0 ;
27829 PyObject * obj2 = 0 ;
27832 if (!PyArg_UnpackTuple(args,
"Solver_NeighborhoodLimit", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
27837 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27845 arg3 = static_cast< int64_t >(val3);
27862 PyObject *resultobj = 0;
27872 PyObject * obj0 = 0 ;
27873 PyObject * obj1 = 0 ;
27874 PyObject * obj2 = 0 ;
27877 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhase", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
27882 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27885 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_LocalSearchPhase" "', argument " "2"" of type '" "operations_research::Assignment *const""'");
27887 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
27890 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_LocalSearchPhase" "', argument " "3"" of type '" "operations_research::LocalSearchPhaseParameters *const""'");
27892 arg3 = reinterpret_cast< operations_research::LocalSearchPhaseParameters * >(argp3);
27909 PyObject *resultobj = 0;
27911 std::vector< operations_research::IntVar * > *arg2 = 0 ;
27916 std::vector< operations_research::IntVar * > temp2 ;
27919 PyObject * obj0 = 0 ;
27920 PyObject * obj1 = 0 ;
27921 PyObject * obj2 = 0 ;
27922 PyObject * obj3 = 0 ;
27925 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhase", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
27930 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27932 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
27933 if (!PyErr_Occurred())
27944 SWIG_exception_fail(
SWIG_ArgError(res4),
"in method '" "Solver_LocalSearchPhase" "', argument " "4"" of type '" "operations_research::LocalSearchPhaseParameters *const""'");
27946 arg4 = reinterpret_cast< operations_research::LocalSearchPhaseParameters * >(argp4);
27963 PyObject *resultobj = 0;
27965 std::vector< operations_research::IntVar * > *arg2 = 0 ;
27971 std::vector< operations_research::IntVar * > temp2 ;
27974 PyObject * obj0 = 0 ;
27975 PyObject * obj1 = 0 ;
27976 PyObject * obj2 = 0 ;
27977 PyObject * obj3 = 0 ;
27978 PyObject * obj4 = 0 ;
27981 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhase", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
27986 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
27988 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
27989 if (!PyErr_Occurred())
28003 SWIG_exception_fail(
SWIG_ArgError(res5),
"in method '" "Solver_LocalSearchPhase" "', argument " "5"" of type '" "operations_research::LocalSearchPhaseParameters *const""'");
28005 arg5 = reinterpret_cast< operations_research::LocalSearchPhaseParameters * >(argp5);
28022 PyObject *resultobj = 0;
28024 std::vector< operations_research::SequenceVar * > *arg2 = 0 ;
28029 std::vector< operations_research::SequenceVar * > temp2 ;
28032 PyObject * obj0 = 0 ;
28033 PyObject * obj1 = 0 ;
28034 PyObject * obj2 = 0 ;
28035 PyObject * obj3 = 0 ;
28038 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhase", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
28043 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28045 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::SequenceVar*>)) {
28046 if (!PyErr_Occurred())
28057 SWIG_exception_fail(
SWIG_ArgError(res4),
"in method '" "Solver_LocalSearchPhase" "', argument " "4"" of type '" "operations_research::LocalSearchPhaseParameters *const""'");
28059 arg4 = reinterpret_cast< operations_research::LocalSearchPhaseParameters * >(argp4);
28077 PyObject *argv[6] = {
28083 argc = PyObject_Length(args);
28084 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
28085 argv[ii] = PyTuple_GET_ITEM(args,ii);
28113 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
28116 const bool is_tuple = PyTuple_Check(argv[1]);
28117 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
28120 :PyList_GetItem(argv[1], i))) {
28129 if (_v == 0) PyErr_Clear();
28149 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
28152 const bool is_tuple = PyTuple_Check(argv[1]);
28153 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
28156 :PyList_GetItem(argv[1], i))) {
28165 if (_v == 0) PyErr_Clear();
28185 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
28188 const bool is_tuple = PyTuple_Check(argv[1]);
28189 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
28192 :PyList_GetItem(argv[1], i))) {
28201 if (_v == 0) PyErr_Clear();
28206 if (_v == 0) PyErr_Clear();
28223 " Possible C/C++ prototypes are:\n" 28224 " operations_research::Solver::MakeLocalSearchPhase(operations_research::Assignment *const,operations_research::LocalSearchPhaseParameters *const)\n" 28225 " operations_research::Solver::MakeLocalSearchPhase(std::vector< operations_research::IntVar * > const &,operations_research::DecisionBuilder *const,operations_research::LocalSearchPhaseParameters *const)\n" 28226 " operations_research::Solver::MakeLocalSearchPhase(std::vector< operations_research::IntVar * > const &,operations_research::DecisionBuilder *const,operations_research::DecisionBuilder *const,operations_research::LocalSearchPhaseParameters *const)\n" 28227 " operations_research::Solver::MakeLocalSearchPhase(std::vector< operations_research::SequenceVar * > const &,operations_research::DecisionBuilder *const,operations_research::LocalSearchPhaseParameters *const)\n");
28233 PyObject *resultobj = 0;
28242 PyObject * obj0 = 0 ;
28243 PyObject * obj1 = 0 ;
28244 PyObject * obj2 = 0 ;
28245 PyObject * obj3 = 0 ;
28248 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhaseParameters", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
28251 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28253 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28256 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28258 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
28281 PyObject *resultobj = 0;
28293 PyObject * obj0 = 0 ;
28294 PyObject * obj1 = 0 ;
28295 PyObject * obj2 = 0 ;
28296 PyObject * obj3 = 0 ;
28297 PyObject * obj4 = 0 ;
28300 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhaseParameters", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
28303 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28305 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28308 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28310 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
28319 SWIG_exception_fail(
SWIG_ArgError(res5),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "5"" of type '" "operations_research::RegularLimit *const""'");
28321 arg5 = reinterpret_cast< operations_research::RegularLimit * >(argp5);
28338 PyObject *resultobj = 0;
28353 PyObject * obj0 = 0 ;
28354 PyObject * obj1 = 0 ;
28355 PyObject * obj2 = 0 ;
28356 PyObject * obj3 = 0 ;
28357 PyObject * obj4 = 0 ;
28358 PyObject * obj5 = 0 ;
28361 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhaseParameters", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
28364 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28366 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28369 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28371 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
28380 SWIG_exception_fail(
SWIG_ArgError(res5),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "5"" of type '" "operations_research::RegularLimit *const""'");
28382 arg5 = reinterpret_cast< operations_research::RegularLimit * >(argp5);
28385 SWIG_exception_fail(
SWIG_ArgError(res6),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "6"" of type '" "operations_research::LocalSearchFilterManager *""'");
28387 arg6 = reinterpret_cast< operations_research::LocalSearchFilterManager * >(argp6);
28404 PyObject *resultobj = 0;
28416 PyObject * obj0 = 0 ;
28417 PyObject * obj1 = 0 ;
28418 PyObject * obj2 = 0 ;
28419 PyObject * obj3 = 0 ;
28420 PyObject * obj4 = 0 ;
28423 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhaseParameters", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
28426 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28428 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28431 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28433 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
28436 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "3"" of type '" "operations_research::SolutionPool *const""'");
28438 arg3 = reinterpret_cast< operations_research::SolutionPool * >(argp3);
28461 PyObject *resultobj = 0;
28476 PyObject * obj0 = 0 ;
28477 PyObject * obj1 = 0 ;
28478 PyObject * obj2 = 0 ;
28479 PyObject * obj3 = 0 ;
28480 PyObject * obj4 = 0 ;
28481 PyObject * obj5 = 0 ;
28484 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhaseParameters", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
28487 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28489 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28492 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28494 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
28497 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "3"" of type '" "operations_research::SolutionPool *const""'");
28499 arg3 = reinterpret_cast< operations_research::SolutionPool * >(argp3);
28508 SWIG_exception_fail(
SWIG_ArgError(res6),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "6"" of type '" "operations_research::RegularLimit *const""'");
28510 arg6 = reinterpret_cast< operations_research::RegularLimit * >(argp6);
28527 PyObject *resultobj = 0;
28545 PyObject * obj0 = 0 ;
28546 PyObject * obj1 = 0 ;
28547 PyObject * obj2 = 0 ;
28548 PyObject * obj3 = 0 ;
28549 PyObject * obj4 = 0 ;
28550 PyObject * obj5 = 0 ;
28551 PyObject * obj6 = 0 ;
28554 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchPhaseParameters", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6))
SWIG_fail;
28557 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "1"" of type '" "operations_research::Solver *""'");
28559 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28562 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "2"" of type '" "operations_research::IntVar *""'");
28564 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
28567 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "3"" of type '" "operations_research::SolutionPool *const""'");
28569 arg3 = reinterpret_cast< operations_research::SolutionPool * >(argp3);
28578 SWIG_exception_fail(
SWIG_ArgError(res6),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "6"" of type '" "operations_research::RegularLimit *const""'");
28580 arg6 = reinterpret_cast< operations_research::RegularLimit * >(argp6);
28583 SWIG_exception_fail(
SWIG_ArgError(res7),
"in method '" "Solver_LocalSearchPhaseParameters" "', argument " "7"" of type '" "operations_research::LocalSearchFilterManager *""'");
28585 arg7 = reinterpret_cast< operations_research::LocalSearchFilterManager * >(argp7);
28603 PyObject *argv[8] = {
28609 argc = PyObject_Length(args);
28610 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
28611 argv[ii] = PyTuple_GET_ITEM(args,ii);
28625 if (_v == 0) PyErr_Clear();
28630 if (_v == 0) PyErr_Clear();
28651 if (_v == 0) PyErr_Clear();
28656 if (_v == 0) PyErr_Clear();
28686 if (_v == 0) PyErr_Clear();
28691 if (_v == 0) PyErr_Clear();
28713 if (_v == 0) PyErr_Clear();
28718 if (_v == 0) PyErr_Clear();
28753 if (_v == 0) PyErr_Clear();
28758 if (_v == 0) PyErr_Clear();
28789 if (_v == 0) PyErr_Clear();
28794 if (_v == 0) PyErr_Clear();
28817 " Possible C/C++ prototypes are:\n" 28818 " operations_research::Solver::MakeLocalSearchPhaseParameters(operations_research::IntVar *,operations_research::LocalSearchOperator *const,operations_research::DecisionBuilder *const)\n" 28819 " operations_research::Solver::MakeLocalSearchPhaseParameters(operations_research::IntVar *,operations_research::LocalSearchOperator *const,operations_research::DecisionBuilder *const,operations_research::RegularLimit *const)\n" 28820 " operations_research::Solver::MakeLocalSearchPhaseParameters(operations_research::IntVar *,operations_research::LocalSearchOperator *const,operations_research::DecisionBuilder *const,operations_research::RegularLimit *const,operations_research::LocalSearchFilterManager *)\n" 28821 " operations_research::Solver::MakeLocalSearchPhaseParameters(operations_research::IntVar *,operations_research::SolutionPool *const,operations_research::LocalSearchOperator *const,operations_research::DecisionBuilder *const)\n" 28822 " operations_research::Solver::MakeLocalSearchPhaseParameters(operations_research::IntVar *,operations_research::SolutionPool *const,operations_research::LocalSearchOperator *const,operations_research::DecisionBuilder *const,operations_research::RegularLimit *const)\n" 28823 " 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");
28829 PyObject *resultobj = 0;
28833 PyObject * obj0 = 0 ;
28836 if (!PyArg_UnpackTuple(args,
"Solver_SearchDepth", 1, 1, &obj0))
SWIG_fail;
28841 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28858 PyObject *resultobj = 0;
28862 PyObject * obj0 = 0 ;
28865 if (!PyArg_UnpackTuple(args,
"Solver_SearchLeftDepth", 1, 1, &obj0))
SWIG_fail;
28870 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28887 PyObject *resultobj = 0;
28891 PyObject * obj0 = 0 ;
28894 if (!PyArg_UnpackTuple(args,
"Solver_SolveDepth", 1, 1, &obj0))
SWIG_fail;
28899 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28916 PyObject *resultobj = 0;
28923 PyObject * obj0 = 0 ;
28924 PyObject * obj1 = 0 ;
28927 if (!PyArg_UnpackTuple(args,
"Solver_Rand64", 2, 2, &obj0, &obj1))
SWIG_fail;
28932 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28937 arg2 = static_cast< int64_t >(val2);
28940 result = (int64_t)(arg1)->Rand64(arg2);
28954 PyObject *resultobj = 0;
28961 PyObject * obj0 = 0 ;
28962 PyObject * obj1 = 0 ;
28965 if (!PyArg_UnpackTuple(args,
"Solver_Rand32", 2, 2, &obj0, &obj1))
SWIG_fail;
28970 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
28975 arg2 = static_cast< int32_t >(val2);
28978 result = (int32_t)(arg1)->Rand32(arg2);
28992 PyObject *resultobj = 0;
28999 PyObject * obj0 = 0 ;
29000 PyObject * obj1 = 0 ;
29002 if (!PyArg_UnpackTuple(args,
"Solver_ReSeed", 2, 2, &obj0, &obj1))
SWIG_fail;
29007 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29012 arg2 = static_cast< int32_t >(val2);
29015 (arg1)->ReSeed(arg2);
29029 PyObject *resultobj = 0;
29033 PyObject * obj0 = 0 ;
29034 std::string result;
29036 if (!PyArg_UnpackTuple(args,
"Solver_LocalSearchProfile", 1, 1, &obj0))
SWIG_fail;
29039 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_LocalSearchProfile" "', argument " "1"" of type '" "operations_research::Solver const *""'");
29041 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29058 PyObject *resultobj = 0;
29062 PyObject * obj0 = 0 ;
29065 if (!PyArg_UnpackTuple(args,
"Solver_Constraints", 1, 1, &obj0))
SWIG_fail;
29070 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29087 PyObject *resultobj = 0;
29094 PyObject * obj0 = 0 ;
29095 PyObject * obj1 = 0 ;
29097 if (!PyArg_UnpackTuple(args,
"Solver_Accept", 2, 2, &obj0, &obj1))
SWIG_fail;
29102 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29107 arg2 = reinterpret_cast< operations_research::ModelVisitor * >(argp2);
29124 PyObject *resultobj = 0;
29128 PyObject * obj0 = 0 ;
29130 if (!PyArg_UnpackTuple(args,
"Solver_FinishCurrentSearch", 1, 1, &obj0))
SWIG_fail;
29135 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29138 (arg1)->FinishCurrentSearch();
29152 PyObject *resultobj = 0;
29156 PyObject * obj0 = 0 ;
29158 if (!PyArg_UnpackTuple(args,
"Solver_RestartCurrentSearch", 1, 1, &obj0))
SWIG_fail;
29163 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29166 (arg1)->RestartCurrentSearch();
29180 PyObject *resultobj = 0;
29184 PyObject * obj0 = 0 ;
29186 if (!PyArg_UnpackTuple(args,
"Solver_ShouldFail", 1, 1, &obj0))
SWIG_fail;
29191 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29194 (arg1)->ShouldFail();
29208 PyObject *resultobj = 0;
29212 PyObject * obj0 = 0 ;
29213 std::string result;
29215 if (!PyArg_UnpackTuple(args,
"Solver___str__", 1, 1, &obj0))
SWIG_fail;
29220 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29237 PyObject *resultobj = 0;
29239 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29240 std::vector< operations_research::IntVar * > *arg3 = 0 ;
29244 std::vector< operations_research::IntVar * > temp2 ;
29245 std::vector< operations_research::IntVar * > temp3 ;
29246 PyObject * obj0 = 0 ;
29247 PyObject * obj1 = 0 ;
29248 PyObject * obj2 = 0 ;
29249 PyObject * obj3 = 0 ;
29252 if (!PyArg_UnpackTuple(args,
"Solver_TreeNoCycle", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
29257 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29259 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29260 if (!PyErr_Occurred())
29267 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
29268 if (!PyErr_Occurred())
29277 return InvokePythonCallableReturning<bool>(
input.get(),
"(L)",
index);
29296 PyObject *resultobj = 0;
29298 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29299 std::vector< operations_research::IntVar * > *arg3 = 0 ;
29302 std::vector< operations_research::IntVar * > temp2 ;
29303 std::vector< operations_research::IntVar * > temp3 ;
29304 PyObject * obj0 = 0 ;
29305 PyObject * obj1 = 0 ;
29306 PyObject * obj2 = 0 ;
29309 if (!PyArg_UnpackTuple(args,
"Solver_TreeNoCycle", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
29314 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29316 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29317 if (!PyErr_Occurred())
29324 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
29325 if (!PyErr_Occurred())
29348 PyObject *argv[5] = {
29354 argc = PyObject_Length(args);
29355 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
29356 argv[ii] = PyTuple_GET_ITEM(args,ii);
29365 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
29368 const bool is_tuple = PyTuple_Check(argv[1]);
29369 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
29372 :PyList_GetItem(argv[1], i))) {
29380 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
29383 const bool is_tuple = PyTuple_Check(argv[2]);
29384 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
29387 :PyList_GetItem(argv[2], i))) {
29406 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
29409 const bool is_tuple = PyTuple_Check(argv[1]);
29410 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
29413 :PyList_GetItem(argv[1], i))) {
29421 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
29424 const bool is_tuple = PyTuple_Check(argv[2]);
29425 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
29428 :PyList_GetItem(argv[2], i))) {
29436 _v = PyCallable_Check(argv[3]);
29448 " Possible C/C++ prototypes are:\n" 29449 " operations_research::Solver::TreeNoCycle(std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &,operations_research::Solver::IndexFilter1)\n" 29450 " operations_research::Solver::TreeNoCycle(std::vector< operations_research::IntVar * > const &,std::vector< operations_research::IntVar * > const &)\n");
29456 PyObject *resultobj = 0;
29459 SwigValueWrapper< std::function< std::string () > > arg3 ;
29464 PyObject * obj0 = 0 ;
29465 PyObject * obj1 = 0 ;
29466 PyObject * obj2 = 0 ;
29469 if (!PyArg_UnpackTuple(args,
"Solver_SearchLogWithCallback", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
29474 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29479 arg2 = static_cast< int >(val2);
29483 return InvokePythonCallableReturning<std::string>(
input.get());
29502 PyObject *resultobj = 0;
29504 std::function< int64_t (int64_t) > arg2 ;
29508 PyObject * obj0 = 0 ;
29509 PyObject * obj1 = 0 ;
29510 PyObject * obj2 = 0 ;
29513 if (!PyArg_UnpackTuple(args,
"Solver_ElementFunction", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
29518 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29522 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
29544 PyObject *resultobj = 0;
29546 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29547 std::function< int64_t (int64_t) > arg3 ;
29551 std::vector< operations_research::IntVar * > temp2 ;
29554 PyObject * obj0 = 0 ;
29555 PyObject * obj1 = 0 ;
29556 PyObject * obj2 = 0 ;
29557 PyObject * obj3 = 0 ;
29560 if (!PyArg_UnpackTuple(args,
"Solver_VarEvalValStrPhase", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
29565 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29567 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29568 if (!PyErr_Occurred())
29577 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
29582 SWIG_exception_fail(
SWIG_ArgError(ecode4),
"in method '" "Solver_VarEvalValStrPhase" "', argument " "4"" of type '" "operations_research::Solver::IntValueStrategy""'");
29584 arg4 = static_cast< operations_research::Solver::IntValueStrategy >(val4);
29601 PyObject *resultobj = 0;
29603 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29608 std::vector< operations_research::IntVar * > temp2 ;
29611 PyObject * obj0 = 0 ;
29612 PyObject * obj1 = 0 ;
29613 PyObject * obj2 = 0 ;
29614 PyObject * obj3 = 0 ;
29617 if (!PyArg_UnpackTuple(args,
"Solver_VarStrValEvalPhase", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
29622 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29624 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29625 if (!PyErr_Occurred())
29633 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "Solver_VarStrValEvalPhase" "', argument " "3"" of type '" "operations_research::Solver::IntVarStrategy""'");
29635 arg3 = static_cast< operations_research::Solver::IntVarStrategy >(val3);
29638 arg4 = [
input](int64_t i, int64_t j) {
29639 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
29658 PyObject *resultobj = 0;
29660 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29661 std::function< int64_t (int64_t) > arg3 ;
29665 std::vector< operations_research::IntVar * > temp2 ;
29666 PyObject * obj0 = 0 ;
29667 PyObject * obj1 = 0 ;
29668 PyObject * obj2 = 0 ;
29669 PyObject * obj3 = 0 ;
29672 if (!PyArg_UnpackTuple(args,
"Solver_VarEvalValEvalPhase", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
29677 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29679 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29680 if (!PyErr_Occurred())
29689 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
29694 arg4 = [
input](int64_t i, int64_t j) {
29695 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
29714 PyObject *resultobj = 0;
29716 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29719 std::function< int64_t (int64_t) > arg5 ;
29722 std::vector< operations_research::IntVar * > temp2 ;
29725 PyObject * obj0 = 0 ;
29726 PyObject * obj1 = 0 ;
29727 PyObject * obj2 = 0 ;
29728 PyObject * obj3 = 0 ;
29729 PyObject * obj4 = 0 ;
29732 if (!PyArg_UnpackTuple(args,
"Solver_VarStrValEvalTieBreakPhase", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
29735 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_VarStrValEvalTieBreakPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
29737 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29739 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29740 if (!PyErr_Occurred())
29748 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "Solver_VarStrValEvalTieBreakPhase" "', argument " "3"" of type '" "operations_research::Solver::IntVarStrategy""'");
29750 arg3 = static_cast< operations_research::Solver::IntVarStrategy >(val3);
29753 arg4 = [
input](int64_t i, int64_t j) {
29754 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
29760 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
29779 PyObject *resultobj = 0;
29781 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29782 std::function< int64_t (int64_t) > arg3 ;
29784 std::function< int64_t (int64_t) > arg5 ;
29787 std::vector< operations_research::IntVar * > temp2 ;
29788 PyObject * obj0 = 0 ;
29789 PyObject * obj1 = 0 ;
29790 PyObject * obj2 = 0 ;
29791 PyObject * obj3 = 0 ;
29792 PyObject * obj4 = 0 ;
29795 if (!PyArg_UnpackTuple(args,
"Solver_VarEvalValEvalTieBreakPhase", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
29798 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_VarEvalValEvalTieBreakPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
29800 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29802 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29803 if (!PyErr_Occurred())
29812 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
29817 arg4 = [
input](int64_t i, int64_t j) {
29818 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
29824 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
29843 PyObject *resultobj = 0;
29845 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29850 std::vector< operations_research::IntVar * > temp2 ;
29853 PyObject * obj0 = 0 ;
29854 PyObject * obj1 = 0 ;
29855 PyObject * obj2 = 0 ;
29856 PyObject * obj3 = 0 ;
29859 if (!PyArg_UnpackTuple(args,
"Solver_EvalEvalStrPhase", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
29864 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29866 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29867 if (!PyErr_Occurred())
29875 arg3 = [
input](int64_t i, int64_t j) {
29876 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
29881 SWIG_exception_fail(
SWIG_ArgError(ecode4),
"in method '" "Solver_EvalEvalStrPhase" "', argument " "4"" of type '" "operations_research::Solver::EvaluatorStrategy""'");
29883 arg4 = static_cast< operations_research::Solver::EvaluatorStrategy >(val4);
29900 PyObject *resultobj = 0;
29902 std::vector< operations_research::IntVar * > *arg2 = 0 ;
29908 std::vector< operations_research::IntVar * > temp2 ;
29911 PyObject * obj0 = 0 ;
29912 PyObject * obj1 = 0 ;
29913 PyObject * obj2 = 0 ;
29914 PyObject * obj3 = 0 ;
29915 PyObject * obj4 = 0 ;
29918 if (!PyArg_UnpackTuple(args,
"Solver_EvalEvalStrTieBreakPhase", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
29921 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Solver_EvalEvalStrTieBreakPhase" "', argument " "1"" of type '" "operations_research::Solver *""'");
29923 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
29925 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
29926 if (!PyErr_Occurred())
29934 arg3 = [
input](int64_t i, int64_t j) {
29935 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
29941 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
29946 SWIG_exception_fail(
SWIG_ArgError(ecode5),
"in method '" "Solver_EvalEvalStrTieBreakPhase" "', argument " "5"" of type '" "operations_research::Solver::EvaluatorStrategy""'");
29948 arg5 = static_cast< operations_research::Solver::EvaluatorStrategy >(val5);
29965 PyObject *resultobj = 0;
29971 std::vector< operations_research::IntVar * > *arg6 = 0 ;
29979 std::vector< operations_research::IntVar * > temp6 ;
29982 PyObject * obj0 = 0 ;
29983 PyObject * obj1 = 0 ;
29984 PyObject * obj2 = 0 ;
29985 PyObject * obj3 = 0 ;
29986 PyObject * obj4 = 0 ;
29987 PyObject * obj5 = 0 ;
29988 PyObject * obj6 = 0 ;
29991 if (!PyArg_UnpackTuple(args,
"Solver_GuidedLocalSearch", 7, 7, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6))
SWIG_fail;
29996 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
30001 arg2 = static_cast< bool >(val2);
30007 arg4 = [
input](int64_t i, int64_t j) {
30008 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
30015 arg5 = static_cast< int64_t >(val5);
30017 if (!vector_input_helper(obj5, &temp6, PyObjAs<operations_research::IntVar*>)) {
30018 if (!PyErr_Occurred())
30028 arg7 = static_cast< double >(val7);
30046 PyObject *argv[9] = {
30052 argc = PyObject_Length(args);
30053 for (ii = 0; (ii < 8) && (ii < argc); ii++) {
30054 argv[ii] = PyTuple_GET_ITEM(args,ii);
30069 if (_v == 0) PyErr_Clear();
30073 _v = PyCallable_Check(argv[3]);
30082 if (!PyTuple_Check(argv[5]) && !PyList_Check(argv[5])) {
30085 const bool is_tuple = PyTuple_Check(argv[5]);
30086 const size_t size = is_tuple ? PyTuple_Size(argv[5]) : PyList_Size(argv[5]);
30089 :PyList_GetItem(argv[5], i))) {
30123 if (_v == 0) PyErr_Clear();
30127 _v = PyCallable_Check(argv[3]);
30136 if (!PyTuple_Check(argv[5]) && !PyList_Check(argv[5])) {
30139 const bool is_tuple = PyTuple_Check(argv[5]);
30140 const size_t size = is_tuple ? PyTuple_Size(argv[5]) : PyList_Size(argv[5]);
30143 :PyList_GetItem(argv[5], i))) {
30177 if (_v == 0) PyErr_Clear();
30181 _v = PyCallable_Check(argv[3]);
30190 if (!PyTuple_Check(argv[5]) && !PyList_Check(argv[5])) {
30193 const bool is_tuple = PyTuple_Check(argv[5]);
30194 const size_t size = is_tuple ? PyTuple_Size(argv[5]) : PyList_Size(argv[5]);
30197 :PyList_GetItem(argv[5], i))) {
30205 if (!PyTuple_Check(argv[6]) && !PyList_Check(argv[6])) {
30208 const bool is_tuple = PyTuple_Check(argv[6]);
30209 const size_t size = is_tuple ? PyTuple_Size(argv[6]) : PyList_Size(argv[6]);
30212 :PyList_GetItem(argv[6], i))) {
30237 " Possible C/C++ prototypes are:\n" 30238 " operations_research::Solver::MakeGuidedLocalSearch(bool,operations_research::IntVar *const,operations_research::Solver::IndexEvaluator2,int64_t,std::vector< operations_research::IntVar * > const &,double)\n" 30239 " 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" 30240 " operations_research::Solver::GuidedLocalSearch(bool,operations_research::IntVar *const,operations_research::Solver::IndexEvaluator2,int64_t,std::vector< operations_research::IntVar * > const &,double)\n");
30246 PyObject *resultobj = 0;
30248 std::vector< operations_research::IntVar * > *arg2 = 0 ;
30253 std::vector< operations_research::IntVar * > temp2 ;
30256 PyObject * obj0 = 0 ;
30257 PyObject * obj1 = 0 ;
30258 PyObject * obj2 = 0 ;
30259 PyObject * obj3 = 0 ;
30262 if (!PyArg_UnpackTuple(args,
"Solver_SumObjectiveFilter", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
30267 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
30269 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
30270 if (!PyErr_Occurred())
30278 arg3 = [
input](int64_t i, int64_t j) {
30279 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
30284 SWIG_exception_fail(
SWIG_ArgError(ecode4),
"in method '" "Solver_SumObjectiveFilter" "', argument " "4"" of type '" "operations_research::Solver::LocalSearchFilterBound""'");
30286 arg4 = static_cast< operations_research::Solver::LocalSearchFilterBound >(val4);
30314 PyObject *resultobj = 0;
30315 std::ostream *arg1 = 0 ;
30321 PyObject * obj0 = 0 ;
30322 PyObject * obj1 = 0 ;
30323 std::ostream *result = 0 ;
30325 if (!PyArg_UnpackTuple(args,
"__lshift__", 2, 2, &obj0, &obj1))
SWIG_fail;
30333 arg1 = reinterpret_cast< std::ostream * >(argp1);
30338 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
30351 Py_INCREF(Py_NotImplemented);
30352 return Py_NotImplemented;
30357 PyObject *resultobj = 0;
30358 PyObject *arg1 = (PyObject *) 0 ;
30359 PyObject * obj0 = 0 ;
30362 if (!PyArg_UnpackTuple(args,
"new_BaseObject", 1, 1, &obj0))
SWIG_fail;
30366 if ( arg1 != Py_None ) {
30385 PyObject *resultobj = 0;
30389 PyObject * obj0 = 0 ;
30391 if (!PyArg_UnpackTuple(args,
"delete_BaseObject", 1, 1, &obj0))
SWIG_fail;
30396 arg1 = reinterpret_cast< operations_research::BaseObject * >(argp1);
30413 PyObject *resultobj = 0;
30417 PyObject * obj0 = 0 ;
30419 bool upcall =
false;
30420 std::string result;
30422 if (!PyArg_UnpackTuple(args,
"BaseObject_DebugString", 1, 1, &obj0))
SWIG_fail;
30425 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "BaseObject_DebugString" "', argument " "1"" of type '" "operations_research::BaseObject const *""'");
30427 arg1 = reinterpret_cast< operations_research::BaseObject * >(argp1);
30454 PyObject *resultobj = 0;
30458 PyObject * obj0 = 0 ;
30459 std::string result;
30461 if (!PyArg_UnpackTuple(args,
"BaseObject___str__", 1, 1, &obj0))
SWIG_fail;
30466 arg1 = reinterpret_cast< operations_research::BaseObject * >(argp1);
30483 PyObject *resultobj = 0;
30487 PyObject * obj0 = 0 ;
30488 std::string result;
30490 if (!PyArg_UnpackTuple(args,
"BaseObject___repr__", 1, 1, &obj0))
SWIG_fail;
30495 arg1 = reinterpret_cast< operations_research::BaseObject * >(argp1);
30512 PyObject *resultobj = 0;
30516 PyObject * obj0 = 0 ;
30518 if (!PyArg_UnpackTuple(args,
"disown_BaseObject", 1, 1, &obj0))
SWIG_fail;
30523 arg1 = reinterpret_cast< operations_research::BaseObject * >(argp1);
30548 PyObject *resultobj = 0;
30549 std::ostream *arg1 = 0 ;
30555 PyObject * obj0 = 0 ;
30556 PyObject * obj1 = 0 ;
30557 std::ostream *result = 0 ;
30559 if (!PyArg_UnpackTuple(args,
"__lshift__", 2, 2, &obj0, &obj1))
SWIG_fail;
30567 arg1 = reinterpret_cast< std::ostream * >(argp1);
30572 arg2 = reinterpret_cast< operations_research::BaseObject * >(argp2);
30585 Py_INCREF(Py_NotImplemented);
30586 return Py_NotImplemented;
30591 PyObject *resultobj = 0;
30592 PyObject *arg1 = (PyObject *) 0 ;
30596 PyObject * obj0 = 0 ;
30597 PyObject * obj1 = 0 ;
30600 if (!PyArg_UnpackTuple(args,
"new_PropagationBaseObject", 2, 2, &obj0, &obj1))
SWIG_fail;
30604 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "new_PropagationBaseObject" "', argument " "2"" of type '" "operations_research::Solver *const""'");
30606 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
30609 if ( arg1 != Py_None ) {
30628 PyObject *resultobj = 0;
30632 PyObject * obj0 = 0 ;
30634 if (!PyArg_UnpackTuple(args,
"delete_PropagationBaseObject", 1, 1, &obj0))
SWIG_fail;
30637 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_PropagationBaseObject" "', argument " "1"" of type '" "operations_research::PropagationBaseObject *""'");
30639 arg1 = reinterpret_cast< operations_research::PropagationBaseObject * >(argp1);
30656 PyObject *resultobj = 0;
30660 PyObject * obj0 = 0 ;
30662 bool upcall =
false;
30663 std::string result;
30665 if (!PyArg_UnpackTuple(args,
"PropagationBaseObject_DebugString", 1, 1, &obj0))
SWIG_fail;
30668 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "PropagationBaseObject_DebugString" "', argument " "1"" of type '" "operations_research::PropagationBaseObject const *""'");
30670 arg1 = reinterpret_cast< operations_research::PropagationBaseObject * >(argp1);
30697 PyObject *resultobj = 0;
30701 PyObject * obj0 = 0 ;
30704 if (!PyArg_UnpackTuple(args,
"PropagationBaseObject_solver", 1, 1, &obj0))
SWIG_fail;
30707 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "PropagationBaseObject_solver" "', argument " "1"" of type '" "operations_research::PropagationBaseObject const *""'");
30709 arg1 = reinterpret_cast< operations_research::PropagationBaseObject * >(argp1);
30726 PyObject *resultobj = 0;
30730 PyObject * obj0 = 0 ;
30732 bool upcall =
false;
30733 std::string result;
30735 if (!PyArg_UnpackTuple(args,
"PropagationBaseObject_Name", 1, 1, &obj0))
SWIG_fail;
30738 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "PropagationBaseObject_Name" "', argument " "1"" of type '" "operations_research::PropagationBaseObject const *""'");
30740 arg1 = reinterpret_cast< operations_research::PropagationBaseObject * >(argp1);
30767 PyObject *resultobj = 0;
30771 PyObject * obj0 = 0 ;
30773 if (!PyArg_UnpackTuple(args,
"disown_PropagationBaseObject", 1, 1, &obj0))
SWIG_fail;
30776 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "disown_PropagationBaseObject" "', argument " "1"" of type '" "operations_research::PropagationBaseObject *""'");
30778 arg1 = reinterpret_cast< operations_research::PropagationBaseObject * >(argp1);
30803 PyObject *resultobj = 0;
30804 PyObject *arg1 = (PyObject *) 0 ;
30805 PyObject * obj0 = 0 ;
30808 if (!PyArg_UnpackTuple(args,
"new_Decision", 1, 1, &obj0))
SWIG_fail;
30812 if ( arg1 != Py_None ) {
30816 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing abstract class or protected constructor");
30832 PyObject *resultobj = 0;
30836 PyObject * obj0 = 0 ;
30838 if (!PyArg_UnpackTuple(args,
"delete_Decision", 1, 1, &obj0))
SWIG_fail;
30843 arg1 = reinterpret_cast< operations_research::Decision * >(argp1);
30860 PyObject *resultobj = 0;
30867 PyObject * obj0 = 0 ;
30868 PyObject * obj1 = 0 ;
30870 bool upcall =
false;
30872 if (!PyArg_UnpackTuple(args,
"Decision_ApplyWrapper", 2, 2, &obj0, &obj1))
SWIG_fail;
30877 arg1 = reinterpret_cast< operations_research::Decision * >(argp1);
30882 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
30891 (arg1)->Apply(arg2);
30909 PyObject *resultobj = 0;
30916 PyObject * obj0 = 0 ;
30917 PyObject * obj1 = 0 ;
30919 bool upcall =
false;
30921 if (!PyArg_UnpackTuple(args,
"Decision_RefuteWrapper", 2, 2, &obj0, &obj1))
SWIG_fail;
30926 arg1 = reinterpret_cast< operations_research::Decision * >(argp1);
30931 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
30940 (arg1)->Refute(arg2);
30958 PyObject *resultobj = 0;
30962 PyObject * obj0 = 0 ;
30964 bool upcall =
false;
30965 std::string result;
30967 if (!PyArg_UnpackTuple(args,
"Decision_DebugString", 1, 1, &obj0))
SWIG_fail;
30972 arg1 = reinterpret_cast< operations_research::Decision * >(argp1);
30999 PyObject *resultobj = 0;
31003 PyObject * obj0 = 0 ;
31004 std::string result;
31006 if (!PyArg_UnpackTuple(args,
"Decision___repr__", 1, 1, &obj0))
SWIG_fail;
31011 arg1 = reinterpret_cast< operations_research::Decision * >(argp1);
31028 PyObject *resultobj = 0;
31032 PyObject * obj0 = 0 ;
31033 std::string result;
31035 if (!PyArg_UnpackTuple(args,
"Decision___str__", 1, 1, &obj0))
SWIG_fail;
31040 arg1 = reinterpret_cast< operations_research::Decision * >(argp1);
31057 PyObject *resultobj = 0;
31061 PyObject * obj0 = 0 ;
31063 if (!PyArg_UnpackTuple(args,
"disown_Decision", 1, 1, &obj0))
SWIG_fail;
31068 arg1 = reinterpret_cast< operations_research::Decision * >(argp1);
31093 PyObject *resultobj = 0;
31094 PyObject *arg1 = (PyObject *) 0 ;
31095 PyObject * obj0 = 0 ;
31098 if (!PyArg_UnpackTuple(args,
"new_DecisionBuilder", 1, 1, &obj0))
SWIG_fail;
31102 if ( arg1 != Py_None ) {
31106 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing abstract class or protected constructor");
31122 PyObject *resultobj = 0;
31126 PyObject * obj0 = 0 ;
31128 if (!PyArg_UnpackTuple(args,
"delete_DecisionBuilder", 1, 1, &obj0))
SWIG_fail;
31131 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_DecisionBuilder" "', argument " "1"" of type '" "operations_research::DecisionBuilder *""'");
31133 arg1 = reinterpret_cast< operations_research::DecisionBuilder * >(argp1);
31150 PyObject *resultobj = 0;
31157 PyObject * obj0 = 0 ;
31158 PyObject * obj1 = 0 ;
31160 bool upcall =
false;
31163 if (!PyArg_UnpackTuple(args,
"DecisionBuilder_NextWrapper", 2, 2, &obj0, &obj1))
SWIG_fail;
31166 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DecisionBuilder_NextWrapper" "', argument " "1"" of type '" "operations_research::DecisionBuilder *""'");
31168 arg1 = reinterpret_cast< operations_research::DecisionBuilder * >(argp1);
31171 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "DecisionBuilder_NextWrapper" "', argument " "2"" of type '" "operations_research::Solver *const""'");
31173 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
31195 Py_INCREF(resultobj);
31209 PyObject *resultobj = 0;
31213 PyObject * obj0 = 0 ;
31215 bool upcall =
false;
31216 std::string result;
31218 if (!PyArg_UnpackTuple(args,
"DecisionBuilder_DebugString", 1, 1, &obj0))
SWIG_fail;
31221 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DecisionBuilder_DebugString" "', argument " "1"" of type '" "operations_research::DecisionBuilder const *""'");
31223 arg1 = reinterpret_cast< operations_research::DecisionBuilder * >(argp1);
31250 PyObject *resultobj = 0;
31254 PyObject * obj0 = 0 ;
31255 std::string result;
31257 if (!PyArg_UnpackTuple(args,
"DecisionBuilder___repr__", 1, 1, &obj0))
SWIG_fail;
31260 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DecisionBuilder___repr__" "', argument " "1"" of type '" "operations_research::DecisionBuilder *""'");
31262 arg1 = reinterpret_cast< operations_research::DecisionBuilder * >(argp1);
31279 PyObject *resultobj = 0;
31283 PyObject * obj0 = 0 ;
31284 std::string result;
31286 if (!PyArg_UnpackTuple(args,
"DecisionBuilder___str__", 1, 1, &obj0))
SWIG_fail;
31289 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DecisionBuilder___str__" "', argument " "1"" of type '" "operations_research::DecisionBuilder *""'");
31291 arg1 = reinterpret_cast< operations_research::DecisionBuilder * >(argp1);
31308 PyObject *resultobj = 0;
31312 PyObject * obj0 = 0 ;
31314 if (!PyArg_UnpackTuple(args,
"disown_DecisionBuilder", 1, 1, &obj0))
SWIG_fail;
31317 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "disown_DecisionBuilder" "', argument " "1"" of type '" "operations_research::DecisionBuilder *""'");
31319 arg1 = reinterpret_cast< operations_research::DecisionBuilder * >(argp1);
31344 PyObject *resultobj = 0;
31345 PyObject *arg1 = (PyObject *) 0 ;
31346 PyObject * obj0 = 0 ;
31349 if (!PyArg_UnpackTuple(args,
"new_Demon", 1, 1, &obj0))
SWIG_fail;
31353 if ( arg1 != Py_None ) {
31357 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing abstract class or protected constructor");
31373 PyObject *resultobj = 0;
31377 PyObject * obj0 = 0 ;
31379 if (!PyArg_UnpackTuple(args,
"delete_Demon", 1, 1, &obj0))
SWIG_fail;
31384 arg1 = reinterpret_cast< operations_research::Demon * >(argp1);
31401 PyObject *resultobj = 0;
31408 PyObject * obj0 = 0 ;
31409 PyObject * obj1 = 0 ;
31411 bool upcall =
false;
31413 if (!PyArg_UnpackTuple(args,
"Demon_RunWrapper", 2, 2, &obj0, &obj1))
SWIG_fail;
31418 arg1 = reinterpret_cast< operations_research::Demon * >(argp1);
31423 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
31450 PyObject *resultobj = 0;
31454 PyObject * obj0 = 0 ;
31456 bool upcall =
false;
31459 if (!PyArg_UnpackTuple(args,
"Demon_Priority", 1, 1, &obj0))
SWIG_fail;
31464 arg1 = reinterpret_cast< operations_research::Demon * >(argp1);
31491 PyObject *resultobj = 0;
31495 PyObject * obj0 = 0 ;
31497 bool upcall =
false;
31498 std::string result;
31500 if (!PyArg_UnpackTuple(args,
"Demon_DebugString", 1, 1, &obj0))
SWIG_fail;
31505 arg1 = reinterpret_cast< operations_research::Demon * >(argp1);
31532 PyObject *resultobj = 0;
31539 PyObject * obj0 = 0 ;
31540 PyObject * obj1 = 0 ;
31542 if (!PyArg_UnpackTuple(args,
"Demon_Inhibit", 2, 2, &obj0, &obj1))
SWIG_fail;
31547 arg1 = reinterpret_cast< operations_research::Demon * >(argp1);
31552 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
31555 (arg1)->inhibit(arg2);
31569 PyObject *resultobj = 0;
31576 PyObject * obj0 = 0 ;
31577 PyObject * obj1 = 0 ;
31579 if (!PyArg_UnpackTuple(args,
"Demon_Desinhibit", 2, 2, &obj0, &obj1))
SWIG_fail;
31584 arg1 = reinterpret_cast< operations_research::Demon * >(argp1);
31589 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
31592 (arg1)->desinhibit(arg2);
31606 PyObject *resultobj = 0;
31610 PyObject * obj0 = 0 ;
31612 if (!PyArg_UnpackTuple(args,
"disown_Demon", 1, 1, &obj0))
SWIG_fail;
31617 arg1 = reinterpret_cast< operations_research::Demon * >(argp1);
31642 PyObject *resultobj = 0;
31643 PyObject *arg1 = (PyObject *) 0 ;
31647 PyObject * obj0 = 0 ;
31648 PyObject * obj1 = 0 ;
31651 if (!PyArg_UnpackTuple(args,
"new_Constraint", 2, 2, &obj0, &obj1))
SWIG_fail;
31657 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
31660 if ( arg1 != Py_None ) {
31664 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing abstract class or protected constructor");
31680 PyObject *resultobj = 0;
31684 PyObject * obj0 = 0 ;
31686 if (!PyArg_UnpackTuple(args,
"delete_Constraint", 1, 1, &obj0))
SWIG_fail;
31691 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
31708 PyObject *resultobj = 0;
31712 PyObject * obj0 = 0 ;
31714 bool upcall =
false;
31716 if (!PyArg_UnpackTuple(args,
"Constraint_Post", 1, 1, &obj0))
SWIG_fail;
31721 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
31748 PyObject *resultobj = 0;
31752 PyObject * obj0 = 0 ;
31754 bool upcall =
false;
31756 if (!PyArg_UnpackTuple(args,
"Constraint_InitialPropagateWrapper", 1, 1, &obj0))
SWIG_fail;
31759 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Constraint_InitialPropagateWrapper" "', argument " "1"" of type '" "operations_research::Constraint *""'");
31761 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
31770 (arg1)->InitialPropagate();
31788 PyObject *resultobj = 0;
31792 PyObject * obj0 = 0 ;
31794 bool upcall =
false;
31795 std::string result;
31797 if (!PyArg_UnpackTuple(args,
"Constraint_DebugString", 1, 1, &obj0))
SWIG_fail;
31800 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Constraint_DebugString" "', argument " "1"" of type '" "operations_research::Constraint const *""'");
31802 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
31829 PyObject *resultobj = 0;
31833 PyObject * obj0 = 0 ;
31835 bool upcall =
false;
31838 if (!PyArg_UnpackTuple(args,
"Constraint_Var", 1, 1, &obj0))
SWIG_fail;
31843 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
31873 PyObject *resultobj = 0;
31877 PyObject * obj0 = 0 ;
31878 std::string result;
31880 if (!PyArg_UnpackTuple(args,
"Constraint___repr__", 1, 1, &obj0))
SWIG_fail;
31885 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
31902 PyObject *resultobj = 0;
31906 PyObject * obj0 = 0 ;
31907 std::string result;
31909 if (!PyArg_UnpackTuple(args,
"Constraint___str__", 1, 1, &obj0))
SWIG_fail;
31914 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
31931 PyObject *resultobj = 0;
31938 PyObject * obj0 = 0 ;
31939 PyObject * obj1 = 0 ;
31942 if (!PyArg_UnpackTuple(args,
"Constraint___add__", 2, 2, &obj0, &obj1))
SWIG_fail;
31947 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
31952 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
31965 Py_INCREF(Py_NotImplemented);
31966 return Py_NotImplemented;
31971 PyObject *resultobj = 0;
31978 PyObject * obj0 = 0 ;
31979 PyObject * obj1 = 0 ;
31982 if (!PyArg_UnpackTuple(args,
"Constraint___add__", 2, 2, &obj0, &obj1))
SWIG_fail;
31987 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
31992 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
32005 Py_INCREF(Py_NotImplemented);
32006 return Py_NotImplemented;
32011 PyObject *resultobj = 0;
32018 PyObject * obj0 = 0 ;
32019 PyObject * obj1 = 0 ;
32022 if (!PyArg_UnpackTuple(args,
"Constraint___add__", 2, 2, &obj0, &obj1))
SWIG_fail;
32027 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32032 arg2 = static_cast< int64_t >(val2);
32045 Py_INCREF(Py_NotImplemented);
32046 return Py_NotImplemented;
32052 PyObject *argv[3] = {
32058 argc = PyObject_Length(args);
32059 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
32060 argv[ii] = PyTuple_GET_ITEM(args,ii);
32107 Py_INCREF(Py_NotImplemented);
32108 return Py_NotImplemented;
32113 PyObject *resultobj = 0;
32120 PyObject * obj0 = 0 ;
32121 PyObject * obj1 = 0 ;
32124 if (!PyArg_UnpackTuple(args,
"Constraint___radd__", 2, 2, &obj0, &obj1))
SWIG_fail;
32129 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32134 arg2 = static_cast< int64_t >(val2);
32147 Py_INCREF(Py_NotImplemented);
32148 return Py_NotImplemented;
32153 PyObject *resultobj = 0;
32160 PyObject * obj0 = 0 ;
32161 PyObject * obj1 = 0 ;
32164 if (!PyArg_UnpackTuple(args,
"Constraint___sub__", 2, 2, &obj0, &obj1))
SWIG_fail;
32169 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32174 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
32187 Py_INCREF(Py_NotImplemented);
32188 return Py_NotImplemented;
32193 PyObject *resultobj = 0;
32200 PyObject * obj0 = 0 ;
32201 PyObject * obj1 = 0 ;
32204 if (!PyArg_UnpackTuple(args,
"Constraint___sub__", 2, 2, &obj0, &obj1))
SWIG_fail;
32209 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32214 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
32227 Py_INCREF(Py_NotImplemented);
32228 return Py_NotImplemented;
32233 PyObject *resultobj = 0;
32240 PyObject * obj0 = 0 ;
32241 PyObject * obj1 = 0 ;
32244 if (!PyArg_UnpackTuple(args,
"Constraint___sub__", 2, 2, &obj0, &obj1))
SWIG_fail;
32249 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32254 arg2 = static_cast< int64_t >(val2);
32267 Py_INCREF(Py_NotImplemented);
32268 return Py_NotImplemented;
32274 PyObject *argv[3] = {
32280 argc = PyObject_Length(args);
32281 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
32282 argv[ii] = PyTuple_GET_ITEM(args,ii);
32329 Py_INCREF(Py_NotImplemented);
32330 return Py_NotImplemented;
32335 PyObject *resultobj = 0;
32342 PyObject * obj0 = 0 ;
32343 PyObject * obj1 = 0 ;
32346 if (!PyArg_UnpackTuple(args,
"Constraint___rsub__", 2, 2, &obj0, &obj1))
SWIG_fail;
32351 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32356 arg2 = static_cast< int64_t >(val2);
32369 Py_INCREF(Py_NotImplemented);
32370 return Py_NotImplemented;
32375 PyObject *resultobj = 0;
32382 PyObject * obj0 = 0 ;
32383 PyObject * obj1 = 0 ;
32386 if (!PyArg_UnpackTuple(args,
"Constraint___mul__", 2, 2, &obj0, &obj1))
SWIG_fail;
32391 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32396 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
32409 Py_INCREF(Py_NotImplemented);
32410 return Py_NotImplemented;
32415 PyObject *resultobj = 0;
32422 PyObject * obj0 = 0 ;
32423 PyObject * obj1 = 0 ;
32426 if (!PyArg_UnpackTuple(args,
"Constraint___mul__", 2, 2, &obj0, &obj1))
SWIG_fail;
32431 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32436 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
32449 Py_INCREF(Py_NotImplemented);
32450 return Py_NotImplemented;
32455 PyObject *resultobj = 0;
32462 PyObject * obj0 = 0 ;
32463 PyObject * obj1 = 0 ;
32466 if (!PyArg_UnpackTuple(args,
"Constraint___mul__", 2, 2, &obj0, &obj1))
SWIG_fail;
32471 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32476 arg2 = static_cast< int64_t >(val2);
32489 Py_INCREF(Py_NotImplemented);
32490 return Py_NotImplemented;
32496 PyObject *argv[3] = {
32502 argc = PyObject_Length(args);
32503 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
32504 argv[ii] = PyTuple_GET_ITEM(args,ii);
32551 Py_INCREF(Py_NotImplemented);
32552 return Py_NotImplemented;
32557 PyObject *resultobj = 0;
32564 PyObject * obj0 = 0 ;
32565 PyObject * obj1 = 0 ;
32568 if (!PyArg_UnpackTuple(args,
"Constraint___rmul__", 2, 2, &obj0, &obj1))
SWIG_fail;
32573 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32578 arg2 = static_cast< int64_t >(val2);
32591 Py_INCREF(Py_NotImplemented);
32592 return Py_NotImplemented;
32597 PyObject *resultobj = 0;
32604 PyObject * obj0 = 0 ;
32605 PyObject * obj1 = 0 ;
32608 if (!PyArg_UnpackTuple(args,
"Constraint___floordiv__", 2, 2, &obj0, &obj1))
SWIG_fail;
32613 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32618 arg2 = static_cast< int64_t >(val2);
32635 PyObject *resultobj = 0;
32639 PyObject * obj0 = 0 ;
32642 if (!PyArg_UnpackTuple(args,
"Constraint___neg__", 1, 1, &obj0))
SWIG_fail;
32647 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32660 Py_INCREF(Py_NotImplemented);
32661 return Py_NotImplemented;
32666 PyObject *resultobj = 0;
32670 PyObject * obj0 = 0 ;
32673 if (!PyArg_UnpackTuple(args,
"Constraint___abs__", 1, 1, &obj0))
SWIG_fail;
32678 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32695 PyObject *resultobj = 0;
32699 PyObject * obj0 = 0 ;
32702 if (!PyArg_UnpackTuple(args,
"Constraint_Square", 1, 1, &obj0))
SWIG_fail;
32707 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32724 PyObject *resultobj = 0;
32731 PyObject * obj0 = 0 ;
32732 PyObject * obj1 = 0 ;
32736 if (!PyArg_UnpackTuple(args,
"Constraint___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
32741 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32746 arg2 = static_cast< int64_t >(val2);
32758 Py_INCREF(resultobj);
32765 Py_INCREF(Py_NotImplemented);
32766 return Py_NotImplemented;
32771 PyObject *resultobj = 0;
32778 PyObject * obj0 = 0 ;
32779 PyObject * obj1 = 0 ;
32783 if (!PyArg_UnpackTuple(args,
"Constraint___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
32788 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32793 arg2 = static_cast< int64_t >(val2);
32805 Py_INCREF(resultobj);
32812 Py_INCREF(Py_NotImplemented);
32813 return Py_NotImplemented;
32818 PyObject *resultobj = 0;
32825 PyObject * obj0 = 0 ;
32826 PyObject * obj1 = 0 ;
32830 if (!PyArg_UnpackTuple(args,
"Constraint___ge__", 2, 2, &obj0, &obj1))
SWIG_fail;
32835 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32840 arg2 = static_cast< int64_t >(val2);
32852 Py_INCREF(resultobj);
32859 Py_INCREF(Py_NotImplemented);
32860 return Py_NotImplemented;
32865 PyObject *resultobj = 0;
32872 PyObject * obj0 = 0 ;
32873 PyObject * obj1 = 0 ;
32877 if (!PyArg_UnpackTuple(args,
"Constraint___gt__", 2, 2, &obj0, &obj1))
SWIG_fail;
32882 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32887 arg2 = static_cast< int64_t >(val2);
32899 Py_INCREF(resultobj);
32906 Py_INCREF(Py_NotImplemented);
32907 return Py_NotImplemented;
32912 PyObject *resultobj = 0;
32919 PyObject * obj0 = 0 ;
32920 PyObject * obj1 = 0 ;
32924 if (!PyArg_UnpackTuple(args,
"Constraint___le__", 2, 2, &obj0, &obj1))
SWIG_fail;
32929 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32934 arg2 = static_cast< int64_t >(val2);
32946 Py_INCREF(resultobj);
32953 Py_INCREF(Py_NotImplemented);
32954 return Py_NotImplemented;
32959 PyObject *resultobj = 0;
32966 PyObject * obj0 = 0 ;
32967 PyObject * obj1 = 0 ;
32971 if (!PyArg_UnpackTuple(args,
"Constraint___lt__", 2, 2, &obj0, &obj1))
SWIG_fail;
32976 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
32981 arg2 = static_cast< int64_t >(val2);
32993 Py_INCREF(resultobj);
33000 Py_INCREF(Py_NotImplemented);
33001 return Py_NotImplemented;
33006 PyObject *resultobj = 0;
33013 PyObject * obj0 = 0 ;
33014 PyObject * obj1 = 0 ;
33018 if (!PyArg_UnpackTuple(args,
"Constraint___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
33023 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33028 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
33040 Py_INCREF(resultobj);
33047 Py_INCREF(Py_NotImplemented);
33048 return Py_NotImplemented;
33053 PyObject *resultobj = 0;
33060 PyObject * obj0 = 0 ;
33061 PyObject * obj1 = 0 ;
33065 if (!PyArg_UnpackTuple(args,
"Constraint___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
33070 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33075 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
33087 Py_INCREF(resultobj);
33094 Py_INCREF(Py_NotImplemented);
33095 return Py_NotImplemented;
33100 PyObject *resultobj = 0;
33107 PyObject * obj0 = 0 ;
33108 PyObject * obj1 = 0 ;
33112 if (!PyArg_UnpackTuple(args,
"Constraint___ge__", 2, 2, &obj0, &obj1))
SWIG_fail;
33117 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33122 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
33134 Py_INCREF(resultobj);
33141 Py_INCREF(Py_NotImplemented);
33142 return Py_NotImplemented;
33147 PyObject *resultobj = 0;
33154 PyObject * obj0 = 0 ;
33155 PyObject * obj1 = 0 ;
33159 if (!PyArg_UnpackTuple(args,
"Constraint___gt__", 2, 2, &obj0, &obj1))
SWIG_fail;
33164 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33169 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
33181 Py_INCREF(resultobj);
33188 Py_INCREF(Py_NotImplemented);
33189 return Py_NotImplemented;
33194 PyObject *resultobj = 0;
33201 PyObject * obj0 = 0 ;
33202 PyObject * obj1 = 0 ;
33206 if (!PyArg_UnpackTuple(args,
"Constraint___le__", 2, 2, &obj0, &obj1))
SWIG_fail;
33211 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33216 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
33228 Py_INCREF(resultobj);
33235 Py_INCREF(Py_NotImplemented);
33236 return Py_NotImplemented;
33241 PyObject *resultobj = 0;
33248 PyObject * obj0 = 0 ;
33249 PyObject * obj1 = 0 ;
33253 if (!PyArg_UnpackTuple(args,
"Constraint___lt__", 2, 2, &obj0, &obj1))
SWIG_fail;
33258 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33263 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
33275 Py_INCREF(resultobj);
33282 Py_INCREF(Py_NotImplemented);
33283 return Py_NotImplemented;
33288 PyObject *resultobj = 0;
33295 PyObject * obj0 = 0 ;
33296 PyObject * obj1 = 0 ;
33300 if (!PyArg_UnpackTuple(args,
"Constraint___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
33305 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33310 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
33322 Py_INCREF(resultobj);
33329 Py_INCREF(Py_NotImplemented);
33330 return Py_NotImplemented;
33336 PyObject *argv[3] = {
33342 argc = PyObject_Length(args);
33343 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33344 argv[ii] = PyTuple_GET_ITEM(args,ii);
33391 Py_INCREF(Py_NotImplemented);
33392 return Py_NotImplemented;
33397 PyObject *resultobj = 0;
33404 PyObject * obj0 = 0 ;
33405 PyObject * obj1 = 0 ;
33409 if (!PyArg_UnpackTuple(args,
"Constraint___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
33414 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33419 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
33431 Py_INCREF(resultobj);
33438 Py_INCREF(Py_NotImplemented);
33439 return Py_NotImplemented;
33445 PyObject *argv[3] = {
33451 argc = PyObject_Length(args);
33452 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33453 argv[ii] = PyTuple_GET_ITEM(args,ii);
33500 Py_INCREF(Py_NotImplemented);
33501 return Py_NotImplemented;
33506 PyObject *resultobj = 0;
33513 PyObject * obj0 = 0 ;
33514 PyObject * obj1 = 0 ;
33518 if (!PyArg_UnpackTuple(args,
"Constraint___ge__", 2, 2, &obj0, &obj1))
SWIG_fail;
33523 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33528 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
33540 Py_INCREF(resultobj);
33547 Py_INCREF(Py_NotImplemented);
33548 return Py_NotImplemented;
33554 PyObject *argv[3] = {
33560 argc = PyObject_Length(args);
33561 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33562 argv[ii] = PyTuple_GET_ITEM(args,ii);
33609 Py_INCREF(Py_NotImplemented);
33610 return Py_NotImplemented;
33615 PyObject *resultobj = 0;
33622 PyObject * obj0 = 0 ;
33623 PyObject * obj1 = 0 ;
33627 if (!PyArg_UnpackTuple(args,
"Constraint___gt__", 2, 2, &obj0, &obj1))
SWIG_fail;
33632 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33637 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
33649 Py_INCREF(resultobj);
33656 Py_INCREF(Py_NotImplemented);
33657 return Py_NotImplemented;
33663 PyObject *argv[3] = {
33669 argc = PyObject_Length(args);
33670 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33671 argv[ii] = PyTuple_GET_ITEM(args,ii);
33718 Py_INCREF(Py_NotImplemented);
33719 return Py_NotImplemented;
33724 PyObject *resultobj = 0;
33731 PyObject * obj0 = 0 ;
33732 PyObject * obj1 = 0 ;
33736 if (!PyArg_UnpackTuple(args,
"Constraint___le__", 2, 2, &obj0, &obj1))
SWIG_fail;
33741 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33746 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
33758 Py_INCREF(resultobj);
33765 Py_INCREF(Py_NotImplemented);
33766 return Py_NotImplemented;
33772 PyObject *argv[3] = {
33778 argc = PyObject_Length(args);
33779 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33780 argv[ii] = PyTuple_GET_ITEM(args,ii);
33827 Py_INCREF(Py_NotImplemented);
33828 return Py_NotImplemented;
33833 PyObject *resultobj = 0;
33840 PyObject * obj0 = 0 ;
33841 PyObject * obj1 = 0 ;
33845 if (!PyArg_UnpackTuple(args,
"Constraint___lt__", 2, 2, &obj0, &obj1))
SWIG_fail;
33850 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33855 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
33867 Py_INCREF(resultobj);
33874 Py_INCREF(Py_NotImplemented);
33875 return Py_NotImplemented;
33881 PyObject *argv[3] = {
33887 argc = PyObject_Length(args);
33888 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33889 argv[ii] = PyTuple_GET_ITEM(args,ii);
33936 Py_INCREF(Py_NotImplemented);
33937 return Py_NotImplemented;
33942 PyObject *resultobj = 0;
33944 std::vector< operations_research::IntVar * > *arg2 = 0 ;
33947 std::vector< operations_research::IntVar * > temp2 ;
33948 PyObject * obj0 = 0 ;
33949 PyObject * obj1 = 0 ;
33953 if (!PyArg_UnpackTuple(args,
"Constraint_MapTo", 2, 2, &obj0, &obj1))
SWIG_fail;
33958 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
33960 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
33961 if (!PyErr_Occurred())
33978 Py_INCREF(resultobj);
33989 PyObject *resultobj = 0;
33991 std::vector< int64_t > *arg2 = 0 ;
33994 std::vector< int64_t > temp2 ;
33995 PyObject * obj0 = 0 ;
33996 PyObject * obj1 = 0 ;
33999 if (!PyArg_UnpackTuple(args,
"Constraint_IndexOf", 2, 2, &obj0, &obj1))
SWIG_fail;
34004 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
34006 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
34007 if (!PyErr_Occurred())
34029 PyObject *resultobj = 0;
34031 std::vector< operations_research::IntVar * > *arg2 = 0 ;
34034 std::vector< operations_research::IntVar * > temp2 ;
34035 PyObject * obj0 = 0 ;
34036 PyObject * obj1 = 0 ;
34039 if (!PyArg_UnpackTuple(args,
"Constraint_IndexOf", 2, 2, &obj0, &obj1))
SWIG_fail;
34044 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
34046 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
34047 if (!PyErr_Occurred())
34070 PyObject *argv[3] = {
34076 argc = PyObject_Length(args);
34077 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
34078 argv[ii] = PyTuple_GET_ITEM(args,ii);
34087 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
34090 const bool is_tuple = PyTuple_Check(argv[1]);
34091 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
34093 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
34094 :PyList_GetItem(argv[1], i))) {
34112 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
34115 const bool is_tuple = PyTuple_Check(argv[1]);
34116 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
34119 :PyList_GetItem(argv[1], i))) {
34133 " Possible C/C++ prototypes are:\n" 34134 " operations_research::Constraint::IndexOf(std::vector< int64_t > const &)\n" 34135 " operations_research::Constraint::IndexOf(std::vector< operations_research::IntVar * > const &)\n");
34141 PyObject *resultobj = 0;
34145 PyObject * obj0 = 0 ;
34147 if (!PyArg_UnpackTuple(args,
"disown_Constraint", 1, 1, &obj0))
SWIG_fail;
34152 arg1 = reinterpret_cast< operations_research::Constraint * >(argp1);
34177 PyObject *resultobj = 0;
34178 PyObject *arg1 = (PyObject *) 0 ;
34182 PyObject * obj0 = 0 ;
34183 PyObject * obj1 = 0 ;
34186 if (!PyArg_UnpackTuple(args,
"new_SearchMonitor", 2, 2, &obj0, &obj1))
SWIG_fail;
34192 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
34195 if ( arg1 != Py_None ) {
34214 PyObject *resultobj = 0;
34218 PyObject * obj0 = 0 ;
34220 if (!PyArg_UnpackTuple(args,
"delete_SearchMonitor", 1, 1, &obj0))
SWIG_fail;
34225 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34242 PyObject *resultobj = 0;
34246 PyObject * obj0 = 0 ;
34248 bool upcall =
false;
34250 if (!PyArg_UnpackTuple(args,
"SearchMonitor_EnterSearch", 1, 1, &obj0))
SWIG_fail;
34253 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_EnterSearch" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34255 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34264 (arg1)->EnterSearch();
34282 PyObject *resultobj = 0;
34286 PyObject * obj0 = 0 ;
34288 bool upcall =
false;
34290 if (!PyArg_UnpackTuple(args,
"SearchMonitor_RestartSearch", 1, 1, &obj0))
SWIG_fail;
34293 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_RestartSearch" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34295 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34304 (arg1)->RestartSearch();
34322 PyObject *resultobj = 0;
34326 PyObject * obj0 = 0 ;
34328 bool upcall =
false;
34330 if (!PyArg_UnpackTuple(args,
"SearchMonitor_ExitSearch", 1, 1, &obj0))
SWIG_fail;
34333 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_ExitSearch" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34335 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34344 (arg1)->ExitSearch();
34362 PyObject *resultobj = 0;
34367 PyObject * obj0 = 0 ;
34368 PyObject * obj1 = 0 ;
34370 bool upcall =
false;
34372 if (!PyArg_UnpackTuple(args,
"SearchMonitor_BeginNextDecision", 2, 2, &obj0, &obj1))
SWIG_fail;
34375 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_BeginNextDecision" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34377 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34389 (arg1)->BeginNextDecision(arg2);
34407 PyObject *resultobj = 0;
34413 PyObject * obj0 = 0 ;
34414 PyObject * obj1 = 0 ;
34415 PyObject * obj2 = 0 ;
34417 bool upcall =
false;
34419 if (!PyArg_UnpackTuple(args,
"SearchMonitor_EndNextDecision", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
34422 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_EndNextDecision" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34424 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34439 (arg1)->EndNextDecision(arg2,arg3);
34457 PyObject *resultobj = 0;
34462 PyObject * obj0 = 0 ;
34463 PyObject * obj1 = 0 ;
34465 bool upcall =
false;
34467 if (!PyArg_UnpackTuple(args,
"SearchMonitor_ApplyDecision", 2, 2, &obj0, &obj1))
SWIG_fail;
34470 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_ApplyDecision" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34472 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34484 (arg1)->ApplyDecision(arg2);
34502 PyObject *resultobj = 0;
34507 PyObject * obj0 = 0 ;
34508 PyObject * obj1 = 0 ;
34510 bool upcall =
false;
34512 if (!PyArg_UnpackTuple(args,
"SearchMonitor_RefuteDecision", 2, 2, &obj0, &obj1))
SWIG_fail;
34515 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_RefuteDecision" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34517 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34529 (arg1)->RefuteDecision(arg2);
34547 PyObject *resultobj = 0;
34555 PyObject * obj0 = 0 ;
34556 PyObject * obj1 = 0 ;
34557 PyObject * obj2 = 0 ;
34559 bool upcall =
false;
34561 if (!PyArg_UnpackTuple(args,
"SearchMonitor_AfterDecision", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
34564 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_AfterDecision" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34566 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34574 arg3 = static_cast< bool >(val3);
34583 (arg1)->AfterDecision(arg2,arg3);
34601 PyObject *resultobj = 0;
34605 PyObject * obj0 = 0 ;
34607 bool upcall =
false;
34609 if (!PyArg_UnpackTuple(args,
"SearchMonitor_BeginFail", 1, 1, &obj0))
SWIG_fail;
34612 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_BeginFail" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34614 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34623 (arg1)->BeginFail();
34641 PyObject *resultobj = 0;
34645 PyObject * obj0 = 0 ;
34647 bool upcall =
false;
34649 if (!PyArg_UnpackTuple(args,
"SearchMonitor_EndFail", 1, 1, &obj0))
SWIG_fail;
34654 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34681 PyObject *resultobj = 0;
34685 PyObject * obj0 = 0 ;
34687 bool upcall =
false;
34689 if (!PyArg_UnpackTuple(args,
"SearchMonitor_BeginInitialPropagation", 1, 1, &obj0))
SWIG_fail;
34692 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_BeginInitialPropagation" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34694 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34703 (arg1)->BeginInitialPropagation();
34721 PyObject *resultobj = 0;
34725 PyObject * obj0 = 0 ;
34727 bool upcall =
false;
34729 if (!PyArg_UnpackTuple(args,
"SearchMonitor_EndInitialPropagation", 1, 1, &obj0))
SWIG_fail;
34732 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_EndInitialPropagation" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34734 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34743 (arg1)->EndInitialPropagation();
34761 PyObject *resultobj = 0;
34765 PyObject * obj0 = 0 ;
34767 bool upcall =
false;
34770 if (!PyArg_UnpackTuple(args,
"SearchMonitor_AcceptSolution", 1, 1, &obj0))
SWIG_fail;
34773 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_AcceptSolution" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34775 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34782 result = (bool)(arg1)->operations_research::SearchMonitor::AcceptSolution();
34784 result = (bool)(arg1)->AcceptSolution();
34802 PyObject *resultobj = 0;
34806 PyObject * obj0 = 0 ;
34808 bool upcall =
false;
34811 if (!PyArg_UnpackTuple(args,
"SearchMonitor_AtSolution", 1, 1, &obj0))
SWIG_fail;
34814 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_AtSolution" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34816 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34823 result = (bool)(arg1)->operations_research::SearchMonitor::AtSolution();
34825 result = (bool)(arg1)->AtSolution();
34843 PyObject *resultobj = 0;
34847 PyObject * obj0 = 0 ;
34849 bool upcall =
false;
34851 if (!PyArg_UnpackTuple(args,
"SearchMonitor_NoMoreSolutions", 1, 1, &obj0))
SWIG_fail;
34854 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_NoMoreSolutions" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34856 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34865 (arg1)->NoMoreSolutions();
34883 PyObject *resultobj = 0;
34887 PyObject * obj0 = 0 ;
34889 bool upcall =
false;
34892 if (!PyArg_UnpackTuple(args,
"SearchMonitor_LocalOptimum", 1, 1, &obj0))
SWIG_fail;
34895 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_LocalOptimum" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34897 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34904 result = (bool)(arg1)->operations_research::SearchMonitor::LocalOptimum();
34906 result = (bool)(arg1)->LocalOptimum();
34924 PyObject *resultobj = 0;
34934 PyObject * obj0 = 0 ;
34935 PyObject * obj1 = 0 ;
34936 PyObject * obj2 = 0 ;
34938 bool upcall =
false;
34941 if (!PyArg_UnpackTuple(args,
"SearchMonitor_AcceptDelta", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
34944 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_AcceptDelta" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34946 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
34949 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "SearchMonitor_AcceptDelta" "', argument " "2"" of type '" "operations_research::Assignment *""'");
34951 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
34954 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "SearchMonitor_AcceptDelta" "', argument " "3"" of type '" "operations_research::Assignment *""'");
34956 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
34963 result = (bool)(arg1)->operations_research::SearchMonitor::AcceptDelta(arg2,arg3);
34965 result = (bool)(arg1)->AcceptDelta(arg2,arg3);
34983 PyObject *resultobj = 0;
34987 PyObject * obj0 = 0 ;
34989 bool upcall =
false;
34991 if (!PyArg_UnpackTuple(args,
"SearchMonitor_AcceptNeighbor", 1, 1, &obj0))
SWIG_fail;
34994 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_AcceptNeighbor" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
34996 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
35023 PyObject *resultobj = 0;
35027 PyObject * obj0 = 0 ;
35030 if (!PyArg_UnpackTuple(args,
"SearchMonitor_solver", 1, 1, &obj0))
SWIG_fail;
35033 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor_solver" "', argument " "1"" of type '" "operations_research::SearchMonitor const *""'");
35035 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
35052 PyObject *resultobj = 0;
35056 PyObject * obj0 = 0 ;
35057 std::string result;
35059 if (!PyArg_UnpackTuple(args,
"SearchMonitor___repr__", 1, 1, &obj0))
SWIG_fail;
35062 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchMonitor___repr__" "', argument " "1"" of type '" "operations_research::SearchMonitor *""'");
35064 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
35081 PyObject *resultobj = 0;
35085 PyObject * obj0 = 0 ;
35086 std::string result;
35088 if (!PyArg_UnpackTuple(args,
"SearchMonitor___str__", 1, 1, &obj0))
SWIG_fail;
35093 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
35110 PyObject *resultobj = 0;
35114 PyObject * obj0 = 0 ;
35116 if (!PyArg_UnpackTuple(args,
"disown_SearchMonitor", 1, 1, &obj0))
SWIG_fail;
35121 arg1 = reinterpret_cast< operations_research::SearchMonitor * >(argp1);
35146 PyObject *resultobj = 0;
35150 PyObject * obj0 = 0 ;
35153 if (!PyArg_UnpackTuple(args,
"IntExpr_Min", 1, 1, &obj0))
SWIG_fail;
35158 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35175 PyObject *resultobj = 0;
35182 PyObject * obj0 = 0 ;
35183 PyObject * obj1 = 0 ;
35185 if (!PyArg_UnpackTuple(args,
"IntExpr_SetMin", 2, 2, &obj0, &obj1))
SWIG_fail;
35190 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35195 arg2 = static_cast< int64_t >(val2);
35203 (arg1)->SetMin(arg2);
35210 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
35222 PyObject *resultobj = 0;
35226 PyObject * obj0 = 0 ;
35229 if (!PyArg_UnpackTuple(args,
"IntExpr_Max", 1, 1, &obj0))
SWIG_fail;
35234 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35251 PyObject *resultobj = 0;
35258 PyObject * obj0 = 0 ;
35259 PyObject * obj1 = 0 ;
35261 if (!PyArg_UnpackTuple(args,
"IntExpr_SetMax", 2, 2, &obj0, &obj1))
SWIG_fail;
35266 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35271 arg2 = static_cast< int64_t >(val2);
35279 (arg1)->SetMax(arg2);
35286 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
35298 PyObject *resultobj = 0;
35308 PyObject * obj0 = 0 ;
35309 PyObject * obj1 = 0 ;
35310 PyObject * obj2 = 0 ;
35312 if (!PyArg_UnpackTuple(args,
"IntExpr_SetRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
35317 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35322 arg2 = static_cast< int64_t >(val2);
35327 arg3 = static_cast< int64_t >(val3);
35335 (arg1)->SetRange(arg2,arg3);
35342 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
35354 PyObject *resultobj = 0;
35361 PyObject * obj0 = 0 ;
35362 PyObject * obj1 = 0 ;
35364 if (!PyArg_UnpackTuple(args,
"IntExpr_SetValue", 2, 2, &obj0, &obj1))
SWIG_fail;
35369 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35374 arg2 = static_cast< int64_t >(val2);
35382 (arg1)->SetValue(arg2);
35389 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
35401 PyObject *resultobj = 0;
35405 PyObject * obj0 = 0 ;
35408 if (!PyArg_UnpackTuple(args,
"IntExpr_Bound", 1, 1, &obj0))
SWIG_fail;
35413 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35430 PyObject *resultobj = 0;
35434 PyObject * obj0 = 0 ;
35437 if (!PyArg_UnpackTuple(args,
"IntExpr_IsVar", 1, 1, &obj0))
SWIG_fail;
35442 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35459 PyObject *resultobj = 0;
35463 PyObject * obj0 = 0 ;
35466 if (!PyArg_UnpackTuple(args,
"IntExpr_Var", 1, 1, &obj0))
SWIG_fail;
35471 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35488 PyObject *resultobj = 0;
35490 std::string *arg2 = 0 ;
35494 PyObject * obj0 = 0 ;
35495 PyObject * obj1 = 0 ;
35498 if (!PyArg_UnpackTuple(args,
"IntExpr_VarWithName", 2, 2, &obj0, &obj1))
SWIG_fail;
35503 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35505 std::string *ptr = (std::string *)0;
35533 PyObject *resultobj = 0;
35540 PyObject * obj0 = 0 ;
35541 PyObject * obj1 = 0 ;
35543 if (!PyArg_UnpackTuple(args,
"IntExpr_WhenRange", 2, 2, &obj0, &obj1))
SWIG_fail;
35548 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35553 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
35556 (arg1)->WhenRange(arg2);
35570 PyObject *resultobj = 0;
35575 PyObject * obj0 = 0 ;
35576 PyObject * obj1 = 0 ;
35578 if (!PyArg_UnpackTuple(args,
"IntExpr_WhenRange", 2, 2, &obj0, &obj1))
SWIG_fail;
35583 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35587 return InvokePythonCallableReturning<void>(
input.get());
35592 (arg1)->WhenRange(arg2);
35607 PyObject *argv[3] = {
35613 argc = PyObject_Length(args);
35614 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
35615 argv[ii] = PyTuple_GET_ITEM(args,ii);
35638 _v = PyCallable_Check(argv[1]);
35648 " Possible C/C++ prototypes are:\n" 35649 " operations_research::IntExpr::WhenRange(operations_research::Demon *)\n" 35650 " operations_research::IntExpr::WhenRange(operations_research::Solver::Closure)\n");
35656 PyObject *resultobj = 0;
35660 PyObject * obj0 = 0 ;
35661 std::string result;
35663 if (!PyArg_UnpackTuple(args,
"IntExpr___repr__", 1, 1, &obj0))
SWIG_fail;
35668 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35685 PyObject *resultobj = 0;
35689 PyObject * obj0 = 0 ;
35690 std::string result;
35692 if (!PyArg_UnpackTuple(args,
"IntExpr___str__", 1, 1, &obj0))
SWIG_fail;
35697 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35714 PyObject *resultobj = 0;
35721 PyObject * obj0 = 0 ;
35722 PyObject * obj1 = 0 ;
35725 if (!PyArg_UnpackTuple(args,
"IntExpr___add__", 2, 2, &obj0, &obj1))
SWIG_fail;
35730 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35735 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
35748 Py_INCREF(Py_NotImplemented);
35749 return Py_NotImplemented;
35754 PyObject *resultobj = 0;
35761 PyObject * obj0 = 0 ;
35762 PyObject * obj1 = 0 ;
35765 if (!PyArg_UnpackTuple(args,
"IntExpr___add__", 2, 2, &obj0, &obj1))
SWIG_fail;
35770 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35775 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
35788 Py_INCREF(Py_NotImplemented);
35789 return Py_NotImplemented;
35794 PyObject *resultobj = 0;
35801 PyObject * obj0 = 0 ;
35802 PyObject * obj1 = 0 ;
35805 if (!PyArg_UnpackTuple(args,
"IntExpr___add__", 2, 2, &obj0, &obj1))
SWIG_fail;
35810 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35815 arg2 = static_cast< int64_t >(val2);
35828 Py_INCREF(Py_NotImplemented);
35829 return Py_NotImplemented;
35835 PyObject *argv[3] = {
35841 argc = PyObject_Length(args);
35842 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
35843 argv[ii] = PyTuple_GET_ITEM(args,ii);
35890 Py_INCREF(Py_NotImplemented);
35891 return Py_NotImplemented;
35896 PyObject *resultobj = 0;
35903 PyObject * obj0 = 0 ;
35904 PyObject * obj1 = 0 ;
35907 if (!PyArg_UnpackTuple(args,
"IntExpr___radd__", 2, 2, &obj0, &obj1))
SWIG_fail;
35912 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35917 arg2 = static_cast< int64_t >(val2);
35930 Py_INCREF(Py_NotImplemented);
35931 return Py_NotImplemented;
35936 PyObject *resultobj = 0;
35943 PyObject * obj0 = 0 ;
35944 PyObject * obj1 = 0 ;
35947 if (!PyArg_UnpackTuple(args,
"IntExpr___sub__", 2, 2, &obj0, &obj1))
SWIG_fail;
35952 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35957 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
35970 Py_INCREF(Py_NotImplemented);
35971 return Py_NotImplemented;
35976 PyObject *resultobj = 0;
35983 PyObject * obj0 = 0 ;
35984 PyObject * obj1 = 0 ;
35987 if (!PyArg_UnpackTuple(args,
"IntExpr___sub__", 2, 2, &obj0, &obj1))
SWIG_fail;
35992 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
35997 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
36010 Py_INCREF(Py_NotImplemented);
36011 return Py_NotImplemented;
36016 PyObject *resultobj = 0;
36023 PyObject * obj0 = 0 ;
36024 PyObject * obj1 = 0 ;
36027 if (!PyArg_UnpackTuple(args,
"IntExpr___sub__", 2, 2, &obj0, &obj1))
SWIG_fail;
36032 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36037 arg2 = static_cast< int64_t >(val2);
36050 Py_INCREF(Py_NotImplemented);
36051 return Py_NotImplemented;
36057 PyObject *argv[3] = {
36063 argc = PyObject_Length(args);
36064 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
36065 argv[ii] = PyTuple_GET_ITEM(args,ii);
36112 Py_INCREF(Py_NotImplemented);
36113 return Py_NotImplemented;
36118 PyObject *resultobj = 0;
36125 PyObject * obj0 = 0 ;
36126 PyObject * obj1 = 0 ;
36129 if (!PyArg_UnpackTuple(args,
"IntExpr___rsub__", 2, 2, &obj0, &obj1))
SWIG_fail;
36134 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36139 arg2 = static_cast< int64_t >(val2);
36152 Py_INCREF(Py_NotImplemented);
36153 return Py_NotImplemented;
36158 PyObject *resultobj = 0;
36165 PyObject * obj0 = 0 ;
36166 PyObject * obj1 = 0 ;
36169 if (!PyArg_UnpackTuple(args,
"IntExpr___mul__", 2, 2, &obj0, &obj1))
SWIG_fail;
36174 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36179 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
36192 Py_INCREF(Py_NotImplemented);
36193 return Py_NotImplemented;
36198 PyObject *resultobj = 0;
36205 PyObject * obj0 = 0 ;
36206 PyObject * obj1 = 0 ;
36209 if (!PyArg_UnpackTuple(args,
"IntExpr___mul__", 2, 2, &obj0, &obj1))
SWIG_fail;
36214 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36219 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
36232 Py_INCREF(Py_NotImplemented);
36233 return Py_NotImplemented;
36238 PyObject *resultobj = 0;
36245 PyObject * obj0 = 0 ;
36246 PyObject * obj1 = 0 ;
36249 if (!PyArg_UnpackTuple(args,
"IntExpr___mul__", 2, 2, &obj0, &obj1))
SWIG_fail;
36254 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36259 arg2 = static_cast< int64_t >(val2);
36272 Py_INCREF(Py_NotImplemented);
36273 return Py_NotImplemented;
36279 PyObject *argv[3] = {
36285 argc = PyObject_Length(args);
36286 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
36287 argv[ii] = PyTuple_GET_ITEM(args,ii);
36334 Py_INCREF(Py_NotImplemented);
36335 return Py_NotImplemented;
36340 PyObject *resultobj = 0;
36347 PyObject * obj0 = 0 ;
36348 PyObject * obj1 = 0 ;
36351 if (!PyArg_UnpackTuple(args,
"IntExpr___rmul__", 2, 2, &obj0, &obj1))
SWIG_fail;
36356 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36361 arg2 = static_cast< int64_t >(val2);
36374 Py_INCREF(Py_NotImplemented);
36375 return Py_NotImplemented;
36380 PyObject *resultobj = 0;
36387 PyObject * obj0 = 0 ;
36388 PyObject * obj1 = 0 ;
36391 if (!PyArg_UnpackTuple(args,
"IntExpr___floordiv__", 2, 2, &obj0, &obj1))
SWIG_fail;
36396 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36401 arg2 = static_cast< int64_t >(val2);
36418 PyObject *resultobj = 0;
36425 PyObject * obj0 = 0 ;
36426 PyObject * obj1 = 0 ;
36429 if (!PyArg_UnpackTuple(args,
"IntExpr___floordiv__", 2, 2, &obj0, &obj1))
SWIG_fail;
36434 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36439 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
36457 PyObject *argv[3] = {
36463 argc = PyObject_Length(args);
36464 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
36465 argv[ii] = PyTuple_GET_ITEM(args,ii);
36499 " Possible C/C++ prototypes are:\n" 36500 " operations_research::IntExpr::__floordiv__(int64_t)\n" 36501 " operations_research::IntExpr::__floordiv__(operations_research::IntExpr *)\n");
36507 PyObject *resultobj = 0;
36514 PyObject * obj0 = 0 ;
36515 PyObject * obj1 = 0 ;
36518 if (!PyArg_UnpackTuple(args,
"IntExpr___mod__", 2, 2, &obj0, &obj1))
SWIG_fail;
36523 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36528 arg2 = static_cast< int64_t >(val2);
36541 Py_INCREF(Py_NotImplemented);
36542 return Py_NotImplemented;
36547 PyObject *resultobj = 0;
36554 PyObject * obj0 = 0 ;
36555 PyObject * obj1 = 0 ;
36558 if (!PyArg_UnpackTuple(args,
"IntExpr___mod__", 2, 2, &obj0, &obj1))
SWIG_fail;
36563 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36568 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
36581 Py_INCREF(Py_NotImplemented);
36582 return Py_NotImplemented;
36588 PyObject *argv[3] = {
36594 argc = PyObject_Length(args);
36595 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
36596 argv[ii] = PyTuple_GET_ITEM(args,ii);
36629 Py_INCREF(Py_NotImplemented);
36630 return Py_NotImplemented;
36635 PyObject *resultobj = 0;
36639 PyObject * obj0 = 0 ;
36642 if (!PyArg_UnpackTuple(args,
"IntExpr___neg__", 1, 1, &obj0))
SWIG_fail;
36647 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36660 Py_INCREF(Py_NotImplemented);
36661 return Py_NotImplemented;
36666 PyObject *resultobj = 0;
36670 PyObject * obj0 = 0 ;
36673 if (!PyArg_UnpackTuple(args,
"IntExpr___abs__", 1, 1, &obj0))
SWIG_fail;
36678 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36695 PyObject *resultobj = 0;
36699 PyObject * obj0 = 0 ;
36702 if (!PyArg_UnpackTuple(args,
"IntExpr_Square", 1, 1, &obj0))
SWIG_fail;
36707 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36724 PyObject *resultobj = 0;
36731 PyObject * obj0 = 0 ;
36732 PyObject * obj1 = 0 ;
36736 if (!PyArg_UnpackTuple(args,
"IntExpr___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
36741 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36746 arg2 = static_cast< int64_t >(val2);
36758 Py_INCREF(resultobj);
36765 Py_INCREF(Py_NotImplemented);
36766 return Py_NotImplemented;
36771 PyObject *resultobj = 0;
36778 PyObject * obj0 = 0 ;
36779 PyObject * obj1 = 0 ;
36783 if (!PyArg_UnpackTuple(args,
"IntExpr___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
36788 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36793 arg2 = static_cast< int64_t >(val2);
36805 Py_INCREF(resultobj);
36812 Py_INCREF(Py_NotImplemented);
36813 return Py_NotImplemented;
36818 PyObject *resultobj = 0;
36825 PyObject * obj0 = 0 ;
36826 PyObject * obj1 = 0 ;
36830 if (!PyArg_UnpackTuple(args,
"IntExpr___ge__", 2, 2, &obj0, &obj1))
SWIG_fail;
36835 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36840 arg2 = static_cast< int64_t >(val2);
36852 Py_INCREF(resultobj);
36859 Py_INCREF(Py_NotImplemented);
36860 return Py_NotImplemented;
36865 PyObject *resultobj = 0;
36872 PyObject * obj0 = 0 ;
36873 PyObject * obj1 = 0 ;
36877 if (!PyArg_UnpackTuple(args,
"IntExpr___gt__", 2, 2, &obj0, &obj1))
SWIG_fail;
36882 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36887 arg2 = static_cast< int64_t >(val2);
36899 Py_INCREF(resultobj);
36906 Py_INCREF(Py_NotImplemented);
36907 return Py_NotImplemented;
36912 PyObject *resultobj = 0;
36919 PyObject * obj0 = 0 ;
36920 PyObject * obj1 = 0 ;
36924 if (!PyArg_UnpackTuple(args,
"IntExpr___le__", 2, 2, &obj0, &obj1))
SWIG_fail;
36929 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36934 arg2 = static_cast< int64_t >(val2);
36946 Py_INCREF(resultobj);
36953 Py_INCREF(Py_NotImplemented);
36954 return Py_NotImplemented;
36959 PyObject *resultobj = 0;
36966 PyObject * obj0 = 0 ;
36967 PyObject * obj1 = 0 ;
36971 if (!PyArg_UnpackTuple(args,
"IntExpr___lt__", 2, 2, &obj0, &obj1))
SWIG_fail;
36976 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
36981 arg2 = static_cast< int64_t >(val2);
36993 Py_INCREF(resultobj);
37000 Py_INCREF(Py_NotImplemented);
37001 return Py_NotImplemented;
37006 PyObject *resultobj = 0;
37013 PyObject * obj0 = 0 ;
37014 PyObject * obj1 = 0 ;
37018 if (!PyArg_UnpackTuple(args,
"IntExpr___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
37023 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37028 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
37040 Py_INCREF(resultobj);
37047 Py_INCREF(Py_NotImplemented);
37048 return Py_NotImplemented;
37053 PyObject *resultobj = 0;
37060 PyObject * obj0 = 0 ;
37061 PyObject * obj1 = 0 ;
37065 if (!PyArg_UnpackTuple(args,
"IntExpr___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
37070 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37075 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
37087 Py_INCREF(resultobj);
37094 Py_INCREF(Py_NotImplemented);
37095 return Py_NotImplemented;
37100 PyObject *resultobj = 0;
37107 PyObject * obj0 = 0 ;
37108 PyObject * obj1 = 0 ;
37112 if (!PyArg_UnpackTuple(args,
"IntExpr___ge__", 2, 2, &obj0, &obj1))
SWIG_fail;
37117 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37122 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
37134 Py_INCREF(resultobj);
37141 Py_INCREF(Py_NotImplemented);
37142 return Py_NotImplemented;
37147 PyObject *resultobj = 0;
37154 PyObject * obj0 = 0 ;
37155 PyObject * obj1 = 0 ;
37159 if (!PyArg_UnpackTuple(args,
"IntExpr___gt__", 2, 2, &obj0, &obj1))
SWIG_fail;
37164 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37169 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
37181 Py_INCREF(resultobj);
37188 Py_INCREF(Py_NotImplemented);
37189 return Py_NotImplemented;
37194 PyObject *resultobj = 0;
37201 PyObject * obj0 = 0 ;
37202 PyObject * obj1 = 0 ;
37206 if (!PyArg_UnpackTuple(args,
"IntExpr___le__", 2, 2, &obj0, &obj1))
SWIG_fail;
37211 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37216 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
37228 Py_INCREF(resultobj);
37235 Py_INCREF(Py_NotImplemented);
37236 return Py_NotImplemented;
37241 PyObject *resultobj = 0;
37248 PyObject * obj0 = 0 ;
37249 PyObject * obj1 = 0 ;
37253 if (!PyArg_UnpackTuple(args,
"IntExpr___lt__", 2, 2, &obj0, &obj1))
SWIG_fail;
37258 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37263 arg2 = reinterpret_cast< operations_research::IntExpr * >(argp2);
37275 Py_INCREF(resultobj);
37282 Py_INCREF(Py_NotImplemented);
37283 return Py_NotImplemented;
37288 PyObject *resultobj = 0;
37295 PyObject * obj0 = 0 ;
37296 PyObject * obj1 = 0 ;
37300 if (!PyArg_UnpackTuple(args,
"IntExpr___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
37305 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37310 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
37322 Py_INCREF(resultobj);
37329 Py_INCREF(Py_NotImplemented);
37330 return Py_NotImplemented;
37336 PyObject *argv[3] = {
37342 argc = PyObject_Length(args);
37343 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37344 argv[ii] = PyTuple_GET_ITEM(args,ii);
37391 Py_INCREF(Py_NotImplemented);
37392 return Py_NotImplemented;
37397 PyObject *resultobj = 0;
37404 PyObject * obj0 = 0 ;
37405 PyObject * obj1 = 0 ;
37409 if (!PyArg_UnpackTuple(args,
"IntExpr___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
37414 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37419 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
37431 Py_INCREF(resultobj);
37438 Py_INCREF(Py_NotImplemented);
37439 return Py_NotImplemented;
37445 PyObject *argv[3] = {
37451 argc = PyObject_Length(args);
37452 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37453 argv[ii] = PyTuple_GET_ITEM(args,ii);
37500 Py_INCREF(Py_NotImplemented);
37501 return Py_NotImplemented;
37506 PyObject *resultobj = 0;
37513 PyObject * obj0 = 0 ;
37514 PyObject * obj1 = 0 ;
37518 if (!PyArg_UnpackTuple(args,
"IntExpr___ge__", 2, 2, &obj0, &obj1))
SWIG_fail;
37523 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37528 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
37540 Py_INCREF(resultobj);
37547 Py_INCREF(Py_NotImplemented);
37548 return Py_NotImplemented;
37554 PyObject *argv[3] = {
37560 argc = PyObject_Length(args);
37561 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37562 argv[ii] = PyTuple_GET_ITEM(args,ii);
37609 Py_INCREF(Py_NotImplemented);
37610 return Py_NotImplemented;
37615 PyObject *resultobj = 0;
37622 PyObject * obj0 = 0 ;
37623 PyObject * obj1 = 0 ;
37627 if (!PyArg_UnpackTuple(args,
"IntExpr___gt__", 2, 2, &obj0, &obj1))
SWIG_fail;
37632 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37637 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
37649 Py_INCREF(resultobj);
37656 Py_INCREF(Py_NotImplemented);
37657 return Py_NotImplemented;
37663 PyObject *argv[3] = {
37669 argc = PyObject_Length(args);
37670 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37671 argv[ii] = PyTuple_GET_ITEM(args,ii);
37718 Py_INCREF(Py_NotImplemented);
37719 return Py_NotImplemented;
37724 PyObject *resultobj = 0;
37731 PyObject * obj0 = 0 ;
37732 PyObject * obj1 = 0 ;
37736 if (!PyArg_UnpackTuple(args,
"IntExpr___le__", 2, 2, &obj0, &obj1))
SWIG_fail;
37741 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37746 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
37758 Py_INCREF(resultobj);
37765 Py_INCREF(Py_NotImplemented);
37766 return Py_NotImplemented;
37772 PyObject *argv[3] = {
37778 argc = PyObject_Length(args);
37779 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37780 argv[ii] = PyTuple_GET_ITEM(args,ii);
37827 Py_INCREF(Py_NotImplemented);
37828 return Py_NotImplemented;
37833 PyObject *resultobj = 0;
37840 PyObject * obj0 = 0 ;
37841 PyObject * obj1 = 0 ;
37845 if (!PyArg_UnpackTuple(args,
"IntExpr___lt__", 2, 2, &obj0, &obj1))
SWIG_fail;
37850 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37855 arg2 = reinterpret_cast< operations_research::Constraint * >(argp2);
37867 Py_INCREF(resultobj);
37874 Py_INCREF(Py_NotImplemented);
37875 return Py_NotImplemented;
37881 PyObject *argv[3] = {
37887 argc = PyObject_Length(args);
37888 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
37889 argv[ii] = PyTuple_GET_ITEM(args,ii);
37936 Py_INCREF(Py_NotImplemented);
37937 return Py_NotImplemented;
37942 PyObject *resultobj = 0;
37944 std::vector< operations_research::IntVar * > *arg2 = 0 ;
37947 std::vector< operations_research::IntVar * > temp2 ;
37948 PyObject * obj0 = 0 ;
37949 PyObject * obj1 = 0 ;
37953 if (!PyArg_UnpackTuple(args,
"IntExpr_MapTo", 2, 2, &obj0, &obj1))
SWIG_fail;
37958 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
37960 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
37961 if (!PyErr_Occurred())
37978 Py_INCREF(resultobj);
37989 PyObject *resultobj = 0;
37991 std::vector< int64_t > *arg2 = 0 ;
37994 std::vector< int64_t > temp2 ;
37995 PyObject * obj0 = 0 ;
37996 PyObject * obj1 = 0 ;
37999 if (!PyArg_UnpackTuple(args,
"IntExpr_IndexOf", 2, 2, &obj0, &obj1))
SWIG_fail;
38004 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
38006 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38007 if (!PyErr_Occurred())
38029 PyObject *resultobj = 0;
38031 std::vector< operations_research::IntVar * > *arg2 = 0 ;
38034 std::vector< operations_research::IntVar * > temp2 ;
38035 PyObject * obj0 = 0 ;
38036 PyObject * obj1 = 0 ;
38039 if (!PyArg_UnpackTuple(args,
"IntExpr_IndexOf", 2, 2, &obj0, &obj1))
SWIG_fail;
38044 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
38046 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
38047 if (!PyErr_Occurred())
38070 PyObject *argv[3] = {
38076 argc = PyObject_Length(args);
38077 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
38078 argv[ii] = PyTuple_GET_ITEM(args,ii);
38087 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
38090 const bool is_tuple = PyTuple_Check(argv[1]);
38091 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
38093 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
38094 :PyList_GetItem(argv[1], i))) {
38112 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
38115 const bool is_tuple = PyTuple_Check(argv[1]);
38116 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
38119 :PyList_GetItem(argv[1], i))) {
38133 " Possible C/C++ prototypes are:\n" 38134 " operations_research::IntExpr::IndexOf(std::vector< int64_t > const &)\n" 38135 " operations_research::IntExpr::IndexOf(std::vector< operations_research::IntVar * > const &)\n");
38141 PyObject *resultobj = 0;
38143 std::vector< int64_t > *arg2 = 0 ;
38146 std::vector< int64_t > temp2 ;
38147 PyObject * obj0 = 0 ;
38148 PyObject * obj1 = 0 ;
38151 if (!PyArg_UnpackTuple(args,
"IntExpr_IsMember", 2, 2, &obj0, &obj1))
SWIG_fail;
38156 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
38158 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38159 if (!PyErr_Occurred())
38181 PyObject *resultobj = 0;
38183 std::vector< int64_t > *arg2 = 0 ;
38186 std::vector< int64_t > temp2 ;
38187 PyObject * obj0 = 0 ;
38188 PyObject * obj1 = 0 ;
38192 if (!PyArg_UnpackTuple(args,
"IntExpr_Member", 2, 2, &obj0, &obj1))
SWIG_fail;
38197 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
38199 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38200 if (!PyErr_Occurred())
38217 Py_INCREF(resultobj);
38228 PyObject *resultobj = 0;
38230 std::vector< int64_t > *arg2 = 0 ;
38231 std::vector< int64_t > *arg3 = 0 ;
38234 std::vector< int64_t > temp2 ;
38235 std::vector< int64_t > temp3 ;
38236 PyObject * obj0 = 0 ;
38237 PyObject * obj1 = 0 ;
38238 PyObject * obj2 = 0 ;
38242 if (!PyArg_UnpackTuple(args,
"IntExpr_NotMember", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
38247 arg1 = reinterpret_cast< operations_research::IntExpr * >(argp1);
38249 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38250 if (!PyErr_Occurred())
38257 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
38258 if (!PyErr_Occurred())
38275 Py_INCREF(resultobj);
38293 PyObject *resultobj = 0;
38297 PyObject * obj0 = 0 ;
38299 if (!PyArg_UnpackTuple(args,
"IntVarIterator_Init", 1, 1, &obj0))
SWIG_fail;
38304 arg1 = reinterpret_cast< operations_research::IntVarIterator * >(argp1);
38321 PyObject *resultobj = 0;
38325 PyObject * obj0 = 0 ;
38328 if (!PyArg_UnpackTuple(args,
"IntVarIterator_Ok", 1, 1, &obj0))
SWIG_fail;
38331 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarIterator_Ok" "', argument " "1"" of type '" "operations_research::IntVarIterator const *""'");
38333 arg1 = reinterpret_cast< operations_research::IntVarIterator * >(argp1);
38350 PyObject *resultobj = 0;
38354 PyObject * obj0 = 0 ;
38357 if (!PyArg_UnpackTuple(args,
"IntVarIterator_Value", 1, 1, &obj0))
SWIG_fail;
38360 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarIterator_Value" "', argument " "1"" of type '" "operations_research::IntVarIterator const *""'");
38362 arg1 = reinterpret_cast< operations_research::IntVarIterator * >(argp1);
38379 PyObject *resultobj = 0;
38383 PyObject * obj0 = 0 ;
38385 if (!PyArg_UnpackTuple(args,
"IntVarIterator_Next", 1, 1, &obj0))
SWIG_fail;
38390 arg1 = reinterpret_cast< operations_research::IntVarIterator * >(argp1);
38407 PyObject *resultobj = 0;
38411 PyObject * obj0 = 0 ;
38412 std::string result;
38414 if (!PyArg_UnpackTuple(args,
"IntVarIterator_DebugString", 1, 1, &obj0))
SWIG_fail;
38417 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarIterator_DebugString" "', argument " "1"" of type '" "operations_research::IntVarIterator const *""'");
38419 arg1 = reinterpret_cast< operations_research::IntVarIterator * >(argp1);
38443 PyObject *resultobj = 0;
38447 PyObject * obj0 = 0 ;
38450 if (!PyArg_UnpackTuple(args,
"IntVar_IsVar", 1, 1, &obj0))
SWIG_fail;
38455 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38472 PyObject *resultobj = 0;
38476 PyObject * obj0 = 0 ;
38479 if (!PyArg_UnpackTuple(args,
"IntVar_Var", 1, 1, &obj0))
SWIG_fail;
38484 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38501 PyObject *resultobj = 0;
38505 PyObject * obj0 = 0 ;
38508 if (!PyArg_UnpackTuple(args,
"IntVar_Value", 1, 1, &obj0))
SWIG_fail;
38513 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38530 PyObject *resultobj = 0;
38537 PyObject * obj0 = 0 ;
38538 PyObject * obj1 = 0 ;
38540 if (!PyArg_UnpackTuple(args,
"IntVar_RemoveValue", 2, 2, &obj0, &obj1))
SWIG_fail;
38545 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38550 arg2 = static_cast< int64_t >(val2);
38558 (arg1)->RemoveValue(arg2);
38565 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
38577 PyObject *resultobj = 0;
38587 PyObject * obj0 = 0 ;
38588 PyObject * obj1 = 0 ;
38589 PyObject * obj2 = 0 ;
38591 if (!PyArg_UnpackTuple(args,
"IntVar_RemoveInterval", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
38596 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38601 arg2 = static_cast< int64_t >(val2);
38606 arg3 = static_cast< int64_t >(val3);
38609 (arg1)->RemoveInterval(arg2,arg3);
38623 PyObject *resultobj = 0;
38625 std::vector< int64_t > *arg2 = 0 ;
38628 std::vector< int64_t > temp2 ;
38629 PyObject * obj0 = 0 ;
38630 PyObject * obj1 = 0 ;
38632 if (!PyArg_UnpackTuple(args,
"IntVar_RemoveValues", 2, 2, &obj0, &obj1))
SWIG_fail;
38637 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38639 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38640 if (!PyErr_Occurred())
38653 (arg1)->RemoveValues((std::vector< int64_t >
const &)*arg2);
38660 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
38672 PyObject *resultobj = 0;
38674 std::vector< int64_t > *arg2 = 0 ;
38677 std::vector< int64_t > temp2 ;
38678 PyObject * obj0 = 0 ;
38679 PyObject * obj1 = 0 ;
38681 if (!PyArg_UnpackTuple(args,
"IntVar_SetValues", 2, 2, &obj0, &obj1))
SWIG_fail;
38686 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38688 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
38689 if (!PyErr_Occurred())
38697 (arg1)->SetValues((std::vector< int64_t >
const &)*arg2);
38711 PyObject *resultobj = 0;
38718 PyObject * obj0 = 0 ;
38719 PyObject * obj1 = 0 ;
38721 if (!PyArg_UnpackTuple(args,
"IntVar_WhenBound", 2, 2, &obj0, &obj1))
SWIG_fail;
38726 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38731 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
38734 (arg1)->WhenBound(arg2);
38748 PyObject *resultobj = 0;
38753 PyObject * obj0 = 0 ;
38754 PyObject * obj1 = 0 ;
38756 if (!PyArg_UnpackTuple(args,
"IntVar_WhenBound", 2, 2, &obj0, &obj1))
SWIG_fail;
38761 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38765 return InvokePythonCallableReturning<void>(
input.get());
38770 (arg1)->WhenBound(arg2);
38785 PyObject *argv[3] = {
38791 argc = PyObject_Length(args);
38792 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
38793 argv[ii] = PyTuple_GET_ITEM(args,ii);
38816 _v = PyCallable_Check(argv[1]);
38826 " Possible C/C++ prototypes are:\n" 38827 " operations_research::IntVar::WhenBound(operations_research::Demon *)\n" 38828 " operations_research::IntVar::WhenBound(operations_research::Solver::Closure)\n");
38834 PyObject *resultobj = 0;
38841 PyObject * obj0 = 0 ;
38842 PyObject * obj1 = 0 ;
38844 if (!PyArg_UnpackTuple(args,
"IntVar_WhenDomain", 2, 2, &obj0, &obj1))
SWIG_fail;
38849 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38854 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
38857 (arg1)->WhenDomain(arg2);
38871 PyObject *resultobj = 0;
38876 PyObject * obj0 = 0 ;
38877 PyObject * obj1 = 0 ;
38879 if (!PyArg_UnpackTuple(args,
"IntVar_WhenDomain", 2, 2, &obj0, &obj1))
SWIG_fail;
38884 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38888 return InvokePythonCallableReturning<void>(
input.get());
38893 (arg1)->WhenDomain(arg2);
38908 PyObject *argv[3] = {
38914 argc = PyObject_Length(args);
38915 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
38916 argv[ii] = PyTuple_GET_ITEM(args,ii);
38939 _v = PyCallable_Check(argv[1]);
38949 " Possible C/C++ prototypes are:\n" 38950 " operations_research::IntVar::WhenDomain(operations_research::Demon *)\n" 38951 " operations_research::IntVar::WhenDomain(operations_research::Solver::Closure)\n");
38957 PyObject *resultobj = 0;
38961 PyObject * obj0 = 0 ;
38964 if (!PyArg_UnpackTuple(args,
"IntVar_Size", 1, 1, &obj0))
SWIG_fail;
38969 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
38986 PyObject *resultobj = 0;
38993 PyObject * obj0 = 0 ;
38994 PyObject * obj1 = 0 ;
38997 if (!PyArg_UnpackTuple(args,
"IntVar_Contains", 2, 2, &obj0, &obj1))
SWIG_fail;
39002 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
39007 arg2 = static_cast< int64_t >(val2);
39024 PyObject *resultobj = 0;
39031 PyObject * obj0 = 0 ;
39032 PyObject * obj1 = 0 ;
39035 if (!PyArg_UnpackTuple(args,
"IntVar_HoleIteratorAux", 2, 2, &obj0, &obj1))
SWIG_fail;
39040 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
39045 arg2 = static_cast< bool >(val2);
39062 PyObject *resultobj = 0;
39069 PyObject * obj0 = 0 ;
39070 PyObject * obj1 = 0 ;
39073 if (!PyArg_UnpackTuple(args,
"IntVar_DomainIteratorAux", 2, 2, &obj0, &obj1))
SWIG_fail;
39076 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVar_DomainIteratorAux" "', argument " "1"" of type '" "operations_research::IntVar const *""'");
39078 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
39083 arg2 = static_cast< bool >(val2);
39100 PyObject *resultobj = 0;
39104 PyObject * obj0 = 0 ;
39107 if (!PyArg_UnpackTuple(args,
"IntVar_OldMin", 1, 1, &obj0))
SWIG_fail;
39112 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
39129 PyObject *resultobj = 0;
39133 PyObject * obj0 = 0 ;
39136 if (!PyArg_UnpackTuple(args,
"IntVar_OldMax", 1, 1, &obj0))
SWIG_fail;
39141 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
39158 PyObject *resultobj = 0;
39162 PyObject * obj0 = 0 ;
39163 std::string result;
39165 if (!PyArg_UnpackTuple(args,
"IntVar___repr__", 1, 1, &obj0))
SWIG_fail;
39170 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
39187 PyObject *resultobj = 0;
39191 PyObject * obj0 = 0 ;
39192 std::string result;
39194 if (!PyArg_UnpackTuple(args,
"IntVar___str__", 1, 1, &obj0))
SWIG_fail;
39199 arg1 = reinterpret_cast< operations_research::IntVar * >(argp1);
39223 PyObject *resultobj = 0;
39227 PyObject * obj0 = 0 ;
39228 std::string result;
39230 if (!PyArg_UnpackTuple(args,
"SolutionCollector_DebugString", 1, 1, &obj0))
SWIG_fail;
39233 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_DebugString" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39235 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39252 PyObject *resultobj = 0;
39257 PyObject * obj0 = 0 ;
39258 PyObject * obj1 = 0 ;
39260 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
39263 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Add" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39265 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39285 PyObject *resultobj = 0;
39287 std::vector< operations_research::IntVar * > *arg2 = 0 ;
39290 std::vector< operations_research::IntVar * > temp2 ;
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 *""'");
39299 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39301 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
39302 if (!PyErr_Occurred())
39310 (arg1)->Add((std::vector< operations_research::IntVar * >
const &)*arg2);
39324 PyObject *resultobj = 0;
39329 PyObject * obj0 = 0 ;
39330 PyObject * obj1 = 0 ;
39332 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
39335 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Add" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39337 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39357 PyObject *resultobj = 0;
39359 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
39362 std::vector< operations_research::IntervalVar * > temp2 ;
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 *""'");
39371 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39373 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
39374 if (!PyErr_Occurred())
39382 (arg1)->Add((std::vector< operations_research::IntervalVar * >
const &)*arg2);
39396 PyObject *resultobj = 0;
39401 PyObject * obj0 = 0 ;
39402 PyObject * obj1 = 0 ;
39404 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
39407 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Add" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39409 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39429 PyObject *resultobj = 0;
39431 std::vector< operations_research::SequenceVar * > *arg2 = 0 ;
39434 std::vector< operations_research::SequenceVar * > temp2 ;
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 *""'");
39443 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39445 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::SequenceVar*>)) {
39446 if (!PyErr_Occurred())
39454 (arg1)->Add((std::vector< operations_research::SequenceVar * >
const &)*arg2);
39469 PyObject *argv[3] = {
39475 argc = PyObject_Length(args);
39476 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
39477 argv[ii] = PyTuple_GET_ITEM(args,ii);
39487 if (_v == 0) PyErr_Clear();
39501 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
39504 const bool is_tuple = PyTuple_Check(argv[1]);
39505 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
39508 :PyList_GetItem(argv[1], i))) {
39527 if (_v == 0) PyErr_Clear();
39541 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
39544 const bool is_tuple = PyTuple_Check(argv[1]);
39545 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
39548 :PyList_GetItem(argv[1], i))) {
39567 if (_v == 0) PyErr_Clear();
39581 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
39584 const bool is_tuple = PyTuple_Check(argv[1]);
39585 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
39588 :PyList_GetItem(argv[1], i))) {
39602 " Possible C/C++ prototypes are:\n" 39603 " operations_research::SolutionCollector::Add(operations_research::IntVar *const)\n" 39604 " operations_research::SolutionCollector::Add(std::vector< operations_research::IntVar * > const &)\n" 39605 " operations_research::SolutionCollector::Add(operations_research::IntervalVar *const)\n" 39606 " operations_research::SolutionCollector::Add(std::vector< operations_research::IntervalVar * > const &)\n" 39607 " operations_research::SolutionCollector::Add(operations_research::SequenceVar *const)\n" 39608 " operations_research::SolutionCollector::Add(std::vector< operations_research::SequenceVar * > const &)\n");
39614 PyObject *resultobj = 0;
39619 PyObject * obj0 = 0 ;
39620 PyObject * obj1 = 0 ;
39622 if (!PyArg_UnpackTuple(args,
"SolutionCollector_AddObjective", 2, 2, &obj0, &obj1))
SWIG_fail;
39625 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_AddObjective" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39627 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39633 (arg1)->AddObjective(arg2);
39647 PyObject *resultobj = 0;
39651 PyObject * obj0 = 0 ;
39653 if (!PyArg_UnpackTuple(args,
"SolutionCollector_EnterSearch", 1, 1, &obj0))
SWIG_fail;
39656 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_EnterSearch" "', argument " "1"" of type '" "operations_research::SolutionCollector *""'");
39658 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39661 (arg1)->EnterSearch();
39675 PyObject *resultobj = 0;
39679 PyObject * obj0 = 0 ;
39682 if (!PyArg_UnpackTuple(args,
"SolutionCollector_SolutionCount", 1, 1, &obj0))
SWIG_fail;
39685 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_SolutionCount" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39687 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39704 PyObject *resultobj = 0;
39711 PyObject * obj0 = 0 ;
39712 PyObject * obj1 = 0 ;
39715 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Solution", 2, 2, &obj0, &obj1))
SWIG_fail;
39718 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Solution" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39720 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39725 arg2 = static_cast< int >(val2);
39742 PyObject *resultobj = 0;
39749 PyObject * obj0 = 0 ;
39750 PyObject * obj1 = 0 ;
39753 if (!PyArg_UnpackTuple(args,
"SolutionCollector_WallTime", 2, 2, &obj0, &obj1))
SWIG_fail;
39756 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_WallTime" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39758 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39763 arg2 = static_cast< int >(val2);
39780 PyObject *resultobj = 0;
39787 PyObject * obj0 = 0 ;
39788 PyObject * obj1 = 0 ;
39791 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Branches", 2, 2, &obj0, &obj1))
SWIG_fail;
39794 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Branches" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39796 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39801 arg2 = static_cast< int >(val2);
39818 PyObject *resultobj = 0;
39825 PyObject * obj0 = 0 ;
39826 PyObject * obj1 = 0 ;
39829 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Failures", 2, 2, &obj0, &obj1))
SWIG_fail;
39832 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Failures" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39834 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39839 arg2 = static_cast< int >(val2);
39856 PyObject *resultobj = 0;
39863 PyObject * obj0 = 0 ;
39864 PyObject * obj1 = 0 ;
39867 if (!PyArg_UnpackTuple(args,
"SolutionCollector_ObjectiveValue", 2, 2, &obj0, &obj1))
SWIG_fail;
39870 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_ObjectiveValue" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39872 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39877 arg2 = static_cast< int >(val2);
39894 PyObject *resultobj = 0;
39902 PyObject * obj0 = 0 ;
39903 PyObject * obj1 = 0 ;
39904 PyObject * obj2 = 0 ;
39907 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Value", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
39910 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Value" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39912 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39917 arg2 = static_cast< int >(val2);
39937 PyObject *resultobj = 0;
39945 PyObject * obj0 = 0 ;
39946 PyObject * obj1 = 0 ;
39947 PyObject * obj2 = 0 ;
39950 if (!PyArg_UnpackTuple(args,
"SolutionCollector_StartValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
39953 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_StartValue" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39955 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
39960 arg2 = static_cast< int >(val2);
39980 PyObject *resultobj = 0;
39988 PyObject * obj0 = 0 ;
39989 PyObject * obj1 = 0 ;
39990 PyObject * obj2 = 0 ;
39993 if (!PyArg_UnpackTuple(args,
"SolutionCollector_EndValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
39996 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_EndValue" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
39998 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
40003 arg2 = static_cast< int >(val2);
40023 PyObject *resultobj = 0;
40031 PyObject * obj0 = 0 ;
40032 PyObject * obj1 = 0 ;
40033 PyObject * obj2 = 0 ;
40036 if (!PyArg_UnpackTuple(args,
"SolutionCollector_DurationValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
40039 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_DurationValue" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
40041 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
40046 arg2 = static_cast< int >(val2);
40066 PyObject *resultobj = 0;
40074 PyObject * obj0 = 0 ;
40075 PyObject * obj1 = 0 ;
40076 PyObject * obj2 = 0 ;
40079 if (!PyArg_UnpackTuple(args,
"SolutionCollector_PerformedValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
40082 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_PerformedValue" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
40084 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
40089 arg2 = static_cast< int >(val2);
40109 PyObject *resultobj = 0;
40117 PyObject * obj0 = 0 ;
40118 PyObject * obj1 = 0 ;
40119 PyObject * obj2 = 0 ;
40120 std::vector< int > *result = 0 ;
40122 if (!PyArg_UnpackTuple(args,
"SolutionCollector_ForwardSequence", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
40125 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_ForwardSequence" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
40127 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
40132 arg2 = static_cast< int >(val2);
40145 resultobj = vector_output_helper(result, &PyInt_FromLong);
40154 PyObject *resultobj = 0;
40162 PyObject * obj0 = 0 ;
40163 PyObject * obj1 = 0 ;
40164 PyObject * obj2 = 0 ;
40165 std::vector< int > *result = 0 ;
40167 if (!PyArg_UnpackTuple(args,
"SolutionCollector_BackwardSequence", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
40170 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_BackwardSequence" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
40172 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
40177 arg2 = static_cast< int >(val2);
40190 resultobj = vector_output_helper(result, &PyInt_FromLong);
40199 PyObject *resultobj = 0;
40207 PyObject * obj0 = 0 ;
40208 PyObject * obj1 = 0 ;
40209 PyObject * obj2 = 0 ;
40210 std::vector< int > *result = 0 ;
40212 if (!PyArg_UnpackTuple(args,
"SolutionCollector_Unperformed", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
40215 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolutionCollector_Unperformed" "', argument " "1"" of type '" "operations_research::SolutionCollector const *""'");
40217 arg1 = reinterpret_cast< operations_research::SolutionCollector * >(argp1);
40222 arg2 = static_cast< int >(val2);
40235 resultobj = vector_output_helper(result, &PyInt_FromLong);
40251 PyObject *resultobj = 0;
40255 PyObject * obj0 = 0 ;
40258 if (!PyArg_UnpackTuple(args,
"OptimizeVar_Best", 1, 1, &obj0))
SWIG_fail;
40263 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40280 PyObject *resultobj = 0;
40284 PyObject * obj0 = 0 ;
40287 if (!PyArg_UnpackTuple(args,
"OptimizeVar_Var", 1, 1, &obj0))
SWIG_fail;
40292 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40309 PyObject *resultobj = 0;
40319 PyObject * obj0 = 0 ;
40320 PyObject * obj1 = 0 ;
40321 PyObject * obj2 = 0 ;
40324 if (!PyArg_UnpackTuple(args,
"OptimizeVar_AcceptDelta", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
40329 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40334 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
40339 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
40342 result = (bool)(arg1)->AcceptDelta(arg2,arg3);
40356 PyObject *resultobj = 0;
40360 PyObject * obj0 = 0 ;
40362 if (!PyArg_UnpackTuple(args,
"OptimizeVar_EnterSearch", 1, 1, &obj0))
SWIG_fail;
40367 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40370 (arg1)->EnterSearch();
40384 PyObject *resultobj = 0;
40389 PyObject * obj0 = 0 ;
40390 PyObject * obj1 = 0 ;
40392 if (!PyArg_UnpackTuple(args,
"OptimizeVar_BeginNextDecision", 2, 2, &obj0, &obj1))
SWIG_fail;
40395 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "OptimizeVar_BeginNextDecision" "', argument " "1"" of type '" "operations_research::OptimizeVar *""'");
40397 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40403 (arg1)->BeginNextDecision(arg2);
40417 PyObject *resultobj = 0;
40422 PyObject * obj0 = 0 ;
40423 PyObject * obj1 = 0 ;
40425 if (!PyArg_UnpackTuple(args,
"OptimizeVar_RefuteDecision", 2, 2, &obj0, &obj1))
SWIG_fail;
40428 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "OptimizeVar_RefuteDecision" "', argument " "1"" of type '" "operations_research::OptimizeVar *""'");
40430 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40436 (arg1)->RefuteDecision(arg2);
40450 PyObject *resultobj = 0;
40454 PyObject * obj0 = 0 ;
40457 if (!PyArg_UnpackTuple(args,
"OptimizeVar_AtSolution", 1, 1, &obj0))
SWIG_fail;
40462 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40465 result = (bool)(arg1)->AtSolution();
40479 PyObject *resultobj = 0;
40483 PyObject * obj0 = 0 ;
40486 if (!PyArg_UnpackTuple(args,
"OptimizeVar_AcceptSolution", 1, 1, &obj0))
SWIG_fail;
40489 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "OptimizeVar_AcceptSolution" "', argument " "1"" of type '" "operations_research::OptimizeVar *""'");
40491 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40494 result = (bool)(arg1)->AcceptSolution();
40508 PyObject *resultobj = 0;
40512 PyObject * obj0 = 0 ;
40513 std::string result;
40515 if (!PyArg_UnpackTuple(args,
"OptimizeVar_DebugString", 1, 1, &obj0))
SWIG_fail;
40518 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "OptimizeVar_DebugString" "', argument " "1"" of type '" "operations_research::OptimizeVar const *""'");
40520 arg1 = reinterpret_cast< operations_research::OptimizeVar * >(argp1);
40544 PyObject *resultobj = 0;
40548 PyObject * obj0 = 0 ;
40550 if (!PyArg_UnpackTuple(args,
"delete_SearchLimit", 1, 1, &obj0))
SWIG_fail;
40555 arg1 = reinterpret_cast< operations_research::SearchLimit * >(argp1);
40572 PyObject *resultobj = 0;
40576 PyObject * obj0 = 0 ;
40579 if (!PyArg_UnpackTuple(args,
"SearchLimit_Crossed", 1, 1, &obj0))
SWIG_fail;
40582 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchLimit_Crossed" "', argument " "1"" of type '" "operations_research::SearchLimit const *""'");
40584 arg1 = reinterpret_cast< operations_research::SearchLimit * >(argp1);
40601 PyObject *resultobj = 0;
40605 PyObject * obj0 = 0 ;
40608 if (!PyArg_UnpackTuple(args,
"SearchLimit_Check", 1, 1, &obj0))
SWIG_fail;
40613 arg1 = reinterpret_cast< operations_research::SearchLimit * >(argp1);
40616 result = (bool)(arg1)->Check();
40630 PyObject *resultobj = 0;
40634 PyObject * obj0 = 0 ;
40636 if (!PyArg_UnpackTuple(args,
"SearchLimit_Init", 1, 1, &obj0))
SWIG_fail;
40641 arg1 = reinterpret_cast< operations_research::SearchLimit * >(argp1);
40658 PyObject *resultobj = 0;
40662 PyObject * obj0 = 0 ;
40664 if (!PyArg_UnpackTuple(args,
"SearchLimit_EnterSearch", 1, 1, &obj0))
SWIG_fail;
40669 arg1 = reinterpret_cast< operations_research::SearchLimit * >(argp1);
40672 (arg1)->EnterSearch();
40686 PyObject *resultobj = 0;
40691 PyObject * obj0 = 0 ;
40692 PyObject * obj1 = 0 ;
40694 if (!PyArg_UnpackTuple(args,
"SearchLimit_BeginNextDecision", 2, 2, &obj0, &obj1))
SWIG_fail;
40697 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchLimit_BeginNextDecision" "', argument " "1"" of type '" "operations_research::SearchLimit *""'");
40699 arg1 = reinterpret_cast< operations_research::SearchLimit * >(argp1);
40705 (arg1)->BeginNextDecision(arg2);
40719 PyObject *resultobj = 0;
40724 PyObject * obj0 = 0 ;
40725 PyObject * obj1 = 0 ;
40727 if (!PyArg_UnpackTuple(args,
"SearchLimit_RefuteDecision", 2, 2, &obj0, &obj1))
SWIG_fail;
40730 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchLimit_RefuteDecision" "', argument " "1"" of type '" "operations_research::SearchLimit *""'");
40732 arg1 = reinterpret_cast< operations_research::SearchLimit * >(argp1);
40738 (arg1)->RefuteDecision(arg2);
40752 PyObject *resultobj = 0;
40756 PyObject * obj0 = 0 ;
40757 std::string result;
40759 if (!PyArg_UnpackTuple(args,
"SearchLimit_DebugString", 1, 1, &obj0))
SWIG_fail;
40762 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SearchLimit_DebugString" "', argument " "1"" of type '" "operations_research::SearchLimit const *""'");
40764 arg1 = reinterpret_cast< operations_research::SearchLimit * >(argp1);
40788 PyObject *resultobj = 0;
40792 PyObject * obj0 = 0 ;
40795 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartMin", 1, 1, &obj0))
SWIG_fail;
40798 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
40800 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
40817 PyObject *resultobj = 0;
40821 PyObject * obj0 = 0 ;
40824 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartMax", 1, 1, &obj0))
SWIG_fail;
40827 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
40829 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
40846 PyObject *resultobj = 0;
40853 PyObject * obj0 = 0 ;
40854 PyObject * obj1 = 0 ;
40856 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetStartMin", 2, 2, &obj0, &obj1))
SWIG_fail;
40861 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
40866 arg2 = static_cast< int64_t >(val2);
40874 (arg1)->SetStartMin(arg2);
40881 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
40893 PyObject *resultobj = 0;
40900 PyObject * obj0 = 0 ;
40901 PyObject * obj1 = 0 ;
40903 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetStartMax", 2, 2, &obj0, &obj1))
SWIG_fail;
40908 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
40913 arg2 = static_cast< int64_t >(val2);
40921 (arg1)->SetStartMax(arg2);
40928 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
40940 PyObject *resultobj = 0;
40950 PyObject * obj0 = 0 ;
40951 PyObject * obj1 = 0 ;
40952 PyObject * obj2 = 0 ;
40954 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetStartRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
40957 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_SetStartRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
40959 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
40964 arg2 = static_cast< int64_t >(val2);
40969 arg3 = static_cast< int64_t >(val3);
40977 (arg1)->SetStartRange(arg2,arg3);
40984 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
40996 PyObject *resultobj = 0;
41000 PyObject * obj0 = 0 ;
41003 if (!PyArg_UnpackTuple(args,
"IntervalVar_OldStartMin", 1, 1, &obj0))
SWIG_fail;
41006 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_OldStartMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41008 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41025 PyObject *resultobj = 0;
41029 PyObject * obj0 = 0 ;
41032 if (!PyArg_UnpackTuple(args,
"IntervalVar_OldStartMax", 1, 1, &obj0))
SWIG_fail;
41035 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_OldStartMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41037 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41054 PyObject *resultobj = 0;
41061 PyObject * obj0 = 0 ;
41062 PyObject * obj1 = 0 ;
41064 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenStartRange", 2, 2, &obj0, &obj1))
SWIG_fail;
41067 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenStartRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41069 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41072 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_WhenStartRange" "', argument " "2"" of type '" "operations_research::Demon *const""'");
41074 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
41077 (arg1)->WhenStartRange(arg2);
41091 PyObject *resultobj = 0;
41096 PyObject * obj0 = 0 ;
41097 PyObject * obj1 = 0 ;
41099 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenStartRange", 2, 2, &obj0, &obj1))
SWIG_fail;
41102 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenStartRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41104 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41108 return InvokePythonCallableReturning<void>(
input.get());
41113 (arg1)->WhenStartRange(arg2);
41128 PyObject *argv[3] = {
41134 argc = PyObject_Length(args);
41135 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
41136 argv[ii] = PyTuple_GET_ITEM(args,ii);
41159 _v = PyCallable_Check(argv[1]);
41169 " Possible C/C++ prototypes are:\n" 41170 " operations_research::IntervalVar::WhenStartRange(operations_research::Demon *const)\n" 41171 " operations_research::IntervalVar::WhenStartRange(operations_research::Solver::Closure)\n");
41177 PyObject *resultobj = 0;
41184 PyObject * obj0 = 0 ;
41185 PyObject * obj1 = 0 ;
41187 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenStartBound", 2, 2, &obj0, &obj1))
SWIG_fail;
41190 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenStartBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41192 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41195 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_WhenStartBound" "', argument " "2"" of type '" "operations_research::Demon *const""'");
41197 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
41200 (arg1)->WhenStartBound(arg2);
41214 PyObject *resultobj = 0;
41219 PyObject * obj0 = 0 ;
41220 PyObject * obj1 = 0 ;
41222 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenStartBound", 2, 2, &obj0, &obj1))
SWIG_fail;
41225 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenStartBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41227 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41231 return InvokePythonCallableReturning<void>(
input.get());
41236 (arg1)->WhenStartBound(arg2);
41251 PyObject *argv[3] = {
41257 argc = PyObject_Length(args);
41258 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
41259 argv[ii] = PyTuple_GET_ITEM(args,ii);
41282 _v = PyCallable_Check(argv[1]);
41292 " Possible C/C++ prototypes are:\n" 41293 " operations_research::IntervalVar::WhenStartBound(operations_research::Demon *const)\n" 41294 " operations_research::IntervalVar::WhenStartBound(operations_research::Solver::Closure)\n");
41300 PyObject *resultobj = 0;
41304 PyObject * obj0 = 0 ;
41307 if (!PyArg_UnpackTuple(args,
"IntervalVar_DurationMin", 1, 1, &obj0))
SWIG_fail;
41310 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_DurationMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41312 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41329 PyObject *resultobj = 0;
41333 PyObject * obj0 = 0 ;
41336 if (!PyArg_UnpackTuple(args,
"IntervalVar_DurationMax", 1, 1, &obj0))
SWIG_fail;
41339 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_DurationMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41341 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41358 PyObject *resultobj = 0;
41365 PyObject * obj0 = 0 ;
41366 PyObject * obj1 = 0 ;
41368 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetDurationMin", 2, 2, &obj0, &obj1))
SWIG_fail;
41371 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_SetDurationMin" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41373 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41378 arg2 = static_cast< int64_t >(val2);
41386 (arg1)->SetDurationMin(arg2);
41393 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
41405 PyObject *resultobj = 0;
41412 PyObject * obj0 = 0 ;
41413 PyObject * obj1 = 0 ;
41415 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetDurationMax", 2, 2, &obj0, &obj1))
SWIG_fail;
41418 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_SetDurationMax" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41420 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41425 arg2 = static_cast< int64_t >(val2);
41433 (arg1)->SetDurationMax(arg2);
41440 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
41452 PyObject *resultobj = 0;
41462 PyObject * obj0 = 0 ;
41463 PyObject * obj1 = 0 ;
41464 PyObject * obj2 = 0 ;
41466 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetDurationRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
41469 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_SetDurationRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41471 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41476 arg2 = static_cast< int64_t >(val2);
41481 arg3 = static_cast< int64_t >(val3);
41489 (arg1)->SetDurationRange(arg2,arg3);
41496 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
41508 PyObject *resultobj = 0;
41512 PyObject * obj0 = 0 ;
41515 if (!PyArg_UnpackTuple(args,
"IntervalVar_OldDurationMin", 1, 1, &obj0))
SWIG_fail;
41518 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_OldDurationMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41520 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41537 PyObject *resultobj = 0;
41541 PyObject * obj0 = 0 ;
41544 if (!PyArg_UnpackTuple(args,
"IntervalVar_OldDurationMax", 1, 1, &obj0))
SWIG_fail;
41547 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_OldDurationMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41549 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41566 PyObject *resultobj = 0;
41573 PyObject * obj0 = 0 ;
41574 PyObject * obj1 = 0 ;
41576 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenDurationRange", 2, 2, &obj0, &obj1))
SWIG_fail;
41579 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenDurationRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41581 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41584 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_WhenDurationRange" "', argument " "2"" of type '" "operations_research::Demon *const""'");
41586 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
41589 (arg1)->WhenDurationRange(arg2);
41603 PyObject *resultobj = 0;
41608 PyObject * obj0 = 0 ;
41609 PyObject * obj1 = 0 ;
41611 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenDurationRange", 2, 2, &obj0, &obj1))
SWIG_fail;
41614 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenDurationRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41616 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41620 return InvokePythonCallableReturning<void>(
input.get());
41625 (arg1)->WhenDurationRange(arg2);
41640 PyObject *argv[3] = {
41646 argc = PyObject_Length(args);
41647 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
41648 argv[ii] = PyTuple_GET_ITEM(args,ii);
41671 _v = PyCallable_Check(argv[1]);
41681 " Possible C/C++ prototypes are:\n" 41682 " operations_research::IntervalVar::WhenDurationRange(operations_research::Demon *const)\n" 41683 " operations_research::IntervalVar::WhenDurationRange(operations_research::Solver::Closure)\n");
41689 PyObject *resultobj = 0;
41696 PyObject * obj0 = 0 ;
41697 PyObject * obj1 = 0 ;
41699 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenDurationBound", 2, 2, &obj0, &obj1))
SWIG_fail;
41702 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenDurationBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41704 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41707 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_WhenDurationBound" "', argument " "2"" of type '" "operations_research::Demon *const""'");
41709 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
41712 (arg1)->WhenDurationBound(arg2);
41726 PyObject *resultobj = 0;
41731 PyObject * obj0 = 0 ;
41732 PyObject * obj1 = 0 ;
41734 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenDurationBound", 2, 2, &obj0, &obj1))
SWIG_fail;
41737 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenDurationBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
41739 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41743 return InvokePythonCallableReturning<void>(
input.get());
41748 (arg1)->WhenDurationBound(arg2);
41763 PyObject *argv[3] = {
41769 argc = PyObject_Length(args);
41770 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
41771 argv[ii] = PyTuple_GET_ITEM(args,ii);
41794 _v = PyCallable_Check(argv[1]);
41804 " Possible C/C++ prototypes are:\n" 41805 " operations_research::IntervalVar::WhenDurationBound(operations_research::Demon *const)\n" 41806 " operations_research::IntervalVar::WhenDurationBound(operations_research::Solver::Closure)\n");
41812 PyObject *resultobj = 0;
41816 PyObject * obj0 = 0 ;
41819 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndMin", 1, 1, &obj0))
SWIG_fail;
41822 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_EndMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41824 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41841 PyObject *resultobj = 0;
41845 PyObject * obj0 = 0 ;
41848 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndMax", 1, 1, &obj0))
SWIG_fail;
41851 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_EndMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
41853 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41870 PyObject *resultobj = 0;
41877 PyObject * obj0 = 0 ;
41878 PyObject * obj1 = 0 ;
41880 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetEndMin", 2, 2, &obj0, &obj1))
SWIG_fail;
41885 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41890 arg2 = static_cast< int64_t >(val2);
41898 (arg1)->SetEndMin(arg2);
41905 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
41917 PyObject *resultobj = 0;
41924 PyObject * obj0 = 0 ;
41925 PyObject * obj1 = 0 ;
41927 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetEndMax", 2, 2, &obj0, &obj1))
SWIG_fail;
41932 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41937 arg2 = static_cast< int64_t >(val2);
41945 (arg1)->SetEndMax(arg2);
41952 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
41964 PyObject *resultobj = 0;
41974 PyObject * obj0 = 0 ;
41975 PyObject * obj1 = 0 ;
41976 PyObject * obj2 = 0 ;
41978 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetEndRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
41983 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
41988 arg2 = static_cast< int64_t >(val2);
41993 arg3 = static_cast< int64_t >(val3);
42001 (arg1)->SetEndRange(arg2,arg3);
42008 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
42020 PyObject *resultobj = 0;
42024 PyObject * obj0 = 0 ;
42027 if (!PyArg_UnpackTuple(args,
"IntervalVar_OldEndMin", 1, 1, &obj0))
SWIG_fail;
42030 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_OldEndMin" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42032 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42049 PyObject *resultobj = 0;
42053 PyObject * obj0 = 0 ;
42056 if (!PyArg_UnpackTuple(args,
"IntervalVar_OldEndMax", 1, 1, &obj0))
SWIG_fail;
42059 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_OldEndMax" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42061 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42078 PyObject *resultobj = 0;
42085 PyObject * obj0 = 0 ;
42086 PyObject * obj1 = 0 ;
42088 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenEndRange", 2, 2, &obj0, &obj1))
SWIG_fail;
42091 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenEndRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42093 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42098 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
42101 (arg1)->WhenEndRange(arg2);
42115 PyObject *resultobj = 0;
42120 PyObject * obj0 = 0 ;
42121 PyObject * obj1 = 0 ;
42123 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenEndRange", 2, 2, &obj0, &obj1))
SWIG_fail;
42126 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenEndRange" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42128 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42132 return InvokePythonCallableReturning<void>(
input.get());
42137 (arg1)->WhenEndRange(arg2);
42152 PyObject *argv[3] = {
42158 argc = PyObject_Length(args);
42159 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
42160 argv[ii] = PyTuple_GET_ITEM(args,ii);
42183 _v = PyCallable_Check(argv[1]);
42193 " Possible C/C++ prototypes are:\n" 42194 " operations_research::IntervalVar::WhenEndRange(operations_research::Demon *const)\n" 42195 " operations_research::IntervalVar::WhenEndRange(operations_research::Solver::Closure)\n");
42201 PyObject *resultobj = 0;
42208 PyObject * obj0 = 0 ;
42209 PyObject * obj1 = 0 ;
42211 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenEndBound", 2, 2, &obj0, &obj1))
SWIG_fail;
42214 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenEndBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42216 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42221 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
42224 (arg1)->WhenEndBound(arg2);
42238 PyObject *resultobj = 0;
42243 PyObject * obj0 = 0 ;
42244 PyObject * obj1 = 0 ;
42246 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenEndBound", 2, 2, &obj0, &obj1))
SWIG_fail;
42249 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenEndBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42251 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42255 return InvokePythonCallableReturning<void>(
input.get());
42260 (arg1)->WhenEndBound(arg2);
42275 PyObject *argv[3] = {
42281 argc = PyObject_Length(args);
42282 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
42283 argv[ii] = PyTuple_GET_ITEM(args,ii);
42306 _v = PyCallable_Check(argv[1]);
42316 " Possible C/C++ prototypes are:\n" 42317 " operations_research::IntervalVar::WhenEndBound(operations_research::Demon *const)\n" 42318 " operations_research::IntervalVar::WhenEndBound(operations_research::Solver::Closure)\n");
42324 PyObject *resultobj = 0;
42328 PyObject * obj0 = 0 ;
42331 if (!PyArg_UnpackTuple(args,
"IntervalVar_MustBePerformed", 1, 1, &obj0))
SWIG_fail;
42334 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_MustBePerformed" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42336 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42353 PyObject *resultobj = 0;
42357 PyObject * obj0 = 0 ;
42360 if (!PyArg_UnpackTuple(args,
"IntervalVar_MayBePerformed", 1, 1, &obj0))
SWIG_fail;
42363 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_MayBePerformed" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42365 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42382 PyObject *resultobj = 0;
42386 PyObject * obj0 = 0 ;
42389 if (!PyArg_UnpackTuple(args,
"IntervalVar_CannotBePerformed", 1, 1, &obj0))
SWIG_fail;
42392 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_CannotBePerformed" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42394 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42411 PyObject *resultobj = 0;
42415 PyObject * obj0 = 0 ;
42418 if (!PyArg_UnpackTuple(args,
"IntervalVar_IsPerformedBound", 1, 1, &obj0))
SWIG_fail;
42421 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_IsPerformedBound" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42423 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42440 PyObject *resultobj = 0;
42447 PyObject * obj0 = 0 ;
42448 PyObject * obj1 = 0 ;
42450 if (!PyArg_UnpackTuple(args,
"IntervalVar_SetPerformed", 2, 2, &obj0, &obj1))
SWIG_fail;
42453 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_SetPerformed" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42455 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42460 arg2 = static_cast< bool >(val2);
42468 (arg1)->SetPerformed(arg2);
42475 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
42487 PyObject *resultobj = 0;
42491 PyObject * obj0 = 0 ;
42494 if (!PyArg_UnpackTuple(args,
"IntervalVar_WasPerformedBound", 1, 1, &obj0))
SWIG_fail;
42497 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WasPerformedBound" "', argument " "1"" of type '" "operations_research::IntervalVar const *""'");
42499 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42516 PyObject *resultobj = 0;
42523 PyObject * obj0 = 0 ;
42524 PyObject * obj1 = 0 ;
42526 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenPerformedBound", 2, 2, &obj0, &obj1))
SWIG_fail;
42529 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenPerformedBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42531 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42534 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_WhenPerformedBound" "', argument " "2"" of type '" "operations_research::Demon *const""'");
42536 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
42539 (arg1)->WhenPerformedBound(arg2);
42553 PyObject *resultobj = 0;
42558 PyObject * obj0 = 0 ;
42559 PyObject * obj1 = 0 ;
42561 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenPerformedBound", 2, 2, &obj0, &obj1))
SWIG_fail;
42564 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenPerformedBound" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42566 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42570 return InvokePythonCallableReturning<void>(
input.get());
42575 (arg1)->WhenPerformedBound(arg2);
42590 PyObject *argv[3] = {
42596 argc = PyObject_Length(args);
42597 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
42598 argv[ii] = PyTuple_GET_ITEM(args,ii);
42621 _v = PyCallable_Check(argv[1]);
42631 " Possible C/C++ prototypes are:\n" 42632 " operations_research::IntervalVar::WhenPerformedBound(operations_research::Demon *const)\n" 42633 " operations_research::IntervalVar::WhenPerformedBound(operations_research::Solver::Closure)\n");
42639 PyObject *resultobj = 0;
42646 PyObject * obj0 = 0 ;
42647 PyObject * obj1 = 0 ;
42649 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenAnything", 2, 2, &obj0, &obj1))
SWIG_fail;
42652 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenAnything" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42654 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42659 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
42662 (arg1)->WhenAnything(arg2);
42676 PyObject *resultobj = 0;
42681 PyObject * obj0 = 0 ;
42682 PyObject * obj1 = 0 ;
42684 if (!PyArg_UnpackTuple(args,
"IntervalVar_WhenAnything", 2, 2, &obj0, &obj1))
SWIG_fail;
42687 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_WhenAnything" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42689 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42693 return InvokePythonCallableReturning<void>(
input.get());
42698 (arg1)->WhenAnything(arg2);
42713 PyObject *argv[3] = {
42719 argc = PyObject_Length(args);
42720 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
42721 argv[ii] = PyTuple_GET_ITEM(args,ii);
42744 _v = PyCallable_Check(argv[1]);
42754 " Possible C/C++ prototypes are:\n" 42755 " operations_research::IntervalVar::WhenAnything(operations_research::Demon *const)\n" 42756 " operations_research::IntervalVar::WhenAnything(operations_research::Solver::Closure)\n");
42762 PyObject *resultobj = 0;
42766 PyObject * obj0 = 0 ;
42769 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartExpr", 1, 1, &obj0))
SWIG_fail;
42774 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42791 PyObject *resultobj = 0;
42795 PyObject * obj0 = 0 ;
42798 if (!PyArg_UnpackTuple(args,
"IntervalVar_DurationExpr", 1, 1, &obj0))
SWIG_fail;
42801 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_DurationExpr" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42803 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42820 PyObject *resultobj = 0;
42824 PyObject * obj0 = 0 ;
42827 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndExpr", 1, 1, &obj0))
SWIG_fail;
42832 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42849 PyObject *resultobj = 0;
42853 PyObject * obj0 = 0 ;
42856 if (!PyArg_UnpackTuple(args,
"IntervalVar_PerformedExpr", 1, 1, &obj0))
SWIG_fail;
42859 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_PerformedExpr" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42861 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42878 PyObject *resultobj = 0;
42885 PyObject * obj0 = 0 ;
42886 PyObject * obj1 = 0 ;
42889 if (!PyArg_UnpackTuple(args,
"IntervalVar_SafeStartExpr", 2, 2, &obj0, &obj1))
SWIG_fail;
42892 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_SafeStartExpr" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42894 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42899 arg2 = static_cast< int64_t >(val2);
42916 PyObject *resultobj = 0;
42923 PyObject * obj0 = 0 ;
42924 PyObject * obj1 = 0 ;
42927 if (!PyArg_UnpackTuple(args,
"IntervalVar_SafeDurationExpr", 2, 2, &obj0, &obj1))
SWIG_fail;
42930 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_SafeDurationExpr" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
42932 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42937 arg2 = static_cast< int64_t >(val2);
42954 PyObject *resultobj = 0;
42961 PyObject * obj0 = 0 ;
42962 PyObject * obj1 = 0 ;
42965 if (!PyArg_UnpackTuple(args,
"IntervalVar_SafeEndExpr", 2, 2, &obj0, &obj1))
SWIG_fail;
42970 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
42975 arg2 = static_cast< int64_t >(val2);
42992 PyObject *resultobj = 0;
42999 PyObject * obj0 = 0 ;
43000 PyObject * obj1 = 0 ;
43004 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAfterEnd", 2, 2, &obj0, &obj1))
SWIG_fail;
43007 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_EndsAfterEnd" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43009 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43012 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_EndsAfterEnd" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43014 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43026 Py_INCREF(resultobj);
43037 PyObject *resultobj = 0;
43047 PyObject * obj0 = 0 ;
43048 PyObject * obj1 = 0 ;
43049 PyObject * obj2 = 0 ;
43053 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAfterEndWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43056 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_EndsAfterEndWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43058 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43061 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_EndsAfterEndWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43063 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43068 arg3 = static_cast< int64_t >(val3);
43080 Py_INCREF(resultobj);
43091 PyObject *resultobj = 0;
43098 PyObject * obj0 = 0 ;
43099 PyObject * obj1 = 0 ;
43103 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAfterStart", 2, 2, &obj0, &obj1))
SWIG_fail;
43106 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_EndsAfterStart" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43108 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43111 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_EndsAfterStart" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43113 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43125 Py_INCREF(resultobj);
43136 PyObject *resultobj = 0;
43146 PyObject * obj0 = 0 ;
43147 PyObject * obj1 = 0 ;
43148 PyObject * obj2 = 0 ;
43152 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAfterStartWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43155 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_EndsAfterStartWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43157 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43160 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_EndsAfterStartWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43162 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43167 arg3 = static_cast< int64_t >(val3);
43179 Py_INCREF(resultobj);
43190 PyObject *resultobj = 0;
43197 PyObject * obj0 = 0 ;
43198 PyObject * obj1 = 0 ;
43202 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAtEnd", 2, 2, &obj0, &obj1))
SWIG_fail;
43207 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43212 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43224 Py_INCREF(resultobj);
43235 PyObject *resultobj = 0;
43245 PyObject * obj0 = 0 ;
43246 PyObject * obj1 = 0 ;
43247 PyObject * obj2 = 0 ;
43251 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAtEndWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43254 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_EndsAtEndWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43256 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43259 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_EndsAtEndWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43261 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43266 arg3 = static_cast< int64_t >(val3);
43278 Py_INCREF(resultobj);
43289 PyObject *resultobj = 0;
43296 PyObject * obj0 = 0 ;
43297 PyObject * obj1 = 0 ;
43301 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAtStart", 2, 2, &obj0, &obj1))
SWIG_fail;
43306 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43311 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43323 Py_INCREF(resultobj);
43334 PyObject *resultobj = 0;
43344 PyObject * obj0 = 0 ;
43345 PyObject * obj1 = 0 ;
43346 PyObject * obj2 = 0 ;
43350 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAtStartWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43353 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_EndsAtStartWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43355 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43358 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_EndsAtStartWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43360 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43365 arg3 = static_cast< int64_t >(val3);
43377 Py_INCREF(resultobj);
43388 PyObject *resultobj = 0;
43395 PyObject * obj0 = 0 ;
43396 PyObject * obj1 = 0 ;
43400 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAfterEnd", 2, 2, &obj0, &obj1))
SWIG_fail;
43403 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartsAfterEnd" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43405 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43408 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_StartsAfterEnd" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43410 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43422 Py_INCREF(resultobj);
43433 PyObject *resultobj = 0;
43443 PyObject * obj0 = 0 ;
43444 PyObject * obj1 = 0 ;
43445 PyObject * obj2 = 0 ;
43449 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAfterEndWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43452 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartsAfterEndWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43454 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43457 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_StartsAfterEndWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43459 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43464 arg3 = static_cast< int64_t >(val3);
43476 Py_INCREF(resultobj);
43487 PyObject *resultobj = 0;
43494 PyObject * obj0 = 0 ;
43495 PyObject * obj1 = 0 ;
43499 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAfterStart", 2, 2, &obj0, &obj1))
SWIG_fail;
43502 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartsAfterStart" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43504 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43507 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_StartsAfterStart" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43509 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43521 Py_INCREF(resultobj);
43532 PyObject *resultobj = 0;
43542 PyObject * obj0 = 0 ;
43543 PyObject * obj1 = 0 ;
43544 PyObject * obj2 = 0 ;
43548 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAfterStartWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43551 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartsAfterStartWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43553 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43556 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_StartsAfterStartWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43558 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43563 arg3 = static_cast< int64_t >(val3);
43575 Py_INCREF(resultobj);
43586 PyObject *resultobj = 0;
43593 PyObject * obj0 = 0 ;
43594 PyObject * obj1 = 0 ;
43598 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAtEnd", 2, 2, &obj0, &obj1))
SWIG_fail;
43603 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43608 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43620 Py_INCREF(resultobj);
43631 PyObject *resultobj = 0;
43641 PyObject * obj0 = 0 ;
43642 PyObject * obj1 = 0 ;
43643 PyObject * obj2 = 0 ;
43647 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAtEndWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43650 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartsAtEndWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43652 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43655 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_StartsAtEndWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43657 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43662 arg3 = static_cast< int64_t >(val3);
43674 Py_INCREF(resultobj);
43685 PyObject *resultobj = 0;
43692 PyObject * obj0 = 0 ;
43693 PyObject * obj1 = 0 ;
43697 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAtStart", 2, 2, &obj0, &obj1))
SWIG_fail;
43700 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartsAtStart" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43702 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43705 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_StartsAtStart" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43707 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43719 Py_INCREF(resultobj);
43730 PyObject *resultobj = 0;
43740 PyObject * obj0 = 0 ;
43741 PyObject * obj1 = 0 ;
43742 PyObject * obj2 = 0 ;
43746 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAtStartWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43749 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartsAtStartWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43751 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43754 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_StartsAtStartWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43756 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43761 arg3 = static_cast< int64_t >(val3);
43773 Py_INCREF(resultobj);
43784 PyObject *resultobj = 0;
43791 PyObject * obj0 = 0 ;
43792 PyObject * obj1 = 0 ;
43796 if (!PyArg_UnpackTuple(args,
"IntervalVar_StaysInSync", 2, 2, &obj0, &obj1))
SWIG_fail;
43801 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43806 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43818 Py_INCREF(resultobj);
43829 PyObject *resultobj = 0;
43839 PyObject * obj0 = 0 ;
43840 PyObject * obj1 = 0 ;
43841 PyObject * obj2 = 0 ;
43845 if (!PyArg_UnpackTuple(args,
"IntervalVar_StaysInSyncWithDelay", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
43848 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StaysInSyncWithDelay" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
43850 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43853 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVar_StaysInSyncWithDelay" "', argument " "2"" of type '" "operations_research::IntervalVar *""'");
43855 arg2 = reinterpret_cast< operations_research::IntervalVar * >(argp2);
43860 arg3 = static_cast< int64_t >(val3);
43872 Py_INCREF(resultobj);
43883 PyObject *resultobj = 0;
43890 PyObject * obj0 = 0 ;
43891 PyObject * obj1 = 0 ;
43895 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAfter", 2, 2, &obj0, &obj1))
SWIG_fail;
43900 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43905 arg2 = static_cast< int64_t >(val2);
43917 Py_INCREF(resultobj);
43928 PyObject *resultobj = 0;
43935 PyObject * obj0 = 0 ;
43936 PyObject * obj1 = 0 ;
43940 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsAt", 2, 2, &obj0, &obj1))
SWIG_fail;
43945 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43950 arg2 = static_cast< int64_t >(val2);
43962 Py_INCREF(resultobj);
43973 PyObject *resultobj = 0;
43980 PyObject * obj0 = 0 ;
43981 PyObject * obj1 = 0 ;
43985 if (!PyArg_UnpackTuple(args,
"IntervalVar_EndsBefore", 2, 2, &obj0, &obj1))
SWIG_fail;
43990 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
43995 arg2 = static_cast< int64_t >(val2);
44007 Py_INCREF(resultobj);
44018 PyObject *resultobj = 0;
44025 PyObject * obj0 = 0 ;
44026 PyObject * obj1 = 0 ;
44030 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAfter", 2, 2, &obj0, &obj1))
SWIG_fail;
44035 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
44040 arg2 = static_cast< int64_t >(val2);
44052 Py_INCREF(resultobj);
44063 PyObject *resultobj = 0;
44070 PyObject * obj0 = 0 ;
44071 PyObject * obj1 = 0 ;
44075 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsAt", 2, 2, &obj0, &obj1))
SWIG_fail;
44080 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
44085 arg2 = static_cast< int64_t >(val2);
44097 Py_INCREF(resultobj);
44108 PyObject *resultobj = 0;
44115 PyObject * obj0 = 0 ;
44116 PyObject * obj1 = 0 ;
44120 if (!PyArg_UnpackTuple(args,
"IntervalVar_StartsBefore", 2, 2, &obj0, &obj1))
SWIG_fail;
44123 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVar_StartsBefore" "', argument " "1"" of type '" "operations_research::IntervalVar *""'");
44125 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
44130 arg2 = static_cast< int64_t >(val2);
44142 Py_INCREF(resultobj);
44153 PyObject *resultobj = 0;
44160 PyObject * obj0 = 0 ;
44161 PyObject * obj1 = 0 ;
44165 if (!PyArg_UnpackTuple(args,
"IntervalVar_CrossesDate", 2, 2, &obj0, &obj1))
SWIG_fail;
44170 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
44175 arg2 = static_cast< int64_t >(val2);
44187 Py_INCREF(resultobj);
44198 PyObject *resultobj = 0;
44205 PyObject * obj0 = 0 ;
44206 PyObject * obj1 = 0 ;
44210 if (!PyArg_UnpackTuple(args,
"IntervalVar_AvoidsDate", 2, 2, &obj0, &obj1))
SWIG_fail;
44215 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
44220 arg2 = static_cast< int64_t >(val2);
44232 Py_INCREF(resultobj);
44243 PyObject *resultobj = 0;
44247 PyObject * obj0 = 0 ;
44248 std::string result;
44250 if (!PyArg_UnpackTuple(args,
"IntervalVar___repr__", 1, 1, &obj0))
SWIG_fail;
44255 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
44272 PyObject *resultobj = 0;
44276 PyObject * obj0 = 0 ;
44277 std::string result;
44279 if (!PyArg_UnpackTuple(args,
"IntervalVar___str__", 1, 1, &obj0))
SWIG_fail;
44284 arg1 = reinterpret_cast< operations_research::IntervalVar * >(argp1);
44308 PyObject *resultobj = 0;
44312 PyObject * obj0 = 0 ;
44313 std::string result;
44315 if (!PyArg_UnpackTuple(args,
"SequenceVar_DebugString", 1, 1, &obj0))
SWIG_fail;
44318 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVar_DebugString" "', argument " "1"" of type '" "operations_research::SequenceVar const *""'");
44320 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44337 PyObject *resultobj = 0;
44344 PyObject * obj0 = 0 ;
44345 PyObject * obj1 = 0 ;
44347 if (!PyArg_UnpackTuple(args,
"SequenceVar_RankFirst", 2, 2, &obj0, &obj1))
SWIG_fail;
44352 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44357 arg2 = static_cast< int >(val2);
44360 (arg1)->RankFirst(arg2);
44374 PyObject *resultobj = 0;
44381 PyObject * obj0 = 0 ;
44382 PyObject * obj1 = 0 ;
44384 if (!PyArg_UnpackTuple(args,
"SequenceVar_RankNotFirst", 2, 2, &obj0, &obj1))
SWIG_fail;
44387 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVar_RankNotFirst" "', argument " "1"" of type '" "operations_research::SequenceVar *""'");
44389 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44394 arg2 = static_cast< int >(val2);
44397 (arg1)->RankNotFirst(arg2);
44411 PyObject *resultobj = 0;
44418 PyObject * obj0 = 0 ;
44419 PyObject * obj1 = 0 ;
44421 if (!PyArg_UnpackTuple(args,
"SequenceVar_RankLast", 2, 2, &obj0, &obj1))
SWIG_fail;
44426 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44431 arg2 = static_cast< int >(val2);
44434 (arg1)->RankLast(arg2);
44448 PyObject *resultobj = 0;
44455 PyObject * obj0 = 0 ;
44456 PyObject * obj1 = 0 ;
44458 if (!PyArg_UnpackTuple(args,
"SequenceVar_RankNotLast", 2, 2, &obj0, &obj1))
SWIG_fail;
44463 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44468 arg2 = static_cast< int >(val2);
44471 (arg1)->RankNotLast(arg2);
44485 PyObject *resultobj = 0;
44492 PyObject * obj0 = 0 ;
44493 PyObject * obj1 = 0 ;
44496 if (!PyArg_UnpackTuple(args,
"SequenceVar_Interval", 2, 2, &obj0, &obj1))
SWIG_fail;
44499 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVar_Interval" "', argument " "1"" of type '" "operations_research::SequenceVar const *""'");
44501 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44506 arg2 = static_cast< int >(val2);
44523 PyObject *resultobj = 0;
44530 PyObject * obj0 = 0 ;
44531 PyObject * obj1 = 0 ;
44534 if (!PyArg_UnpackTuple(args,
"SequenceVar_Next", 2, 2, &obj0, &obj1))
SWIG_fail;
44539 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44544 arg2 = static_cast< int >(val2);
44561 PyObject *resultobj = 0;
44565 PyObject * obj0 = 0 ;
44568 if (!PyArg_UnpackTuple(args,
"SequenceVar_Size", 1, 1, &obj0))
SWIG_fail;
44573 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44590 PyObject *resultobj = 0;
44594 PyObject * obj0 = 0 ;
44595 std::string result;
44597 if (!PyArg_UnpackTuple(args,
"SequenceVar___repr__", 1, 1, &obj0))
SWIG_fail;
44602 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44619 PyObject *resultobj = 0;
44623 PyObject * obj0 = 0 ;
44624 std::string result;
44626 if (!PyArg_UnpackTuple(args,
"SequenceVar___str__", 1, 1, &obj0))
SWIG_fail;
44631 arg1 = reinterpret_cast< operations_research::SequenceVar * >(argp1);
44655 PyObject *resultobj = 0;
44659 PyObject * obj0 = 0 ;
44661 if (!PyArg_UnpackTuple(args,
"AssignmentElement_Activate", 1, 1, &obj0))
SWIG_fail;
44664 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "AssignmentElement_Activate" "', argument " "1"" of type '" "operations_research::AssignmentElement *""'");
44666 arg1 = reinterpret_cast< operations_research::AssignmentElement * >(argp1);
44669 (arg1)->Activate();
44683 PyObject *resultobj = 0;
44687 PyObject * obj0 = 0 ;
44689 if (!PyArg_UnpackTuple(args,
"AssignmentElement_Deactivate", 1, 1, &obj0))
SWIG_fail;
44692 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "AssignmentElement_Deactivate" "', argument " "1"" of type '" "operations_research::AssignmentElement *""'");
44694 arg1 = reinterpret_cast< operations_research::AssignmentElement * >(argp1);
44697 (arg1)->Deactivate();
44711 PyObject *resultobj = 0;
44715 PyObject * obj0 = 0 ;
44718 if (!PyArg_UnpackTuple(args,
"AssignmentElement_Activated", 1, 1, &obj0))
SWIG_fail;
44721 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "AssignmentElement_Activated" "', argument " "1"" of type '" "operations_research::AssignmentElement const *""'");
44723 arg1 = reinterpret_cast< operations_research::AssignmentElement * >(argp1);
44740 PyObject *resultobj = 0;
44744 PyObject * obj0 = 0 ;
44746 if (!PyArg_UnpackTuple(args,
"delete_AssignmentElement", 1, 1, &obj0))
SWIG_fail;
44749 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_AssignmentElement" "', argument " "1"" of type '" "operations_research::AssignmentElement *""'");
44751 arg1 = reinterpret_cast< operations_research::AssignmentElement * >(argp1);
44775 PyObject *resultobj = 0;
44779 PyObject * obj0 = 0 ;
44782 if (!PyArg_UnpackTuple(args,
"IntVarElement_Var", 1, 1, &obj0))
SWIG_fail;
44785 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement_Var" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
44787 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
44804 PyObject *resultobj = 0;
44808 PyObject * obj0 = 0 ;
44811 if (!PyArg_UnpackTuple(args,
"IntVarElement_Min", 1, 1, &obj0))
SWIG_fail;
44814 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement_Min" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
44816 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
44833 PyObject *resultobj = 0;
44840 PyObject * obj0 = 0 ;
44841 PyObject * obj1 = 0 ;
44843 if (!PyArg_UnpackTuple(args,
"IntVarElement_SetMin", 2, 2, &obj0, &obj1))
SWIG_fail;
44848 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
44853 arg2 = static_cast< int64_t >(val2);
44856 (arg1)->SetMin(arg2);
44870 PyObject *resultobj = 0;
44874 PyObject * obj0 = 0 ;
44877 if (!PyArg_UnpackTuple(args,
"IntVarElement_Max", 1, 1, &obj0))
SWIG_fail;
44880 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement_Max" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
44882 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
44899 PyObject *resultobj = 0;
44906 PyObject * obj0 = 0 ;
44907 PyObject * obj1 = 0 ;
44909 if (!PyArg_UnpackTuple(args,
"IntVarElement_SetMax", 2, 2, &obj0, &obj1))
SWIG_fail;
44914 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
44919 arg2 = static_cast< int64_t >(val2);
44922 (arg1)->SetMax(arg2);
44936 PyObject *resultobj = 0;
44940 PyObject * obj0 = 0 ;
44943 if (!PyArg_UnpackTuple(args,
"IntVarElement_Value", 1, 1, &obj0))
SWIG_fail;
44946 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement_Value" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
44948 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
44965 PyObject *resultobj = 0;
44969 PyObject * obj0 = 0 ;
44972 if (!PyArg_UnpackTuple(args,
"IntVarElement_Bound", 1, 1, &obj0))
SWIG_fail;
44975 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement_Bound" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
44977 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
44994 PyObject *resultobj = 0;
45004 PyObject * obj0 = 0 ;
45005 PyObject * obj1 = 0 ;
45006 PyObject * obj2 = 0 ;
45008 if (!PyArg_UnpackTuple(args,
"IntVarElement_SetRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
45011 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement_SetRange" "', argument " "1"" of type '" "operations_research::IntVarElement *""'");
45013 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
45018 arg2 = static_cast< int64_t >(val2);
45023 arg3 = static_cast< int64_t >(val3);
45026 (arg1)->SetRange(arg2,arg3);
45040 PyObject *resultobj = 0;
45047 PyObject * obj0 = 0 ;
45048 PyObject * obj1 = 0 ;
45050 if (!PyArg_UnpackTuple(args,
"IntVarElement_SetValue", 2, 2, &obj0, &obj1))
SWIG_fail;
45053 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement_SetValue" "', argument " "1"" of type '" "operations_research::IntVarElement *""'");
45055 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
45060 arg2 = static_cast< int64_t >(val2);
45063 (arg1)->SetValue(arg2);
45077 PyObject *resultobj = 0;
45084 PyObject * obj0 = 0 ;
45085 PyObject * obj1 = 0 ;
45088 if (!PyArg_UnpackTuple(args,
"IntVarElement___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
45091 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement___eq__" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
45093 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
45096 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntVarElement___eq__" "', argument " "2"" of type '" "operations_research::IntVarElement const &""'");
45099 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "IntVarElement___eq__" "', argument " "2"" of type '" "operations_research::IntVarElement const &""'");
45101 arg2 = reinterpret_cast< operations_research::IntVarElement * >(argp2);
45114 Py_INCREF(Py_NotImplemented);
45115 return Py_NotImplemented;
45120 PyObject *resultobj = 0;
45127 PyObject * obj0 = 0 ;
45128 PyObject * obj1 = 0 ;
45131 if (!PyArg_UnpackTuple(args,
"IntVarElement___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
45134 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarElement___ne__" "', argument " "1"" of type '" "operations_research::IntVarElement const *""'");
45136 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
45139 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntVarElement___ne__" "', argument " "2"" of type '" "operations_research::IntVarElement const &""'");
45142 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "IntVarElement___ne__" "', argument " "2"" of type '" "operations_research::IntVarElement const &""'");
45144 arg2 = reinterpret_cast< operations_research::IntVarElement * >(argp2);
45157 Py_INCREF(Py_NotImplemented);
45158 return Py_NotImplemented;
45163 PyObject *resultobj = 0;
45167 PyObject * obj0 = 0 ;
45169 if (!PyArg_UnpackTuple(args,
"delete_IntVarElement", 1, 1, &obj0))
SWIG_fail;
45174 arg1 = reinterpret_cast< operations_research::IntVarElement * >(argp1);
45198 PyObject *resultobj = 0;
45202 PyObject * obj0 = 0 ;
45205 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_Var", 1, 1, &obj0))
SWIG_fail;
45208 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_Var" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45210 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45227 PyObject *resultobj = 0;
45231 PyObject * obj0 = 0 ;
45234 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_StartMin", 1, 1, &obj0))
SWIG_fail;
45237 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_StartMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45239 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45256 PyObject *resultobj = 0;
45260 PyObject * obj0 = 0 ;
45263 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_StartMax", 1, 1, &obj0))
SWIG_fail;
45266 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_StartMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45268 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45285 PyObject *resultobj = 0;
45289 PyObject * obj0 = 0 ;
45292 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_StartValue", 1, 1, &obj0))
SWIG_fail;
45295 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_StartValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45297 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45314 PyObject *resultobj = 0;
45318 PyObject * obj0 = 0 ;
45321 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_DurationMin", 1, 1, &obj0))
SWIG_fail;
45324 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_DurationMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45326 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45343 PyObject *resultobj = 0;
45347 PyObject * obj0 = 0 ;
45350 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_DurationMax", 1, 1, &obj0))
SWIG_fail;
45353 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_DurationMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45355 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45372 PyObject *resultobj = 0;
45376 PyObject * obj0 = 0 ;
45379 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_DurationValue", 1, 1, &obj0))
SWIG_fail;
45382 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_DurationValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45384 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45401 PyObject *resultobj = 0;
45405 PyObject * obj0 = 0 ;
45408 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_EndMin", 1, 1, &obj0))
SWIG_fail;
45411 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_EndMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45413 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45430 PyObject *resultobj = 0;
45434 PyObject * obj0 = 0 ;
45437 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_EndMax", 1, 1, &obj0))
SWIG_fail;
45440 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_EndMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45442 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45459 PyObject *resultobj = 0;
45463 PyObject * obj0 = 0 ;
45466 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_EndValue", 1, 1, &obj0))
SWIG_fail;
45469 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_EndValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45471 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45488 PyObject *resultobj = 0;
45492 PyObject * obj0 = 0 ;
45495 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_PerformedMin", 1, 1, &obj0))
SWIG_fail;
45498 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_PerformedMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45500 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45517 PyObject *resultobj = 0;
45521 PyObject * obj0 = 0 ;
45524 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_PerformedMax", 1, 1, &obj0))
SWIG_fail;
45527 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_PerformedMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45529 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45546 PyObject *resultobj = 0;
45550 PyObject * obj0 = 0 ;
45553 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_PerformedValue", 1, 1, &obj0))
SWIG_fail;
45556 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_PerformedValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
45558 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45575 PyObject *resultobj = 0;
45582 PyObject * obj0 = 0 ;
45583 PyObject * obj1 = 0 ;
45585 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetStartMin", 2, 2, &obj0, &obj1))
SWIG_fail;
45588 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetStartMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45590 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45595 arg2 = static_cast< int64_t >(val2);
45598 (arg1)->SetStartMin(arg2);
45612 PyObject *resultobj = 0;
45619 PyObject * obj0 = 0 ;
45620 PyObject * obj1 = 0 ;
45622 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetStartMax", 2, 2, &obj0, &obj1))
SWIG_fail;
45625 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetStartMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45627 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45632 arg2 = static_cast< int64_t >(val2);
45635 (arg1)->SetStartMax(arg2);
45649 PyObject *resultobj = 0;
45659 PyObject * obj0 = 0 ;
45660 PyObject * obj1 = 0 ;
45661 PyObject * obj2 = 0 ;
45663 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetStartRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
45666 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetStartRange" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45668 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45673 arg2 = static_cast< int64_t >(val2);
45678 arg3 = static_cast< int64_t >(val3);
45681 (arg1)->SetStartRange(arg2,arg3);
45695 PyObject *resultobj = 0;
45702 PyObject * obj0 = 0 ;
45703 PyObject * obj1 = 0 ;
45705 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetStartValue", 2, 2, &obj0, &obj1))
SWIG_fail;
45708 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetStartValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45710 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45715 arg2 = static_cast< int64_t >(val2);
45718 (arg1)->SetStartValue(arg2);
45732 PyObject *resultobj = 0;
45739 PyObject * obj0 = 0 ;
45740 PyObject * obj1 = 0 ;
45742 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetDurationMin", 2, 2, &obj0, &obj1))
SWIG_fail;
45745 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetDurationMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45747 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45752 arg2 = static_cast< int64_t >(val2);
45755 (arg1)->SetDurationMin(arg2);
45769 PyObject *resultobj = 0;
45776 PyObject * obj0 = 0 ;
45777 PyObject * obj1 = 0 ;
45779 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetDurationMax", 2, 2, &obj0, &obj1))
SWIG_fail;
45782 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetDurationMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45784 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45789 arg2 = static_cast< int64_t >(val2);
45792 (arg1)->SetDurationMax(arg2);
45806 PyObject *resultobj = 0;
45816 PyObject * obj0 = 0 ;
45817 PyObject * obj1 = 0 ;
45818 PyObject * obj2 = 0 ;
45820 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetDurationRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
45823 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetDurationRange" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45825 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45830 arg2 = static_cast< int64_t >(val2);
45835 arg3 = static_cast< int64_t >(val3);
45838 (arg1)->SetDurationRange(arg2,arg3);
45852 PyObject *resultobj = 0;
45859 PyObject * obj0 = 0 ;
45860 PyObject * obj1 = 0 ;
45862 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetDurationValue", 2, 2, &obj0, &obj1))
SWIG_fail;
45865 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetDurationValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45867 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45872 arg2 = static_cast< int64_t >(val2);
45875 (arg1)->SetDurationValue(arg2);
45889 PyObject *resultobj = 0;
45896 PyObject * obj0 = 0 ;
45897 PyObject * obj1 = 0 ;
45899 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetEndMin", 2, 2, &obj0, &obj1))
SWIG_fail;
45902 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetEndMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45904 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45909 arg2 = static_cast< int64_t >(val2);
45912 (arg1)->SetEndMin(arg2);
45926 PyObject *resultobj = 0;
45933 PyObject * obj0 = 0 ;
45934 PyObject * obj1 = 0 ;
45936 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetEndMax", 2, 2, &obj0, &obj1))
SWIG_fail;
45939 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetEndMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45941 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45946 arg2 = static_cast< int64_t >(val2);
45949 (arg1)->SetEndMax(arg2);
45963 PyObject *resultobj = 0;
45973 PyObject * obj0 = 0 ;
45974 PyObject * obj1 = 0 ;
45975 PyObject * obj2 = 0 ;
45977 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetEndRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
45980 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetEndRange" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
45982 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
45987 arg2 = static_cast< int64_t >(val2);
45992 arg3 = static_cast< int64_t >(val3);
45995 (arg1)->SetEndRange(arg2,arg3);
46009 PyObject *resultobj = 0;
46016 PyObject * obj0 = 0 ;
46017 PyObject * obj1 = 0 ;
46019 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetEndValue", 2, 2, &obj0, &obj1))
SWIG_fail;
46022 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetEndValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46024 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
46029 arg2 = static_cast< int64_t >(val2);
46032 (arg1)->SetEndValue(arg2);
46046 PyObject *resultobj = 0;
46053 PyObject * obj0 = 0 ;
46054 PyObject * obj1 = 0 ;
46056 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetPerformedMin", 2, 2, &obj0, &obj1))
SWIG_fail;
46059 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetPerformedMin" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46061 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
46066 arg2 = static_cast< int64_t >(val2);
46069 (arg1)->SetPerformedMin(arg2);
46083 PyObject *resultobj = 0;
46090 PyObject * obj0 = 0 ;
46091 PyObject * obj1 = 0 ;
46093 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetPerformedMax", 2, 2, &obj0, &obj1))
SWIG_fail;
46096 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetPerformedMax" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46098 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
46103 arg2 = static_cast< int64_t >(val2);
46106 (arg1)->SetPerformedMax(arg2);
46120 PyObject *resultobj = 0;
46130 PyObject * obj0 = 0 ;
46131 PyObject * obj1 = 0 ;
46132 PyObject * obj2 = 0 ;
46134 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetPerformedRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
46137 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetPerformedRange" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46139 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
46144 arg2 = static_cast< int64_t >(val2);
46149 arg3 = static_cast< int64_t >(val3);
46152 (arg1)->SetPerformedRange(arg2,arg3);
46166 PyObject *resultobj = 0;
46173 PyObject * obj0 = 0 ;
46174 PyObject * obj1 = 0 ;
46176 if (!PyArg_UnpackTuple(args,
"IntervalVarElement_SetPerformedValue", 2, 2, &obj0, &obj1))
SWIG_fail;
46179 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement_SetPerformedValue" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46181 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
46186 arg2 = static_cast< int64_t >(val2);
46189 (arg1)->SetPerformedValue(arg2);
46203 PyObject *resultobj = 0;
46210 PyObject * obj0 = 0 ;
46211 PyObject * obj1 = 0 ;
46214 if (!PyArg_UnpackTuple(args,
"IntervalVarElement___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
46217 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement___eq__" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
46219 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
46222 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVarElement___eq__" "', argument " "2"" of type '" "operations_research::IntervalVarElement const &""'");
46225 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "IntervalVarElement___eq__" "', argument " "2"" of type '" "operations_research::IntervalVarElement const &""'");
46227 arg2 = reinterpret_cast< operations_research::IntervalVarElement * >(argp2);
46240 Py_INCREF(Py_NotImplemented);
46241 return Py_NotImplemented;
46246 PyObject *resultobj = 0;
46253 PyObject * obj0 = 0 ;
46254 PyObject * obj1 = 0 ;
46257 if (!PyArg_UnpackTuple(args,
"IntervalVarElement___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
46260 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarElement___ne__" "', argument " "1"" of type '" "operations_research::IntervalVarElement const *""'");
46262 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
46265 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVarElement___ne__" "', argument " "2"" of type '" "operations_research::IntervalVarElement const &""'");
46268 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "IntervalVarElement___ne__" "', argument " "2"" of type '" "operations_research::IntervalVarElement const &""'");
46270 arg2 = reinterpret_cast< operations_research::IntervalVarElement * >(argp2);
46283 Py_INCREF(Py_NotImplemented);
46284 return Py_NotImplemented;
46289 PyObject *resultobj = 0;
46293 PyObject * obj0 = 0 ;
46295 if (!PyArg_UnpackTuple(args,
"delete_IntervalVarElement", 1, 1, &obj0))
SWIG_fail;
46298 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_IntervalVarElement" "', argument " "1"" of type '" "operations_research::IntervalVarElement *""'");
46300 arg1 = reinterpret_cast< operations_research::IntervalVarElement * >(argp1);
46324 PyObject *resultobj = 0;
46328 PyObject * obj0 = 0 ;
46331 if (!PyArg_UnpackTuple(args,
"SequenceVarElement_Var", 1, 1, &obj0))
SWIG_fail;
46334 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement_Var" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46336 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46353 PyObject *resultobj = 0;
46357 PyObject * obj0 = 0 ;
46358 std::vector< int > *result = 0 ;
46360 if (!PyArg_UnpackTuple(args,
"SequenceVarElement_ForwardSequence", 1, 1, &obj0))
SWIG_fail;
46363 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement_ForwardSequence" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46365 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46375 resultobj = vector_output_helper(result, &PyInt_FromLong);
46384 PyObject *resultobj = 0;
46388 PyObject * obj0 = 0 ;
46389 std::vector< int > *result = 0 ;
46391 if (!PyArg_UnpackTuple(args,
"SequenceVarElement_BackwardSequence", 1, 1, &obj0))
SWIG_fail;
46394 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement_BackwardSequence" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46396 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46406 resultobj = vector_output_helper(result, &PyInt_FromLong);
46415 PyObject *resultobj = 0;
46419 PyObject * obj0 = 0 ;
46420 std::vector< int > *result = 0 ;
46422 if (!PyArg_UnpackTuple(args,
"SequenceVarElement_Unperformed", 1, 1, &obj0))
SWIG_fail;
46425 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement_Unperformed" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46427 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46437 resultobj = vector_output_helper(result, &PyInt_FromLong);
46446 PyObject *resultobj = 0;
46448 std::vector< int > *arg2 = 0 ;
46449 std::vector< int > *arg3 = 0 ;
46450 std::vector< int > *arg4 = 0 ;
46453 std::vector< int > temp2 ;
46454 std::vector< int > temp3 ;
46455 std::vector< int > temp4 ;
46456 PyObject * obj0 = 0 ;
46457 PyObject * obj1 = 0 ;
46458 PyObject * obj2 = 0 ;
46459 PyObject * obj3 = 0 ;
46461 if (!PyArg_UnpackTuple(args,
"SequenceVarElement_SetSequence", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
46464 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement_SetSequence" "', argument " "1"" of type '" "operations_research::SequenceVarElement *""'");
46466 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46468 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
46469 if (!PyErr_Occurred())
46476 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
46477 if (!PyErr_Occurred())
46484 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
46485 if (!PyErr_Occurred())
46493 (arg1)->SetSequence((std::vector< int >
const &)*arg2,(std::vector< int >
const &)*arg3,(std::vector< int >
const &)*arg4);
46507 PyObject *resultobj = 0;
46509 std::vector< int > *arg2 = 0 ;
46512 std::vector< int > temp2 ;
46513 PyObject * obj0 = 0 ;
46514 PyObject * obj1 = 0 ;
46516 if (!PyArg_UnpackTuple(args,
"SequenceVarElement_SetForwardSequence", 2, 2, &obj0, &obj1))
SWIG_fail;
46519 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement_SetForwardSequence" "', argument " "1"" of type '" "operations_research::SequenceVarElement *""'");
46521 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46523 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
46524 if (!PyErr_Occurred())
46532 (arg1)->SetForwardSequence((std::vector< int >
const &)*arg2);
46546 PyObject *resultobj = 0;
46548 std::vector< int > *arg2 = 0 ;
46551 std::vector< int > temp2 ;
46552 PyObject * obj0 = 0 ;
46553 PyObject * obj1 = 0 ;
46555 if (!PyArg_UnpackTuple(args,
"SequenceVarElement_SetBackwardSequence", 2, 2, &obj0, &obj1))
SWIG_fail;
46558 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement_SetBackwardSequence" "', argument " "1"" of type '" "operations_research::SequenceVarElement *""'");
46560 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46562 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
46563 if (!PyErr_Occurred())
46571 (arg1)->SetBackwardSequence((std::vector< int >
const &)*arg2);
46585 PyObject *resultobj = 0;
46587 std::vector< int > *arg2 = 0 ;
46590 std::vector< int > temp2 ;
46591 PyObject * obj0 = 0 ;
46592 PyObject * obj1 = 0 ;
46594 if (!PyArg_UnpackTuple(args,
"SequenceVarElement_SetUnperformed", 2, 2, &obj0, &obj1))
SWIG_fail;
46597 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement_SetUnperformed" "', argument " "1"" of type '" "operations_research::SequenceVarElement *""'");
46599 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46601 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
46602 if (!PyErr_Occurred())
46610 (arg1)->SetUnperformed((std::vector< int >
const &)*arg2);
46624 PyObject *resultobj = 0;
46631 PyObject * obj0 = 0 ;
46632 PyObject * obj1 = 0 ;
46635 if (!PyArg_UnpackTuple(args,
"SequenceVarElement___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
46638 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement___eq__" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46640 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46643 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "SequenceVarElement___eq__" "', argument " "2"" of type '" "operations_research::SequenceVarElement const &""'");
46646 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "SequenceVarElement___eq__" "', argument " "2"" of type '" "operations_research::SequenceVarElement const &""'");
46648 arg2 = reinterpret_cast< operations_research::SequenceVarElement * >(argp2);
46661 Py_INCREF(Py_NotImplemented);
46662 return Py_NotImplemented;
46667 PyObject *resultobj = 0;
46674 PyObject * obj0 = 0 ;
46675 PyObject * obj1 = 0 ;
46678 if (!PyArg_UnpackTuple(args,
"SequenceVarElement___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
46681 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarElement___ne__" "', argument " "1"" of type '" "operations_research::SequenceVarElement const *""'");
46683 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46686 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "SequenceVarElement___ne__" "', argument " "2"" of type '" "operations_research::SequenceVarElement const &""'");
46689 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "SequenceVarElement___ne__" "', argument " "2"" of type '" "operations_research::SequenceVarElement const &""'");
46691 arg2 = reinterpret_cast< operations_research::SequenceVarElement * >(argp2);
46704 Py_INCREF(Py_NotImplemented);
46705 return Py_NotImplemented;
46710 PyObject *resultobj = 0;
46714 PyObject * obj0 = 0 ;
46716 if (!PyArg_UnpackTuple(args,
"delete_SequenceVarElement", 1, 1, &obj0))
SWIG_fail;
46719 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_SequenceVarElement" "', argument " "1"" of type '" "operations_research::SequenceVarElement *""'");
46721 arg1 = reinterpret_cast< operations_research::SequenceVarElement * >(argp1);
46745 PyObject *resultobj = 0;
46749 PyObject * obj0 = 0 ;
46751 if (!PyArg_UnpackTuple(args,
"Assignment_Clear", 1, 1, &obj0))
SWIG_fail;
46756 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
46773 PyObject *resultobj = 0;
46777 PyObject * obj0 = 0 ;
46780 if (!PyArg_UnpackTuple(args,
"Assignment_Empty", 1, 1, &obj0))
SWIG_fail;
46785 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
46802 PyObject *resultobj = 0;
46806 PyObject * obj0 = 0 ;
46809 if (!PyArg_UnpackTuple(args,
"Assignment_Size", 1, 1, &obj0))
SWIG_fail;
46814 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
46831 PyObject *resultobj = 0;
46835 PyObject * obj0 = 0 ;
46838 if (!PyArg_UnpackTuple(args,
"Assignment_NumIntVars", 1, 1, &obj0))
SWIG_fail;
46841 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_NumIntVars" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
46843 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
46860 PyObject *resultobj = 0;
46864 PyObject * obj0 = 0 ;
46867 if (!PyArg_UnpackTuple(args,
"Assignment_NumIntervalVars", 1, 1, &obj0))
SWIG_fail;
46870 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_NumIntervalVars" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
46872 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
46889 PyObject *resultobj = 0;
46893 PyObject * obj0 = 0 ;
46896 if (!PyArg_UnpackTuple(args,
"Assignment_NumSequenceVars", 1, 1, &obj0))
SWIG_fail;
46899 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_NumSequenceVars" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
46901 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
46918 PyObject *resultobj = 0;
46922 PyObject * obj0 = 0 ;
46924 if (!PyArg_UnpackTuple(args,
"Assignment_Store", 1, 1, &obj0))
SWIG_fail;
46929 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
46946 PyObject *resultobj = 0;
46950 PyObject * obj0 = 0 ;
46952 if (!PyArg_UnpackTuple(args,
"Assignment_Restore", 1, 1, &obj0))
SWIG_fail;
46957 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
46974 PyObject *resultobj = 0;
46976 std::string *arg2 = 0 ;
46980 PyObject * obj0 = 0 ;
46981 PyObject * obj1 = 0 ;
46984 if (!PyArg_UnpackTuple(args,
"Assignment_Load", 2, 2, &obj0, &obj1))
SWIG_fail;
46989 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
46991 std::string *ptr = (std::string *)0;
47003 result = (bool)(arg1)->Load((std::string
const &)*arg2);
47019 PyObject *resultobj = 0;
47024 PyObject * obj0 = 0 ;
47025 PyObject * obj1 = 0 ;
47027 if (!PyArg_UnpackTuple(args,
"Assignment_Load", 2, 2, &obj0, &obj1))
SWIG_fail;
47032 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47035 PyObject*
const pyresult = PyObject_CallMethod(
47036 obj1, const_cast<char*>(
"SerializeToString"),
nullptr);
47037 if (pyresult !=
nullptr) {
47038 char* buffer =
nullptr;
47039 Py_ssize_t length = 0;
47040 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
47041 if (buffer !=
nullptr) {
47042 arg2->ParseFromArray(buffer, length);
47044 Py_DECREF(pyresult);
47070 PyObject *argv[3] = {
47076 argc = PyObject_Length(args);
47077 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
47078 argv[ii] = PyTuple_GET_ITEM(args,ii);
47088 PyObject*
const module = PyImport_ImportModule(
"ortools.constraint_solver.assignment_pb2");
47089 if (module !=
nullptr) {
47090 PyObject*
const dict = PyModule_GetDict(module);
47091 if (dict !=
nullptr) {
47092 PyObject*
const clss = PyDict_GetItemString(dict,
"AssignmentProto");
47093 if (clss !=
nullptr) {
47094 if (PyObject_IsInstance(argv[1], clss)) {
47124 " Possible C/C++ prototypes are:\n" 47125 " operations_research::Assignment::Load(std::string const &)\n" 47126 " operations_research::Assignment::Load(operations_research::AssignmentProto const &)\n");
47132 PyObject *resultobj = 0;
47134 std::string *arg2 = 0 ;
47138 PyObject * obj0 = 0 ;
47139 PyObject * obj1 = 0 ;
47142 if (!PyArg_UnpackTuple(args,
"Assignment_Save", 2, 2, &obj0, &obj1))
SWIG_fail;
47147 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47149 std::string *ptr = (std::string *)0;
47177 PyObject *resultobj = 0;
47182 PyObject * obj0 = 0 ;
47183 PyObject * obj1 = 0 ;
47185 if (!PyArg_UnpackTuple(args,
"Assignment_Save", 2, 2, &obj0, &obj1))
SWIG_fail;
47190 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47193 PyObject*
const pyresult = PyObject_CallMethod(
47194 obj1, const_cast<char*>(
"SerializeToString"),
nullptr);
47195 if (pyresult !=
nullptr) {
47196 char* buffer =
nullptr;
47197 Py_ssize_t length = 0;
47198 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
47199 if (buffer !=
nullptr) {
47200 arg2->ParseFromArray(buffer, length);
47202 Py_DECREF(pyresult);
47215 std::string encoded_protobuf;
47216 arg2->SerializeToString(&encoded_protobuf);
47218 PyObject*
const python_encoded_protobuf =
47219 PyBytes_FromStringAndSize(encoded_protobuf.c_str(),
47220 encoded_protobuf.size());
47226 if (python_encoded_protobuf !=
nullptr) {
47227 PyObject*
const result = PyObject_CallMethod(
47228 obj1, const_cast<char*>(
"ParseFromString"),
47229 const_cast<char*>(
"(O)"), python_encoded_protobuf);
47230 Py_DECREF(python_encoded_protobuf);
47231 if (result !=
nullptr) {
47250 PyObject *argv[3] = {
47256 argc = PyObject_Length(args);
47257 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
47258 argv[ii] = PyTuple_GET_ITEM(args,ii);
47268 PyObject*
const module = PyImport_ImportModule(
"ortools.constraint_solver.assignment_pb2");
47269 if (module !=
nullptr) {
47270 PyObject*
const dict = PyModule_GetDict(module);
47271 if (dict !=
nullptr) {
47272 PyObject*
const clss = PyDict_GetItemString(dict,
"AssignmentProto");
47273 if (clss !=
nullptr) {
47274 if (PyObject_IsInstance(argv[1], clss)) {
47304 " Possible C/C++ prototypes are:\n" 47305 " operations_research::Assignment::Save(std::string const &) const\n" 47306 " operations_research::Assignment::Save(operations_research::AssignmentProto *const) const\n");
47312 PyObject *resultobj = 0;
47317 PyObject * obj0 = 0 ;
47318 PyObject * obj1 = 0 ;
47320 if (!PyArg_UnpackTuple(args,
"Assignment_AddObjective", 2, 2, &obj0, &obj1))
SWIG_fail;
47325 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47331 (arg1)->AddObjective(arg2);
47345 PyObject *resultobj = 0;
47349 PyObject * obj0 = 0 ;
47352 if (!PyArg_UnpackTuple(args,
"Assignment_Objective", 1, 1, &obj0))
SWIG_fail;
47355 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_Objective" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47357 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47374 PyObject *resultobj = 0;
47378 PyObject * obj0 = 0 ;
47381 if (!PyArg_UnpackTuple(args,
"Assignment_HasObjective", 1, 1, &obj0))
SWIG_fail;
47384 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_HasObjective" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47386 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47403 PyObject *resultobj = 0;
47407 PyObject * obj0 = 0 ;
47410 if (!PyArg_UnpackTuple(args,
"Assignment_ObjectiveMin", 1, 1, &obj0))
SWIG_fail;
47413 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_ObjectiveMin" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47415 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47432 PyObject *resultobj = 0;
47436 PyObject * obj0 = 0 ;
47439 if (!PyArg_UnpackTuple(args,
"Assignment_ObjectiveMax", 1, 1, &obj0))
SWIG_fail;
47442 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_ObjectiveMax" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47444 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47461 PyObject *resultobj = 0;
47465 PyObject * obj0 = 0 ;
47468 if (!PyArg_UnpackTuple(args,
"Assignment_ObjectiveValue", 1, 1, &obj0))
SWIG_fail;
47471 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_ObjectiveValue" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47473 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47490 PyObject *resultobj = 0;
47494 PyObject * obj0 = 0 ;
47497 if (!PyArg_UnpackTuple(args,
"Assignment_ObjectiveBound", 1, 1, &obj0))
SWIG_fail;
47500 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_ObjectiveBound" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
47502 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47519 PyObject *resultobj = 0;
47526 PyObject * obj0 = 0 ;
47527 PyObject * obj1 = 0 ;
47529 if (!PyArg_UnpackTuple(args,
"Assignment_SetObjectiveMin", 2, 2, &obj0, &obj1))
SWIG_fail;
47532 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetObjectiveMin" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47534 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47539 arg2 = static_cast< int64_t >(val2);
47542 (arg1)->SetObjectiveMin(arg2);
47556 PyObject *resultobj = 0;
47563 PyObject * obj0 = 0 ;
47564 PyObject * obj1 = 0 ;
47566 if (!PyArg_UnpackTuple(args,
"Assignment_SetObjectiveMax", 2, 2, &obj0, &obj1))
SWIG_fail;
47569 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetObjectiveMax" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47571 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47576 arg2 = static_cast< int64_t >(val2);
47579 (arg1)->SetObjectiveMax(arg2);
47593 PyObject *resultobj = 0;
47600 PyObject * obj0 = 0 ;
47601 PyObject * obj1 = 0 ;
47603 if (!PyArg_UnpackTuple(args,
"Assignment_SetObjectiveValue", 2, 2, &obj0, &obj1))
SWIG_fail;
47606 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetObjectiveValue" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47608 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47613 arg2 = static_cast< int64_t >(val2);
47616 (arg1)->SetObjectiveValue(arg2);
47630 PyObject *resultobj = 0;
47640 PyObject * obj0 = 0 ;
47641 PyObject * obj1 = 0 ;
47642 PyObject * obj2 = 0 ;
47644 if (!PyArg_UnpackTuple(args,
"Assignment_SetObjectiveRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
47647 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetObjectiveRange" "', argument " "1"" of type '" "operations_research::Assignment *""'");
47649 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47654 arg2 = static_cast< int64_t >(val2);
47659 arg3 = static_cast< int64_t >(val3);
47662 (arg1)->SetObjectiveRange(arg2,arg3);
47676 PyObject *resultobj = 0;
47681 PyObject * obj0 = 0 ;
47682 PyObject * obj1 = 0 ;
47685 if (!PyArg_UnpackTuple(args,
"Assignment_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
47690 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47710 PyObject *resultobj = 0;
47712 std::vector< operations_research::IntVar * > *arg2 = 0 ;
47715 std::vector< operations_research::IntVar * > temp2 ;
47716 PyObject * obj0 = 0 ;
47717 PyObject * obj1 = 0 ;
47719 if (!PyArg_UnpackTuple(args,
"Assignment_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
47724 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47726 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
47727 if (!PyErr_Occurred())
47735 (arg1)->Add((std::vector< operations_research::IntVar * >
const &)*arg2);
47749 PyObject *resultobj = 0;
47754 PyObject * obj0 = 0 ;
47755 PyObject * obj1 = 0 ;
47758 if (!PyArg_UnpackTuple(args,
"Assignment_Min", 2, 2, &obj0, &obj1))
SWIG_fail;
47763 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47783 PyObject *resultobj = 0;
47788 PyObject * obj0 = 0 ;
47789 PyObject * obj1 = 0 ;
47792 if (!PyArg_UnpackTuple(args,
"Assignment_Max", 2, 2, &obj0, &obj1))
SWIG_fail;
47797 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47817 PyObject *resultobj = 0;
47822 PyObject * obj0 = 0 ;
47823 PyObject * obj1 = 0 ;
47826 if (!PyArg_UnpackTuple(args,
"Assignment_Value", 2, 2, &obj0, &obj1))
SWIG_fail;
47831 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47851 PyObject *resultobj = 0;
47856 PyObject * obj0 = 0 ;
47857 PyObject * obj1 = 0 ;
47860 if (!PyArg_UnpackTuple(args,
"Assignment_Bound", 2, 2, &obj0, &obj1))
SWIG_fail;
47865 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47885 PyObject *resultobj = 0;
47893 PyObject * obj0 = 0 ;
47894 PyObject * obj1 = 0 ;
47895 PyObject * obj2 = 0 ;
47897 if (!PyArg_UnpackTuple(args,
"Assignment_SetMin", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
47902 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47910 arg3 = static_cast< int64_t >(val3);
47927 PyObject *resultobj = 0;
47935 PyObject * obj0 = 0 ;
47936 PyObject * obj1 = 0 ;
47937 PyObject * obj2 = 0 ;
47939 if (!PyArg_UnpackTuple(args,
"Assignment_SetMax", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
47944 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47952 arg3 = static_cast< int64_t >(val3);
47969 PyObject *resultobj = 0;
47980 PyObject * obj0 = 0 ;
47981 PyObject * obj1 = 0 ;
47982 PyObject * obj2 = 0 ;
47983 PyObject * obj3 = 0 ;
47985 if (!PyArg_UnpackTuple(args,
"Assignment_SetRange", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
47990 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
47998 arg3 = static_cast< int64_t >(val3);
48003 arg4 = static_cast< int64_t >(val4);
48020 PyObject *resultobj = 0;
48028 PyObject * obj0 = 0 ;
48029 PyObject * obj1 = 0 ;
48030 PyObject * obj2 = 0 ;
48032 if (!PyArg_UnpackTuple(args,
"Assignment_SetValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48037 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48045 arg3 = static_cast< int64_t >(val3);
48062 PyObject *resultobj = 0;
48067 PyObject * obj0 = 0 ;
48068 PyObject * obj1 = 0 ;
48071 if (!PyArg_UnpackTuple(args,
"Assignment_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
48076 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48096 PyObject *resultobj = 0;
48098 std::vector< operations_research::IntervalVar * > *arg2 = 0 ;
48101 std::vector< operations_research::IntervalVar * > temp2 ;
48102 PyObject * obj0 = 0 ;
48103 PyObject * obj1 = 0 ;
48105 if (!PyArg_UnpackTuple(args,
"Assignment_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
48110 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48112 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
48113 if (!PyErr_Occurred())
48121 (arg1)->Add((std::vector< operations_research::IntervalVar * >
const &)*arg2);
48135 PyObject *resultobj = 0;
48140 PyObject * obj0 = 0 ;
48141 PyObject * obj1 = 0 ;
48144 if (!PyArg_UnpackTuple(args,
"Assignment_StartMin", 2, 2, &obj0, &obj1))
SWIG_fail;
48147 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_StartMin" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48149 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48169 PyObject *resultobj = 0;
48174 PyObject * obj0 = 0 ;
48175 PyObject * obj1 = 0 ;
48178 if (!PyArg_UnpackTuple(args,
"Assignment_StartMax", 2, 2, &obj0, &obj1))
SWIG_fail;
48181 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_StartMax" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48183 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48203 PyObject *resultobj = 0;
48208 PyObject * obj0 = 0 ;
48209 PyObject * obj1 = 0 ;
48212 if (!PyArg_UnpackTuple(args,
"Assignment_StartValue", 2, 2, &obj0, &obj1))
SWIG_fail;
48215 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_StartValue" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48217 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48237 PyObject *resultobj = 0;
48242 PyObject * obj0 = 0 ;
48243 PyObject * obj1 = 0 ;
48246 if (!PyArg_UnpackTuple(args,
"Assignment_DurationMin", 2, 2, &obj0, &obj1))
SWIG_fail;
48249 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_DurationMin" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48251 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48271 PyObject *resultobj = 0;
48276 PyObject * obj0 = 0 ;
48277 PyObject * obj1 = 0 ;
48280 if (!PyArg_UnpackTuple(args,
"Assignment_DurationMax", 2, 2, &obj0, &obj1))
SWIG_fail;
48283 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_DurationMax" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48285 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48305 PyObject *resultobj = 0;
48310 PyObject * obj0 = 0 ;
48311 PyObject * obj1 = 0 ;
48314 if (!PyArg_UnpackTuple(args,
"Assignment_DurationValue", 2, 2, &obj0, &obj1))
SWIG_fail;
48317 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_DurationValue" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48319 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48339 PyObject *resultobj = 0;
48344 PyObject * obj0 = 0 ;
48345 PyObject * obj1 = 0 ;
48348 if (!PyArg_UnpackTuple(args,
"Assignment_EndMin", 2, 2, &obj0, &obj1))
SWIG_fail;
48353 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48373 PyObject *resultobj = 0;
48378 PyObject * obj0 = 0 ;
48379 PyObject * obj1 = 0 ;
48382 if (!PyArg_UnpackTuple(args,
"Assignment_EndMax", 2, 2, &obj0, &obj1))
SWIG_fail;
48387 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48407 PyObject *resultobj = 0;
48412 PyObject * obj0 = 0 ;
48413 PyObject * obj1 = 0 ;
48416 if (!PyArg_UnpackTuple(args,
"Assignment_EndValue", 2, 2, &obj0, &obj1))
SWIG_fail;
48419 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_EndValue" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48421 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48441 PyObject *resultobj = 0;
48446 PyObject * obj0 = 0 ;
48447 PyObject * obj1 = 0 ;
48450 if (!PyArg_UnpackTuple(args,
"Assignment_PerformedMin", 2, 2, &obj0, &obj1))
SWIG_fail;
48453 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_PerformedMin" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48455 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48475 PyObject *resultobj = 0;
48480 PyObject * obj0 = 0 ;
48481 PyObject * obj1 = 0 ;
48484 if (!PyArg_UnpackTuple(args,
"Assignment_PerformedMax", 2, 2, &obj0, &obj1))
SWIG_fail;
48487 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_PerformedMax" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48489 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48509 PyObject *resultobj = 0;
48514 PyObject * obj0 = 0 ;
48515 PyObject * obj1 = 0 ;
48518 if (!PyArg_UnpackTuple(args,
"Assignment_PerformedValue", 2, 2, &obj0, &obj1))
SWIG_fail;
48521 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_PerformedValue" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
48523 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48543 PyObject *resultobj = 0;
48551 PyObject * obj0 = 0 ;
48552 PyObject * obj1 = 0 ;
48553 PyObject * obj2 = 0 ;
48555 if (!PyArg_UnpackTuple(args,
"Assignment_SetStartMin", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48560 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48568 arg3 = static_cast< int64_t >(val3);
48585 PyObject *resultobj = 0;
48593 PyObject * obj0 = 0 ;
48594 PyObject * obj1 = 0 ;
48595 PyObject * obj2 = 0 ;
48597 if (!PyArg_UnpackTuple(args,
"Assignment_SetStartMax", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48602 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48610 arg3 = static_cast< int64_t >(val3);
48627 PyObject *resultobj = 0;
48638 PyObject * obj0 = 0 ;
48639 PyObject * obj1 = 0 ;
48640 PyObject * obj2 = 0 ;
48641 PyObject * obj3 = 0 ;
48643 if (!PyArg_UnpackTuple(args,
"Assignment_SetStartRange", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
48648 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48656 arg3 = static_cast< int64_t >(val3);
48661 arg4 = static_cast< int64_t >(val4);
48678 PyObject *resultobj = 0;
48686 PyObject * obj0 = 0 ;
48687 PyObject * obj1 = 0 ;
48688 PyObject * obj2 = 0 ;
48690 if (!PyArg_UnpackTuple(args,
"Assignment_SetStartValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48695 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48703 arg3 = static_cast< int64_t >(val3);
48720 PyObject *resultobj = 0;
48728 PyObject * obj0 = 0 ;
48729 PyObject * obj1 = 0 ;
48730 PyObject * obj2 = 0 ;
48732 if (!PyArg_UnpackTuple(args,
"Assignment_SetDurationMin", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48735 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetDurationMin" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48737 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48745 arg3 = static_cast< int64_t >(val3);
48762 PyObject *resultobj = 0;
48770 PyObject * obj0 = 0 ;
48771 PyObject * obj1 = 0 ;
48772 PyObject * obj2 = 0 ;
48774 if (!PyArg_UnpackTuple(args,
"Assignment_SetDurationMax", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48777 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetDurationMax" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48779 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48787 arg3 = static_cast< int64_t >(val3);
48804 PyObject *resultobj = 0;
48815 PyObject * obj0 = 0 ;
48816 PyObject * obj1 = 0 ;
48817 PyObject * obj2 = 0 ;
48818 PyObject * obj3 = 0 ;
48820 if (!PyArg_UnpackTuple(args,
"Assignment_SetDurationRange", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
48823 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetDurationRange" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48825 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48833 arg3 = static_cast< int64_t >(val3);
48838 arg4 = static_cast< int64_t >(val4);
48855 PyObject *resultobj = 0;
48863 PyObject * obj0 = 0 ;
48864 PyObject * obj1 = 0 ;
48865 PyObject * obj2 = 0 ;
48867 if (!PyArg_UnpackTuple(args,
"Assignment_SetDurationValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48870 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetDurationValue" "', argument " "1"" of type '" "operations_research::Assignment *""'");
48872 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48880 arg3 = static_cast< int64_t >(val3);
48897 PyObject *resultobj = 0;
48905 PyObject * obj0 = 0 ;
48906 PyObject * obj1 = 0 ;
48907 PyObject * obj2 = 0 ;
48909 if (!PyArg_UnpackTuple(args,
"Assignment_SetEndMin", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48914 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48922 arg3 = static_cast< int64_t >(val3);
48939 PyObject *resultobj = 0;
48947 PyObject * obj0 = 0 ;
48948 PyObject * obj1 = 0 ;
48949 PyObject * obj2 = 0 ;
48951 if (!PyArg_UnpackTuple(args,
"Assignment_SetEndMax", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
48956 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
48964 arg3 = static_cast< int64_t >(val3);
48981 PyObject *resultobj = 0;
48992 PyObject * obj0 = 0 ;
48993 PyObject * obj1 = 0 ;
48994 PyObject * obj2 = 0 ;
48995 PyObject * obj3 = 0 ;
48997 if (!PyArg_UnpackTuple(args,
"Assignment_SetEndRange", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
49002 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49010 arg3 = static_cast< int64_t >(val3);
49015 arg4 = static_cast< int64_t >(val4);
49032 PyObject *resultobj = 0;
49040 PyObject * obj0 = 0 ;
49041 PyObject * obj1 = 0 ;
49042 PyObject * obj2 = 0 ;
49044 if (!PyArg_UnpackTuple(args,
"Assignment_SetEndValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
49049 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49057 arg3 = static_cast< int64_t >(val3);
49074 PyObject *resultobj = 0;
49082 PyObject * obj0 = 0 ;
49083 PyObject * obj1 = 0 ;
49084 PyObject * obj2 = 0 ;
49086 if (!PyArg_UnpackTuple(args,
"Assignment_SetPerformedMin", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
49089 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetPerformedMin" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49091 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49099 arg3 = static_cast< int64_t >(val3);
49116 PyObject *resultobj = 0;
49124 PyObject * obj0 = 0 ;
49125 PyObject * obj1 = 0 ;
49126 PyObject * obj2 = 0 ;
49128 if (!PyArg_UnpackTuple(args,
"Assignment_SetPerformedMax", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
49131 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetPerformedMax" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49133 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49141 arg3 = static_cast< int64_t >(val3);
49158 PyObject *resultobj = 0;
49169 PyObject * obj0 = 0 ;
49170 PyObject * obj1 = 0 ;
49171 PyObject * obj2 = 0 ;
49172 PyObject * obj3 = 0 ;
49174 if (!PyArg_UnpackTuple(args,
"Assignment_SetPerformedRange", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
49177 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetPerformedRange" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49179 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49187 arg3 = static_cast< int64_t >(val3);
49192 arg4 = static_cast< int64_t >(val4);
49209 PyObject *resultobj = 0;
49217 PyObject * obj0 = 0 ;
49218 PyObject * obj1 = 0 ;
49219 PyObject * obj2 = 0 ;
49221 if (!PyArg_UnpackTuple(args,
"Assignment_SetPerformedValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
49224 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetPerformedValue" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49226 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49234 arg3 = static_cast< int64_t >(val3);
49251 PyObject *resultobj = 0;
49256 PyObject * obj0 = 0 ;
49257 PyObject * obj1 = 0 ;
49260 if (!PyArg_UnpackTuple(args,
"Assignment_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
49265 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49285 PyObject *resultobj = 0;
49287 std::vector< operations_research::SequenceVar * > *arg2 = 0 ;
49290 std::vector< operations_research::SequenceVar * > temp2 ;
49291 PyObject * obj0 = 0 ;
49292 PyObject * obj1 = 0 ;
49294 if (!PyArg_UnpackTuple(args,
"Assignment_Add", 2, 2, &obj0, &obj1))
SWIG_fail;
49299 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49301 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::SequenceVar*>)) {
49302 if (!PyErr_Occurred())
49310 (arg1)->Add((std::vector< operations_research::SequenceVar * >
const &)*arg2);
49325 PyObject *argv[3] = {
49331 argc = PyObject_Length(args);
49332 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
49333 argv[ii] = PyTuple_GET_ITEM(args,ii);
49343 if (_v == 0) PyErr_Clear();
49357 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
49360 const bool is_tuple = PyTuple_Check(argv[1]);
49361 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
49364 :PyList_GetItem(argv[1], i))) {
49383 if (_v == 0) PyErr_Clear();
49397 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
49400 const bool is_tuple = PyTuple_Check(argv[1]);
49401 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
49404 :PyList_GetItem(argv[1], i))) {
49423 if (_v == 0) PyErr_Clear();
49437 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
49440 const bool is_tuple = PyTuple_Check(argv[1]);
49441 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
49444 :PyList_GetItem(argv[1], i))) {
49458 " Possible C/C++ prototypes are:\n" 49459 " operations_research::Assignment::Add(operations_research::IntVar *const)\n" 49460 " operations_research::Assignment::Add(std::vector< operations_research::IntVar * > const &)\n" 49461 " operations_research::Assignment::Add(operations_research::IntervalVar *const)\n" 49462 " operations_research::Assignment::Add(std::vector< operations_research::IntervalVar * > const &)\n" 49463 " operations_research::Assignment::Add(operations_research::SequenceVar *const)\n" 49464 " operations_research::Assignment::Add(std::vector< operations_research::SequenceVar * > const &)\n");
49470 PyObject *resultobj = 0;
49475 PyObject * obj0 = 0 ;
49476 PyObject * obj1 = 0 ;
49477 std::vector< int > *result = 0 ;
49479 if (!PyArg_UnpackTuple(args,
"Assignment_ForwardSequence", 2, 2, &obj0, &obj1))
SWIG_fail;
49482 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_ForwardSequence" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
49484 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49497 resultobj = vector_output_helper(result, &PyInt_FromLong);
49506 PyObject *resultobj = 0;
49511 PyObject * obj0 = 0 ;
49512 PyObject * obj1 = 0 ;
49513 std::vector< int > *result = 0 ;
49515 if (!PyArg_UnpackTuple(args,
"Assignment_BackwardSequence", 2, 2, &obj0, &obj1))
SWIG_fail;
49518 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_BackwardSequence" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
49520 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49533 resultobj = vector_output_helper(result, &PyInt_FromLong);
49542 PyObject *resultobj = 0;
49547 PyObject * obj0 = 0 ;
49548 PyObject * obj1 = 0 ;
49549 std::vector< int > *result = 0 ;
49551 if (!PyArg_UnpackTuple(args,
"Assignment_Unperformed", 2, 2, &obj0, &obj1))
SWIG_fail;
49554 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_Unperformed" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
49556 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49569 resultobj = vector_output_helper(result, &PyInt_FromLong);
49578 PyObject *resultobj = 0;
49581 std::vector< int > *arg3 = 0 ;
49582 std::vector< int > *arg4 = 0 ;
49583 std::vector< int > *arg5 = 0 ;
49586 std::vector< int > temp3 ;
49587 std::vector< int > temp4 ;
49588 std::vector< int > temp5 ;
49589 PyObject * obj0 = 0 ;
49590 PyObject * obj1 = 0 ;
49591 PyObject * obj2 = 0 ;
49592 PyObject * obj3 = 0 ;
49593 PyObject * obj4 = 0 ;
49595 if (!PyArg_UnpackTuple(args,
"Assignment_SetSequence", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
49600 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49605 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
49606 if (!PyErr_Occurred())
49613 if (!vector_input_helper(obj3, &temp4, PyObjAs<int>)) {
49614 if (!PyErr_Occurred())
49621 if (!vector_input_helper(obj4, &temp5, PyObjAs<int>)) {
49622 if (!PyErr_Occurred())
49630 (arg1)->SetSequence((
operations_research::SequenceVar const *)arg2,(std::vector< int >
const &)*arg3,(std::vector< int >
const &)*arg4,(std::vector< int >
const &)*arg5);
49644 PyObject *resultobj = 0;
49647 std::vector< int > *arg3 = 0 ;
49650 std::vector< int > temp3 ;
49651 PyObject * obj0 = 0 ;
49652 PyObject * obj1 = 0 ;
49653 PyObject * obj2 = 0 ;
49655 if (!PyArg_UnpackTuple(args,
"Assignment_SetForwardSequence", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
49658 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetForwardSequence" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49660 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49665 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
49666 if (!PyErr_Occurred())
49688 PyObject *resultobj = 0;
49691 std::vector< int > *arg3 = 0 ;
49694 std::vector< int > temp3 ;
49695 PyObject * obj0 = 0 ;
49696 PyObject * obj1 = 0 ;
49697 PyObject * obj2 = 0 ;
49699 if (!PyArg_UnpackTuple(args,
"Assignment_SetBackwardSequence", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
49702 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetBackwardSequence" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49704 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49709 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
49710 if (!PyErr_Occurred())
49732 PyObject *resultobj = 0;
49735 std::vector< int > *arg3 = 0 ;
49738 std::vector< int > temp3 ;
49739 PyObject * obj0 = 0 ;
49740 PyObject * obj1 = 0 ;
49741 PyObject * obj2 = 0 ;
49743 if (!PyArg_UnpackTuple(args,
"Assignment_SetUnperformed", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
49746 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SetUnperformed" "', argument " "1"" of type '" "operations_research::Assignment *""'");
49748 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49753 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
49754 if (!PyErr_Occurred())
49776 PyObject *resultobj = 0;
49781 PyObject * obj0 = 0 ;
49782 PyObject * obj1 = 0 ;
49784 if (!PyArg_UnpackTuple(args,
"Assignment_Activate", 2, 2, &obj0, &obj1))
SWIG_fail;
49789 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49809 PyObject *resultobj = 0;
49814 PyObject * obj0 = 0 ;
49815 PyObject * obj1 = 0 ;
49817 if (!PyArg_UnpackTuple(args,
"Assignment_Deactivate", 2, 2, &obj0, &obj1))
SWIG_fail;
49822 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49842 PyObject *resultobj = 0;
49847 PyObject * obj0 = 0 ;
49848 PyObject * obj1 = 0 ;
49851 if (!PyArg_UnpackTuple(args,
"Assignment_Activated", 2, 2, &obj0, &obj1))
SWIG_fail;
49854 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_Activated" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
49856 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49876 PyObject *resultobj = 0;
49881 PyObject * obj0 = 0 ;
49882 PyObject * obj1 = 0 ;
49884 if (!PyArg_UnpackTuple(args,
"Assignment_Activate", 2, 2, &obj0, &obj1))
SWIG_fail;
49889 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49909 PyObject *resultobj = 0;
49914 PyObject * obj0 = 0 ;
49915 PyObject * obj1 = 0 ;
49917 if (!PyArg_UnpackTuple(args,
"Assignment_Deactivate", 2, 2, &obj0, &obj1))
SWIG_fail;
49922 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49942 PyObject *resultobj = 0;
49947 PyObject * obj0 = 0 ;
49948 PyObject * obj1 = 0 ;
49951 if (!PyArg_UnpackTuple(args,
"Assignment_Activated", 2, 2, &obj0, &obj1))
SWIG_fail;
49954 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_Activated" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
49956 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
49976 PyObject *resultobj = 0;
49981 PyObject * obj0 = 0 ;
49982 PyObject * obj1 = 0 ;
49984 if (!PyArg_UnpackTuple(args,
"Assignment_Activate", 2, 2, &obj0, &obj1))
SWIG_fail;
49989 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50010 PyObject *argv[3] = {
50016 argc = PyObject_Length(args);
50017 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
50018 argv[ii] = PyTuple_GET_ITEM(args,ii);
50028 if (_v == 0) PyErr_Clear();
50043 if (_v == 0) PyErr_Clear();
50058 if (_v == 0) PyErr_Clear();
50068 " Possible C/C++ prototypes are:\n" 50069 " operations_research::Assignment::Activate(operations_research::IntVar const *const)\n" 50070 " operations_research::Assignment::Activate(operations_research::IntervalVar const *const)\n" 50071 " operations_research::Assignment::Activate(operations_research::SequenceVar const *const)\n");
50077 PyObject *resultobj = 0;
50082 PyObject * obj0 = 0 ;
50083 PyObject * obj1 = 0 ;
50085 if (!PyArg_UnpackTuple(args,
"Assignment_Deactivate", 2, 2, &obj0, &obj1))
SWIG_fail;
50090 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50111 PyObject *argv[3] = {
50117 argc = PyObject_Length(args);
50118 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
50119 argv[ii] = PyTuple_GET_ITEM(args,ii);
50129 if (_v == 0) PyErr_Clear();
50144 if (_v == 0) PyErr_Clear();
50159 if (_v == 0) PyErr_Clear();
50169 " Possible C/C++ prototypes are:\n" 50170 " operations_research::Assignment::Deactivate(operations_research::IntVar const *const)\n" 50171 " operations_research::Assignment::Deactivate(operations_research::IntervalVar const *const)\n" 50172 " operations_research::Assignment::Deactivate(operations_research::SequenceVar const *const)\n");
50178 PyObject *resultobj = 0;
50183 PyObject * obj0 = 0 ;
50184 PyObject * obj1 = 0 ;
50187 if (!PyArg_UnpackTuple(args,
"Assignment_Activated", 2, 2, &obj0, &obj1))
SWIG_fail;
50190 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_Activated" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50192 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50213 PyObject *argv[3] = {
50219 argc = PyObject_Length(args);
50220 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
50221 argv[ii] = PyTuple_GET_ITEM(args,ii);
50231 if (_v == 0) PyErr_Clear();
50246 if (_v == 0) PyErr_Clear();
50261 if (_v == 0) PyErr_Clear();
50271 " Possible C/C++ prototypes are:\n" 50272 " operations_research::Assignment::Activated(operations_research::IntVar const *const) const\n" 50273 " operations_research::Assignment::Activated(operations_research::IntervalVar const *const) const\n" 50274 " operations_research::Assignment::Activated(operations_research::SequenceVar const *const) const\n");
50280 PyObject *resultobj = 0;
50284 PyObject * obj0 = 0 ;
50285 std::string result;
50287 if (!PyArg_UnpackTuple(args,
"Assignment_DebugString", 1, 1, &obj0))
SWIG_fail;
50290 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_DebugString" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50292 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50309 PyObject *resultobj = 0;
50313 PyObject * obj0 = 0 ;
50316 if (!PyArg_UnpackTuple(args,
"Assignment_IntVarContainer", 1, 1, &obj0))
SWIG_fail;
50319 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_IntVarContainer" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50321 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50338 PyObject *resultobj = 0;
50342 PyObject * obj0 = 0 ;
50345 if (!PyArg_UnpackTuple(args,
"Assignment_MutableIntVarContainer", 1, 1, &obj0))
SWIG_fail;
50348 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_MutableIntVarContainer" "', argument " "1"" of type '" "operations_research::Assignment *""'");
50350 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50367 PyObject *resultobj = 0;
50371 PyObject * obj0 = 0 ;
50374 if (!PyArg_UnpackTuple(args,
"Assignment_IntervalVarContainer", 1, 1, &obj0))
SWIG_fail;
50377 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_IntervalVarContainer" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50379 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50396 PyObject *resultobj = 0;
50400 PyObject * obj0 = 0 ;
50403 if (!PyArg_UnpackTuple(args,
"Assignment_MutableIntervalVarContainer", 1, 1, &obj0))
SWIG_fail;
50406 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_MutableIntervalVarContainer" "', argument " "1"" of type '" "operations_research::Assignment *""'");
50408 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50425 PyObject *resultobj = 0;
50429 PyObject * obj0 = 0 ;
50432 if (!PyArg_UnpackTuple(args,
"Assignment_SequenceVarContainer", 1, 1, &obj0))
SWIG_fail;
50435 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_SequenceVarContainer" "', argument " "1"" of type '" "operations_research::Assignment const *""'");
50437 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50454 PyObject *resultobj = 0;
50458 PyObject * obj0 = 0 ;
50461 if (!PyArg_UnpackTuple(args,
"Assignment_MutableSequenceVarContainer", 1, 1, &obj0))
SWIG_fail;
50464 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Assignment_MutableSequenceVarContainer" "', argument " "1"" of type '" "operations_research::Assignment *""'");
50466 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50483 PyObject *resultobj = 0;
50490 PyObject * obj0 = 0 ;
50491 PyObject * obj1 = 0 ;
50494 if (!PyArg_UnpackTuple(args,
"Assignment___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
50499 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50505 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Assignment___eq__" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
50507 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
50520 Py_INCREF(Py_NotImplemented);
50521 return Py_NotImplemented;
50526 PyObject *resultobj = 0;
50533 PyObject * obj0 = 0 ;
50534 PyObject * obj1 = 0 ;
50537 if (!PyArg_UnpackTuple(args,
"Assignment___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
50542 arg1 = reinterpret_cast< operations_research::Assignment * >(argp1);
50548 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "Assignment___ne__" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
50550 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
50563 Py_INCREF(Py_NotImplemented);
50564 return Py_NotImplemented;
50576 PyObject *resultobj = 0;
50577 std::ostream *arg1 = 0 ;
50583 PyObject * obj0 = 0 ;
50584 PyObject * obj1 = 0 ;
50585 std::ostream *result = 0 ;
50587 if (!PyArg_UnpackTuple(args,
"__lshift__", 2, 2, &obj0, &obj1))
SWIG_fail;
50595 arg1 = reinterpret_cast< std::ostream * >(argp1);
50601 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "__lshift__" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
50603 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
50616 Py_INCREF(Py_NotImplemented);
50617 return Py_NotImplemented;
50623 PyObject *argv[3] = {
50629 argc = PyObject_Length(args);
50630 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
50631 argv[ii] = PyTuple_GET_ITEM(args,ii);
50676 Py_INCREF(Py_NotImplemented);
50677 return Py_NotImplemented;
50682 PyObject *resultobj = 0;
50684 std::vector< int64_t > *arg2 = 0 ;
50685 std::vector< int64_t > *arg3 = 0 ;
50688 std::vector< int64_t > temp2 ;
50689 std::vector< int64_t > temp3 ;
50690 PyObject * obj0 = 0 ;
50691 PyObject * obj1 = 0 ;
50692 PyObject * obj2 = 0 ;
50694 if (!PyArg_UnpackTuple(args,
"Pack_AddWeightedSumLessOrEqualConstantDimension", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
50697 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Pack_AddWeightedSumLessOrEqualConstantDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
50699 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
50701 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
50702 if (!PyErr_Occurred())
50709 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
50710 if (!PyErr_Occurred())
50718 (arg1)->AddWeightedSumLessOrEqualConstantDimension((std::vector< int64_t >
const &)*arg2,(std::vector< int64_t >
const &)*arg3);
50732 PyObject *resultobj = 0;
50735 std::vector< int64_t > *arg3 = 0 ;
50738 std::vector< int64_t > temp3 ;
50739 PyObject * obj0 = 0 ;
50740 PyObject * obj1 = 0 ;
50741 PyObject * obj2 = 0 ;
50743 if (!PyArg_UnpackTuple(args,
"Pack_AddWeightedSumLessOrEqualConstantDimension", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
50746 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Pack_AddWeightedSumLessOrEqualConstantDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
50748 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
50752 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
50756 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
50757 if (!PyErr_Occurred())
50765 (arg1)->AddWeightedSumLessOrEqualConstantDimension(arg2,(std::vector< int64_t >
const &)*arg3);
50779 PyObject *resultobj = 0;
50782 std::vector< int64_t > *arg3 = 0 ;
50785 std::vector< int64_t > temp3 ;
50786 PyObject * obj0 = 0 ;
50787 PyObject * obj1 = 0 ;
50788 PyObject * obj2 = 0 ;
50790 if (!PyArg_UnpackTuple(args,
"Pack_AddWeightedSumLessOrEqualConstantDimension", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
50793 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Pack_AddWeightedSumLessOrEqualConstantDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
50795 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
50798 arg2 = [
input](int64_t i, int64_t j) {
50799 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
50803 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
50804 if (!PyErr_Occurred())
50812 (arg1)->AddWeightedSumLessOrEqualConstantDimension(arg2,(std::vector< int64_t >
const &)*arg3);
50827 PyObject *argv[4] = {
50833 argc = PyObject_Length(args);
50834 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
50835 argv[ii] = PyTuple_GET_ITEM(args,ii);
50844 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
50847 const bool is_tuple = PyTuple_Check(argv[1]);
50848 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
50850 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
50851 :PyList_GetItem(argv[1], i))) {
50859 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
50862 const bool is_tuple = PyTuple_Check(argv[2]);
50863 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
50865 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
50866 :PyList_GetItem(argv[2], i))) {
50885 _v = PyCallable_Check(argv[1]);
50889 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
50892 const bool is_tuple = PyTuple_Check(argv[2]);
50893 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
50895 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
50896 :PyList_GetItem(argv[2], i))) {
50915 _v = PyCallable_Check(argv[1]);
50919 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
50922 const bool is_tuple = PyTuple_Check(argv[2]);
50923 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
50925 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
50926 :PyList_GetItem(argv[2], i))) {
50941 " Possible C/C++ prototypes are:\n" 50942 " operations_research::Pack::AddWeightedSumLessOrEqualConstantDimension(std::vector< int64_t > const &,std::vector< int64_t > const &)\n" 50943 " operations_research::Pack::AddWeightedSumLessOrEqualConstantDimension(operations_research::Solver::IndexEvaluator1,std::vector< int64_t > const &)\n" 50944 " operations_research::Pack::AddWeightedSumLessOrEqualConstantDimension(operations_research::Solver::IndexEvaluator2,std::vector< int64_t > const &)\n");
50950 PyObject *resultobj = 0;
50952 std::vector< int64_t > *arg2 = 0 ;
50953 std::vector< operations_research::IntVar * > *arg3 = 0 ;
50956 std::vector< int64_t > temp2 ;
50957 std::vector< operations_research::IntVar * > temp3 ;
50958 PyObject * obj0 = 0 ;
50959 PyObject * obj1 = 0 ;
50960 PyObject * obj2 = 0 ;
50962 if (!PyArg_UnpackTuple(args,
"Pack_AddWeightedSumEqualVarDimension", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
50965 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Pack_AddWeightedSumEqualVarDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
50967 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
50969 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
50970 if (!PyErr_Occurred())
50977 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
50978 if (!PyErr_Occurred())
50986 (arg1)->AddWeightedSumEqualVarDimension((std::vector< int64_t >
const &)*arg2,(std::vector< operations_research::IntVar * >
const &)*arg3);
51000 PyObject *resultobj = 0;
51003 std::vector< operations_research::IntVar * > *arg3 = 0 ;
51006 std::vector< operations_research::IntVar * > temp3 ;
51007 PyObject * obj0 = 0 ;
51008 PyObject * obj1 = 0 ;
51009 PyObject * obj2 = 0 ;
51011 if (!PyArg_UnpackTuple(args,
"Pack_AddWeightedSumEqualVarDimension", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
51014 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Pack_AddWeightedSumEqualVarDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
51016 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
51019 arg2 = [
input](int64_t i, int64_t j) {
51020 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
51024 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
51025 if (!PyErr_Occurred())
51033 (arg1)->AddWeightedSumEqualVarDimension(arg2,(std::vector< operations_research::IntVar * >
const &)*arg3);
51048 PyObject *argv[4] = {
51054 argc = PyObject_Length(args);
51055 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
51056 argv[ii] = PyTuple_GET_ITEM(args,ii);
51065 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
51068 const bool is_tuple = PyTuple_Check(argv[1]);
51069 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
51071 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
51072 :PyList_GetItem(argv[1], i))) {
51080 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
51083 const bool is_tuple = PyTuple_Check(argv[2]);
51084 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
51087 :PyList_GetItem(argv[2], i))) {
51106 _v = PyCallable_Check(argv[1]);
51110 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
51113 const bool is_tuple = PyTuple_Check(argv[2]);
51114 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
51117 :PyList_GetItem(argv[2], i))) {
51132 " Possible C/C++ prototypes are:\n" 51133 " operations_research::Pack::AddWeightedSumEqualVarDimension(std::vector< int64_t > const &,std::vector< operations_research::IntVar * > const &)\n" 51134 " operations_research::Pack::AddWeightedSumEqualVarDimension(operations_research::Solver::IndexEvaluator2,std::vector< operations_research::IntVar * > const &)\n");
51140 PyObject *resultobj = 0;
51142 std::vector< operations_research::IntVar * > *arg2 = 0 ;
51143 std::vector< int64_t > *arg3 = 0 ;
51146 std::vector< operations_research::IntVar * > temp2 ;
51147 std::vector< int64_t > temp3 ;
51148 PyObject * obj0 = 0 ;
51149 PyObject * obj1 = 0 ;
51150 PyObject * obj2 = 0 ;
51152 if (!PyArg_UnpackTuple(args,
"Pack_AddSumVariableWeightsLessOrEqualConstantDimension", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
51155 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Pack_AddSumVariableWeightsLessOrEqualConstantDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
51157 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
51159 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
51160 if (!PyErr_Occurred())
51167 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
51168 if (!PyErr_Occurred())
51176 (arg1)->AddSumVariableWeightsLessOrEqualConstantDimension((std::vector< operations_research::IntVar * >
const &)*arg2,(std::vector< int64_t >
const &)*arg3);
51190 PyObject *resultobj = 0;
51192 std::vector< int64_t > *arg2 = 0 ;
51196 std::vector< int64_t > temp2 ;
51197 PyObject * obj0 = 0 ;
51198 PyObject * obj1 = 0 ;
51199 PyObject * obj2 = 0 ;
51201 if (!PyArg_UnpackTuple(args,
"Pack_AddWeightedSumOfAssignedDimension", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
51204 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Pack_AddWeightedSumOfAssignedDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
51206 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
51208 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
51209 if (!PyErr_Occurred())
51220 (arg1)->AddWeightedSumOfAssignedDimension((std::vector< int64_t >
const &)*arg2,arg3);
51234 PyObject *resultobj = 0;
51239 PyObject * obj0 = 0 ;
51240 PyObject * obj1 = 0 ;
51242 if (!PyArg_UnpackTuple(args,
"Pack_AddCountUsedBinDimension", 2, 2, &obj0, &obj1))
SWIG_fail;
51247 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
51253 (arg1)->AddCountUsedBinDimension(arg2);
51267 PyObject *resultobj = 0;
51272 PyObject * obj0 = 0 ;
51273 PyObject * obj1 = 0 ;
51275 if (!PyArg_UnpackTuple(args,
"Pack_AddCountAssignedItemsDimension", 2, 2, &obj0, &obj1))
SWIG_fail;
51278 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "Pack_AddCountAssignedItemsDimension" "', argument " "1"" of type '" "operations_research::Pack *""'");
51280 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
51286 (arg1)->AddCountAssignedItemsDimension(arg2);
51300 PyObject *resultobj = 0;
51304 PyObject * obj0 = 0 ;
51306 if (!PyArg_UnpackTuple(args,
"Pack_Post", 1, 1, &obj0))
SWIG_fail;
51311 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
51328 PyObject *resultobj = 0;
51332 PyObject * obj0 = 0 ;
51334 if (!PyArg_UnpackTuple(args,
"Pack_InitialPropagateWrapper", 1, 1, &obj0))
SWIG_fail;
51339 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
51342 (arg1)->InitialPropagate();
51356 PyObject *resultobj = 0;
51360 PyObject * obj0 = 0 ;
51361 std::string result;
51363 if (!PyArg_UnpackTuple(args,
"Pack_DebugString", 1, 1, &obj0))
SWIG_fail;
51368 arg1 = reinterpret_cast< operations_research::Pack * >(argp1);
51392 PyObject *resultobj = 0;
51396 PyObject * obj0 = 0 ;
51399 if (!PyArg_UnpackTuple(args,
"DisjunctiveConstraint_SequenceVar", 1, 1, &obj0))
SWIG_fail;
51402 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DisjunctiveConstraint_SequenceVar" "', argument " "1"" of type '" "operations_research::DisjunctiveConstraint *""'");
51404 arg1 = reinterpret_cast< operations_research::DisjunctiveConstraint * >(argp1);
51421 PyObject *resultobj = 0;
51426 PyObject * obj0 = 0 ;
51427 PyObject * obj1 = 0 ;
51429 if (!PyArg_UnpackTuple(args,
"DisjunctiveConstraint_SetTransitionTime", 2, 2, &obj0, &obj1))
SWIG_fail;
51432 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DisjunctiveConstraint_SetTransitionTime" "', argument " "1"" of type '" "operations_research::DisjunctiveConstraint *""'");
51434 arg1 = reinterpret_cast< operations_research::DisjunctiveConstraint * >(argp1);
51437 arg2 = [
input](int64_t i, int64_t j) {
51438 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
51443 (arg1)->SetTransitionTime(arg2);
51457 PyObject *resultobj = 0;
51467 PyObject * obj0 = 0 ;
51468 PyObject * obj1 = 0 ;
51469 PyObject * obj2 = 0 ;
51472 if (!PyArg_UnpackTuple(args,
"DisjunctiveConstraint_TransitionTime", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
51475 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "DisjunctiveConstraint_TransitionTime" "', argument " "1"" of type '" "operations_research::DisjunctiveConstraint *""'");
51477 arg1 = reinterpret_cast< operations_research::DisjunctiveConstraint * >(argp1);
51482 arg2 = static_cast< int >(val2);
51487 arg3 = static_cast< int >(val3);
51490 result = (int64_t)(arg1)->TransitionTime(arg2,arg3);
51511 PyObject *resultobj = 0;
51516 PyObject * obj0 = 0 ;
51519 if (!PyArg_UnpackTuple(args,
"new_RevInteger", 1, 1, &obj0))
SWIG_fail;
51524 temp1 = static_cast< long >(val1);
51542 PyObject *resultobj = 0;
51546 PyObject * obj0 = 0 ;
51549 if (!PyArg_UnpackTuple(args,
"RevInteger_Value", 1, 1, &obj0))
SWIG_fail;
51552 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RevInteger_Value" "', argument " "1"" of type '" "operations_research::Rev< int64_t > const *""'");
51571 PyObject *resultobj = 0;
51582 PyObject * obj0 = 0 ;
51583 PyObject * obj1 = 0 ;
51584 PyObject * obj2 = 0 ;
51586 if (!PyArg_UnpackTuple(args,
"RevInteger_SetValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
51596 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
51601 temp3 = static_cast< long >(val3);
51605 (arg1)->SetValue(arg2,(
long const &)*arg3);
51619 PyObject *resultobj = 0;
51623 PyObject * obj0 = 0 ;
51625 if (!PyArg_UnpackTuple(args,
"delete_RevInteger", 1, 1, &obj0))
SWIG_fail;
51658 PyObject *resultobj = 0;
51663 PyObject * obj0 = 0 ;
51666 if (!PyArg_UnpackTuple(args,
"new_NumericalRevInteger", 1, 1, &obj0))
SWIG_fail;
51671 temp1 = static_cast< long >(val1);
51689 PyObject *resultobj = 0;
51700 PyObject * obj0 = 0 ;
51701 PyObject * obj1 = 0 ;
51702 PyObject * obj2 = 0 ;
51704 if (!PyArg_UnpackTuple(args,
"NumericalRevInteger_Add", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
51707 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "NumericalRevInteger_Add" "', argument " "1"" of type '" "operations_research::NumericalRev< int64_t > *""'");
51714 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
51719 temp3 = static_cast< long >(val3);
51723 (arg1)->Add(arg2,(
long const &)*arg3);
51737 PyObject *resultobj = 0;
51744 PyObject * obj0 = 0 ;
51745 PyObject * obj1 = 0 ;
51747 if (!PyArg_UnpackTuple(args,
"NumericalRevInteger_Incr", 2, 2, &obj0, &obj1))
SWIG_fail;
51750 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "NumericalRevInteger_Incr" "', argument " "1"" of type '" "operations_research::NumericalRev< int64_t > *""'");
51755 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "NumericalRevInteger_Incr" "', argument " "2"" of type '" "operations_research::Solver *const""'");
51757 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
51760 (arg1)->Incr(arg2);
51774 PyObject *resultobj = 0;
51781 PyObject * obj0 = 0 ;
51782 PyObject * obj1 = 0 ;
51784 if (!PyArg_UnpackTuple(args,
"NumericalRevInteger_Decr", 2, 2, &obj0, &obj1))
SWIG_fail;
51787 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "NumericalRevInteger_Decr" "', argument " "1"" of type '" "operations_research::NumericalRev< int64_t > *""'");
51792 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "NumericalRevInteger_Decr" "', argument " "2"" of type '" "operations_research::Solver *const""'");
51794 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
51797 (arg1)->Decr(arg2);
51811 PyObject *resultobj = 0;
51815 PyObject * obj0 = 0 ;
51817 if (!PyArg_UnpackTuple(args,
"delete_NumericalRevInteger", 1, 1, &obj0))
SWIG_fail;
51820 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_NumericalRevInteger" "', argument " "1"" of type '" "operations_research::NumericalRev< int64_t > *""'");
51850 PyObject *resultobj = 0;
51855 PyObject * obj0 = 0 ;
51858 if (!PyArg_UnpackTuple(args,
"new_RevBool", 1, 1, &obj0))
SWIG_fail;
51863 temp1 = static_cast< bool >(val1);
51881 PyObject *resultobj = 0;
51885 PyObject * obj0 = 0 ;
51888 if (!PyArg_UnpackTuple(args,
"RevBool_Value", 1, 1, &obj0))
SWIG_fail;
51910 PyObject *resultobj = 0;
51921 PyObject * obj0 = 0 ;
51922 PyObject * obj1 = 0 ;
51923 PyObject * obj2 = 0 ;
51925 if (!PyArg_UnpackTuple(args,
"RevBool_SetValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
51935 arg2 = reinterpret_cast< operations_research::Solver * >(argp2);
51940 temp3 = static_cast< bool >(val3);
51944 (arg1)->SetValue(arg2,(
bool const &)*arg3);
51958 PyObject *resultobj = 0;
51962 PyObject * obj0 = 0 ;
51964 if (!PyArg_UnpackTuple(args,
"delete_RevBool", 1, 1, &obj0))
SWIG_fail;
51997 PyObject *resultobj = 0;
52002 PyObject * obj0 = 0 ;
52003 PyObject * obj1 = 0 ;
52006 if (!PyArg_UnpackTuple(args,
"IntVarContainer_Contains", 2, 2, &obj0, &obj1))
SWIG_fail;
52009 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarContainer_Contains" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > const *""'");
52031 PyObject *resultobj = 0;
52038 PyObject * obj0 = 0 ;
52039 PyObject * obj1 = 0 ;
52042 if (!PyArg_UnpackTuple(args,
"IntVarContainer_Element", 2, 2, &obj0, &obj1))
SWIG_fail;
52045 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarContainer_Element" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > *""'");
52052 arg2 = static_cast< int >(val2);
52069 PyObject *resultobj = 0;
52073 PyObject * obj0 = 0 ;
52076 if (!PyArg_UnpackTuple(args,
"IntVarContainer_Size", 1, 1, &obj0))
SWIG_fail;
52079 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarContainer_Size" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > const *""'");
52098 PyObject *resultobj = 0;
52102 PyObject * obj0 = 0 ;
52104 if (!PyArg_UnpackTuple(args,
"IntVarContainer_Store", 1, 1, &obj0))
SWIG_fail;
52107 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarContainer_Store" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > *""'");
52126 PyObject *resultobj = 0;
52130 PyObject * obj0 = 0 ;
52132 if (!PyArg_UnpackTuple(args,
"IntVarContainer_Restore", 1, 1, &obj0))
SWIG_fail;
52135 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarContainer_Restore" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > *""'");
52154 PyObject *resultobj = 0;
52161 PyObject * obj0 = 0 ;
52162 PyObject * obj1 = 0 ;
52165 if (!PyArg_UnpackTuple(args,
"IntVarContainer___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
52168 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarContainer___eq__" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > const *""'");
52173 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntVarContainer___eq__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > const &""'");
52176 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 &""'");
52191 Py_INCREF(Py_NotImplemented);
52192 return Py_NotImplemented;
52197 PyObject *resultobj = 0;
52204 PyObject * obj0 = 0 ;
52205 PyObject * obj1 = 0 ;
52208 if (!PyArg_UnpackTuple(args,
"IntVarContainer___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
52211 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarContainer___ne__" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > const *""'");
52216 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntVarContainer___ne__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > const &""'");
52219 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 &""'");
52234 Py_INCREF(Py_NotImplemented);
52235 return Py_NotImplemented;
52240 PyObject *resultobj = 0;
52244 PyObject * obj0 = 0 ;
52246 if (!PyArg_UnpackTuple(args,
"delete_IntVarContainer", 1, 1, &obj0))
SWIG_fail;
52249 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_IntVarContainer" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntVar,operations_research::IntVarElement > *""'");
52275 PyObject *resultobj = 0;
52280 PyObject * obj0 = 0 ;
52281 PyObject * obj1 = 0 ;
52284 if (!PyArg_UnpackTuple(args,
"IntervalVarContainer_Contains", 2, 2, &obj0, &obj1))
SWIG_fail;
52287 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarContainer_Contains" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > const *""'");
52309 PyObject *resultobj = 0;
52316 PyObject * obj0 = 0 ;
52317 PyObject * obj1 = 0 ;
52320 if (!PyArg_UnpackTuple(args,
"IntervalVarContainer_Element", 2, 2, &obj0, &obj1))
SWIG_fail;
52323 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarContainer_Element" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > *""'");
52330 arg2 = static_cast< int >(val2);
52347 PyObject *resultobj = 0;
52351 PyObject * obj0 = 0 ;
52354 if (!PyArg_UnpackTuple(args,
"IntervalVarContainer_Size", 1, 1, &obj0))
SWIG_fail;
52357 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarContainer_Size" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > const *""'");
52376 PyObject *resultobj = 0;
52380 PyObject * obj0 = 0 ;
52382 if (!PyArg_UnpackTuple(args,
"IntervalVarContainer_Store", 1, 1, &obj0))
SWIG_fail;
52385 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarContainer_Store" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > *""'");
52404 PyObject *resultobj = 0;
52408 PyObject * obj0 = 0 ;
52410 if (!PyArg_UnpackTuple(args,
"IntervalVarContainer_Restore", 1, 1, &obj0))
SWIG_fail;
52413 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarContainer_Restore" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > *""'");
52432 PyObject *resultobj = 0;
52439 PyObject * obj0 = 0 ;
52440 PyObject * obj1 = 0 ;
52443 if (!PyArg_UnpackTuple(args,
"IntervalVarContainer___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
52446 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarContainer___eq__" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > const *""'");
52451 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVarContainer___eq__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > const &""'");
52454 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 &""'");
52469 Py_INCREF(Py_NotImplemented);
52470 return Py_NotImplemented;
52475 PyObject *resultobj = 0;
52482 PyObject * obj0 = 0 ;
52483 PyObject * obj1 = 0 ;
52486 if (!PyArg_UnpackTuple(args,
"IntervalVarContainer___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
52489 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntervalVarContainer___ne__" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > const *""'");
52494 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntervalVarContainer___ne__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > const &""'");
52497 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 &""'");
52512 Py_INCREF(Py_NotImplemented);
52513 return Py_NotImplemented;
52518 PyObject *resultobj = 0;
52522 PyObject * obj0 = 0 ;
52524 if (!PyArg_UnpackTuple(args,
"delete_IntervalVarContainer", 1, 1, &obj0))
SWIG_fail;
52527 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_IntervalVarContainer" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::IntervalVar,operations_research::IntervalVarElement > *""'");
52553 PyObject *resultobj = 0;
52558 PyObject * obj0 = 0 ;
52559 PyObject * obj1 = 0 ;
52562 if (!PyArg_UnpackTuple(args,
"SequenceVarContainer_Contains", 2, 2, &obj0, &obj1))
SWIG_fail;
52565 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarContainer_Contains" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > const *""'");
52587 PyObject *resultobj = 0;
52594 PyObject * obj0 = 0 ;
52595 PyObject * obj1 = 0 ;
52598 if (!PyArg_UnpackTuple(args,
"SequenceVarContainer_Element", 2, 2, &obj0, &obj1))
SWIG_fail;
52601 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarContainer_Element" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > *""'");
52608 arg2 = static_cast< int >(val2);
52625 PyObject *resultobj = 0;
52629 PyObject * obj0 = 0 ;
52632 if (!PyArg_UnpackTuple(args,
"SequenceVarContainer_Size", 1, 1, &obj0))
SWIG_fail;
52635 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarContainer_Size" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > const *""'");
52654 PyObject *resultobj = 0;
52658 PyObject * obj0 = 0 ;
52660 if (!PyArg_UnpackTuple(args,
"SequenceVarContainer_Store", 1, 1, &obj0))
SWIG_fail;
52663 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarContainer_Store" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > *""'");
52682 PyObject *resultobj = 0;
52686 PyObject * obj0 = 0 ;
52688 if (!PyArg_UnpackTuple(args,
"SequenceVarContainer_Restore", 1, 1, &obj0))
SWIG_fail;
52691 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarContainer_Restore" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > *""'");
52710 PyObject *resultobj = 0;
52717 PyObject * obj0 = 0 ;
52718 PyObject * obj1 = 0 ;
52721 if (!PyArg_UnpackTuple(args,
"SequenceVarContainer___eq__", 2, 2, &obj0, &obj1))
SWIG_fail;
52724 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarContainer___eq__" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > const *""'");
52729 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "SequenceVarContainer___eq__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > const &""'");
52732 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 &""'");
52747 Py_INCREF(Py_NotImplemented);
52748 return Py_NotImplemented;
52753 PyObject *resultobj = 0;
52760 PyObject * obj0 = 0 ;
52761 PyObject * obj1 = 0 ;
52764 if (!PyArg_UnpackTuple(args,
"SequenceVarContainer___ne__", 2, 2, &obj0, &obj1))
SWIG_fail;
52767 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SequenceVarContainer___ne__" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > const *""'");
52772 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "SequenceVarContainer___ne__" "', argument " "2"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > const &""'");
52775 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 &""'");
52790 Py_INCREF(Py_NotImplemented);
52791 return Py_NotImplemented;
52796 PyObject *resultobj = 0;
52800 PyObject * obj0 = 0 ;
52802 if (!PyArg_UnpackTuple(args,
"delete_SequenceVarContainer", 1, 1, &obj0))
SWIG_fail;
52805 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_SequenceVarContainer" "', argument " "1"" of type '" "operations_research::AssignmentContainer< operations_research::SequenceVar,operations_research::SequenceVarElement > *""'");
52831 PyObject *resultobj = 0;
52841 PyObject * obj0 = 0 ;
52842 PyObject * obj1 = 0 ;
52843 PyObject * obj2 = 0 ;
52845 bool upcall =
false;
52848 if (!PyArg_UnpackTuple(args,
"LocalSearchOperator_NextNeighbor", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
52851 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "LocalSearchOperator_NextNeighbor" "', argument " "1"" of type '" "operations_research::LocalSearchOperator *""'");
52853 arg1 = reinterpret_cast< operations_research::LocalSearchOperator * >(argp1);
52856 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "LocalSearchOperator_NextNeighbor" "', argument " "2"" of type '" "operations_research::Assignment *""'");
52858 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
52861 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "LocalSearchOperator_NextNeighbor" "', argument " "3"" of type '" "operations_research::Assignment *""'");
52863 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
52872 result = (bool)(arg1)->MakeNextNeighbor(arg2,arg3);
52890 PyObject *resultobj = 0;
52897 PyObject * obj0 = 0 ;
52898 PyObject * obj1 = 0 ;
52900 bool upcall =
false;
52902 if (!PyArg_UnpackTuple(args,
"LocalSearchOperator_Start", 2, 2, &obj0, &obj1))
SWIG_fail;
52905 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "LocalSearchOperator_Start" "', argument " "1"" of type '" "operations_research::LocalSearchOperator *""'");
52907 arg1 = reinterpret_cast< operations_research::LocalSearchOperator * >(argp1);
52910 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "LocalSearchOperator_Start" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
52912 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
52939 PyObject *resultobj = 0;
52943 PyObject * obj0 = 0 ;
52945 if (!PyArg_UnpackTuple(args,
"disown_LocalSearchOperator", 1, 1, &obj0))
SWIG_fail;
52948 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "disown_LocalSearchOperator" "', argument " "1"" of type '" "operations_research::LocalSearchOperator *""'");
52950 arg1 = reinterpret_cast< operations_research::LocalSearchOperator * >(argp1);
52971 PyObject *resultobj = 0;
52978 PyObject * obj0 = 0 ;
52979 PyObject * obj1 = 0 ;
52981 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperatorTemplate_Start", 2, 2, &obj0, &obj1))
SWIG_fail;
52984 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 > *""'");
52989 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntVarLocalSearchOperatorTemplate_Start" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
52991 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
53008 PyObject *resultobj = 0;
53012 PyObject * obj0 = 0 ;
53014 bool upcall =
false;
53017 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperatorTemplate_IsIncremental", 1, 1, &obj0))
SWIG_fail;
53020 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 *""'");
53024 upcall = (director && (director->swig_get_self()==obj0));
53049 PyObject *resultobj = 0;
53053 PyObject * obj0 = 0 ;
53056 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperatorTemplate_Size", 1, 1, &obj0))
SWIG_fail;
53059 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 *""'");
53078 PyObject *resultobj = 0;
53085 PyObject * obj0 = 0 ;
53086 PyObject * obj1 = 0 ;
53089 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperatorTemplate_Value", 2, 2, &obj0, &obj1))
SWIG_fail;
53092 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 *""'");
53099 arg2 = static_cast< int64_t >(val2);
53116 PyObject *resultobj = 0;
53123 PyObject * obj0 = 0 ;
53124 PyObject * obj1 = 0 ;
53127 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperatorTemplate_OldValue", 2, 2, &obj0, &obj1))
SWIG_fail;
53130 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 *""'");
53137 arg2 = static_cast< int64_t >(val2);
53154 PyObject *resultobj = 0;
53165 PyObject * obj0 = 0 ;
53166 PyObject * obj1 = 0 ;
53167 PyObject * obj2 = 0 ;
53169 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperatorTemplate_SetValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
53172 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 > *""'");
53179 arg2 = static_cast< int64_t >(val2);
53184 temp3 = static_cast< long >(val3);
53188 (arg1)->SetValue(arg2,(
long const &)*arg3);
53202 PyObject *resultobj = 0;
53206 PyObject * obj0 = 0 ;
53208 bool upcall =
false;
53210 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperatorTemplate_OnStart", 1, 1, &obj0))
SWIG_fail;
53213 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 > *""'");
53217 upcall = (director && (director->swig_get_self()==obj0));
53249 PyObject *resultobj = 0;
53250 PyObject *arg1 = (PyObject *) 0 ;
53251 PyObject * obj0 = 0 ;
53254 if (!PyArg_UnpackTuple(args,
"new_IntVarLocalSearchOperator", 1, 1, &obj0))
SWIG_fail;
53258 if ( arg1 != Py_None ) {
53277 PyObject *resultobj = 0;
53278 PyObject *arg1 = (PyObject *) 0 ;
53279 std::vector< operations_research::IntVar * > *arg2 = 0 ;
53281 std::vector< operations_research::IntVar * > temp2 ;
53284 PyObject * obj0 = 0 ;
53285 PyObject * obj1 = 0 ;
53286 PyObject * obj2 = 0 ;
53289 if (!PyArg_UnpackTuple(args,
"new_IntVarLocalSearchOperator", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
53292 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
53293 if (!PyErr_Occurred())
53303 arg3 = static_cast< bool >(val3);
53306 if ( arg1 != Py_None ) {
53325 PyObject *resultobj = 0;
53326 PyObject *arg1 = (PyObject *) 0 ;
53327 std::vector< operations_research::IntVar * > *arg2 = 0 ;
53328 std::vector< operations_research::IntVar * > temp2 ;
53329 PyObject * obj0 = 0 ;
53330 PyObject * obj1 = 0 ;
53333 if (!PyArg_UnpackTuple(args,
"new_IntVarLocalSearchOperator", 2, 2, &obj0, &obj1))
SWIG_fail;
53336 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
53337 if (!PyErr_Occurred())
53345 if ( arg1 != Py_None ) {
53365 PyObject *argv[4] = {
53371 argc = PyObject_Length(args);
53372 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
53373 argv[ii] = PyTuple_GET_ITEM(args,ii);
53377 _v = (argv[0] != 0);
53384 _v = (argv[0] != 0);
53387 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
53390 const bool is_tuple = PyTuple_Check(argv[1]);
53391 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
53394 :PyList_GetItem(argv[1], i))) {
53407 _v = (argv[0] != 0);
53410 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
53413 const bool is_tuple = PyTuple_Check(argv[1]);
53414 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
53417 :PyList_GetItem(argv[1], i))) {
53437 " Possible C/C++ prototypes are:\n" 53438 " operations_research::IntVarLocalSearchOperator::IntVarLocalSearchOperator()\n" 53439 " operations_research::IntVarLocalSearchOperator::IntVarLocalSearchOperator(std::vector< operations_research::IntVar * > const &,bool)\n" 53440 " operations_research::IntVarLocalSearchOperator::IntVarLocalSearchOperator(PyObject *,std::vector< operations_research::IntVar * > const &)\n");
53446 PyObject *resultobj = 0;
53450 PyObject * obj0 = 0 ;
53452 if (!PyArg_UnpackTuple(args,
"delete_IntVarLocalSearchOperator", 1, 1, &obj0))
SWIG_fail;
53455 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_IntVarLocalSearchOperator" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchOperator *""'");
53457 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchOperator * >(argp1);
53474 PyObject *resultobj = 0;
53484 PyObject * obj0 = 0 ;
53485 PyObject * obj1 = 0 ;
53486 PyObject * obj2 = 0 ;
53488 bool upcall =
false;
53491 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperator_NextNeighbor", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
53494 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarLocalSearchOperator_NextNeighbor" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchOperator *""'");
53496 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchOperator * >(argp1);
53499 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntVarLocalSearchOperator_NextNeighbor" "', argument " "2"" of type '" "operations_research::Assignment *""'");
53501 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
53504 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "IntVarLocalSearchOperator_NextNeighbor" "', argument " "3"" of type '" "operations_research::Assignment *""'");
53506 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
53513 result = (bool)(arg1)->operations_research::IntVarLocalSearchOperator::MakeNextNeighbor(arg2,arg3);
53515 result = (bool)(arg1)->MakeNextNeighbor(arg2,arg3);
53533 PyObject *resultobj = 0;
53537 PyObject * obj0 = 0 ;
53539 bool upcall =
false;
53543 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchOperator_OneNeighbor", 1, 1, &obj0))
SWIG_fail;
53546 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarLocalSearchOperator_OneNeighbor" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchOperator *""'");
53548 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchOperator * >(argp1);
53550 if (!director || !(director->
swig_get_inner(
"MakeOneNeighbor"))) {
53551 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing protected member MakeOneNeighbor");
53556 darg = dynamic_cast<SwigDirector_IntVarLocalSearchOperator *>(arg1);
53560 result = (bool)(darg)->MakeOneNeighborSwigPublic();
53562 result = (bool)(darg)->MakeOneNeighbor();
53580 PyObject *resultobj = 0;
53584 PyObject * obj0 = 0 ;
53586 if (!PyArg_UnpackTuple(args,
"disown_IntVarLocalSearchOperator", 1, 1, &obj0))
SWIG_fail;
53589 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "disown_IntVarLocalSearchOperator" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchOperator *""'");
53591 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchOperator * >(argp1);
53616 PyObject *resultobj = 0;
53623 PyObject * obj0 = 0 ;
53624 PyObject * obj1 = 0 ;
53626 if (!PyArg_UnpackTuple(args,
"SequenceVarLocalSearchOperatorTemplate_Start", 2, 2, &obj0, &obj1))
SWIG_fail;
53629 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 > *""'");
53634 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "SequenceVarLocalSearchOperatorTemplate_Start" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
53636 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
53653 PyObject *resultobj = 0;
53657 PyObject * obj0 = 0 ;
53660 if (!PyArg_UnpackTuple(args,
"SequenceVarLocalSearchOperatorTemplate_IsIncremental", 1, 1, &obj0))
SWIG_fail;
53663 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 *""'");
53682 PyObject *resultobj = 0;
53686 PyObject * obj0 = 0 ;
53689 if (!PyArg_UnpackTuple(args,
"SequenceVarLocalSearchOperatorTemplate_Size", 1, 1, &obj0))
SWIG_fail;
53692 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 *""'");
53711 PyObject *resultobj = 0;
53718 PyObject * obj0 = 0 ;
53719 PyObject * obj1 = 0 ;
53720 std::vector< int > *result = 0 ;
53722 if (!PyArg_UnpackTuple(args,
"SequenceVarLocalSearchOperatorTemplate_Value", 2, 2, &obj0, &obj1))
SWIG_fail;
53725 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 *""'");
53732 arg2 = static_cast< int64_t >(val2);
53742 resultobj = vector_output_helper(result, &PyInt_FromLong);
53751 PyObject *resultobj = 0;
53758 PyObject * obj0 = 0 ;
53759 PyObject * obj1 = 0 ;
53760 std::vector< int > *result = 0 ;
53762 if (!PyArg_UnpackTuple(args,
"SequenceVarLocalSearchOperatorTemplate_OldValue", 2, 2, &obj0, &obj1))
SWIG_fail;
53765 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 *""'");
53772 arg2 = static_cast< int64_t >(val2);
53782 resultobj = vector_output_helper(result, &PyInt_FromLong);
53791 PyObject *resultobj = 0;
53794 std::vector< int > *arg3 = 0 ;
53799 std::vector< int > temp3 ;
53800 PyObject * obj0 = 0 ;
53801 PyObject * obj1 = 0 ;
53802 PyObject * obj2 = 0 ;
53804 if (!PyArg_UnpackTuple(args,
"SequenceVarLocalSearchOperatorTemplate_SetValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
53807 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 > *""'");
53814 arg2 = static_cast< int64_t >(val2);
53816 if (!vector_input_helper(obj2, &temp3, PyObjAs<int>)) {
53817 if (!PyErr_Occurred())
53825 (arg1)->SetValue(arg2,(std::vector< int >
const &)*arg3);
53839 PyObject *resultobj = 0;
53843 PyObject * obj0 = 0 ;
53845 if (!PyArg_UnpackTuple(args,
"SequenceVarLocalSearchOperatorTemplate_OnStart", 1, 1, &obj0))
SWIG_fail;
53848 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 > *""'");
53881 PyObject *resultobj = 0;
53882 PyObject *arg1 = (PyObject *) 0 ;
53883 std::vector< operations_research::IntVar * > *arg2 = 0 ;
53884 std::vector< operations_research::IntVar * > temp2 ;
53885 PyObject * obj0 = 0 ;
53886 PyObject * obj1 = 0 ;
53889 if (!PyArg_UnpackTuple(args,
"new_BaseLns", 2, 2, &obj0, &obj1))
SWIG_fail;
53892 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
53893 if (!PyErr_Occurred())
53901 if ( arg1 != Py_None ) {
53905 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing abstract class or protected constructor");
53921 PyObject *resultobj = 0;
53925 PyObject * obj0 = 0 ;
53927 if (!PyArg_UnpackTuple(args,
"delete_BaseLns", 1, 1, &obj0))
SWIG_fail;
53932 arg1 = reinterpret_cast< operations_research::BaseLns * >(argp1);
53949 PyObject *resultobj = 0;
53953 PyObject * obj0 = 0 ;
53955 bool upcall =
false;
53957 if (!PyArg_UnpackTuple(args,
"BaseLns_InitFragments", 1, 1, &obj0))
SWIG_fail;
53962 arg1 = reinterpret_cast< operations_research::BaseLns * >(argp1);
53971 (arg1)->InitFragments();
53989 PyObject *resultobj = 0;
53993 PyObject * obj0 = 0 ;
53995 bool upcall =
false;
53998 if (!PyArg_UnpackTuple(args,
"BaseLns_NextFragment", 1, 1, &obj0))
SWIG_fail;
54003 arg1 = reinterpret_cast< operations_research::BaseLns * >(argp1);
54012 result = (bool)(arg1)->NextFragment();
54030 PyObject *resultobj = 0;
54037 PyObject * obj0 = 0 ;
54038 PyObject * obj1 = 0 ;
54040 if (!PyArg_UnpackTuple(args,
"BaseLns_AppendToFragment", 2, 2, &obj0, &obj1))
SWIG_fail;
54045 arg1 = reinterpret_cast< operations_research::BaseLns * >(argp1);
54050 arg2 = static_cast< int >(val2);
54053 (arg1)->AppendToFragment(arg2);
54067 PyObject *resultobj = 0;
54071 PyObject * obj0 = 0 ;
54074 if (!PyArg_UnpackTuple(args,
"BaseLns_FragmentSize", 1, 1, &obj0))
SWIG_fail;
54079 arg1 = reinterpret_cast< operations_research::BaseLns * >(argp1);
54096 PyObject *resultobj = 0;
54103 PyObject * obj0 = 0 ;
54104 PyObject * obj1 = 0 ;
54107 if (!PyArg_UnpackTuple(args,
"BaseLns___getitem__", 2, 2, &obj0, &obj1))
SWIG_fail;
54112 arg1 = reinterpret_cast< operations_research::BaseLns * >(argp1);
54117 arg2 = static_cast< int >(val2);
54134 PyObject *resultobj = 0;
54138 PyObject * obj0 = 0 ;
54141 if (!PyArg_UnpackTuple(args,
"BaseLns___len__", 1, 1, &obj0))
SWIG_fail;
54146 arg1 = reinterpret_cast< operations_research::BaseLns * >(argp1);
54163 PyObject *resultobj = 0;
54167 PyObject * obj0 = 0 ;
54169 if (!PyArg_UnpackTuple(args,
"disown_BaseLns", 1, 1, &obj0))
SWIG_fail;
54174 arg1 = reinterpret_cast< operations_research::BaseLns * >(argp1);
54199 PyObject *resultobj = 0;
54200 PyObject *arg1 = (PyObject *) 0 ;
54201 std::vector< operations_research::IntVar * > *arg2 = 0 ;
54202 std::vector< operations_research::IntVar * > temp2 ;
54203 PyObject * obj0 = 0 ;
54204 PyObject * obj1 = 0 ;
54207 if (!PyArg_UnpackTuple(args,
"new_ChangeValue", 2, 2, &obj0, &obj1))
SWIG_fail;
54210 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
54211 if (!PyErr_Occurred())
54219 if ( arg1 != Py_None ) {
54223 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing abstract class or protected constructor");
54239 PyObject *resultobj = 0;
54243 PyObject * obj0 = 0 ;
54245 if (!PyArg_UnpackTuple(args,
"delete_ChangeValue", 1, 1, &obj0))
SWIG_fail;
54250 arg1 = reinterpret_cast< operations_research::ChangeValue * >(argp1);
54267 PyObject *resultobj = 0;
54277 PyObject * obj0 = 0 ;
54278 PyObject * obj1 = 0 ;
54279 PyObject * obj2 = 0 ;
54281 bool upcall =
false;
54284 if (!PyArg_UnpackTuple(args,
"ChangeValue_ModifyValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
54289 arg1 = reinterpret_cast< operations_research::ChangeValue * >(argp1);
54294 arg2 = static_cast< int64_t >(val2);
54299 arg3 = static_cast< int64_t >(val3);
54308 result = (int64_t)(arg1)->ModifyValue(arg2,arg3);
54326 PyObject *resultobj = 0;
54330 PyObject * obj0 = 0 ;
54332 bool upcall =
false;
54336 if (!PyArg_UnpackTuple(args,
"ChangeValue_OneNeighbor", 1, 1, &obj0))
SWIG_fail;
54341 arg1 = reinterpret_cast< operations_research::ChangeValue * >(argp1);
54343 if (!director || !(director->
swig_get_inner(
"MakeOneNeighbor"))) {
54344 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing protected member MakeOneNeighbor");
54349 darg = dynamic_cast<SwigDirector_ChangeValue *>(arg1);
54353 result = (bool)(darg)->MakeOneNeighborSwigPublic();
54355 result = (bool)(darg)->MakeOneNeighbor();
54373 PyObject *resultobj = 0;
54377 PyObject * obj0 = 0 ;
54379 if (!PyArg_UnpackTuple(args,
"disown_ChangeValue", 1, 1, &obj0))
SWIG_fail;
54384 arg1 = reinterpret_cast< operations_research::ChangeValue * >(argp1);
54409 PyObject *resultobj = 0;
54413 PyObject * obj0 = 0 ;
54416 if (!PyArg_UnpackTuple(args,
"PathOperator_Neighbor", 1, 1, &obj0))
SWIG_fail;
54421 arg1 = reinterpret_cast< operations_research::PathOperator * >(argp1);
54424 result = (bool)(arg1)->MakeNeighbor();
54445 PyObject *resultobj = 0;
54461 PyObject * obj0 = 0 ;
54462 PyObject * obj1 = 0 ;
54463 PyObject * obj2 = 0 ;
54464 PyObject * obj3 = 0 ;
54465 PyObject * obj4 = 0 ;
54468 if (!PyArg_UnpackTuple(args,
"LocalSearchFilter_Accept", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
54471 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "LocalSearchFilter_Accept" "', argument " "1"" of type '" "operations_research::LocalSearchFilter *""'");
54473 arg1 = reinterpret_cast< operations_research::LocalSearchFilter * >(argp1);
54476 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "LocalSearchFilter_Accept" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
54478 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
54481 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "LocalSearchFilter_Accept" "', argument " "3"" of type '" "operations_research::Assignment const *""'");
54483 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
54488 arg4 = static_cast< int64_t >(val4);
54493 arg5 = static_cast< int64_t >(val5);
54510 PyObject *resultobj = 0;
54514 PyObject * obj0 = 0 ;
54517 if (!PyArg_UnpackTuple(args,
"LocalSearchFilter_IsIncremental", 1, 1, &obj0))
SWIG_fail;
54520 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "LocalSearchFilter_IsIncremental" "', argument " "1"" of type '" "operations_research::LocalSearchFilter const *""'");
54522 arg1 = reinterpret_cast< operations_research::LocalSearchFilter * >(argp1);
54539 PyObject *resultobj = 0;
54549 PyObject * obj0 = 0 ;
54550 PyObject * obj1 = 0 ;
54551 PyObject * obj2 = 0 ;
54553 if (!PyArg_UnpackTuple(args,
"LocalSearchFilter_Synchronize", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
54556 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "LocalSearchFilter_Synchronize" "', argument " "1"" of type '" "operations_research::LocalSearchFilter *""'");
54558 arg1 = reinterpret_cast< operations_research::LocalSearchFilter * >(argp1);
54561 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "LocalSearchFilter_Synchronize" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
54563 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
54566 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "LocalSearchFilter_Synchronize" "', argument " "3"" of type '" "operations_research::Assignment const *""'");
54568 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
54585 PyObject *resultobj = 0;
54589 PyObject * obj0 = 0 ;
54591 if (!PyArg_UnpackTuple(args,
"delete_LocalSearchFilter", 1, 1, &obj0))
SWIG_fail;
54594 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_LocalSearchFilter" "', argument " "1"" of type '" "operations_research::LocalSearchFilter *""'");
54596 arg1 = reinterpret_cast< operations_research::LocalSearchFilter * >(argp1);
54620 PyObject *resultobj = 0;
54624 PyObject * obj0 = 0 ;
54625 std::string result;
54627 if (!PyArg_UnpackTuple(args,
"LocalSearchFilterManager_DebugString", 1, 1, &obj0))
SWIG_fail;
54630 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "LocalSearchFilterManager_DebugString" "', argument " "1"" of type '" "operations_research::LocalSearchFilterManager const *""'");
54632 arg1 = reinterpret_cast< operations_research::LocalSearchFilterManager * >(argp1);
54649 PyObject *resultobj = 0;
54650 SwigValueWrapper< std::vector< operations_research::LocalSearchFilterManager::FilterEvent > > arg1 ;
54653 PyObject * obj0 = 0 ;
54656 if (!PyArg_UnpackTuple(args,
"new_LocalSearchFilterManager", 1, 1, &obj0))
SWIG_fail;
54660 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "new_LocalSearchFilterManager" "', argument " "1"" of type '" "std::vector< operations_research::LocalSearchFilterManager::FilterEvent >""'");
54663 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "new_LocalSearchFilterManager" "', argument " "1"" of type '" "std::vector< operations_research::LocalSearchFilterManager::FilterEvent >""'");
54665 std::vector< operations_research::LocalSearchFilterManager::FilterEvent > * temp =
reinterpret_cast< std::vector< operations_research::LocalSearchFilterManager::FilterEvent > *
>(argp1);
54686 PyObject *resultobj = 0;
54687 SwigValueWrapper< std::vector< operations_research::LocalSearchFilter * > > arg1 ;
54688 std::vector< operations_research::LocalSearchFilter * > temp1 ;
54689 PyObject * obj0 = 0 ;
54692 if (!PyArg_UnpackTuple(args,
"new_LocalSearchFilterManager", 1, 1, &obj0))
SWIG_fail;
54694 if (!vector_input_helper(obj0, &temp1, PyObjAs<operations_research::LocalSearchFilter*>)) {
54695 if (!PyErr_Occurred())
54699 arg1 = std::move(temp1);
54718 PyObject *argv[2] = {
54724 argc = PyObject_Length(args);
54725 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
54726 argv[ii] = PyTuple_GET_ITEM(args,ii);
54739 if (!PyTuple_Check(argv[0]) && !PyList_Check(argv[0])) {
54742 const bool is_tuple = PyTuple_Check(argv[0]);
54743 const size_t size = is_tuple ? PyTuple_Size(argv[0]) : PyList_Size(argv[0]);
54746 :PyList_GetItem(argv[0], i))) {
54759 " Possible C/C++ prototypes are:\n" 54760 " operations_research::LocalSearchFilterManager::LocalSearchFilterManager(std::vector< operations_research::LocalSearchFilterManager::FilterEvent >)\n" 54761 " operations_research::LocalSearchFilterManager::LocalSearchFilterManager(std::vector< operations_research::LocalSearchFilter * >)\n");
54767 PyObject *resultobj = 0;
54786 PyObject * obj0 = 0 ;
54787 PyObject * obj1 = 0 ;
54788 PyObject * obj2 = 0 ;
54789 PyObject * obj3 = 0 ;
54790 PyObject * obj4 = 0 ;
54791 PyObject * obj5 = 0 ;
54794 if (!PyArg_UnpackTuple(args,
"LocalSearchFilterManager_Accept", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
54797 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "LocalSearchFilterManager_Accept" "', argument " "1"" of type '" "operations_research::LocalSearchFilterManager *""'");
54799 arg1 = reinterpret_cast< operations_research::LocalSearchFilterManager * >(argp1);
54802 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "LocalSearchFilterManager_Accept" "', argument " "2"" of type '" "operations_research::LocalSearchMonitor *const""'");
54804 arg2 = reinterpret_cast< operations_research::LocalSearchMonitor * >(argp2);
54807 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "LocalSearchFilterManager_Accept" "', argument " "3"" of type '" "operations_research::Assignment const *""'");
54809 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
54812 SWIG_exception_fail(
SWIG_ArgError(res4),
"in method '" "LocalSearchFilterManager_Accept" "', argument " "4"" of type '" "operations_research::Assignment const *""'");
54814 arg4 = reinterpret_cast< operations_research::Assignment * >(argp4);
54819 arg5 = static_cast< int64_t >(val5);
54824 arg6 = static_cast< int64_t >(val6);
54841 PyObject *resultobj = 0;
54851 PyObject * obj0 = 0 ;
54852 PyObject * obj1 = 0 ;
54853 PyObject * obj2 = 0 ;
54855 if (!PyArg_UnpackTuple(args,
"LocalSearchFilterManager_Synchronize", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
54858 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "LocalSearchFilterManager_Synchronize" "', argument " "1"" of type '" "operations_research::LocalSearchFilterManager *""'");
54860 arg1 = reinterpret_cast< operations_research::LocalSearchFilterManager * >(argp1);
54863 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "LocalSearchFilterManager_Synchronize" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
54865 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
54868 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "LocalSearchFilterManager_Synchronize" "', argument " "3"" of type '" "operations_research::Assignment const *""'");
54870 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
54887 PyObject *resultobj = 0;
54891 PyObject * obj0 = 0 ;
54893 if (!PyArg_UnpackTuple(args,
"delete_LocalSearchFilterManager", 1, 1, &obj0))
SWIG_fail;
54896 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_LocalSearchFilterManager" "', argument " "1"" of type '" "operations_research::LocalSearchFilterManager *""'");
54898 arg1 = reinterpret_cast< operations_research::LocalSearchFilterManager * >(argp1);
54926 PyObject *resultobj = 0;
54927 PyObject *arg1 = (PyObject *) 0 ;
54928 std::vector< operations_research::IntVar * > *arg2 = 0 ;
54929 std::vector< operations_research::IntVar * > temp2 ;
54930 PyObject * obj0 = 0 ;
54931 PyObject * obj1 = 0 ;
54934 if (!PyArg_UnpackTuple(args,
"new_IntVarLocalSearchFilter", 2, 2, &obj0, &obj1))
SWIG_fail;
54937 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
54938 if (!PyErr_Occurred())
54946 if ( arg1 != Py_None ) {
54950 SWIG_SetErrorMsg(PyExc_RuntimeError,
"accessing abstract class or protected constructor");
54966 PyObject *resultobj = 0;
54970 PyObject * obj0 = 0 ;
54972 if (!PyArg_UnpackTuple(args,
"delete_IntVarLocalSearchFilter", 1, 1, &obj0))
SWIG_fail;
54975 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_IntVarLocalSearchFilter" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter *""'");
54977 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchFilter * >(argp1);
54994 PyObject *resultobj = 0;
55004 PyObject * obj0 = 0 ;
55005 PyObject * obj1 = 0 ;
55006 PyObject * obj2 = 0 ;
55008 bool upcall =
false;
55010 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchFilter_Synchronize", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
55013 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarLocalSearchFilter_Synchronize" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter *""'");
55015 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchFilter * >(argp1);
55018 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "IntVarLocalSearchFilter_Synchronize" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
55020 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
55023 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "IntVarLocalSearchFilter_Synchronize" "', argument " "3"" of type '" "operations_research::Assignment const *""'");
55025 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
55052 PyObject *resultobj = 0;
55056 PyObject * obj0 = 0 ;
55059 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchFilter_Size", 1, 1, &obj0))
SWIG_fail;
55062 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarLocalSearchFilter_Size" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter const *""'");
55064 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchFilter * >(argp1);
55081 PyObject *resultobj = 0;
55088 PyObject * obj0 = 0 ;
55089 PyObject * obj1 = 0 ;
55092 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchFilter_Value", 2, 2, &obj0, &obj1))
SWIG_fail;
55095 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarLocalSearchFilter_Value" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter const *""'");
55097 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchFilter * >(argp1);
55102 arg2 = static_cast< int >(val2);
55119 PyObject *resultobj = 0;
55124 PyObject * obj0 = 0 ;
55125 PyObject * obj1 = 0 ;
55128 if (!PyArg_UnpackTuple(args,
"IntVarLocalSearchFilter_IndexFromVar", 2, 2, &obj0, &obj1))
SWIG_fail;
55131 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "IntVarLocalSearchFilter_IndexFromVar" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter const *""'");
55133 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchFilter * >(argp1);
55153 PyObject *resultobj = 0;
55157 PyObject * obj0 = 0 ;
55159 if (!PyArg_UnpackTuple(args,
"disown_IntVarLocalSearchFilter", 1, 1, &obj0))
SWIG_fail;
55162 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "disown_IntVarLocalSearchFilter" "', argument " "1"" of type '" "operations_research::IntVarLocalSearchFilter *""'");
55164 arg1 = reinterpret_cast< operations_research::IntVarLocalSearchFilter * >(argp1);
55189 PyObject *resultobj = 0;
55193 PyObject * obj0 = 0 ;
55196 if (!PyArg_UnpackTuple(args,
"BooleanVar_Min", 1, 1, &obj0))
SWIG_fail;
55201 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55218 PyObject *resultobj = 0;
55225 PyObject * obj0 = 0 ;
55226 PyObject * obj1 = 0 ;
55228 if (!PyArg_UnpackTuple(args,
"BooleanVar_SetMin", 2, 2, &obj0, &obj1))
SWIG_fail;
55233 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55238 arg2 = static_cast< int64_t >(val2);
55246 (arg1)->SetMin(arg2);
55253 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
55265 PyObject *resultobj = 0;
55269 PyObject * obj0 = 0 ;
55272 if (!PyArg_UnpackTuple(args,
"BooleanVar_Max", 1, 1, &obj0))
SWIG_fail;
55277 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55294 PyObject *resultobj = 0;
55301 PyObject * obj0 = 0 ;
55302 PyObject * obj1 = 0 ;
55304 if (!PyArg_UnpackTuple(args,
"BooleanVar_SetMax", 2, 2, &obj0, &obj1))
SWIG_fail;
55309 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55314 arg2 = static_cast< int64_t >(val2);
55322 (arg1)->SetMax(arg2);
55329 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
55341 PyObject *resultobj = 0;
55351 PyObject * obj0 = 0 ;
55352 PyObject * obj1 = 0 ;
55353 PyObject * obj2 = 0 ;
55355 if (!PyArg_UnpackTuple(args,
"BooleanVar_SetRange", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
55360 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55365 arg2 = static_cast< int64_t >(val2);
55370 arg3 = static_cast< int64_t >(val3);
55378 (arg1)->SetRange(arg2,arg3);
55385 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
55397 PyObject *resultobj = 0;
55401 PyObject * obj0 = 0 ;
55404 if (!PyArg_UnpackTuple(args,
"BooleanVar_Bound", 1, 1, &obj0))
SWIG_fail;
55409 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55426 PyObject *resultobj = 0;
55430 PyObject * obj0 = 0 ;
55433 if (!PyArg_UnpackTuple(args,
"BooleanVar_Value", 1, 1, &obj0))
SWIG_fail;
55438 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55455 PyObject *resultobj = 0;
55462 PyObject * obj0 = 0 ;
55463 PyObject * obj1 = 0 ;
55465 if (!PyArg_UnpackTuple(args,
"BooleanVar_RemoveValue", 2, 2, &obj0, &obj1))
SWIG_fail;
55470 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55475 arg2 = static_cast< int64_t >(val2);
55483 (arg1)->RemoveValue(arg2);
55490 PyErr_SetString(PyExc_Exception,
"CP Solver fail");
55502 PyObject *resultobj = 0;
55512 PyObject * obj0 = 0 ;
55513 PyObject * obj1 = 0 ;
55514 PyObject * obj2 = 0 ;
55516 if (!PyArg_UnpackTuple(args,
"BooleanVar_RemoveInterval", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
55519 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "BooleanVar_RemoveInterval" "', argument " "1"" of type '" "operations_research::BooleanVar *""'");
55521 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55526 arg2 = static_cast< int64_t >(val2);
55531 arg3 = static_cast< int64_t >(val3);
55534 (arg1)->RemoveInterval(arg2,arg3);
55548 PyObject *resultobj = 0;
55555 PyObject * obj0 = 0 ;
55556 PyObject * obj1 = 0 ;
55558 if (!PyArg_UnpackTuple(args,
"BooleanVar_WhenBound", 2, 2, &obj0, &obj1))
SWIG_fail;
55563 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55568 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
55571 (arg1)->WhenBound(arg2);
55585 PyObject *resultobj = 0;
55592 PyObject * obj0 = 0 ;
55593 PyObject * obj1 = 0 ;
55595 if (!PyArg_UnpackTuple(args,
"BooleanVar_WhenRange", 2, 2, &obj0, &obj1))
SWIG_fail;
55600 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55605 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
55608 (arg1)->WhenRange(arg2);
55622 PyObject *resultobj = 0;
55629 PyObject * obj0 = 0 ;
55630 PyObject * obj1 = 0 ;
55632 if (!PyArg_UnpackTuple(args,
"BooleanVar_WhenDomain", 2, 2, &obj0, &obj1))
SWIG_fail;
55637 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55642 arg2 = reinterpret_cast< operations_research::Demon * >(argp2);
55645 (arg1)->WhenDomain(arg2);
55659 PyObject *resultobj = 0;
55663 PyObject * obj0 = 0 ;
55666 if (!PyArg_UnpackTuple(args,
"BooleanVar_Size", 1, 1, &obj0))
SWIG_fail;
55671 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55688 PyObject *resultobj = 0;
55695 PyObject * obj0 = 0 ;
55696 PyObject * obj1 = 0 ;
55699 if (!PyArg_UnpackTuple(args,
"BooleanVar_Contains", 2, 2, &obj0, &obj1))
SWIG_fail;
55702 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "BooleanVar_Contains" "', argument " "1"" of type '" "operations_research::BooleanVar const *""'");
55704 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55709 arg2 = static_cast< int64_t >(val2);
55726 PyObject *resultobj = 0;
55733 PyObject * obj0 = 0 ;
55734 PyObject * obj1 = 0 ;
55737 if (!PyArg_UnpackTuple(args,
"BooleanVar_HoleIteratorAux", 2, 2, &obj0, &obj1))
SWIG_fail;
55740 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "BooleanVar_HoleIteratorAux" "', argument " "1"" of type '" "operations_research::BooleanVar const *""'");
55742 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55747 arg2 = static_cast< bool >(val2);
55764 PyObject *resultobj = 0;
55771 PyObject * obj0 = 0 ;
55772 PyObject * obj1 = 0 ;
55775 if (!PyArg_UnpackTuple(args,
"BooleanVar_DomainIteratorAux", 2, 2, &obj0, &obj1))
SWIG_fail;
55778 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "BooleanVar_DomainIteratorAux" "', argument " "1"" of type '" "operations_research::BooleanVar const *""'");
55780 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55785 arg2 = static_cast< bool >(val2);
55802 PyObject *resultobj = 0;
55806 PyObject * obj0 = 0 ;
55807 std::string result;
55809 if (!PyArg_UnpackTuple(args,
"BooleanVar_DebugString", 1, 1, &obj0))
SWIG_fail;
55812 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "BooleanVar_DebugString" "', argument " "1"" of type '" "operations_research::BooleanVar const *""'");
55814 arg1 = reinterpret_cast< operations_research::BooleanVar * >(argp1);
55838 PyObject *resultobj = 0;
55846 PyObject * obj0 = 0 ;
55847 PyObject * obj1 = 0 ;
55848 PyObject * obj2 = 0 ;
55851 if (!PyArg_UnpackTuple(args,
"new_RoutingIndexManager", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
55856 arg1 = static_cast< int >(val1);
55861 arg2 = static_cast< int >(val2);
55863 arg3 = operations_research::RoutingNodeIndex(PyInt_AsLong(obj2));
55881 PyObject *resultobj = 0;
55884 std::vector< operations_research::RoutingIndexManager::NodeIndex > *arg3 = 0 ;
55885 std::vector< operations_research::RoutingIndexManager::NodeIndex > *arg4 = 0 ;
55890 std::vector< operations_research::RoutingNodeIndex > temp3 ;
55891 std::vector< operations_research::RoutingNodeIndex > temp4 ;
55892 PyObject * obj0 = 0 ;
55893 PyObject * obj1 = 0 ;
55894 PyObject * obj2 = 0 ;
55895 PyObject * obj3 = 0 ;
55898 if (!PyArg_UnpackTuple(args,
"new_RoutingIndexManager", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
55903 arg1 = static_cast< int >(val1);
55908 arg2 = static_cast< int >(val2);
55910 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::RoutingNodeIndex>)) {
55911 if (!PyErr_Occurred())
55918 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::RoutingNodeIndex>)) {
55919 if (!PyErr_Occurred())
55942 PyObject *argv[5] = {
55948 argc = PyObject_Length(args);
55949 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
55950 argv[ii] = PyTuple_GET_ITEM(args,ii);
55987 if (!PyTuple_Check(argv[2]) && !PyList_Check(argv[2])) {
55990 const bool is_tuple = PyTuple_Check(argv[2]);
55991 const size_t size = is_tuple ? PyTuple_Size(argv[2]) : PyList_Size(argv[2]);
55993 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[2], i)
55994 :PyList_GetItem(argv[2], i))) {
56002 if (!PyTuple_Check(argv[3]) && !PyList_Check(argv[3])) {
56005 const bool is_tuple = PyTuple_Check(argv[3]);
56006 const size_t size = is_tuple ? PyTuple_Size(argv[3]) : PyList_Size(argv[3]);
56008 while (i < size && PyInt_Check(is_tuple ? PyTuple_GetItem(argv[3], i)
56009 :PyList_GetItem(argv[3], i))) {
56025 " Possible C/C++ prototypes are:\n" 56026 " operations_research::RoutingIndexManager::RoutingIndexManager(int,int,operations_research::RoutingIndexManager::NodeIndex)\n" 56027 " operations_research::RoutingIndexManager::RoutingIndexManager(int,int,std::vector< operations_research::RoutingIndexManager::NodeIndex > const &,std::vector< operations_research::RoutingIndexManager::NodeIndex > const &)\n");
56033 PyObject *resultobj = 0;
56037 PyObject * obj0 = 0 ;
56039 if (!PyArg_UnpackTuple(args,
"delete_RoutingIndexManager", 1, 1, &obj0))
SWIG_fail;
56042 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_RoutingIndexManager" "', argument " "1"" of type '" "operations_research::RoutingIndexManager *""'");
56044 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56061 PyObject *resultobj = 0;
56065 PyObject * obj0 = 0 ;
56068 if (!PyArg_UnpackTuple(args,
"RoutingIndexManager_GetNumberOfNodes", 1, 1, &obj0))
SWIG_fail;
56071 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingIndexManager_GetNumberOfNodes" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56073 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56090 PyObject *resultobj = 0;
56094 PyObject * obj0 = 0 ;
56097 if (!PyArg_UnpackTuple(args,
"RoutingIndexManager_GetNumberOfVehicles", 1, 1, &obj0))
SWIG_fail;
56100 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingIndexManager_GetNumberOfVehicles" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56102 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56119 PyObject *resultobj = 0;
56123 PyObject * obj0 = 0 ;
56126 if (!PyArg_UnpackTuple(args,
"RoutingIndexManager_GetNumberOfIndices", 1, 1, &obj0))
SWIG_fail;
56129 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingIndexManager_GetNumberOfIndices" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56131 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56148 PyObject *resultobj = 0;
56155 PyObject * obj0 = 0 ;
56156 PyObject * obj1 = 0 ;
56159 if (!PyArg_UnpackTuple(args,
"RoutingIndexManager_GetStartIndex", 2, 2, &obj0, &obj1))
SWIG_fail;
56162 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingIndexManager_GetStartIndex" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56164 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56169 arg2 = static_cast< int >(val2);
56186 PyObject *resultobj = 0;
56193 PyObject * obj0 = 0 ;
56194 PyObject * obj1 = 0 ;
56197 if (!PyArg_UnpackTuple(args,
"RoutingIndexManager_GetEndIndex", 2, 2, &obj0, &obj1))
SWIG_fail;
56200 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingIndexManager_GetEndIndex" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56202 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56207 arg2 = static_cast< int >(val2);
56224 PyObject *resultobj = 0;
56229 PyObject * obj0 = 0 ;
56230 PyObject * obj1 = 0 ;
56233 if (!PyArg_UnpackTuple(args,
"RoutingIndexManager_NodeToIndex", 2, 2, &obj0, &obj1))
SWIG_fail;
56236 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingIndexManager_NodeToIndex" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56238 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56240 arg2 = operations_research::RoutingNodeIndex(PyInt_AsLong(obj1));
56258 PyObject *resultobj = 0;
56265 PyObject * obj0 = 0 ;
56266 PyObject * obj1 = 0 ;
56269 if (!PyArg_UnpackTuple(args,
"RoutingIndexManager_IndexToNode", 2, 2, &obj0, &obj1))
SWIG_fail;
56272 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingIndexManager_IndexToNode" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const *""'");
56274 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56279 arg2 = static_cast< int64_t >(val2);
56289 resultobj = PyInt_FromLong((&result)->
value());
56309 PyObject *resultobj = 0;
56312 if (!PyArg_UnpackTuple(args,
"DefaultRoutingModelParameters", 0, 0))
SWIG_fail;
56322 PyObject*
const module = PyImport_ImportModule(
"ortools.constraint_solver.routing_parameters_pb2");
56323 if (module !=
nullptr) {
56324 PyObject*
const dict = PyModule_GetDict(module);
56325 if (dict !=
nullptr) {
56326 PyObject*
const clss = PyDict_GetItemString(dict,
"RoutingModelParameters");
56327 if (clss !=
nullptr) {
56328 std::string encoded_protobuf;
56329 (&result)->SerializeToString(&encoded_protobuf);
56331 PyObject*
const python_encoded_protobuf = PyBytes_FromStringAndSize(
56332 encoded_protobuf.c_str(), encoded_protobuf.size());
56337 PyObject*
const result = PyObject_CallMethod(
56338 clss, const_cast<char*>(
"FromString"),
56339 const_cast<char*>(
"(O)"),
56340 python_encoded_protobuf);
56341 Py_DECREF(python_encoded_protobuf);
56342 resultobj = result;
56355 PyObject *resultobj = 0;
56358 if (!PyArg_UnpackTuple(args,
"DefaultRoutingSearchParameters", 0, 0))
SWIG_fail;
56368 PyObject*
const module = PyImport_ImportModule(
"ortools.constraint_solver.routing_parameters_pb2");
56369 if (module !=
nullptr) {
56370 PyObject*
const dict = PyModule_GetDict(module);
56371 if (dict !=
nullptr) {
56372 PyObject*
const clss = PyDict_GetItemString(dict,
"RoutingSearchParameters");
56373 if (clss !=
nullptr) {
56374 std::string encoded_protobuf;
56375 (&result)->SerializeToString(&encoded_protobuf);
56377 PyObject*
const python_encoded_protobuf = PyBytes_FromStringAndSize(
56378 encoded_protobuf.c_str(), encoded_protobuf.size());
56383 PyObject*
const result = PyObject_CallMethod(
56384 clss, const_cast<char*>(
"FromString"),
56385 const_cast<char*>(
"(O)"),
56386 python_encoded_protobuf);
56387 Py_DECREF(python_encoded_protobuf);
56388 resultobj = result;
56401 PyObject *resultobj = 0;
56403 PyObject * obj0 = 0 ;
56404 std::string result;
56406 if (!PyArg_UnpackTuple(args,
"FindErrorInRoutingSearchParameters", 1, 1, &obj0))
SWIG_fail;
56409 PyObject*
const pyresult = PyObject_CallMethod(
56410 obj0, const_cast<char*>(
"SerializeToString"),
nullptr);
56411 if (pyresult !=
nullptr) {
56412 char* buffer =
nullptr;
56413 Py_ssize_t length = 0;
56414 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
56415 if (buffer !=
nullptr) {
56416 arg1->ParseFromArray(buffer, length);
56418 Py_DECREF(pyresult);
56449 PyObject *pyobj = 0;
56463 PyObject *pyobj = 0;
56477 PyObject *pyobj = 0;
56485 PyObject *resultobj = 0;
56489 PyObject * obj0 = 0 ;
56492 if (!PyArg_UnpackTuple(args,
"new_RoutingModel", 1, 1, &obj0))
SWIG_fail;
56495 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "new_RoutingModel" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const &""'");
56498 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "new_RoutingModel" "', argument " "1"" of type '" "operations_research::RoutingIndexManager const &""'");
56500 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56517 PyObject *resultobj = 0;
56522 PyObject * obj0 = 0 ;
56523 PyObject * obj1 = 0 ;
56526 if (!PyArg_UnpackTuple(args,
"new_RoutingModel", 2, 2, &obj0, &obj1))
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 &""'");
56534 arg1 = reinterpret_cast< operations_research::RoutingIndexManager * >(argp1);
56537 PyObject*
const pyresult = PyObject_CallMethod(
56538 obj1, const_cast<char*>(
"SerializeToString"),
nullptr);
56539 if (pyresult !=
nullptr) {
56540 char* buffer =
nullptr;
56541 Py_ssize_t length = 0;
56542 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
56543 if (buffer !=
nullptr) {
56544 arg2->ParseFromArray(buffer, length);
56546 Py_DECREF(pyresult);
56572 PyObject *argv[3] = {
56578 argc = PyObject_Length(args);
56579 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
56580 argv[ii] = PyTuple_GET_ITEM(args,ii);
56597 PyObject*
const module = PyImport_ImportModule(
"ortools.constraint_solver.routing_parameters_pb2");
56598 if (module !=
nullptr) {
56599 PyObject*
const dict = PyModule_GetDict(module);
56600 if (dict !=
nullptr) {
56601 PyObject*
const clss = PyDict_GetItemString(dict,
"RoutingModelParameters");
56602 if (clss !=
nullptr) {
56603 if (PyObject_IsInstance(argv[1], clss)) {
56620 " Possible C/C++ prototypes are:\n" 56621 " operations_research::RoutingModel::RoutingModel(operations_research::RoutingIndexManager const &)\n" 56622 " operations_research::RoutingModel::RoutingModel(operations_research::RoutingIndexManager const &,operations_research::RoutingModelParameters const &)\n");
56628 PyObject *resultobj = 0;
56632 PyObject * obj0 = 0 ;
56634 if (!PyArg_UnpackTuple(args,
"delete_RoutingModel", 1, 1, &obj0))
SWIG_fail;
56639 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56656 PyObject *resultobj = 0;
56658 std::vector< int64_t > arg2 ;
56661 std::vector< int64_t > temp2 ;
56662 PyObject * obj0 = 0 ;
56663 PyObject * obj1 = 0 ;
56666 if (!PyArg_UnpackTuple(args,
"RoutingModel_RegisterUnaryTransitVector", 2, 2, &obj0, &obj1))
SWIG_fail;
56669 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RegisterUnaryTransitVector" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56671 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56673 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
56674 if (!PyErr_Occurred())
56678 arg2 = std::move(temp2);
56682 result = (int)(arg1)->RegisterUnaryTransitVector(arg2);
56696 PyObject *resultobj = 0;
56701 PyObject * obj0 = 0 ;
56702 PyObject * obj1 = 0 ;
56705 if (!PyArg_UnpackTuple(args,
"RoutingModel_RegisterUnaryTransitCallback", 2, 2, &obj0, &obj1))
SWIG_fail;
56708 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RegisterUnaryTransitCallback" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56710 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56714 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
56719 result = (int)(arg1)->RegisterUnaryTransitCallback(arg2);
56733 PyObject *resultobj = 0;
56738 PyObject * obj0 = 0 ;
56739 PyObject * obj1 = 0 ;
56742 if (!PyArg_UnpackTuple(args,
"RoutingModel_RegisterPositiveUnaryTransitCallback", 2, 2, &obj0, &obj1))
SWIG_fail;
56745 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RegisterPositiveUnaryTransitCallback" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56747 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56751 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
56756 result = (int)(arg1)->RegisterPositiveUnaryTransitCallback(arg2);
56770 PyObject *resultobj = 0;
56772 std::vector< std::vector< int64_t > > arg2 ;
56775 std::vector< std::vector< int64_t > > temp2 ;
56776 PyObject * obj0 = 0 ;
56777 PyObject * obj1 = 0 ;
56780 if (!PyArg_UnpackTuple(args,
"RoutingModel_RegisterTransitMatrix", 2, 2, &obj0, &obj1))
SWIG_fail;
56783 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RegisterTransitMatrix" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56785 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56787 if (!PyList_Check(obj1)) {
56788 PyErr_SetString(PyExc_TypeError,
"Expecting a list of tuples");
56791 int len = PyList_Size(obj1);
56795 for (
size_t i = 0; i < len; ++i) {
56796 PyObject *tuple = PyList_GetItem(obj1, i);
56797 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
56798 PyErr_SetString(PyExc_TypeError,
"Expecting a sequence");
56801 bool is_tuple = PyTuple_Check(tuple);
56802 int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
56803 temp2[i].resize(arity);
56804 for (
size_t j = 0; j < arity; ++j) {
56805 bool success = PyObjAs<int64_t>(
56806 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j),
56814 arg2 = std::move(temp2);
56818 result = (int)(arg1)->RegisterTransitMatrix(arg2);
56832 PyObject *resultobj = 0;
56837 PyObject * obj0 = 0 ;
56838 PyObject * obj1 = 0 ;
56841 if (!PyArg_UnpackTuple(args,
"RoutingModel_RegisterTransitCallback", 2, 2, &obj0, &obj1))
SWIG_fail;
56844 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RegisterTransitCallback" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56846 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56849 arg2 = [
input](int64_t i, int64_t j) {
56850 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
56855 result = (int)(arg1)->RegisterTransitCallback(arg2);
56869 PyObject *resultobj = 0;
56874 PyObject * obj0 = 0 ;
56875 PyObject * obj1 = 0 ;
56878 if (!PyArg_UnpackTuple(args,
"RoutingModel_RegisterPositiveTransitCallback", 2, 2, &obj0, &obj1))
SWIG_fail;
56881 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RegisterPositiveTransitCallback" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
56883 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56886 arg2 = [
input](int64_t i, int64_t j) {
56887 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
56892 result = (int)(arg1)->RegisterPositiveTransitCallback(arg2);
56906 PyObject *resultobj = 0;
56913 PyObject * obj0 = 0 ;
56914 PyObject * obj1 = 0 ;
56917 if (!PyArg_UnpackTuple(args,
"RoutingModel_TransitCallback", 2, 2, &obj0, &obj1))
SWIG_fail;
56920 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_TransitCallback" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
56922 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56927 arg2 = static_cast< int >(val2);
56944 PyObject *resultobj = 0;
56951 PyObject * obj0 = 0 ;
56952 PyObject * obj1 = 0 ;
56955 if (!PyArg_UnpackTuple(args,
"RoutingModel_UnaryTransitCallbackOrNull", 2, 2, &obj0, &obj1))
SWIG_fail;
56958 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_UnaryTransitCallbackOrNull" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
56960 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
56965 arg2 = static_cast< int >(val2);
56982 PyObject *resultobj = 0;
56988 std::string *arg6 = 0 ;
57000 PyObject * obj0 = 0 ;
57001 PyObject * obj1 = 0 ;
57002 PyObject * obj2 = 0 ;
57003 PyObject * obj3 = 0 ;
57004 PyObject * obj4 = 0 ;
57005 PyObject * obj5 = 0 ;
57008 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddDimension", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
57011 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddDimension" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57013 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57018 arg2 = static_cast< int >(val2);
57023 arg3 = static_cast< int64_t >(val3);
57028 arg4 = static_cast< int64_t >(val4);
57033 arg5 = static_cast< bool >(val5);
57035 std::string *ptr = (std::string *)0;
57047 result = (bool)(arg1)->AddDimension(arg2,arg3,arg4,arg5,(std::string
const &)*arg6);
57063 PyObject *resultobj = 0;
57065 std::vector< int > *arg2 = 0 ;
57069 std::string *arg6 = 0 ;
57072 std::vector< int > temp2 ;
57080 PyObject * obj0 = 0 ;
57081 PyObject * obj1 = 0 ;
57082 PyObject * obj2 = 0 ;
57083 PyObject * obj3 = 0 ;
57084 PyObject * obj4 = 0 ;
57085 PyObject * obj5 = 0 ;
57088 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddDimensionWithVehicleTransits", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
57091 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddDimensionWithVehicleTransits" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57093 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57095 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
57096 if (!PyErr_Occurred())
57106 arg3 = static_cast< int64_t >(val3);
57111 arg4 = static_cast< int64_t >(val4);
57116 arg5 = static_cast< bool >(val5);
57118 std::string *ptr = (std::string *)0;
57121 SWIG_exception_fail(
SWIG_ArgError(res6),
"in method '" "RoutingModel_AddDimensionWithVehicleTransits" "', argument " "6"" of type '" "std::string const &""'");
57124 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddDimensionWithVehicleTransits" "', argument " "6"" of type '" "std::string const &""'");
57130 result = (bool)(arg1)->AddDimensionWithVehicleTransits((std::vector< int >
const &)*arg2,arg3,arg4,arg5,(std::string
const &)*arg6);
57146 PyObject *resultobj = 0;
57150 std::vector< int64_t > arg4 ;
57152 std::string *arg6 = 0 ;
57159 std::vector< int64_t > temp4 ;
57163 PyObject * obj0 = 0 ;
57164 PyObject * obj1 = 0 ;
57165 PyObject * obj2 = 0 ;
57166 PyObject * obj3 = 0 ;
57167 PyObject * obj4 = 0 ;
57168 PyObject * obj5 = 0 ;
57171 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddDimensionWithVehicleCapacity", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
57174 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddDimensionWithVehicleCapacity" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57176 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57181 arg2 = static_cast< int >(val2);
57186 arg3 = static_cast< int64_t >(val3);
57188 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
57189 if (!PyErr_Occurred())
57193 arg4 = std::move(temp4);
57199 arg5 = static_cast< bool >(val5);
57201 std::string *ptr = (std::string *)0;
57204 SWIG_exception_fail(
SWIG_ArgError(res6),
"in method '" "RoutingModel_AddDimensionWithVehicleCapacity" "', argument " "6"" of type '" "std::string const &""'");
57207 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddDimensionWithVehicleCapacity" "', argument " "6"" of type '" "std::string const &""'");
57213 result = (bool)(arg1)->AddDimensionWithVehicleCapacity(arg2,arg3,arg4,arg5,(std::string
const &)*arg6);
57229 PyObject *resultobj = 0;
57231 std::vector< int > *arg2 = 0 ;
57233 std::vector< int64_t > arg4 ;
57235 std::string *arg6 = 0 ;
57238 std::vector< int > temp2 ;
57241 std::vector< int64_t > temp4 ;
57245 PyObject * obj0 = 0 ;
57246 PyObject * obj1 = 0 ;
57247 PyObject * obj2 = 0 ;
57248 PyObject * obj3 = 0 ;
57249 PyObject * obj4 = 0 ;
57250 PyObject * obj5 = 0 ;
57253 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddDimensionWithVehicleTransitAndCapacity", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
57256 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddDimensionWithVehicleTransitAndCapacity" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57258 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57260 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
57261 if (!PyErr_Occurred())
57269 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "RoutingModel_AddDimensionWithVehicleTransitAndCapacity" "', argument " "3"" of type '" "int64_t""'");
57271 arg3 = static_cast< int64_t >(val3);
57273 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
57274 if (!PyErr_Occurred())
57278 arg4 = std::move(temp4);
57282 SWIG_exception_fail(
SWIG_ArgError(ecode5),
"in method '" "RoutingModel_AddDimensionWithVehicleTransitAndCapacity" "', argument " "5"" of type '" "bool""'");
57284 arg5 = static_cast< bool >(val5);
57286 std::string *ptr = (std::string *)0;
57289 SWIG_exception_fail(
SWIG_ArgError(res6),
"in method '" "RoutingModel_AddDimensionWithVehicleTransitAndCapacity" "', argument " "6"" of type '" "std::string const &""'");
57292 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddDimensionWithVehicleTransitAndCapacity" "', argument " "6"" of type '" "std::string const &""'");
57298 result = (bool)(arg1)->AddDimensionWithVehicleTransitAndCapacity((std::vector< int >
const &)*arg2,arg3,arg4,arg5,(std::string
const &)*arg6);
57314 PyObject *resultobj = 0;
57320 std::string *arg6 = 0 ;
57332 PyObject * obj0 = 0 ;
57333 PyObject * obj1 = 0 ;
57334 PyObject * obj2 = 0 ;
57335 PyObject * obj3 = 0 ;
57336 PyObject * obj4 = 0 ;
57337 PyObject * obj5 = 0 ;
57338 std::pair< int,bool > result;
57340 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddConstantDimensionWithSlack", 6, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5))
SWIG_fail;
57343 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddConstantDimensionWithSlack" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57345 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57350 arg2 = static_cast< int64_t >(val2);
57355 arg3 = static_cast< int64_t >(val3);
57360 arg4 = static_cast< int64_t >(val4);
57365 arg5 = static_cast< bool >(val5);
57367 std::string *ptr = (std::string *)0;
57370 SWIG_exception_fail(
SWIG_ArgError(res6),
"in method '" "RoutingModel_AddConstantDimensionWithSlack" "', argument " "6"" of type '" "std::string const &""'");
57373 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddConstantDimensionWithSlack" "', argument " "6"" of type '" "std::string const &""'");
57379 result = (arg1)->AddConstantDimensionWithSlack(arg2,arg3,arg4,arg5,(std::string
const &)*arg6);
57386 resultobj = Py_BuildValue(
"(ib)", (&result)->first, (&result)->second);
57397 PyObject *resultobj = 0;
57402 std::string *arg5 = 0 ;
57412 PyObject * obj0 = 0 ;
57413 PyObject * obj1 = 0 ;
57414 PyObject * obj2 = 0 ;
57415 PyObject * obj3 = 0 ;
57416 PyObject * obj4 = 0 ;
57417 std::pair< int,bool > result;
57419 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddConstantDimension", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
57422 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddConstantDimension" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57424 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57429 arg2 = static_cast< int64_t >(val2);
57434 arg3 = static_cast< int64_t >(val3);
57439 arg4 = static_cast< bool >(val4);
57441 std::string *ptr = (std::string *)0;
57447 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddConstantDimension" "', argument " "5"" of type '" "std::string const &""'");
57453 result = (arg1)->AddConstantDimension(arg2,arg3,arg4,(std::string
const &)*arg5);
57460 resultobj = Py_BuildValue(
"(ib)", (&result)->first, (&result)->second);
57471 PyObject *resultobj = 0;
57473 std::vector< int64_t > arg2 ;
57476 std::string *arg5 = 0 ;
57479 std::vector< int64_t > temp2 ;
57485 PyObject * obj0 = 0 ;
57486 PyObject * obj1 = 0 ;
57487 PyObject * obj2 = 0 ;
57488 PyObject * obj3 = 0 ;
57489 PyObject * obj4 = 0 ;
57490 std::pair< int,bool > result;
57492 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddVectorDimension", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
57495 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddVectorDimension" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57497 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57499 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
57500 if (!PyErr_Occurred())
57504 arg2 = std::move(temp2);
57510 arg3 = static_cast< int64_t >(val3);
57515 arg4 = static_cast< bool >(val4);
57517 std::string *ptr = (std::string *)0;
57523 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddVectorDimension" "', argument " "5"" of type '" "std::string const &""'");
57529 result = (arg1)->AddVectorDimension(arg2,arg3,arg4,(std::string
const &)*arg5);
57536 resultobj = Py_BuildValue(
"(ib)", (&result)->first, (&result)->second);
57547 PyObject *resultobj = 0;
57549 std::vector< std::vector< int64_t > > arg2 ;
57552 std::string *arg5 = 0 ;
57555 std::vector< std::vector< int64_t > > temp2 ;
57561 PyObject * obj0 = 0 ;
57562 PyObject * obj1 = 0 ;
57563 PyObject * obj2 = 0 ;
57564 PyObject * obj3 = 0 ;
57565 PyObject * obj4 = 0 ;
57566 std::pair< int,bool > result;
57568 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddMatrixDimension", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
57571 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddMatrixDimension" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57573 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57575 if (!PyList_Check(obj1)) {
57576 PyErr_SetString(PyExc_TypeError,
"Expecting a list of tuples");
57579 int len = PyList_Size(obj1);
57583 for (
size_t i = 0; i < len; ++i) {
57584 PyObject *tuple = PyList_GetItem(obj1, i);
57585 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
57586 PyErr_SetString(PyExc_TypeError,
"Expecting a sequence");
57589 bool is_tuple = PyTuple_Check(tuple);
57590 int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
57591 temp2[i].resize(arity);
57592 for (
size_t j = 0; j < arity; ++j) {
57593 bool success = PyObjAs<int64_t>(
57594 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j),
57602 arg2 = std::move(temp2);
57608 arg3 = static_cast< int64_t >(val3);
57613 arg4 = static_cast< bool >(val4);
57615 std::string *ptr = (std::string *)0;
57621 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddMatrixDimension" "', argument " "5"" of type '" "std::string const &""'");
57627 result = (arg1)->AddMatrixDimension(arg2,arg3,arg4,(std::string
const &)*arg5);
57634 resultobj = Py_BuildValue(
"(ib)", (&result)->first, (&result)->second);
57645 PyObject *resultobj = 0;
57648 SwigValueWrapper< std::vector< operations_research::IntVar * > > arg3 ;
57649 SwigValueWrapper< std::vector< operations_research::IntVar * > > arg4 ;
57654 std::vector< operations_research::IntVar * > temp3 ;
57655 std::vector< operations_research::IntVar * > temp4 ;
57656 PyObject * obj0 = 0 ;
57657 PyObject * obj1 = 0 ;
57658 PyObject * obj2 = 0 ;
57659 PyObject * obj3 = 0 ;
57663 if (!PyArg_UnpackTuple(args,
"RoutingModel_MakePathSpansAndTotalSlacks", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
57666 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_MakePathSpansAndTotalSlacks" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
57668 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57671 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_MakePathSpansAndTotalSlacks" "', argument " "2"" of type '" "operations_research::RoutingDimension const *""'");
57673 arg2 = reinterpret_cast< operations_research::RoutingDimension * >(argp2);
57675 if (!vector_input_helper(obj2, &temp3, PyObjAs<operations_research::IntVar*>)) {
57676 if (!PyErr_Occurred())
57680 arg3 = std::move(temp3);
57683 if (!vector_input_helper(obj3, &temp4, PyObjAs<operations_research::IntVar*>)) {
57684 if (!PyErr_Occurred())
57688 arg4 = std::move(temp4);
57701 Py_INCREF(resultobj);
57712 PyObject *resultobj = 0;
57716 PyObject * obj0 = 0 ;
57717 SwigValueWrapper< std::vector< std::string > > result;
57719 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetAllDimensionNames", 1, 1, &obj0))
SWIG_fail;
57722 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetAllDimensionNames" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57724 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57734 resultobj = vector_output_helper(&result, &SwigString_FromString);
57743 PyObject *resultobj = 0;
57747 PyObject * obj0 = 0 ;
57748 std::vector< operations_research::RoutingDimension * > *result = 0 ;
57750 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDimensions", 1, 1, &obj0))
SWIG_fail;
57753 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDimensions" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57755 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57772 PyObject *resultobj = 0;
57776 PyObject * obj0 = 0 ;
57777 SwigValueWrapper< std::vector< operations_research::RoutingDimension * > > result;
57779 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDimensionsWithSoftOrSpanCosts", 1, 1, &obj0))
SWIG_fail;
57782 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDimensionsWithSoftOrSpanCosts" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57784 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57801 PyObject *resultobj = 0;
57805 PyObject * obj0 = 0 ;
57806 std::vector< std::unique_ptr< operations_research::GlobalDimensionCumulOptimizer > > *result = 0 ;
57808 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetGlobalDimensionCumulOptimizers", 1, 1, &obj0))
SWIG_fail;
57811 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetGlobalDimensionCumulOptimizers" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57813 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57816 result = (std::vector< std::unique_ptr< operations_research::GlobalDimensionCumulOptimizer > > *) &((
operations_research::RoutingModel const *)arg1)->GetGlobalDimensionCumulOptimizers();
57830 PyObject *resultobj = 0;
57834 PyObject * obj0 = 0 ;
57835 std::vector< std::unique_ptr< operations_research::GlobalDimensionCumulOptimizer > > *result = 0 ;
57837 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetGlobalDimensionCumulMPOptimizers", 1, 1, &obj0))
SWIG_fail;
57840 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetGlobalDimensionCumulMPOptimizers" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57842 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57845 result = (std::vector< std::unique_ptr< operations_research::GlobalDimensionCumulOptimizer > > *) &((
operations_research::RoutingModel const *)arg1)->GetGlobalDimensionCumulMPOptimizers();
57859 PyObject *resultobj = 0;
57863 PyObject * obj0 = 0 ;
57864 std::vector< std::unique_ptr< operations_research::LocalDimensionCumulOptimizer > > *result = 0 ;
57866 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetLocalDimensionCumulOptimizers", 1, 1, &obj0))
SWIG_fail;
57869 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetLocalDimensionCumulOptimizers" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57871 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57874 result = (std::vector< std::unique_ptr< operations_research::LocalDimensionCumulOptimizer > > *) &((
operations_research::RoutingModel const *)arg1)->GetLocalDimensionCumulOptimizers();
57888 PyObject *resultobj = 0;
57892 PyObject * obj0 = 0 ;
57893 std::vector< std::unique_ptr< operations_research::LocalDimensionCumulOptimizer > > *result = 0 ;
57895 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetLocalDimensionCumulMPOptimizers", 1, 1, &obj0))
SWIG_fail;
57898 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetLocalDimensionCumulMPOptimizers" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57900 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57903 result = (std::vector< std::unique_ptr< operations_research::LocalDimensionCumulOptimizer > > *) &((
operations_research::RoutingModel const *)arg1)->GetLocalDimensionCumulMPOptimizers();
57917 PyObject *resultobj = 0;
57924 PyObject * obj0 = 0 ;
57925 PyObject * obj1 = 0 ;
57928 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetMutableGlobalCumulOptimizer", 2, 2, &obj0, &obj1))
SWIG_fail;
57931 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetMutableGlobalCumulOptimizer" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57933 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57936 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_GetMutableGlobalCumulOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
57939 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_GetMutableGlobalCumulOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
57941 arg2 = reinterpret_cast< operations_research::RoutingDimension * >(argp2);
57958 PyObject *resultobj = 0;
57965 PyObject * obj0 = 0 ;
57966 PyObject * obj1 = 0 ;
57969 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetMutableGlobalCumulMPOptimizer", 2, 2, &obj0, &obj1))
SWIG_fail;
57972 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetMutableGlobalCumulMPOptimizer" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
57974 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
57977 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_GetMutableGlobalCumulMPOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
57980 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_GetMutableGlobalCumulMPOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
57982 arg2 = reinterpret_cast< operations_research::RoutingDimension * >(argp2);
57999 PyObject *resultobj = 0;
58006 PyObject * obj0 = 0 ;
58007 PyObject * obj1 = 0 ;
58010 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetMutableLocalCumulOptimizer", 2, 2, &obj0, &obj1))
SWIG_fail;
58013 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetMutableLocalCumulOptimizer" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58015 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58018 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_GetMutableLocalCumulOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
58021 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_GetMutableLocalCumulOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
58023 arg2 = reinterpret_cast< operations_research::RoutingDimension * >(argp2);
58040 PyObject *resultobj = 0;
58047 PyObject * obj0 = 0 ;
58048 PyObject * obj1 = 0 ;
58051 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetMutableLocalCumulMPOptimizer", 2, 2, &obj0, &obj1))
SWIG_fail;
58054 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetMutableLocalCumulMPOptimizer" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58056 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58059 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_GetMutableLocalCumulMPOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
58062 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_GetMutableLocalCumulMPOptimizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const &""'");
58064 arg2 = reinterpret_cast< operations_research::RoutingDimension * >(argp2);
58081 PyObject *resultobj = 0;
58083 std::string *arg2 = 0 ;
58087 PyObject * obj0 = 0 ;
58088 PyObject * obj1 = 0 ;
58091 if (!PyArg_UnpackTuple(args,
"RoutingModel_HasDimension", 2, 2, &obj0, &obj1))
SWIG_fail;
58094 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_HasDimension" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58096 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58098 std::string *ptr = (std::string *)0;
58126 PyObject *resultobj = 0;
58128 std::string *arg2 = 0 ;
58132 PyObject * obj0 = 0 ;
58133 PyObject * obj1 = 0 ;
58136 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDimensionOrDie", 2, 2, &obj0, &obj1))
SWIG_fail;
58139 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDimensionOrDie" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58141 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58143 std::string *ptr = (std::string *)0;
58149 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_GetDimensionOrDie" "', argument " "2"" of type '" "std::string const &""'");
58171 PyObject *resultobj = 0;
58173 std::string *arg2 = 0 ;
58177 PyObject * obj0 = 0 ;
58178 PyObject * obj1 = 0 ;
58181 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetMutableDimension", 2, 2, &obj0, &obj1))
SWIG_fail;
58184 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetMutableDimension" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58186 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58188 std::string *ptr = (std::string *)0;
58194 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_GetMutableDimension" "', argument " "2"" of type '" "std::string const &""'");
58216 PyObject *resultobj = 0;
58218 std::string *arg2 = 0 ;
58222 PyObject * obj0 = 0 ;
58223 PyObject * obj1 = 0 ;
58225 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetPrimaryConstrainedDimension", 2, 2, &obj0, &obj1))
SWIG_fail;
58228 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetPrimaryConstrainedDimension" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58230 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58232 std::string *ptr = (std::string *)0;
58235 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_SetPrimaryConstrainedDimension" "', argument " "2"" of type '" "std::string const &""'");
58238 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_SetPrimaryConstrainedDimension" "', argument " "2"" of type '" "std::string const &""'");
58244 (arg1)->SetPrimaryConstrainedDimension((std::string
const &)*arg2);
58260 PyObject *resultobj = 0;
58264 PyObject * obj0 = 0 ;
58265 std::string *result = 0 ;
58267 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetPrimaryConstrainedDimension", 1, 1, &obj0))
SWIG_fail;
58270 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetPrimaryConstrainedDimension" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58272 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58289 PyObject *resultobj = 0;
58296 PyObject * obj0 = 0 ;
58297 PyObject * obj1 = 0 ;
58298 std::vector< int > *result = 0 ;
58300 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDimensionResourceGroupIndices", 2, 2, &obj0, &obj1))
SWIG_fail;
58303 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDimensionResourceGroupIndices" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58305 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58308 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_GetDimensionResourceGroupIndices" "', argument " "2"" of type '" "operations_research::RoutingDimension const *""'");
58310 arg2 = reinterpret_cast< operations_research::RoutingDimension * >(argp2);
58320 resultobj = vector_output_helper(result, &PyInt_FromLong);
58329 PyObject *resultobj = 0;
58331 std::vector< int64_t > *arg2 = 0 ;
58336 std::vector< int64_t > temp2 ;
58341 PyObject * obj0 = 0 ;
58342 PyObject * obj1 = 0 ;
58343 PyObject * obj2 = 0 ;
58344 PyObject * obj3 = 0 ;
58347 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddDisjunction", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
58350 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddDisjunction" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58352 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58354 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
58355 if (!PyErr_Occurred())
58365 arg3 = static_cast< int64_t >(val3);
58370 arg4 = static_cast< int64_t >(val4);
58373 result = (arg1)->AddDisjunction((std::vector< int64_t >
const &)*arg2,arg3,arg4);
58380 resultobj = PyInt_FromLong((&result)->
value());
58389 PyObject *resultobj = 0;
58391 std::vector< int64_t > *arg2 = 0 ;
58395 std::vector< int64_t > temp2 ;
58398 PyObject * obj0 = 0 ;
58399 PyObject * obj1 = 0 ;
58400 PyObject * obj2 = 0 ;
58403 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddDisjunction", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
58406 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddDisjunction" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58408 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58410 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
58411 if (!PyErr_Occurred())
58421 arg3 = static_cast< int64_t >(val3);
58424 result = (arg1)->AddDisjunction((std::vector< int64_t >
const &)*arg2,arg3);
58431 resultobj = PyInt_FromLong((&result)->
value());
58440 PyObject *resultobj = 0;
58442 std::vector< int64_t > *arg2 = 0 ;
58445 std::vector< int64_t > temp2 ;
58446 PyObject * obj0 = 0 ;
58447 PyObject * obj1 = 0 ;
58450 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddDisjunction", 2, 2, &obj0, &obj1))
SWIG_fail;
58453 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddDisjunction" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58455 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58457 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
58458 if (!PyErr_Occurred())
58466 result = (arg1)->AddDisjunction((std::vector< int64_t >
const &)*arg2);
58473 resultobj = PyInt_FromLong((&result)->
value());
58483 PyObject *argv[5] = {
58489 argc = PyObject_Length(args);
58490 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
58491 argv[ii] = PyTuple_GET_ITEM(args,ii);
58500 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
58503 const bool is_tuple = PyTuple_Check(argv[1]);
58504 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
58506 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
58507 :PyList_GetItem(argv[1], i))) {
58525 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
58528 const bool is_tuple = PyTuple_Check(argv[1]);
58529 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
58531 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
58532 :PyList_GetItem(argv[1], i))) {
58556 if (!PyTuple_Check(argv[1]) && !PyList_Check(argv[1])) {
58559 const bool is_tuple = PyTuple_Check(argv[1]);
58560 const size_t size = is_tuple ? PyTuple_Size(argv[1]) : PyList_Size(argv[1]);
58562 while (i < size && SwigPyIntOrLong_Check(is_tuple ? PyTuple_GetItem(argv[1], i)
58563 :PyList_GetItem(argv[1], i))) {
58589 " Possible C/C++ prototypes are:\n" 58590 " operations_research::RoutingModel::AddDisjunction(std::vector< int64_t > const &,int64_t,int64_t)\n" 58591 " operations_research::RoutingModel::AddDisjunction(std::vector< int64_t > const &,int64_t)\n" 58592 " operations_research::RoutingModel::AddDisjunction(std::vector< int64_t > const &)\n");
58598 PyObject *resultobj = 0;
58605 PyObject * obj0 = 0 ;
58606 PyObject * obj1 = 0 ;
58607 std::vector< operations_research::RoutingModel::DisjunctionIndex > *result = 0 ;
58609 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDisjunctionIndices", 2, 2, &obj0, &obj1))
SWIG_fail;
58612 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDisjunctionIndices" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58614 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58619 arg2 = static_cast< int64_t >(val2);
58622 result = (std::vector< operations_research::RoutingModel::DisjunctionIndex > *) &((
operations_research::RoutingModel const *)arg1)->GetDisjunctionIndices(arg2);
58629 resultobj = vector_output_helper(result, &PyInt_FromIndexT<operations_research::RoutingDisjunctionIndex>);
58638 PyObject *resultobj = 0;
58643 PyObject * obj0 = 0 ;
58644 PyObject * obj1 = 0 ;
58647 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDisjunctionPenalty", 2, 2, &obj0, &obj1))
SWIG_fail;
58650 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDisjunctionPenalty" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58652 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58654 arg2 = operations_research::RoutingDisjunctionIndex(PyInt_AsLong(obj1));
58672 PyObject *resultobj = 0;
58677 PyObject * obj0 = 0 ;
58678 PyObject * obj1 = 0 ;
58681 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDisjunctionMaxCardinality", 2, 2, &obj0, &obj1))
SWIG_fail;
58684 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDisjunctionMaxCardinality" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58686 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58688 arg2 = operations_research::RoutingDisjunctionIndex(PyInt_AsLong(obj1));
58706 PyObject *resultobj = 0;
58710 PyObject * obj0 = 0 ;
58713 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetNumberOfDisjunctions", 1, 1, &obj0))
SWIG_fail;
58716 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetNumberOfDisjunctions" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58718 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58735 PyObject *resultobj = 0;
58739 PyObject * obj0 = 0 ;
58740 std::vector< std::pair< int64_t,int64_t > > result;
58742 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetPerfectBinaryDisjunctions", 1, 1, &obj0))
SWIG_fail;
58745 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetPerfectBinaryDisjunctions" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
58747 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58764 PyObject *resultobj = 0;
58768 PyObject * obj0 = 0 ;
58770 if (!PyArg_UnpackTuple(args,
"RoutingModel_IgnoreDisjunctionsAlreadyForcedToZero", 1, 1, &obj0))
SWIG_fail;
58773 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_IgnoreDisjunctionsAlreadyForcedToZero" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58775 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58778 (arg1)->IgnoreDisjunctionsAlreadyForcedToZero();
58792 PyObject *resultobj = 0;
58794 std::vector< int64_t > *arg2 = 0 ;
58798 std::vector< int64_t > temp2 ;
58801 PyObject * obj0 = 0 ;
58802 PyObject * obj1 = 0 ;
58803 PyObject * obj2 = 0 ;
58805 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddSoftSameVehicleConstraint", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
58808 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddSoftSameVehicleConstraint" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58810 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58812 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
58813 if (!PyErr_Occurred())
58823 arg3 = static_cast< int64_t >(val3);
58826 (arg1)->AddSoftSameVehicleConstraint((std::vector< int64_t >
const &)*arg2,arg3);
58840 PyObject *resultobj = 0;
58842 std::vector< int > *arg2 = 0 ;
58846 std::vector< int > temp2 ;
58849 PyObject * obj0 = 0 ;
58850 PyObject * obj1 = 0 ;
58851 PyObject * obj2 = 0 ;
58853 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetAllowedVehiclesForIndex", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
58856 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetAllowedVehiclesForIndex" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58858 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58860 if (!vector_input_helper(obj1, &temp2, PyObjAs<int>)) {
58861 if (!PyErr_Occurred())
58871 arg3 = static_cast< int64_t >(val3);
58874 (arg1)->SetAllowedVehiclesForIndex((std::vector< int >
const &)*arg2,arg3);
58888 PyObject *resultobj = 0;
58898 PyObject * obj0 = 0 ;
58899 PyObject * obj1 = 0 ;
58900 PyObject * obj2 = 0 ;
58903 if (!PyArg_UnpackTuple(args,
"RoutingModel_IsVehicleAllowedForIndex", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
58906 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_IsVehicleAllowedForIndex" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58908 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58913 arg2 = static_cast< int >(val2);
58918 arg3 = static_cast< int64_t >(val3);
58921 result = (bool)(arg1)->IsVehicleAllowedForIndex(arg2,arg3);
58935 PyObject *resultobj = 0;
58945 PyObject * obj0 = 0 ;
58946 PyObject * obj1 = 0 ;
58947 PyObject * obj2 = 0 ;
58949 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddPickupAndDelivery", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
58952 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddPickupAndDelivery" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58954 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58959 arg2 = static_cast< int64_t >(val2);
58964 arg3 = static_cast< int64_t >(val3);
58967 (arg1)->AddPickupAndDelivery(arg2,arg3);
58981 PyObject *resultobj = 0;
58987 PyObject * obj0 = 0 ;
58988 PyObject * obj1 = 0 ;
58989 PyObject * obj2 = 0 ;
58991 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddPickupAndDeliverySets", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
58994 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddPickupAndDeliverySets" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
58996 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
58998 arg2 = operations_research::RoutingDisjunctionIndex(PyInt_AsLong(obj1));
59001 arg3 = operations_research::RoutingDisjunctionIndex(PyInt_AsLong(obj2));
59005 (arg1)->AddPickupAndDeliverySets(arg2,arg3);
59019 PyObject *resultobj = 0;
59026 PyObject * obj0 = 0 ;
59027 PyObject * obj1 = 0 ;
59028 std::vector< std::pair< int,int > > *result = 0 ;
59030 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetPickupIndexPairs", 2, 2, &obj0, &obj1))
SWIG_fail;
59033 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetPickupIndexPairs" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59035 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59040 arg2 = static_cast< int64_t >(val2);
59057 PyObject *resultobj = 0;
59064 PyObject * obj0 = 0 ;
59065 PyObject * obj1 = 0 ;
59066 std::vector< std::pair< int,int > > *result = 0 ;
59068 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDeliveryIndexPairs", 2, 2, &obj0, &obj1))
SWIG_fail;
59071 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDeliveryIndexPairs" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59073 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59078 arg2 = static_cast< int64_t >(val2);
59095 PyObject *resultobj = 0;
59102 PyObject * obj0 = 0 ;
59103 PyObject * obj1 = 0 ;
59105 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetPickupAndDeliveryPolicyOfAllVehicles", 2, 2, &obj0, &obj1))
SWIG_fail;
59108 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetPickupAndDeliveryPolicyOfAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59110 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59113 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingModel_SetPickupAndDeliveryPolicyOfAllVehicles" "', argument " "2"" of type '" "operations_research::RoutingModel::PickupAndDeliveryPolicy""'");
59115 arg2 = static_cast< operations_research::RoutingModel::PickupAndDeliveryPolicy >(val2);
59118 (arg1)->SetPickupAndDeliveryPolicyOfAllVehicles(arg2);
59132 PyObject *resultobj = 0;
59142 PyObject * obj0 = 0 ;
59143 PyObject * obj1 = 0 ;
59144 PyObject * obj2 = 0 ;
59146 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetPickupAndDeliveryPolicyOfVehicle", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
59149 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetPickupAndDeliveryPolicyOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59151 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59154 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingModel_SetPickupAndDeliveryPolicyOfVehicle" "', argument " "2"" of type '" "operations_research::RoutingModel::PickupAndDeliveryPolicy""'");
59156 arg2 = static_cast< operations_research::RoutingModel::PickupAndDeliveryPolicy >(val2);
59161 arg3 = static_cast< int >(val3);
59164 (arg1)->SetPickupAndDeliveryPolicyOfVehicle(arg2,arg3);
59178 PyObject *resultobj = 0;
59185 PyObject * obj0 = 0 ;
59186 PyObject * obj1 = 0 ;
59189 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetPickupAndDeliveryPolicyOfVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
59192 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetPickupAndDeliveryPolicyOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59194 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59199 arg2 = static_cast< int >(val2);
59216 PyObject *resultobj = 0;
59220 PyObject * obj0 = 0 ;
59223 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetNumOfSingletonNodes", 1, 1, &obj0))
SWIG_fail;
59226 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetNumOfSingletonNodes" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59228 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59245 PyObject *resultobj = 0;
59258 PyObject * obj0 = 0 ;
59259 PyObject * obj1 = 0 ;
59260 PyObject * obj2 = 0 ;
59261 PyObject * obj3 = 0 ;
59263 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetVisitType", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
59266 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetVisitType" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59268 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59273 arg2 = static_cast< int64_t >(val2);
59278 arg3 = static_cast< int >(val3);
59281 SWIG_exception_fail(
SWIG_ArgError(ecode4),
"in method '" "RoutingModel_SetVisitType" "', argument " "4"" of type '" "operations_research::RoutingModel::VisitTypePolicy""'");
59283 arg4 = static_cast< operations_research::RoutingModel::VisitTypePolicy >(val4);
59286 (arg1)->SetVisitType(arg2,arg3,arg4);
59300 PyObject *resultobj = 0;
59307 PyObject * obj0 = 0 ;
59308 PyObject * obj1 = 0 ;
59311 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetVisitType", 2, 2, &obj0, &obj1))
SWIG_fail;
59314 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetVisitType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59316 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59321 arg2 = static_cast< int64_t >(val2);
59338 PyObject *resultobj = 0;
59345 PyObject * obj0 = 0 ;
59346 PyObject * obj1 = 0 ;
59347 std::vector< int > *result = 0 ;
59349 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetSingleNodesOfType", 2, 2, &obj0, &obj1))
SWIG_fail;
59352 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetSingleNodesOfType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59354 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59359 arg2 = static_cast< int >(val2);
59369 resultobj = vector_output_helper(result, &PyInt_FromLong);
59378 PyObject *resultobj = 0;
59385 PyObject * obj0 = 0 ;
59386 PyObject * obj1 = 0 ;
59387 std::vector< int > *result = 0 ;
59389 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetPairIndicesOfType", 2, 2, &obj0, &obj1))
SWIG_fail;
59392 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetPairIndicesOfType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59394 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59399 arg2 = static_cast< int >(val2);
59409 resultobj = vector_output_helper(result, &PyInt_FromLong);
59418 PyObject *resultobj = 0;
59425 PyObject * obj0 = 0 ;
59426 PyObject * obj1 = 0 ;
59429 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetVisitTypePolicy", 2, 2, &obj0, &obj1))
SWIG_fail;
59432 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetVisitTypePolicy" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59434 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59439 arg2 = static_cast< int64_t >(val2);
59456 PyObject *resultobj = 0;
59460 PyObject * obj0 = 0 ;
59462 if (!PyArg_UnpackTuple(args,
"RoutingModel_CloseVisitTypes", 1, 1, &obj0))
SWIG_fail;
59465 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_CloseVisitTypes" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59467 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59470 (arg1)->CloseVisitTypes();
59484 PyObject *resultobj = 0;
59488 PyObject * obj0 = 0 ;
59491 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetNumberOfVisitTypes", 1, 1, &obj0))
SWIG_fail;
59494 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetNumberOfVisitTypes" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59496 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59513 PyObject *resultobj = 0;
59523 PyObject * obj0 = 0 ;
59524 PyObject * obj1 = 0 ;
59525 PyObject * obj2 = 0 ;
59527 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddHardTypeIncompatibility", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
59530 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddHardTypeIncompatibility" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59532 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59537 arg2 = static_cast< int >(val2);
59542 arg3 = static_cast< int >(val3);
59545 (arg1)->AddHardTypeIncompatibility(arg2,arg3);
59559 PyObject *resultobj = 0;
59569 PyObject * obj0 = 0 ;
59570 PyObject * obj1 = 0 ;
59571 PyObject * obj2 = 0 ;
59573 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddTemporalTypeIncompatibility", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
59576 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddTemporalTypeIncompatibility" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59578 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59583 arg2 = static_cast< int >(val2);
59588 arg3 = static_cast< int >(val3);
59591 (arg1)->AddTemporalTypeIncompatibility(arg2,arg3);
59605 PyObject *resultobj = 0;
59612 PyObject * obj0 = 0 ;
59613 PyObject * obj1 = 0 ;
59614 absl::flat_hash_set< int > *result = 0 ;
59616 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetHardTypeIncompatibilitiesOfType", 2, 2, &obj0, &obj1))
SWIG_fail;
59619 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetHardTypeIncompatibilitiesOfType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59621 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59626 arg2 = static_cast< int >(val2);
59643 PyObject *resultobj = 0;
59650 PyObject * obj0 = 0 ;
59651 PyObject * obj1 = 0 ;
59652 absl::flat_hash_set< int > *result = 0 ;
59654 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetTemporalTypeIncompatibilitiesOfType", 2, 2, &obj0, &obj1))
SWIG_fail;
59657 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetTemporalTypeIncompatibilitiesOfType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59659 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59664 arg2 = static_cast< int >(val2);
59681 PyObject *resultobj = 0;
59685 PyObject * obj0 = 0 ;
59688 if (!PyArg_UnpackTuple(args,
"RoutingModel_HasHardTypeIncompatibilities", 1, 1, &obj0))
SWIG_fail;
59691 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_HasHardTypeIncompatibilities" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59693 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59710 PyObject *resultobj = 0;
59714 PyObject * obj0 = 0 ;
59717 if (!PyArg_UnpackTuple(args,
"RoutingModel_HasTemporalTypeIncompatibilities", 1, 1, &obj0))
SWIG_fail;
59720 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_HasTemporalTypeIncompatibilities" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59722 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59739 PyObject *resultobj = 0;
59742 absl::flat_hash_set< int > arg3 ;
59749 PyObject * obj0 = 0 ;
59750 PyObject * obj1 = 0 ;
59751 PyObject * obj2 = 0 ;
59753 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddSameVehicleRequiredTypeAlternatives", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
59756 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddSameVehicleRequiredTypeAlternatives" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59758 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59763 arg2 = static_cast< int >(val2);
59767 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "RoutingModel_AddSameVehicleRequiredTypeAlternatives" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59770 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddSameVehicleRequiredTypeAlternatives" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59772 absl::flat_hash_set< int > * temp =
reinterpret_cast< absl::flat_hash_set< int > *
>(argp3);
59779 (arg1)->AddSameVehicleRequiredTypeAlternatives(arg2,arg3);
59793 PyObject *resultobj = 0;
59796 absl::flat_hash_set< int > arg3 ;
59803 PyObject * obj0 = 0 ;
59804 PyObject * obj1 = 0 ;
59805 PyObject * obj2 = 0 ;
59807 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddRequiredTypeAlternativesWhenAddingType", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
59810 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddRequiredTypeAlternativesWhenAddingType" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59812 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59815 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingModel_AddRequiredTypeAlternativesWhenAddingType" "', argument " "2"" of type '" "int""'");
59817 arg2 = static_cast< int >(val2);
59821 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "RoutingModel_AddRequiredTypeAlternativesWhenAddingType" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59824 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddRequiredTypeAlternativesWhenAddingType" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59826 absl::flat_hash_set< int > * temp =
reinterpret_cast< absl::flat_hash_set< int > *
>(argp3);
59833 (arg1)->AddRequiredTypeAlternativesWhenAddingType(arg2,arg3);
59847 PyObject *resultobj = 0;
59850 absl::flat_hash_set< int > arg3 ;
59857 PyObject * obj0 = 0 ;
59858 PyObject * obj1 = 0 ;
59859 PyObject * obj2 = 0 ;
59861 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddRequiredTypeAlternativesWhenRemovingType", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
59864 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddRequiredTypeAlternativesWhenRemovingType" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
59866 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59869 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingModel_AddRequiredTypeAlternativesWhenRemovingType" "', argument " "2"" of type '" "int""'");
59871 arg2 = static_cast< int >(val2);
59875 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "RoutingModel_AddRequiredTypeAlternativesWhenRemovingType" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59878 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AddRequiredTypeAlternativesWhenRemovingType" "', argument " "3"" of type '" "absl::flat_hash_set< int >""'");
59880 absl::flat_hash_set< int > * temp =
reinterpret_cast< absl::flat_hash_set< int > *
>(argp3);
59887 (arg1)->AddRequiredTypeAlternativesWhenRemovingType(arg2,arg3);
59901 PyObject *resultobj = 0;
59908 PyObject * obj0 = 0 ;
59909 PyObject * obj1 = 0 ;
59910 std::vector< absl::flat_hash_set< int > > *result = 0 ;
59912 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetSameVehicleRequiredTypeAlternativesOfType", 2, 2, &obj0, &obj1))
SWIG_fail;
59915 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetSameVehicleRequiredTypeAlternativesOfType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59917 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59920 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingModel_GetSameVehicleRequiredTypeAlternativesOfType" "', argument " "2"" of type '" "int""'");
59922 arg2 = static_cast< int >(val2);
59939 PyObject *resultobj = 0;
59946 PyObject * obj0 = 0 ;
59947 PyObject * obj1 = 0 ;
59948 std::vector< absl::flat_hash_set< int > > *result = 0 ;
59950 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetRequiredTypeAlternativesWhenAddingType", 2, 2, &obj0, &obj1))
SWIG_fail;
59953 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetRequiredTypeAlternativesWhenAddingType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59955 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59958 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingModel_GetRequiredTypeAlternativesWhenAddingType" "', argument " "2"" of type '" "int""'");
59960 arg2 = static_cast< int >(val2);
59977 PyObject *resultobj = 0;
59984 PyObject * obj0 = 0 ;
59985 PyObject * obj1 = 0 ;
59986 std::vector< absl::flat_hash_set< int > > *result = 0 ;
59988 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetRequiredTypeAlternativesWhenRemovingType", 2, 2, &obj0, &obj1))
SWIG_fail;
59991 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetRequiredTypeAlternativesWhenRemovingType" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
59993 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
59996 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingModel_GetRequiredTypeAlternativesWhenRemovingType" "', argument " "2"" of type '" "int""'");
59998 arg2 = static_cast< int >(val2);
60015 PyObject *resultobj = 0;
60019 PyObject * obj0 = 0 ;
60022 if (!PyArg_UnpackTuple(args,
"RoutingModel_HasSameVehicleTypeRequirements", 1, 1, &obj0))
SWIG_fail;
60025 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_HasSameVehicleTypeRequirements" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60027 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60044 PyObject *resultobj = 0;
60048 PyObject * obj0 = 0 ;
60051 if (!PyArg_UnpackTuple(args,
"RoutingModel_HasTemporalTypeRequirements", 1, 1, &obj0))
SWIG_fail;
60054 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_HasTemporalTypeRequirements" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60056 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60073 PyObject *resultobj = 0;
60077 PyObject * obj0 = 0 ;
60080 if (!PyArg_UnpackTuple(args,
"RoutingModel_HasTypeRegulations", 1, 1, &obj0))
SWIG_fail;
60083 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_HasTypeRegulations" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60085 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60102 PyObject *resultobj = 0;
60109 PyObject * obj0 = 0 ;
60110 PyObject * obj1 = 0 ;
60113 if (!PyArg_UnpackTuple(args,
"RoutingModel_UnperformedPenalty", 2, 2, &obj0, &obj1))
SWIG_fail;
60116 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_UnperformedPenalty" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60118 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60123 arg2 = static_cast< int64_t >(val2);
60140 PyObject *resultobj = 0;
60150 PyObject * obj0 = 0 ;
60151 PyObject * obj1 = 0 ;
60152 PyObject * obj2 = 0 ;
60155 if (!PyArg_UnpackTuple(args,
"RoutingModel_UnperformedPenaltyOrValue", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
60158 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_UnperformedPenaltyOrValue" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60160 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60165 arg2 = static_cast< int64_t >(val2);
60170 arg3 = static_cast< int64_t >(val3);
60187 PyObject *resultobj = 0;
60191 PyObject * obj0 = 0 ;
60194 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetDepot", 1, 1, &obj0))
SWIG_fail;
60197 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetDepot" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60199 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60216 PyObject *resultobj = 0;
60223 PyObject * obj0 = 0 ;
60224 PyObject * obj1 = 0 ;
60226 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetMaximumNumberOfActiveVehicles", 2, 2, &obj0, &obj1))
SWIG_fail;
60229 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetMaximumNumberOfActiveVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60231 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60236 arg2 = static_cast< int >(val2);
60239 (arg1)->SetMaximumNumberOfActiveVehicles(arg2);
60253 PyObject *resultobj = 0;
60257 PyObject * obj0 = 0 ;
60260 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetMaximumNumberOfActiveVehicles", 1, 1, &obj0))
SWIG_fail;
60263 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetMaximumNumberOfActiveVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60265 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60282 PyObject *resultobj = 0;
60289 PyObject * obj0 = 0 ;
60290 PyObject * obj1 = 0 ;
60292 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetArcCostEvaluatorOfAllVehicles", 2, 2, &obj0, &obj1))
SWIG_fail;
60295 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetArcCostEvaluatorOfAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60297 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60302 arg2 = static_cast< int >(val2);
60305 (arg1)->SetArcCostEvaluatorOfAllVehicles(arg2);
60319 PyObject *resultobj = 0;
60329 PyObject * obj0 = 0 ;
60330 PyObject * obj1 = 0 ;
60331 PyObject * obj2 = 0 ;
60333 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetArcCostEvaluatorOfVehicle", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
60336 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetArcCostEvaluatorOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60338 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60343 arg2 = static_cast< int >(val2);
60348 arg3 = static_cast< int >(val3);
60351 (arg1)->SetArcCostEvaluatorOfVehicle(arg2,arg3);
60365 PyObject *resultobj = 0;
60372 PyObject * obj0 = 0 ;
60373 PyObject * obj1 = 0 ;
60375 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetFixedCostOfAllVehicles", 2, 2, &obj0, &obj1))
SWIG_fail;
60378 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetFixedCostOfAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60380 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60385 arg2 = static_cast< int64_t >(val2);
60388 (arg1)->SetFixedCostOfAllVehicles(arg2);
60402 PyObject *resultobj = 0;
60412 PyObject * obj0 = 0 ;
60413 PyObject * obj1 = 0 ;
60414 PyObject * obj2 = 0 ;
60416 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetFixedCostOfVehicle", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
60419 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetFixedCostOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60421 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60426 arg2 = static_cast< int64_t >(val2);
60431 arg3 = static_cast< int >(val3);
60434 (arg1)->SetFixedCostOfVehicle(arg2,arg3);
60448 PyObject *resultobj = 0;
60455 PyObject * obj0 = 0 ;
60456 PyObject * obj1 = 0 ;
60459 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetFixedCostOfVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
60462 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetFixedCostOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60464 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60469 arg2 = static_cast< int >(val2);
60486 PyObject *resultobj = 0;
60496 PyObject * obj0 = 0 ;
60497 PyObject * obj1 = 0 ;
60498 PyObject * obj2 = 0 ;
60500 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetAmortizedCostFactorsOfAllVehicles", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
60503 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetAmortizedCostFactorsOfAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60505 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60508 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingModel_SetAmortizedCostFactorsOfAllVehicles" "', argument " "2"" of type '" "int64_t""'");
60510 arg2 = static_cast< int64_t >(val2);
60513 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "RoutingModel_SetAmortizedCostFactorsOfAllVehicles" "', argument " "3"" of type '" "int64_t""'");
60515 arg3 = static_cast< int64_t >(val3);
60518 (arg1)->SetAmortizedCostFactorsOfAllVehicles(arg2,arg3);
60532 PyObject *resultobj = 0;
60545 PyObject * obj0 = 0 ;
60546 PyObject * obj1 = 0 ;
60547 PyObject * obj2 = 0 ;
60548 PyObject * obj3 = 0 ;
60550 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetAmortizedCostFactorsOfVehicle", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
60553 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetAmortizedCostFactorsOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60555 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60560 arg2 = static_cast< int64_t >(val2);
60565 arg3 = static_cast< int64_t >(val3);
60570 arg4 = static_cast< int >(val4);
60573 (arg1)->SetAmortizedCostFactorsOfVehicle(arg2,arg3,arg4);
60587 PyObject *resultobj = 0;
60591 PyObject * obj0 = 0 ;
60592 std::vector< int64_t > *result = 0 ;
60594 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetAmortizedLinearCostFactorOfVehicles", 1, 1, &obj0))
SWIG_fail;
60597 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetAmortizedLinearCostFactorOfVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60599 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60609 resultobj = vector_output_helper(result, &PyLong_FromLongLong);
60618 PyObject *resultobj = 0;
60622 PyObject * obj0 = 0 ;
60623 std::vector< int64_t > *result = 0 ;
60625 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetAmortizedQuadraticCostFactorOfVehicles", 1, 1, &obj0))
SWIG_fail;
60628 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetAmortizedQuadraticCostFactorOfVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60630 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60640 resultobj = vector_output_helper(result, &PyLong_FromLongLong);
60649 PyObject *resultobj = 0;
60659 PyObject * obj0 = 0 ;
60660 PyObject * obj1 = 0 ;
60661 PyObject * obj2 = 0 ;
60663 if (!PyArg_UnpackTuple(args,
"RoutingModel_ConsiderEmptyRouteCostsForVehicle", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
60666 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ConsiderEmptyRouteCostsForVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60668 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60673 arg2 = static_cast< bool >(val2);
60678 arg3 = static_cast< int >(val3);
60681 (arg1)->ConsiderEmptyRouteCostsForVehicle(arg2,arg3);
60695 PyObject *resultobj = 0;
60702 PyObject * obj0 = 0 ;
60703 PyObject * obj1 = 0 ;
60706 if (!PyArg_UnpackTuple(args,
"RoutingModel_AreEmptyRouteCostsConsideredForVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
60709 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AreEmptyRouteCostsConsideredForVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
60711 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60716 arg2 = static_cast< int >(val2);
60733 PyObject *resultobj = 0;
60738 PyObject * obj0 = 0 ;
60739 PyObject * obj1 = 0 ;
60741 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetFirstSolutionEvaluator", 2, 2, &obj0, &obj1))
SWIG_fail;
60744 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetFirstSolutionEvaluator" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60746 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60749 arg2 = [
input](int64_t i, int64_t j) {
60750 return InvokePythonCallableReturning<int64_t>(
input.get(),
"LL", i, j);
60755 (arg1)->SetFirstSolutionEvaluator(arg2);
60769 PyObject *resultobj = 0;
60776 PyObject * obj0 = 0 ;
60777 PyObject * obj1 = 0 ;
60779 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddLocalSearchOperator", 2, 2, &obj0, &obj1))
SWIG_fail;
60782 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddLocalSearchOperator" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60784 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60787 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_AddLocalSearchOperator" "', argument " "2"" of type '" "operations_research::LocalSearchOperator *""'");
60789 arg2 = reinterpret_cast< operations_research::LocalSearchOperator * >(argp2);
60792 (arg1)->AddLocalSearchOperator(arg2);
60806 PyObject *resultobj = 0;
60811 PyObject * obj0 = 0 ;
60812 PyObject * obj1 = 0 ;
60814 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddSearchMonitor", 2, 2, &obj0, &obj1))
SWIG_fail;
60817 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddSearchMonitor" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60819 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60825 (arg1)->AddSearchMonitor(arg2);
60839 PyObject *resultobj = 0;
60841 std::function< void () > arg2 ;
60844 PyObject * obj0 = 0 ;
60845 PyObject * obj1 = 0 ;
60847 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddAtSolutionCallback", 2, 2, &obj0, &obj1))
SWIG_fail;
60850 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddAtSolutionCallback" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60852 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60856 return InvokePythonCallableReturning<void>(
input.get());
60861 (arg1)->AddAtSolutionCallback(arg2);
60875 PyObject *resultobj = 0;
60882 PyObject * obj0 = 0 ;
60883 PyObject * obj1 = 0 ;
60885 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddVariableMinimizedByFinalizer", 2, 2, &obj0, &obj1))
SWIG_fail;
60888 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddVariableMinimizedByFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60890 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60893 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_AddVariableMinimizedByFinalizer" "', argument " "2"" of type '" "operations_research::IntVar *""'");
60895 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
60898 (arg1)->AddVariableMinimizedByFinalizer(arg2);
60912 PyObject *resultobj = 0;
60919 PyObject * obj0 = 0 ;
60920 PyObject * obj1 = 0 ;
60922 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddVariableMaximizedByFinalizer", 2, 2, &obj0, &obj1))
SWIG_fail;
60925 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddVariableMaximizedByFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60927 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60930 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_AddVariableMaximizedByFinalizer" "', argument " "2"" of type '" "operations_research::IntVar *""'");
60932 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
60935 (arg1)->AddVariableMaximizedByFinalizer(arg2);
60949 PyObject *resultobj = 0;
60959 PyObject * obj0 = 0 ;
60960 PyObject * obj1 = 0 ;
60961 PyObject * obj2 = 0 ;
60963 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddWeightedVariableMinimizedByFinalizer", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
60966 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddWeightedVariableMinimizedByFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
60968 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
60971 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_AddWeightedVariableMinimizedByFinalizer" "', argument " "2"" of type '" "operations_research::IntVar *""'");
60973 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
60976 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "RoutingModel_AddWeightedVariableMinimizedByFinalizer" "', argument " "3"" of type '" "int64_t""'");
60978 arg3 = static_cast< int64_t >(val3);
60981 (arg1)->AddWeightedVariableMinimizedByFinalizer(arg2,arg3);
60995 PyObject *resultobj = 0;
61005 PyObject * obj0 = 0 ;
61006 PyObject * obj1 = 0 ;
61007 PyObject * obj2 = 0 ;
61009 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddVariableTargetToFinalizer", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
61012 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddVariableTargetToFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61014 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61017 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_AddVariableTargetToFinalizer" "', argument " "2"" of type '" "operations_research::IntVar *""'");
61019 arg2 = reinterpret_cast< operations_research::IntVar * >(argp2);
61024 arg3 = static_cast< int64_t >(val3);
61027 (arg1)->AddVariableTargetToFinalizer(arg2,arg3);
61041 PyObject *resultobj = 0;
61045 PyObject * obj0 = 0 ;
61047 if (!PyArg_UnpackTuple(args,
"RoutingModel_CloseModel", 1, 1, &obj0))
SWIG_fail;
61050 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_CloseModel" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61052 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61055 (arg1)->CloseModel();
61069 PyObject *resultobj = 0;
61074 PyObject * obj0 = 0 ;
61075 PyObject * obj1 = 0 ;
61077 if (!PyArg_UnpackTuple(args,
"RoutingModel_CloseModelWithParameters", 2, 2, &obj0, &obj1))
SWIG_fail;
61080 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_CloseModelWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61082 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61085 PyObject*
const pyresult = PyObject_CallMethod(
61086 obj1, const_cast<char*>(
"SerializeToString"),
nullptr);
61087 if (pyresult !=
nullptr) {
61088 char* buffer =
nullptr;
61089 Py_ssize_t length = 0;
61090 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
61091 if (buffer !=
nullptr) {
61092 arg2->ParseFromArray(buffer, length);
61094 Py_DECREF(pyresult);
61119 PyObject *resultobj = 0;
61126 PyObject * obj0 = 0 ;
61127 PyObject * obj1 = 0 ;
61130 if (!PyArg_UnpackTuple(args,
"RoutingModel_Solve", 2, 2, &obj0, &obj1))
SWIG_fail;
61135 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61140 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
61157 PyObject *resultobj = 0;
61161 PyObject * obj0 = 0 ;
61164 if (!PyArg_UnpackTuple(args,
"RoutingModel_Solve", 1, 1, &obj0))
SWIG_fail;
61169 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61187 PyObject *argv[3] = {
61193 argc = PyObject_Length(args);
61194 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
61195 argv[ii] = PyTuple_GET_ITEM(args,ii);
61223 " Possible C/C++ prototypes are:\n" 61224 " operations_research::RoutingModel::Solve(operations_research::Assignment const *)\n" 61225 " operations_research::RoutingModel::Solve()\n");
61231 PyObject *resultobj = 0;
61234 std::vector< operations_research::Assignment const * > *arg3 = (std::vector< operations_research::Assignment const * > *) 0 ;
61239 PyObject * obj0 = 0 ;
61240 PyObject * obj1 = 0 ;
61241 PyObject * obj2 = 0 ;
61244 if (!PyArg_UnpackTuple(args,
"RoutingModel_SolveWithParameters", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
61247 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SolveWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61249 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61252 PyObject*
const pyresult = PyObject_CallMethod(
61253 obj1, const_cast<char*>(
"SerializeToString"),
nullptr);
61254 if (pyresult !=
nullptr) {
61255 char* buffer =
nullptr;
61256 Py_ssize_t length = 0;
61257 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
61258 if (buffer !=
nullptr) {
61259 arg2->ParseFromArray(buffer, length);
61261 Py_DECREF(pyresult);
61266 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "RoutingModel_SolveWithParameters" "', argument " "3"" of type '" "std::vector< operations_research::Assignment const * > *""'");
61268 arg3 =
reinterpret_cast< std::vector< operations_research::Assignment const * > *
>(argp3);
61291 PyObject *resultobj = 0;
61296 PyObject * obj0 = 0 ;
61297 PyObject * obj1 = 0 ;
61300 if (!PyArg_UnpackTuple(args,
"RoutingModel_SolveWithParameters", 2, 2, &obj0, &obj1))
SWIG_fail;
61303 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SolveWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61305 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61308 PyObject*
const pyresult = PyObject_CallMethod(
61309 obj1, const_cast<char*>(
"SerializeToString"),
nullptr);
61310 if (pyresult !=
nullptr) {
61311 char* buffer =
nullptr;
61312 Py_ssize_t length = 0;
61313 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
61314 if (buffer !=
nullptr) {
61315 arg2->ParseFromArray(buffer, length);
61317 Py_DECREF(pyresult);
61343 PyObject *argv[4] = {
61349 argc = PyObject_Length(args);
61350 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
61351 argv[ii] = PyTuple_GET_ITEM(args,ii);
61361 PyObject*
const module = PyImport_ImportModule(
"ortools.constraint_solver.routing_parameters_pb2");
61362 if (module !=
nullptr) {
61363 PyObject*
const dict = PyModule_GetDict(module);
61364 if (dict !=
nullptr) {
61365 PyObject*
const clss = PyDict_GetItemString(dict,
"RoutingSearchParameters");
61366 if (clss !=
nullptr) {
61367 if (PyObject_IsInstance(argv[1], clss)) {
61389 PyObject*
const module = PyImport_ImportModule(
"ortools.constraint_solver.routing_parameters_pb2");
61390 if (module !=
nullptr) {
61391 PyObject*
const dict = PyModule_GetDict(module);
61392 if (dict !=
nullptr) {
61393 PyObject*
const clss = PyDict_GetItemString(dict,
"RoutingSearchParameters");
61394 if (clss !=
nullptr) {
61395 if (PyObject_IsInstance(argv[1], clss)) {
61417 " Possible C/C++ prototypes are:\n" 61418 " operations_research::RoutingModel::SolveWithParameters(operations_research::RoutingSearchParameters const &,std::vector< operations_research::Assignment const * > *)\n" 61419 " operations_research::RoutingModel::SolveWithParameters(operations_research::RoutingSearchParameters const &)\n");
61425 PyObject *resultobj = 0;
61429 std::vector< operations_research::Assignment const * > *arg4 = (std::vector< operations_research::Assignment const * > *) 0 ;
61436 PyObject * obj0 = 0 ;
61437 PyObject * obj1 = 0 ;
61438 PyObject * obj2 = 0 ;
61439 PyObject * obj3 = 0 ;
61442 if (!PyArg_UnpackTuple(args,
"RoutingModel_SolveFromAssignmentWithParameters", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
61445 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SolveFromAssignmentWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61447 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61450 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_SolveFromAssignmentWithParameters" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
61452 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
61455 PyObject*
const pyresult = PyObject_CallMethod(
61456 obj2, const_cast<char*>(
"SerializeToString"),
nullptr);
61457 if (pyresult !=
nullptr) {
61458 char* buffer =
nullptr;
61459 Py_ssize_t length = 0;
61460 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
61461 if (buffer !=
nullptr) {
61462 arg3->ParseFromArray(buffer, length);
61464 Py_DECREF(pyresult);
61469 SWIG_exception_fail(
SWIG_ArgError(res4),
"in method '" "RoutingModel_SolveFromAssignmentWithParameters" "', argument " "4"" of type '" "std::vector< operations_research::Assignment const * > *""'");
61471 arg4 =
reinterpret_cast< std::vector< operations_research::Assignment const * > *
>(argp4);
61494 PyObject *resultobj = 0;
61502 PyObject * obj0 = 0 ;
61503 PyObject * obj1 = 0 ;
61504 PyObject * obj2 = 0 ;
61507 if (!PyArg_UnpackTuple(args,
"RoutingModel_SolveFromAssignmentWithParameters", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
61510 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SolveFromAssignmentWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61512 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61515 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_SolveFromAssignmentWithParameters" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
61517 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
61520 PyObject*
const pyresult = PyObject_CallMethod(
61521 obj2, const_cast<char*>(
"SerializeToString"),
nullptr);
61522 if (pyresult !=
nullptr) {
61523 char* buffer =
nullptr;
61524 Py_ssize_t length = 0;
61525 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
61526 if (buffer !=
nullptr) {
61527 arg3->ParseFromArray(buffer, length);
61529 Py_DECREF(pyresult);
61555 PyObject *argv[5] = {
61561 argc = PyObject_Length(args);
61562 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
61563 argv[ii] = PyTuple_GET_ITEM(args,ii);
61577 PyObject*
const module = PyImport_ImportModule(
"ortools.constraint_solver.routing_parameters_pb2");
61578 if (module !=
nullptr) {
61579 PyObject*
const dict = PyModule_GetDict(module);
61580 if (dict !=
nullptr) {
61581 PyObject*
const clss = PyDict_GetItemString(dict,
"RoutingSearchParameters");
61582 if (clss !=
nullptr) {
61583 if (PyObject_IsInstance(argv[2], clss)) {
61610 PyObject*
const module = PyImport_ImportModule(
"ortools.constraint_solver.routing_parameters_pb2");
61611 if (module !=
nullptr) {
61612 PyObject*
const dict = PyModule_GetDict(module);
61613 if (dict !=
nullptr) {
61614 PyObject*
const clss = PyDict_GetItemString(dict,
"RoutingSearchParameters");
61615 if (clss !=
nullptr) {
61616 if (PyObject_IsInstance(argv[2], clss)) {
61639 " Possible C/C++ prototypes are:\n" 61640 " operations_research::RoutingModel::SolveFromAssignmentWithParameters(operations_research::Assignment const *,operations_research::RoutingSearchParameters const &,std::vector< operations_research::Assignment const * > *)\n" 61641 " operations_research::RoutingModel::SolveFromAssignmentWithParameters(operations_research::Assignment const *,operations_research::RoutingSearchParameters const &)\n");
61647 PyObject *resultobj = 0;
61649 std::vector< operations_research::Assignment const * > *arg2 = 0 ;
61651 std::vector< operations_research::Assignment const * > *arg4 = (std::vector< operations_research::Assignment const * > *) 0 ;
61658 PyObject * obj0 = 0 ;
61659 PyObject * obj1 = 0 ;
61660 PyObject * obj2 = 0 ;
61661 PyObject * obj3 = 0 ;
61664 if (!PyArg_UnpackTuple(args,
"RoutingModel_SolveFromAssignmentsWithParameters", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
61667 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61669 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61672 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "2"" of type '" "std::vector< operations_research::Assignment const * > const &""'");
61675 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "2"" of type '" "std::vector< operations_research::Assignment const * > const &""'");
61677 arg2 =
reinterpret_cast< std::vector< operations_research::Assignment const * > *
>(argp2);
61680 PyObject*
const pyresult = PyObject_CallMethod(
61681 obj2, const_cast<char*>(
"SerializeToString"),
nullptr);
61682 if (pyresult !=
nullptr) {
61683 char* buffer =
nullptr;
61684 Py_ssize_t length = 0;
61685 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
61686 if (buffer !=
nullptr) {
61687 arg3->ParseFromArray(buffer, length);
61689 Py_DECREF(pyresult);
61694 SWIG_exception_fail(
SWIG_ArgError(res4),
"in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "4"" of type '" "std::vector< operations_research::Assignment const * > *""'");
61696 arg4 =
reinterpret_cast< std::vector< operations_research::Assignment const * > *
>(argp4);
61719 PyObject *resultobj = 0;
61721 std::vector< operations_research::Assignment const * > *arg2 = 0 ;
61727 PyObject * obj0 = 0 ;
61728 PyObject * obj1 = 0 ;
61729 PyObject * obj2 = 0 ;
61732 if (!PyArg_UnpackTuple(args,
"RoutingModel_SolveFromAssignmentsWithParameters", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
61735 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61737 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61740 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "2"" of type '" "std::vector< operations_research::Assignment const * > const &""'");
61743 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_SolveFromAssignmentsWithParameters" "', argument " "2"" of type '" "std::vector< operations_research::Assignment const * > const &""'");
61745 arg2 =
reinterpret_cast< std::vector< operations_research::Assignment const * > *
>(argp2);
61748 PyObject*
const pyresult = PyObject_CallMethod(
61749 obj2, const_cast<char*>(
"SerializeToString"),
nullptr);
61750 if (pyresult !=
nullptr) {
61751 char* buffer =
nullptr;
61752 Py_ssize_t length = 0;
61753 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
61754 if (buffer !=
nullptr) {
61755 arg3->ParseFromArray(buffer, length);
61757 Py_DECREF(pyresult);
61783 PyObject *argv[5] = {
61789 argc = PyObject_Length(args);
61790 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
61791 argv[ii] = PyTuple_GET_ITEM(args,ii);
61804 PyObject*
const module = PyImport_ImportModule(
"ortools.constraint_solver.routing_parameters_pb2");
61805 if (module !=
nullptr) {
61806 PyObject*
const dict = PyModule_GetDict(module);
61807 if (dict !=
nullptr) {
61808 PyObject*
const clss = PyDict_GetItemString(dict,
"RoutingSearchParameters");
61809 if (clss !=
nullptr) {
61810 if (PyObject_IsInstance(argv[2], clss)) {
61836 PyObject*
const module = PyImport_ImportModule(
"ortools.constraint_solver.routing_parameters_pb2");
61837 if (module !=
nullptr) {
61838 PyObject*
const dict = PyModule_GetDict(module);
61839 if (dict !=
nullptr) {
61840 PyObject*
const clss = PyDict_GetItemString(dict,
"RoutingSearchParameters");
61841 if (clss !=
nullptr) {
61842 if (PyObject_IsInstance(argv[2], clss)) {
61865 " Possible C/C++ prototypes are:\n" 61866 " operations_research::RoutingModel::SolveFromAssignmentsWithParameters(std::vector< operations_research::Assignment const * > const &,operations_research::RoutingSearchParameters const &,std::vector< operations_research::Assignment const * > *)\n" 61867 " operations_research::RoutingModel::SolveFromAssignmentsWithParameters(std::vector< operations_research::Assignment const * > const &,operations_research::RoutingSearchParameters const &)\n");
61873 PyObject *resultobj = 0;
61886 PyObject * obj0 = 0 ;
61887 PyObject * obj1 = 0 ;
61888 PyObject * obj2 = 0 ;
61889 PyObject * obj3 = 0 ;
61891 if (!PyArg_UnpackTuple(args,
"RoutingModel_SetAssignmentFromOtherModelAssignment", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
61894 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_SetAssignmentFromOtherModelAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61896 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61899 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_SetAssignmentFromOtherModelAssignment" "', argument " "2"" of type '" "operations_research::Assignment *""'");
61901 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
61904 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "RoutingModel_SetAssignmentFromOtherModelAssignment" "', argument " "3"" of type '" "operations_research::RoutingModel const *""'");
61906 arg3 = reinterpret_cast< operations_research::RoutingModel * >(argp3);
61909 SWIG_exception_fail(
SWIG_ArgError(res4),
"in method '" "RoutingModel_SetAssignmentFromOtherModelAssignment" "', argument " "4"" of type '" "operations_research::Assignment const *""'");
61911 arg4 = reinterpret_cast< operations_research::Assignment * >(argp4);
61928 PyObject *resultobj = 0;
61932 PyObject * obj0 = 0 ;
61935 if (!PyArg_UnpackTuple(args,
"RoutingModel_ComputeLowerBound", 1, 1, &obj0))
SWIG_fail;
61938 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ComputeLowerBound" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
61940 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61943 result = (int64_t)(arg1)->ComputeLowerBound();
61957 PyObject *resultobj = 0;
61961 PyObject * obj0 = 0 ;
61964 if (!PyArg_UnpackTuple(args,
"RoutingModel_status", 1, 1, &obj0))
SWIG_fail;
61967 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_status" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
61969 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
61986 PyObject *resultobj = 0;
61988 std::vector< int64_t > *arg2 = 0 ;
61991 std::vector< int64_t > temp2 ;
61992 PyObject * obj0 = 0 ;
61993 PyObject * obj1 = 0 ;
61996 if (!PyArg_UnpackTuple(args,
"RoutingModel_ApplyLocks", 2, 2, &obj0, &obj1))
SWIG_fail;
61999 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ApplyLocks" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62001 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62003 if (!vector_input_helper(obj1, &temp2, PyObjAs<int64_t>)) {
62004 if (!PyErr_Occurred())
62026 PyObject *resultobj = 0;
62028 std::vector< std::vector< int64_t > > *arg2 = 0 ;
62032 std::vector< std::vector< int64_t > > temp2 ;
62035 PyObject * obj0 = 0 ;
62036 PyObject * obj1 = 0 ;
62037 PyObject * obj2 = 0 ;
62040 if (!PyArg_UnpackTuple(args,
"RoutingModel_ApplyLocksToAllVehicles", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
62043 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ApplyLocksToAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62045 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62047 if (!PyList_Check(obj1)) {
62048 PyErr_SetString(PyExc_TypeError,
"Expecting a list of tuples");
62051 int len = PyList_Size(obj1);
62055 for (
size_t i = 0; i < len; ++i) {
62056 PyObject *tuple = PyList_GetItem(obj1, i);
62057 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
62058 PyErr_SetString(PyExc_TypeError,
"Expecting a sequence");
62061 bool is_tuple = PyTuple_Check(tuple);
62062 int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
62063 temp2[i].resize(arity);
62064 for (
size_t j = 0; j < arity; ++j) {
62065 bool success = PyObjAs<int64_t>(
62066 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j),
62080 arg3 = static_cast< bool >(val3);
62083 result = (bool)(arg1)->ApplyLocksToAllVehicles((std::vector< std::vector< int64_t > >
const &)*arg2,arg3);
62097 PyObject *resultobj = 0;
62101 PyObject * obj0 = 0 ;
62104 if (!PyArg_UnpackTuple(args,
"RoutingModel_PreAssignment", 1, 1, &obj0))
SWIG_fail;
62107 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_PreAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62109 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62126 PyObject *resultobj = 0;
62130 PyObject * obj0 = 0 ;
62133 if (!PyArg_UnpackTuple(args,
"RoutingModel_MutablePreAssignment", 1, 1, &obj0))
SWIG_fail;
62136 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_MutablePreAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62138 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62155 PyObject *resultobj = 0;
62157 std::string *arg2 = 0 ;
62161 PyObject * obj0 = 0 ;
62162 PyObject * obj1 = 0 ;
62165 if (!PyArg_UnpackTuple(args,
"RoutingModel_WriteAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
62168 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_WriteAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62170 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62172 std::string *ptr = (std::string *)0;
62178 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_WriteAssignment" "', argument " "2"" of type '" "std::string const &""'");
62200 PyObject *resultobj = 0;
62202 std::string *arg2 = 0 ;
62206 PyObject * obj0 = 0 ;
62207 PyObject * obj1 = 0 ;
62210 if (!PyArg_UnpackTuple(args,
"RoutingModel_ReadAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
62213 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ReadAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62215 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62217 std::string *ptr = (std::string *)0;
62223 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_ReadAssignment" "', argument " "2"" of type '" "std::string const &""'");
62245 PyObject *resultobj = 0;
62252 PyObject * obj0 = 0 ;
62253 PyObject * obj1 = 0 ;
62256 if (!PyArg_UnpackTuple(args,
"RoutingModel_RestoreAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
62259 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RestoreAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62261 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62264 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_RestoreAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62267 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_RestoreAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62269 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
62286 PyObject *resultobj = 0;
62288 std::vector< std::vector< int64_t > > *arg2 = 0 ;
62292 std::vector< std::vector< int64_t > > temp2 ;
62295 PyObject * obj0 = 0 ;
62296 PyObject * obj1 = 0 ;
62297 PyObject * obj2 = 0 ;
62300 if (!PyArg_UnpackTuple(args,
"RoutingModel_ReadAssignmentFromRoutes", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
62303 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ReadAssignmentFromRoutes" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62305 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62307 if (!PyList_Check(obj1)) {
62308 PyErr_SetString(PyExc_TypeError,
"Expecting a list of tuples");
62311 int len = PyList_Size(obj1);
62315 for (
size_t i = 0; i < len; ++i) {
62316 PyObject *tuple = PyList_GetItem(obj1, i);
62317 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
62318 PyErr_SetString(PyExc_TypeError,
"Expecting a sequence");
62321 bool is_tuple = PyTuple_Check(tuple);
62322 int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
62323 temp2[i].resize(arity);
62324 for (
size_t j = 0; j < arity; ++j) {
62325 bool success = PyObjAs<int64_t>(
62326 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j),
62340 arg3 = static_cast< bool >(val3);
62357 PyObject *resultobj = 0;
62359 std::vector< std::vector< int64_t > > *arg2 = 0 ;
62365 std::vector< std::vector< int64_t > > temp2 ;
62372 PyObject * obj0 = 0 ;
62373 PyObject * obj1 = 0 ;
62374 PyObject * obj2 = 0 ;
62375 PyObject * obj3 = 0 ;
62376 PyObject * obj4 = 0 ;
62379 if (!PyArg_UnpackTuple(args,
"RoutingModel_RoutesToAssignment", 5, 5, &obj0, &obj1, &obj2, &obj3, &obj4))
SWIG_fail;
62382 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RoutesToAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62384 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62386 if (!PyList_Check(obj1)) {
62387 PyErr_SetString(PyExc_TypeError,
"Expecting a list of tuples");
62390 int len = PyList_Size(obj1);
62394 for (
size_t i = 0; i < len; ++i) {
62395 PyObject *tuple = PyList_GetItem(obj1, i);
62396 if (!PyTuple_Check(tuple) && !PyList_Check(tuple)) {
62397 PyErr_SetString(PyExc_TypeError,
"Expecting a sequence");
62400 bool is_tuple = PyTuple_Check(tuple);
62401 int arity = is_tuple ? PyTuple_Size(tuple) : PyList_Size(tuple);
62402 temp2[i].resize(arity);
62403 for (
size_t j = 0; j < arity; ++j) {
62404 bool success = PyObjAs<int64_t>(
62405 is_tuple ? PyTuple_GetItem(tuple, j) : PyList_GetItem(tuple, j),
62419 arg3 = static_cast< bool >(val3);
62424 arg4 = static_cast< bool >(val4);
62427 SWIG_exception_fail(
SWIG_ArgError(res5),
"in method '" "RoutingModel_RoutesToAssignment" "', argument " "5"" of type '" "operations_research::Assignment *const""'");
62429 arg5 = reinterpret_cast< operations_research::Assignment * >(argp5);
62446 PyObject *resultobj = 0;
62449 std::vector< std::vector< int64_t > > *arg3 = (std::vector< std::vector< int64_t > > *) (std::vector< std::vector< int64_t > > *)0 ;
62456 PyObject * obj0 = 0 ;
62457 PyObject * obj1 = 0 ;
62458 PyObject * obj2 = 0 ;
62460 if (!PyArg_UnpackTuple(args,
"RoutingModel_AssignmentToRoutes", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
62463 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AssignmentToRoutes" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62465 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62468 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_AssignmentToRoutes" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62471 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_AssignmentToRoutes" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62473 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
62476 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "RoutingModel_AssignmentToRoutes" "', argument " "3"" of type '" "std::vector< std::vector< int64_t > > *const""'");
62478 arg3 =
reinterpret_cast< std::vector< std::vector< int64_t >
> * >(argp3);
62495 PyObject *resultobj = 0;
62502 PyObject * obj0 = 0 ;
62503 PyObject * obj1 = 0 ;
62506 if (!PyArg_UnpackTuple(args,
"RoutingModel_CompactAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
62509 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_CompactAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62511 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62514 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_CompactAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62517 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_CompactAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62519 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
62536 PyObject *resultobj = 0;
62543 PyObject * obj0 = 0 ;
62544 PyObject * obj1 = 0 ;
62547 if (!PyArg_UnpackTuple(args,
"RoutingModel_CompactAndCheckAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
62550 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_CompactAndCheckAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62552 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62555 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_CompactAndCheckAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62558 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_CompactAndCheckAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62560 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
62577 PyObject *resultobj = 0;
62582 PyObject * obj0 = 0 ;
62583 PyObject * obj1 = 0 ;
62585 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddToAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
62588 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddToAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62590 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62596 (arg1)->AddToAssignment(arg2);
62610 PyObject *resultobj = 0;
62615 PyObject * obj0 = 0 ;
62616 PyObject * obj1 = 0 ;
62618 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddIntervalToAssignment", 2, 2, &obj0, &obj1))
SWIG_fail;
62621 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddIntervalToAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62623 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62629 (arg1)->AddIntervalToAssignment(arg2);
62643 PyObject *resultobj = 0;
62646 absl::Duration arg3 ;
62653 PyObject * obj0 = 0 ;
62654 PyObject * obj1 = 0 ;
62655 PyObject * obj2 = 0 ;
62658 if (!PyArg_UnpackTuple(args,
"RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
62661 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62663 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62666 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment" "', argument " "2"" of type '" "operations_research::Assignment const *""'");
62668 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
62672 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment" "', argument " "3"" of type '" "absl::Duration""'");
62675 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment" "', argument " "3"" of type '" "absl::Duration""'");
62677 absl::Duration * temp = reinterpret_cast< absl::Duration * >(argp3);
62698 PyObject *resultobj = 0;
62705 PyObject * obj0 = 0 ;
62706 PyObject * obj1 = 0 ;
62708 if (!PyArg_UnpackTuple(args,
"RoutingModel_AddLocalSearchFilter", 2, 2, &obj0, &obj1))
SWIG_fail;
62711 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_AddLocalSearchFilter" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
62713 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62716 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_AddLocalSearchFilter" "', argument " "2"" of type '" "operations_research::LocalSearchFilter *""'");
62718 arg2 = reinterpret_cast< operations_research::LocalSearchFilter * >(argp2);
62721 (arg1)->AddLocalSearchFilter(arg2);
62735 PyObject *resultobj = 0;
62742 PyObject * obj0 = 0 ;
62743 PyObject * obj1 = 0 ;
62746 if (!PyArg_UnpackTuple(args,
"RoutingModel_Start", 2, 2, &obj0, &obj1))
SWIG_fail;
62749 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_Start" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62751 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62756 arg2 = static_cast< int >(val2);
62773 PyObject *resultobj = 0;
62780 PyObject * obj0 = 0 ;
62781 PyObject * obj1 = 0 ;
62784 if (!PyArg_UnpackTuple(args,
"RoutingModel_End", 2, 2, &obj0, &obj1))
SWIG_fail;
62789 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62794 arg2 = static_cast< int >(val2);
62811 PyObject *resultobj = 0;
62818 PyObject * obj0 = 0 ;
62819 PyObject * obj1 = 0 ;
62822 if (!PyArg_UnpackTuple(args,
"RoutingModel_IsStart", 2, 2, &obj0, &obj1))
SWIG_fail;
62825 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_IsStart" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62827 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62832 arg2 = static_cast< int64_t >(val2);
62849 PyObject *resultobj = 0;
62856 PyObject * obj0 = 0 ;
62857 PyObject * obj1 = 0 ;
62860 if (!PyArg_UnpackTuple(args,
"RoutingModel_IsEnd", 2, 2, &obj0, &obj1))
SWIG_fail;
62863 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_IsEnd" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62865 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62870 arg2 = static_cast< int64_t >(val2);
62887 PyObject *resultobj = 0;
62894 PyObject * obj0 = 0 ;
62895 PyObject * obj1 = 0 ;
62898 if (!PyArg_UnpackTuple(args,
"RoutingModel_VehicleIndex", 2, 2, &obj0, &obj1))
SWIG_fail;
62901 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_VehicleIndex" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62903 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62908 arg2 = static_cast< int64_t >(val2);
62925 PyObject *resultobj = 0;
62935 PyObject * obj0 = 0 ;
62936 PyObject * obj1 = 0 ;
62937 PyObject * obj2 = 0 ;
62940 if (!PyArg_UnpackTuple(args,
"RoutingModel_Next", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
62943 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_Next" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62945 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62951 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_Next" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
62953 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
62958 arg3 = static_cast< int64_t >(val3);
62975 PyObject *resultobj = 0;
62985 PyObject * obj0 = 0 ;
62986 PyObject * obj1 = 0 ;
62987 PyObject * obj2 = 0 ;
62990 if (!PyArg_UnpackTuple(args,
"RoutingModel_IsVehicleUsed", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
62993 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_IsVehicleUsed" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
62995 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
62998 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_IsVehicleUsed" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
63001 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_IsVehicleUsed" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
63003 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
63008 arg3 = static_cast< int >(val3);
63025 PyObject *resultobj = 0;
63032 PyObject * obj0 = 0 ;
63033 PyObject * obj1 = 0 ;
63036 if (!PyArg_UnpackTuple(args,
"RoutingModel_NextVar", 2, 2, &obj0, &obj1))
SWIG_fail;
63039 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_NextVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63041 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63046 arg2 = static_cast< int64_t >(val2);
63063 PyObject *resultobj = 0;
63070 PyObject * obj0 = 0 ;
63071 PyObject * obj1 = 0 ;
63074 if (!PyArg_UnpackTuple(args,
"RoutingModel_ActiveVar", 2, 2, &obj0, &obj1))
SWIG_fail;
63077 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ActiveVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63079 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63084 arg2 = static_cast< int64_t >(val2);
63101 PyObject *resultobj = 0;
63108 PyObject * obj0 = 0 ;
63109 PyObject * obj1 = 0 ;
63112 if (!PyArg_UnpackTuple(args,
"RoutingModel_ActiveVehicleVar", 2, 2, &obj0, &obj1))
SWIG_fail;
63115 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ActiveVehicleVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63117 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63122 arg2 = static_cast< int >(val2);
63139 PyObject *resultobj = 0;
63146 PyObject * obj0 = 0 ;
63147 PyObject * obj1 = 0 ;
63150 if (!PyArg_UnpackTuple(args,
"RoutingModel_VehicleCostsConsideredVar", 2, 2, &obj0, &obj1))
SWIG_fail;
63153 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_VehicleCostsConsideredVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63155 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63160 arg2 = static_cast< int >(val2);
63177 PyObject *resultobj = 0;
63184 PyObject * obj0 = 0 ;
63185 PyObject * obj1 = 0 ;
63188 if (!PyArg_UnpackTuple(args,
"RoutingModel_VehicleVar", 2, 2, &obj0, &obj1))
SWIG_fail;
63191 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_VehicleVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63193 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63198 arg2 = static_cast< int64_t >(val2);
63215 PyObject *resultobj = 0;
63219 PyObject * obj0 = 0 ;
63222 if (!PyArg_UnpackTuple(args,
"RoutingModel_CostVar", 1, 1, &obj0))
SWIG_fail;
63225 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_CostVar" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63227 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63244 PyObject *resultobj = 0;
63257 PyObject * obj0 = 0 ;
63258 PyObject * obj1 = 0 ;
63259 PyObject * obj2 = 0 ;
63260 PyObject * obj3 = 0 ;
63263 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetArcCostForVehicle", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
63266 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetArcCostForVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63268 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63273 arg2 = static_cast< int64_t >(val2);
63278 arg3 = static_cast< int64_t >(val3);
63283 arg4 = static_cast< int64_t >(val4);
63300 PyObject *resultobj = 0;
63304 PyObject * obj0 = 0 ;
63307 if (!PyArg_UnpackTuple(args,
"RoutingModel_CostsAreHomogeneousAcrossVehicles", 1, 1, &obj0))
SWIG_fail;
63310 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_CostsAreHomogeneousAcrossVehicles" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63312 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63329 PyObject *resultobj = 0;
63339 PyObject * obj0 = 0 ;
63340 PyObject * obj1 = 0 ;
63341 PyObject * obj2 = 0 ;
63344 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetHomogeneousCost", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
63347 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetHomogeneousCost" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63349 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63354 arg2 = static_cast< int64_t >(val2);
63359 arg3 = static_cast< int64_t >(val3);
63376 PyObject *resultobj = 0;
63386 PyObject * obj0 = 0 ;
63387 PyObject * obj1 = 0 ;
63388 PyObject * obj2 = 0 ;
63391 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetArcCostForFirstSolution", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
63394 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetArcCostForFirstSolution" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63396 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63401 arg2 = static_cast< int64_t >(val2);
63406 arg3 = static_cast< int64_t >(val3);
63423 PyObject *resultobj = 0;
63436 PyObject * obj0 = 0 ;
63437 PyObject * obj1 = 0 ;
63438 PyObject * obj2 = 0 ;
63439 PyObject * obj3 = 0 ;
63442 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetArcCostForClass", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
63445 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetArcCostForClass" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63447 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63452 arg2 = static_cast< int64_t >(val2);
63457 arg3 = static_cast< int64_t >(val3);
63462 arg4 = static_cast< int64_t >(val4);
63479 PyObject *resultobj = 0;
63486 PyObject * obj0 = 0 ;
63487 PyObject * obj1 = 0 ;
63490 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetCostClassIndexOfVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
63493 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetCostClassIndexOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63495 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63500 arg2 = static_cast< int64_t >(val2);
63510 resultobj = PyInt_FromLong((&result)->
value());
63519 PyObject *resultobj = 0;
63524 PyObject * obj0 = 0 ;
63525 PyObject * obj1 = 0 ;
63528 if (!PyArg_UnpackTuple(args,
"RoutingModel_HasVehicleWithCostClassIndex", 2, 2, &obj0, &obj1))
SWIG_fail;
63531 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_HasVehicleWithCostClassIndex" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63533 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63535 arg2 = operations_research::RoutingCostClassIndex(PyInt_AsLong(obj1));
63553 PyObject *resultobj = 0;
63557 PyObject * obj0 = 0 ;
63560 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetCostClassesCount", 1, 1, &obj0))
SWIG_fail;
63563 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetCostClassesCount" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63565 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63582 PyObject *resultobj = 0;
63586 PyObject * obj0 = 0 ;
63589 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetNonZeroCostClassesCount", 1, 1, &obj0))
SWIG_fail;
63592 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetNonZeroCostClassesCount" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63594 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63611 PyObject *resultobj = 0;
63618 PyObject * obj0 = 0 ;
63619 PyObject * obj1 = 0 ;
63622 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetVehicleClassIndexOfVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
63625 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetVehicleClassIndexOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63627 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63632 arg2 = static_cast< int64_t >(val2);
63642 resultobj = PyInt_FromLong((&result)->
value());
63651 PyObject *resultobj = 0;
63656 PyObject * obj0 = 0 ;
63657 PyObject * obj1 = 0 ;
63660 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetVehicleOfClass", 2, 2, &obj0, &obj1))
SWIG_fail;
63663 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetVehicleOfClass" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63665 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63667 arg2 = operations_research::RoutingVehicleClassIndex(PyInt_AsLong(obj1));
63685 PyObject *resultobj = 0;
63689 PyObject * obj0 = 0 ;
63692 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetVehicleClassesCount", 1, 1, &obj0))
SWIG_fail;
63695 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetVehicleClassesCount" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63697 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63714 PyObject *resultobj = 0;
63721 PyObject * obj0 = 0 ;
63722 PyObject * obj1 = 0 ;
63723 std::vector< int > *result = 0 ;
63725 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetSameVehicleIndicesOfIndex", 2, 2, &obj0, &obj1))
SWIG_fail;
63728 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetSameVehicleIndicesOfIndex" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63730 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63735 arg2 = static_cast< int >(val2);
63745 resultobj = vector_output_helper(result, &PyInt_FromLong);
63754 PyObject *resultobj = 0;
63758 PyObject * obj0 = 0 ;
63761 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetVehicleTypeContainer", 1, 1, &obj0))
SWIG_fail;
63764 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetVehicleTypeContainer" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63766 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63783 PyObject *resultobj = 0;
63796 PyObject * obj0 = 0 ;
63797 PyObject * obj1 = 0 ;
63798 PyObject * obj2 = 0 ;
63799 PyObject * obj3 = 0 ;
63802 if (!PyArg_UnpackTuple(args,
"RoutingModel_ArcIsMoreConstrainedThanArc", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
63805 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_ArcIsMoreConstrainedThanArc" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
63807 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63812 arg2 = static_cast< int64_t >(val2);
63817 arg3 = static_cast< int64_t >(val3);
63822 arg4 = static_cast< int64_t >(val4);
63825 result = (bool)(arg1)->ArcIsMoreConstrainedThanArc(arg2,arg3,arg4);
63839 PyObject *resultobj = 0;
63842 std::string *arg3 = 0 ;
63848 PyObject * obj0 = 0 ;
63849 PyObject * obj1 = 0 ;
63850 PyObject * obj2 = 0 ;
63851 std::string result;
63853 if (!PyArg_UnpackTuple(args,
"RoutingModel_DebugOutputAssignment", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
63856 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_DebugOutputAssignment" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63858 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63861 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_DebugOutputAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
63864 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_DebugOutputAssignment" "', argument " "2"" of type '" "operations_research::Assignment const &""'");
63866 arg2 = reinterpret_cast< operations_research::Assignment * >(argp2);
63868 std::string *ptr = (std::string *)0;
63874 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "RoutingModel_DebugOutputAssignment" "', argument " "3"" of type '" "std::string const &""'");
63896 PyObject *resultobj = 0;
63900 PyObject * obj0 = 0 ;
63903 if (!PyArg_UnpackTuple(args,
"RoutingModel_solver", 1, 1, &obj0))
SWIG_fail;
63906 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_solver" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63908 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63925 PyObject *resultobj = 0;
63929 PyObject * obj0 = 0 ;
63932 if (!PyArg_UnpackTuple(args,
"RoutingModel_CheckLimit", 1, 1, &obj0))
SWIG_fail;
63935 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_CheckLimit" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
63937 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63940 result = (bool)(arg1)->CheckLimit();
63954 PyObject *resultobj = 0;
63958 PyObject * obj0 = 0 ;
63959 absl::Duration result;
63961 if (!PyArg_UnpackTuple(args,
"RoutingModel_RemainingTime", 1, 1, &obj0))
SWIG_fail;
63964 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_RemainingTime" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63966 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
63983 PyObject *resultobj = 0;
63987 PyObject * obj0 = 0 ;
63990 if (!PyArg_UnpackTuple(args,
"RoutingModel_nodes", 1, 1, &obj0))
SWIG_fail;
63993 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_nodes" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
63995 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64012 PyObject *resultobj = 0;
64016 PyObject * obj0 = 0 ;
64019 if (!PyArg_UnpackTuple(args,
"RoutingModel_vehicles", 1, 1, &obj0))
SWIG_fail;
64022 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_vehicles" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64024 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64041 PyObject *resultobj = 0;
64045 PyObject * obj0 = 0 ;
64048 if (!PyArg_UnpackTuple(args,
"RoutingModel_Size", 1, 1, &obj0))
SWIG_fail;
64051 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_Size" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64053 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64070 PyObject *resultobj = 0;
64075 PyObject * obj0 = 0 ;
64076 PyObject * obj1 = 0 ;
64079 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetNumberOfDecisionsInFirstSolution", 2, 2, &obj0, &obj1))
SWIG_fail;
64082 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetNumberOfDecisionsInFirstSolution" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64084 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64087 PyObject*
const pyresult = PyObject_CallMethod(
64088 obj1, const_cast<char*>(
"SerializeToString"),
nullptr);
64089 if (pyresult !=
nullptr) {
64090 char* buffer =
nullptr;
64091 Py_ssize_t length = 0;
64092 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
64093 if (buffer !=
nullptr) {
64094 arg2->ParseFromArray(buffer, length);
64096 Py_DECREF(pyresult);
64121 PyObject *resultobj = 0;
64126 PyObject * obj0 = 0 ;
64127 PyObject * obj1 = 0 ;
64130 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetNumberOfRejectsInFirstSolution", 2, 2, &obj0, &obj1))
SWIG_fail;
64133 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetNumberOfRejectsInFirstSolution" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64135 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64138 PyObject*
const pyresult = PyObject_CallMethod(
64139 obj1, const_cast<char*>(
"SerializeToString"),
nullptr);
64140 if (pyresult !=
nullptr) {
64141 char* buffer =
nullptr;
64142 Py_ssize_t length = 0;
64143 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
64144 if (buffer !=
nullptr) {
64145 arg2->ParseFromArray(buffer, length);
64147 Py_DECREF(pyresult);
64172 PyObject *resultobj = 0;
64176 PyObject * obj0 = 0 ;
64179 if (!PyArg_UnpackTuple(args,
"RoutingModel_GetAutomaticFirstSolutionStrategy", 1, 1, &obj0))
SWIG_fail;
64182 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_GetAutomaticFirstSolutionStrategy" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64184 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64201 PyObject *resultobj = 0;
64205 PyObject * obj0 = 0 ;
64208 if (!PyArg_UnpackTuple(args,
"RoutingModel_IsMatchingModel", 1, 1, &obj0))
SWIG_fail;
64211 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_IsMatchingModel" "', argument " "1"" of type '" "operations_research::RoutingModel const *""'");
64213 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64230 PyObject *resultobj = 0;
64233 std::function< int64_t (int64_t) > arg3 ;
64238 PyObject * obj0 = 0 ;
64239 PyObject * obj1 = 0 ;
64240 PyObject * obj2 = 0 ;
64244 if (!PyArg_UnpackTuple(args,
"RoutingModel_MakeGuidedSlackFinalizer", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
64247 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_MakeGuidedSlackFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
64249 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64252 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_MakeGuidedSlackFinalizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const *""'");
64254 arg2 = reinterpret_cast< operations_research::RoutingDimension * >(argp2);
64258 return InvokePythonCallableReturning<int64_t>(
input.get(),
"(L)",
index);
64272 Py_INCREF(resultobj);
64283 PyObject *resultobj = 0;
64290 PyObject * obj0 = 0 ;
64291 PyObject * obj1 = 0 ;
64295 if (!PyArg_UnpackTuple(args,
"RoutingModel_MakeSelfDependentDimensionFinalizer", 2, 2, &obj0, &obj1))
SWIG_fail;
64298 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingModel_MakeSelfDependentDimensionFinalizer" "', argument " "1"" of type '" "operations_research::RoutingModel *""'");
64300 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64303 SWIG_exception_fail(
SWIG_ArgError(res2),
"in method '" "RoutingModel_MakeSelfDependentDimensionFinalizer" "', argument " "2"" of type '" "operations_research::RoutingDimension const *""'");
64305 arg2 = reinterpret_cast< operations_research::RoutingDimension * >(argp2);
64317 Py_INCREF(resultobj);
64345 PyObject *pyobj = 0;
64359 PyObject *pyobj = 0;
64373 PyObject *pyobj = 0;
64381 PyObject *resultobj = 0;
64384 if (!PyArg_UnpackTuple(args,
"new_RoutingModelVisitor", 0, 0))
SWIG_fail;
64401 PyObject *resultobj = 0;
64405 PyObject * obj0 = 0 ;
64407 if (!PyArg_UnpackTuple(args,
"delete_RoutingModelVisitor", 1, 1, &obj0))
SWIG_fail;
64410 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_RoutingModelVisitor" "', argument " "1"" of type '" "operations_research::RoutingModelVisitor *""'");
64412 arg1 = reinterpret_cast< operations_research::RoutingModelVisitor * >(argp1);
64440 PyObject *resultobj = 0;
64444 PyObject * obj0 = 0 ;
64447 if (!PyArg_UnpackTuple(args,
"new_GlobalVehicleBreaksConstraint", 1, 1, &obj0))
SWIG_fail;
64450 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "new_GlobalVehicleBreaksConstraint" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
64452 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
64469 PyObject *resultobj = 0;
64473 PyObject * obj0 = 0 ;
64474 std::string result;
64476 if (!PyArg_UnpackTuple(args,
"GlobalVehicleBreaksConstraint_DebugString", 1, 1, &obj0))
SWIG_fail;
64479 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "GlobalVehicleBreaksConstraint_DebugString" "', argument " "1"" of type '" "operations_research::GlobalVehicleBreaksConstraint const *""'");
64481 arg1 = reinterpret_cast< operations_research::GlobalVehicleBreaksConstraint * >(argp1);
64498 PyObject *resultobj = 0;
64502 PyObject * obj0 = 0 ;
64504 if (!PyArg_UnpackTuple(args,
"GlobalVehicleBreaksConstraint_Post", 1, 1, &obj0))
SWIG_fail;
64507 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "GlobalVehicleBreaksConstraint_Post" "', argument " "1"" of type '" "operations_research::GlobalVehicleBreaksConstraint *""'");
64509 arg1 = reinterpret_cast< operations_research::GlobalVehicleBreaksConstraint * >(argp1);
64526 PyObject *resultobj = 0;
64530 PyObject * obj0 = 0 ;
64532 if (!PyArg_UnpackTuple(args,
"GlobalVehicleBreaksConstraint_InitialPropagateWrapper", 1, 1, &obj0))
SWIG_fail;
64535 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "GlobalVehicleBreaksConstraint_InitialPropagateWrapper" "', argument " "1"" of type '" "operations_research::GlobalVehicleBreaksConstraint *""'");
64537 arg1 = reinterpret_cast< operations_research::GlobalVehicleBreaksConstraint * >(argp1);
64540 (arg1)->InitialPropagate();
64554 PyObject *resultobj = 0;
64558 PyObject * obj0 = 0 ;
64560 if (!PyArg_UnpackTuple(args,
"delete_GlobalVehicleBreaksConstraint", 1, 1, &obj0))
SWIG_fail;
64563 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_GlobalVehicleBreaksConstraint" "', argument " "1"" of type '" "operations_research::GlobalVehicleBreaksConstraint *""'");
64565 arg1 = reinterpret_cast< operations_research::GlobalVehicleBreaksConstraint * >(argp1);
64593 PyObject *resultobj = 0;
64597 PyObject * obj0 = 0 ;
64599 if (!PyArg_UnpackTuple(args,
"delete_TypeRegulationsChecker", 1, 1, &obj0))
SWIG_fail;
64602 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_TypeRegulationsChecker" "', argument " "1"" of type '" "operations_research::TypeRegulationsChecker *""'");
64604 arg1 = reinterpret_cast< operations_research::TypeRegulationsChecker * >(argp1);
64621 PyObject *resultobj = 0;
64624 std::function< int64_t (int64_t) > *arg3 = 0 ;
64631 PyObject * obj0 = 0 ;
64632 PyObject * obj1 = 0 ;
64633 PyObject * obj2 = 0 ;
64636 if (!PyArg_UnpackTuple(args,
"TypeRegulationsChecker_CheckVehicle", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
64639 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "TypeRegulationsChecker_CheckVehicle" "', argument " "1"" of type '" "operations_research::TypeRegulationsChecker *""'");
64641 arg1 = reinterpret_cast< operations_research::TypeRegulationsChecker * >(argp1);
64646 arg2 = static_cast< int >(val2);
64649 SWIG_exception_fail(
SWIG_ArgError(res3),
"in method '" "TypeRegulationsChecker_CheckVehicle" "', argument " "3"" of type '" "std::function< int64_t (int64_t) > const &""'");
64652 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "TypeRegulationsChecker_CheckVehicle" "', argument " "3"" of type '" "std::function< int64_t (int64_t) > const &""'");
64654 arg3 =
reinterpret_cast< std::function< int64_t (int64_t)
> * >(argp3);
64657 result = (bool)(arg1)->CheckVehicle(arg2,(std::function< int64_t (int64_t) >
const &)*arg3);
64678 PyObject *resultobj = 0;
64685 PyObject * obj0 = 0 ;
64686 PyObject * obj1 = 0 ;
64689 if (!PyArg_UnpackTuple(args,
"new_TypeIncompatibilityChecker", 2, 2, &obj0, &obj1))
SWIG_fail;
64692 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "new_TypeIncompatibilityChecker" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64695 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "new_TypeIncompatibilityChecker" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64697 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64702 arg2 = static_cast< bool >(val2);
64719 PyObject *resultobj = 0;
64723 PyObject * obj0 = 0 ;
64725 if (!PyArg_UnpackTuple(args,
"delete_TypeIncompatibilityChecker", 1, 1, &obj0))
SWIG_fail;
64728 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_TypeIncompatibilityChecker" "', argument " "1"" of type '" "operations_research::TypeIncompatibilityChecker *""'");
64730 arg1 = reinterpret_cast< operations_research::TypeIncompatibilityChecker * >(argp1);
64758 PyObject *resultobj = 0;
64762 PyObject * obj0 = 0 ;
64765 if (!PyArg_UnpackTuple(args,
"new_TypeRequirementChecker", 1, 1, &obj0))
SWIG_fail;
64768 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "new_TypeRequirementChecker" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64771 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "new_TypeRequirementChecker" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64773 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64790 PyObject *resultobj = 0;
64794 PyObject * obj0 = 0 ;
64796 if (!PyArg_UnpackTuple(args,
"delete_TypeRequirementChecker", 1, 1, &obj0))
SWIG_fail;
64799 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_TypeRequirementChecker" "', argument " "1"" of type '" "operations_research::TypeRequirementChecker *""'");
64801 arg1 = reinterpret_cast< operations_research::TypeRequirementChecker * >(argp1);
64829 PyObject *resultobj = 0;
64833 PyObject * obj0 = 0 ;
64836 if (!PyArg_UnpackTuple(args,
"new_TypeRegulationsConstraint", 1, 1, &obj0))
SWIG_fail;
64839 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "new_TypeRegulationsConstraint" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64842 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "new_TypeRegulationsConstraint" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
64844 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
64861 PyObject *resultobj = 0;
64865 PyObject * obj0 = 0 ;
64867 if (!PyArg_UnpackTuple(args,
"TypeRegulationsConstraint_Post", 1, 1, &obj0))
SWIG_fail;
64870 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "TypeRegulationsConstraint_Post" "', argument " "1"" of type '" "operations_research::TypeRegulationsConstraint *""'");
64872 arg1 = reinterpret_cast< operations_research::TypeRegulationsConstraint * >(argp1);
64889 PyObject *resultobj = 0;
64893 PyObject * obj0 = 0 ;
64895 if (!PyArg_UnpackTuple(args,
"TypeRegulationsConstraint_InitialPropagateWrapper", 1, 1, &obj0))
SWIG_fail;
64898 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "TypeRegulationsConstraint_InitialPropagateWrapper" "', argument " "1"" of type '" "operations_research::TypeRegulationsConstraint *""'");
64900 arg1 = reinterpret_cast< operations_research::TypeRegulationsConstraint * >(argp1);
64903 (arg1)->InitialPropagate();
64917 PyObject *resultobj = 0;
64921 PyObject * obj0 = 0 ;
64923 if (!PyArg_UnpackTuple(args,
"delete_TypeRegulationsConstraint", 1, 1, &obj0))
SWIG_fail;
64926 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_TypeRegulationsConstraint" "', argument " "1"" of type '" "operations_research::TypeRegulationsConstraint *""'");
64928 arg1 = reinterpret_cast< operations_research::TypeRegulationsConstraint * >(argp1);
64956 PyObject *resultobj = 0;
64960 PyObject * obj0 = 0 ;
64962 if (!PyArg_UnpackTuple(args,
"delete_RoutingDimension", 1, 1, &obj0))
SWIG_fail;
64965 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "delete_RoutingDimension" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
64967 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
64984 PyObject *resultobj = 0;
64988 PyObject * obj0 = 0 ;
64991 if (!PyArg_UnpackTuple(args,
"RoutingDimension_model", 1, 1, &obj0))
SWIG_fail;
64994 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_model" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
64996 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65013 PyObject *resultobj = 0;
65026 PyObject * obj0 = 0 ;
65027 PyObject * obj1 = 0 ;
65028 PyObject * obj2 = 0 ;
65029 PyObject * obj3 = 0 ;
65032 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetTransitValue", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
65035 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetTransitValue" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65037 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65042 arg2 = static_cast< int64_t >(val2);
65047 arg3 = static_cast< int64_t >(val3);
65052 arg4 = static_cast< int64_t >(val4);
65069 PyObject *resultobj = 0;
65082 PyObject * obj0 = 0 ;
65083 PyObject * obj1 = 0 ;
65084 PyObject * obj2 = 0 ;
65085 PyObject * obj3 = 0 ;
65088 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetTransitValueFromClass", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
65091 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetTransitValueFromClass" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65093 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65098 arg2 = static_cast< int64_t >(val2);
65103 arg3 = static_cast< int64_t >(val3);
65108 arg4 = static_cast< int64_t >(val4);
65125 PyObject *resultobj = 0;
65132 PyObject * obj0 = 0 ;
65133 PyObject * obj1 = 0 ;
65136 if (!PyArg_UnpackTuple(args,
"RoutingDimension_CumulVar", 2, 2, &obj0, &obj1))
SWIG_fail;
65139 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_CumulVar" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65141 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65146 arg2 = static_cast< int64_t >(val2);
65163 PyObject *resultobj = 0;
65170 PyObject * obj0 = 0 ;
65171 PyObject * obj1 = 0 ;
65174 if (!PyArg_UnpackTuple(args,
"RoutingDimension_TransitVar", 2, 2, &obj0, &obj1))
SWIG_fail;
65177 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_TransitVar" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65179 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65184 arg2 = static_cast< int64_t >(val2);
65201 PyObject *resultobj = 0;
65208 PyObject * obj0 = 0 ;
65209 PyObject * obj1 = 0 ;
65212 if (!PyArg_UnpackTuple(args,
"RoutingDimension_FixedTransitVar", 2, 2, &obj0, &obj1))
SWIG_fail;
65215 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_FixedTransitVar" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65217 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65222 arg2 = static_cast< int64_t >(val2);
65239 PyObject *resultobj = 0;
65246 PyObject * obj0 = 0 ;
65247 PyObject * obj1 = 0 ;
65250 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SlackVar", 2, 2, &obj0, &obj1))
SWIG_fail;
65253 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SlackVar" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65255 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65260 arg2 = static_cast< int64_t >(val2);
65277 PyObject *resultobj = 0;
65287 PyObject * obj0 = 0 ;
65288 PyObject * obj1 = 0 ;
65289 PyObject * obj2 = 0 ;
65291 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetSpanUpperBoundForVehicle", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
65294 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetSpanUpperBoundForVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65296 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65301 arg2 = static_cast< int64_t >(val2);
65306 arg3 = static_cast< int >(val3);
65309 (arg1)->SetSpanUpperBoundForVehicle(arg2,arg3);
65323 PyObject *resultobj = 0;
65333 PyObject * obj0 = 0 ;
65334 PyObject * obj1 = 0 ;
65335 PyObject * obj2 = 0 ;
65337 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetSpanCostCoefficientForVehicle", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
65340 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetSpanCostCoefficientForVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65342 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65345 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingDimension_SetSpanCostCoefficientForVehicle" "', argument " "2"" of type '" "int64_t""'");
65347 arg2 = static_cast< int64_t >(val2);
65352 arg3 = static_cast< int >(val3);
65355 (arg1)->SetSpanCostCoefficientForVehicle(arg2,arg3);
65369 PyObject *resultobj = 0;
65376 PyObject * obj0 = 0 ;
65377 PyObject * obj1 = 0 ;
65379 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetSpanCostCoefficientForAllVehicles", 2, 2, &obj0, &obj1))
SWIG_fail;
65382 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetSpanCostCoefficientForAllVehicles" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65384 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65387 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingDimension_SetSpanCostCoefficientForAllVehicles" "', argument " "2"" of type '" "int64_t""'");
65389 arg2 = static_cast< int64_t >(val2);
65392 (arg1)->SetSpanCostCoefficientForAllVehicles(arg2);
65406 PyObject *resultobj = 0;
65413 PyObject * obj0 = 0 ;
65414 PyObject * obj1 = 0 ;
65416 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetGlobalSpanCostCoefficient", 2, 2, &obj0, &obj1))
SWIG_fail;
65419 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetGlobalSpanCostCoefficient" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65421 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65426 arg2 = static_cast< int64_t >(val2);
65429 (arg1)->SetGlobalSpanCostCoefficient(arg2);
65443 PyObject *resultobj = 0;
65456 PyObject * obj0 = 0 ;
65457 PyObject * obj1 = 0 ;
65458 PyObject * obj2 = 0 ;
65459 PyObject * obj3 = 0 ;
65461 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetCumulVarSoftUpperBound", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
65464 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetCumulVarSoftUpperBound" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65466 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65471 arg2 = static_cast< int64_t >(val2);
65476 arg3 = static_cast< int64_t >(val3);
65481 arg4 = static_cast< int64_t >(val4);
65484 (arg1)->SetCumulVarSoftUpperBound(arg2,arg3,arg4);
65498 PyObject *resultobj = 0;
65505 PyObject * obj0 = 0 ;
65506 PyObject * obj1 = 0 ;
65509 if (!PyArg_UnpackTuple(args,
"RoutingDimension_HasCumulVarSoftUpperBound", 2, 2, &obj0, &obj1))
SWIG_fail;
65512 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_HasCumulVarSoftUpperBound" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65514 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65519 arg2 = static_cast< int64_t >(val2);
65536 PyObject *resultobj = 0;
65543 PyObject * obj0 = 0 ;
65544 PyObject * obj1 = 0 ;
65547 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetCumulVarSoftUpperBound", 2, 2, &obj0, &obj1))
SWIG_fail;
65550 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetCumulVarSoftUpperBound" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65552 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65557 arg2 = static_cast< int64_t >(val2);
65574 PyObject *resultobj = 0;
65581 PyObject * obj0 = 0 ;
65582 PyObject * obj1 = 0 ;
65585 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetCumulVarSoftUpperBoundCoefficient", 2, 2, &obj0, &obj1))
SWIG_fail;
65588 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetCumulVarSoftUpperBoundCoefficient" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65590 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65593 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingDimension_GetCumulVarSoftUpperBoundCoefficient" "', argument " "2"" of type '" "int64_t""'");
65595 arg2 = static_cast< int64_t >(val2);
65612 PyObject *resultobj = 0;
65625 PyObject * obj0 = 0 ;
65626 PyObject * obj1 = 0 ;
65627 PyObject * obj2 = 0 ;
65628 PyObject * obj3 = 0 ;
65630 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetCumulVarSoftLowerBound", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
65633 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetCumulVarSoftLowerBound" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65635 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65640 arg2 = static_cast< int64_t >(val2);
65645 arg3 = static_cast< int64_t >(val3);
65650 arg4 = static_cast< int64_t >(val4);
65653 (arg1)->SetCumulVarSoftLowerBound(arg2,arg3,arg4);
65667 PyObject *resultobj = 0;
65674 PyObject * obj0 = 0 ;
65675 PyObject * obj1 = 0 ;
65678 if (!PyArg_UnpackTuple(args,
"RoutingDimension_HasCumulVarSoftLowerBound", 2, 2, &obj0, &obj1))
SWIG_fail;
65681 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_HasCumulVarSoftLowerBound" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65683 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65688 arg2 = static_cast< int64_t >(val2);
65705 PyObject *resultobj = 0;
65712 PyObject * obj0 = 0 ;
65713 PyObject * obj1 = 0 ;
65716 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetCumulVarSoftLowerBound", 2, 2, &obj0, &obj1))
SWIG_fail;
65719 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetCumulVarSoftLowerBound" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65721 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65726 arg2 = static_cast< int64_t >(val2);
65743 PyObject *resultobj = 0;
65750 PyObject * obj0 = 0 ;
65751 PyObject * obj1 = 0 ;
65754 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetCumulVarSoftLowerBoundCoefficient", 2, 2, &obj0, &obj1))
SWIG_fail;
65757 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetCumulVarSoftLowerBoundCoefficient" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65759 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65762 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingDimension_GetCumulVarSoftLowerBoundCoefficient" "', argument " "2"" of type '" "int64_t""'");
65764 arg2 = static_cast< int64_t >(val2);
65781 PyObject *resultobj = 0;
65783 SwigValueWrapper< std::vector< operations_research::IntervalVar * > > arg2 ;
65785 std::vector< int64_t > arg4 ;
65788 std::vector< operations_research::IntervalVar * > temp2 ;
65791 std::vector< int64_t > temp4 ;
65792 PyObject * obj0 = 0 ;
65793 PyObject * obj1 = 0 ;
65794 PyObject * obj2 = 0 ;
65795 PyObject * obj3 = 0 ;
65797 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetBreakIntervalsOfVehicle", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
65800 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetBreakIntervalsOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65802 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65804 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntervalVar*>)) {
65805 if (!PyErr_Occurred())
65809 arg2 = std::move(temp2);
65815 arg3 = static_cast< int >(val3);
65817 if (!vector_input_helper(obj3, &temp4, PyObjAs<int64_t>)) {
65818 if (!PyErr_Occurred())
65822 arg4 = std::move(temp4);
65826 (arg1)->SetBreakIntervalsOfVehicle(arg2,arg3,arg4);
65840 PyObject *resultobj = 0;
65853 PyObject * obj0 = 0 ;
65854 PyObject * obj1 = 0 ;
65855 PyObject * obj2 = 0 ;
65856 PyObject * obj3 = 0 ;
65858 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetBreakDistanceDurationOfVehicle", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
65861 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetBreakDistanceDurationOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65863 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65866 SWIG_exception_fail(
SWIG_ArgError(ecode2),
"in method '" "RoutingDimension_SetBreakDistanceDurationOfVehicle" "', argument " "2"" of type '" "int64_t""'");
65868 arg2 = static_cast< int64_t >(val2);
65871 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "RoutingDimension_SetBreakDistanceDurationOfVehicle" "', argument " "3"" of type '" "int64_t""'");
65873 arg3 = static_cast< int64_t >(val3);
65878 arg4 = static_cast< int >(val4);
65881 (arg1)->SetBreakDistanceDurationOfVehicle(arg2,arg3,arg4);
65895 PyObject *resultobj = 0;
65899 PyObject * obj0 = 0 ;
65901 if (!PyArg_UnpackTuple(args,
"RoutingDimension_InitializeBreaks", 1, 1, &obj0))
SWIG_fail;
65904 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_InitializeBreaks" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
65906 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65909 (arg1)->InitializeBreaks();
65923 PyObject *resultobj = 0;
65927 PyObject * obj0 = 0 ;
65930 if (!PyArg_UnpackTuple(args,
"RoutingDimension_HasBreakConstraints", 1, 1, &obj0))
SWIG_fail;
65933 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_HasBreakConstraints" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65935 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65952 PyObject *resultobj = 0;
65959 PyObject * obj0 = 0 ;
65960 PyObject * obj1 = 0 ;
65963 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetPreTravelEvaluatorOfVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
65966 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetPreTravelEvaluatorOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
65968 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
65973 arg2 = static_cast< int >(val2);
65990 PyObject *resultobj = 0;
65997 PyObject * obj0 = 0 ;
65998 PyObject * obj1 = 0 ;
66001 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetPostTravelEvaluatorOfVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
66004 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetPostTravelEvaluatorOfVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66006 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66011 arg2 = static_cast< int >(val2);
66028 PyObject *resultobj = 0;
66032 PyObject * obj0 = 0 ;
66035 if (!PyArg_UnpackTuple(args,
"RoutingDimension_base_dimension", 1, 1, &obj0))
SWIG_fail;
66038 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_base_dimension" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66040 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66057 PyObject *resultobj = 0;
66064 PyObject * obj0 = 0 ;
66065 PyObject * obj1 = 0 ;
66068 if (!PyArg_UnpackTuple(args,
"RoutingDimension_ShortestTransitionSlack", 2, 2, &obj0, &obj1))
SWIG_fail;
66071 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_ShortestTransitionSlack" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66073 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66078 arg2 = static_cast< int64_t >(val2);
66095 PyObject *resultobj = 0;
66099 PyObject * obj0 = 0 ;
66100 std::string *result = 0 ;
66102 if (!PyArg_UnpackTuple(args,
"RoutingDimension_name", 1, 1, &obj0))
SWIG_fail;
66105 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_name" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66107 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66124 PyObject *resultobj = 0;
66132 PyObject * obj0 = 0 ;
66133 PyObject * obj1 = 0 ;
66134 PyObject * obj2 = 0 ;
66136 if (!PyArg_UnpackTuple(args,
"RoutingDimension_SetPickupToDeliveryLimitFunctionForPair", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
66139 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_SetPickupToDeliveryLimitFunctionForPair" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
66141 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66144 arg2 = [
input](
int i,
int j) {
66145 return InvokePythonCallableReturning<int64_t>(
input.get(),
"ii", i, j);
66150 SWIG_exception_fail(
SWIG_ArgError(ecode3),
"in method '" "RoutingDimension_SetPickupToDeliveryLimitFunctionForPair" "', argument " "3"" of type '" "int""'");
66152 arg3 = static_cast< int >(val3);
66155 (arg1)->SetPickupToDeliveryLimitFunctionForPair(arg2,arg3);
66169 PyObject *resultobj = 0;
66173 PyObject * obj0 = 0 ;
66176 if (!PyArg_UnpackTuple(args,
"RoutingDimension_HasPickupToDeliveryLimits", 1, 1, &obj0))
SWIG_fail;
66179 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_HasPickupToDeliveryLimits" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66181 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66198 PyObject *resultobj = 0;
66211 PyObject * obj0 = 0 ;
66212 PyObject * obj1 = 0 ;
66213 PyObject * obj2 = 0 ;
66214 PyObject * obj3 = 0 ;
66216 if (!PyArg_UnpackTuple(args,
"RoutingDimension_AddNodePrecedence", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
66219 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_AddNodePrecedence" "', argument " "1"" of type '" "operations_research::RoutingDimension *""'");
66221 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66226 arg2 = static_cast< int64_t >(val2);
66231 arg3 = static_cast< int64_t >(val3);
66236 arg4 = static_cast< int64_t >(val4);
66239 (arg1)->AddNodePrecedence(arg2,arg3,arg4);
66253 PyObject *resultobj = 0;
66260 PyObject * obj0 = 0 ;
66261 PyObject * obj1 = 0 ;
66264 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetSpanUpperBoundForVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
66267 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetSpanUpperBoundForVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66269 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66274 arg2 = static_cast< int >(val2);
66291 PyObject *resultobj = 0;
66298 PyObject * obj0 = 0 ;
66299 PyObject * obj1 = 0 ;
66302 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetSpanCostCoefficientForVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
66305 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetSpanCostCoefficientForVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66307 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66312 arg2 = static_cast< int >(val2);
66329 PyObject *resultobj = 0;
66333 PyObject * obj0 = 0 ;
66336 if (!PyArg_UnpackTuple(args,
"RoutingDimension_global_span_cost_coefficient", 1, 1, &obj0))
SWIG_fail;
66339 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_global_span_cost_coefficient" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66341 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66358 PyObject *resultobj = 0;
66362 PyObject * obj0 = 0 ;
66365 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetGlobalOptimizerOffset", 1, 1, &obj0))
SWIG_fail;
66368 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetGlobalOptimizerOffset" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66370 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66387 PyObject *resultobj = 0;
66394 PyObject * obj0 = 0 ;
66395 PyObject * obj1 = 0 ;
66398 if (!PyArg_UnpackTuple(args,
"RoutingDimension_GetLocalOptimizerOffsetForVehicle", 2, 2, &obj0, &obj1))
SWIG_fail;
66401 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "RoutingDimension_GetLocalOptimizerOffsetForVehicle" "', argument " "1"" of type '" "operations_research::RoutingDimension const *""'");
66403 arg1 = reinterpret_cast< operations_research::RoutingDimension * >(argp1);
66408 arg2 = static_cast< int >(val2);
66432 PyObject *resultobj = 0;
66434 SwigValueWrapper< std::vector< operations_research::IntVar * > > arg2 ;
66435 std::vector< int64_t > arg3 ;
66438 std::vector< operations_research::IntVar * > temp2 ;
66439 std::vector< int64_t > temp3 ;
66440 PyObject * obj0 = 0 ;
66441 PyObject * obj1 = 0 ;
66442 PyObject * obj2 = 0 ;
66445 if (!PyArg_UnpackTuple(args,
"MakeSetValuesFromTargets", 3, 3, &obj0, &obj1, &obj2))
SWIG_fail;
66450 arg1 = reinterpret_cast< operations_research::Solver * >(argp1);
66452 if (!vector_input_helper(obj1, &temp2, PyObjAs<operations_research::IntVar*>)) {
66453 if (!PyErr_Occurred())
66457 arg2 = std::move(temp2);
66460 if (!vector_input_helper(obj2, &temp3, PyObjAs<int64_t>)) {
66461 if (!PyErr_Occurred())
66465 arg3 = std::move(temp3);
66483 PyObject *resultobj = 0;
66494 PyObject * obj0 = 0 ;
66495 PyObject * obj1 = 0 ;
66496 PyObject * obj2 = 0 ;
66497 PyObject * obj3 = 0 ;
66500 if (!PyArg_UnpackTuple(args,
"SolveModelWithSat", 4, 4, &obj0, &obj1, &obj2, &obj3))
SWIG_fail;
66503 SWIG_exception_fail(
SWIG_ArgError(res1),
"in method '" "SolveModelWithSat" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
66506 SWIG_exception_fail(
SWIG_ValueError,
"invalid null reference " "in method '" "SolveModelWithSat" "', argument " "1"" of type '" "operations_research::RoutingModel const &""'");
66508 arg1 = reinterpret_cast< operations_research::RoutingModel * >(argp1);
66511 PyObject*
const pyresult = PyObject_CallMethod(
66512 obj1, const_cast<char*>(
"SerializeToString"),
nullptr);
66513 if (pyresult !=
nullptr) {
66514 char* buffer =
nullptr;
66515 Py_ssize_t length = 0;
66516 int result = PyString_AsStringAndSize(pyresult, &buffer, &length);
66517 if (buffer !=
nullptr) {
66518 arg2->ParseFromArray(buffer, length);
66520 Py_DECREF(pyresult);
66527 arg3 = reinterpret_cast< operations_research::Assignment * >(argp3);
66532 arg4 = reinterpret_cast< operations_research::Assignment * >(argp4);
66562 {
"DefaultPhaseParameters_run_all_heuristics_set",
_wrap_DefaultPhaseParameters_run_all_heuristics_set, METH_VARARGS,
" The default phase will run heuristics periodically. This parameter indicates if we should run all heuristics, or a randomly selected one."},
66563 {
"DefaultPhaseParameters_run_all_heuristics_get",
_wrap_DefaultPhaseParameters_run_all_heuristics_get, METH_VARARGS,
" The default phase will run heuristics periodically. This parameter indicates if we should run all heuristics, or a randomly selected one."},
66564 {
"DefaultPhaseParameters_heuristic_period_set",
_wrap_DefaultPhaseParameters_heuristic_period_set, METH_VARARGS,
" The distance in nodes between each run of the heuristics. A negative or null value will mean that we will not run heuristics at all."},
66565 {
"DefaultPhaseParameters_heuristic_period_get",
_wrap_DefaultPhaseParameters_heuristic_period_get, METH_VARARGS,
" The distance in nodes between each run of the heuristics. A negative or null value will mean that we will not run heuristics at all."},
66572 {
"DefaultPhaseParameters_display_level_set",
_wrap_DefaultPhaseParameters_display_level_set, METH_VARARGS,
" This represents the amount of information displayed by the default search. NONE means no display, VERBOSE means extra information."},
66573 {
"DefaultPhaseParameters_display_level_get",
_wrap_DefaultPhaseParameters_display_level_get, METH_VARARGS,
" This represents the amount of information displayed by the default search. NONE means no display, VERBOSE means extra information."},
66584 {
"Solver_AddConstraint",
_wrap_Solver_AddConstraint, METH_VARARGS,
" Adds the constraint 'c' to the model. After calling this method, and until there is a backtrack that undoes the addition, any assignment of variables to values must satisfy the given constraint in order to be considered feasible. There are two fairly different use cases: - the most common use case is modeling: the given constraint is really part of the problem that the user is trying to solve. In this use case, AddConstraint is called outside of search (i.e., with state() == OUTSIDE_SEARCH). Most users should only use AddConstraint in this way. In this case, the constraint will belong to the model forever: it cannot not be removed by backtracking. - a rarer use case is that 'c' is not a real constraint of the model. It may be a constraint generated by a branching decision (a constraint whose goal is to restrict the search space), a symmetry breaking constraint (a constraint that does restrict the search space, but in a way that cannot have an impact on the quality of the solutions in the subtree), or an inferred constraint that, while having no semantic value to the model (it does not restrict the set of solutions), is worth having because we believe it may strengthen the propagation. In these cases, it happens that the constraint is added during the search (i.e., with state() == IN_SEARCH or state() == IN_ROOT_NODE). When a constraint is added during a search, it applies only to the subtree of the search tree rooted at the current node, and will be automatically removed by backtracking. This method does not take ownership of the constraint. If the constraint has been created by any factory method (Solver::MakeXXX), it will automatically be deleted. However, power users who implement their own constraints should do: solver.AddConstraint(solver.RevAlloc(new MyConstraint(...));"},
66591 {
"Solver_CheckAssignment",
_wrap_Solver_CheckAssignment, METH_VARARGS,
" Checks whether the given assignment satisfies all relevant constraints."},
66592 {
"Solver_CheckConstraint",
_wrap_Solver_CheckConstraint, METH_VARARGS,
" Checks whether adding this constraint will lead to an immediate failure. It will return false if the model is already inconsistent, or if adding the constraint makes it inconsistent."},
66593 {
"Solver_Fail",
_wrap_Solver_Fail, METH_VARARGS,
" Abandon the current branch in the search tree. A backtrack will follow."},
66595 {
"Solver_WallTime",
_wrap_Solver_WallTime, METH_VARARGS,
" DEPRECATED: Use Now() instead. Time elapsed, in ms since the creation of the solver."},
66596 {
"Solver_Branches",
_wrap_Solver_Branches, METH_VARARGS,
" The number of branches explored since the creation of the solver."},
66597 {
"Solver_Solutions",
_wrap_Solver_Solutions, METH_VARARGS,
" The number of solutions found since the start of the search."},
66598 {
"Solver_Failures",
_wrap_Solver_Failures, METH_VARARGS,
" The number of failures encountered since the creation of the solver."},
66600 {
"Solver_Stamp",
_wrap_Solver_Stamp, METH_VARARGS,
" The stamp indicates how many moves in the search tree we have performed. It is useful to detect if we need to update same lazy structures."},
66601 {
"Solver_FailStamp",
_wrap_Solver_FailStamp, METH_VARARGS,
" The fail_stamp() is incremented after each backtrack."},
66604 "MakeIntVar will create the best range based int var for the bounds given.\n" 66609 "MakeIntVar will create a variable with the given sparse domain.\n" 66614 "MakeIntVar will create a variable with the given sparse domain.\n" 66619 "MakeIntVar will create the best range based int var for the bounds given.\n" 66624 "MakeIntVar will create a variable with the given sparse domain.\n" 66629 "MakeIntVar will create a variable with the given sparse domain.\n" 66633 "MakeBoolVar will create a variable with a {0, 1} domain.\n" 66638 "MakeBoolVar will create a variable with a {0, 1} domain.\n" 66642 "IntConst will create a constant expression.\n" 66647 "IntConst will create a constant expression.\n" 66659 {
"Solver_MonotonicElement",
_wrap_Solver_MonotonicElement, METH_VARARGS,
" Function based element. The constraint takes ownership of the callback. The callback must be monotonic. It must be able to cope with any possible value in the domain of 'index' (potentially negative ones too). Furtermore, monotonicity is not checked. Thus giving a non-monotonic function, or specifying an incorrect increasing parameter will result in undefined behavior."},
66672 "Function-based element. The constraint takes ownership of the callback. The callback must be able to cope with any possible value in the domain of 'index' (potentially negative ones too).\n" 66677 "2D version of function-based element expression, values(expr1, expr2).\n" 66684 {
"Solver_IndexExpression",
_wrap_Solver_IndexExpression, METH_VARARGS,
" Returns the expression expr such that vars[expr] == value. It assumes that vars are all different."},
66692 "std::min (left, right)\n" 66697 "std::min(expr, value)\n" 66702 "std::min(expr, value)\n" 66711 "std::max(left, right)\n" 66716 "std::max(expr, value)\n" 66721 "std::max(expr, value)\n" 66724 {
"Solver_SemiContinuousExpr",
_wrap_Solver_SemiContinuousExpr, METH_VARARGS,
" Semi continuous Expression (x <= 0 -> f(x) = 0; x > 0 -> f(x) = ax + b) a >= 0 and b >= 0"},
66762 {
"Solver_IndexOfConstraint",
_wrap_Solver_IndexOfConstraint, METH_VARARGS,
" This constraint is a special case of the element constraint with an array of integer variables, where the variables are all different and the index variable is constrained such that vars[index] == target."},
66763 {
"Solver_ConstraintInitialPropagateCallback",
_wrap_Solver_ConstraintInitialPropagateCallback, METH_VARARGS,
" This method is a specialized case of the MakeConstraintDemon method to call the InitiatePropagate of the constraint 'ct'."},
66764 {
"Solver_DelayedConstraintInitialPropagateCallback",
_wrap_Solver_DelayedConstraintInitialPropagateCallback, METH_VARARGS,
" This method is a specialized case of the MakeConstraintDemon method to call the InitiatePropagate of the constraint 'ct' with low priority."},
66769 {
"Solver_MemberCt",
_wrap_Solver_MemberCt, METH_VARARGS,
" expr in set. Propagation is lazy, i.e. this constraint does not creates holes in the domain of the variable."},
66772 "expr not in set.\n" 66777 "expr should not be in the list of forbidden intervals [start[i]..end[i]].\n" 66782 "expr should not be in the list of forbidden intervals [start[i]..end[i]].\n" 66788 "|{i | vars[i] == value}| == max_count\n" 66793 "|{i | vars[i] == value}| == max_count\n" 66797 "Aggregated version of count: |{i | v[i] == values[j]}| == cards[j]\n" 66802 "Aggregated version of count: |{i | v[i] == values[j]}| == cards[j]\n" 66807 "Aggregated version of count: |{i | v[i] == j}| == cards[j]\n" 66812 "Aggregated version of count with bounded cardinalities: forall j in 0 .. card_size - 1: card_min <= |{i | v[i] == j}| <= card_max\n" 66817 "Aggregated version of count with bounded cardinalities: forall j in 0 .. card_size - 1: card_min[j] <= |{i | v[i] == j}| <= card_max[j]\n" 66822 "Aggregated version of count with bounded cardinalities: forall j in 0 .. card_size - 1: card_min[j] <= |{i | v[i] == j}| <= card_max[j]\n" 66827 "Aggregated version of count with bounded cardinalities: forall j in 0 .. card_size - 1: card_min[j] <= |{i | v[i] == values[j]}| <= card_max[j]\n" 66832 "Aggregated version of count with bounded cardinalities: forall j in 0 .. card_size - 1: card_min[j] <= |{i | v[i] == values[j]}| <= card_max[j]\n" 66834 {
"Solver_Deviation",
_wrap_Solver_Deviation, METH_VARARGS,
" Deviation constraint: sum_i |n * vars[i] - total_sum| <= deviation_var and sum_i vars[i] == total_sum n = #vars"},
66837 "All variables are pairwise different. This corresponds to the stronger version of the propagation algorithm.\n" 66842 "All variables are pairwise different. If 'stronger_propagation' is true, stronger, and potentially slower propagation will occur. This API will be deprecated in the future.\n" 66844 {
"Solver_AllDifferentExcept",
_wrap_Solver_AllDifferentExcept, METH_VARARGS,
" All variables are pairwise different, unless they are assigned to the escape value."},
66845 {
"Solver_SortingConstraint",
_wrap_Solver_SortingConstraint, METH_VARARGS,
" Creates a constraint binding the arrays of variables \"vars\" and \"sorted_vars\": sorted_vars[0] must be equal to the minimum of all variables in vars, and so on: the value of sorted_vars[i] must be equal to the i-th value of variables invars. This constraint propagates in both directions: from \"vars\" to \"sorted_vars\" and vice-versa. Behind the scenes, this constraint maintains that: - sorted is always increasing. - whatever the values of vars, there exists a permutation that injects its values into the sorted variables. For more info, please have a look at: https://mpi-inf.mpg.de/~mehlhorn/ftp/Mehlhorn-Thiel.pdf"},
66846 {
"Solver_LexicalLess",
_wrap_Solver_LexicalLess, METH_VARARGS,
" Creates a constraint that enforces that left is lexicographically less than right."},
66847 {
"Solver_LexicalLessOrEqual",
_wrap_Solver_LexicalLessOrEqual, METH_VARARGS,
" Creates a constraint that enforces that left is lexicographically less than or equal to right."},
66848 {
"Solver_InversePermutationConstraint",
_wrap_Solver_InversePermutationConstraint, METH_VARARGS,
" Creates a constraint that enforces that 'left' and 'right' both represent permutations of [0..left.size()-1], and that 'right' is the inverse permutation of 'left', i.e. for all i in [0..left.size()-1], right[left[i]] = i."},
66849 {
"Solver_NullIntersect",
_wrap_Solver_NullIntersect, METH_VARARGS,
" Creates a constraint that states that all variables in the first vector are different from all variables in the second group. Thus the set of values in the first vector does not intersect with the set of values in the second vector."},
66850 {
"Solver_NullIntersectExcept",
_wrap_Solver_NullIntersectExcept, METH_VARARGS,
" Creates a constraint that states that all variables in the first vector are different from all variables from the second group, unless they are assigned to the escape value. Thus the set of values in the first vector minus the escape value does not intersect with the set of values in the second vector."},
66851 {
"Solver_Circuit",
_wrap_Solver_Circuit, METH_VARARGS,
" Force the \"nexts\" variable to create a complete Hamiltonian path."},
66852 {
"Solver_SubCircuit",
_wrap_Solver_SubCircuit, METH_VARARGS,
" Force the \"nexts\" variable to create a complete Hamiltonian path for those that do not loop upon themselves."},
66853 {
"Solver_DelayedPathCumul",
_wrap_Solver_DelayedPathCumul, METH_VARARGS,
" Delayed version of the same constraint: propagation on the nexts variables is delayed until all constraints have propagated."},
66856 "Creates a constraint which accumulates values along a path such that: cumuls[next[i]] = cumuls[i] + transits[i]. Active variables indicate if the corresponding next variable is active; this could be useful to model unperformed nodes in a routing problem.\n" 66861 "Creates a constraint which accumulates values along a path such that: cumuls[next[i]] = cumuls[i] + transit_evaluator(i, next[i]). Active variables indicate if the corresponding next variable is active; this could be useful to model unperformed nodes in a routing problem. Ownership of transit_evaluator is taken and it must be a repeatable callback.\n" 66866 "Creates a constraint which accumulates values along a path such that: cumuls[next[i]] = cumuls[i] + transit_evaluator(i, next[i]) + slacks[i]. Active variables indicate if the corresponding next variable is active; this could be useful to model unperformed nodes in a routing problem. Ownership of transit_evaluator is taken and it must be a repeatable callback.\n" 66870 "This method creates a constraint where the graph of the relation between the variables is given in extension. There are 'arity' variables involved in the relation and the graph is given by a integer tuple set.\n" 66875 "Compatibility layer for Python API.\n" 66879 "This constraint create a finite automaton that will check the sequence of variables vars. It uses a transition table called 'transition_table'. Each transition is a triple (current_state, variable_value, new_state). The initial state is given, and the set of accepted states is decribed by 'final_states'. These states are hidden inside the constraint. Only the transitions (i.e. the variables) are visible.\n" 66884 "This constraint create a finite automaton that will check the sequence of variables vars. It uses a transition table called 'transition_table'. Each transition is a triple (current_state, variable_value, new_state). The initial state is given, and the set of accepted states is decribed by 'final_states'. These states are hidden inside the constraint. Only the transitions (i.e. the variables) are visible.\n" 66887 {
"Solver_Pack",
_wrap_Solver_Pack, METH_VARARGS,
" This constraint packs all variables onto 'number_of_bins' variables. For any given variable, a value of 'number_of_bins' indicates that the variable is not assigned to any bin. Dimensions, i.e., cumulative constraints on this packing, can be added directly from the pack class."},
66890 "Creates an interval var with a fixed duration. The duration must be greater than 0. If optional is true, then the interval can be performed or unperformed. If optional is false, then the interval is always performed.\n" 66895 "Creates a performed interval var with a fixed duration. The duration must be greater than 0.\n" 66900 "Creates an interval var with a fixed duration, and performed_variable. The duration must be greater than 0.\n" 66903 {
"Solver_IntervalVar",
_wrap_Solver_IntervalVar, METH_VARARGS,
" Creates an interval var by specifying the bounds on start, duration, and end."},
66904 {
"Solver_MirrorInterval",
_wrap_Solver_MirrorInterval, METH_VARARGS,
" Creates an interval var that is the mirror image of the given one, that is, the interval var obtained by reversing the axis."},
66905 {
"Solver_FixedDurationStartSyncedOnStartIntervalVar",
_wrap_Solver_FixedDurationStartSyncedOnStartIntervalVar, METH_VARARGS,
" Creates an interval var with a fixed duration whose start is synchronized with the start of another interval, with a given offset. The performed status is also in sync with the performed status of the given interval variable."},
66906 {
"Solver_FixedDurationStartSyncedOnEndIntervalVar",
_wrap_Solver_FixedDurationStartSyncedOnEndIntervalVar, METH_VARARGS,
" Creates an interval var with a fixed duration whose start is synchronized with the end of another interval, with a given offset. The performed status is also in sync with the performed status of the given interval variable."},
66907 {
"Solver_FixedDurationEndSyncedOnStartIntervalVar",
_wrap_Solver_FixedDurationEndSyncedOnStartIntervalVar, METH_VARARGS,
" Creates an interval var with a fixed duration whose end is synchronized with the start of another interval, with a given offset. The performed status is also in sync with the performed status of the given interval variable."},
66908 {
"Solver_FixedDurationEndSyncedOnEndIntervalVar",
_wrap_Solver_FixedDurationEndSyncedOnEndIntervalVar, METH_VARARGS,
" Creates an interval var with a fixed duration whose end is synchronized with the end of another interval, with a given offset. The performed status is also in sync with the performed status of the given interval variable."},
66909 {
"Solver_IntervalRelaxedMin",
_wrap_Solver_IntervalRelaxedMin, METH_VARARGS,
" Creates and returns an interval variable that wraps around the given one, relaxing the min start and end. Relaxing means making unbounded when optional. If the variable is non-optional, this method returns interval_var. More precisely, such an interval variable behaves as follows: * When the underlying must be performed, the returned interval variable behaves exactly as the underlying; * When the underlying may or may not be performed, the returned interval variable behaves like the underlying, except that it is unbounded on the min side; * When the underlying cannot be performed, the returned interval variable is of duration 0 and must be performed in an interval unbounded on both sides. This is very useful to implement propagators that may only modify the start max or end max."},
66910 {
"Solver_IntervalRelaxedMax",
_wrap_Solver_IntervalRelaxedMax, METH_VARARGS,
" Creates and returns an interval variable that wraps around the given one, relaxing the max start and end. Relaxing means making unbounded when optional. If the variable is non optional, this method returns interval_var. More precisely, such an interval variable behaves as follows: * When the underlying must be performed, the returned interval variable behaves exactly as the underlying; * When the underlying may or may not be performed, the returned interval variable behaves like the underlying, except that it is unbounded on the max side; * When the underlying cannot be performed, the returned interval variable is of duration 0 and must be performed in an interval unbounded on both sides. This is very useful for implementing propagators that may only modify the start min or end min."},
66913 "This constraint implements a temporal disjunction between two interval vars t1 and t2. 'alt' indicates which alternative was chosen (alt == 0 is equivalent to t1 before t2).\n" 66918 "This constraint implements a temporal disjunction between two interval vars.\n" 66920 {
"Solver_DisjunctiveConstraint",
_wrap_Solver_DisjunctiveConstraint, METH_VARARGS,
" This constraint forces all interval vars into an non-overlapping sequence. Intervals with zero duration can be scheduled anywhere."},
66923 "This constraint forces that, for any integer t, the sum of the demands corresponding to an interval containing t does not exceed the given capacity. Intervals and demands should be vectors of equal size. Demands should only contain non-negative values. Zero values are supported, and the corresponding intervals are filtered out, as they neither impact nor are impacted by this constraint.\n" 66928 "This constraint forces that, for any integer t, the sum of the demands corresponding to an interval containing t does not exceed the given capacity. Intervals and demands should be vectors of equal size. Demands should only contain non-negative values. Zero values are supported, and the corresponding intervals are filtered out, as they neither impact nor are impacted by this constraint.\n" 66933 "This constraint forces that, for any integer t, the sum of the demands corresponding to an interval containing t does not exceed the given capacity. Intervals and demands should be vectors of equal size. Demands should only contain non-negative values. Zero values are supported, and the corresponding intervals are filtered out, as they neither impact nor are impacted by this constraint.\n" 66938 "This constraint enforces that, for any integer t, the sum of the demands corresponding to an interval containing t does not exceed the given capacity. Intervals and demands should be vectors of equal size. Demands should only contain non-negative values. Zero values are supported, and the corresponding intervals are filtered out, as they neither impact nor are impacted by this constraint.\n" 66943 "This constraint enforces that, for any integer t, the sum of demands corresponding to an interval containing t does not exceed the given capacity. Intervals and demands should be vectors of equal size. Demands should be positive.\n" 66948 "This constraint enforces that, for any integer t, the sum of demands corresponding to an interval containing t does not exceed the given capacity. Intervals and demands should be vectors of equal size. Demands should be positive.\n" 66950 {
"Solver_Cover",
_wrap_Solver_Cover, METH_VARARGS,
" This constraint states that the target_var is the convex hull of the intervals. If none of the interval variables is performed, then the target var is unperformed too. Also, if the target variable is unperformed, then all the intervals variables are unperformed too."},
66953 "This method creates an empty assignment.\n" 66958 "This method creates an assignment which is a copy of 'a'.\n" 66962 "Collect the first solution of the search.\n" 66967 "Collect the first solution of the search. The variables will need to be added later.\n" 66971 "Collect the last solution of the search.\n" 66976 "Collect the last solution of the search. The variables will need to be added later.\n" 66980 "Collect the solution corresponding to the optimal value of the objective of 'assignment'; if 'assignment' does not have an objective no solution is collected. This collector only collects one solution corresponding to the best objective value (the first one found).\n" 66985 "Collect the solution corresponding to the optimal value of the objective of 'assignment'; if 'assignment' does not have an objective no solution is collected. This collector only collects one solution corresponding to the best objective value (the first one found). The variables will need to be added later.\n" 66989 "Collect all solutions of the search.\n" 66994 "Collect all solutions of the search. The variables will need to be added later.\n" 66998 {
"Solver_Optimize",
_wrap_Solver_Optimize, METH_VARARGS,
" Creates a objective with a given sense (true = maximization)."},
67001 "Creates a minimization weighted objective. The actual objective is scalar_prod(sub_objectives, weights).\n" 67006 "Creates a minimization weighted objective. The actual objective is scalar_prod(sub_objectives, weights).\n" 67010 "Creates a maximization weigthed objective.\n" 67015 "Creates a maximization weigthed objective.\n" 67019 "Creates a weighted objective with a given sense (true = maximization).\n" 67024 "Creates a weighted objective with a given sense (true = maximization).\n" 67026 {
"Solver_TabuSearch",
_wrap_Solver_TabuSearch, METH_VARARGS,
" MetaHeuristics which try to get the search out of local optima. Creates a Tabu Search monitor. In the context of local search the behavior is similar to MakeOptimize(), creating an objective in a given sense. The behavior differs once a local optimum is reached: thereafter solutions which degrade the value of the objective are allowed if they are not \"tabu\". A solution is \"tabu\" if it doesn't respect the following rules: - improving the best solution found so far - variables in the \"keep\" list must keep their value, variables in the \"forbid\" list must not take the value they have in the list. Variables with new values enter the tabu lists after each new solution found and leave the lists after a given number of iterations (called tenure). Only the variables passed to the method can enter the lists. The tabu criterion is softened by the tabu factor which gives the number of \"tabu\" violations which is tolerated; a factor of 1 means no violations allowed; a factor of 0 means all violations are allowed."},
67028 {
"Solver_LubyRestart",
_wrap_Solver_LubyRestart, METH_VARARGS,
" This search monitor will restart the search periodically. At the iteration n, it will restart after scale_factor * Luby(n) failures where Luby is the Luby Strategy (i.e. 1 1 2 1 1 2 4 1 1 2 1 1 2 4 8...)."},
67029 {
"Solver_ConstantRestart",
_wrap_Solver_ConstantRestart, METH_VARARGS,
" This search monitor will restart the search periodically after 'frequency' failures."},
67030 {
"Solver_TimeLimit",
_wrap_Solver_TimeLimit, METH_VARARGS,
" Creates a search limit that constrains the running time."},
67031 {
"Solver_BranchesLimit",
_wrap_Solver_BranchesLimit, METH_VARARGS,
" Creates a search limit that constrains the number of branches explored in the search tree."},
67032 {
"Solver_FailuresLimit",
_wrap_Solver_FailuresLimit, METH_VARARGS,
" Creates a search limit that constrains the number of failures that can happen when exploring the search tree."},
67033 {
"Solver_SolutionsLimit",
_wrap_Solver_SolutionsLimit, METH_VARARGS,
" Creates a search limit that constrains the number of solutions found during the search."},
67035 {
"Solver_CustomLimit",
_wrap_Solver_CustomLimit, METH_VARARGS,
" Callback-based search limit. Search stops when limiter returns true; if this happens at a leaf the corresponding solution will be rejected."},
67038 "The SearchMonitors below will display a periodic search log on LOG(INFO) every branch_period branches explored.\n" 67043 "At each solution, this monitor also display the var value.\n" 67048 "At each solution, this monitor will also display result of display_callback.\n" 67053 "At each solution, this monitor will display the 'var' value and the result of display_callback.\n" 67058 "OptimizeVar Search Logs At each solution, this monitor will also display the 'opt_var' value.\n" 67063 "Creates a search monitor that will also print the result of the display callback.\n" 67065 {
"Solver_SearchTrace",
_wrap_Solver_SearchTrace, METH_VARARGS,
" Creates a search monitor that will trace precisely the behavior of the search. Use this only for low level debugging."},
67079 {
"Solver_ScheduleOrPostpone",
_wrap_Solver_ScheduleOrPostpone, METH_VARARGS,
" Returns a decision that tries to schedule a task at a given time. On the Apply branch, it will set that interval var as performed and set its start to 'est'. On the Refute branch, it will just update the 'marker' to 'est' + 1. This decision is used in the INTERVAL_SET_TIMES_FORWARD strategy."},
67080 {
"Solver_ScheduleOrExpedite",
_wrap_Solver_ScheduleOrExpedite, METH_VARARGS,
" Returns a decision that tries to schedule a task at a given time. On the Apply branch, it will set that interval var as performed and set its end to 'est'. On the Refute branch, it will just update the 'marker' to 'est' - 1. This decision is used in the INTERVAL_SET_TIMES_BACKWARD strategy."},
67081 {
"Solver_RankFirstInterval",
_wrap_Solver_RankFirstInterval, METH_VARARGS,
" Returns a decision that tries to rank first the ith interval var in the sequence variable."},
67082 {
"Solver_RankLastInterval",
_wrap_Solver_RankLastInterval, METH_VARARGS,
" Returns a decision that tries to rank last the ith interval var in the sequence variable."},
67085 "Phases on IntVar arrays. for all other functions that have several homonyms in this .h).\n" 67090 "Scheduling phases.\n" 67092 {
"Solver_DecisionBuilderFromAssignment",
_wrap_Solver_DecisionBuilderFromAssignment, METH_VARARGS,
" Returns a decision builder for which the left-most leaf corresponds to assignment, the rest of the tree being explored using 'db'."},
67093 {
"Solver_ConstraintAdder",
_wrap_Solver_ConstraintAdder, METH_VARARGS,
" Returns a decision builder that will add the given constraint to the model."},
67096 {
"Solver_RestoreAssignment",
_wrap_Solver_RestoreAssignment, METH_VARARGS,
" Returns a DecisionBuilder which restores an Assignment (calls void Assignment::Restore())"},
67097 {
"Solver_StoreAssignment",
_wrap_Solver_StoreAssignment, METH_VARARGS,
" Returns a DecisionBuilder which stores an Assignment (calls void Assignment::Store())"},
67099 {
"Solver_RandomLnsOperator",
_wrap_Solver_RandomLnsOperator, METH_VARARGS,
" Creates a large neighborhood search operator which creates fragments (set of relaxed variables) with up to number_of_variables random variables (sampling with replacement is performed meaning that at most number_of_variables variables are selected). Warning: this operator will always return neighbors; using it without a search limit will result in a non-ending search. Optionally a random seed can be specified."},
67102 "Creates a local search operator that tries to move the assignment of some variables toward a target. The target is given as an Assignment. This operator generates neighbors in which the only difference compared to the current state is that one variable that belongs to the target assignment is set to its target value.\n" 67107 "Creates a local search operator that tries to move the assignment of some variables toward a target. The target is given either as two vectors: a vector of variables and a vector of associated target values. The two vectors should be of the same length. This operator generates neighbors in which the only difference compared to the current state is that one variable that belongs to the given vector is set to its target value.\n" 67112 "Randomized version of local search concatenator; calls a random operator at each call to MakeNextNeighbor().\n" 67117 "Randomized version of local search concatenator; calls a random operator at each call to MakeNextNeighbor(). The provided seed is used to initialize the random number generator.\n" 67119 {
"Solver_NeighborhoodLimit",
_wrap_Solver_NeighborhoodLimit, METH_VARARGS,
" Creates a local search operator that wraps another local search operator and limits the number of neighbors explored (i.e., calls to MakeNextNeighbor from the current solution (between two calls to Start()). When this limit is reached, MakeNextNeighbor() returns false. The counter is cleared when Start() is called."},
67122 "Local Search decision builders factories. Local search is used to improve a given solution. This initial solution can be specified either by an Assignment or by a DecisionBulder, and the corresponding variables, the initial solution being the first solution found by the DecisionBuilder. The LocalSearchPhaseParameters parameter holds the actual definition of the local search phase: - a local search operator used to explore the neighborhood of the current solution, - a decision builder to instantiate unbound variables once a neighbor has been defined; in the case of LNS-based operators instantiates fragment variables; search monitors can be added to this sub-search by wrapping the decision builder with MakeSolveOnce. - a search limit specifying how long local search looks for neighbors before accepting one; the last neighbor is always taken and in the case of a greedy search, this corresponds to the best local neighbor; first-accept (which is the default behavior) can be modeled using a solution found limit of 1, - a vector of local search filters used to speed up the search by pruning unfeasible neighbors. Metaheuristics can be added by defining specialized search monitors; currently down/up-hill climbing is available through OptimizeVar, as well as Guided Local Search, Tabu Search and Simulated Annealing.\n" 67127 "Variant with a sub_decison_builder specific to the first solution.\n" 67130 {
"Solver_SearchDepth",
_wrap_Solver_SearchDepth, METH_VARARGS,
" Gets the search depth of the current active search. Returns -1 if there is no active search opened."},
67131 {
"Solver_SearchLeftDepth",
_wrap_Solver_SearchLeftDepth, METH_VARARGS,
" Gets the search left depth of the current active search. Returns -1 if there is no active search opened."},
67132 {
"Solver_SolveDepth",
_wrap_Solver_SolveDepth, METH_VARARGS,
" Gets the number of nested searches. It returns 0 outside search, 1 during the top level search, 2 or more in case of nested searches."},
67133 {
"Solver_Rand64",
_wrap_Solver_Rand64, METH_VARARGS,
" Returns a random value between 0 and 'size' - 1;"},
67134 {
"Solver_Rand32",
_wrap_Solver_Rand32, METH_VARARGS,
" Returns a random value between 0 and 'size' - 1;"},
67135 {
"Solver_ReSeed",
_wrap_Solver_ReSeed, METH_VARARGS,
" Reseed the solver random generator."},
67136 {
"Solver_LocalSearchProfile",
_wrap_Solver_LocalSearchProfile, METH_VARARGS,
" Returns local search profiling information in a human readable format."},
67137 {
"Solver_Constraints",
_wrap_Solver_Constraints, METH_VARARGS,
" Counts the number of constraints that have been added to the solver before the search."},
67138 {
"Solver_Accept",
_wrap_Solver_Accept, METH_VARARGS,
" Accepts the given model visitor."},
67141 {
"Solver_ShouldFail",
_wrap_Solver_ShouldFail, METH_VARARGS,
" These methods are only useful for the SWIG wrappers, which need a way to externally cause the Solver to fail."},
67175 {
"Decision_ApplyWrapper",
_wrap_Decision_ApplyWrapper, METH_VARARGS,
" Apply will be called first when the decision is executed."},
67185 {
"DecisionBuilder_NextWrapper",
_wrap_DecisionBuilder_NextWrapper, METH_VARARGS,
" This is the main method of the decision builder class. It must return a decision (an instance of the class Decision). If it returns nullptr, this means that the decision builder has finished its work."},
67192 {
"new_Demon",
_wrap_new_Demon, METH_VARARGS,
" This indicates the priority of a demon. Immediate demons are treated separately and corresponds to variables."},
67194 {
"Demon_RunWrapper",
_wrap_Demon_RunWrapper, METH_VARARGS,
" This is the main callback of the demon."},
67195 {
"Demon_Priority",
_wrap_Demon_Priority, METH_VARARGS,
" This method returns the priority of the demon. Usually a demon is fast, slow or normal. Immediate demons are reserved for internal use to maintain variables."},
67197 {
"Demon_Inhibit",
_wrap_Demon_Inhibit, METH_VARARGS,
" This method inhibits the demon in the search tree below the current position."},
67198 {
"Demon_Desinhibit",
_wrap_Demon_Desinhibit, METH_VARARGS,
" This method un-inhibits the demon that was previously inhibited."},
67204 {
"Constraint_Post",
_wrap_Constraint_Post, METH_VARARGS,
" This method is called when the constraint is processed by the solver. Its main usage is to attach demons to variables."},
67205 {
"Constraint_InitialPropagateWrapper",
_wrap_Constraint_InitialPropagateWrapper, METH_VARARGS,
" This method performs the initial propagation of the constraint. It is called just after the post."},
67207 {
"Constraint_Var",
_wrap_Constraint_Var, METH_VARARGS,
" Creates a Boolean variable representing the status of the constraint (false = constraint is violated, true = constraint is satisfied). It returns nullptr if the constraint does not support this API."},
67240 {
"SearchMonitor_AfterDecision",
_wrap_SearchMonitor_AfterDecision, METH_VARARGS,
" Just after refuting or applying the decision, apply is true after Apply. This is called only if the Apply() or Refute() methods have not failed."},
67245 {
"SearchMonitor_AcceptSolution",
_wrap_SearchMonitor_AcceptSolution, METH_VARARGS,
" This method is called when a solution is found. It asserts whether the solution is valid. A value of false indicates that the solution should be discarded."},
67246 {
"SearchMonitor_AtSolution",
_wrap_SearchMonitor_AtSolution, METH_VARARGS,
" This method is called when a valid solution is found. If the return value is true, then search will resume after. If the result is false, then search will stop there."},
67248 {
"SearchMonitor_LocalOptimum",
_wrap_SearchMonitor_LocalOptimum, METH_VARARGS,
" When a local optimum is reached. If 'true' is returned, the last solution is discarded and the search proceeds with the next one."},
67261 {
"IntExpr_SetRange",
_wrap_IntExpr_SetRange, METH_VARARGS,
" This method sets both the min and the max of the expression."},
67262 {
"IntExpr_SetValue",
_wrap_IntExpr_SetValue, METH_VARARGS,
" This method sets the value of the expression."},
67263 {
"IntExpr_Bound",
_wrap_IntExpr_Bound, METH_VARARGS,
" Returns true if the min and the max of the expression are equal."},
67264 {
"IntExpr_IsVar",
_wrap_IntExpr_IsVar, METH_VARARGS,
" Returns true if the expression is indeed a variable."},
67265 {
"IntExpr_Var",
_wrap_IntExpr_Var, METH_VARARGS,
" Creates a variable from the expression."},
67266 {
"IntExpr_VarWithName",
_wrap_IntExpr_VarWithName, METH_VARARGS,
" Creates a variable from the expression and set the name of the resulting var. If the expression is already a variable, then it will set the name of the expression, possibly overwriting it. This is just a shortcut to Var() followed by set_name()."},
67269 "Attach a demon that will watch the min or the max of the expression.\n" 67274 "Attach a demon that will watch the min or the max of the expression.\n" 67302 {
"IntVarIterator_Ok",
_wrap_IntVarIterator_Ok, METH_VARARGS,
" This method indicates if we can call Value() or not."},
67303 {
"IntVarIterator_Value",
_wrap_IntVarIterator_Value, METH_VARARGS,
" This method returns the current value of the iterator."},
67304 {
"IntVarIterator_Next",
_wrap_IntVarIterator_Next, METH_VARARGS,
" This method moves the iterator to the next value."},
67309 {
"IntVar_Value",
_wrap_IntVar_Value, METH_VARARGS,
" This method returns the value of the variable. This method checks before that the variable is bound."},
67310 {
"IntVar_RemoveValue",
_wrap_IntVar_RemoveValue, METH_VARARGS,
" This method removes the value 'v' from the domain of the variable."},
67311 {
"IntVar_RemoveInterval",
_wrap_IntVar_RemoveInterval, METH_VARARGS,
" This method removes the interval 'l' .. 'u' from the domain of the variable. It assumes that 'l' <= 'u'."},
67312 {
"IntVar_RemoveValues",
_wrap_IntVar_RemoveValues, METH_VARARGS,
" This method remove the values from the domain of the variable."},
67313 {
"IntVar_SetValues",
_wrap_IntVar_SetValues, METH_VARARGS,
" This method intersects the current domain with the values in the array."},
67316 "This method attaches a demon that will be awakened when the variable is bound.\n" 67321 "This method attaches a closure that will be awakened when the variable is bound.\n" 67325 "This method attaches a demon that will watch any domain modification of the domain of the variable.\n" 67330 "This method attaches a closure that will watch any domain modification of the domain of the variable.\n" 67332 {
"IntVar_Size",
_wrap_IntVar_Size, METH_VARARGS,
" This method returns the number of values in the domain of the variable."},
67333 {
"IntVar_Contains",
_wrap_IntVar_Contains, METH_VARARGS,
" This method returns whether the value 'v' is in the domain of the variable."},
67334 {
"IntVar_HoleIteratorAux",
_wrap_IntVar_HoleIteratorAux, METH_VARARGS,
" Creates a hole iterator. When 'reversible' is false, the returned object is created on the normal C++ heap and the solver does NOT take ownership of the object."},
67335 {
"IntVar_DomainIteratorAux",
_wrap_IntVar_DomainIteratorAux, METH_VARARGS,
" Creates a domain iterator. When 'reversible' is false, the returned object is created on the normal C++ heap and the solver does NOT take ownership of the object."},
67349 {
"SolutionCollector_Failures",
_wrap_SolutionCollector_Failures, METH_VARARGS,
" Returns the number of failures encountered at the time of the nth solution."},
67351 {
"SolutionCollector_Value",
_wrap_SolutionCollector_Value, METH_VARARGS,
" This is a shortcut to get the Value of 'var' in the nth solution."},
67356 {
"SolutionCollector_ForwardSequence",
_wrap_SolutionCollector_ForwardSequence, METH_VARARGS,
" This is a shortcut to get the ForwardSequence of 'var' in the nth solution. The forward sequence is the list of ranked interval variables starting from the start of the sequence."},
67357 {
"SolutionCollector_BackwardSequence",
_wrap_SolutionCollector_BackwardSequence, METH_VARARGS,
" This is a shortcut to get the BackwardSequence of 'var' in the nth solution. The backward sequence is the list of ranked interval variables starting from the end of the sequence."},
67358 {
"SolutionCollector_Unperformed",
_wrap_SolutionCollector_Unperformed, METH_VARARGS,
" This is a shortcut to get the list of unperformed of 'var' in the nth solution."},
67360 {
"OptimizeVar_Best",
_wrap_OptimizeVar_Best, METH_VARARGS,
" Returns the best value found during search."},
67361 {
"OptimizeVar_Var",
_wrap_OptimizeVar_Var, METH_VARARGS,
" Returns the variable that is optimized."},
67372 {
"SearchLimit_Check",
_wrap_SearchLimit_Check, METH_VARARGS,
" This method is called to check the status of the limit. A return value of true indicates that we have indeed crossed the limit. In that case, this method will not be called again and the remaining search will be discarded."},
67373 {
"SearchLimit_Init",
_wrap_SearchLimit_Init, METH_VARARGS,
" This method is called when the search limit is initialized."},
67379 {
"IntervalVar_StartMin",
_wrap_IntervalVar_StartMin, METH_VARARGS,
" These methods query, set, and watch the start position of the interval var."},
67388 {
"IntervalVar_DurationMin",
_wrap_IntervalVar_DurationMin, METH_VARARGS,
" These methods query, set, and watch the duration of the interval var."},
67397 {
"IntervalVar_EndMin",
_wrap_IntervalVar_EndMin, METH_VARARGS,
" These methods query, set, and watch the end position of the interval var."},
67406 {
"IntervalVar_MustBePerformed",
_wrap_IntervalVar_MustBePerformed, METH_VARARGS,
" These methods query, set, and watch the performed status of the interval var."},
67415 "Attaches a demon awakened when anything about this interval changes.\n" 67420 "Attaches a closure awakened when anything about this interval changes.\n" 67422 {
"IntervalVar_StartExpr",
_wrap_IntervalVar_StartExpr, METH_VARARGS,
" These methods create expressions encapsulating the start, end and duration of the interval var. Please note that these must not be used if the interval var is unperformed."},
67426 {
"IntervalVar_SafeStartExpr",
_wrap_IntervalVar_SafeStartExpr, METH_VARARGS,
" These methods create expressions encapsulating the start, end and duration of the interval var. If the interval var is unperformed, they will return the unperformed_value."},
67459 {
"SequenceVar_RankFirst",
_wrap_SequenceVar_RankFirst, METH_VARARGS,
" Ranks the index_th interval var first of all unranked interval vars. After that, it will no longer be considered ranked."},
67460 {
"SequenceVar_RankNotFirst",
_wrap_SequenceVar_RankNotFirst, METH_VARARGS,
" Indicates that the index_th interval var will not be ranked first of all currently unranked interval vars."},
67461 {
"SequenceVar_RankLast",
_wrap_SequenceVar_RankLast, METH_VARARGS,
" Ranks the index_th interval var first of all unranked interval vars. After that, it will no longer be considered ranked."},
67462 {
"SequenceVar_RankNotLast",
_wrap_SequenceVar_RankNotLast, METH_VARARGS,
" Indicates that the index_th interval var will not be ranked first of all currently unranked interval vars."},
67464 {
"SequenceVar_Next",
_wrap_SequenceVar_Next, METH_VARARGS,
" Returns the next of the index_th interval of the sequence."},
67465 {
"SequenceVar_Size",
_wrap_SequenceVar_Size, METH_VARARGS,
" Returns the number of interval vars in the sequence."},
67540 {
"Assignment_Load",
_wrap_Assignment_Load, METH_VARARGS,
" Loads an assignment from a file; does not add variables to the assignment (only the variables contained in the assignment are modified)."},
67613 "Dimensions are additional constraints than can restrict what is possible with the pack constraint. It can be used to set capacity limits, to count objects per bin, to compute unassigned penalties... This dimension imposes that for all bins b, the weighted sum (weights[i]) of all objects i assigned to 'b' is less or equal 'bounds[b]'.\n" 67618 "This dimension imposes that for all bins b, the weighted sum (weights->Run(i)) of all objects i assigned to 'b' is less or equal to 'bounds[b]'. Ownership of the callback is transferred to the pack constraint.\n" 67623 "This dimension imposes that for all bins b, the weighted sum (weights->Run(i, b) of all objects i assigned to 'b' is less or equal to 'bounds[b]'. Ownership of the callback is transferred to the pack constraint.\n" 67627 "This dimension imposes that for all bins b, the weighted sum (weights[i]) of all objects i assigned to 'b' is equal to loads[b].\n" 67632 "This dimension imposes that for all bins b, the weighted sum (weights->Run(i, b)) of all objects i assigned to 'b' is equal to loads[b].\n" 67634 {
"Pack_AddSumVariableWeightsLessOrEqualConstantDimension",
_wrap_Pack_AddSumVariableWeightsLessOrEqualConstantDimension, METH_VARARGS,
" This dimension imposes: forall b in bins, sum (i in items: usage[i] * is_assigned(i, b)) <= capacity[b] where is_assigned(i, b) is true if and only if item i is assigned to the bin b. This can be used to model shapes of items by linking variables of the same item on parallel dimensions with an allowed assignment constraint."},
67636 {
"Pack_AddCountUsedBinDimension",
_wrap_Pack_AddCountUsedBinDimension, METH_VARARGS,
" This dimension links 'count_var' to the actual number of bins used in the pack."},
67643 {
"DisjunctiveConstraint_SetTransitionTime",
_wrap_DisjunctiveConstraint_SetTransitionTime, METH_VARARGS,
" Add a transition time between intervals. It forces the distance between the end of interval a and start of interval b that follows it to be at least transition_time(a, b). This function must always return a positive or null value."},
67670 {
"IntVarContainer___eq__",
_wrap_IntVarContainer___eq__, METH_VARARGS,
" Returns true if this and 'container' both represent the same V* -> E map. Runs in linear time; requires that the == operator on the type E is well defined."},
67679 {
"IntervalVarContainer___eq__",
_wrap_IntervalVarContainer___eq__, METH_VARARGS,
" Returns true if this and 'container' both represent the same V* -> E map. Runs in linear time; requires that the == operator on the type E is well defined."},
67688 {
"SequenceVarContainer___eq__",
_wrap_SequenceVarContainer___eq__, METH_VARARGS,
" Returns true if this and 'container' both represent the same V* -> E map. Runs in linear time; requires that the == operator on the type E is well defined."},
67696 {
"IntVarLocalSearchOperatorTemplate_Start",
_wrap_IntVarLocalSearchOperatorTemplate_Start, METH_VARARGS,
" This method should not be overridden. Override OnStart() instead which is called before exiting this method."},
67702 {
"IntVarLocalSearchOperatorTemplate_OnStart",
_wrap_IntVarLocalSearchOperatorTemplate_OnStart, METH_VARARGS,
" Called by Start() after synchronizing the operator with the current assignment. Should be overridden instead of Start() to avoid calling VarLocalSearchOperator::Start explicitly."},
67706 {
"IntVarLocalSearchOperator_NextNeighbor",
_wrap_IntVarLocalSearchOperator_NextNeighbor, METH_VARARGS,
" Redefines MakeNextNeighbor to export a simpler interface. The calls to ApplyChanges() and RevertChanges() are factored in this method, hiding both delta and deltadelta from subclasses which only need to override MakeOneNeighbor(). Therefore this method should not be overridden. Override MakeOneNeighbor() instead."},
67707 {
"IntVarLocalSearchOperator_OneNeighbor",
_wrap_IntVarLocalSearchOperator_OneNeighbor, METH_VARARGS,
" Creates a new neighbor. It returns false when the neighborhood is completely explored. MakeNextNeighbor() in a subclass of IntVarLocalSearchOperator."},
67717 {
"SequenceVarLocalSearchOperatorTemplate_OnStart",
_wrap_SequenceVarLocalSearchOperatorTemplate_OnStart, METH_VARARGS,
" Called by Start() after synchronizing the operator with the current assignment. Should be overridden instead of Start() to avoid calling VarLocalSearchOperator::Start explicitly."},
67734 {
"ChangeValue_OneNeighbor",
_wrap_ChangeValue_OneNeighbor, METH_VARARGS,
" This method should not be overridden. Override ModifyValue() instead."},
67740 {
"LocalSearchFilter_Accept",
_wrap_LocalSearchFilter_Accept, METH_VARARGS,
" Accepts a \"delta\" given the assignment with which the filter has been synchronized; the delta holds the variables which have been modified and their new value. If the filter represents a part of the global objective, its contribution must be between objective_min and objective_max. Sample: supposing one wants to maintain a[0,1] + b[0,1] <= 1, for the assignment (a,1), (b,0), the delta (b,1) will be rejected but the delta (a,0) will be accepted. TODO(user): Remove arguments when there are no more need for those."},
67742 {
"LocalSearchFilter_Synchronize",
_wrap_LocalSearchFilter_Synchronize, METH_VARARGS,
" Synchronizes the filter with the current solution, delta being the difference with the solution passed to the previous call to Synchronize() or IncrementalSynchronize(). 'delta' can be used to incrementally synchronizing the filter with the new solution by only considering the changes in delta."},
67747 {
"LocalSearchFilterManager_Accept",
_wrap_LocalSearchFilterManager_Accept, METH_VARARGS,
" Returns true iff all filters return true, and the sum of their accepted objectives is between objective_min and objective_max. The monitor has its Begin/EndFiltering events triggered."},
67754 {
"IntVarLocalSearchFilter_Synchronize",
_wrap_IntVarLocalSearchFilter_Synchronize, METH_VARARGS,
" This method should not be overridden. Override OnSynchronize() instead which is called before exiting this method."},
67779 {
"new_RoutingIndexManager",
_wrap_new_RoutingIndexManager, METH_VARARGS,
" Creates a NodeIndex to variable index mapping for a problem containing 'num_nodes', 'num_vehicles' and the given starts and ends for each vehicle. If used, any start/end arrays have to have exactly 'num_vehicles' elements."},
67792 {
"FindErrorInRoutingSearchParameters",
_wrap_FindErrorInRoutingSearchParameters, METH_VARARGS,
" Returns an empty std::string if the routing search parameters are valid, and a non-empty, human readable error description if they're not."},
67793 {
"new_RoutingModel",
_wrap_new_RoutingModel, METH_VARARGS,
" Constructor taking an index manager. The version which does not take RoutingModelParameters is equivalent to passing DefaultRoutingModelParameters()."},
67803 {
"RoutingModel_AddDimension",
_wrap_RoutingModel_AddDimension, METH_VARARGS,
" Model creation Methods to add dimensions to routes; dimensions represent quantities accumulated at nodes along the routes. They represent quantities such as weights or volumes carried along the route, or distance or times. Quantities at a node are represented by \"cumul\" variables and the increase or decrease of quantities between nodes are represented by \"transit\" variables. These variables are linked as follows: if j == next(i), cumul(j) = cumul(i) + transit(i) + slack(i) where slack is a positive slack variable (can represent waiting times for a time dimension). Setting the value of fix_start_cumul_to_zero to true will force the \"cumul\" variable of the start node of all vehicles to be equal to 0. Creates a dimension where the transit variable is constrained to be equal to evaluator(i, next(i)); 'slack_max' is the upper bound of the slack variable and 'capacity' is the upper bound of the cumul variables. 'name' is the name used to reference the dimension; this name is used to get cumul and transit variables from the routing model. Returns false if a dimension with the same name has already been created (and doesn't create the new dimension). Takes ownership of the callback 'evaluator'."},
67807 {
"RoutingModel_AddConstantDimensionWithSlack",
_wrap_RoutingModel_AddConstantDimensionWithSlack, METH_VARARGS,
" Creates a dimension where the transit variable is constrained to be equal to 'value'; 'capacity' is the upper bound of the cumul variables. 'name' is the name used to reference the dimension; this name is used to get cumul and transit variables from the routing model. Returns a pair consisting of an index to the registered unary transit callback and a bool denoting whether the dimension has been created. It is false if a dimension with the same name has already been created (and doesn't create the new dimension but still register a new callback)."},
67809 {
"RoutingModel_AddVectorDimension",
_wrap_RoutingModel_AddVectorDimension, METH_VARARGS,
" Creates a dimension where the transit variable is constrained to be equal to 'values[i]' for node i; 'capacity' is the upper bound of the cumul variables. 'name' is the name used to reference the dimension; this name is used to get cumul and transit variables from the routing model. Returns a pair consisting of an index to the registered unary transit callback and a bool denoting whether the dimension has been created. It is false if a dimension with the same name has already been created (and doesn't create the new dimension but still register a new callback)."},
67810 {
"RoutingModel_AddMatrixDimension",
_wrap_RoutingModel_AddMatrixDimension, METH_VARARGS,
" Creates a dimension where the transit variable is constrained to be equal to 'values[i][next(i)]' for node i; 'capacity' is the upper bound of the cumul variables. 'name' is the name used to reference the dimension; this name is used to get cumul and transit variables from the routing model. Returns a pair consisting of an index to the registered transit callback and a bool denoting whether the dimension has been created. It is false if a dimension with the same name has already been created (and doesn't create the new dimension but still register a new callback)."},
67811 {
"RoutingModel_MakePathSpansAndTotalSlacks",
_wrap_RoutingModel_MakePathSpansAndTotalSlacks, METH_VARARGS,
" For every vehicle of the routing model: - if total_slacks[vehicle] is not nullptr, constrains it to be the sum of slacks on that vehicle, that is, dimension->CumulVar(end) - dimension->CumulVar(start) - sum_{node in path of vehicle} dimension->FixedTransitVar(node). - if spans[vehicle] is not nullptr, constrains it to be dimension->CumulVar(end) - dimension->CumulVar(start) This does stronger propagation than a decomposition, and takes breaks into account."},
67826 {
"RoutingModel_SetPrimaryConstrainedDimension",
_wrap_RoutingModel_SetPrimaryConstrainedDimension, METH_VARARGS,
" Set the given dimension as \"primary constrained\". As of August 2013, this is only used by ArcIsMoreConstrainedThanArc(). \"dimension\" must be the name of an existing dimension, or be empty, in which case there will not be a primary dimension after this call."},
67829 {
"RoutingModel_AddDisjunction",
_wrap_RoutingModel_AddDisjunction, METH_VARARGS,
" Adds a disjunction constraint on the indices: exactly 'max_cardinality' of the indices are active. Start and end indices of any vehicle cannot be part of a disjunction. If a penalty is given, at most 'max_cardinality' of the indices can be active, and if less are active, 'penalty' is payed per inactive index. This is equivalent to adding the constraint: p + Sum(i)active[i] == max_cardinality where p is an integer variable, and the following cost to the cost function: p * penalty. 'penalty' must be positive to make the disjunction optional; a negative penalty will force 'max_cardinality' indices of the disjunction to be performed, and therefore p == 0. Note: passing a vector with a single index will model an optional index with a penalty cost if it is not visited."},
67834 {
"RoutingModel_GetPerfectBinaryDisjunctions",
_wrap_RoutingModel_GetPerfectBinaryDisjunctions, METH_VARARGS,
" Returns the list of all perfect binary disjunctions, as pairs of variable indices: a disjunction is \"perfect\" when its variables do not appear in any other disjunction. Each pair is sorted (lowest variable index first), and the output vector is also sorted (lowest pairs first)."},
67835 {
"RoutingModel_IgnoreDisjunctionsAlreadyForcedToZero",
_wrap_RoutingModel_IgnoreDisjunctionsAlreadyForcedToZero, METH_VARARGS,
" SPECIAL: Makes the solver ignore all the disjunctions whose active variables are all trivially zero (i.e. Max() == 0), by setting their max_cardinality to 0. This can be useful when using the BaseBinaryDisjunctionNeighborhood operators, in the context of arc-based routing."},
67836 {
"RoutingModel_AddSoftSameVehicleConstraint",
_wrap_RoutingModel_AddSoftSameVehicleConstraint, METH_VARARGS,
" Adds a soft constraint to force a set of variable indices to be on the same vehicle. If all nodes are not on the same vehicle, each extra vehicle used adds 'cost' to the cost function."},
67837 {
"RoutingModel_SetAllowedVehiclesForIndex",
_wrap_RoutingModel_SetAllowedVehiclesForIndex, METH_VARARGS,
" Sets the vehicles which can visit a given node. If the node is in a disjunction, this will not prevent it from being unperformed. Specifying an empty vector of vehicles has no effect (all vehicles will be allowed to visit the node)."},
67839 {
"RoutingModel_AddPickupAndDelivery",
_wrap_RoutingModel_AddPickupAndDelivery, METH_VARARGS,
" Notifies that index1 and index2 form a pair of nodes which should belong to the same route. This methods helps the search find better solutions, especially in the local search phase. It should be called each time you have an equality constraint linking the vehicle variables of two node (including for instance pickup and delivery problems): Solver* const solver = routing.solver(); int64_t index1 = manager.NodeToIndex(node1); int64_t index2 = manager.NodeToIndex(node2); solver->AddConstraint(solver->MakeEquality( routing.VehicleVar(index1), routing.VehicleVar(index2))); routing.AddPickupAndDelivery(index1, index2);"},
67840 {
"RoutingModel_AddPickupAndDeliverySets",
_wrap_RoutingModel_AddPickupAndDeliverySets, METH_VARARGS,
" Same as AddPickupAndDelivery but notifying that the performed node from the disjunction of index 'pickup_disjunction' is on the same route as the performed node from the disjunction of index 'delivery_disjunction'."},
67841 {
"RoutingModel_GetPickupIndexPairs",
_wrap_RoutingModel_GetPickupIndexPairs, METH_VARARGS,
" Returns pairs for which the node is a pickup; the first element of each pair is the index in the pickup and delivery pairs list in which the pickup appears, the second element is its index in the pickups list."},
67852 {
"RoutingModel_CloseVisitTypes",
_wrap_RoutingModel_CloseVisitTypes, METH_VARARGS,
" This function should be called once all node visit types have been set and prior to adding any incompatibilities/requirements. \"close\" types."},
67854 {
"RoutingModel_AddHardTypeIncompatibility",
_wrap_RoutingModel_AddHardTypeIncompatibility, METH_VARARGS,
" Incompatibilities: Two nodes with \"hard\" incompatible types cannot share the same route at all, while with a \"temporal\" incompatibility they can't be on the same route at the same time."},
67860 {
"RoutingModel_AddSameVehicleRequiredTypeAlternatives",
_wrap_RoutingModel_AddSameVehicleRequiredTypeAlternatives, METH_VARARGS,
" Requirements: NOTE: As of 2019-04, cycles in the requirement graph are not supported, and lead to the dependent nodes being skipped if possible (otherwise the model is considered infeasible). The following functions specify that \"dependent_type\" requires at least one of the types in \"required_type_alternatives\". For same-vehicle requirements, a node of dependent type type_D requires at least one node of type type_R among the required alternatives on the same route."},
67861 {
"RoutingModel_AddRequiredTypeAlternativesWhenAddingType",
_wrap_RoutingModel_AddRequiredTypeAlternativesWhenAddingType, METH_VARARGS,
" If type_D depends on type_R when adding type_D, any node_D of type_D and VisitTypePolicy TYPE_ADDED_TO_VEHICLE or TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED requires at least one type_R on its vehicle at the time node_D is visited."},
67862 {
"RoutingModel_AddRequiredTypeAlternativesWhenRemovingType",
_wrap_RoutingModel_AddRequiredTypeAlternativesWhenRemovingType, METH_VARARGS,
" The following requirements apply when visiting dependent nodes that remove their type from the route, i.e. type_R must be on the vehicle when type_D of VisitTypePolicy ADDED_TYPE_REMOVED_FROM_VEHICLE, TYPE_ON_VEHICLE_UP_TO_VISIT or TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED is visited."},
67868 {
"RoutingModel_HasTypeRegulations",
_wrap_RoutingModel_HasTypeRegulations, METH_VARARGS,
" Returns true iff the model has any incompatibilities or requirements set on node types."},
67869 {
"RoutingModel_UnperformedPenalty",
_wrap_RoutingModel_UnperformedPenalty, METH_VARARGS,
" Get the \"unperformed\" penalty of a node. This is only well defined if the node is only part of a single Disjunction, and that disjunction has a penalty. For forced active nodes returns max int64_t. In all other cases, this returns 0."},
67870 {
"RoutingModel_UnperformedPenaltyOrValue",
_wrap_RoutingModel_UnperformedPenaltyOrValue, METH_VARARGS,
" Same as above except that it returns default_value instead of 0 when penalty is not well defined (default value is passed as first argument to simplify the usage of the method in a callback)."},
67871 {
"RoutingModel_GetDepot",
_wrap_RoutingModel_GetDepot, METH_VARARGS,
" Returns the variable index of the first starting or ending node of all routes. If all routes start and end at the same node (single depot), this is the node returned."},
67872 {
"RoutingModel_SetMaximumNumberOfActiveVehicles",
_wrap_RoutingModel_SetMaximumNumberOfActiveVehicles, METH_VARARGS,
" Constrains the maximum number of active vehicles, aka the number of vehicles which do not have an empty route. For instance, this can be used to limit the number of routes in the case where there are fewer drivers than vehicles and that the fleet of vehicle is heterogeneous."},
67874 {
"RoutingModel_SetArcCostEvaluatorOfAllVehicles",
_wrap_RoutingModel_SetArcCostEvaluatorOfAllVehicles, METH_VARARGS,
" Sets the cost function of the model such that the cost of a segment of a route between node 'from' and 'to' is evaluator(from, to), whatever the route or vehicle performing the route."},
67876 {
"RoutingModel_SetFixedCostOfAllVehicles",
_wrap_RoutingModel_SetFixedCostOfAllVehicles, METH_VARARGS,
" Sets the fixed cost of all vehicle routes. It is equivalent to calling SetFixedCostOfVehicle on all vehicle routes."},
67878 {
"RoutingModel_GetFixedCostOfVehicle",
_wrap_RoutingModel_GetFixedCostOfVehicle, METH_VARARGS,
" Returns the route fixed cost taken into account if the route of the vehicle is not empty, aka there's at least one node on the route other than the first and last nodes."},
67879 {
"RoutingModel_SetAmortizedCostFactorsOfAllVehicles",
_wrap_RoutingModel_SetAmortizedCostFactorsOfAllVehicles, METH_VARARGS,
" The following methods set the linear and quadratic cost factors of vehicles (must be positive values). The default value of these parameters is zero for all vehicles. When set, the cost_ of the model will contain terms aiming at reducing the number of vehicles used in the model, by adding the following to the objective for every vehicle v: INDICATOR(v used in the model) * [linear_cost_factor_of_vehicle_[v] - quadratic_cost_factor_of_vehicle_[v]*(square of length of route v)] i.e. for every used vehicle, we add the linear factor as fixed cost, and subtract the square of the route length multiplied by the quadratic factor. This second term aims at making the routes as dense as possible. Sets the linear and quadratic cost factor of all vehicles."},
67885 {
"RoutingModel_SetFirstSolutionEvaluator",
_wrap_RoutingModel_SetFirstSolutionEvaluator, METH_VARARGS,
" Gets/sets the evaluator used during the search. Only relevant when RoutingSearchParameters.first_solution_strategy = EVALUATOR_STRATEGY. Takes ownership of evaluator."},
67888 {
"RoutingModel_AddAtSolutionCallback",
_wrap_RoutingModel_AddAtSolutionCallback, METH_VARARGS,
" Adds a callback called each time a solution is found during the search. This is a shortcut to creating a monitor to call the callback on AtSolution() and adding it with AddSearchMonitor."},
67889 {
"RoutingModel_AddVariableMinimizedByFinalizer",
_wrap_RoutingModel_AddVariableMinimizedByFinalizer, METH_VARARGS,
" Adds a variable to minimize in the solution finalizer. The solution finalizer is called each time a solution is found during the search and allows to instantiate secondary variables (such as dimension cumul variables)."},
67893 {
"RoutingModel_CloseModel",
_wrap_RoutingModel_CloseModel, METH_VARARGS,
" Closes the current routing model; after this method is called, no modification to the model can be done, but RoutesToAssignment becomes available. Note that CloseModel() is automatically called by Solve() and other methods that produce solution. This is equivalent to calling CloseModelWithParameters(DefaultRoutingSearchParameters())."},
67894 {
"RoutingModel_CloseModelWithParameters",
_wrap_RoutingModel_CloseModelWithParameters, METH_VARARGS,
" Same as above taking search parameters (as of 10/2015 some the parameters have to be set when closing the model)."},
67895 {
"RoutingModel_Solve",
_wrap_RoutingModel_Solve, METH_VARARGS,
" Solves the current routing model; closes the current model. This is equivalent to calling SolveWithParameters(DefaultRoutingSearchParameters()) or SolveFromAssignmentWithParameters(assignment, DefaultRoutingSearchParameters())."},
67896 {
"RoutingModel_SolveWithParameters",
_wrap_RoutingModel_SolveWithParameters, METH_VARARGS,
" Solves the current routing model with the given parameters. If 'solutions' is specified, it will contain the k best solutions found during the search (from worst to best, including the one returned by this method), where k corresponds to the 'number_of_solutions_to_collect' in 'search_parameters'. Note that the Assignment returned by the method and the ones in solutions are owned by the underlying solver and should not be deleted."},
67899 {
"RoutingModel_SetAssignmentFromOtherModelAssignment",
_wrap_RoutingModel_SetAssignmentFromOtherModelAssignment, METH_VARARGS,
" Given a \"source_model\" and its \"source_assignment\", resets \"target_assignment\" with the IntVar variables (nexts_, and vehicle_vars_ if costs aren't homogeneous across vehicles) of \"this\" model, with the values set according to those in \"other_assignment\". The objective_element of target_assignment is set to this->cost_."},
67900 {
"RoutingModel_ComputeLowerBound",
_wrap_RoutingModel_ComputeLowerBound, METH_VARARGS,
" Computes a lower bound to the routing problem solving a linear assignment problem. The routing model must be closed before calling this method. Note that problems with node disjunction constraints (including optional nodes) and non-homogenous costs are not supported (the method returns 0 in these cases)."},
67901 {
"RoutingModel_status",
_wrap_RoutingModel_status, METH_VARARGS,
" Returns the current status of the routing model."},
67902 {
"RoutingModel_ApplyLocks",
_wrap_RoutingModel_ApplyLocks, METH_VARARGS,
" Applies a lock chain to the next search. 'locks' represents an ordered vector of nodes representing a partial route which will be fixed during the next search; it will constrain next variables such that: next[locks[i]] == locks[i+1]. Returns the next variable at the end of the locked chain; this variable is not locked. An assignment containing the locks can be obtained by calling PreAssignment()."},
67903 {
"RoutingModel_ApplyLocksToAllVehicles",
_wrap_RoutingModel_ApplyLocksToAllVehicles, METH_VARARGS,
" Applies lock chains to all vehicles to the next search, such that locks[p] is the lock chain for route p. Returns false if the locks do not contain valid routes; expects that the routes do not contain the depots, i.e. there are empty vectors in place of empty routes. If close_routes is set to true, adds the end nodes to the route of each vehicle and deactivates other nodes. An assignment containing the locks can be obtained by calling PreAssignment()."},
67904 {
"RoutingModel_PreAssignment",
_wrap_RoutingModel_PreAssignment, METH_VARARGS,
" Returns an assignment used to fix some of the variables of the problem. In practice, this assignment locks partial routes of the problem. This can be used in the context of locking the parts of the routes which have already been driven in online routing problems."},
67906 {
"RoutingModel_WriteAssignment",
_wrap_RoutingModel_WriteAssignment, METH_VARARGS,
" Writes the current solution to a file containing an AssignmentProto. Returns false if the file cannot be opened or if there is no current solution."},
67907 {
"RoutingModel_ReadAssignment",
_wrap_RoutingModel_ReadAssignment, METH_VARARGS,
" Reads an assignment from a file and returns the current solution. Returns nullptr if the file cannot be opened or if the assignment is not valid."},
67908 {
"RoutingModel_RestoreAssignment",
_wrap_RoutingModel_RestoreAssignment, METH_VARARGS,
" Restores an assignment as a solution in the routing model and returns the new solution. Returns nullptr if the assignment is not valid."},
67909 {
"RoutingModel_ReadAssignmentFromRoutes",
_wrap_RoutingModel_ReadAssignmentFromRoutes, METH_VARARGS,
" Restores the routes as the current solution. Returns nullptr if the solution cannot be restored (routes do not contain a valid solution). Note that calling this method will run the solver to assign values to the dimension variables; this may take considerable amount of time, especially when using dimensions with slack."},
67910 {
"RoutingModel_RoutesToAssignment",
_wrap_RoutingModel_RoutesToAssignment, METH_VARARGS,
" Fills an assignment from a specification of the routes of the vehicles. The routes are specified as lists of variable indices that appear on the routes of the vehicles. The indices of the outer vector in 'routes' correspond to vehicles IDs, the inner vector contains the variable indices on the routes for the given vehicle. The inner vectors must not contain the start and end indices, as these are determined by the routing model. Sets the value of NextVars in the assignment, adding the variables to the assignment if necessary. The method does not touch other variables in the assignment. The method can only be called after the model is closed. With ignore_inactive_indices set to false, this method will fail (return nullptr) in case some of the route contain indices that are deactivated in the model; when set to true, these indices will be skipped. Returns true if routes were successfully loaded. However, such assignment still might not be a valid solution to the routing problem due to more complex constraints; it is advisible to call solver()->CheckSolution() afterwards."},
67911 {
"RoutingModel_AssignmentToRoutes",
_wrap_RoutingModel_AssignmentToRoutes, METH_VARARGS,
" Converts the solution in the given assignment to routes for all vehicles. Expects that assignment contains a valid solution (i.e. routes for all vehicles end with an end index for that vehicle)."},
67912 {
"RoutingModel_CompactAssignment",
_wrap_RoutingModel_CompactAssignment, METH_VARARGS,
" Converts the solution in the given assignment to routes for all vehicles. If the returned vector is route_indices, route_indices[i][j] is the index for jth location visited on route i. Note that contrary to AssignmentToRoutes, the vectors do include start and end locations. Returns a compacted version of the given assignment, in which all vehicles with id lower or equal to some N have non-empty routes, and all vehicles with id greater than N have empty routes. Does not take ownership of the returned object. If found, the cost of the compact assignment is the same as in the original assignment and it preserves the values of 'active' variables. Returns nullptr if a compact assignment was not found. This method only works in homogenous mode, and it only swaps equivalent vehicles (vehicles with the same start and end nodes). When creating the compact assignment, the empty plan is replaced by the route assigned to the compatible vehicle with the highest id. Note that with more complex constraints on vehicle variables, this method might fail even if a compact solution exists. This method changes the vehicle and dimension variables as necessary. While compacting the solution, only basic checks on vehicle variables are performed; if one of these checks fails no attempts to repair it are made (instead, the method returns nullptr)."},
67913 {
"RoutingModel_CompactAndCheckAssignment",
_wrap_RoutingModel_CompactAndCheckAssignment, METH_VARARGS,
" Same as CompactAssignment() but also checks the validity of the final compact solution; if it is not valid, no attempts to repair it are made (instead, the method returns nullptr)."},
67916 {
"RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment",
_wrap_RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment, METH_VARARGS,
" For every dimension in the model with an optimizer in local/global_dimension_optimizers_, this method tries to pack the cumul values of the dimension, such that: - The cumul costs (span costs, soft lower and upper bound costs, etc) are minimized. - The cumuls of the ends of the routes are minimized for this given minimal cumul cost. - Given these minimal end cumuls, the route start cumuls are maximized. Returns the assignment resulting from allocating these packed cumuls with the solver, and nullptr if these cumuls could not be set by the solver."},
67917 {
"RoutingModel_AddLocalSearchFilter",
_wrap_RoutingModel_AddLocalSearchFilter, METH_VARARGS,
" Adds a custom local search filter to the list of filters used to speed up local search by pruning unfeasible variable assignments. Calling this method after the routing model has been closed (CloseModel() or Solve() has been called) has no effect. The routing model does not take ownership of the filter."},
67918 {
"RoutingModel_Start",
_wrap_RoutingModel_Start, METH_VARARGS,
" Model inspection. Returns the variable index of the starting node of a vehicle route."},
67919 {
"RoutingModel_End",
_wrap_RoutingModel_End, METH_VARARGS,
" Returns the variable index of the ending node of a vehicle route."},
67920 {
"RoutingModel_IsStart",
_wrap_RoutingModel_IsStart, METH_VARARGS,
" Returns true if 'index' represents the first node of a route."},
67921 {
"RoutingModel_IsEnd",
_wrap_RoutingModel_IsEnd, METH_VARARGS,
" Returns true if 'index' represents the last node of a route."},
67922 {
"RoutingModel_VehicleIndex",
_wrap_RoutingModel_VehicleIndex, METH_VARARGS,
" Returns the vehicle of the given start/end index, and -1 if the given index is not a vehicle start/end."},
67923 {
"RoutingModel_Next",
_wrap_RoutingModel_Next, METH_VARARGS,
" Assignment inspection Returns the variable index of the node directly after the node corresponding to 'index' in 'assignment'."},
67925 {
"RoutingModel_NextVar",
_wrap_RoutingModel_NextVar, METH_VARARGS,
" Returns the next variable of the node corresponding to index. Note that NextVar(index) == index is equivalent to ActiveVar(index) == 0."},
67926 {
"RoutingModel_ActiveVar",
_wrap_RoutingModel_ActiveVar, METH_VARARGS,
" Returns the active variable of the node corresponding to index."},
67927 {
"RoutingModel_ActiveVehicleVar",
_wrap_RoutingModel_ActiveVehicleVar, METH_VARARGS,
" Returns the active variable of the vehicle. It will be equal to 1 iff the route of the vehicle is not empty, 0 otherwise."},
67929 {
"RoutingModel_VehicleVar",
_wrap_RoutingModel_VehicleVar, METH_VARARGS,
" Returns the vehicle variable of the node corresponding to index. Note that VehicleVar(index) == -1 is equivalent to ActiveVar(index) == 0."},
67930 {
"RoutingModel_CostVar",
_wrap_RoutingModel_CostVar, METH_VARARGS,
" Returns the global cost variable which is being minimized."},
67931 {
"RoutingModel_GetArcCostForVehicle",
_wrap_RoutingModel_GetArcCostForVehicle, METH_VARARGS,
" Returns the cost of the transit arc between two nodes for a given vehicle. Input are variable indices of node. This returns 0 if vehicle < 0."},
67933 {
"RoutingModel_GetHomogeneousCost",
_wrap_RoutingModel_GetHomogeneousCost, METH_VARARGS,
" Returns the cost of the segment between two nodes supposing all vehicle costs are the same (returns the cost for the first vehicle otherwise)."},
67934 {
"RoutingModel_GetArcCostForFirstSolution",
_wrap_RoutingModel_GetArcCostForFirstSolution, METH_VARARGS,
" Returns the cost of the arc in the context of the first solution strategy. This is typically a simplification of the actual cost; see the .cc."},
67935 {
"RoutingModel_GetArcCostForClass",
_wrap_RoutingModel_GetArcCostForClass, METH_VARARGS,
" Returns the cost of the segment between two nodes for a given cost class. Input are variable indices of nodes and the cost class. Unlike GetArcCostForVehicle(), if cost_class is kNoCost, then the returned cost won't necessarily be zero: only some of the components of the cost that depend on the cost class will be omited. See the code for details."},
67941 {
"RoutingModel_GetVehicleOfClass",
_wrap_RoutingModel_GetVehicleOfClass, METH_VARARGS,
" Returns a vehicle of the given vehicle class, and -1 if there are no vehicles for this class."},
67945 {
"RoutingModel_ArcIsMoreConstrainedThanArc",
_wrap_RoutingModel_ArcIsMoreConstrainedThanArc, METH_VARARGS,
" Returns whether the arc from->to1 is more constrained than from->to2, taking into account, in order: - whether the destination node isn't an end node - whether the destination node is mandatory - whether the destination node is bound to the same vehicle as the source - the \"primary constrained\" dimension (see SetPrimaryConstrainedDimension) It then breaks ties using, in order: - the arc cost (taking unperformed penalties into account) - the size of the vehicle vars of \"to1\" and \"to2\" (lowest size wins) - the value: the lowest value of the indices to1 and to2 wins. See the .cc for details. The more constrained arc is typically preferable when building a first solution. This method is intended to be used as a callback for the BestValueByComparisonSelector value selector. Args: from: the variable index of the source node to1: the variable index of the first candidate destination node. to2: the variable index of the second candidate destination node."},
67946 {
"RoutingModel_DebugOutputAssignment",
_wrap_RoutingModel_DebugOutputAssignment, METH_VARARGS,
" Print some debugging information about an assignment, including the feasible intervals of the CumulVar for dimension \"dimension_to_print\" at each step of the routes. If \"dimension_to_print\" is omitted, all dimensions will be printed."},
67947 {
"RoutingModel_solver",
_wrap_RoutingModel_solver, METH_VARARGS,
" Returns a vector cumul_bounds, for which cumul_bounds[i][j] is a pair containing the minimum and maximum of the CumulVar of the jth node on route i. - cumul_bounds[i][j].first is the minimum. - cumul_bounds[i][j].second is the maximum. Returns the underlying constraint solver. Can be used to add extra constraints and/or modify search algorithms."},
67950 {
"RoutingModel_nodes",
_wrap_RoutingModel_nodes, METH_VARARGS,
" Sizes and indices Returns the number of nodes in the model."},
67952 {
"RoutingModel_Size",
_wrap_RoutingModel_Size, METH_VARARGS,
" Returns the number of next variables in the model."},
67957 {
"RoutingModel_MakeGuidedSlackFinalizer",
_wrap_RoutingModel_MakeGuidedSlackFinalizer, METH_VARARGS,
" The next few members are in the public section only for testing purposes. MakeGuidedSlackFinalizer creates a DecisionBuilder for the slacks of a dimension using a callback to choose which values to start with. The finalizer works only when all next variables in the model have been fixed. It has the following two characteristics: 1. It follows the routes defined by the nexts variables when choosing a variable to make a decision on. 2. When it comes to choose a value for the slack of node i, the decision builder first calls the callback with argument i, and supposingly the returned value is x it creates decisions slack[i] = x, slack[i] = x + 1, slack[i] = x - 1, slack[i] = x + 2, etc."},
67958 {
"RoutingModel_MakeSelfDependentDimensionFinalizer",
_wrap_RoutingModel_MakeSelfDependentDimensionFinalizer, METH_VARARGS,
" MakeSelfDependentDimensionFinalizer is a finalizer for the slacks of a self-dependent dimension. It makes an extensive use of the caches of the state dependent transits. In detail, MakeSelfDependentDimensionFinalizer returns a composition of a local search decision builder with a greedy descent operator for the cumul of the start of each route and a guided slack finalizer. Provided there are no time windows and the maximum slacks are large enough, once the cumul of the start of route is fixed, the guided finalizer can find optimal values of the slacks for the rest of the route in time proportional to the length of the route. Therefore the composed finalizer generally works in time O(log(t)*n*m), where t is the latest possible departute time, n is the number of nodes in the network and m is the number of vehicles."},
67991 {
"RoutingDimension_GetTransitValue",
_wrap_RoutingDimension_GetTransitValue, METH_VARARGS,
" Returns the transition value for a given pair of nodes (as var index); this value is the one taken by the corresponding transit variable when the 'next' variable for 'from_index' is bound to 'to_index'."},
67992 {
"RoutingDimension_GetTransitValueFromClass",
_wrap_RoutingDimension_GetTransitValueFromClass, METH_VARARGS,
" Same as above but taking a vehicle class of the dimension instead of a vehicle (the class of a vehicle can be obtained with vehicle_to_class())."},
67993 {
"RoutingDimension_CumulVar",
_wrap_RoutingDimension_CumulVar, METH_VARARGS,
" Get the cumul, transit and slack variables for the given node (given as int64_t var index)."},
67997 {
"RoutingDimension_SetSpanUpperBoundForVehicle",
_wrap_RoutingDimension_SetSpanUpperBoundForVehicle, METH_VARARGS,
" Sets an upper bound on the dimension span on a given vehicle. This is the preferred way to limit the \"length\" of the route of a vehicle according to a dimension."},
67998 {
"RoutingDimension_SetSpanCostCoefficientForVehicle",
_wrap_RoutingDimension_SetSpanCostCoefficientForVehicle, METH_VARARGS,
" Sets a cost proportional to the dimension span on a given vehicle, or on all vehicles at once. \"coefficient\" must be nonnegative. This is handy to model costs proportional to idle time when the dimension represents time. The cost for a vehicle is span_cost = coefficient * (dimension end value - dimension start value)."},
68000 {
"RoutingDimension_SetGlobalSpanCostCoefficient",
_wrap_RoutingDimension_SetGlobalSpanCostCoefficient, METH_VARARGS,
" Sets a cost proportional to the *global* dimension span, that is the difference between the largest value of route end cumul variables and the smallest value of route start cumul variables. In other words: global_span_cost = coefficient * (Max(dimension end value) - Min(dimension start value))."},
68001 {
"RoutingDimension_SetCumulVarSoftUpperBound",
_wrap_RoutingDimension_SetCumulVarSoftUpperBound, METH_VARARGS,
" Sets a soft upper bound to the cumul variable of a given variable index. If the value of the cumul variable is greater than the bound, a cost proportional to the difference between this value and the bound is added to the cost function of the model: cumulVar <= upper_bound -> cost = 0 cumulVar > upper_bound -> cost = coefficient * (cumulVar - upper_bound) This is also handy to model tardiness costs when the dimension represents time."},
68003 {
"RoutingDimension_GetCumulVarSoftUpperBound",
_wrap_RoutingDimension_GetCumulVarSoftUpperBound, METH_VARARGS,
" Returns the soft upper bound of a cumul variable for a given variable index. The \"hard\" upper bound of the variable is returned if no soft upper bound has been set."},
68004 {
"RoutingDimension_GetCumulVarSoftUpperBoundCoefficient",
_wrap_RoutingDimension_GetCumulVarSoftUpperBoundCoefficient, METH_VARARGS,
" Returns the cost coefficient of the soft upper bound of a cumul variable for a given variable index. If no soft upper bound has been set, 0 is returned."},
68005 {
"RoutingDimension_SetCumulVarSoftLowerBound",
_wrap_RoutingDimension_SetCumulVarSoftLowerBound, METH_VARARGS,
" Sets a soft lower bound to the cumul variable of a given variable index. If the value of the cumul variable is less than the bound, a cost proportional to the difference between this value and the bound is added to the cost function of the model: cumulVar > lower_bound -> cost = 0 cumulVar <= lower_bound -> cost = coefficient * (lower_bound - cumulVar). This is also handy to model earliness costs when the dimension represents time."},
68007 {
"RoutingDimension_GetCumulVarSoftLowerBound",
_wrap_RoutingDimension_GetCumulVarSoftLowerBound, METH_VARARGS,
" Returns the soft lower bound of a cumul variable for a given variable index. The \"hard\" lower bound of the variable is returned if no soft lower bound has been set."},
68008 {
"RoutingDimension_GetCumulVarSoftLowerBoundCoefficient",
_wrap_RoutingDimension_GetCumulVarSoftLowerBoundCoefficient, METH_VARARGS,
" Returns the cost coefficient of the soft lower bound of a cumul variable for a given variable index. If no soft lower bound has been set, 0 is returned."},
68009 {
"RoutingDimension_SetBreakIntervalsOfVehicle",
_wrap_RoutingDimension_SetBreakIntervalsOfVehicle, METH_VARARGS,
" Sets the breaks for a given vehicle. Breaks are represented by IntervalVars. They may interrupt transits between nodes and increase the value of corresponding slack variables. A break may take place before the start of a vehicle, after the end of a vehicle, or during a travel i -> j. In that case, the interval [break.Start(), break.End()) must be a subset of [CumulVar(i) + pre_travel(i, j), CumulVar(j) - post_travel(i, j)). In other words, a break may not overlap any node n's visit, given by [CumulVar(n) - post_travel(_, n), CumulVar(n) + pre_travel(n, _)). This formula considers post_travel(_, start) and pre_travel(end, _) to be 0; pre_travel will never be called on any (_, start) and post_travel will never we called on any (end, _). If pre_travel_evaluator or post_travel_evaluator is -1, it will be taken as a function that always returns 0. Deprecated, sets pre_travel(i, j) = node_visit_transit[i]."},
68010 {
"RoutingDimension_SetBreakDistanceDurationOfVehicle",
_wrap_RoutingDimension_SetBreakDistanceDurationOfVehicle, METH_VARARGS,
" With breaks supposed to be consecutive, this forces the distance between breaks of size at least minimum_break_duration to be at most distance. This supposes that the time until route start and after route end are infinite breaks."},
68011 {
"RoutingDimension_InitializeBreaks",
_wrap_RoutingDimension_InitializeBreaks, METH_VARARGS,
" Sets up vehicle_break_intervals_, vehicle_break_distance_duration_, pre_travel_evaluators and post_travel_evaluators."},
68016 {
"RoutingDimension_ShortestTransitionSlack",
_wrap_RoutingDimension_ShortestTransitionSlack, METH_VARARGS,
" It makes sense to use the function only for self-dependent dimension. For such dimensions the value of the slack of a node determines the transition cost of the next transit. Provided that 1. cumul[node] is fixed, 2. next[node] and next[next[node]] (if exists) are fixed, the value of slack[node] for which cumul[next[node]] + transit[next[node]] is minimized can be found in O(1) using this function."},
68027 {
"MakeSetValuesFromTargets",
_wrap_MakeSetValuesFromTargets, METH_VARARGS,
" A decision builder which tries to assign values to variables as close as possible to target values first."},
68028 {
"SolveModelWithSat",
_wrap_SolveModelWithSat, METH_VARARGS,
" Attempts to solve the model using the cp-sat solver. As of 5/2019, will solve the TSP corresponding to the model if it has a single vehicle. Therefore the resulting solution might not actually be feasible. Will return false if a solution could not be found."},
68029 { NULL, NULL, 0, NULL }
68033 { NULL, NULL, 0, NULL }
68346 static 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};
68418 static 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};
68434 static 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};
68561 static 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}};
68569 static 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}};
68572 static 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}};
68575 static 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}};
68582 static 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}};
68584 static 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}};
68588 static 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}};
68592 static 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}};
68595 static 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}};
68602 static 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}};
68605 static 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}};
68611 static 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}};
68612 static 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}};
68621 static 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}};
68624 static 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}};
68625 static 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}};
68757 {0, 0, 0, 0.0, 0, 0}};
68811 #define SWIGRUNTIME_DEBUG 68834 if (!module_head) {
68847 }
while (iter!= module_head);
68858 if (init == 0)
return;
68861 #ifdef SWIGRUNTIME_DEBUG 68862 printf(
"SWIG_InitializeModule: size %lu\n", (
unsigned long)
swig_module.
size);
68869 #ifdef SWIGRUNTIME_DEBUG 68879 #ifdef SWIGRUNTIME_DEBUG 68880 printf(
"SWIG_InitializeModule: found type %s\n", type->
name);
68884 #ifdef SWIGRUNTIME_DEBUG 68885 printf(
"SWIG_InitializeModule: found and overwrite type %s \n", type->
name);
68894 while (cast->
type) {
68897 #ifdef SWIGRUNTIME_DEBUG 68898 printf(
"SWIG_InitializeModule: look cast %s\n", cast->
type->
name);
68902 #ifdef SWIGRUNTIME_DEBUG 68903 if (ret) printf(
"SWIG_InitializeModule: found cast %s\n", ret->
name);
68908 #ifdef SWIGRUNTIME_DEBUG 68909 printf(
"SWIG_InitializeModule: skip old type %s\n", ret->
name);
68916 #ifdef SWIGRUNTIME_DEBUG 68917 if (ocast) printf(
"SWIG_InitializeModule: skip old cast %s\n", ret->
name);
68919 if (!ocast) ret = 0;
68924 #ifdef SWIGRUNTIME_DEBUG 68925 printf(
"SWIG_InitializeModule: adding cast %s\n", cast->
type->
name);
68940 #ifdef SWIGRUNTIME_DEBUG 68941 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
68946 while (cast->
type) {
68947 printf(
"SWIG_InitializeModule: cast type %s\n", cast->
type->
name);
68951 printf(
"---- Total casts: %d\n",j);
68953 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
68966 static int init_run = 0;
68968 if (init_run)
return;
68979 equiv = equiv->
next;
69000 #define SWIG_newvarlink() SWIG_Python_newvarlink() 69001 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) 69002 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) 69010 PyObject *(*get_attr)(void);
69022 #if PY_VERSION_HEX >= 0x03000000 69023 return PyUnicode_InternFromString(
"<Swig global variables>");
69025 return PyString_FromString(
"<Swig global variables>");
69031 #if PY_VERSION_HEX >= 0x03000000 69032 PyObject *str = PyUnicode_InternFromString(
"(");
69037 tail = PyUnicode_FromString(
var->name);
69038 joined = PyUnicode_Concat(str,
tail);
69043 tail = PyUnicode_InternFromString(
", ");
69044 joined = PyUnicode_Concat(str,
tail);
69050 tail = PyUnicode_InternFromString(
")");
69051 joined = PyUnicode_Concat(str,
tail);
69056 PyObject *str = PyString_FromString(
"(");
69059 PyString_ConcatAndDel(&str,PyString_FromString(
var->name));
69060 if (
var->next) PyString_ConcatAndDel(&str,PyString_FromString(
", "));
69062 PyString_ConcatAndDel(&str,PyString_FromString(
")"));
69080 PyObject *res = NULL;
69083 if (strcmp(
var->name,n) == 0) {
69084 res = (*
var->get_attr)();
69089 if (res == NULL && !PyErr_Occurred()) {
69090 PyErr_Format(PyExc_AttributeError,
"Unknown C global variable '%s'", n);
69100 if (strcmp(
var->name,n) == 0) {
69101 res = (*
var->set_attr)(p);
69106 if (res == 1 && !PyErr_Occurred()) {
69107 PyErr_Format(PyExc_AttributeError,
"Unknown C global variable '%s'", n);
69114 static char varlink__doc__[] =
"Swig var link object";
69115 static PyTypeObject varlink_type;
69116 static int type_init = 0;
69118 const PyTypeObject tmp = {
69119 #if PY_VERSION_HEX >= 0x03000000 69120 PyVarObject_HEAD_INIT(NULL, 0)
69122 PyObject_HEAD_INIT(NULL)
69149 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
69152 #if PY_VERSION_HEX >= 0x03040000 69155 #ifdef COUNT_ALLOCS 69163 varlink_type = tmp;
69165 if (PyType_Ready(&varlink_type) < 0)
69168 return &varlink_type;
69178 return ((PyObject*) result);
69186 size_t size = strlen(
name)+1;
69200 static PyObject *globals = 0;
69216 for (i = 0; constants[i].
type; ++i) {
69217 switch(constants[i].type) {
69222 obj =
SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
69229 PyDict_SetItemString(d, constants[i].
name, obj);
69245 for (i = 0; methods[i].ml_name; ++i) {
69246 const char *c = methods[i].ml_doc;
69248 c = strstr(c,
"swig_ptr: ");
69252 const char *
name = c + 10;
69253 for (j = 0; const_table[j].
type; ++j) {
69254 if (strncmp(const_table[j].
name,
name,
69255 strlen(const_table[j].
name)) == 0) {
69256 ci = &(const_table[j]);
69263 size_t shift = (ci->
ptype) - types;
69265 size_t ldoc = (c - methods[i].ml_doc);
69266 size_t lptr = strlen(ty->
name)+2*
sizeof(
void*)+2;
69267 char *ndoc = (
char*)
malloc(ldoc + lptr + 10);
69270 memcpy(buff, methods[i].ml_doc, ldoc);
69272 memcpy(buff,
"swig_ptr: ", 10);
69275 methods[i].ml_doc = ndoc;
69313 if (PyCFunction_Check(func)) {
69314 PyCFunctionObject *funcobj = (PyCFunctionObject *)func;
69317 func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module);
69319 #if PY_VERSION_HEX >= 0x03000000 69320 return PyInstanceMethod_New(func);
69322 return PyMethod_New(func, NULL, NULL);
69332 if (PyCFunction_Check(func)) {
69333 PyCFunctionObject *funcobj = (PyCFunctionObject *)func;
69336 func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module);
69338 return PyStaticMethod_New(func);
69354 #if PY_VERSION_HEX >= 0x03000000 69360 PyObject *m, *d, *md, *globals;
69362 #if PY_VERSION_HEX >= 0x03000000 69363 static struct PyModuleDef SWIG_module = {
69364 PyModuleDef_HEAD_INIT,
69376 #if defined(SWIGPYTHON_BUILTIN) 69378 0, 0, 0, 0, 0, 0, 0
69380 static PyGetSetDef this_getset_def = {
69381 (
char *)
"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
69383 static SwigPyGetSet thisown_getset_closure = {
69387 static PyGetSetDef thisown_getset_def = {
69388 (
char *)
"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
69390 PyTypeObject *builtin_pytype;
69391 int builtin_base_count;
69394 PyGetSetDescrObject *static_getset;
69395 PyTypeObject *metatype;
69396 PyTypeObject *swigpyobject;
69398 PyObject *public_interface, *public_symbol;
69399 PyObject *this_descr;
69400 PyObject *thisown_descr;
69401 PyObject *
self = 0;
69404 (void)builtin_pytype;
69405 (void)builtin_base_count;
69406 (void)builtin_basetype;
69408 (void)static_getset;
69412 metatype = SwigPyObjectType();
69422 #ifndef SWIGPYTHON_BUILTIN 69429 #if PY_VERSION_HEX >= 0x03000000 69430 m = PyModule_Create(&SWIG_module);
69435 md = d = PyModule_GetDict(m);
69440 #ifdef SWIGPYTHON_BUILTIN 69444 assert(SwigPyObject_stype);
69447 SwigPyObject_stype->
clientdata = &SwigPyObject_clientdata;
69448 SwigPyObject_clientdata.
pytype = swigpyobject;
69449 }
else if (swigpyobject->tp_basicsize != cd->
pytype->tp_basicsize) {
69450 PyErr_SetString(PyExc_RuntimeError,
"Import error: attempted to load two incompatible swig-generated modules.");
69451 # if PY_VERSION_HEX >= 0x03000000 69464 (void)thisown_descr;
69466 public_interface = PyList_New(0);
69468 (void)public_symbol;
69470 PyDict_SetItemString(md,
"__all__", public_interface);
69471 Py_DECREF(public_interface);
69473 SwigPyBuiltin_AddPublicSymbol(public_interface,
SwigMethods[i].ml_name);
69553 PyErr_SetString(PyExc_TypeError,
"Failure to create SWIG globals.");
69554 #if PY_VERSION_HEX >= 0x03000000 69560 PyDict_SetItemString(md,
"cvar", globals);
69561 Py_DECREF(globals);
69572 #if PY_VERSION_HEX >= 0x03000000 #define SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__LocalDimensionCumulOptimizer_t_t
SWIGINTERN PyObject * _wrap_Assignment_MutableIntVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NeighborhoodLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_NoMoreSolutions(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddLocalSearchOperator(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetPerformedValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__BooleanVarTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntervalVarElement_DurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Phase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap___lshift____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
struct swig_type_info *(* swig_dycast_func)(void **)
SWIGINTERN PyObject * _wrap_SolutionCollector_Add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Constraint * MakeMapDomain(IntVar *const var, const std::vector< IntVar * > &actives)
This constraint maps the domain of 'var' onto the array of variables 'actives'.
SWIGRUNTIME PyObject * SwigPyObject_append(PyObject *v, PyObject *next)
SWIGINTERN PyObject * _wrap_Assignment_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_long[]
static void raise(PyObject *error, const char *msg)
static void * _p_operations_research__IntVarLocalSearchFilterTo_p_operations_research__LocalSearchFilter(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_FailuresLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_PickupToDeliveryLimitFunction
SWIGINTERN PyObject * _wrap_Solver_IntVar__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BaseObject___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_UnperformedPenaltyOrValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_DelayedConstraintInitialPropagateCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NotMemberCt(PyObject *self, PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___lt____SWIG_0(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * _wrap_RoutingModel_CompactAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NewSearch__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScalProdGreaterOrEqual(PyObject *self, PyObject *args)
SwigDirector_BaseLns(std::vector< operations_research::IntVar * > const &vars)
virtual std::string DebugString() const
Base operator class for operators manipulating variables.
SWIGINTERN PyObject * _wrap_IntervalVar_WhenDurationBound__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__BaseLns
SWIGINTERN PyObject * _wrap_Solver_AcceptedNeighbors(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Cast constraints are special channeling constraints designed to keep a variable in sync with an expre...
Constraint * MakeGreater(IntExpr *const left, IntExpr *const right)
left > right
SWIGINTERN PyObject * _wrap_IntExpr_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_WeightedOptimize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DisjunctiveConstraint_TransitionTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void RefuteDecision(operations_research::Decision *const d)
Before refuting the decision.
This is the base class for building an Lns operator.
RoutingTransitCallback1 TransitCallback1
SWIGINTERN PyObject * _wrap_Solver_Constraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_SetEndRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME void SWIG_Python_DestroyModule(PyObject *obj)
static PyMethodDef SwigMethods[]
SWIGINTERN PyObject * _wrap_SolutionCollector_Failures(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__ChangeValueTo_p_operations_research__LocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhase(PyObject *self, PyObject *args)
Status
Status of the search.
SWIGINTERN PyObject * SolutionCollector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___radd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetMutableLocalCumulMPOptimizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void Revert()
Cancels the changes made by the last Relax()/Accept() calls.
SWIGINTERN PyObject * _wrap_SearchMonitor_LocalOptimum(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___gt____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___le____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual bool HoldsDelta() const
static swig_type_info _swigt__p_CostClassIndex
static void * _p_operations_research__OptimizeVarTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_type_info _swigt__p_operations_research__Solver
virtual bool HoldsDelta() const
SWIGINTERN PyObject * _wrap_BaseLns_AppendToFragment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_BeginNextDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_HasDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___lt____SWIG_1(operations_research::IntExpr *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_Assignment_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_AcquirePtr(ptr, src)
SWIGRUNTIMEINLINE int SwigPyObject_Check(PyObject *op)
SWIGINTERN PyObject * _wrap_IntExpr___ge____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual int64_t GetSynchronizedObjectiveValue() const
Objective value from last time Synchronize() was called.
SWIGINTERN PyObject * _wrap_RoutingIndexManager_IndexToNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Creates a search monitor from logging parameters.
Selects the min value of the selected variable.
SWIGINTERN PyObject * _wrap_Solver_PathCumul__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
PyObject * FromObjectIntervalVar(operations_research::IntervalVar *obj)
virtual ~SwigDirector_Constraint()
SWIGINTERN PyObject * _wrap_SequenceVarLocalSearchOperatorTemplate_Start(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
void swig_set_inner(const char *swig_protected_method_name, bool swig_val) const
SWIGINTERN PyObject * _wrap_SolutionCollector_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FirstSolutionCollector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual operations_research::Decision * Next(operations_research::Solver *const s)
This is the main method of the decision builder class.
virtual ~DirectorException()
SWIGINTERN PyObject * _wrap_Pack_AddWeightedSumOfAssignedDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Rand32(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Try(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FinishCurrentSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetEndValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_EndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_EndExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsBetweenVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_BaseObject___str__(operations_research::BaseObject *self)
SWIGINTERN PyObject * _wrap_GlobalVehicleBreaksConstraint_InitialPropagateWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_RegisterUnaryTransitCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Selects the first possible value which is the closest to the center of the domain of the selected var...
virtual void Post()
This method is called when the constraint is processed by the solver.
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___rmul__(operations_research::IntExpr *self, int64_t v)
SWIGINTERN PyObject * _wrap_Solver_NewSearch__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_RandomLnsOperator(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_HasCumulVarSoftUpperBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Assignment(PyObject *self, PyObject *args)
SWIGRUNTIME void SWIG_Python_SetModule(swig_module_info *swig_module)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAfterStartWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
virtual std::string DebugString() const
SWIGINTERN PyObject * _wrap_SearchMonitor___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__LocalSearchMonitor[]
SWIGINTERN PyObject * _wrap_Solver_NotMemberCt__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_decision_builder_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FixedDurationStartSyncedOnStartIntervalVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Distribute__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_DivisionByZero
static swig_cast_info _swigc__p_operations_research__TypeIncompatibilityChecker[]
static swig_cast_info _swigc__p_int[]
SWIGINTERN PyObject * _wrap_Assignment_Activated__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Objective(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Decision___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_VariableLessOrEqualValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_LocalSearchFilter_Synchronize(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
When visited, one instance of type 'T' previously added to the route (TYPE_ADDED_TO_VEHICLE),...
SWIGINTERN PyObject * _wrap_Solver_Min__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAtEnd(operations_research::IntervalVar *self, operations_research::IntervalVar *other)
SWIGRUNTIME PyObject * SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
SWIGINTERN int Swig_var_RoutingModelVisitor_kLightElement2_set(PyObject *)
SWIGINTERN PyObject * TypeRegulationsChecker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
struct swig_cast_info * cast
SWIGINTERN void swig_varlink_dealloc(swig_varlinkobject *v)
SWIGINTERN PyObject * _wrap_DecisionBuilder___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_std__functionT_long_flongF_t
#define SWIG_Python_ConvertPtr(obj, pptr, type, flags)
SWIGINTERN std::string operations_research_Decision___repr__(operations_research::Decision *self)
SWIGINTERN PyObject * _wrap_SolutionCollector_AddObjective(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * TypeRequirementChecker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_POINTER_DISOWN
static void * _p_operations_research__PackTo_p_operations_research__Constraint(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGRUNTIME void SWIG_InitializeModule(void *clientdata)
SWIGINTERN PyObject * _wrap_new_IntVarLocalSearchOperator__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_BetweenCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_IntExpr___repr__(operations_research::IntExpr *self)
SWIGINTERN PyObject * _wrap_IntervalVarContainer_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__AssignmentContainerT_operations_research__IntVar_operations_research__IntVarElement_t
static swig_type_info _swigt__p_operations_research__SolutionPool
SWIGINTERN PyObject * _wrap_SearchMonitor_EndFail(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__GlobalDimensionCumulOptimizer
SWIGINTERN PyObject * LocalSearchOperator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__Demon[]
SWIGINTERN operations_research::Constraint * operations_research_Constraint___gt____SWIG_0(operations_research::Constraint *self, int64_t v)
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_DefaultPhaseParameters_value_selection_schema_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___ne____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_SetPickupToDeliveryLimitFunctionForPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhaseParameters__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__DecisionVisitorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Assignment_PerformedMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_BeginFail(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVar_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual bool MakeNextNeighbor(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
Redefines MakeNextNeighbor to export a simpler interface.
SWIGINTERN int SWIG_AsVal_long(PyObject *obj, long *val)
SWIGINTERN PyObject * _wrap_SolutionCollector_WallTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_DurationValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_std__vectorT_operations_research__Assignment_const_p_t[]
SWIGINTERN PyObject * _wrap_RoutingModel_HasSameVehicleTypeRequirements(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_CheckAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetArcCostForClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Distribute__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual bool IsUncheckedSolutionLimitReached()
Returns true if the limit of solutions has been reached including unchecked solutions.
SWIGINTERN PyObject * _wrap_SearchMonitor_AcceptDelta(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__PathOperator[]
SWIGINTERN PyObject * _wrap_IntExpr___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_WeightedMinimize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
std::function< int64_t(int, int)> PickupToDeliveryLimitFunction
Limits, in terms of maximum difference between the cumul variables, between the pickup and delivery a...
#define SWIGTYPE_p_operations_research__SolutionPool
SWIGINTERN PyObject * _wrap_new_LocalSearchFilterManager(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_PathCumul__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___le____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DecisionBuilder___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SWIG_Python_newvarlink(void)
SWIGINTERN PyObject * _wrap_MakeSetValuesFromTargets(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddAtSolutionCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_RUNTIME_VERSION
SWIGINTERN PyObject * _wrap_IntExpr___add____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScheduleOrExpedite(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperator_NextNeighbor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVar_RankNotFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
struct swig_cast_info * next
#define SWIGTYPE_p_operations_research__RevT_bool_t
SWIGINTERN PyObject * _wrap_Solver_MoveTowardTargetOperator__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void EnterSearch()
Beginning of the search.
Constraint * MakeNotMemberCt(IntExpr *const expr, const std::vector< int64_t > &values)
expr not in set.
IntExpr * MakeProd(IntExpr *const left, IntExpr *const right)
left * right
SWIGINTERN operations_research::Constraint * operations_research_Constraint___ge____SWIG_2(operations_research::Constraint *self, operations_research::Constraint *other)
virtual std::string DebugString() const
The base class for all local search operators.
virtual ~SwigDirector_LocalSearchOperator()
SWIGINTERN PyObject * _wrap_Pack_AddCountUsedBinDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SearchLog__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_LocalSearchFilterManager_Synchronize(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN int Swig_var_RoutingModelVisitor_kLightElement_set(PyObject *)
SWIGINTERN PyObject * _wrap_delete_LocalSearchFilterManager(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 void * _p_operations_research__TypeRequirementCheckerTo_p_operations_research__TypeRegulationsChecker(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * Decision_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_WeightedMinimize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
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 bool IsIncremental() const
SWIGINTERN PyObject * BooleanVar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Among unbound variables, select the variable with the smallest size, i.e., the smallest number of pos...
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhaseParameters(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_HasObjective(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
The simple selection is ASSIGN_MIN_VALUE.
SWIGINTERN PyObject * swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v))
virtual int ProgressPercent()
Returns a percentage representing the propress of the search before reaching limits.
static swig_cast_info _swigc__p_std__vectorT_std__unique_ptrT_operations_research__LocalDimensionCumulOptimizer_t_t[]
SWIGINTERN PyObject * _wrap_IntExpr_IndexOf__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_LocalSearchFilter_IsIncremental(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SearchLog__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__RoutingModelVisitorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Assignment_Activated__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_std__vectorT_std__vectorT_long_t_t
SWIGINTERN PyObject * _wrap_SolutionCollector_Add__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SolveFromAssignmentWithParameters__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_StartValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap___lshift__(PyObject *self, PyObject *args)
PyObject * swig_get_self() const
SWIGINTERN PyObject * _wrap_Solver_AllSolutionCollector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SolveWithParameters__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_std__vectorT_absl__flat_hash_setT_int_t_t
SWIGINTERN PyObject * _wrap_delete_Constraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SequenceVarLocalSearchOperatorTemplate_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERNINLINE PyObject * SWIG_FromCharPtr(const char *cptr)
SWIGINTERN PyObject * _wrap_TypeRegulationsChecker_CheckVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_DecisionBuilder(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetNumOfSingletonNodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___ge____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetVisitType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
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_IntervalVar_StartExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint_MapTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarContainer___ne__(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_IntervalVar_WhenAnything__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Rand64(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__IntVarLocalSearchOperator
RoutingCostClassIndex CostClassIndex
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAtEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty)
SWIGRUNTIME void SwigPyObject_dealloc(PyObject *v)
SWIGINTERN PyObject * _wrap_SequenceVarLocalSearchOperatorTemplate_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_CloseModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_ActiveVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntExprTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIGTYPE_p_operations_research__IntervalVar
SWIGINTERN PyObject * _wrap_Constraint___eq____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WasPerformedBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_std__vectorT_std__pairT_long_long_t_t
#define SWIGPY_CAPSULE_NAME
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_run_all_heuristics_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FixedDurationEndSyncedOnStartIntervalVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__Constraint
SWIGINTERN PyObject * _wrap_IntVar_OldMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void OnSynchronize(operations_research::Assignment const *delta)
SWIGINTERN PyObject * _wrap_Assignment_IntVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
IntVar * Var() override
Creates a variable from the expression.
SWIGINTERN PyObject * _wrap_IntervalVarContainer___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyTypeObject * SwigPyPacked_TypeOnce(void)
SWIGINTERN PyObject * _wrap_Assignment_BackwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddSearchMonitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarIterator_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_EndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsMemberCt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Among unbound variables, select the variable with the smallest minimal value.
SWIGINTERN PyObject * _wrap_RoutingModel_GetArcCostForVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___radd__(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenPerformedBound__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags)
SWIGINTERN PyObject * _wrap_SolutionCollector_Add__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsDifferentCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_GetPreTravelEvaluatorOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Pack_AddWeightedSumLessOrEqualConstantDimension__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarElement___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__Solver__SearchLogParameters
SWIGINTERN PyObject * _wrap_IntervalVar_WhenEndRange__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ConcatenateOperators__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__IntervalVar[]
SWIGINTERN PyObject * _wrap_Assignment_SetDurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperatorTemplate_Start(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN void SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj)
Base class of the local search operators dedicated to path modifications (a path is a set of nodes li...
SWIGINTERN PyObject * _wrap_BooleanVar_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_DurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_TransitCallback2
SWIGINTERN PyObject * _wrap_RoutingModel_SetAmortizedCostFactorsOfAllVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAt(operations_research::IntervalVar *self, int64_t date)
SWIGINTERN PyObject * _wrap_Solver_AssignVariablesValues(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
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...
SWIGINTERN PyObject * _wrap_Solver_SolveOnce(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)
SWIGINTERN int SWIG_AsCharPtrAndSize(PyObject *obj, char **cptr, size_t *psize, int *alloc)
SWIGINTERN PyObject * _wrap_SolutionCollector_Branches(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_EndSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__Assignment[]
SWIGINTERN PyObject * _wrap_Solver_Cover(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_WeightedOptimize(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetArcCostEvaluatorOfAllVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * RevBool_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Manager for any NodeIndex <-> variable index conversion.
SWIGINTERN PyObject * _wrap_Solver_IntConst(PyObject *self, PyObject *args)
SWIGINTERN PyObject * PathOperator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SolveFromAssignmentWithParameters(PyObject *self, PyObject *args)
SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty)
static void * _p_operations_research__PropagationMonitorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap___lshift____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___le____SWIG_2(operations_research::Constraint *self, operations_research::Constraint *other)
RoutingSearchParameters DefaultRoutingSearchParameters()
virtual void EndInitialPropagation()
After the initial propagation.
SWIGRUNTIMEINLINE int SWIG_Python_CheckImplicit(swig_type_info *ty)
SWIGINTERN PyObject * _wrap_Assignment_PerformedValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_Solver__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * RevInteger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetStartRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
t ends after d, i.e. End(t) >= d.
Operator which defines a neighborhood to decrement values.
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___ge____SWIG_0(operations_research::IntExpr *self, int64_t v)
SWIGINTERN PyObject * _wrap_IntExpr___le__(PyObject *self, PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAfterEnd(operations_research::IntervalVar *self, operations_research::IntervalVar *other)
SwigDirector_DecisionBuilder()
SWIGINTERN PyObject * _wrap_IntervalVar_WhenEndRange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_ConsiderEmptyRouteCostsForVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAtStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint_IndexOf__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsGreaterOrEqualCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_t
static swig_type_info _swigt__p_operations_research__TypeRequirementChecker
SWIGINTERN PyObject * _wrap_OptimizeVar_AtSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Sum(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Limit__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_DefaultSolverParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__DisjunctiveConstraint
SWIGINTERN PyObject * Swig_var_RoutingModelVisitor_kLightElement2_get(void)
SWIGINTERN PyObject * _wrap_IntervalVar_PerformedExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ConcatenateOperators__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_SetValues(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * ChangeValue_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
static swig_type_info _swigt__p_operations_research__ModelVisitor
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___neg__(operations_research::IntExpr *self)
SWIGINTERN PyObject * _wrap_Constraint___lt__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FailStamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static int64_t MemoryUsage()
Current memory usage in bytes.
SWIGRUNTIME int SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own)
#define SWIG_AddNewMask(r)
static swig_type_info _swigt__p_RoutingDisjunctionIndex
SWIGINTERN void SWIG_Python_FixMethods(PyMethodDef *methods, swig_const_info *const_table, swig_type_info **types, swig_type_info **types_initial)
static swig_cast_info _swigc__p_VehicleClassIndex[]
std::function< int64_t(int64_t)> IndexEvaluator1
Callback typedefs.
SWIGINTERN PyObject * _wrap_new_RoutingModelVisitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_std__vectorT_operations_research__RoutingDimension_p_t
SWIGINTERN PyObject * _wrap_SequenceVarElement___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___eq__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarContainer_Store(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void PeriodicCheck()
Periodic call to check limits in long running methods.
SWIGINTERN PyObject * _wrap_Constraint___sub__(PyObject *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)
virtual void BeginFail()
Just when the failure occurs.
SWIGINTERN PyObject * _wrap_Solver_Cumulative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__Solver__SearchLogParameters[]
This class adds reversibility to a POD type.
virtual bool MakeNextNeighbor(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
Redefines MakeNextNeighbor to export a simpler interface.
SWIGINTERN PyObject * _wrap_IntervalVarElement_StartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__PropagationBaseObject
static swig_type_info _swigt__p_operations_research__SymmetryBreaker
SWIGINTERN PyObject * _wrap_Constraint___eq____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Activate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TransitionConstraint(PyObject *self, PyObject *args)
SWIGINTERN int64_t operations_research_IntVarLocalSearchFilter_IndexFromVar(operations_research::IntVarLocalSearchFilter const *self, operations_research::IntVar *const var)
Operator which exchanges the positions of two nodes.
#define SWIGTYPE_p_operations_research__RoutingModel
SWIGINTERN PyObject * _wrap_Solver_LastSolutionCollector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void EndFail()
After completing the backtrack.
SWIGINTERN PyObject * _wrap_Solver_NotMemberCt__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_HoleIteratorAux(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAtStart(operations_research::IntervalVar *self, operations_research::IntervalVar *other)
The default is INTERVAL_SET_TIMES_FORWARD.
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAtStart(operations_research::IntervalVar *self, operations_research::IntervalVar *other)
SWIGINTERN PyObject * BaseLns_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Max__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_RemoveInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FirstSolutionCollector(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ConditionalExpression(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_persistent_impact_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___gt____SWIG_1(operations_research::Constraint *self, operations_research::IntExpr *other)
static swig_cast_info _swigc__p_std__vectorT_absl__flat_hash_setT_int_t_t[]
static void * _p_operations_research__IntervalVarTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SwigDirector_BaseObject(PyObject *self)
#define SWIG_GUARD(mutex)
SWIGINTERN PyObject * _wrap_Solver_IsDifferentCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___mod__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_base_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TransitionConstraint__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
void swig_set_inner(const char *swig_protected_method_name, bool swig_val) const
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___lt____SWIG_0(operations_research::IntExpr *self, int64_t v)
SWIGINTERN PyObject * _wrap_Solver_DefaultPhase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static ReturnT InvokePythonCallableReturning(PyObject *pyfunc, const char *format, Args... args)
SWIGINTERN int Swig_var_RoutingModel_kNoDisjunction_set(PyObject *)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr_MapTo(operations_research::IntExpr *self, std::vector< operations_research::IntVar * > const &vars)
#define SWIG_newvarlink()
std::string FindErrorInRoutingSearchParameters(const RoutingSearchParameters &search_parameters)
Returns an empty std::string if the routing search parameters are valid, and a non-empty,...
SWIGINTERN PyObject * _wrap_new_GlobalVehicleBreaksConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_CrossesDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
t1 ends at t2 end, i.e. End(t1) == End(t2) + delay.
SWIGINTERN PyObject * _wrap_RoutingModel_SetArcCostEvaluatorOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhaseParameters__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_status(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_RoutingModelVisitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarContainer_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__IntervalVarElement
SWIGINTERN PyObject * _wrap_IntExpr___ne____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NullIntersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhaseParameters__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TimeLimit__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
PyObject * operator->() const
virtual void Start(operations_research::Assignment const *assignment)
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)
static swig_cast_info _swigc__p_std__functionT_long_flong_longF_t[]
const char * what() const
static swig_type_info _swigt__p_operations_research__Demon
static swig_cast_info _swigc__p_operations_research__NumericalRevT_long_t[]
IntVar * VarWithName(const std::string &name)
Creates a variable from the expression and set the name of the resulting var.
SWIGINTERN PyObject * _wrap_Solver_TemporalDisjunction__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
PyObject * FromObjectDecisionBuilder(operations_research::DecisionBuilder *obj)
SWIGINTERN PyObject * _wrap_IntExpr_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SwigDirector_ChangeValue(std::vector< operations_research::IntVar * > const &vars)
#define SWIG_NewPackedObj(ptr, sz, type)
SWIGINTERN void SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[])
SWIGINTERN PyObject * _wrap_RoutingDimension_GetTransitValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
void Synchronize(const Assignment *assignment, const Assignment *delta) override
This method should not be overridden.
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___le____SWIG_0(operations_research::IntExpr *self, int64_t v)
DirectorMethodException(const char *msg="")
The simple selection is CHOOSE_FIRST_UNBOUND.
SwigPtr_PyObject & operator=(const SwigPtr_PyObject &item)
SWIGINTERN PyObject * _wrap_RoutingModel_GetNumberOfDecisionsInFirstSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Operator__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_RankFirstInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SwigPyObject_repr2(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
SWIGINTERN PyObject * _wrap_disown_Constraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Deactivate(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NestedOptimize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntVarLocalSearchFilterTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_SequenceVarLocalSearchOperatorTemplate_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
swig_type_info ** type_initial
static void * _p_operations_research__RegularLimitTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_new_RoutingModel__SWIG_1(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_RoutingDimension_GetTransitValueFromClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__SearchLog[]
virtual void RefuteDecision(Decision *const d)
Before refuting the decision.
SWIGINTERN PyObject * _wrap_RoutingDimension_GetSpanUpperBoundForVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__ImprovementSearchLimitTo_p_operations_research__SearchMonitor(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntervalVar___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___ge__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * TypeRegulationsConstraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_DecisionBuilder___str__(operations_research::DecisionBuilder *self)
SWIGINTERN PyObject * _wrap_RevBool_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__RoutingModel__VehicleTypeContainer
SWIGINTERN PyObject * _wrap_IntervalVar_WhenDurationRange(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_OptimizeVar_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void EndNextDecision(operations_research::DecisionBuilder *const b, operations_research::Decision *const d)
After calling DecisionBuilder::Next, along with the returned decision.
SWIGINTERN PyObject * _wrap_RoutingModel_HasTemporalTypeIncompatibilities(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
DirectorPureVirtualException(const char *msg)
#define SWIG_OverflowError
SWIGINTERN PyObject * _wrap_Assignment_StartValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntervalVarTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingModel_AddRequiredTypeAlternativesWhenRemovingType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
void *(* swig_converter_func)(void *, int *)
SWIGINTERN PyObject * _wrap_IntExpr___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAfterStartWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
SWIGRUNTIME int SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
SWIGINTERN PyObject * _wrap_RoutingModel_SolveFromAssignmentsWithParameters__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__AssignmentElement
#define SWIGTYPE_p_operations_research__OptimizeVar
SWIGINTERN PyObject * _wrap___lshift____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__RoutingIndexManager
SWIGINTERN PyObject * _wrap_Solver_IntVar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
A Demon is the base element of a propagation queue.
SWIGINTERN PyObject * _wrap_Pack_AddWeightedSumLessOrEqualConstantDimension__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_MirrorInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_InstallConstants(d, constants)
SWIGINTERN PyObject * _wrap_new_SearchMonitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_Solve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__PathOperatorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_cast_info _swigc__p_operations_research__RoutingModel__VehicleTypeContainer[]
SWIGINTERN PyObject * _wrap_RoutingModel_ApplyLocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__FirstSolutionStrategy__Value[]
SWIGINTERN PyObject * _wrap_new_NumericalRevInteger(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__SequenceVarElement
virtual bool HoldsDelta() const
SWIGINTERN PyObject * _wrap_RoutingDimension_GetLocalOptimizerOffsetForVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BaseLns___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_std__vectorT_std__pairT_int_int_t_t
SWIGINTERN PyObject * _wrap_PathOperator_Neighbor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual bool IsIncremental() const
SWIGINTERN PyObject * _wrap_RoutingModel_GetAllDimensionNames(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_DurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
A DecisionVisitor is used to inspect a decision.
SWIGINTERN PyObject * _wrap_IntervalVar_OldDurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_var_selection_schema_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_std__vectorT_operations_research__LocalSearchFilterManager__FilterEvent_t
t ends before d, i.e. End(t) <= d.
SWIGRUNTIME PyObject * SwigPyPacked_repr(SwigPyPacked *v)
SWIGINTERN PyObject * _wrap_SequenceVarContainer___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * LocalSearchFilterManager_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NestedOptimize(PyObject *self, PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr_Square(operations_research::IntExpr *self)
SWIGRUNTIMEINLINE PyObject * SWIG_Py_Void(void)
SWIGINTERN PyObject * _wrap_disown_Demon(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__PropagationBaseObject
SWIGINTERN PyObject * _wrap_RoutingModel_SolveWithParameters(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_EndValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_WhenBound__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN char * SWIG_Python_str_AsChar(PyObject *str)
SWIGINTERN PyObject * _wrap_Solver_SortingConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___eq____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
PyObject * FromObjectSearchMonitor(operations_research::SearchMonitor *obj)
SWIGINTERN PyObject * _wrap_delete_RoutingDimension(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)
static swig_type_info _swigt__p_operations_research__NumericalRevT_long_t
SWIGINTERN PyObject * _wrap_Solver_Operator__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetFixedCostOfAllVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_ForwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME void SwigPyClientData_Del(SwigPyClientData *data)
SWIGINTERN PyObject * _wrap_delete_SequenceVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetDurationRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AssignmentToRoutes(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
PyObject * PyInt_FromIndexT(const IndexT i)
SharedPyPtr(const SharedPyPtr &other)
SWIGINTERN PyObject * _wrap_Solver_GuidedLocalSearch__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_disown_IntVarLocalSearchFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void OnSynchronize(const Assignment *delta)
SWIGINTERN PyObject * Solver_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RevInteger_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * Assignment_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint_IndexOf(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarElement_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_RandomLnsOperator__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME SwigPyObject * SWIG_Python_GetSwigThis(PyObject *pyobj)
SWIGINTERN PyObject * _wrap_Constraint___ge____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_RoutingModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___rsub__(operations_research::IntExpr *self, int64_t v)
SWIGINTERN PyObject * _wrap_RoutingModel_IsVehicleAllowedForIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Constraint * MakeIntervalVarRelationWithDelay(IntervalVar *const t1, BinaryIntervalRelation r, IntervalVar *const t2, int64_t delay)
This method creates a relation between two interval vars.
virtual int get_own() const
SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name)
SWIGINTERN PyObject * SequenceVarElement_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_SetStartRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_OptimizeVar_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_Min(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetCostClassesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddDimensionWithVehicleTransits(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Constraint * MakeMemberCt(IntExpr *const expr, const std::vector< int64_t > &values)
expr in set.
#define SWIGTYPE_p_std__functionT_long_flongF_t
SWIGINTERN operations_research::Constraint * operations_research_Constraint___eq____SWIG_2(operations_research::Constraint *self, operations_research::Constraint *other)
SWIGRUNTIME int SWIG_Python_AddErrMesg(const char *mesg, int infront)
SWIGINTERN PyObject * _wrap_SequenceVar___str__(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_Solver_IntVar__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetNumberOfRejectsInFirstSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__BaseIntExpr
virtual IntVar * Var()
Creates a Boolean variable representing the status of the constraint (false = constraint is violated,...
SWIGINTERN PyObject * _wrap_IntExpr___gt__(PyObject *self, PyObject *args)
#define SWIG_as_voidptr(a)
SWIGINTERN PyObject * _wrap_Solver_TemporalDisjunction__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static ConstraintSolverParameters DefaultSolverParameters()
Create a ConstraintSolverParameters proto with all the default values.
#define SWIG_POINTER_IMPLICIT_CONV
static swig_cast_info _swigc__p_operations_research__SequenceVar[]
SWIGINTERN PyObject * _wrap_Solver_BoolVar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Operator which makes path nodes inactive.
static swig_type_info _swigt__p_operations_research__RoutingModel
Checker for type incompatibilities.
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___add____SWIG_0(operations_research::Constraint *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_RoutingModel_CostsAreHomogeneousAcrossVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_RevInteger(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhaseParameters__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Distribute__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__Solver
static swig_cast_info _swigc__p_operations_research__IntVarLocalSearchFilter[]
SWIGINTERN PyObject * _wrap_BooleanVar_DomainIteratorAux(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_std__vectorT_operations_research__Assignment_const_p_t
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_delete_PropagationBaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Randomly select one of the remaining unbound variables.
SWIGINTERN PyObject * _wrap_Solver_Phase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_Constraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * Swig_var_RoutingModelVisitor_kLightElement_get(void)
SWIGRUNTIME PyTypeObject * SwigPyPacked_type(void)
SWIGINTERN PyObject * _wrap_Solver_Max__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_ArcIsMoreConstrainedThanArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVar_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void BeginNextDecision(DecisionBuilder *const b)
Before calling DecisionBuilder::Next.
SWIGINTERN PyObject * _wrap_RoutingModel_ReadAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetNumberOfVisitTypes(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_StartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NewSearch__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAfter(operations_research::IntervalVar *self, int64_t date)
Time limit reached before finding a solution with RoutingModel::Solve().
static void * _p_operations_research__SequenceVarElementTo_p_operations_research__AssignmentElement(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntervalVar_WhenStartBound(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_OldDurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__PathOperatorTo_p_operations_research__LocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
static void * _p_operations_research__TypeRegulationsConstraintTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIGTYPE_p_operations_research__LocalSearchFilterManager
A constraint is the main modeling object.
SWIGRUNTIME PyObject * SwigPyObject_long(SwigPyObject *v)
Dimensions represent quantities accumulated at nodes along the routes.
SWIGINTERN PyObject * _wrap_Solver_SplitVariableDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetPerformedRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__IntervalVarElement[]
SWIGINTERN PyObject * _wrap_GlobalVehicleBreaksConstraint_Post(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___ge____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_SetEndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual bool MakeOneNeighbor()
This method should not be overridden. Override ModifyValue() instead.
static swig_cast_info _swigc__p_operations_research__OptimizeVar[]
SWIGINTERN PyObject * _wrap_Solver_Distribute__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void RestartSearch()
Restart the search.
SWIGINTERN PyObject * _wrap_IntExpr___le____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___le____SWIG_0(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_RoutingModel_GetCostClassIndexOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_std__vectorT_std__pairT_long_long_t_t[]
#define SWIGTYPE_p_operations_research__DisjunctiveConstraint
SWIGINTERN PyObject * _wrap_Solver_ConcatenateOperators__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyTypeObject * SwigPyObject_TypeOnce(void)
SWIGINTERN PyObject * _wrap_RoutingModel_GetVehicleOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME void SWIG_Python_TypeError(const char *type, PyObject *obj)
static void * _p_operations_research__SearchLogTo_p_operations_research__SearchMonitor(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___neg__(operations_research::Constraint *self)
SWIGINTERN PyObject * _wrap_RoutingModel_ActiveVehicleVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_SearchLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_Solver(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__RevT_bool_t
static swig_type_info _swigt__p_DimensionIndex
SWIGINTERN PyObject * _wrap_Solver_Count(PyObject *self, PyObject *args)
static swig_cast_info _swigc__p_operations_research__SolutionCollector[]
SWIGRUNTIME swig_type_info * SWIG_Python_TypeQuery(const char *type)
SWIGINTERN PyObject * _wrap_Solver_Min__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__LocalSearchMonitor
SWIGINTERN operations_research::Constraint * operations_research_Constraint___lt____SWIG_2(operations_research::Constraint *self, operations_research::Constraint *other)
SWIGINTERN PyObject * _wrap_IntVar_WhenBound__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___mul____SWIG_2(operations_research::IntExpr *self, int64_t v)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr_IndexOf__SWIG_1(operations_research::IntExpr *self, std::vector< operations_research::IntVar * > const &vars)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___mul____SWIG_0(operations_research::IntExpr *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * Swig_var_RoutingModel_kNoPenalty_get(void)
SWIGINTERN PyObject * _wrap_IntExpr_IndexOf(PyObject *self, PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___mul____SWIG_2(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * _wrap_Solver_SolveAndCommit__SWIG_3(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_RoutingModel_GetSameVehicleIndicesOfIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__LocalSearchFilterManager
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetEndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TimeLimit__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_MakeGuidedSlackFinalizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchLimit_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void Synchronize(operations_research::Assignment const *assignment, operations_research::Assignment const *delta)
This method should not be overridden.
SWIGRUNTIME void SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
bool CanConvertToSequenceVar(PyObject *py_obj)
SWIGINTERN PyObject * _wrap_RoutingIndexManager_GetNumberOfIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Usual limit based on wall_time, number of explored branches and number of failures in the search tree...
SWIGRUNTIMEINLINE PyObject * SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StaysInSync(operations_research::IntervalVar *self, operations_research::IntervalVar *other)
virtual bool HoldsDelta() const
SWIGINTERN PyObject * RoutingModelVisitor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_IntervalVar___repr__(operations_research::IntervalVar *self)
SWIGINTERN PyObject * _wrap_Solver_MoveTowardTargetOperator(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_SetDurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
t1 ends at t2 start, i.e. End(t1) == Start(t2) + delay.
SWIGINTERN PyObject * _wrap_Solver_WeightedOptimize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_CheckConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Element__SWIG_1(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_PropagationBaseObject_solver(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_SafeEndExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_RoutingDimensionIndex[]
SWIGINTERN PyObject * _wrap_IntVar_WhenDomain(PyObject *self, PyObject *args)
SWIGINTERN PyObject * RoutingModel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * BaseObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN int64_t operations_research_BaseLns___getitem__(operations_research::BaseLns *self, int index)
static void * _p_operations_research__PathOperatorTo_p_operations_research__IntVarLocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_SolutionCollector_DurationValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_SequenceVar___str__(operations_research::SequenceVar *self)
SWIGINTERN PyObject * _wrap_Solver_Minimize(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__SolutionPool[]
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsBefore(operations_research::IntervalVar *self, int64_t date)
SWIGINTERN PyObject * _wrap_new_Decision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__GlobalDimensionCumulOptimizer
SWIGINTERN PyObject * _wrap_Assignment_SetObjectiveRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAfterStart(operations_research::IntervalVar *self, operations_research::IntervalVar *other)
#define SWIG_Error(code, msg)
SWIGINTERN PyObject * _wrap_RoutingModel_SetPickupAndDeliveryPolicyOfAllVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void ExitSearch()
End of the search.
SWIGINTERN PyObject * _wrap_delete_IntVarLocalSearchOperator(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN int Swig_var_RoutingModelVisitor_kRemoveValues_set(PyObject *)
SWIGINTERN PyObject * _wrap_SequenceVarContainer___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___ge____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarElement_Unperformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_RestoreAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetEndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME void SWIG_Python_AddErrorMsg(const char *mesg)
SWIGINTERN PyObject * _wrap_Assignment_Add__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_SolutionCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Pack_AddWeightedSumLessOrEqualConstantDimension(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_HoleIteratorAux(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___mul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
struct swig_globalvar swig_globalvar
SWIGINTERN PyObject * _wrap_Solver_ElementFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__DefaultPhaseParameters
SWIGINTERN PyObject * _wrap_LocalSearchFilterManager_Accept(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Accept(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetMutableLocalCumulOptimizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual bool HasFragments() const
GCItem_var(GCItem *item=0)
SWIGINTERN PyObject * _wrap_disown_DecisionBuilder(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SearchLog(PyObject *self, PyObject *args)
static swig_type_info _swigt__p_signed_char
SWIGINTERN PyObject * _wrap_RoutingModel_GetArcCostForFirstSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory)
SWIGINTERN PyObject * _wrap_Solver_Element__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetDurationValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetPerformedMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SwigPyObject_format(const char *fmt, SwigPyObject *v)
#define SWIGTYPE_p_operations_research__IntVar
SWIGINTERN PyObject * RoutingModelVisitor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_Decision___str__(operations_research::Decision *self)
static PyMethodDef swigobject_methods[]
#define SWIG_addvarlink(p, name, get_attr, set_attr)
virtual void BeginFail()
Just when the failure occurs.
SWIGINTERN PyObject * _wrap_RoutingDimension_SetSpanCostCoefficientForVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
A DecisionBuilder is responsible for creating the search tree.
#define SWIG_RuntimeError
SWIGINTERN PyObject * _wrap_Solver_IntConst__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__PathOperator
static void * _p_operations_research__ImprovementSearchLimitTo_p_operations_research__SearchLimit(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingDimension_GetCumulVarSoftLowerBoundCoefficient(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * IntVarIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_Solver(PyObject *self, PyObject *args)
static swig_type_info _swigt__p_operations_research__SequenceVarElement
SWIGINTERN PyObject * _wrap_Solver_Limit(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarContainer_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetPickupAndDeliveryPolicyOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
PyObject_HEAD void * pack
SWIGINTERN PyObject * _wrap_IntervalVar_WhenStartRange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * Constraint_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
t ends at d, i.e. End(t) == d.
SWIGINTERN PyObject * _wrap_Solver_RandomLnsOperator__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__FirstSolutionStrategy__Value
SWIGINTERN PyObject * _wrap_IntExpr_Member(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_unsigned_long
Problem solved successfully after calling RoutingModel::Solve().
SWIGINTERN PyObject * _wrap_Solver_NewSearch__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Pack_InitialPropagateWrapper(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_Assignment_SetSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___lt__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SumObjectiveFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Pack(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarContainer_Element(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_DecisionBuilder___repr__(operations_research::DecisionBuilder *self)
SWIGINTERN PyObject * _wrap_Constraint___ne____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual Solver::DemonPriority priority() const
This method returns the priority of the demon.
SWIGINTERN PyObject * _wrap_RoutingModel_CloseVisitTypes(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Unperformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * Swig_var_RoutingModel_kNoDimension_get(void)
static swig_type_info _swigt__p_operations_research__RegularLimit
SWIGINTERN PyObject * _wrap_RoutingModel_MakePathSpansAndTotalSlacks(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_value_selection_schema_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScalProdLessOrEqual__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___rmul__(operations_research::Constraint *self, int64_t v)
PyObject * FromObjectIntVar(operations_research::IntVar *obj)
#define SWIGTYPE_p_operations_research__RevT_long_t
SWIGINTERN PyObject * SearchLimit_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
GCItem * operator->() const
static swig_type_info _swigt__p_absl__flat_hash_setT_int_t
static swig_cast_info _swigc__p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_t[]
static void * _p_operations_research__SymmetryBreakerTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAtStartWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_VehicleVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
PyObject *(* get_attr)(void)
SWIGINTERN PyObject * _wrap_IntVar_RemoveValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_std__vectorT_std__unique_ptrT_operations_research__GlobalDimensionCumulOptimizer_t_t
SWIGRUNTIME PyObject * SWIG_Python_TypeCache(void)
SWIGINTERN PyObject * _wrap_RoutingDimension_SetSpanUpperBoundForVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Defines operators which change the value of variables; each neighbor corresponds to one modified vari...
SWIGINTERN PyObject * _wrap_Constraint___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAfterStartWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint_Post(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_IntervalVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Among unbound variables, select the variable with the smallest size, i.e., the smallest number of pos...
static swig_cast_info _swigc__p_DisjunctionIndex[]
SWIGINTERN PyObject * _wrap_Solver_Max(PyObject *self, PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___le____SWIG_1(operations_research::Constraint *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_IntExpr___ne__(PyObject *self, PyObject *args)
virtual void AcceptUncheckedNeighbor()
After accepting an unchecked neighbor during local search.
static swig_type_info * swig_types[104]
SWIGINTERN PyObject * IntVarLocalSearchOperator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_RemainingTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Solve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Limit__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AssignVariableValueOrFail(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Maximize(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ElementEquality__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAfter(operations_research::IntervalVar *self, int64_t date)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchFilter_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
The default behavior is ASSIGN_MIN_VALUE.
static swig_type_info _swigt__p_std__vectorT_std__pairT_long_long_t_t
PyObject_HEAD swig_globalvar * vars
t1 starts at t2 start, i.e. Start(t1) == Start(t2) + delay.
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperatorTemplate_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
PyObject * FromObjectLocalSearchFilterManager(operations_research::LocalSearchFilterManager *obj)
static void * _p_operations_research__IntervalVarElementTo_p_operations_research__AssignmentElement(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty)
Deliveries must be performed in the same order as pickups.
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAfterEndWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
static void * _p_operations_research__SolutionCollectorTo_p_operations_research__SearchMonitor(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_type_info _swigt__p_operations_research__DecisionVisitor
std::function< int64_t(const Model &)> Value(IntegerVariable v)
SWIGINTERN PyObject * _wrap_Solver_SearchTrace(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__TypeIncompatibilityChecker
SWIGINTERN PyObject * _wrap_Solver_IsBetweenCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
PyObject * FromObjectSequenceVar(operations_research::SequenceVar *obj)
SWIGINTERN PyObject * _wrap_RoutingModel_RegisterTransitMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void BeginInitialPropagation()
Before the initial propagation.
void swig_acquire_ownership(Type *vptr) const
SWIGINTERN PyObject * _wrap_Solver_IsMemberVar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScalProd__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TransitionConstraint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
t starts at d, i.e. Start(t) == d.
static void * _p_operations_research__CastConstraintTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingModel_ReadAssignmentFromRoutes(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void Run(operations_research::Solver *const s)
This is the main callback of the demon.
virtual bool MakeOneNeighbor()
Creates a new neighbor.
virtual IntVar * Var()=0
Creates a variable from the expression.
SWIGINTERN PyObject * _wrap_IntExpr___rsub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Branches(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Add__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual bool HasFragments() const
SWIGINTERN PyObject * _wrap_delete_Decision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__LocalSearchPhaseParameters
SWIGRUNTIMEINLINE const char * SwigPyObject_GetDesc(PyObject *self)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___radd__(operations_research::IntExpr *self, int64_t v)
virtual bool SkipUnchanged(int index) const
SWIGINTERN operations_research::Constraint * operations_research_Constraint___ne____SWIG_0(operations_research::Constraint *self, int64_t v)
static swig_cast_info _swigc__p_operations_research__IntVarIterator[]
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAfterStart(operations_research::IntervalVar *self, operations_research::IntervalVar *other)
SWIGINTERN PyObject * _wrap_RoutingModel_HasVehicleWithCostClassIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
int(* set_attr)(PyObject *)
static swig_type_info _swigt__p_std__vectorT_std__pairT_std__vectorT_long_t_std__vectorT_long_t_t_t
SWIGINTERN PyObject * NumericalRevInteger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERNINLINE PyObject * SWIG_From_int(int value)
SWIGINTERN PyObject * _wrap_Solver_SumEquality__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
No solution found to the problem after calling RoutingModel::Solve().
static swig_cast_info _swigc__p_std__vectorT_std__pairT_std__vectorT_long_t_std__vectorT_long_t_t_t[]
SWIGINTERN PyObject * _wrap_SolutionCollector_Unperformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Add__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_IntervalVarElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Interval variables are often used in scheduling.
static swig_cast_info _swigc__p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t[]
SWIGRUNTIMEINLINE PyObject * SWIG_Python_ExceptionType(swig_type_info *desc)
SWIGINTERN PyObject * _wrap_delete_AssignmentElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_PathCumul(PyObject *self, PyObject *args)
static swig_cast_info _swigc__p_operations_research__RevT_long_t[]
SWIGINTERN PyObject * _wrap_SolutionCollector_PerformedValue(PyObject *SWIGUNUSEDPARM(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)
static const char kLightElement[]
Constraint types.
#define SWIG_ConvertPtrAndOwn(obj, pptr, type, flags, own)
SWIGINTERN PyObject * _wrap_Solver_SimulatedAnnealing(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_std__functionT_long_flong_longF_t
virtual void Accept(operations_research::ModelVisitor *const visitor) const
Accepts the given model visitor.
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAtEndWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
SWIGINTERN PyObject * _wrap_RoutingModel_MakeSelfDependentDimensionFinalizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetAutomaticFirstSolutionStrategy(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarElement_ForwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_IntervalVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__SearchMonitor[]
SWIGRUNTIME int SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
SWIGINTERN PyObject * _wrap_IntVarContainer_Store(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___gt____SWIG_2(operations_research::Constraint *self, operations_research::Constraint *other)
virtual void swig_set_inner(const char *, bool) const
SWIGINTERN PyObject * _wrap_Solver_IntervalRelaxedMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_SetSpanCostCoefficientForAllVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScalProdEquality(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarElement_Max(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_run_all_heuristics_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__GlobalVehicleBreaksConstraint[]
SWIGINTERN PyObject * _wrap_RoutingDimension_HasCumulVarSoftLowerBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
The simple is INTERVAL_SET_TIMES_FORWARD.
static swig_cast_info _swigc__p_operations_research__DecisionBuilder[]
SWIGINTERN PyObject * _wrap_IntVar___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Cumulative__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_MutableIntervalVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__SearchLimit
SWIGINTERN PyObject * _wrap_delete_BaseLns(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsEqualVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
swig_cast_info ** cast_initial
static swig_cast_info _swigc__p_operations_research__Constraint[]
SWIGINTERN PyObject * _wrap_SequenceVar_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void raise(const char *msg)
t1 ends after t2 end, i.e. End(t1) >= End(t2) + delay.
SWIGINTERN PyObject * _wrap_Solver_Element__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_StartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__SearchLimit[]
SWIGRUNTIMEINLINE int SwigPyPacked_Check(PyObject *op)
SWIGINTERN PyObject * _wrap_Constraint___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * DefaultPhaseParameters_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetAssignmentFromOtherModelAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___eq____SWIG_1(operations_research::IntExpr *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_RoutingModel_SolveWithParameters__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SWIG_Python_ErrorType(int code)
static swig_cast_info _swigc__p_operations_research__ModelVisitor[]
SWIGINTERN PyObject * _wrap_RoutingModel_GetDimensions(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_Add(PyObject *self, PyObject *args)
#define SWIGTYPE_p_operations_research__SolutionCollector
SwigDirector_Constraint(operations_research::Solver *const solver)
static swig_type_info _swigt__p_VehicleClassIndex
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_var_selection_schema_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__IntVarElement
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperatorTemplate_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__TypeRegulationsChecker[]
virtual void OnStart()
Called by Start() after synchronizing the operator with the current assignment.
SWIGINTERN int operations_research_BaseLns___len__(operations_research::BaseLns *self)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___gt____SWIG_1(operations_research::IntExpr *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_Assignment_Save(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetStartRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__DisjunctiveConstraintTo_p_operations_research__Constraint(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_type_info _swigt__p_operations_research__RoutingModelVisitor
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_CrossesDate(operations_research::IntervalVar *self, int64_t date)
static void * _p_operations_research__TypeIncompatibilityCheckerTo_p_operations_research__TypeRegulationsChecker(void *x, int *SWIGUNUSEDPARM(newmemory))
virtual bool HasFragments() const
SWIGRUNTIME swig_type_info * SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
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...
virtual bool AcceptSolution()
This method is called when a solution is found.
SWIGINTERN PyObject * _wrap_RoutingModel_GetHomogeneousCost(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Solve__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_DefaultPhaseParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_WeightedMaximize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarContainer_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ConstantRestart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_OptimizeVar_BeginNextDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
void swig_acquire_ownership_array(Type *vptr) const
SWIGINTERN PyObject * _wrap_RoutingModel_SetFixedCostOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__GlobalDimensionCumulOptimizer[]
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___abs__(operations_research::Constraint *self)
static void * _p_operations_research__PackTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingModel_RegisterUnaryTransitVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual bool IsIncremental() const
SWIGINTERN PyObject * ChangeValue_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperatorTemplate_OldValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DecisionBuilder_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarElement_SetSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Operator which relaxes all inactive nodes and one sub-chain of six consecutive arcs.
static void * _p_operations_research__BaseLnsTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIG_NewClientData(obj)
SwigDirector_PropagationBaseObject(PyObject *self, operations_research::Solver *const s)
SWIGINTERN PyObject * _wrap_Assignment_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingIndexManager_GetNumberOfVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info * swig_cast_initial[]
struct swig_globalvar * next
#define SWIG_AttributeError
static swig_cast_info _swigc__p_operations_research__PropagationBaseObject[]
SWIGINTERN PyObject * _wrap_Assignment_DurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_disown_Decision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_DurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual std::string DebugString() const
SWIGINTERN PyObject * _wrap_Solver_IsMemberVar(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_NumericalRevInteger_Incr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * OptimizeVar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual ~SwigDirector_SearchMonitor()
SWIGINTERN PyObject * _wrap_Solver_Solutions(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__SequenceVarLocalSearchOperator
static swig_type_info _swigt__p_operations_research__LocalSearchMonitor
SWIGINTERN PyObject * _wrap_Solver_Solve(PyObject *self, PyObject *args)
Relocate neighborhood with length of 1 (see OROPT comment).
static void * _p_operations_research__DisjunctiveConstraintTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_type_info _swigt__p_operations_research__PathOperator
#define SWIGTYPE_p_operations_research__ModelVisitor
SWIGINTERN PyObject * _wrap_RoutingModel_GetPickupAndDeliveryPolicyOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAtEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Demon_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___lt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_ObjectiveValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Move is accepted when the current objective value <= objective.Max.
SWIGINTERN PyObject * _wrap_Solver_MonotonicElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2)
SWIGINTERN PyObject * _wrap_RoutingModel_IsStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
With the following policy, the visit enforces that type 'T' is considered on the route from its start...
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperator_OneNeighbor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
VAR_PRIORITY is between DELAYED_PRIORITY and NORMAL_PRIORITY.
SWIGINTERN PyObject * _wrap_RoutingDimension_HasBreakConstraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NestedOptimize__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___mul__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarElement___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetStartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Operator which defines one neighbor per variable.
SWIGINTERN PyObject * _wrap_Solver_IsGreaterCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Count__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_std__vectorT_std__pairT_int_int_t_t
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___mul____SWIG_1(operations_research::Constraint *self, operations_research::Constraint *other)
SWIGINTERN PyObject * _wrap_Solver_Fail(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarContainer___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Limit__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_CheckState(r)
SWIGINTERN PyObject * _wrap_Solver_StatisticsModelVisitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual bool IsUncheckedSolutionLimitReached()
Returns true if the limit of solutions has been reached including unchecked solutions.
virtual std::string DebugString() const
static void * _p_operations_research__BooleanVarTo_p_operations_research__IntVar(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_BaseLns_NextFragment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NonOverlappingBoxesConstraint__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * PropagationBaseObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_LocalSearchOperator_Start(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Selects the variable with the lowest starting time of all variables, and fixes its starting time to t...
SWIGINTERN PyObject * _wrap_IntVarContainer_Element(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Operator which cross exchanges the starting chains of 2 paths, including exchanging the whole paths.
SWIGINTERN PyObject * _wrap_IntVar_WhenDomain__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SubCircuit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_RestoreAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_FindErrorInRoutingSearchParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_std__vectorT_operations_research__LocalSearchFilterManager__FilterEvent_t
SWIGINTERN PyObject * _wrap_Solver_IsEqualCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
LocalSearchFilterBound
This enum is used in Solver::MakeLocalSearchObjectiveFilter.
SWIGINTERN PyObject * _wrap_Solver_ScalProdEquality__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchFilter_Synchronize(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___ne____SWIG_1(operations_research::IntExpr *self, operations_research::IntExpr *other)
struct swig_cast_info swig_cast_info
SWIGINTERN PyObject * _wrap_RoutingModel_SetFirstSolutionEvaluator(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsDifferentCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_AvoidsDate(operations_research::IntervalVar *self, int64_t date)
struct swig_cast_info * prev
static swig_cast_info _swigc__p_operations_research__IntTupleSet[]
SWIGRUNTIME void SwigPyPacked_dealloc(PyObject *v)
virtual std::string DebugString() const
SWIGINTERN PyObject * _wrap_Solver_ScalProdGreaterOrEqual__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_BoolVar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DisjunctiveConstraint_SetTransitionTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAtEndWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
NORMAL_PRIORITY is the highest priority: Demons will be processed first.
SWIGINTERN PyObject * _wrap_Constraint___le____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SearchLog__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__BaseObject[]
Filter manager: when a move is made, filters are executed to decide whether the solution is feasible ...
static swig_cast_info _swigc__p_operations_research__ImprovementSearchLimit[]
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___add____SWIG_2(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * _wrap_RoutingModel_GetVehicleTypeContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetDurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
void AcceptNeighbor(Search *const search)
static swig_cast_info _swigc__p_operations_research__IntVar[]
SWIGINTERN PyObject * _wrap_IntervalVar_WhenPerformedBound__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhase__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__BaseLnsTo_p_operations_research__IntVarLocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_SolveModelWithSat(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_BeginInitialPropagation(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * NumericalRevInteger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_MinEquality(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_NullReferenceError
SWIGINTERN PyObject * _wrap_RoutingModel_GetVehicleClassesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
bool CanConvertToIntervalVar(PyObject *py_obj)
SWIGINTERN PyObject * _wrap_DecisionBuilder_NextWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
This class encapsulates an objective.
SWIGINTERN PyObject * _wrap_IntVar_DomainIteratorAux(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___sub____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetEndRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void Apply(operations_research::Solver *const s)
Apply will be called first when the decision is executed.
SWIGINTERN PyObject * _wrap_Constraint___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_RoutingModel(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhaseParameters__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SWIG_Python_str_FromChar(const char *c)
#define SWIGTYPE_p_operations_research__DecisionBuilder
static void * _p_operations_research__DecisionBuilderTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
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_ScalProd__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Among unbound variables, select the variable with the smallest size, i.e., the smallest number of pos...
SWIGRUNTIME void * SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags)
SWIGINTERN operations_research::IntVar * operations_research_IntExpr_IsMember(operations_research::IntExpr *self, std::vector< int64_t > const &values)
virtual bool IsIncremental() const
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.
SWIGINTERN PyObject * _wrap_Solver_IntVar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__Assignment
SWIGINTERN PyObject * _wrap_IntVar_IsVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetDisjunctionIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetMaximumNumberOfActiveVehicles(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)
Deliveries must be performed in reverse order of pickups.
static swig_cast_info _swigc__p_operations_research__RoutingModelVisitor[]
SWIGINTERN PyObject * _wrap_Solver_IsLessOrEqualCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsLessCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_PropagationBaseObject_Name(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAfter(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_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___sub____SWIG_0(operations_research::IntExpr *self, operations_research::IntExpr *other)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAtStartWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
static swig_cast_info _swigc__p_unsigned_long[]
SWIGINTERN PyObject * _wrap_Solver_CustomLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * Demon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AllSolutionCollector(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_CloseModelWithParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SwigPyObject_repr(SwigPyObject *v)
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__TypeIncompatibilityChecker
SWIGINTERN PyObject * _wrap_SequenceVarElement_BackwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAt(operations_research::IntervalVar *self, int64_t date)
static swig_cast_info _swigc__p_std__ostream[]
SWIGINTERN PyObject * _wrap_Assignment_Add__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntVarTo_p_operations_research__IntExpr(void *x, int *SWIGUNUSEDPARM(newmemory))
Checker for type requirements.
SWIGINTERN PyObject * _wrap_RoutingModel_GetVisitType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
IntExpr * MakeAbs(IntExpr *const expr)
|expr|
SWIGINTERN PyObject * _wrap_Solver_Element__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddHardTypeIncompatibility(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__TypeRequirementChecker
SWIGINTERN PyObject * SWIG_globals(void)
SWIGINTERN PyObject * _wrap_Assignment_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
The class Iterator has two direct subclasses.
SWIGINTERN PyObject * _wrap_SequenceVarElement_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IndexOfConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SolveAndCommit__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_unsigned_char
SWIGINTERN PyObject * _wrap_Solver_NestedOptimize__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * DecisionBuilder_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_HasTypeRegulations(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Deviation(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)
#define SWIGTYPE_p_operations_research__AssignmentElement
SWIGINTERN PyObject * _wrap_Solver_IsGreaterVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___floordiv____SWIG_0(operations_research::IntExpr *self, int64_t v)
#define SWIGTYPE_p_operations_research__RoutingModel__VehicleTypeContainer
SWIGINTERN PyObject * _wrap_IntervalVar_SetEndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Decision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetAllowedVehiclesForIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_Constraint___str__(operations_research::Constraint *self)
SWIGINTERN PyObject * _wrap_IntVarContainer_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___eq____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetSameVehicleRequiredTypeAlternativesOfType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata)
Among unbound variables, select the variable with the smallest size, i.e., the smallest number of pos...
SWIGINTERN PyObject * _wrap_Solver_Distribute__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_disown_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsDifferentVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_RoutingIndexManager__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Problem not solved yet (before calling RoutingModel::Solve()).
SWIGINTERN PyObject * _wrap_Solver_VarEvalValStrPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void Revert()
Cancels the changes made by the last Relax()/Accept() calls.
SWIGINTERN PyObject * _wrap_Assignment_Deactivate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__SearchMonitorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntervalVar_SetStartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenAnything__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_FixedTransitVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_unsigned_short[]
SWIGINTERN PyObject * _wrap_Solver_EvalEvalStrTieBreakPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_GetModule(clientdata)
SWIGINTERN PyObject * _wrap_Solver_DisjunctiveConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingIndexManager_NodeToIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__Decision
SWIGINTERNINLINE PyObject * SWIG_From_bool(bool value)
SWIGINTERN PyObject * _wrap_Solver_NonOverlappingBoxesConstraint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Cumulative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScalProdEquality__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Operator which makes a "chain" of path nodes inactive.
The base class of all search logs that periodically outputs information when the search is running.
SWIGINTERN PyObject * _wrap_IntVarLocalSearchFilter_IndexFromVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
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().
SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb)
virtual operations_research::IntVar * Var()
Creates a Boolean variable representing the status of the constraint (false = constraint is violated,...
SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb)
SWIGINTERN PyObject * _wrap_Solver_DefaultPhase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_RoutingDimensionIndex
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_display_level_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__PropagationBaseObjectTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_SequenceVar_RankFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__BaseObject
SWIGINTERN PyObject * _wrap_Solver_AbsEquality(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_ObjectiveMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_DelayedPathCumul(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetHardTypeIncompatibilitiesOfType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual ~SwigDirector_BaseLns()
SWIGINTERN PyObject * TypeRegulationsConstraint_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___radd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual int64_t GetAcceptedObjectiveValue() const
Objective value from the last time Accept() was called and returned true.
SWIGINTERN PyObject * _wrap_RoutingModel_GetVisitTypePolicy(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
t1 starts at t2 end, i.e. Start(t1) == End(t2) + delay.
SWIGINTERN PyObject * _wrap_Solver_Solve__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_TransitCallback2[]
SWIGINTERN operations_research::Constraint * operations_research_Constraint___eq____SWIG_0(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * _wrap_Solver_WeightedMaximize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_OldStartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___lt____SWIG_1(operations_research::Constraint *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_SequenceVarLocalSearchOperatorTemplate_OnStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarContainer___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_absl__flat_hash_setT_int_t[]
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetStartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual std::string DebugString() const
static swig_cast_info _swigc__p_unsigned_char[]
#define SWIG_Python_str_DelForPy3(x)
virtual bool NextFragment()
SWIGINTERN PyObject * _wrap_IntExpr___gt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetNonZeroCostClassesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__OptimizeVar
SWIGINTERN PyObject * _wrap_Solver_MoveTowardTargetOperator__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
LocalSearchOperators
This enum is used in Solver::MakeOperator to specify the neighborhood to create.
SWIGINTERN PyObject * RoutingModel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AllSolutionCollector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void PyFunctionSolverToVoid(PyObject *pyfunc, operations_research::Solver *s)
SWIGINTERN PyObject * _wrap_Assignment_Load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__SequenceVarLocalSearchOperator
SWIGINTERN PyObject * _wrap_IntExpr___mod____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SWIG_Python_AppendOutput(PyObject *result, PyObject *obj)
virtual void NoMoreSolutions()
When the search tree is finished.
static swig_cast_info _swigc__p_signed_char[]
SWIGINTERN PyObject * _wrap_IntervalVar_DurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__AssignmentContainerT_operations_research__IntVar_operations_research__IntVarElement_t
Selects the variable with the highest ending time of all variables, and fixes the ending time to this...
SWIGINTERN PyObject * _wrap_RevInteger_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_VarWithName(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN int SWIG_AsPtr_std_string(PyObject *obj, std::string **val)
SWIGINTERN PyObject * _wrap_SolutionCollector_EnterSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetObjectiveValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__AssignmentTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIGTYPE_p_operations_research__VarLocalSearchOperatorT_operations_research__SequenceVar_std__vectorT_int_t_operations_research__SequenceVarLocalSearchHandler_t
SWIGINTERN PyObject * _wrap_delete_IntVarElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__SymmetryBreaker[]
SWIGINTERN PyObject * _wrap_Solver_DecisionBuilderFromAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddConstantDimensionWithSlack(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME int SWIG_Python_TypeErrorOccurred(PyObject *obj)
SWIGINTERN PyObject * _wrap_IntVar___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SwigPyObject_hex(SwigPyObject *v)
SWIGINTERN PyObject * _wrap_BooleanVar_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Distribute__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_TransitVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint_IndexOf__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
bool CanConvertToDecision(PyObject *py_obj)
SWIGINTERN PyObject * _wrap_Solver_Solve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_GetGlobalOptimizerOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Pack_AddCountAssignedItemsDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_Solver___str__(operations_research::Solver *self)
SWIGINTERN PyObject * _wrap_RoutingModel_GetPickupIndexPairs(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_solver(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_GetSpanCostCoefficientForVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__IntVarLocalSearchOperator[]
SWIGINTERN PyObject * _wrap_Solver_MaxEquality(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntVarLocalSearchOperatorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingModel_AddIntervalToAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__AssignmentContainerT_operations_research__IntervalVar_operations_research__IntervalVarElement_t
VisitTypePolicy
Set the node visit types and incompatibilities/requirements between the types (see below).
SWIGINTERN PyObject * _wrap_RoutingModel_GetDisjunctionMaxCardinality(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual ~SwigDirector_PropagationBaseObject()
SWIGINTERN PyObject * _wrap_SequenceVarLocalSearchOperatorTemplate_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_OptimizeVar_AcceptSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NewSearch__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_WhenDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_AssignmentElement_Deactivate(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__LocalDimensionCumulOptimizer[]
IntExpr * MakeDifference(IntExpr *const left, IntExpr *const right)
left - right
SWIGINTERN PyObject * BaseLns_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_MayBePerformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarContainer_Element(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_VarEvalValEvalTieBreakPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN void SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj)
static swig_type_info _swigt__p_int
SWIGINTERN PyObject * _wrap_RoutingModel_Solve(PyObject *self, PyObject *args)
static void * _p_operations_research__CastConstraintTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGRUNTIME PyObject * SwigPyPacked_str(SwigPyPacked *v)
SWIGINTERN int Swig_var_RoutingModel_kNoDimension_set(PyObject *)
void clear_fail_intercept()
SWIGINTERN PyObject * IntervalVarContainer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___rmul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void raise(JNIEnv *jenv, jthrowable throwable)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperatorTemplate_IsIncremental(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TransitionConstraint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_std__vectorT_operations_research__Assignment_const_p_t
SWIGINTERN PyObject * _wrap_Solver_LocalSearchProfile(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
The SequenceVarElement stores a partial representation of ranked interval variables in the underlying...
IntVar * MakeIsMemberVar(IntExpr *const expr, const std::vector< int64_t > &values)
SWIGINTERN PyObject * _wrap_RoutingModel_GetFixedCostOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void BeginNextDecision(operations_research::DecisionBuilder *const b)
Before calling DecisionBuilder::Next.
SWIGINTERN PyObject * _wrap_Decision_RefuteWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
bool HasFragments() const override
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_display_level_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AllDifferent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_GetPostTravelEvaluatorOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DisjunctiveConstraint_SequenceVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Element(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Add(PyObject *self, PyObject *args)
SWIGINTERN PyObject * TypeIncompatibilityChecker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsGreaterCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsLessOrEqualVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_RandomConcatenateOperators__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Deactivate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void Accept(operations_research::ModelVisitor *const visitor) const
Accepts the given visitor.
SWIGINTERN PyObject * _wrap_RoutingModel_AddVariableMaximizedByFinalizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void ApplyDecision(operations_research::Decision *const d)
Before applying the decision.
static swig_cast_info _swigc__p_std__vectorT_std__pairT_int_int_t_t[]
static const char kRemoveValues[]
static void * _p_operations_research__DecisionTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_ConstraintInitialPropagateCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
t1 starts after t2 end, i.e. Start(t1) >= End(t2) + delay.
#define SWIGTYPE_p_operations_research__AssignmentContainerT_operations_research__SequenceVar_operations_research__SequenceVarElement_t
SWIGINTERN PyObject * _wrap_disown_BaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_InitializeBreaks(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Among unbound variables, select the variable with the largest gap between the first and the second va...
SWIGINTERN PyObject * _wrap_Solver_FirstSolutionCollector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenStartBound__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__FirstSolutionStrategy__Value
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___floordiv____SWIG_1(operations_research::IntExpr *self, operations_research::IntExpr *e)
static swig_cast_info _swigc__p_absl__Duration[]
std::function< int64_t(int64_t, int64_t, int64_t)> IndexEvaluator3
SWIGINTERN PyObject * _wrap_BaseLns___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__IntervalVarElement
static void * _p_operations_research__SequenceVarLocalSearchOperatorTo_p_operations_research__LocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_ScheduleOrPostpone(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__Decision[]
#define SWIGTYPE_p_operations_research__DefaultPhaseParameters
SWIGINTERN PyObject * _wrap_Assignment_SetEndRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_absl__Duration
SWIGINTERN PyObject * _wrap_Solver_Phase(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_WriteAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME SwigPyClientData * SwigPyClientData_New(PyObject *obj)
virtual void Accept(ModelVisitor *const visitor) const
Accepts the given model visitor.
SWIGINTERN PyObject * _wrap_Assignment_AddObjective(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_heuristic_num_failures_limit_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultRoutingSearchParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static int input(yyscan_t yyscanner)
SWIGINTERN PyObject * _wrap_Solver_ClosureDemon(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_Bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_persistent_impact_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Constraint * MakeIntervalVarRelation(IntervalVar *const t, UnaryIntervalRelation r, int64_t d)
This method creates a relation between an interval var and a date.
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___mod____SWIG_1(operations_research::IntExpr *self, operations_research::IntExpr *e)
SWIGINTERN PyObject * _wrap_RoutingModel_GetGlobalDimensionCumulOptimizers(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Selects the max value of the selected variable.
SWIGINTERN PyObject * _wrap_SequenceVarLocalSearchOperatorTemplate_OldValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarElement_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Cumulative(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Operator__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
#define SWIGTYPE_p_operations_research__IntVarIterator
SWIGINTERN PyObject * _wrap_Solver_TimeLimit(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarContainer_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * RoutingIndexManager_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SolveFromAssignmentsWithParameters__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
RoutingDisjunctionIndex DisjunctionIndex
SWIGINTERN PyObject * _wrap_IntervalVar_WhenEndBound(PyObject *self, PyObject *args)
PickupAndDeliveryPolicy
Types of precedence policy applied to pickup and delivery pairs.
SWIGINTERN PyObject * _wrap_RoutingModel_AddDisjunction__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__BaseLnsTo_p_operations_research__LocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_ElementEquality__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntVarTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Pack_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_TypeRegulationsConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * Swig_var_RoutingModelVisitor_kRemoveValues_get(void)
SWIGINTERN PyObject * _wrap_Solver_Solve__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__GlobalVehicleBreaksConstraintTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_AllowedAssignments__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * IntVarLocalSearchOperator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void Install()
Registers itself on the solver such that it gets notified of the search and propagation events.
SWIGINTERN PyObject * _wrap_IntExpr___eq____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__BaseLns[]
static swig_type_info _swigt__p_std__vectorT_std__unique_ptrT_operations_research__LocalDimensionCumulOptimizer_t_t
SWIGINTERN PyObject * _wrap_IntervalVar_SetDurationRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void PeriodicCheck()
Periodic call to check limits in long running methods.
Constraint * MakeLess(IntExpr *const left, IntExpr *const right)
left < right
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___add____SWIG_0(operations_research::IntExpr *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_Solver_AllDifferentExcept(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_BaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME swig_module_info * SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata))
SWIGINTERN PyObject * _wrap_IntVarContainer_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___gt__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * Demon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetDurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Count__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_PYTHON_THREAD_BEGIN_BLOCK
static swig_cast_info _swigc__p_operations_research__TypeRequirementChecker[]
SWIGINTERN PyObject * _wrap_SequenceVar_RankLast(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScalProdLessOrEqual__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetTemporalTypeIncompatibilitiesOfType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static const DisjunctionIndex kNoDisjunction
Constant used to express the "no disjunction" index, returned when a node does not appear in any disj...
SWIGINTERN PyObject * _wrap_RoutingModel_AddDimensionWithVehicleTransitAndCapacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
GlobalVehicleBreaksConstraint ensures breaks constraints are enforced on all vehicles in the dimensio...
An Assignment is a variable -> domains mapping, used to report solutions to the user.
SWIGINTERN PyObject * _wrap_Solver_InversePermutationConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__IntVarLocalSearchOperator
static void * _p_operations_research__SearchLimitTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingDimension_ShortestTransitionSlack(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__DemonTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingDimension_SetBreakIntervalsOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_model(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
IntExpr * MakeSquare(IntExpr *const expr)
expr * expr
SWIGINTERN PyObject * _wrap_SolutionCollector_ForwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SwigVar_PyObject(PyObject *obj=0)
static swig_cast_info _swigc__p_operations_research__PropagationMonitor[]
static void * _p_operations_research__TypeRegulationsConstraintTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_BooleanVar_Min(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void EnterSearch()
Beginning of the search.
SWIGINTERN PyObject * _wrap_IntervalVar_CannotBePerformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___add__(PyObject *self, PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___add____SWIG_2(operations_research::IntExpr *self, int64_t v)
SWIGINTERN PyObject * _wrap_Assignment_SetStartValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetPerformedMin(PyObject *SWIGUNUSEDPARM(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_operations_research__IntVarLocalSearchFilter
struct swig_module_info * next
DirectorException(PyObject *error, const char *hdr="", const char *msg="")
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_IntervalVarElement_SetDurationValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
A BaseObject is the root of all reversibly allocated objects.
PyObject * PyObjFrom< int64_t >(const int64_t &c)
virtual bool HasFragments() const
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___eq____SWIG_2(operations_research::IntExpr *self, operations_research::Constraint *other)
SWIGINTERN PyObject * _wrap_SolutionCollector_Add__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_PYTHON_THREAD_END_BLOCK
SWIGINTERN PyObject * _wrap_Solver_SearchLogWithCallback(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_SearchLimit_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVar_RankNotLast(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Add__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_IsMatchingModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetPairIndicesOfType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN int SWIG_AsVal_double(PyObject *obj, double *val)
SWIGINTERN PyObject * _wrap_RoutingModel_GetGlobalDimensionCumulMPOptimizers(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME int SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty)
static swig_type_info _swigt__p_operations_research__IntVarElement
The class IntVar is a subset of IntExpr.
SWIGINTERN PyObject * _wrap_IntExpr___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint_Square(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FixedDurationIntervalVar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__BaseLns
SWIGINTERN PyObject * _wrap_Solver_SearchLog__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN int SWIG_AsVal_int(PyObject *obj, int *val)
SWIGINTERN PyObject * _wrap_SolutionCollector_BackwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_PickupToDeliveryLimitFunction[]
SWIGINTERN PyObject * _wrap_RoutingDimension_CumulVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Activated(PyObject *self, PyObject *args)
When visited, the number of types 'T' on the vehicle increases by one.
#define SWIGTYPE_p_operations_research__Constraint
t1 ends after t2 start, i.e. End(t1) >= Start(t2) + delay.
SWIGINTERN PyObject * _wrap_Solver_RestartCurrentSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_disown_BaseLns(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__TypeRegulationsConstraintTo_p_operations_research__Constraint(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_ShouldFail(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetSingleNodesOfType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual ~SwigDirector_IntVarLocalSearchFilter()
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))
SWIGINTERN PyObject * _wrap_Solver_WeightedMinimize(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsGreaterCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_OldEndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
The class IntExpr is the base of all integer expressions in constraint programming.
SWIGINTERN PyObject * _wrap_Solver_VarStrValEvalPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SwigPyObject_next(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
SWIGINTERN PyObject * _wrap_IntExpr___ne____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___eq____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_RevBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_TypeRequirementChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddMatrixDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Among unbound variables, select the variable with the highest maximal value.
static swig_cast_info _swigc__p_operations_research__DefaultPhaseParameters[]
void HandleResult< void >(PyObject *pyresult)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint_Square(operations_research::Constraint *self)
IntValueStrategy
This enum describes the strategy used to select the next variable value to set.
SWIGINTERN operations_research::IntExpr * operations_research_Solver_ElementFunction(operations_research::Solver *self, std::function< int64_t(int64_t) > values, operations_research::IntVar *const index)
static swig_cast_info _swigc__p_operations_research__LocalSearchOperator[]
SWIGINTERN PyObject * _wrap_delete_Demon(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Pack_AddSumVariableWeightsLessOrEqualConstantDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_AcceptNeighbor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_AtSolution(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 std::string operations_research_SequenceVar___repr__(operations_research::SequenceVar *self)
struct swig_module_info swig_module_info
SWIGINTERN PyObject * _wrap_SolutionCollector_Solution(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_initialization_splits_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_HasPickupToDeliveryLimits(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetAmortizedLinearCostFactorOfVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___add__(PyObject *self, PyObject *args)
static swig_type_info _swigt__p_operations_research__IntExpr
SWIGINTERN PyObject * _wrap_SearchLimit_RefuteDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_POINTER_NO_NULL
SWIGINTERN PyObject * _wrap_Solver_NextSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static const int64_t kNoPenalty
Constant used to express a hard constraint instead of a soft penalty.
virtual void BeginInitialPropagation()
Before the initial propagation.
Constraint * MakeLessOrEqual(IntExpr *const left, IntExpr *const right)
left <= right
STARTS_AT_START and ENDS_AT_END at the same time.
SWIGINTERN PyObject * _wrap_Assignment_SetObjectiveMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual std::string DebugString() const
SWIGINTERN PyObject * _wrap_RoutingModel_SolveFromAssignmentWithParameters__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_RegisterPositiveUnaryTransitCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Failures(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_IntVarLocalSearchOperator__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_DIRECTOR_CAST(ARG)
SWIGINTERN PyObject * _wrap_new_IntVarLocalSearchOperator__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
STARTS_BEFORE and ENDS_AFTER at the same time, i.e.
virtual void InitialPropagate()
This method performs the initial propagation of the constraint.
SWIGINTERN PyObject * _wrap_new_IntVarLocalSearchOperator(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Phase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___sub____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarElement_SetUnperformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddDisjunction__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__AssignmentContainerT_operations_research__IntervalVar_operations_research__IntervalVarElement_t[]
static void * _p_operations_research__BaseIntExprTo_p_operations_research__IntExpr(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN swig_type_info * SWIG_pchar_descriptor(void)
static void * _p_operations_research__NumericalRevT_long_tTo_p_operations_research__RevT_long_t(void *x, int *SWIGUNUSEDPARM(newmemory))
Relocate: OROPT and RELOCATE.
Move is accepted when the current objective value >= objective.Min.
SWIGINTERN PyObject * _wrap_delete_IntVarLocalSearchFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void EndNextDecision(DecisionBuilder *const b, Decision *const d)
After calling DecisionBuilder::Next, along with the returned decision.
SWIGINTERN PyObject * _wrap_SequenceVar_Interval(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__IntExpr
SWIGINTERN PyObject * _wrap_Solver_TrueConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void Accept(ModelVisitor *const visitor) const
Accepts the given visitor.
SWIGRUNTIME PyObject * SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
static swig_type_info _swigt__p_TransitCallback1
IntExpr * MakeElement(const std::vector< int64_t > &values, IntVar *const index)
values[index]
SWIGINTERN PyObject * _wrap_RoutingModel_UnperformedPenalty(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_UnaryTransitCallbackOrNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_GetCumulVarSoftUpperBoundCoefficient(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenDurationRange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsGreaterOrEqualCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_std__vectorT_operations_research__RoutingDimension_p_t
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___sub____SWIG_0(operations_research::Constraint *self, operations_research::IntExpr *other)
static void * _p_operations_research__IntVarTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntVarIterator_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_SetPerformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual bool SkipUnchanged(int index) const
static void * _p_operations_research__IntExprTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_cast_info _swigc__p_operations_research__IntExpr[]
SWIGINTERN PyObject * _wrap_SearchMonitor_RefuteDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BaseObject_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERNINLINE int SWIG_CanCastAsInteger(double *d, double min, double max)
SWIGINTERN std::string operations_research_IntervalVar___str__(operations_research::IntervalVar *self)
static swig_type_info _swigt__p_operations_research__LocalDimensionCumulOptimizer
SWIGINTERN PyObject * _wrap_IntExpr_Bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_IsPerformedBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_DecisionBuilder(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_std__vectorT_std__unique_ptrT_operations_research__GlobalDimensionCumulOptimizer_t_t[]
SWIGINTERN PyObject * _wrap_Solver_FixedDurationEndSyncedOnEndIntervalVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_SafeDurationExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddSameVehicleRequiredTypeAlternatives(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_BranchesLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
IntVarStrategy
This enum describes the strategy used to select the next branching variable at each node during the s...
SWIGINTERN PyObject * _wrap_RoutingModel_GetLocalDimensionCumulOptimizers(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_STATIC_POINTER(var)
#define SWIG_NewPointerObj(ptr, type, flags)
SWIGRUNTIME void SWIG_PropagateClientData(void)
SWIGINTERN PyObject * _wrap_RoutingModel_GetMaximumNumberOfActiveVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetEndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__RegularLimitTo_p_operations_research__SearchLimit(void *x, int *SWIGUNUSEDPARM(newmemory))
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.
SWIGINTERN PyObject * _wrap_RoutingModel_GetLocalDimensionCumulMPOptimizers(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
DirectorTypeMismatchException(PyObject *error, const char *msg="")
SWIGINTERN PyObject * _wrap_BooleanVar_RemoveValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_BaseLns(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SwigDirector_LocalSearchOperator()
SWIGINTERN PyObject * _wrap_Assignment_Empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetStartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SequenceVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_BestValueSolutionCollector(PyObject *self, PyObject *args)
std::function< int64_t(int64_t, int64_t)> IndexEvaluator2
SWIGINTERN PyObject * _wrap_Solver_Circuit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_SearchMonitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FixedDurationStartSyncedOnEndIntervalVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_unsigned_int[]
SWIGINTERN PyObject * _wrap_IntervalVar_DurationExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_ExitSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__ChangeValue
static swig_type_info _swigt__p_operations_research__LocalSearchOperator
SWIGINTERN PyObject * _wrap_RoutingModel_GetPerfectBinaryDisjunctions(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarIterator_Next(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_IntervalVarElement_StartValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAfterEndWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_EndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_std__pairT_std__vectorT_long_t_std__vectorT_long_t_t[]
virtual bool AcceptDelta(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___mul____SWIG_1(operations_research::IntExpr *self, operations_research::Constraint *other)
SWIGINTERN PyObject * _wrap_SolutionCollector_Add__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_ChangeValue_ModifyValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__TypeRegulationsConstraint
SWIGINTERN PyObject * _wrap_Assignment_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetDisjunctionPenalty(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___ne____SWIG_0(operations_research::IntExpr *self, int64_t v)
virtual std::string name() const
Object naming.
static swig_type_info _swigt__p_unsigned_int
FirstSolutionStrategy_Value
SWIGINTERN std::string operations_research_SearchMonitor___repr__(operations_research::SearchMonitor *self)
SWIGINTERN PyObject * _wrap_delete_TypeRegulationsChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__CastConstraint[]
static swig_type_info _swigt__p_operations_research__IntVar
SWIGINTERN PyObject * IntervalVarElement_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__Demon
SWIGINTERN PyObject * RevBool_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Min(PyObject *self, PyObject *args)
struct swig_varlinkobject swig_varlinkobject
SWIGINTERN PyObject * _wrap_Solver_FixedInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAfterEndWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__ConstraintTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * IntVarContainer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_PackCumulsOfOptimizerDimensionsFromAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_WhenBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_RankLastInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_std__ostream
SWIGINTERN PyObject * _wrap_Assignment_SetEndMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_OptimizeVar_Best(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_TYPE_TABLE_NAME
static swig_type_info _swigt__p_operations_research__LocalSearchFilter
SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name)
SWIGINTERN PyObject * DefaultPhaseParameters_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static ReturnT HandleResult(PyObject *pyresult)
SWIGINTERN PyObject * _wrap_RoutingModel_RegisterTransitCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddTemporalTypeIncompatibility(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_LocalSearchFilterManager__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_AvoidsDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_WallTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__ConstraintTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingModel_CheckLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Operator__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Solve__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
bool CanConvertToLocalSearchOperator(PyObject *py_obj)
SWIGINTERN PyObject * _wrap_Assignment_SetPerformedValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAtEndWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Among unbound variables, select the variable with the smallest size.
SWIGINTERN PyObject * _wrap_RoutingModel_AddPickupAndDeliverySets(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_AcceptSolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_absl__flat_hash_setT_int_t
SWIGINTERN PyObject * _wrap_RoutingModel_Start(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_ObjectiveBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static const DimensionIndex kNoDimension
Constant used to express the "no dimension" index, returned when a dimension name does not correspond...
SWIGINTERN PyObject * _wrap_RoutingModel_AddLocalSearchFilter(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_Solver_SumEquality(PyObject *self, PyObject *args)
static swig_type_info _swigt__p_operations_research__IntTupleSet
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAtStartWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
SWIGINTERNINLINE PyObject * SWIG_From_std_string(const std::string &s)
SWIGINTERNINLINE PyObject * SWIG_FromCharPtrAndSize(const char *carray, size_t size)
static swig_cast_info _swigc__p_char[]
#define SWIGTYPE_p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t
static void * _p_operations_research__GlobalVehicleBreaksConstraintTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SwigVar_PyObject & operator=(PyObject *obj)
static swig_type_info _swigt__p_std__ostream
static swig_cast_info _swigc__p_operations_research__RoutingDimension[]
SWIGINTERN PyObject * _wrap_Solver_NestedOptimize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_ChangeValue_OneNeighbor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddToAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetNumberOfDisjunctions(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_PathCumul__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
A sequence variable is a variable whose domain is a set of possible orderings of the interval variabl...
SWIGINTERN PyObject * _wrap_Constraint___ne____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TreeNoCycle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Max__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Operator which replaces an active node by an inactive one.
SWIGINTERN PyObject * _wrap_SolutionCollector_Add__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___floordiv__(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * IntVar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsLessCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_std__pairT_std__vectorT_long_t_std__vectorT_long_t_t
SWIGINTERN PyObject * _wrap_RoutingModel_AddDimensionWithVehicleCapacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetPrimaryConstrainedDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Select the first unbound variable.
#define SWIGRUNTIMEINLINE
#define SWIG_ConvertPtr(obj, pptr, type, flags)
#define SWIGTYPE_p_operations_research__NumericalRevT_long_t
#define SWIGTYPE_p_absl__Duration
SWIGINTERN operations_research::Constraint * operations_research_Constraint___ne____SWIG_1(operations_research::Constraint *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * Pack_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Operator which reverses a sub-chain of a path.
SWIGINTERN PyObject * _wrap_disown_PropagationBaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_random_seed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___eq__(PyObject *self, PyObject *args)
static swig_cast_info _swigc__p_RoutingDisjunctionIndex[]
STARTS_AFTER or ENDS_BEFORE, i.e.
SWIGINTERN PyObject * _wrap_Solver_FixedDurationIntervalVar(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___gt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___add____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Cumulative__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__LocalSearchFilterManager[]
Constraint * MakeGreaterOrEqual(IntExpr *const left, IntExpr *const right)
left >= right
SWIGRUNTIME int SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty)
SWIGINTERN PyObject * _wrap_Demon_RunWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_IntVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchLimit_Crossed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void AcceptNeighbor()
After accepting a neighbor during local search.
SWIGINTERN PyObject * _wrap_Solver_NewSearch(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SolveAndCommit__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_Max(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___add____SWIG_1(operations_research::IntExpr *self, operations_research::Constraint *other)
SWIGINTERN PyObject * _wrap_OptimizeVar_AcceptDelta(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_decision_builder_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_WhenRange__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_DimensionIndex[]
#define SWIGTYPE_p_operations_research__RoutingIndexManager
SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz)
static void * _p_operations_research__PropagationMonitorTo_p_operations_research__SearchMonitor(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN operations_research::Constraint * operations_research_IntExpr_Member(operations_research::IntExpr *self, std::vector< int64_t > const &values)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAfterStartWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___lt____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___sub____SWIG_2(operations_research::IntExpr *self, int64_t v)
#define SWIGTYPE_p_operations_research__LocalDimensionCumulOptimizer
SWIGINTERN PyObject * _wrap_Solver_Cumulative__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___floordiv__(PyObject *self, PyObject *args)
virtual int64_t GetAcceptedObjectiveValue() const
Objective value from the last time Accept() was called and returned true.
static swig_type_info _swigt__p_operations_research__AssignmentContainerT_operations_research__SequenceVar_operations_research__SequenceVarElement_t
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAfterEndWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
This class is used to manage a pool of solutions.
SWIGINTERN PyObject * _wrap_SearchMonitor_ApplyDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_MustBePerformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN void SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg)
std::function< bool(int64_t)> IndexFilter1
SWIGINTERN PyObject * _wrap_AssignmentElement_Activate(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__ImprovementSearchLimitTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_LubyRestart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddPickupAndDelivery(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_VarStrValEvalTieBreakPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * AssignmentElement_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchLimit_EnterSearch(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 * SequenceVarContainer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * Decision_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__SolutionCollectorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Assignment_Min(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
bool CanConvertToLocalSearchFilterManager(PyObject *py_obj)
bool CanConvertToLocalSearchFilter(PyObject *py_obj)
static swig_cast_info _swigc__p_operations_research__RegularLimit[]
SWIGINTERN PyObject * GlobalVehicleBreaksConstraint_swigregister(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_ElementEquality__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual int ProgressPercent()
Returns a percentage representing the propress of the search before reaching limits.
SWIGINTERN PyObject * _wrap_Pack_Post(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Bound(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 * _wrap_Assignment_SetEndValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LastSolutionCollector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void AcceptUncheckedNeighbor()
After accepting an unchecked neighbor during local search.
SWIGINTERN operations_research::IntExpr * operations_research_Constraint_IndexOf__SWIG_0(operations_research::Constraint *self, std::vector< int64_t > const &vars)
SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz)
SWIGINTERN PyObject * _wrap_Solver_FixedDurationIntervalVar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_End(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__PackTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
Operator which defines one neighbor per variable.
SWIGINTERN PyObject * _wrap_Solver_VariableGreaterOrEqualValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_BestValueSolutionCollector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_std__functionT_long_flong_longF_t
SWIGINTERN std::string operations_research_SearchMonitor___str__(operations_research::SearchMonitor *self)
Model, model parameters or flags are not valid.
SWIGINTERN PyObject * _wrap_RoutingDimension_global_span_cost_coefficient(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_IntVar___repr__(operations_research::IntVar *self)
SWIGINTERN PyObject * Constraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * swig_varlink_str(swig_varlinkobject *v)
static void * _p_operations_research__LocalSearchFilterTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
virtual void Install()
Registers itself on the solver such that it gets notified of the search and propagation events.
SWIGINTERN PyObject * _wrap_IntervalVar_WhenAnything(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_SetGlobalSpanCostCoefficient(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IntervalRelaxedMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ElementEquality__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyMethodDef * SWIG_PythonGetProxyDoc(const char *name)
virtual int64_t ModifyValue(int64_t index, int64_t value)
SWIGINTERN PyObject * TypeRequirementChecker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_Max(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScalProdEquality__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__LocalSearchPhaseParameters[]
SWIGINTERN PyObject * _wrap_SolutionCollector_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NewSearch__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Min__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__BaseIntExprTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SequenceStrategy
Used for scheduling. Not yet implemented.
static void * _p_operations_research__SolutionPoolTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_IsEqualCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetStartValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenDurationRange__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGUNUSEDPARM(p)
RoutingNodeIndex NodeIndex
SWIGINTERN PyObject * _wrap_RoutingModel_VehicleIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarElement_SetForwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SearchDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___rsub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void AfterDecision(operations_research::Decision *const d, bool apply)
Just after refuting or applying the decision, apply is true after Apply.
SWIGINTERN PyObject * _wrap_RoutingModel_AddDisjunction__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SharedPyPtr(PyObject *obj)
SWIGINTERN PyObject * _wrap_Solver_SearchLog__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SolveAndCommit__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntVarElementTo_p_operations_research__AssignmentElement(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Pack_AddWeightedSumEqualVarDimension__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAfterEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SolveAndCommit__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_IndexOf__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_BUILTIN_TP_INIT
SWIGINTERN PyObject * _wrap_IntExpr_Square(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___abs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * PropagationBaseObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info * swig_type_initial[]
SWIGINTERN PyObject * _wrap_SearchMonitor_solver(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Optimize(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_IsEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_short
SWIGINTERN int Swig_var_RoutingModel_kNoPenalty_set(PyObject *)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___ge____SWIG_1(operations_research::Constraint *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * DecisionBuilder_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ReSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultRoutingModelParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual bool SkipUnchanged(int index) const
SWIGINTERN PyObject * _wrap_RoutingModel_CostVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_TypeIncompatibilityChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
DemonPriority
This enum represents the three possible priorities for a demon in the Solver queue.
#define SWIG_POINTER_NOSHADOW
SWIGINTERN PyObject * _wrap_Solver_IntVar__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SwigPyObject_own(PyObject *v, PyObject *args)
SWIGINTERN PyObject * LocalSearchFilter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
A Decision represents a choice point in the search tree.
virtual int64_t GetSynchronizedObjectiveValue() const
Objective value from last time Synchronize() was called.
SWIGINTERN PyObject * _wrap_RoutingDimension_GetCumulVarSoftUpperBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NonOverlappingBoxesConstraint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenEndRange(PyObject *self, PyObject *args)
static void * _p_operations_research__GlobalVehicleBreaksConstraintTo_p_operations_research__Constraint(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_LastSolutionCollector(PyObject *self, PyObject *args)
static swig_cast_info _swigc__p_operations_research__LocalSearchFilter[]
static swig_cast_info _swigc__p_operations_research__TypeRegulationsConstraint[]
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___sub____SWIG_2(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * _wrap_RoutingModel_NextVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_ComputeLowerBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_Constraint___repr__(operations_research::Constraint *self)
PyObject * FromObjectDecision(operations_research::Decision *obj)
SWIGINTERN PyObject * _wrap_Solver_TreeNoCycle(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___abs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntVarLocalSearchOperatorTo_p_operations_research__LocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
static PyMethodDef SwigMethods_proxydocs[]
SWIGINTERN PyObject * _wrap_new_RoutingIndexManager__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_NumSequenceVars(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_MangledTypeQuery(name)
#define SWIGTYPE_p_operations_research__GlobalVehicleBreaksConstraint
SWIGINTERN PyObject * _wrap_IntExpr___lt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__SequenceVar
SWIGINTERN PyObject * _wrap_new_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
RoutingTransitCallback2 TransitCallback2
The following constraint ensures that incompatibilities and requirements between types are respected.
SWIGINTERN PyObject * _wrap_SequenceVarLocalSearchOperatorTemplate_IsIncremental(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_RemoveInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_AddNodePrecedence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__GlobalVehicleBreaksConstraint
SWIGINTERN PyObject * _wrap_Solver_GuidedLocalSearch__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AddConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Parameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AllDifferent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * TypeIncompatibilityChecker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_MemberCt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__CastConstraintTo_p_operations_research__Constraint(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_TypeRegulationsConstraint_InitialPropagateWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_BoolVar(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAtStartWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
PyObject * FromObjectIntExpr(operations_research::IntExpr *obj)
static void * _p_operations_research__SequenceVarTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
static void * _p_operations_research__LocalSearchFilterManagerTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntVar_WhenBound(PyObject *self, PyObject *args)
SWIGINTERN PyObject * RoutingDimension_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddVectorDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_EndsBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME int SWIG_Python_ArgFail(int argnum)
SWIGINTERN PyObject * _wrap_Constraint___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__ChangeValueTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIGTYPE_p_operations_research__TypeRegulationsChecker
static swig_type_info _swigt__p_operations_research__RevT_long_t
SWIGINTERN PyObject * _wrap_Solver_IsLessOrEqualCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NotMemberCt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__BaseIntExpr[]
SWIGINTERN PyObject * _wrap_Solver_ScalProdLessOrEqual(PyObject *self, PyObject *args)
DirectorException(const char *msg)
SWIGINTERN PyObject * _wrap_delete_NumericalRevInteger(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_HasHardTypeIncompatibilities(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_module_info swig_module
static void * _p_operations_research__DisjunctiveConstraintTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Decision_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_SequenceVarElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__TypeRegulationsConstraint
SWIGINTERN PyObject * _wrap_Solver_FixedDurationIntervalVar__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Max(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SwigPyObject_disown(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
SWIGINTERN PyObject * _wrap_IntVar_RemoveValues(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsLessVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
bool HoldsDelta() const override
static swig_type_info _swigt__p_operations_research__BaseObject
SWIGINTERN PyObject * _wrap_Solver_Element__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_SetDurationMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SolveAndCommit(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_DurationValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_BaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___mul____SWIG_0(operations_research::Constraint *self, operations_research::IntExpr *other)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenStartRange(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_new_LocalSearchFilterManager__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
A search monitor is a simple set of callbacks to monitor all search events.
SWIGINTERN PyObject * _wrap_Solver_Cumulative__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN int SWIG_AsVal_bool(PyObject *obj, bool *val)
SWIGINTERN PyObject * _wrap_Demon_Priority(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__ChangeValue[]
SWIGINTERN PyObject * _wrap_IntExpr___mul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenDurationBound__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__AssignmentContainerT_operations_research__IntervalVar_operations_research__IntervalVarElement_t
static swig_cast_info _swigc__p_operations_research__BooleanVar[]
virtual void AfterDecision(Decision *const d, bool apply)
Just after refuting or applying the decision, apply is true after Apply.
SWIGINTERN PyObject * _wrap_Solver_Stamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___mul__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_delete_TypeIncompatibilityChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarElement_Bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__IntVarLocalSearchFilter
static void * _p_operations_research__BaseIntExprTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_cast_info _swigc__p_operations_research__AssignmentContainerT_operations_research__IntVar_operations_research__IntVarElement_t[]
SWIGINTERN PyObject * _wrap_Solver_Distribute__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_WhenDomain__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenEndBound__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
IntervalStrategy
This enum describes the straregy used to select the next interval variable and its value to be fixed.
SWIGINTERN PyObject * _wrap_IntVar_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetAmortizedQuadraticCostFactorOfVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___ge____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void ExitSearch()
End of the search.
SWIGINTERN PyObject * _wrap_Constraint___lt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ScalProdGreaterOrEqual__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddWeightedVariableMinimizedByFinalizer(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___ne____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Activate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SearchMonitor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetDepot(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 * SequenceVarLocalSearchOperator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_DefaultPhaseParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IntConst__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_TransitCallback1[]
SWIGINTERN PyObject * _wrap_Constraint___lt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Struct used to sort and store vehicles by their type.
virtual ~SwigDirector_Decision()
virtual void Reset()
Sets the filter to empty solution.
SWIGINTERN PyObject * SearchMonitor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchFilter_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetPrimaryConstrainedDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LexicalLessOrEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__Pack
SWIGINTERN PyObject * _wrap_Assignment_SetPerformedMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__BooleanVarTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
virtual bool HasFragments() const
SWIGINTERN PyObject * _wrap_IntervalVar_StaysInSync(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__CastConstraint
The visit doesn't have an impact on the number of types 'T' on the route, as it's (virtually) added a...
SWIGINTERN PyObject * Swig_var_RoutingModel_kNoDisjunction_get(void)
SWIGINTERN PyObject * _wrap_IntervalVarElement_PerformedMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static PyObject * swig_pyobj_disown(PyObject *pyobj, PyObject *SWIGUNUSEDPARM(args))
SWIGINTERN PyObject * _wrap_IntVarElement_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_OptimizeVar_RefuteDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___floordiv__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SolutionsLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_SetStartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarElement_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__TypeRegulationsChecker
SWIGINTERN PyObject * _wrap_IntExpr___ge__(PyObject *self, PyObject *args)
Collection of objects used to extend the Constraint Solver library.
SWIGINTERN PyObject * _wrap_IntExpr___gt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarElement_Min(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_Solver__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__RegularLimit
SWIGINTERN PyObject * _wrap_Solver_NonOverlappingBoxesConstraint(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SumGreaterOrEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
virtual void ApplyDecision(Decision *const d)
Before applying the decision.
SWIGINTERN PyObject * _wrap_Constraint_InitialPropagateWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_PerformedMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AllDifferent(PyObject *self, PyObject *args)
virtual operations_research::Solver::DemonPriority priority() const
This method returns the priority of the demon.
SWIGINTERN PyObject * _wrap_Solver_IsEqualCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__ChangeValueTo_p_operations_research__IntVarLocalSearchOperator(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingModel_VehicleCostsConsideredVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_EnterSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchLimit_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual std::string name() const
Object naming.
SWIGINTERN PyObject * _wrap_RoutingIndexManager_GetNumberOfNodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__RoutingDimension
SWIGINTERN PyObject * _wrap_RoutingModel_GetMutableDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__SequenceVarLocalSearchOperator[]
SwigDirector_SearchMonitor(operations_research::Solver *const s)
static swig_type_info _swigt__p_operations_research__ImprovementSearchLimit
SWIGINTERN PyObject * _wrap_new_RevBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_MemberCt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AllowedAssignments__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_SetCumulVarSoftLowerBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___sub____SWIG_1(operations_research::IntExpr *self, operations_research::Constraint *other)
virtual ~SwigDirector_IntVarLocalSearchOperator()
SWIGINTERN PyObject * _wrap_Solver_ConcatenateOperators(PyObject *self, PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StaysInSyncWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
static void * _p_operations_research__SearchLimitTo_p_operations_research__SearchMonitor(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Solver_IsLessCstCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__RoutingModel[]
DirectorPureVirtualException(const char *msg="")
SWIGINTERN PyObject * _wrap_IntExpr_NotMember(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_RoutingIndexManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Guard(PyThread_type_lock &mutex)
static void * _p_operations_research__SearchLogTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGRUNTIME PyObject * SWIG_This(void)
SWIGINTERN PyTypeObject * swig_varlink_type(void)
A symmetry breaker is an object that will visit a decision and create the 'symmetrical' decision in r...
SWIGINTERN PyObject * _wrap_RoutingIndexManager_GetStartIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__ChangeValue
static swig_type_info _swigt__p_operations_research__RoutingDimension
SWIGINTERN PyObject * _wrap_Solver_Distribute(PyObject *self, PyObject *args)
virtual void OnStart()
Called by Start() after synchronizing the operator with the current assignment.
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___mod____SWIG_0(operations_research::IntExpr *self, int64_t v)
SWIGINTERN PyObject * _wrap_delete_LocalSearchFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__Pack[]
GCItem_var & operator=(GCItem *item)
SWIGINTERN PyObject * _wrap_IntervalVarElement_PerformedValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsGreaterOrEqualVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Limit__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_BaseObject___repr__(operations_research::BaseObject *self)
SWIGRUNTIME PyObject * SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
static swig_type_info _swigt__p_operations_research__DecisionBuilder
SWIGINTERN PyObject * _wrap_Solver_Max__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Demon_Desinhibit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
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_GetDimensionResourceGroupIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SwigPtr_PyObject(PyObject *obj, bool initial_ref=true)
SWIGINTERN PyObject * _wrap_Constraint___rmul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Pack_AddWeightedSumEqualVarDimension__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Constraint * MakeEquality(IntExpr *const left, IntExpr *const right)
left == right
SWIGINTERN PyObject * IntVarLocalSearchFilter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___floordiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddVariableMinimizedByFinalizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___gt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetBackwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Decision_ApplyWrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_short[]
const char * getMessage() const
Operator which makes an inactive node active and an active one inactive.
SWIGINTERN PyObject * SwigPyObject_acquire(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
Selects the next unbound variable on a path, the path being defined by the variables: var[i] correspo...
static swig_type_info _swigt__p_unsigned_short
SWIGINTERN std::string operations_research_IntVar___str__(operations_research::IntVar *self)
SWIGINTERN PyObject * _wrap_LocalSearchOperator_NextNeighbor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_heuristic_num_failures_limit_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_VarEvalValEvalPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Operator which relaxes one entire path and all inactive nodes, thus defining num_paths neighbors.
SWIGINTERN PyObject * _wrap_RoutingModel_MutablePreAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SemiContinuousExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
bool PyObjAs(PyObject *py_obj, operations_research::Decision **b)
Selects randomly one of the possible values of the selected variable.
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_EndsAtEnd(operations_research::IntervalVar *self, operations_research::IntervalVar *other)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenStartBound__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AreEmptyRouteCostsConsideredForVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Activated__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___le____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
bool CanConvertToIntExpr(PyObject *py_obj)
SWIGINTERN PyObject * _wrap_IntVarIterator_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetObjectiveMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
void swig_acquire_ownership_obj(void *vptr, int own) const
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetPerformedMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__SequenceVarTo_p_operations_research__PropagationBaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAtStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__LocalSearchMonitorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
static const char kLightElement2[]
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_heuristic_period_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_HasTemporalTypeRequirements(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void NoMoreSolutions()
When the search tree is finished.
#define SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t
SWIGINTERN PyObject * _wrap_Solver_PrintModelVisitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__SolutionCollector
SWIGINTERN PyObject * _wrap_SearchLimit_BeginNextDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Deactivate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_BestValueSolutionCollector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SolveFromAssignmentsWithParameters(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Limit__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_MapTo(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_RoutingModel_GetDimensionsWithSoftOrSpanCosts(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperatorTemplate_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_TypeRegulationsConstraint_Post(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___mod____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SWIG_Python_InitShadowInstance(PyObject *args)
jobject swig_get_self(JNIEnv *jenv) const
SWIGINTERN PyObject * _wrap_IntExpr_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__RegularLimitTo_p_operations_research__SearchMonitor(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_cast_info _swigc__p_operations_research__IntVarElement[]
SWIGINTERN PyObject * _wrap_Solver_MemoryUsage(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__Decision
SWIGINTERN PyObject * Solver_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_CAST_NEW_MEMORY
SWIGINTERN PyObject * _wrap_Decision___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_IsMember(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_EndNextDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddVariableTargetToFinalizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual bool MakeNextNeighbor(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
Redefines MakeNextNeighbor to export a simpler interface.
SWIGINTERN PyObject * _wrap_Solver_ConvexPiecewiseExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_TypeRequirementChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_TypeRegulationsConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsLessOrEqualCt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Limit__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME PyObject * SwigPyObject_oct(SwigPyObject *v)
SWIGINTERN PyObject * _wrap_PropagationBaseObject_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__LocalSearchFilter
SWIGINTERN PyObject * _wrap_GlobalVehicleBreaksConstraint_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz)
SWIGINTERN PyObject * _wrap_BaseLns_InitFragments(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_disown_LocalSearchOperator(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_SetDurationMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_IsVehicleUsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsMemberCt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_SetBreakDistanceDurationOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarElement_Var(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
t starts before d, i.e. Start(t) <= d.
SWIGINTERN PyObject * _wrap_Solver_IntVar__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_StartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_std__vectorT_operations_research__RoutingDimension_p_t[]
EvaluatorLocalSearchOperators
This enum is used in Solver::MakeOperator associated with an evaluator to specify the neighborhood to...
SWIGRUNTIME int SWIG_Python_AcquirePtr(PyObject *obj, int own)
virtual bool AtSolution()
This method is called when a valid solution is found.
SWIGINTERN PyObject * _wrap_RoutingModel_RegisterPositiveTransitCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TabuSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_SafeStartExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_random_seed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
bool CanConvertToDecisionBuilder(PyObject *py_obj)
Among unbound variables, select the variable with the highest size.
static swig_cast_info _swigc__p_operations_research__Solver[]
SWIGINTERN PyObject * _wrap_Solver_NullIntersectExcept(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * swig_varlink_getattr(swig_varlinkobject *v, char *n)
SWIGINTERN PyObject * _wrap_new_RoutingModel__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BooleanVar_WhenRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
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 operations_research::IntExpr * operations_research_Constraint___rsub__(operations_research::Constraint *self, int64_t v)
SWIGINTERN PyObject * _wrap_Constraint___ne__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ConstraintAdder(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NestedOptimize__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * IntVarLocalSearchOperatorTemplate_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
#define SWIG_InternalNewPointerObj(ptr, type, flags)
IntExpr * MakeDiv(IntExpr *const expr, int64_t value)
expr / value (integer division)
SWIGINTERN PyObject * _wrap_Solver_Limit__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void RestartSearch()
Restart the search.
SWIGINTERN PyObject * _wrap_RoutingModel_IgnoreDisjunctionsAlreadyForcedToZero(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual std::string DebugString() const
SWIGINTERN PyObject * _wrap_Assignment_SetUnperformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual ~SwigDirector_BaseObject()
swig_converter_func converter
SWIGINTERN PyObject * _wrap_IntVarElement_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual bool MakeNextNeighbor(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
SWIGINTERN PyObject * _wrap_IntVarIterator_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__VarLocalSearchOperatorT_operations_research__IntVar_long_operations_research__IntVarLocalSearchHandler_t
SWIGINTERN PyObject * _wrap_Solver_Min__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual bool swig_get_inner(const char *) const
SWIGINTERN PyObject * _wrap_Solver_RandomConcatenateOperators__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
Constraint * MakeNonEquality(IntExpr *const left, IntExpr *const right)
left != right
SWIGINTERN PyObject * _wrap_IntervalVar_WhenPerformedBound(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarContainer_Store(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_SetAmortizedCostFactorsOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Subclass of Rev<T> which adds numerical operations.
SWIGINTERN PyObject * _wrap_RoutingModel_AddDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__BooleanVar
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAfterStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Activate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Move is accepted when the current objective value is in the interval objective.Min .
static void * _p_operations_research__ModelVisitorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_type_info _swigt__p_char
SWIGINTERN PyObject * RoutingIndexManager_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SearchLog__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
IntExpr * MakeModulo(IntExpr *const x, int64_t mod)
Modulo expression x % mod (with the python convention for modulo).
virtual bool HoldsDelta() const
SWIGINTERN PyObject * _wrap_RoutingModel_DebugOutputAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_DIRECTOR_RGTR(ARG1, ARG2)
SWIGINTERN PyObject * _wrap_RoutingModel_GetMutableGlobalCumulOptimizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVarLocalSearchOperatorTemplate_OnStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SearchMonitor_AfterDecision(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__AssignmentTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
static void * _p_operations_research__SymmetryBreakerTo_p_operations_research__DecisionVisitor(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingModel_AddConstantDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_AssignmentElement_Activated(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_std__functionT_long_flongF_t[]
SWIGINTERN PyObject * _wrap_RoutingModel_GetMutableGlobalCumulMPOptimizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StaysInSyncWithDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
DirectorTypeMismatchException(const char *msg="")
SWIGINTERN PyObject * _wrap_new_IntVarLocalSearchFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Specialization of LocalSearchOperator built from an array of IntVars which specifies the scope of the...
SWIGINTERN PyObject * _wrap_Solver_NestedOptimize__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_RoutesToAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_NotMemberCt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_ErrorType(code)
SWIGINTERN PyObject * _wrap_BooleanVar_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void AcceptNeighbor()
After accepting a neighbor during local search.
IntExpr * MakeOpposite(IntExpr *const expr)
-expr
SWIGINTERN PyObject * _wrap_RoutingModel_ApplyLocksToAllVehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_Demon(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_TransitCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_exception_fail(code, msg)
virtual ~SwigDirector_ChangeValue()
static swig_const_info swig_const_table[]
SWIGINTERN PyObject * _wrap_Solver_EvalEvalStrPhase(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_vehicles(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IntervalVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_GetRequiredTypeAlternativesWhenRemovingType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_EndValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_NumericalRevInteger_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_RestartSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_ObjectiveMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
t1 starts after t2 start, i.e. Start(t1) >= Start(t2) + delay.
SWIGINTERN PyObject * _wrap_Solver_ScalProdEquality__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
int swig_release_ownership(void *vptr) const
SWIGINTERN PyObject * _wrap_IntervalVarElement_PerformedMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__BooleanVar
SWIGINTERN PyObject * _wrap_SequenceVarElement_SetBackwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void InitFragments()
static swig_type_info _swigt__p_operations_research__IntVarIterator
static swig_cast_info _swigc__p_operations_research__DecisionVisitor[]
SWIGINTERN PyObject * _wrap_Pack_AddWeightedSumEqualVarDimension(PyObject *self, PyObject *args)
PyObject * FromObjectLocalSearchOperator(operations_research::LocalSearchOperator *obj)
SWIGINTERN PyObject * _wrap_new_RoutingIndexManager(PyObject *self, PyObject *args)
static swig_type_info _swigt__p_long
SWIGINTERN PyObject * _wrap_LocalSearchFilter_Accept(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_OldEndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__SearchMonitor
SWIGINTERN PyObject * _wrap_Solver_Compose(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__SearchMonitor
SWIGINTERN PyObject * _wrap_Solver_TemporalDisjunction(PyObject *self, PyObject *args)
SWIGINTERN operations_research::IntExpr * operations_research_IntExpr___abs__(operations_research::IntExpr *self)
SWIGINTERN PyObject * _wrap_BooleanVar_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_NumericalRevInteger_Decr(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___floordiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntVar_OldMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__RevT_bool_t[]
Base class of all search limits.
RoutingVehicleClassIndex VehicleClassIndex
SWIGINTERN PyObject * _wrap_SearchMonitor_RestartSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_GlobalVehicleBreaksConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_CompactAndCheckAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr___gt____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__RoutingIndexManager[]
Split the domain in two around the center, and choose the lower part first.
SWIGINTERN PyObject * _wrap_Assignment_Load(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_TreeNoCycle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsGreaterOrEqualCstVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BaseLns_FragmentSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual bool LocalOptimum()
When a local optimum is reached.
#define SWIG_POINTER_EXCEPTION
SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata)
SWIGINTERN PyObject * _wrap_IntExpr_WhenRange(PyObject *self, PyObject *args)
#define SWIG_TypeQuery(name)
SWIGRUNTIME PyTypeObject * SwigPyObject_type(void)
#define SWIGTYPE_p_operations_research__LocalSearchPhaseParameters
#define SWIG_SetModule(clientdata, pointer)
static swig_cast_info _swigc__p_std__vectorT_operations_research__LocalSearchFilterManager__FilterEvent_t[]
SWIGINTERN PyObject * _wrap_Solver_Distribute__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__IntTupleSet
SWIGINTERN PyObject * _wrap_Solver_StoreAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddRequiredTypeAlternativesWhenAddingType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__BooleanVarTo_p_operations_research__IntExpr(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIGTYPE_p_operations_research__SequenceVar
static swig_type_info _swigt__p_operations_research__SearchLog
SWIGINTERN PyObject * _wrap_disown_IntVarLocalSearchOperator(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_new_PropagationBaseObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Store(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_IsVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntExpr_WhenRange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Assignment__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN std::string operations_research_IntExpr___str__(operations_research::IntExpr *self)
static swig_type_info _swigt__p_operations_research__Assignment
static swig_type_info _swigt__p_DisjunctionIndex
SWIGINTERN PyObject * _wrap_Solver_SearchLeftDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FalseConstraint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void Commit(const Assignment *delta, const Assignment *deltadelta)
Dual of Relax(), lets the filter know that the delta was accepted.
SWIGINTERN PyObject * _wrap_Assignment_EndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingModel_AddDisjunction(PyObject *self, PyObject *args)
SWIGINTERN PyObject * IntVarElement_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN void SWIG_Python_addvarlink(PyObject *p, const char *name, PyObject *(*get_attr)(void), int(*set_attr)(PyObject *p))
static void * _p_operations_research__LocalSearchOperatorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SwigDirector_IntVarLocalSearchOperator()
SWIGINTERN PyObject * _wrap_RoutingModel_PreAssignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__IntVarIteratorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_Assignment_SetPerformedRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_EndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Split the domain in two around the center, and choose the lower part first.
SWIGINTERN PyObject * _wrap_Solver_MemberCt(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Demon_Inhibit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_cast_info _swigc__p_operations_research__DisjunctiveConstraint[]
static void * _p_operations_research__SequenceVarLocalSearchOperatorTo_p_operations_research__BaseObject(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_IntVarElement___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenDurationBound(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_GuidedLocalSearch__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_OldStartMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVarContainer_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual ~SwigDirector_DecisionBuilder()
SWIGINTERN PyObject * _wrap_RoutingModel_Solve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_StartsAfterStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IsMemberCt(PyObject *self, PyObject *args)
Local Search Filters are used for fast neighbor pruning.
#define SWIGTYPE_p_operations_research__SearchLimit
SWIGINTERN PyObject * BaseObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_Activate(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Constraint___le__(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_LexicalLess(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
Operator which relaxes two sub-chains of three consecutive arcs each.
#define SWIGTYPE_p_std__vectorT_std__vectorT_long_t_t
SWIGINTERN int swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p)
SWIGINTERN PyObject * _wrap_Pack_AddWeightedSumLessOrEqualConstantDimension__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_ElementEquality(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_SlackVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * IntervalVar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__IntervalVar
static swig_cast_info _swigc__p_operations_research__SequenceVarElement[]
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_heuristic_period_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IndexExpression(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Assignment_MutableSequenceVarContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_IntVar(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVar_WhenEndBound__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
DELAYED_PRIORITY is the lowest priority: Demons will be processed after VAR_PRIORITY and NORMAL_PRIOR...
SWIGINTERN PyObject * _wrap_Solver_LocalSearchPhaseParameters__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERNINLINE PyObject * SWIG_From_unsigned_SS_long(unsigned long value)
IntExpr * MakeSum(IntExpr *const left, IntExpr *const right)
left + right.
#define SWIG_Python_CallFunctor(functor, obj)
SWIGINTERN PyObject * _wrap_SolutionCollector_EndValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void InitFragments()
SWIGINTERN PyObject * _wrap_RoutingModel_GetDimensionOrDie(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RevBool_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_delete_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Limit__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsBefore(operations_research::IntervalVar *self, int64_t date)
SwigDirector_IntVarLocalSearchFilter(std::vector< operations_research::IntVar * > const &vars)
void set_fail_intercept(std::function< void()> fail_intercept)
Internal.
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SequenceVar___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SolveDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_Operator(PyObject *self, PyObject *args)
virtual void Refute(operations_research::Solver *const s)
Refute will be called after a backtrack.
SWIGINTERN PyObject * _wrap_new_RevInteger(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
The default behavior is CHOOSE_FIRST_UNBOUND.
static swig_cast_info _swigc__p_std__vectorT_std__vectorT_long_t_t[]
SWIGINTERN PyObject * _wrap_RoutingModel_GetDeliveryIndexPairs(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
bool CanConvertToIntVar(PyObject *py_obj)
SWIGINTERN PyObject * _wrap_Assignment_SetForwardSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_SolutionCollector_ObjectiveValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
t starts after d, i.e. Start(t) >= d.
SWIGINTERN PyObject * _wrap_Assignment_SetStartMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_AllowedAssignments(PyObject *self, PyObject *args)
SWIGINTERN PyObject * IntExpr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void EndInitialPropagation()
After the initial propagation.
static swig_cast_info _swigc__p_operations_research__AssignmentElement[]
SWIGINTERN operations_research::Constraint * operations_research_Constraint___le____SWIG_0(operations_research::Constraint *self, int64_t v)
Operator which inserts an inactive node into a path.
SWIGINTERN PyObject * _wrap_IntervalVar_WhenStartRange__SWIG_0(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_Assignment_NumIntVars(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__RoutingModelVisitor
SWIGINTERN PyObject * _wrap_Constraint___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
struct swig_type_info swig_type_info
PyObject * FromObjectLocalSearchFilter(operations_research::LocalSearchFilter *obj)
SWIGINTERN PyObject * _wrap_Solver_SearchLog__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * IntVarLocalSearchFilter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FailDecision(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_IntExpr___lt____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static PyObject * Swig_This_global
SWIGINTERN operations_research::Constraint * operations_research_IntervalVar_StartsAtEndWithDelay(operations_research::IntervalVar *self, operations_research::IntervalVar *other, int64_t delay)
SWIGINTERN PyObject * _wrap_IntervalVar_EndsAfterEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual std::string DebugString() const
SWIGINTERN PyObject * _wrap_Solver_IsMemberVar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_IntervalVarElement_EndMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
RoutingModelParameters DefaultRoutingModelParameters()
Any precedence is accepted.
bool CanConvertToSearchMonitor(PyObject *py_obj)
SWIGINTERN PyObject * _wrap_DefaultPhaseParameters_initialization_splits_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_Constraint___eq____SWIG_1(operations_research::Constraint *self, operations_research::IntExpr *other)
#define SWIGTYPE_p_RoutingDisjunctionIndex
SWIGINTERN PyObject * _wrap_RoutingDimension_SetCumulVarSoftUpperBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIG_Python_str_FromFormat
SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz)
SWIGINTERN PyObject * _wrap_SearchMonitor_EndInitialPropagation(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_Assignment_NumIntervalVars(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_disown_SearchMonitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * DisjunctiveConstraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
struct swig_const_info swig_const_info
SWIGINTERN PyObject * LocalSearchFilterManager_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SumLessOrEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void EndFail()
After completing the backtrack.
EvaluatorStrategy
This enum is used by Solver::MakePhase to specify how to select variables and values during the searc...
static swig_cast_info _swigc__p_CostClassIndex[]
SWIGINTERN PyObject * _wrap_RoutingModel_GetRequiredTypeAlternativesWhenAddingType(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual std::string DebugString() const
SWIGINTERN PyObject * _wrap_Solver_DefaultPhase(PyObject *self, PyObject *args)
SWIGRUNTIME void SWIG_Python_RaiseOrModifyTypeError(const char *message)
SWIGINTERN PyObject * _wrap_IntExpr___sub__(PyObject *self, PyObject *args)
static swig_cast_info _swigc__p_operations_research__AssignmentContainerT_operations_research__SequenceVar_operations_research__SequenceVarElement_t[]
SWIGINTERN PyObject * _wrap_RoutingModel_AddSoftSameVehicleConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_SumEquality__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN operations_research::Constraint * operations_research_IntExpr___gt____SWIG_0(operations_research::IntExpr *self, int64_t v)
SWIGINTERN PyObject * _wrap_Solver_WeightedMaximize(PyObject *self, PyObject *args)
virtual std::string DebugString() const
SWIGINTERN PyObject * _wrap_Solver_AssignVariableValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_OptimizeVar_EnterSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
virtual void Reset()
Sets the filter to empty solution.
SWIGINTERN PyObject * GlobalVehicleBreaksConstraint_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__Solver__SearchLogParameters
SWIGINTERN PyObject * _wrap_IntervalVarElement_SetDurationRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
This struct holds all parameters for the default search.
SWIGINTERN PyObject * SequenceVar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FalseConstraint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
This class is the root class of all solution collectors.
#define SWIGTYPE_p_operations_research__LocalSearchOperator
#define SWIGTYPE_p_RoutingDimensionIndex
virtual ~SwigDirector_Demon()
SWIGINTERN PyObject * RevInteger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
#define SWIGTYPE_p_operations_research__Pack
SWIGINTERN PyObject * _wrap_Solver_Assignment__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static void * _p_operations_research__LocalSearchMonitorTo_p_operations_research__SearchMonitor(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN operations_research::IntExpr * operations_research_Constraint___add____SWIG_1(operations_research::Constraint *self, operations_research::Constraint *other)
SWIGINTERN PyObject * _wrap_Solver_ScalProd(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_RandomConcatenateOperators(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_LocalSearchFilterManager_DebugString(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
std::function< void()> Closure
static void * _p_operations_research__OptimizeVarTo_p_operations_research__SearchMonitor(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN PyObject * _wrap_RoutingModel_GetVehicleClassIndexOfVehicle(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_BaseObject___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
static swig_type_info _swigt__p_operations_research__PropagationMonitor
SwigPtr_PyObject(const SwigPtr_PyObject &item)
SWIGINTERN PyObject * _wrap_Solver_GuidedLocalSearch(PyObject *self, PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingIndexManager_GetEndIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_RoutingDimension_GetCumulVarSoftLowerBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args)
SWIGINTERN PyObject * _wrap_Solver_FalseConstraint(PyObject *self, PyObject *args)