19 import java.util.logging.Logger;
25 System.loadLibrary(
"jniortools");
28 private static final Logger logger = Logger.getLogger(
SimpleCpProgram.class.getName());
30 public static void main(String[] args)
throws Exception {
38 final long numVals = 3;
47 logger.info(
"Number of constraints: " + solver.
constraints());
63 String.format(
"Solution: %d\n x=%d y=%d z=%d", count, x.
value(), y.
value(), z.
value()));
66 logger.info(
"Number of solutions found: " + solver.
solutions());
70 logger.info(String.format(
"Advanced usage:\nProblem solved in %d ms\nMemory usage: %d bytes",
static void main(String[] args)