You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Pyomo Forum
Hello everyone,
I am trying to compare few models based on the number of iterations it required to get the optimal solution. How do I extract the number of iterations from the IPOPT solver?
Thank you
a-jp
unread,
Mar 25, 2022, 8:04:49 AM3/25/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Pyomo Forum
I'd really like to know this too
Michael Bynum
unread,
Mar 25, 2022, 9:02:29 AM3/25/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Pyomo Forum
There are a couple ways to do this. Unfortunately, neither is trivial. One way to do this would be to parse the log file. You can access the log file by specifying the name of the log file in the call to solve: results = solver.solve(model, logfile='ipopt_output.log'). You can then open this log file and parse it to get the number of iterations. Alternatively, you could use the interface to CyIpopt with a callback to track the number of iterations.
Michael
Esteban Daniel Gonzalez Iakl
unread,
Jun 16, 2023, 12:41:42 PM6/16/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Pyomo Forum
Hi, have you found a solution for this issue, easier than parsing the log file? Im looking into this too.