New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output wall clock time per iteration? #178
Comments
It is done in #170 |
You need use the master branch of MathOptInterface and this branch of JuMP: jump-dev/JuMP.jl#2003 if you want to use the branch of #170 |
Hi @jchen975, The following screenshot shows the current state. The Ipopt#master branch is needed since the wall clock time per iteration is included there. Also i chose the PowerModels#master branch since it has fever unsatisfiable requirements (since it is more up-to-date). |
@lschmelting Hey, thanks for your reply and opening the issue there. I suppose before that is updated, knowing the number of iterations in each Alternatively, I would have to parse the Ipopt output, but I really don't want to do that if there's something I can use directly. |
When you call JuMP you should use the default
|
Yes, and actually setting |
I don't know of a better way, maybe someone else does. |
This short python script does the job. It's actually easier than I expected, but it would be nice to have a function to get #itr instead of having to parse the output file.
|
Unless you can find somewhere to extract this information from Ipopt's API, there's not really much we can do on the Julia side. |
wall_clock_time_per_iteration.txt @jchen975: PowerModels is again usable with the Ipopt master branch: I don't see a wall clock time per iteration output, though. Any hints? |
@lschmelting Sorry, I have no clue either. @ccoffrin could you help with this? |
I am not aware of an Ipopt feature that will print the time-per iteration, any insights @snapdeb, @blegat? Another option is to inquire about this on the coin-or mailing list, e.g. see https://www.coin-or.org/. Once the required feature at the C++ level is clear we can see how to make it accessible from MOI/JuMP. For what it is worth PowerModels#master is now tested with Ipopt.jl v0.6, which includes the udates from #170. |
In the mean time, you could pass a callback and measure time yourself. |
Hello,
I would like to know if there is an option to output the elapsed wall clock time per iteration? If there is no such function, i would like to modify the source code myself to add it. Can you point me to the file which i would have to edit?
The text was updated successfully, but these errors were encountered: