9package com.google.ortools.constraintsolver;
11import com.google.ortools.constraintsolver.ConstraintSolverParameters;
12import com.google.ortools.constraintsolver.RegularLimitParameters;
16import java.util.function.Supplier;
19import java.util.function.BooleanSupplier;
23import java.util.function.LongUnaryOperator;
26import java.util.function.LongBinaryOperator;
29import com.google.ortools.constraintsolver.LongTernaryOperator;
32import com.google.ortools.constraintsolver.IntIntToLongFunction;
36import java.util.function.LongPredicate;
40import com.google.ortools.constraintsolver.LongTernaryPredicate;
44import java.util.function.Consumer;
48import java.util.function.LongConsumer;
52import java.lang.Runnable;
55import java.util.HashSet;
77 private transient long swigCPtr;
80 protected Solver(
long cPtr,
boolean cMemoryOwn) {
86 return (obj ==
null) ? 0 : obj.swigCPtr;
93 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
95 obj.swigCMemOwn =
false;
101 @SuppressWarnings({
"deprecation",
"removal"})
110 mainJNI.delete_Solver(swigCPtr);
132 for (
int i = 0; i < count; ++i) {
140 for (
int i = 0; i < count; ++i) {
141 String var_name = name + i;
149 for (
int i = 0; i < count; ++i) {
157 for (
int i = 0; i < count; ++i) {
158 String var_name = name + i;
170 for (
int i = 0; i < count; ++i) {
187 for (
int i = 0; i < count; ++i) {
199 private HashSet<DecisionBuilder> keepAliveDecisionBuilders;
201 if (keepAliveDecisionBuilders ==
null) {
202 keepAliveDecisionBuilders =
new HashSet<DecisionBuilder>();
204 keepAliveDecisionBuilders.add(db);
219 private transient long swigCPtr;
228 return (obj ==
null) ? 0 : obj.swigCPtr;
235 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
237 obj.swigCMemOwn =
false;
243 @SuppressWarnings({
"deprecation",
"removal"})
252 mainJNI.delete_Solver_IntegerCastInfo(swigCPtr);
259 this(mainJNI.new_Solver_IntegerCastInfo__SWIG_0(),
true);
267 mainJNI.Solver_IntegerCastInfo_variable_set(swigCPtr,
this,
IntVar.
getCPtr(value), value);
271 long cPtr = mainJNI.Solver_IntegerCastInfo_variable_get(swigCPtr,
this);
272 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
276 mainJNI.Solver_IntegerCastInfo_expression_set(swigCPtr,
this,
IntExpr.
getCPtr(value), value);
280 long cPtr = mainJNI.Solver_IntegerCastInfo_expression_get(swigCPtr,
this);
281 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
285 mainJNI.Solver_IntegerCastInfo_maintainer_set(swigCPtr,
this,
Constraint.
getCPtr(value), value);
289 long cPtr = mainJNI.Solver_IntegerCastInfo_maintainer_get(swigCPtr,
this);
290 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
299 this(mainJNI.new_Solver__SWIG_0(name),
true);
302 public Solver(String name, com.google.ortools.constraintsolver.ConstraintSolverParameters
parameters) {
303 this(mainJNI.new_Solver__SWIG_1(name,
parameters.toByteArray()),
true);
310 byte[] buf = mainJNI.Solver_parameters(swigCPtr,
this);
311 if (buf ==
null || buf.length == 0) {
315 return com.google.ortools.constraintsolver.ConstraintSolverParameters.parseFrom(buf);
316 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
317 throw new RuntimeException(
318 "Unable to parse com.google.ortools.constraintsolver.ConstraintSolverParameters protocol message.");
323 return new SWIGTYPE_p_operations_research__ConstraintSolverParameters(mainJNI.Solver_const_parameters(swigCPtr,
this),
false);
330 byte[] buf = mainJNI.Solver_defaultSolverParameters();
331 if (buf ==
null || buf.length == 0) {
335 return com.google.ortools.constraintsolver.ConstraintSolverParameters.parseFrom(buf);
336 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
337 throw new RuntimeException(
338 "Unable to parse com.google.ortools.constraintsolver.ConstraintSolverParameters protocol message.");
475 return mainJNI.Solver_solve__SWIG_5(swigCPtr,
this,
DecisionBuilder.
getCPtr(db), db,
SearchMonitor.
getCPtr(m1), m1,
SearchMonitor.
getCPtr(m2), m2,
SearchMonitor.
getCPtr(m3), m3,
SearchMonitor.
getCPtr(m4), m4);
534 mainJNI.Solver_newSearch__SWIG_5(swigCPtr,
this,
DecisionBuilder.
getCPtr(db), db,
SearchMonitor.
getCPtr(m1), m1,
SearchMonitor.
getCPtr(m2), m2,
SearchMonitor.
getCPtr(m3), m3,
SearchMonitor.
getCPtr(m4), m4);
541 return mainJNI.Solver_nextSolution(swigCPtr,
this);
545 mainJNI.Solver_restartSearch(swigCPtr,
this);
549 mainJNI.Solver_endSearch(swigCPtr,
this);
607 return mainJNI.Solver_checkAssignment(swigCPtr,
this,
Assignment.
getCPtr(solution), solution);
616 return mainJNI.Solver_checkConstraint(swigCPtr,
this,
Constraint.
getCPtr(ct), ct);
623 return mainJNI.Solver_state(swigCPtr,
this);
630 mainJNI.Solver_fail(swigCPtr,
this);
637 return mainJNI.Solver_toString(swigCPtr,
this);
644 return mainJNI.Solver_memoryUsage();
652 return mainJNI.Solver_wallTime(swigCPtr,
this);
659 return mainJNI.Solver_branches(swigCPtr,
this);
666 return mainJNI.Solver_solutions(swigCPtr,
this);
673 return mainJNI.Solver_unchecked_solutions(swigCPtr,
this);
680 return mainJNI.Solver_demon_runs(swigCPtr,
this, p);
687 return mainJNI.Solver_failures(swigCPtr,
this);
694 return mainJNI.Solver_neighbors(swigCPtr,
this);
702 mainJNI.Solver_ClearNeighbors(swigCPtr,
this);
706 mainJNI.Solver_IncrementNeighbors(swigCPtr,
this);
713 return mainJNI.Solver_filteredNeighbors(swigCPtr,
this);
720 return mainJNI.Solver_acceptedNeighbors(swigCPtr,
this);
728 return mainJNI.Solver_stamp(swigCPtr,
this);
735 return mainJNI.Solver_fail_stamp(swigCPtr,
this);
742 mainJNI.Solver_set_context(swigCPtr,
this,
context);
749 return mainJNI.Solver_context(swigCPtr,
this);
756 return mainJNI.Solver_optimization_direction(swigCPtr,
this);
760 mainJNI.Solver_set_optimization_direction(swigCPtr,
this, direction);
767 long cPtr = mainJNI.Solver_makeIntVar__SWIG_0(swigCPtr,
this, min, max, name);
768 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
775 long cPtr = mainJNI.Solver_makeIntVar__SWIG_1(swigCPtr,
this, values, name);
776 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
783 long cPtr = mainJNI.Solver_makeIntVar__SWIG_2(swigCPtr,
this, values, name);
784 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
791 long cPtr = mainJNI.Solver_makeIntVar__SWIG_3(swigCPtr,
this, min, max);
792 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
799 long cPtr = mainJNI.Solver_makeIntVar__SWIG_4(swigCPtr,
this, values);
800 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
807 long cPtr = mainJNI.Solver_makeIntVar__SWIG_5(swigCPtr,
this, values);
808 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
815 long cPtr = mainJNI.Solver_makeBoolVar__SWIG_0(swigCPtr,
this, name);
816 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
823 long cPtr = mainJNI.Solver_makeBoolVar__SWIG_1(swigCPtr,
this);
824 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
831 long cPtr = mainJNI.Solver_makeIntConst__SWIG_0(swigCPtr,
this, val, name);
832 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
839 long cPtr = mainJNI.Solver_makeIntConst__SWIG_1(swigCPtr,
this, val);
840 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
848 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
855 long cPtr = mainJNI.Solver_makeSum__SWIG_1(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
856 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
863 long cPtr = mainJNI.Solver_makeSum__SWIG_2(swigCPtr,
this, vars);
864 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
871 long cPtr = mainJNI.Solver_makeScalProd__SWIG_0(swigCPtr,
this, vars, coefs);
872 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
879 long cPtr = mainJNI.Solver_makeScalProd__SWIG_1(swigCPtr,
this, vars, coefs);
880 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
888 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
895 long cPtr = mainJNI.Solver_makeDifference__SWIG_1(swigCPtr,
this, value,
IntExpr.
getCPtr(expr), expr);
896 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
903 long cPtr = mainJNI.Solver_makeOpposite(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr);
904 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
912 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
919 long cPtr = mainJNI.Solver_makeProd__SWIG_1(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
920 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
927 long cPtr = mainJNI.Solver_makeDiv__SWIG_0(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
928 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
935 long cPtr = mainJNI.Solver_makeDiv__SWIG_1(swigCPtr,
this,
IntExpr.
getCPtr(numerator), numerator,
IntExpr.
getCPtr(denominator), denominator);
936 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
943 long cPtr = mainJNI.Solver_makeAbs(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr);
944 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
951 long cPtr = mainJNI.Solver_makeSquare(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr);
952 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
959 long cPtr = mainJNI.Solver_makePower(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, n);
960 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
967 long cPtr = mainJNI.Solver_makeElement__SWIG_0(swigCPtr,
this, values,
IntVar.
getCPtr(index), index);
968 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
975 long cPtr = mainJNI.Solver_makeElement__SWIG_1(swigCPtr,
this, values,
IntVar.
getCPtr(index), index);
976 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
985 long cPtr = mainJNI.Solver_makeElement__SWIG_2(swigCPtr,
this, values,
IntVar.
getCPtr(index), index);
986 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
998 long cPtr = mainJNI.Solver_makeMonotonicElement(swigCPtr,
this, values, increasing,
IntVar.
getCPtr(index), index);
999 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
1006 long cPtr = mainJNI.Solver_makeElement__SWIG_3(swigCPtr,
this, values,
IntVar.
getCPtr(index1), index1,
IntVar.
getCPtr(index2), index2);
1007 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
1014 long cPtr = mainJNI.Solver_makeElement__SWIG_4(swigCPtr,
this, vars,
IntVar.
getCPtr(index), index);
1015 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
1023 long cPtr = mainJNI.Solver_makeIndexExpression(swigCPtr,
this, vars, value);
1024 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
1032 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1039 long cPtr = mainJNI.Solver_makeMin__SWIG_0(swigCPtr,
this, vars);
1040 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
1048 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
1055 long cPtr = mainJNI.Solver_makeMin__SWIG_2(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
1056 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
1063 long cPtr = mainJNI.Solver_makeMin__SWIG_3(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
1064 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
1071 long cPtr = mainJNI.Solver_makeMax__SWIG_0(swigCPtr,
this, vars);
1072 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
1080 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
1087 long cPtr = mainJNI.Solver_makeMax__SWIG_2(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
1088 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
1095 long cPtr = mainJNI.Solver_makeMax__SWIG_3(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
1096 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
1103 long cPtr = mainJNI.Solver_makeConvexPiecewiseExpr(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, early_cost, early_date, late_date, late_cost);
1104 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
1112 long cPtr = mainJNI.Solver_makeSemiContinuousExpr(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, fixed_charge, step);
1113 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
1123 long cPtr = mainJNI.Solver_makeModulo__SWIG_0(swigCPtr,
this,
IntExpr.
getCPtr(x), x, mod);
1124 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
1132 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
1139 long cPtr = mainJNI.Solver_makeConditionalExpression(swigCPtr,
this,
IntVar.
getCPtr(condition), condition,
IntExpr.
getCPtr(expr), expr, unperformed_value);
1140 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
1147 long cPtr = mainJNI.Solver_makeTrueConstraint(swigCPtr,
this);
1148 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1155 long cPtr = mainJNI.Solver_makeFalseConstraint__SWIG_0(swigCPtr,
this);
1156 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1160 long cPtr = mainJNI.Solver_makeFalseConstraint__SWIG_1(swigCPtr,
this, explanation);
1161 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1169 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1176 long cPtr = mainJNI.Solver_makeIsEqualCstVar(swigCPtr,
this,
IntExpr.
getCPtr(var), var, value);
1177 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
1185 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1193 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
1201 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1208 long cPtr = mainJNI.Solver_makeEquality__SWIG_1(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
1209 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1216 long cPtr = mainJNI.Solver_makeEquality__SWIG_2(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
1217 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1224 long cPtr = mainJNI.Solver_makeIsDifferentCstCt__SWIG_0(swigCPtr,
this,
IntExpr.
getCPtr(var), var, value,
IntVar.
getCPtr(boolvar), boolvar);
1225 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1232 long cPtr = mainJNI.Solver_makeIsDifferentCstVar__SWIG_0(swigCPtr,
this,
IntExpr.
getCPtr(var), var, value);
1233 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
1241 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
1249 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1257 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1264 long cPtr = mainJNI.Solver_makeNonEquality__SWIG_1(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
1265 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1272 long cPtr = mainJNI.Solver_makeNonEquality__SWIG_2(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
1273 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1280 long cPtr = mainJNI.Solver_makeIsLessOrEqualCstCt(swigCPtr,
this,
IntExpr.
getCPtr(var), var, value,
IntVar.
getCPtr(boolvar), boolvar);
1281 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1288 long cPtr = mainJNI.Solver_makeIsLessOrEqualCstVar(swigCPtr,
this,
IntExpr.
getCPtr(var), var, value);
1289 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
1297 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
1305 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1313 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1320 long cPtr = mainJNI.Solver_makeLessOrEqual__SWIG_1(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
1321 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1328 long cPtr = mainJNI.Solver_makeLessOrEqual__SWIG_2(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
1329 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1336 long cPtr = mainJNI.Solver_makeIsGreaterOrEqualCstCt(swigCPtr,
this,
IntExpr.
getCPtr(var), var, value,
IntVar.
getCPtr(boolvar), boolvar);
1337 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1344 long cPtr = mainJNI.Solver_makeIsGreaterOrEqualCstVar(swigCPtr,
this,
IntExpr.
getCPtr(var), var, value);
1345 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
1353 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
1361 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1369 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1376 long cPtr = mainJNI.Solver_makeGreaterOrEqual__SWIG_1(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
1377 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1384 long cPtr = mainJNI.Solver_makeGreaterOrEqual__SWIG_2(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
1385 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1393 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1400 long cPtr = mainJNI.Solver_makeIsGreaterCstVar(swigCPtr,
this,
IntExpr.
getCPtr(var), var, value);
1401 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
1409 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
1417 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1425 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1432 long cPtr = mainJNI.Solver_makeGreater__SWIG_1(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
1433 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1440 long cPtr = mainJNI.Solver_makeGreater__SWIG_2(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
1441 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1449 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1456 long cPtr = mainJNI.Solver_makeIsLessCstVar(swigCPtr,
this,
IntExpr.
getCPtr(var), var, value);
1457 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
1465 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
1473 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1481 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1488 long cPtr = mainJNI.Solver_makeLess__SWIG_1(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
1489 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1496 long cPtr = mainJNI.Solver_makeLess__SWIG_2(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, value);
1497 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1504 long cPtr = mainJNI.Solver_makeSumLessOrEqual(swigCPtr,
this, vars, cst);
1505 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1509 long cPtr = mainJNI.Solver_makeSumGreaterOrEqual(swigCPtr,
this, vars, cst);
1510 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1514 long cPtr = mainJNI.Solver_makeSumEquality__SWIG_0(swigCPtr,
this, vars, cst);
1515 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1519 long cPtr = mainJNI.Solver_makeSumEquality__SWIG_1(swigCPtr,
this, vars,
IntVar.
getCPtr(var), var);
1520 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1524 long cPtr = mainJNI.Solver_makeScalProdEquality__SWIG_0(swigCPtr,
this, vars, coefficients, cst);
1525 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1529 long cPtr = mainJNI.Solver_makeScalProdEquality__SWIG_1(swigCPtr,
this, vars, coefficients, cst);
1530 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1534 long cPtr = mainJNI.Solver_makeScalProdEquality__SWIG_2(swigCPtr,
this, vars, coefficients,
IntVar.
getCPtr(target), target);
1535 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1539 long cPtr = mainJNI.Solver_makeScalProdEquality__SWIG_3(swigCPtr,
this, vars, coefficients,
IntVar.
getCPtr(target), target);
1540 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1544 long cPtr = mainJNI.Solver_makeScalProdGreaterOrEqual__SWIG_0(swigCPtr,
this, vars, coeffs, cst);
1545 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1549 long cPtr = mainJNI.Solver_makeScalProdGreaterOrEqual__SWIG_1(swigCPtr,
this, vars, coeffs, cst);
1550 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1554 long cPtr = mainJNI.Solver_makeScalProdLessOrEqual__SWIG_0(swigCPtr,
this, vars, coefficients, cst);
1555 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1559 long cPtr = mainJNI.Solver_makeScalProdLessOrEqual__SWIG_1(swigCPtr,
this, vars, coefficients, cst);
1560 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1564 long cPtr = mainJNI.Solver_makeMinEquality(swigCPtr,
this, vars,
IntVar.
getCPtr(min_var), min_var);
1565 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1569 long cPtr = mainJNI.Solver_makeMaxEquality(swigCPtr,
this, vars,
IntVar.
getCPtr(max_var), max_var);
1570 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1574 long cPtr = mainJNI.Solver_makeElementEquality__SWIG_0(swigCPtr,
this, vals,
IntVar.
getCPtr(index), index,
IntVar.
getCPtr(target), target);
1575 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1579 long cPtr = mainJNI.Solver_makeElementEquality__SWIG_1(swigCPtr,
this, vals,
IntVar.
getCPtr(index), index,
IntVar.
getCPtr(target), target);
1580 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1584 long cPtr = mainJNI.Solver_makeElementEquality__SWIG_2(swigCPtr,
this, vars,
IntVar.
getCPtr(index), index,
IntVar.
getCPtr(target), target);
1585 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1589 long cPtr = mainJNI.Solver_makeElementEquality__SWIG_3(swigCPtr,
this, vars,
IntVar.
getCPtr(index), index, target);
1590 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1598 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1608 long cPtr = mainJNI.Solver_makeIndexOfConstraint(swigCPtr,
this, vars,
IntVar.
getCPtr(index), index, target);
1609 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1617 long cPtr = mainJNI.Solver_makeConstraintInitialPropagateCallback(swigCPtr,
this,
Constraint.
getCPtr(ct), ct);
1618 return (cPtr == 0) ? null :
new Demon(cPtr,
false);
1627 long cPtr = mainJNI.Solver_makeDelayedConstraintInitialPropagateCallback(swigCPtr,
this,
Constraint.
getCPtr(ct), ct);
1628 return (cPtr == 0) ? null :
new Demon(cPtr,
false);
1635 long cPtr = mainJNI.Solver_makeClosureDemon(swigCPtr,
this, closure);
1636 return (cPtr == 0) ? null :
new Demon(cPtr,
false);
1643 long cPtr = mainJNI.Solver_makeBetweenCt(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, l, u);
1644 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1654 long cPtr = mainJNI.Solver_makeNotBetweenCt(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, l, u);
1655 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1663 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1667 long cPtr = mainJNI.Solver_makeIsBetweenVar(swigCPtr,
this,
IntExpr.
getCPtr(v), v, l, u);
1668 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
1676 long cPtr = mainJNI.Solver_makeMemberCt__SWIG_0(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, values);
1677 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1681 long cPtr = mainJNI.Solver_makeMemberCt__SWIG_1(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, values);
1682 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1689 long cPtr = mainJNI.Solver_makeNotMemberCt__SWIG_0(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, values);
1690 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1694 long cPtr = mainJNI.Solver_makeNotMemberCt__SWIG_1(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, values);
1695 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1702 long cPtr = mainJNI.Solver_makeNotMemberCt__SWIG_2(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, starts, ends);
1703 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1710 long cPtr = mainJNI.Solver_makeNotMemberCt__SWIG_3(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, starts, ends);
1711 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1718 long cPtr = mainJNI.Solver_makeIsMemberCt__SWIG_0(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, values,
IntVar.
getCPtr(boolvar), boolvar);
1719 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1723 long cPtr = mainJNI.Solver_makeIsMemberCt__SWIG_1(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, values,
IntVar.
getCPtr(boolvar), boolvar);
1724 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1728 long cPtr = mainJNI.Solver_makeIsMemberVar__SWIG_0(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, values);
1729 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
1733 long cPtr = mainJNI.Solver_makeIsMemberVar__SWIG_1(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr, values);
1734 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
1741 long cPtr = mainJNI.Solver_makeCount__SWIG_0(swigCPtr,
this, vars, value, max_count);
1742 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1749 long cPtr = mainJNI.Solver_makeCount__SWIG_1(swigCPtr,
this, vars, value,
IntVar.
getCPtr(max_count), max_count);
1750 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1757 long cPtr = mainJNI.Solver_makeDistribute__SWIG_0(swigCPtr,
this, vars, values, cards);
1758 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1765 long cPtr = mainJNI.Solver_makeDistribute__SWIG_1(swigCPtr,
this, vars, values, cards);
1766 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1773 long cPtr = mainJNI.Solver_makeDistribute__SWIG_2(swigCPtr,
this, vars, cards);
1774 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1782 long cPtr = mainJNI.Solver_makeDistribute__SWIG_3(swigCPtr,
this, vars, card_min, card_max, card_size);
1783 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1792 long cPtr = mainJNI.Solver_makeDistribute__SWIG_4(swigCPtr,
this, vars, card_min, card_max);
1793 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1802 long cPtr = mainJNI.Solver_makeDistribute__SWIG_5(swigCPtr,
this, vars, card_min, card_max);
1803 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1812 long cPtr = mainJNI.Solver_makeDistribute__SWIG_6(swigCPtr,
this, vars, values, card_min, card_max);
1813 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1822 long cPtr = mainJNI.Solver_makeDistribute__SWIG_7(swigCPtr,
this, vars, values, card_min, card_max);
1823 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1833 long cPtr = mainJNI.Solver_makeDeviation(swigCPtr,
this, vars,
IntVar.
getCPtr(deviation_var), deviation_var, total_sum);
1834 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1842 long cPtr = mainJNI.Solver_makeAllDifferent__SWIG_0(swigCPtr,
this, vars);
1843 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1852 long cPtr = mainJNI.Solver_makeAllDifferent__SWIG_1(swigCPtr,
this, vars, stronger_propagation);
1853 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1861 long cPtr = mainJNI.Solver_makeAllDifferentExcept(swigCPtr,
this, vars, escape_value);
1862 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1883 long cPtr = mainJNI.Solver_makeSortingConstraint(swigCPtr,
this, vars, sorted);
1884 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1892 long cPtr = mainJNI.Solver_makeLexicalLess(swigCPtr,
this, left, right);
1893 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1901 long cPtr = mainJNI.Solver_makeLexicalLessOrEqual(swigCPtr,
this, left, right);
1902 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1912 long cPtr = mainJNI.Solver_MakeLexicalLessOrEqualWithOffsets(swigCPtr,
this, left, right, offsets);
1913 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1917 long cPtr = mainJNI.Solver_MakeIsLexicalLessOrEqualWithOffsetsCt(swigCPtr,
this, left, right, offsets,
IntVar.
getCPtr(boolvar), boolvar);
1918 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1928 long cPtr = mainJNI.Solver_makeInversePermutationConstraint(swigCPtr,
this, left, right);
1929 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1937 long cPtr = mainJNI.Solver_makeIndexOfFirstMaxValueConstraint(swigCPtr,
this,
IntVar.
getCPtr(index), index, vars);
1938 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1946 long cPtr = mainJNI.Solver_makeIndexOfFirstMinValueConstraint(swigCPtr,
this,
IntVar.
getCPtr(index), index, vars);
1947 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1957 long cPtr = mainJNI.Solver_makeNullIntersect(swigCPtr,
this, first_vars, second_vars);
1958 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1969 long cPtr = mainJNI.Solver_makeNullIntersectExcept(swigCPtr,
this, first_vars, second_vars, escape_value);
1970 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
1985 long cPtr = mainJNI.Solver_makeNoCycle__SWIG_0(swigCPtr,
this, nexts, active, sink_handler);
1986 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2001 long cPtr = mainJNI.Solver_makeNoCycle__SWIG_1(swigCPtr,
this, nexts, active);
2002 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2006 long cPtr = mainJNI.Solver_makeNoCycle__SWIG_2(swigCPtr,
this, nexts, active, sink_handler, assume_paths);
2007 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2014 long cPtr = mainJNI.Solver_makeCircuit(swigCPtr,
this, nexts);
2015 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2023 long cPtr = mainJNI.Solver_makeSubCircuit(swigCPtr,
this, nexts);
2024 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2034 long cPtr = mainJNI.Solver_makePathCumul__SWIG_0(swigCPtr,
this, nexts, active, cumuls, transits);
2035 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2043 long cPtr = mainJNI.Solver_makeDelayedPathCumul(swigCPtr,
this, nexts, active, cumuls, transits);
2044 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2056 long cPtr = mainJNI.Solver_makePathCumul__SWIG_1(swigCPtr,
this, nexts, active, cumuls, transit_evaluator);
2057 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2069 long cPtr = mainJNI.Solver_makePathCumul__SWIG_2(swigCPtr,
this, nexts, active, cumuls, slacks, transit_evaluator);
2070 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2079 long cPtr = mainJNI.Solver_makePathConnected(swigCPtr,
this, nexts, sources, sinks, status);
2080 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2089 long cPtr = mainJNI.Solver_makeMapDomain(swigCPtr,
this,
IntVar.
getCPtr(var), var, actives);
2090 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2100 long cPtr = mainJNI.Solver_makeAllowedAssignment(swigCPtr,
this, vars,
IntTupleSet.
getCPtr(tuples), tuples);
2101 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2114 long cPtr = mainJNI.Solver_makeTransitionConstraint__SWIG_0(swigCPtr,
this, vars,
IntTupleSet.
getCPtr(transition_table), transition_table, initial_state, final_states);
2115 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2128 long cPtr = mainJNI.Solver_makeTransitionConstraint__SWIG_1(swigCPtr,
this, vars,
IntTupleSet.
getCPtr(transition_table), transition_table, initial_state, final_states);
2129 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2143 long cPtr = mainJNI.Solver_makeNonOverlappingBoxesConstraint__SWIG_0(swigCPtr,
this, x_vars, y_vars, x_size, y_size);
2144 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2148 long cPtr = mainJNI.Solver_makeNonOverlappingBoxesConstraint__SWIG_1(swigCPtr,
this, x_vars, y_vars, SWIGTYPE_p_absl__SpanT_long_const_t.
getCPtr(x_size), SWIGTYPE_p_absl__SpanT_long_const_t.getCPtr(y_size));
2149 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2153 long cPtr = mainJNI.Solver_makeNonOverlappingBoxesConstraint__SWIG_2(swigCPtr,
this, x_vars, y_vars, SWIGTYPE_p_absl__SpanT_int_const_t.
getCPtr(x_size), SWIGTYPE_p_absl__SpanT_int_const_t.getCPtr(y_size));
2154 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2168 long cPtr = mainJNI.Solver_makeNonOverlappingNonStrictBoxesConstraint__SWIG_0(swigCPtr,
this, x_vars, y_vars, x_size, y_size);
2169 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2173 long cPtr = mainJNI.Solver_makeNonOverlappingNonStrictBoxesConstraint__SWIG_1(swigCPtr,
this, x_vars, y_vars, SWIGTYPE_p_absl__SpanT_long_const_t.
getCPtr(x_size), SWIGTYPE_p_absl__SpanT_long_const_t.getCPtr(y_size));
2174 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2178 long cPtr = mainJNI.Solver_makeNonOverlappingNonStrictBoxesConstraint__SWIG_2(swigCPtr,
this, x_vars, y_vars, SWIGTYPE_p_absl__SpanT_int_const_t.
getCPtr(x_size), SWIGTYPE_p_absl__SpanT_int_const_t.getCPtr(y_size));
2179 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2190 long cPtr = mainJNI.Solver_makePack(swigCPtr,
this, vars, number_of_bins);
2191 return (cPtr == 0) ? null :
new Pack(cPtr,
false);
2201 long cPtr = mainJNI.Solver_makeFixedDurationIntervalVar__SWIG_0(swigCPtr,
this, start_min, start_max, duration, optional, name);
2202 return (cPtr == 0) ? null :
new IntervalVar(cPtr,
false);
2210 long cPtr = mainJNI.Solver_makeFixedDurationIntervalVar__SWIG_1(swigCPtr,
this,
IntVar.
getCPtr(start_variable), start_variable, duration, name);
2211 return (cPtr == 0) ? null :
new IntervalVar(cPtr,
false);
2219 long cPtr = mainJNI.Solver_makeFixedDurationIntervalVar__SWIG_2(swigCPtr,
this,
IntVar.
getCPtr(start_variable), start_variable, duration,
IntVar.
getCPtr(performed_variable), performed_variable, name);
2220 return (cPtr == 0) ? null :
new IntervalVar(cPtr,
false);
2227 long cPtr = mainJNI.Solver_makeFixedInterval(swigCPtr,
this, start, duration, name);
2228 return (cPtr == 0) ? null :
new IntervalVar(cPtr,
false);
2235 public IntervalVar makeIntervalVar(
long start_min,
long start_max,
long duration_min,
long duration_max,
long end_min,
long end_max,
boolean optional, String name) {
2236 long cPtr = mainJNI.Solver_makeIntervalVar(swigCPtr,
this, start_min, start_max, duration_min, duration_max, end_min, end_max, optional, name);
2237 return (cPtr == 0) ? null :
new IntervalVar(cPtr,
false);
2245 long cPtr = mainJNI.Solver_makeMirrorInterval(swigCPtr,
this,
IntervalVar.
getCPtr(interval_var), interval_var);
2246 return (cPtr == 0) ? null :
new IntervalVar(cPtr,
false);
2256 long cPtr = mainJNI.Solver_makeFixedDurationStartSyncedOnStartIntervalVar(swigCPtr,
this,
IntervalVar.
getCPtr(interval_var), interval_var, duration, offset);
2257 return (cPtr == 0) ? null :
new IntervalVar(cPtr,
false);
2267 long cPtr = mainJNI.Solver_makeFixedDurationStartSyncedOnEndIntervalVar(swigCPtr,
this,
IntervalVar.
getCPtr(interval_var), interval_var, duration, offset);
2268 return (cPtr == 0) ? null :
new IntervalVar(cPtr,
false);
2278 long cPtr = mainJNI.Solver_makeFixedDurationEndSyncedOnStartIntervalVar(swigCPtr,
this,
IntervalVar.
getCPtr(interval_var), interval_var, duration, offset);
2279 return (cPtr == 0) ? null :
new IntervalVar(cPtr,
false);
2289 long cPtr = mainJNI.Solver_makeFixedDurationEndSyncedOnEndIntervalVar(swigCPtr,
this,
IntervalVar.
getCPtr(interval_var), interval_var, duration, offset);
2290 return (cPtr == 0) ? null :
new IntervalVar(cPtr,
false);
2313 long cPtr = mainJNI.Solver_makeIntervalRelaxedMin(swigCPtr,
this,
IntervalVar.
getCPtr(interval_var), interval_var);
2314 return (cPtr == 0) ? null :
new IntervalVar(cPtr,
false);
2337 long cPtr = mainJNI.Solver_makeIntervalRelaxedMax(swigCPtr,
this,
IntervalVar.
getCPtr(interval_var), interval_var);
2338 return (cPtr == 0) ? null :
new IntervalVar(cPtr,
false);
2346 long cPtr = mainJNI.Solver_makeIntervalVarRelation__SWIG_0(swigCPtr,
this,
IntervalVar.
getCPtr(t), t, r, d);
2347 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2355 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2366 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2376 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2385 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2393 long cPtr = mainJNI.Solver_makeDisjunctiveConstraint(swigCPtr,
this, intervals, name);
2403 long cPtr = mainJNI.Solver_makeStrictDisjunctiveConstraint(swigCPtr,
this, intervals, name);
2419 long cPtr = mainJNI.Solver_makeCumulative__SWIG_0(swigCPtr,
this, intervals, demands, capacity, name);
2420 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2435 long cPtr = mainJNI.Solver_makeCumulative__SWIG_1(swigCPtr,
this, intervals, demands, capacity, name);
2436 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2451 long cPtr = mainJNI.Solver_makeCumulative__SWIG_2(swigCPtr,
this, intervals, demands,
IntVar.
getCPtr(capacity), capacity, name);
2452 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2467 long cPtr = mainJNI.Solver_makeCumulative__SWIG_3(swigCPtr,
this, intervals, demands,
IntVar.
getCPtr(capacity), capacity, name);
2468 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2481 long cPtr = mainJNI.Solver_makeCumulative__SWIG_4(swigCPtr,
this, intervals, demands, capacity, name);
2482 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2495 long cPtr = mainJNI.Solver_makeCumulative__SWIG_5(swigCPtr,
this, intervals, demands,
IntVar.
getCPtr(capacity), capacity, name);
2496 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2507 long cPtr = mainJNI.Solver_makeCover(swigCPtr,
this, vars,
IntervalVar.
getCPtr(target_var), target_var);
2508 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2516 return (cPtr == 0) ? null :
new Constraint(cPtr,
false);
2523 long cPtr = mainJNI.Solver_makeAssignment__SWIG_0(swigCPtr,
this);
2524 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
2531 long cPtr = mainJNI.Solver_makeAssignment__SWIG_1(swigCPtr,
this,
Assignment.
getCPtr(a), a);
2532 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
2539 long cPtr = mainJNI.Solver_makeFirstSolutionCollector__SWIG_0(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment);
2548 long cPtr = mainJNI.Solver_makeFirstSolutionCollector__SWIG_1(swigCPtr,
this);
2556 long cPtr = mainJNI.Solver_makeLastSolutionCollector__SWIG_0(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment);
2565 long cPtr = mainJNI.Solver_makeLastSolutionCollector__SWIG_1(swigCPtr,
this);
2576 long cPtr = mainJNI.Solver_makeBestValueSolutionCollector__SWIG_0(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, maximize);
2585 long cPtr = mainJNI.Solver_MakeBestLexicographicValueSolutionCollector__SWIG_0(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, SWIGTYPE_p_std__vectorT_bool_t.
getCPtr(maximize));
2597 long cPtr = mainJNI.Solver_makeBestValueSolutionCollector__SWIG_1(swigCPtr,
this, maximize);
2606 long cPtr = mainJNI.Solver_MakeBestLexicographicValueSolutionCollector__SWIG_1(swigCPtr,
this, SWIGTYPE_p_std__vectorT_bool_t.getCPtr(maximize));
2616 long cPtr = mainJNI.Solver_makeNBestValueSolutionCollector__SWIG_0(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, solution_count, maximize);
2621 long cPtr = mainJNI.Solver_makeNBestValueSolutionCollector__SWIG_1(swigCPtr,
this, solution_count, maximize);
2630 long cPtr = mainJNI.Solver_MakeNBestLexicographicValueSolutionCollector__SWIG_0(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment, solution_count, SWIGTYPE_p_std__vectorT_bool_t.
getCPtr(maximize));
2635 long cPtr = mainJNI.Solver_MakeNBestLexicographicValueSolutionCollector__SWIG_1(swigCPtr,
this, solution_count, SWIGTYPE_p_std__vectorT_bool_t.getCPtr(maximize));
2643 long cPtr = mainJNI.Solver_makeAllSolutionCollector__SWIG_0(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment);
2652 long cPtr = mainJNI.Solver_makeAllSolutionCollector__SWIG_1(swigCPtr,
this);
2660 long cPtr = mainJNI.Solver_makeMinimize(swigCPtr,
this,
IntVar.
getCPtr(v), v, step);
2661 return (cPtr == 0) ? null :
new OptimizeVar(cPtr,
false);
2668 long cPtr = mainJNI.Solver_makeMaximize(swigCPtr,
this,
IntVar.
getCPtr(v), v, step);
2669 return (cPtr == 0) ? null :
new OptimizeVar(cPtr,
false);
2676 long cPtr = mainJNI.Solver_makeOptimize(swigCPtr,
this, maximize,
IntVar.
getCPtr(v), v, step);
2677 return (cPtr == 0) ? null :
new OptimizeVar(cPtr,
false);
2685 long cPtr = mainJNI.Solver_makeWeightedMinimize__SWIG_0(swigCPtr,
this, sub_objectives, weights, step);
2686 return (cPtr == 0) ? null :
new OptimizeVar(cPtr,
false);
2694 long cPtr = mainJNI.Solver_makeWeightedMinimize__SWIG_1(swigCPtr,
this, sub_objectives, weights, step);
2695 return (cPtr == 0) ? null :
new OptimizeVar(cPtr,
false);
2702 long cPtr = mainJNI.Solver_makeWeightedMaximize__SWIG_0(swigCPtr,
this, sub_objectives, weights, step);
2703 return (cPtr == 0) ? null :
new OptimizeVar(cPtr,
false);
2710 long cPtr = mainJNI.Solver_makeWeightedMaximize__SWIG_1(swigCPtr,
this, sub_objectives, weights, step);
2711 return (cPtr == 0) ? null :
new OptimizeVar(cPtr,
false);
2718 long cPtr = mainJNI.Solver_makeWeightedOptimize__SWIG_0(swigCPtr,
this, maximize, sub_objectives, weights, step);
2719 return (cPtr == 0) ? null :
new OptimizeVar(cPtr,
false);
2726 long cPtr = mainJNI.Solver_makeWeightedOptimize__SWIG_1(swigCPtr,
this, maximize, sub_objectives, weights, step);
2727 return (cPtr == 0) ? null :
new OptimizeVar(cPtr,
false);
2735 long cPtr = mainJNI.Solver_MakeLexicographicOptimize(swigCPtr,
this, SWIGTYPE_p_std__vectorT_bool_t.getCPtr(maximize), variables, steps);
2736 return (cPtr == 0) ? null :
new OptimizeVar(cPtr,
false);
2758 long cPtr = mainJNI.Solver_makeTabuSearch(swigCPtr,
this, maximize,
IntVar.
getCPtr(objective), objective, step, vars, keep_tenure, forbid_tenure, tabu_factor);
2763 long cPtr = mainJNI.Solver_MakeLexicographicTabuSearch(swigCPtr,
this, SWIGTYPE_p_std__vectorT_bool_t.getCPtr(maximize), objectives, steps, vars, keep_tenure, forbid_tenure, tabu_factor);
2772 long cPtr = mainJNI.Solver_makeGenericTabuSearch(swigCPtr,
this, maximize,
IntVar.
getCPtr(v), v, step, tabu_vars, forbid_tenure);
2780 long cPtr = mainJNI.Solver_makeSimulatedAnnealing(swigCPtr,
this, maximize,
IntVar.
getCPtr(v), v, step, initial_temperature);
2785 long cPtr = mainJNI.Solver_MakeLexicographicSimulatedAnnealing(swigCPtr,
this, SWIGTYPE_p_std__vectorT_bool_t.getCPtr(maximize), vars, steps, initial_temperatures);
2794 long cPtr = mainJNI.Solver_makeGuidedLocalSearch__SWIG_0(swigCPtr,
this, maximize,
IntVar.
getCPtr(objective), objective, objective_function, step, vars, penalty_factor, reset_penalties_on_new_best_solution);
2803 long cPtr = mainJNI.Solver_makeGuidedLocalSearch__SWIG_1(swigCPtr,
this, maximize,
IntVar.
getCPtr(objective), objective, objective_function, step, vars, penalty_factor);
2808 long cPtr = mainJNI.Solver_makeGuidedLocalSearch__SWIG_2(swigCPtr,
this, maximize,
IntVar.
getCPtr(objective), objective, objective_function, step, vars, secondary_vars, penalty_factor, reset_penalties_on_new_best_solution);
2813 long cPtr = mainJNI.Solver_makeGuidedLocalSearch__SWIG_3(swigCPtr,
this, maximize,
IntVar.
getCPtr(objective), objective, objective_function, step, vars, secondary_vars, penalty_factor);
2823 long cPtr = mainJNI.Solver_makeLubyRestart(swigCPtr,
this, scale_factor);
2832 long cPtr = mainJNI.Solver_makeConstantRestart(swigCPtr,
this, frequency);
2840 long cPtr = mainJNI.Solver_makeTimeLimit__SWIG_0(swigCPtr,
this, SWIGTYPE_p_absl__Duration.getCPtr(time));
2841 return (cPtr == 0) ? null :
new RegularLimit(cPtr,
false);
2845 long cPtr = mainJNI.Solver_makeTimeLimit__SWIG_1(swigCPtr,
this, time_in_ms);
2846 return (cPtr == 0) ? null :
new RegularLimit(cPtr,
false);
2854 long cPtr = mainJNI.Solver_makeBranchesLimit(swigCPtr,
this,
branches);
2855 return (cPtr == 0) ? null :
new RegularLimit(cPtr,
false);
2863 long cPtr = mainJNI.Solver_makeFailuresLimit(swigCPtr,
this,
failures);
2864 return (cPtr == 0) ? null :
new RegularLimit(cPtr,
false);
2872 long cPtr = mainJNI.Solver_makeSolutionsLimit(swigCPtr,
this,
solutions);
2873 return (cPtr == 0) ? null :
new RegularLimit(cPtr,
false);
2881 long cPtr = mainJNI.Solver_makeLimit__SWIG_0(swigCPtr,
this, SWIGTYPE_p_absl__Duration.getCPtr(time),
branches,
failures,
solutions, smart_time_check, cumulative);
2882 return (cPtr == 0) ? null :
new RegularLimit(cPtr,
false);
2890 long cPtr = mainJNI.Solver_makeLimit__SWIG_1(swigCPtr,
this, SWIGTYPE_p_absl__Duration.getCPtr(time),
branches,
failures,
solutions, smart_time_check);
2891 return (cPtr == 0) ? null :
new RegularLimit(cPtr,
false);
2899 long cPtr = mainJNI.Solver_makeLimit__SWIG_2(swigCPtr,
this, SWIGTYPE_p_absl__Duration.getCPtr(time),
branches,
failures,
solutions);
2900 return (cPtr == 0) ? null :
new RegularLimit(cPtr,
false);
2907 long cPtr = mainJNI.Solver_makeLimit__SWIG_3(swigCPtr,
this, proto.toByteArray());
2908 return (cPtr == 0) ? null :
new RegularLimit(cPtr,
false);
2912 long cPtr = mainJNI.Solver_makeLimit__SWIG_4(swigCPtr,
this, time,
branches,
failures,
solutions, smart_time_check, cumulative);
2913 return (cPtr == 0) ? null :
new RegularLimit(cPtr,
false);
2918 return (cPtr == 0) ? null :
new RegularLimit(cPtr,
false);
2923 return (cPtr == 0) ? null :
new RegularLimit(cPtr,
false);
2930 byte[] buf = mainJNI.Solver_makeDefaultRegularLimitParameters(swigCPtr,
this);
2931 if (buf ==
null || buf.length == 0) {
2935 return com.google.ortools.constraintsolver.RegularLimitParameters.parseFrom(buf);
2936 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2937 throw new RuntimeException(
2938 "Unable to parse com.google.ortools.constraintsolver.RegularLimitParameters protocol message.");
2949 return (cPtr == 0) ? null :
new SearchLimit(cPtr,
false);
2959 long cPtr = mainJNI.Solver_MakeImprovementLimit(swigCPtr,
this,
IntVar.
getCPtr(objective_var), objective_var, maximize, objective_scaling_factor, objective_offset, improvement_rate_coefficient, improvement_rate_solutions_distance);
2968 long cPtr = mainJNI.Solver_MakeLexicographicImprovementLimit(swigCPtr,
this, objective_vars, SWIGTYPE_p_std__vectorT_bool_t.
getCPtr(maximize), objective_scaling_factors, objective_offsets, improvement_rate_coefficient, improvement_rate_solutions_distance);
2977 long cPtr = mainJNI.Solver_makeCustomLimit(swigCPtr,
this, limiter);
2978 return (cPtr == 0) ? null :
new SearchLimit(cPtr,
false);
2986 long cPtr = mainJNI.Solver_makeSearchLog__SWIG_0(swigCPtr,
this, branch_period);
2994 long cPtr = mainJNI.Solver_makeSearchLog__SWIG_1(swigCPtr,
this, branch_period,
IntVar.
getCPtr(var), var);
3003 long cPtr = mainJNI.Solver_makeSearchLog__SWIG_2(swigCPtr,
this, branch_period, display_callback);
3012 long cPtr = mainJNI.Solver_makeSearchLog__SWIG_3(swigCPtr,
this, branch_period,
IntVar.
getCPtr(var), var, display_callback);
3021 long cPtr = mainJNI.Solver_makeSearchLog__SWIG_4(swigCPtr,
this, branch_period, vars, display_callback);
3030 long cPtr = mainJNI.Solver_makeSearchLog__SWIG_5(swigCPtr,
this, branch_period,
OptimizeVar.
getCPtr(opt_var), opt_var);
3039 long cPtr = mainJNI.Solver_makeSearchLog__SWIG_6(swigCPtr,
this, branch_period,
OptimizeVar.
getCPtr(opt_var), opt_var, display_callback);
3048 long cPtr = mainJNI.Solver_makeSearchTrace(swigCPtr,
this, prefix);
3056 long cPtr = mainJNI.Solver_makeEnterSearchCallback(swigCPtr,
this, callback);
3061 long cPtr = mainJNI.Solver_makeExitSearchCallback(swigCPtr,
this, callback);
3066 long cPtr = mainJNI.Solver_makeAtSolutionCallback(swigCPtr,
this, callback);
3074 long cPtr = mainJNI.Solver_makePrintModelVisitor(swigCPtr,
this);
3075 return (cPtr == 0) ? null :
new ModelVisitor(cPtr,
false);
3082 long cPtr = mainJNI.Solver_makeStatisticsModelVisitor(swigCPtr,
this);
3083 return (cPtr == 0) ? null :
new ModelVisitor(cPtr,
false);
3090 long cPtr = mainJNI.Solver_makeSymmetryManager__SWIG_0(swigCPtr,
this, visitors);
3118 long cPtr = mainJNI.Solver_makeAssignVariableValue(swigCPtr,
this,
IntVar.
getCPtr(var), var, val);
3119 return (cPtr == 0) ? null :
new Decision(cPtr,
false);
3123 long cPtr = mainJNI.Solver_makeVariableLessOrEqualValue(swigCPtr,
this,
IntVar.
getCPtr(var), var, value);
3124 return (cPtr == 0) ? null :
new Decision(cPtr,
false);
3128 long cPtr = mainJNI.Solver_makeVariableGreaterOrEqualValue(swigCPtr,
this,
IntVar.
getCPtr(var), var, value);
3129 return (cPtr == 0) ? null :
new Decision(cPtr,
false);
3133 long cPtr = mainJNI.Solver_makeSplitVariableDomain(swigCPtr,
this,
IntVar.
getCPtr(var), var, val, start_with_lower_half);
3134 return (cPtr == 0) ? null :
new Decision(cPtr,
false);
3138 long cPtr = mainJNI.Solver_makeAssignVariableValueOrFail(swigCPtr,
this,
IntVar.
getCPtr(var), var, value);
3139 return (cPtr == 0) ? null :
new Decision(cPtr,
false);
3143 long cPtr = mainJNI.Solver_MakeAssignVariableValueOrDoNothing(swigCPtr,
this,
IntVar.
getCPtr(var), var, value);
3144 return (cPtr == 0) ? null :
new Decision(cPtr,
false);
3148 long cPtr = mainJNI.Solver_makeAssignVariablesValues(swigCPtr,
this, vars, values);
3149 return (cPtr == 0) ? null :
new Decision(cPtr,
false);
3153 long cPtr = mainJNI.Solver_MakeAssignVariablesValuesOrDoNothing(swigCPtr,
this, vars, values);
3154 return (cPtr == 0) ? null :
new Decision(cPtr,
false);
3158 long cPtr = mainJNI.Solver_MakeAssignVariablesValuesOrFail(swigCPtr,
this, vars, values);
3159 return (cPtr == 0) ? null :
new Decision(cPtr,
false);
3163 long cPtr = mainJNI.Solver_makeFailDecision(swigCPtr,
this);
3164 return (cPtr == 0) ? null :
new Decision(cPtr,
false);
3168 long cPtr = mainJNI.Solver_makeDecision(swigCPtr,
this, apply, refute);
3169 return (cPtr == 0) ? null :
new Decision(cPtr,
false);
3217 long cPtr = mainJNI.Solver_compose__SWIG_3(swigCPtr,
this, dbs);
3276 long cPtr = mainJNI.Solver_tryDecisions__SWIG_3(swigCPtr,
this, dbs);
3288 long cPtr = mainJNI.Solver_makePhase__SWIG_0(swigCPtr,
this, vars, var_str, val_str);
3293 long cPtr = mainJNI.Solver_makePhase__SWIG_1(swigCPtr,
this, vars, var_evaluator, val_str);
3298 long cPtr = mainJNI.Solver_makePhase__SWIG_2(swigCPtr,
this, vars, var_str, value_evaluator);
3307 long cPtr = mainJNI.Solver_makePhase__SWIG_3(swigCPtr,
this, vars, var_str, var_val1_val2_comparator);
3312 long cPtr = mainJNI.Solver_makePhase__SWIG_4(swigCPtr,
this, vars, var_evaluator, value_evaluator);
3317 long cPtr = mainJNI.Solver_makePhase__SWIG_5(swigCPtr,
this, vars, var_str, value_evaluator, tie_breaker);
3322 long cPtr = mainJNI.Solver_makePhase__SWIG_6(swigCPtr,
this, vars, var_evaluator, value_evaluator, tie_breaker);
3327 long cPtr = mainJNI.Solver_makeDefaultPhase__SWIG_0(swigCPtr,
this, vars);
3340 long cPtr = mainJNI.Solver_makePhase__SWIG_7(swigCPtr,
this,
IntVar.
getCPtr(v0), v0, var_str, val_str);
3345 long cPtr = mainJNI.Solver_makePhase__SWIG_8(swigCPtr,
this,
IntVar.
getCPtr(v0), v0,
IntVar.
getCPtr(v1), v1, var_str, val_str);
3355 long cPtr = mainJNI.Solver_makePhase__SWIG_10(swigCPtr,
this,
IntVar.
getCPtr(v0), v0,
IntVar.
getCPtr(v1), v1,
IntVar.
getCPtr(v2), v2,
IntVar.
getCPtr(v3), v3, var_str, val_str);
3367 long cPtr = mainJNI.Solver_makeScheduleOrPostpone(swigCPtr,
this,
IntervalVar.
getCPtr(var), var, est, SWIGTYPE_p_long.
getCPtr(marker));
3368 return (cPtr == 0) ? null :
new Decision(cPtr,
false);
3379 long cPtr = mainJNI.Solver_makeScheduleOrExpedite(swigCPtr,
this,
IntervalVar.
getCPtr(var), var, est, SWIGTYPE_p_long.
getCPtr(marker));
3380 return (cPtr == 0) ? null :
new Decision(cPtr,
false);
3388 long cPtr = mainJNI.Solver_makeRankFirstInterval(swigCPtr,
this,
SequenceVar.
getCPtr(sequence), sequence, index);
3389 return (cPtr == 0) ? null :
new Decision(cPtr,
false);
3397 long cPtr = mainJNI.Solver_makeRankLastInterval(swigCPtr,
this,
SequenceVar.
getCPtr(sequence), sequence, index);
3398 return (cPtr == 0) ? null :
new Decision(cPtr,
false);
3409 long cPtr = mainJNI.Solver_makePhase__SWIG_11(swigCPtr,
this, vars, eval, str);
3423 long cPtr = mainJNI.Solver_makePhase__SWIG_12(swigCPtr,
this, vars, eval, tie_breaker, str);
3431 long cPtr = mainJNI.Solver_makePhase__SWIG_13(swigCPtr,
this, intervals, str);
3436 long cPtr = mainJNI.Solver_makePhase__SWIG_14(swigCPtr,
this, sequences, str);
3458 long cPtr = mainJNI.Solver_makeConstraintAdder(swigCPtr,
this,
Constraint.
getCPtr(ct), ct);
3506 long cPtr = mainJNI.Solver_makeSolveOnce__SWIG_4(swigCPtr,
this,
DecisionBuilder.
getCPtr(db), db,
SearchMonitor.
getCPtr(monitor1), monitor1,
SearchMonitor.
getCPtr(monitor2), monitor2,
SearchMonitor.
getCPtr(monitor3), monitor3,
SearchMonitor.
getCPtr(monitor4), monitor4);
3515 long cPtr = mainJNI.Solver_makeSolveOnce__SWIG_5(swigCPtr,
this,
DecisionBuilder.
getCPtr(db), db, monitors);
3551 long cPtr = mainJNI.Solver_makeNestedOptimize__SWIG_2(swigCPtr,
this,
DecisionBuilder.
getCPtr(db), db,
Assignment.
getCPtr(solution), solution, maximize, step,
SearchMonitor.
getCPtr(monitor1), monitor1,
SearchMonitor.
getCPtr(monitor2), monitor2);
3560 long cPtr = mainJNI.Solver_makeNestedOptimize__SWIG_3(swigCPtr,
this,
DecisionBuilder.
getCPtr(db), db,
Assignment.
getCPtr(solution), solution, maximize, step,
SearchMonitor.
getCPtr(monitor1), monitor1,
SearchMonitor.
getCPtr(monitor2), monitor2,
SearchMonitor.
getCPtr(monitor3), monitor3);
3569 long cPtr = mainJNI.Solver_makeNestedOptimize__SWIG_4(swigCPtr,
this,
DecisionBuilder.
getCPtr(db), db,
Assignment.
getCPtr(solution), solution, maximize, step,
SearchMonitor.
getCPtr(monitor1), monitor1,
SearchMonitor.
getCPtr(monitor2), monitor2,
SearchMonitor.
getCPtr(monitor3), monitor3,
SearchMonitor.
getCPtr(monitor4), monitor4);
3590 long cPtr = mainJNI.Solver_makeRestoreAssignment(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment);
3599 long cPtr = mainJNI.Solver_makeStoreAssignment(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment);
3607 long cPtr = mainJNI.Solver_makeOperator__SWIG_0(swigCPtr,
this, vars, op, SWIGTYPE_p_std__functionT_std__vectorT_int_t_const_Rfint_intF_t.
getCPtr(get_neighbors));
3615 long cPtr = mainJNI.Solver_makeOperator__SWIG_1(swigCPtr,
this, vars, op);
3620 long cPtr = mainJNI.Solver_makeOperator__SWIG_2(swigCPtr,
this, vars, secondary_vars, op, SWIGTYPE_p_std__functionT_std__vectorT_int_t_const_Rfint_intF_t.
getCPtr(get_neighbors));
3625 long cPtr = mainJNI.Solver_makeOperator__SWIG_3(swigCPtr,
this, vars, secondary_vars, op);
3630 long cPtr = mainJNI.Solver_makeOperator__SWIG_4(swigCPtr,
this, vars, evaluator, op);
3635 long cPtr = mainJNI.Solver_makeOperator__SWIG_5(swigCPtr,
this, vars, secondary_vars, evaluator, op);
3649 long cPtr = mainJNI.Solver_makeRandomLnsOperator__SWIG_0(swigCPtr,
this, vars, number_of_variables);
3654 long cPtr = mainJNI.Solver_makeRandomLnsOperator__SWIG_1(swigCPtr,
this, vars, number_of_variables, seed);
3666 long cPtr = mainJNI.Solver_makeMoveTowardTargetOperator__SWIG_0(swigCPtr,
this,
Assignment.
getCPtr(target), target);
3679 long cPtr = mainJNI.Solver_makeMoveTowardTargetOperator__SWIG_1(swigCPtr,
this, variables, target_values);
3715 long cPtr = mainJNI.Solver_concatenateOperators__SWIG_0(swigCPtr,
this, ops);
3720 long cPtr = mainJNI.Solver_concatenateOperators__SWIG_1(swigCPtr,
this, ops, restart);
3725 long cPtr = mainJNI.Solver_concatenateOperators__SWIG_2(swigCPtr,
this, ops, evaluator);
3734 long cPtr = mainJNI.Solver_randomConcatenateOperators__SWIG_0(swigCPtr,
this, ops);
3744 long cPtr = mainJNI.Solver_randomConcatenateOperators__SWIG_1(swigCPtr,
this, ops, seed);
3758 long cPtr = mainJNI.Solver_MultiArmedBanditConcatenateOperators(swigCPtr,
this, ops, memory_coefficient, exploration_coefficient, maximize);
3842 long cPtr = mainJNI.Solver_RunUncheckedLocalSearch__SWIG_0(swigCPtr,
this,
Assignment.
getCPtr(initial_solution), initial_solution,
LocalSearchFilterManager.
getCPtr(filter_manager), filter_manager,
LocalSearchOperator.
getCPtr(ls_operator), ls_operator, monitors,
RegularLimit.
getCPtr(limit), limit, SWIGTYPE_p_absl__flat_hash_setT_operations_research__IntVar_p_t.
getCPtr(touched));
3843 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
3853 long cPtr = mainJNI.Solver_RunUncheckedLocalSearch__SWIG_1(swigCPtr,
this,
Assignment.
getCPtr(initial_solution), initial_solution,
LocalSearchFilterManager.
getCPtr(filter_manager), filter_manager,
LocalSearchOperator.
getCPtr(ls_operator), ls_operator, monitors,
RegularLimit.
getCPtr(limit), limit);
3854 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
3861 long cPtr = mainJNI.Solver_makeDefaultSolutionPool(swigCPtr,
this);
3862 return (cPtr == 0) ? null :
new SolutionPool(cPtr,
false);
3888 long cPtr = mainJNI.Solver_makeLocalSearchPhaseParameters__SWIG_2(swigCPtr,
this,
IntVar.
getCPtr(objective), objective,
LocalSearchOperator.
getCPtr(ls_operator), ls_operator,
DecisionBuilder.
getCPtr(sub_decision_builder), sub_decision_builder,
RegularLimit.
getCPtr(limit), limit,
LocalSearchFilterManager.
getCPtr(filter_manager), filter_manager);
3906 long cPtr = mainJNI.Solver_makeLocalSearchPhaseParameters__SWIG_4(swigCPtr,
this,
IntVar.
getCPtr(objective), objective,
SolutionPool.
getCPtr(pool), pool,
LocalSearchOperator.
getCPtr(ls_operator), ls_operator,
DecisionBuilder.
getCPtr(sub_decision_builder), sub_decision_builder,
RegularLimit.
getCPtr(limit), limit);
3915 long cPtr = mainJNI.Solver_makeLocalSearchPhaseParameters__SWIG_5(swigCPtr,
this,
IntVar.
getCPtr(objective), objective,
SolutionPool.
getCPtr(pool), pool,
LocalSearchOperator.
getCPtr(ls_operator), ls_operator,
DecisionBuilder.
getCPtr(sub_decision_builder), sub_decision_builder,
RegularLimit.
getCPtr(limit), limit,
LocalSearchFilterManager.
getCPtr(filter_manager), filter_manager);
3926 long cPtr = mainJNI.Solver_MakeAcceptFilter(swigCPtr,
this);
3931 long cPtr = mainJNI.Solver_MakeRejectFilter(swigCPtr,
this);
3936 long cPtr = mainJNI.Solver_makeVariableDomainFilter(swigCPtr,
this);
3941 long cPtr = mainJNI.Solver_makeSumObjectiveFilter__SWIG_0(swigCPtr,
this, vars, values, filter_enum);
3946 long cPtr = mainJNI.Solver_makeSumObjectiveFilter__SWIG_1(swigCPtr,
this, vars, secondary_vars, values, filter_enum);
3955 mainJNI.Solver_topPeriodicCheck(swigCPtr,
this);
3964 return mainJNI.Solver_topProgressPercent(swigCPtr,
this);
3973 mainJNI.Solver_pushState(swigCPtr,
this);
3977 mainJNI.Solver_popState(swigCPtr,
this);
3985 return mainJNI.Solver_searchDepth(swigCPtr,
this);
3993 return mainJNI.Solver_searchLeftDepth(swigCPtr,
this);
4001 return mainJNI.Solver_solveDepth(swigCPtr,
this);
4008 return mainJNI.Solver_rand64(swigCPtr,
this, size);
4015 return mainJNI.Solver_rand32(swigCPtr,
this, size);
4022 mainJNI.Solver_reSeed(swigCPtr,
this, seed);
4031 mainJNI.Solver_exportProfilingOverview(swigCPtr,
this, filename);
4038 return mainJNI.Solver_localSearchProfile(swigCPtr,
this);
4047 return mainJNI.Solver_currentlyInSolve(swigCPtr,
this);
4055 return mainJNI.Solver_constraints(swigCPtr,
this);
4066 long cPtr = mainJNI.Solver_balancing_decision(swigCPtr,
this);
4067 return (cPtr == 0) ? null :
new Decision(cPtr,
false);
4074 mainJNI.Solver_clear_fail_intercept(swigCPtr,
this);
4082 mainJNI.Solver_SetUseFastLocalSearch(swigCPtr,
this, use_fast_local_search);
4089 return mainJNI.Solver_UseFastLocalSearch(swigCPtr,
this);
4103 long cPtr = mainJNI.Solver_registerDemon(swigCPtr,
this,
Demon.
getCPtr(demon), demon);
4104 return (cPtr == 0) ? null :
new Demon(cPtr,
false);
4111 long cPtr = mainJNI.Solver_registerIntExpr(swigCPtr,
this,
IntExpr.
getCPtr(expr), expr);
4112 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
4119 long cPtr = mainJNI.Solver_registerIntVar(swigCPtr,
this,
IntVar.
getCPtr(var), var);
4120 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
4128 long cPtr = mainJNI.Solver_registerIntervalVar(swigCPtr,
this,
IntervalVar.
getCPtr(var), var);
4129 return (cPtr == 0) ? null :
new IntervalVar(cPtr,
false);
4136 long cPtr = mainJNI.Solver_cache(swigCPtr,
this);
4137 return (cPtr == 0) ? null :
new ModelCache(cPtr,
false);
4144 return mainJNI.Solver_instrumentsDemons(swigCPtr,
this);
4151 return mainJNI.Solver_isProfilingEnabled(swigCPtr,
this);
4158 return mainJNI.Solver_isLocalSearchProfilingEnabled(swigCPtr,
this);
4165 return mainJNI.Solver_instrumentsVariables(swigCPtr,
this);
4172 return mainJNI.Solver_nameAllVariables(swigCPtr,
this);
4179 return mainJNI.Solver_model_name(swigCPtr,
this);
4186 long cPtr = mainJNI.Solver_getPropagationMonitor(swigCPtr,
this);
4202 long cPtr = mainJNI.Solver_getLocalSearchMonitor(swigCPtr,
this);
4218 long cPtr = mainJNI.Solver_GetOrCreateLocalSearchState(swigCPtr,
this);
4219 return (cPtr == 0) ? null :
new Assignment(cPtr,
false);
4226 mainJNI.Solver_ClearLocalSearchState(swigCPtr,
this);
4236 mainJNI.Solver_tmpVector_set(swigCPtr,
this, value);
4246 return mainJNI.Solver_tmpVector_get(swigCPtr,
this);
4254 long cPtr = mainJNI.Solver_castExpression(swigCPtr,
this,
IntVar.
getCPtr(var), var);
4255 return (cPtr == 0) ? null :
new IntExpr(cPtr,
false);
4262 mainJNI.Solver_finishCurrentSearch(swigCPtr,
this);
4266 mainJNI.Solver_restartCurrentSearch(swigCPtr,
this);
4274 mainJNI.Solver_shouldFail(swigCPtr,
this);
4278 mainJNI.Solver_checkFail(swigCPtr,
this);
4286 long cPtr = mainJNI.Solver_MakeProfiledDecisionBuilderWrapper(swigCPtr,
this,
DecisionBuilder.
getCPtr(db), db);
4392 public final static int CHOOSE_PATH = mainJNI.Solver_CHOOSE_PATH_get();
4518 public final static int TWOOPT = mainJNI.Solver_TWOOPT_get();
4535 public final static int OROPT = mainJNI.Solver_OROPT_get();
4539 public final static int RELOCATE = mainJNI.Solver_RELOCATE_get();
4549 public final static int EXCHANGE = mainJNI.Solver_EXCHANGE_get();
4561 public final static int CROSS = mainJNI.Solver_CROSS_get();
4570 public final static int MAKEACTIVE = mainJNI.Solver_MAKEACTIVE_get();
4595 public final static int SWAPACTIVE = mainJNI.Solver_SWAPACTIVE_get();
4618 public final static int PATHLNS = mainJNI.Solver_PATHLNS_get();
4623 public final static int FULLPATHLNS = mainJNI.Solver_FULLPATHLNS_get();
4629 public final static int UNACTIVELNS = mainJNI.Solver_UNACTIVELNS_get();
4640 public final static int INCREMENT = mainJNI.Solver_INCREMENT_get();
4646 public final static int DECREMENT = mainJNI.Solver_DECREMENT_get();
4656 public final static int SIMPLELNS = mainJNI.Solver_SIMPLELNS_get();
4670 public final static int LK = mainJNI.Solver_LK_get();
4679 public final static int TSPOPT = mainJNI.Solver_TSPOPT_get();
4688 public final static int TSPLNS = mainJNI.Solver_TSPLNS_get();
4701 public final static int GE = mainJNI.Solver_GE_get();
4705 public final static int LE = mainJNI.Solver_LE_get();
4710 public final static int EQ = mainJNI.Solver_EQ_get();
4750 public final static int ENDS_AT_END = mainJNI.Solver_ENDS_AT_END_get();
4787 public final static int ENDS_AFTER = mainJNI.Solver_ENDS_AFTER_get();
4791 public final static int ENDS_AT = mainJNI.Solver_ENDS_AT_get();
4795 public final static int ENDS_BEFORE = mainJNI.Solver_ENDS_BEFORE_get();
4803 public final static int STARTS_AT = mainJNI.Solver_STARTS_AT_get();
4813 public final static int CROSS_DATE = mainJNI.Solver_CROSS_DATE_get();
4819 public final static int AVOID_DATE = mainJNI.Solver_AVOID_DATE_get();
4834 public final static int NO_CHANGE = mainJNI.Solver_NO_CHANGE_get();
4840 public final static int KEEP_LEFT = mainJNI.Solver_KEEP_LEFT_get();
4846 public final static int KEEP_RIGHT = mainJNI.Solver_KEEP_RIGHT_get();
4851 public final static int KILL_BOTH = mainJNI.Solver_KILL_BOTH_get();
4864 public final static int SENTINEL = mainJNI.Solver_SENTINEL_get();
4885 public final static int IN_SEARCH = mainJNI.Solver_IN_SEARCH_get();
4889 public final static int AT_SOLUTION = mainJNI.Solver_AT_SOLUTION_get();
4904 public final static int NOT_SET = mainJNI.Solver_NOT_SET_get();