23 System.loadLibrary(
"jniortools");
26 public static void main(String[] args)
throws Exception {
53 System.out.println(
"x = " + solver.
value(x));
54 System.out.println(
"y = " + solver.
value(y));
55 System.out.println(
"z = " + solver.
value(z));
Minimal CP-SAT example to showcase calling the solver.
static void main(String[] args)