Skip to content

Do not perform the first iteration if max_iterations == 0#597

Merged
cvanaret merged 2 commits intomainfrom
zero_iteration
Mar 17, 2026
Merged

Do not perform the first iteration if max_iterations == 0#597
cvanaret merged 2 commits intomainfrom
zero_iteration

Conversation

@cvanaret
Copy link
Copy Markdown
Owner

@cvanaret
Copy link
Copy Markdown
Owner Author

@amontoison in interfaces/Julia/test/MOI_wrapper.jl, the test test_vector_nonlinear_oracle contains:

MOI.set(model, MOI.RawOptimizerAttribute("max_iterations"), 0)

Is that normal?

@amontoison
Copy link
Copy Markdown
Collaborator

It comes from this test in Ipopt.jl:
jump-dev/Ipopt.jl#511

You can modify / remove it if it is not relevant for Uno.

@cvanaret
Copy link
Copy Markdown
Owner Author

Got it, thanks. Uno projects the initial point onto the bounds, so this test isn't relevant 👍

@cvanaret cvanaret merged commit c1245d0 into main Mar 17, 2026
48 checks passed
@cvanaret cvanaret deleted the zero_iteration branch March 17, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants