network = gReader.loadFromFile(genieFile);
if (network == null) {
System.out.println("Problems with loading the network");
return;
}
JTSolver solver = new JTSolver();
solver.initialize(network, new StrongJoinTreeCompiler());
// find the optimum actions
solver.Solve();
// show polices
Set<BNNode> nodes = network.vertexSet();
for (BNNode node : nodes) {
if (node.isDecision()) {
System.out.println(
node.getName() + ":\n"
+ solver.getPolicy(node.getDiscretizedDomain()).toString()
+ "\n");
}
}
} catch (Exception e) {