36 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"SWIGRegisterExceptionCallbacks_operations_research_sat")]
50 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"SWIGRegisterExceptionArgumentCallbacks_operations_research_sat")]
56 static void SetPendingApplicationException(
string message) {
59 static void SetPendingArithmeticException(
string message) {
62 static void SetPendingDivideByZeroException(
string message) {
63 SWIGPendingException.Set(
new global::System.DivideByZeroException(message, SWIGPendingException.Retrieve()));
65 static void SetPendingIndexOutOfRangeException(
string message) {
66 SWIGPendingException.Set(
new global::System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve()));
68 static void SetPendingInvalidCastException(
string message) {
69 SWIGPendingException.Set(
new global::System.InvalidCastException(message, SWIGPendingException.Retrieve()));
71 static void SetPendingInvalidOperationException(
string message) {
72 SWIGPendingException.Set(
new global::System.InvalidOperationException(message, SWIGPendingException.Retrieve()));
74 static void SetPendingIOException(
string message) {
75 SWIGPendingException.Set(
new global::System.IO.IOException(message, SWIGPendingException.Retrieve()));
77 static void SetPendingNullReferenceException(
string message) {
78 SWIGPendingException.Set(
new global::System.NullReferenceException(message, SWIGPendingException.Retrieve()));
80 static void SetPendingOutOfMemoryException(
string message) {
81 SWIGPendingException.Set(
new global::System.OutOfMemoryException(message, SWIGPendingException.Retrieve()));
83 static void SetPendingOverflowException(
string message) {
84 SWIGPendingException.Set(
new global::System.OverflowException(message, SWIGPendingException.Retrieve()));
86 static void SetPendingSystemException(
string message) {
87 SWIGPendingException.Set(
new global::System.SystemException(message, SWIGPendingException.Retrieve()));
90 static void SetPendingArgumentException(
string message,
string paramName) {
91 SWIGPendingException.Set(
new global::System.ArgumentException(message, paramName, SWIGPendingException.Retrieve()));
93 static void SetPendingArgumentNullException(
string message,
string paramName) {
94 global::System.Exception e = SWIGPendingException.Retrieve();
95 if (e !=
null) message = message +
" Inner Exception: " + e.Message;
96 SWIGPendingException.Set(
new global::System.ArgumentNullException(paramName, message));
98 static void SetPendingArgumentOutOfRangeException(
string message,
string paramName) {
99 global::System.Exception e = SWIGPendingException.Retrieve();
100 if (e !=
null) message = message +
" Inner Exception: " + e.Message;
101 SWIGPendingException.Set(
new global::System.ArgumentOutOfRangeException(paramName, message));
104 static SWIGExceptionHelper() {
108 divideByZeroDelegate,
109 indexOutOfRangeDelegate,
111 invalidOperationDelegate,
113 nullReferenceDelegate,
120 argumentNullDelegate,
121 argumentOutOfRangeDelegate);
128 [global::System.ThreadStatic]
129 private static global::System.Exception pendingException =
null;
130 private static int numExceptionsPending = 0;
131 private static global::System.Object exceptionsLock =
null;
135 bool pending =
false;
136 if (numExceptionsPending > 0)
137 if (pendingException !=
null)
143 public static void Set(global::System.Exception e) {
144 if (pendingException !=
null)
145 throw new global::System.ApplicationException(
"FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() +
")", e);
146 pendingException = e;
147 lock(exceptionsLock) {
148 numExceptionsPending++;
152 public static global::System.Exception
Retrieve() {
153 global::System.Exception e =
null;
154 if (numExceptionsPending > 0) {
155 if (pendingException !=
null) {
156 e = pendingException;
157 pendingException =
null;
158 lock(exceptionsLock) {
159 numExceptionsPending--;
166 static SWIGPendingException() {
167 exceptionsLock =
new global::System.Object();
172 protected class SWIGStringHelper {
177 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"SWIGRegisterStringCallback_operations_research_sat")]
180 static string CreateString(
string cString) {
189 static protected SWIGStringHelper
swigStringHelper =
new SWIGStringHelper();
196 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_delete_SolutionCallback___")]
199 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolutionCallback_OnSolutionCallback___")]
202 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolutionCallback_NumBooleans___")]
205 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolutionCallback_NumBranches___")]
208 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolutionCallback_NumConflicts___")]
211 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolutionCallback_NumBinaryPropagations___")]
214 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolutionCallback_NumIntegerPropagations___")]
217 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolutionCallback_WallTime___")]
220 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolutionCallback_UserTime___")]
223 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolutionCallback_ObjectiveValue___")]
226 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolutionCallback_BestObjectiveBound___")]
229 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolutionCallback_SolutionIntegerValue___")]
232 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolutionCallback_SolutionBooleanValue___")]
235 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolutionCallback_StopSearch___")]
238 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolutionCallback_Response___")]
241 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_new_SolutionCallback___")]
244 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolutionCallback_director_connect___")]
247 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_delete_LogCallback___")]
248 public static extern void delete_LogCallback(global::System.Runtime.InteropServices.HandleRef jarg1);
250 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_LogCallback_NewMessage___")]
251 public static extern void LogCallback_NewMessage(global::System.Runtime.InteropServices.HandleRef jarg1,
string jarg2);
253 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_new_LogCallback___")]
256 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_LogCallback_director_connect___")]
259 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_delete_BestBoundCallback___")]
262 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_BestBoundCallback_NewBestBound___")]
265 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_new_BestBoundCallback___")]
268 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_BestBoundCallback_director_connect___")]
271 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolveWrapper_SetStringParameters___")]
274 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolveWrapper_AddSolutionCallback___")]
275 public static extern void SolveWrapper_AddSolutionCallback(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
277 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolveWrapper_ClearSolutionCallback___")]
278 public static extern void SolveWrapper_ClearSolutionCallback(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
280 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolveWrapper_AddLogCallbackFromClass___")]
283 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolveWrapper_AddBestBoundCallbackFromClass___")]
286 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolveWrapper_Solve___")]
287 public static extern System.IntPtr
SolveWrapper_Solve(global::System.Runtime.InteropServices.HandleRef jarg1,
int model_proto_size,
byte[] jarg2);
289 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_SolveWrapper_StopSearch___")]
292 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_new_SolveWrapper___")]
295 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_delete_SolveWrapper___")]
296 public static extern void delete_SolveWrapper(global::System.Runtime.InteropServices.HandleRef jarg1);
298 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_CpSatHelper_ModelStats___")]
301 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_CpSatHelper_SolverResponseStats___")]
304 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_CpSatHelper_ValidateModel___")]
307 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_CpSatHelper_VariableDomain___")]
310 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_CpSatHelper_WriteModelToFile___")]
313 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_new_CpSatHelper___")]
316 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfSat_delete_CpSatHelper___")]
317 public static extern void delete_CpSatHelper(global::System.Runtime.InteropServices.HandleRef jarg1);