DotNet Reference
.Net Reference
SatHelper.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);
49 public static Google.OrTools.Sat.CpSolverResponse Solve(Google.OrTools.Sat.CpModelProto model_proto) {
51 System.IntPtr data = operations_research_satPINVOKE.SatHelper_Solve(model_proto.CalculateSize(), ProtoHelper.ProtoToByteArray(model_proto));
69 public static Google.OrTools.Sat.CpSolverResponse SolveWithStringParameters(Google.OrTools.Sat.CpModelProto model_proto, string parameters) {
71 System.IntPtr data = operations_research_satPINVOKE.SatHelper_SolveWithStringParameters(model_proto.CalculateSize(), ProtoHelper.ProtoToByteArray(model_proto), parameters);
89 public static Google.OrTools.Sat.CpSolverResponse SolveWithStringParametersAndSolutionCallback(Google.OrTools.Sat.CpModelProto model_proto, string parameters, SolutionCallback callback) {
91 System.IntPtr data = operations_research_satPINVOKE.SatHelper_SolveWithStringParametersAndSolutionCallback(model_proto.CalculateSize(), ProtoHelper.ProtoToByteArray(model_proto), parameters, SolutionCallback.getCPtr(callback));
110 string ret = operations_research_satPINVOKE.SatHelper_ModelStats(model_proto.CalculateSize(), ProtoHelper.ProtoToByteArray(model_proto));
115 string ret = operations_research_satPINVOKE.SatHelper_SolverResponseStats(response.CalculateSize(), ProtoHelper.ProtoToByteArray(response));
120 string ret = operations_research_satPINVOKE.SatHelper_ValidateModel(model_proto.CalculateSize(), ProtoHelper.ProtoToByteArray(model_proto));
125 Domain ret = new Domain(operations_research_satPINVOKE.SatHelper_VariableDomain(variable_proto.CalculateSize(), ProtoHelper.ProtoToByteArray(variable_proto)), true);
129 public static bool WriteModelToFile(Google.OrTools.Sat.CpModelProto model_proto, string filename) {
130 bool ret = operations_research_satPINVOKE.SatHelper_WriteModelToFile(model_proto.CalculateSize(), ProtoHelper.ProtoToByteArray(model_proto), filename);
static global::System.Exception Retrieve()
Definition: operations_research_satPINVOKE.cs:152
The response returned by a solver trying to solve a CpModelProto.
Definition: CpModel.pb.cs:7464
Definition: Domain.cs:17
static bool Pending
Definition: operations_research_satPINVOKE.cs:133
static Google.OrTools.Sat.CpSolverResponse SolveWithStringParametersAndSolutionCallback(Google.OrTools.Sat.CpModelProto model_proto, string parameters, SolutionCallback callback)
Definition: SatHelper.cs:89
static void delete_SatHelper(global::System.Runtime.InteropServices.HandleRef jarg1)
static byte[] ProtoToByteArray(IMessage message)
Definition: ProtoHelper.cs:22
static System.IntPtr SatHelper_SolveWithStringParameters(int model_proto_size, byte[] jarg1, string jarg2)
Definition: SatHelper.cs:15
static System.IntPtr SatHelper_Solve(int model_proto_size, byte[] jarg1)
static string ValidateModel(Google.OrTools.Sat.CpModelProto model_proto)
Definition: SatHelper.cs:119
static System.IntPtr SatHelper_SolveWithStringParametersAndSolutionCallback(int model_proto_size, byte[] jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
Definition: IntArrayHelper.cs:15
static Google.OrTools.Sat.CpSolverResponse SolveWithStringParameters(Google.OrTools.Sat.CpModelProto model_proto, string parameters)
Definition: SatHelper.cs:69
static global::System.IntPtr SatHelper_VariableDomain(int variable_proto_size, byte[] jarg1)
static Google.OrTools.Sat.CpSolverResponse Solve(Google.OrTools.Sat.CpModelProto model_proto)
Definition: SatHelper.cs:49
Definition: operations_research_satPINVOKE.cs:127
static string SatHelper_ValidateModel(int model_proto_size, byte[] jarg1)
void MergeFrom(CpSolverResponse other)
Definition: CpModel.pb.cs:8110
static string ModelStats(Google.OrTools.Sat.CpModelProto model_proto)
Definition: SatHelper.cs:109
Definition: IntArrayHelper.cs:15
static string SatHelper_ModelStats(int model_proto_size, byte[] jarg1)
static Domain VariableDomain(Google.OrTools.Sat.IntegerVariableProto variable_proto)
Definition: SatHelper.cs:124
Definition: Domain.cs:11
Definition: ProtoHelper.cs:21
static string SatHelper_SolverResponseStats(int response_size, byte[] jarg1)
static bool WriteModelToFile(Google.OrTools.Sat.CpModelProto model_proto, string filename)
Definition: SatHelper.cs:129
static string SolverResponseStats(Google.OrTools.Sat.CpSolverResponse response)
Definition: SatHelper.cs:114
static bool SatHelper_WriteModelToFile(int model_proto_size, byte[] jarg1, string jarg2)
Definition: CpModel.pb.cs:12