if (network == null) {
System.out.println("Problems with loading the network");
return;
}
// need to use JTSolverPN to provide the policy network
JTSolverPN solver = new JTSolverPN();
solver.initialize(network, new StrongJoinTreeCompiler());
// find the optimum actions
solver.Solve();
JTInferencePN inference = solver.getPolicyNetworkInference();
inference.run();
// output inference results