Replies: 1 comment
-
Not as a property. Sonnet uses mostly plain Osi methods available, and time is not one of them. There is Osi IterationCount, available in Sonnet via solver.IterationCount, but that is probably just an indicator. Even the underlying Clp solver used by OsiClp does not (AFAIK) have properties for retrieving the time it took to solve. |
Beta Was this translation helpful? Give feedback.
-
I am solving mps files using Sonnet with the OsiClpSolverInterface. I am storing some statistics in an external output csv such as solver.NumVariables(), model.name but haven't been able to find such a property or method for the time taken to solve the model. When solving the program does print out onto the terminal the time in the last line e.g.:
"Clp0032I Optimal objective xxx xx iterations time 0.002, Presolve 0.00"
but I want to able to access the time separately so I can feed it directly into an output file. Does any such method exist and I have just missed it?
Beta Was this translation helpful? Give feedback.
All reactions