Conversation
dpo
reviewed
Aug 18, 2025
Contributor
|
@oihanc Il y a une erreur dans ton rapport qui l'empêche d'être généré... |
dpo
reviewed
Aug 19, 2025
| end | ||
|
|
||
| return t, xt | ||
| end |
|
|
||
| f = obj(model, x) | ||
| ∇f = grad(model, x) | ||
| ∇f_norm = norm(∇f) |
Contributor
There was a problem hiding this comment.
Pourquoi cette quantité est-il importante ?
| ∇f .= grad(model, x) | ||
| ∇f_norm = norm(∇f) | ||
|
|
||
| if ∇f_norm <= tolerance |
Contributor
There was a problem hiding this comment.
Ce n'est pas un critère de stationnarité quand il y a des bornes...
| end | ||
|
|
||
| x | ||
| end |
| ft = obj(nlp, xt) | ||
| end | ||
|
|
||
| return t, xt |
Contributor
There was a problem hiding this comment.
Pourquoi réimplémenter ??? La 1e implémentation doit fonctionner. C'est là le but de l'exercice.
| - `print_freq::Integer = 1`: print frequency | ||
| - `x_tol::T = eps(T)^(1/2)`: norm tolerance between two iterates xₖ | ||
| """ | ||
| function trust_region_descent(model::AbstractNLPModel{T,V}; radius::Float64 = Inf, callback = (args...) -> nothing, ϵa::T = eps(T)^(1/2), ϵr::T = eps(T)^(1/2), itmax::Integer = 10*model.meta.nvar, verbose::Integer = 0, print_freq::Integer = 1, x_tol::T = eps(T)^(1/2)) where {T, V} |
Contributor
There was a problem hiding this comment.
Il ne faut pas réimplémenter. Le même solveur doit fonctionner.
|
|
||
| g = rand(n) | ||
| A = rand(n, n) | ||
| H = 0.5 * (A + A') # H is symmetric positive semi-definite |
Contributor
There was a problem hiding this comment.
La quadratique est-elle non convexe ?
| - Recherche linéaire d'Armijo, pour des modèles quadratiques, il est préférable d'utiliser une recherche linéaire quadratique exacte (comme utilisé par la méthode du gradient conjugué) | ||
| - Conditions de KKT : ne les vérifie pas. Il faut vérifier la norme entre les itérés $x_k$. | ||
|
|
||
| Pour ces raisons, l'utilisation d'une telle méthode n'est pas recommandée. |
Contributor
There was a problem hiding this comment.
Mais la solution trouvée est-elle acceptable pour une méthode de région de confiance ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.