9package com.google.ortools.sat;
11import com.google.ortools.util.Domain;
14 private transient long swigCPtr;
23 return (obj ==
null) ? 0 : obj.swigCPtr;
30 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
32 obj.swigCMemOwn =
false;
38 @SuppressWarnings({
"deprecation",
"removal"})
47 mainJNI.delete_CpSatHelper(swigCPtr);
53 public static String
modelStats(com.google.ortools.sat.CpModelProto model_proto) {
54 return mainJNI.CpSatHelper_modelStats(model_proto.toByteArray());
58 return mainJNI.CpSatHelper_solverResponseStats(response.toByteArray());
61 public static String
validateModel(com.google.ortools.sat.CpModelProto model_proto) {
62 return mainJNI.CpSatHelper_validateModel(model_proto.toByteArray());
66 return new Domain(mainJNI.CpSatHelper_variableDomain(variable_proto.toByteArray()),
true);
69 public static boolean writeModelToFile(com.google.ortools.sat.CpModelProto model_proto, String filename) {
70 return mainJNI.CpSatHelper_writeModelToFile(model_proto.toByteArray(), filename);
74 this(mainJNI.new_CpSatHelper(),
true);