Skip to content

Conversation

@frapac
Copy link
Member

@frapac frapac commented Apr 29, 2025

No description provided.

@frapac frapac requested a review from amontoison April 29, 2025 16:06
@frapac frapac mentioned this pull request Apr 17, 2025
23 tasks
src/kernels.jl Outdated
return
end

function set_corrective_rhs!(solver::MadNLP.AbstractMadNLPSolver, kkt::MadNLP.AbstractKKTSystem, mu::Float64, correction_lb::Vector{Float64}, correction_ub::Vector{Float64}, ind_lb, ind_ub)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
function set_corrective_rhs!(solver::MadNLP.AbstractMadNLPSolver, kkt::MadNLP.AbstractKKTSystem, mu::Float64, correction_lb::Vector{Float64}, correction_ub::Vector{Float64}, ind_lb, ind_ub)
function set_correction_rhs!(solver::MadNLP.AbstractMadNLPSolver, kkt::MadNLP.AbstractKKTSystem, mu::Float64, correction_lb::Vector{Float64}, correction_ub::Vector{Float64}, ind_lb, ind_ub)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can be consistent with the other routines if we do this modification.

end

# Predictor-corrector method
function mpc!(solver::MadNLP.AbstractMadNLPSolver; max_ncorr=0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose that max_ncorr was for the multiple corrections variant of Gondzio but not implemented?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

max_ncorr has been moved in the structure IPMOptions. Gondzio's multiple corrections have been implemented already :)

Copy link
Member

@amontoison amontoison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except two small details, LGTM 👍
Thanks François!

@frapac frapac merged commit e9be9f2 into master Apr 30, 2025
1 of 3 checks passed
@frapac frapac deleted the fp/refactoring branch April 30, 2025 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants