Skip to content

Labo gradient projeté fini - #2

Open
dawutesse1 wants to merge 6 commits into
dpo-mth8408:mainfrom
dawutesse1:labo6
Open

dawutesse1 wants to merge 6 commits into
dpo-mth8408:mainfrom
dawutesse1:labo6

Conversation

@dawutesse1

Copy link
Copy Markdown

No description provided.

Comment thread rapport.qmd Outdated
Comment thread rapport.qmd
@github-actions

Copy link
Copy Markdown

Status:
Success--Here-is-the-PDF

Comment thread rapport.qmd
- name: Votre nom
email: votre.adresse@polymtl.ca
- name: Dawut Esse
email: dawut.esse@etud.polymtl.ca

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ton rapport fait 102 pages...

Comment thread rapport.qmd
x::V;
t::Real = one(eltype(x)),
τ::Real = 0.5,
α₀::Real = one(eltype(x))) where V<:AbstractVector

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ce n'est pas le prototype vu en laboratoire.

Comment thread rapport.qmd

α *= τ
if α < eps(eltype(α))
return α

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Est-ce une bonne chose ?

Comment thread rapport.qmd
@info @sprintf("it=%3d f=%+.12f ||d||=%.3e", k, fx, nd)

# 2) critère d’arrêt
if norm(d) ≤ max(ϵa, ϵr * norm(x))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tu calcules norm(d) plusieurs fois.

Comment thread rapport.qmd

```{julia}
# votre code ici
using OptimizationProblems, OptimizationProblems.ADNLPProblems

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ne pas me montrer la sortie de cette cellule.

Comment thread rapport.qmd
end
```

IPOPT > gradient projeté sur HS110, HS45, HS38 : plus rapide, plus robuste, meilleure stationnarité atteinte.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Où est la comparaison des solutions ? Je ne vais pas lire les 102 pages de sortie. Pourquoi le gp s'est-il arrêté sur hs45 ?

Comment thread rapport.qmd
normd = norm(d)
normd > C.r && ( x .= C.a .+ (C.r / normd) .* d )
return x
end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ok

Comment thread rapport.qmd
τ=0.5)
```

Oui : prendre la direction du gradient descendant −g, projeter le pas sur la boule de rayon Δ et choisir une longueur de pas qui réduit le modèle donne le pas de Cauchy — un pas faisable qui garantit une baisse minimale suffisante pour une méthode de région de confiance (donc c’est valide pour accepter/rejeter et mettre à jour Δ). Par contre, ce projected gradient ne “voit” pas la courbure négative, donc il est souvent plus conservateur (moins efficace) que des méthodes dédiées comme le CG tronqué ; bref, ça marche pour TR, mais c’est moins performant qu’un solveur qui exploite la courbure. No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ok

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.

2 participants