DotNet Reference
.Net Reference
CpSatHelper.cs
Go to the documentation of this file.
25 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
44 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
50 string ret = operations_research_satPINVOKE.CpSatHelper_ModelStats(model_proto.CalculateSize(), ProtoHelper.ProtoToByteArray(model_proto));
55 string ret = operations_research_satPINVOKE.CpSatHelper_SolverResponseStats(response.CalculateSize(), ProtoHelper.ProtoToByteArray(response));
60 string ret = operations_research_satPINVOKE.CpSatHelper_ValidateModel(model_proto.CalculateSize(), ProtoHelper.ProtoToByteArray(model_proto));
65 Domain ret = new Domain(operations_research_satPINVOKE.CpSatHelper_VariableDomain(variable_proto.CalculateSize(), ProtoHelper.ProtoToByteArray(variable_proto)), true);
69 public static bool WriteModelToFile(Google.OrTools.Sat.CpModelProto model_proto, string filename) {
70 bool ret = operations_research_satPINVOKE.CpSatHelper_WriteModelToFile(model_proto.CalculateSize(), ProtoHelper.ProtoToByteArray(model_proto), filename);
71 if (operations_research_satPINVOKE.SWIGPendingException.Pending) throw operations_research_satPINVOKE.SWIGPendingException.Retrieve();
Definition: ProtoHelper.cs:21
static byte[] ProtoToByteArray(IMessage message)
Definition: ProtoHelper.cs:22
Definition: CpSatHelper.cs:15
static string ValidateModel(Google.OrTools.Sat.CpModelProto model_proto)
Definition: CpSatHelper.cs:59
virtual void Dispose(bool disposing)
Definition: CpSatHelper.cs:37
static string SolverResponseStats(Google.OrTools.Sat.CpSolverResponse response)
Definition: CpSatHelper.cs:54
static bool WriteModelToFile(Google.OrTools.Sat.CpModelProto model_proto, string filename)
Definition: CpSatHelper.cs:69
static Domain VariableDomain(Google.OrTools.Sat.IntegerVariableProto variable_proto)
Definition: CpSatHelper.cs:64
static string ModelStats(Google.OrTools.Sat.CpModelProto model_proto)
Definition: CpSatHelper.cs:49
The response returned by a solver trying to solve a CpModelProto.
Definition: CpModel.pb.cs:9383
Definition: operations_research_satPINVOKE.cs:127
static bool Pending
Definition: operations_research_satPINVOKE.cs:133
static global::System.Exception Retrieve()
Definition: operations_research_satPINVOKE.cs:152
static string CpSatHelper_ModelStats(int model_proto_size, byte[] jarg1)
static global::System.IntPtr CpSatHelper_VariableDomain(int variable_proto_size, byte[] jarg1)
static void delete_CpSatHelper(global::System.Runtime.InteropServices.HandleRef jarg1)
static string CpSatHelper_SolverResponseStats(int response_size, byte[] jarg1)
static bool CpSatHelper_WriteModelToFile(int model_proto_size, byte[] jarg1, string jarg2)
static string CpSatHelper_ValidateModel(int model_proto_size, byte[] jarg1)
Definition: util/Domain.cs:17
Definition: CpModel.pb.cs:12
Definition: util/Domain.cs:11
Definition: IntArrayHelper.cs:15
Definition: IntArrayHelper.cs:15