Menu

can't get total message size

Help
Xie Yi
2015-08-24
2015-08-25
  • Xie Yi

    Xie Yi - 2015-08-24

    I want to get the total message size passed for getting a solution. I called the getTotalMsgSize function but can only get zero value. Is this member function implemented?

     
  • Thomas B. Léauté

    Dear Xie Yi,

    Are you calling FRODO from the Java API, using solvers? In that case, I am guessing that you are just calling the solver's solve(Problem) method (with only one argument), but that method disables the counting of messages by default (because it can be computationally expensive).

    I suggest you try calling one of the solve() methods that takes in a Boolean measureMsgs argument to tell the solver to measure messages.

    Let me know if this solves your problem.

    Best,

    Thomas

     
  • Xie Yi

    Xie Yi - 2015-08-25

    Thx, it works!

     

Log in to post a comment.