Skip to content
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

Allow initialization of y without cgls #42

Merged
merged 2 commits into from
Mar 21, 2021

Conversation

mohamed82008
Copy link
Contributor

cgls requires both the J v and J' v operators. However, arguably the main benefit of the augmented Lagrangian algorithm is for problems where there exists an efficient J' v operator. Often the opposite may not be true. From what I can tell, cgls is only used to initialize the duals so one can choose to initialize these manually instead to bypass cgls. This PR allows that.

@codecov
Copy link

codecov bot commented Mar 21, 2021

Codecov Report

Merging #42 (18e82ad) into master (5e06e72) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #42   +/-   ##
=======================================
  Coverage   90.14%   90.14%           
=======================================
  Files           3        3           
  Lines         142      142           
=======================================
  Hits          128      128           
  Misses         14       14           
Impacted Files Coverage Δ
src/method.jl 83.72% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e06e72...18e82ad. Read the comment docs.

@@ -52,7 +52,7 @@ Implementation of an augmented Lagrangian method. The following keyword paramete
function percival(::Val{:equ}, nlp :: AbstractNLPModel; μ :: Real = eltype(nlp.meta.x0)(10.0),
max_iter :: Int = 1000, max_time :: Real = 30.0, max_eval :: Int=100000,
atol :: Real = 1e-8, rtol :: Real = 1e-8, ctol :: Real = 1e-8,
subsolver_logger :: AbstractLogger=NullLogger(),
subsolver_logger :: AbstractLogger=NullLogger(), inity = nothing,
Copy link
Member

Choose a reason for hiding this comment

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

Is inity supposed to be a vector here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

Copy link
Member

Choose a reason for hiding this comment

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

inity should be added to the docstring above.

Copy link
Member

@dpo dpo left a comment

Choose a reason for hiding this comment

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

Copy link
Member

@abelsiqueira abelsiqueira left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, I just made a small comment.

@@ -52,7 +52,7 @@ Implementation of an augmented Lagrangian method. The following keyword paramete
function percival(::Val{:equ}, nlp :: AbstractNLPModel; μ :: Real = eltype(nlp.meta.x0)(10.0),
max_iter :: Int = 1000, max_time :: Real = 30.0, max_eval :: Int=100000,
atol :: Real = 1e-8, rtol :: Real = 1e-8, ctol :: Real = 1e-8,
subsolver_logger :: AbstractLogger=NullLogger(),
subsolver_logger :: AbstractLogger=NullLogger(), inity = nothing,
Copy link
Member

Choose a reason for hiding this comment

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

inity should be added to the docstring above.

@abelsiqueira abelsiqueira merged commit fde9768 into JuliaSmoothOptimizers:master Mar 21, 2021
@abelsiqueira
Copy link
Member

Thank you.

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.

None yet

3 participants