9package com.google.ortools.constraintsolver;
13 return mainJNI.CpRandomSeed();
22 public static long zero() {
23 return mainJNI.zero();
29 public static long One() {
42 mainJNI.setAssignmentFromAssignment(
Assignment.
getCPtr(target_assignment), target_assignment, target_vars,
Assignment.
getCPtr(source_assignment), source_assignment, source_vars);
46 return mainJNI.areAllBound(vars);
50 return mainJNI.areAllBooleans(vars);
57 return mainJNI.areAllBoundTo(vars, value);
61 return mainJNI.maxVarArray(vars);
65 return mainJNI.minVarArray(vars);
69 return mainJNI.posIntDivUp(e, v);
73 return mainJNI.posIntDivDown(e, v);
77 byte[] buf = mainJNI.defaultRoutingModelParameters();
78 if (buf ==
null || buf.length == 0) {
82 return com.google.ortools.constraintsolver.RoutingModelParameters.parseFrom(buf);
83 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
84 throw new RuntimeException(
85 "Unable to parse com.google.ortools.constraintsolver.RoutingModelParameters protocol message.");
90 byte[] buf = mainJNI.defaultRoutingSearchParameters();
91 if (buf ==
null || buf.length == 0) {
95 return com.google.ortools.constraintsolver.RoutingSearchParameters.parseFrom(buf);
96 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
97 throw new RuntimeException(
98 "Unable to parse com.google.ortools.constraintsolver.RoutingSearchParameters protocol message.");
107 return mainJNI.findErrorInRoutingSearchParameters(search_parameters.toByteArray());
static void setAssignmentFromAssignment(Assignment target_assignment, IntVar[] target_vars, Assignment source_assignment, IntVar[] source_vars)
static long minVarArray(IntVar[] vars)
static long CpRandomSeed()
static boolean SolveModelWithSat(RoutingModel model, com.google.ortools.constraintsolver.RoutingSearchParameters search_parameters, Assignment initial_solution, Assignment solution)
static boolean areAllBooleans(IntVar[] vars)
static long maxVarArray(IntVar[] vars)
static boolean areAllBound(IntVar[] vars)
static long posIntDivUp(long e, long v)
static boolean areAllBoundTo(IntVar[] vars, long value)
static com.google.ortools.constraintsolver.RoutingSearchParameters defaultRoutingSearchParameters()
static com.google.ortools.constraintsolver.RoutingModelParameters defaultRoutingModelParameters()
static long posIntDivDown(long e, long v)
static String findErrorInRoutingSearchParameters(com.google.ortools.constraintsolver.RoutingSearchParameters search_parameters)