Hello all,
I'm using FRODO as an API, inside a Java program. After I have received the solution, I have tried to get some stats:
try {
parser = XCSPparser.parse("src/frodo2/algorithms/dpop/DPOPagentJaCoP.xml", false);
} catch (Exception e) {
e.printStackTrace();
}
solver = new DPOPsolver<AddableInteger, AddableInteger="">(parser).
solve(xmlDoc, null);
System.out.println("--- Cost: " + solver.getUtility() + " ---");
System.out.println("--- Time: " + solver.getTotalTime() + " ---");
The total cost of the solution is returned OK but I always have 0 value for total time. I’have checked the agent configuration file (DPOPagentJaCoP.xml), and it’s configured to measure processing time:
<agentDescription className="frodo2.algorithms.SingleQueueAgent" measureTime="true" measureMsgs="false">
Could you help please?
Kind regards,
Denise
Hi Denise,
I assume that you actually meant:
I have looked at the code, and I believe that the method you should call is not getTotalTime() but getTimeNeeded(). Does it work for you when you call getTimeNeeded()?
I am going to look into how to remove the confusing redundancy between the two methods. Thanks for your input.
Thomas
Yes Thomas, that's right. Now, I have the processing time.
Thanks!
Last edit: Thomas B. Léauté 2014-06-26