Open
Conversation
Complétion du rapport du laboratoire 7 (pénalisation quadratique)
|
Status: |
dpo
reviewed
Aug 18, 2025
| @@ -0,0 +1,462 @@ | |||
| # This file is machine-generated - editing it directly is not advised | |||
Contributor
There was a problem hiding this comment.
Ne pas me remettre ces fichiers.
| ls_iter += 1 | ||
| end | ||
| return t | ||
| end |
Contributor
There was a problem hiding this comment.
Et si on atteint max_ls, que se passe-t-il ?
| C = nlp.meta.ncon | ||
|
|
||
| f_penal(x) = begin | ||
| cst = similar(x, C) |
Contributor
There was a problem hiding this comment.
À chaque évaluation de cst...
| c = cons(model, x) | ||
| J = jac(model, x) | ||
|
|
||
| stationarity = grad_f + J' * y |
Contributor
There was a problem hiding this comment.
C'est un vecteur. Il faudrait prendre sa norme...
|
|
||
| # Évaluation initiale des conditions KKT | ||
| (stationarity, feasibility) = KKT_eq_constraint(model, x, y) | ||
| optimal = norm(stationarity, Inf) ≤ ϵ && feasibility ≤ ϵ |
Contributor
There was a problem hiding this comment.
ok mais ... pourquoi prendre la norme de l'un ici et pas de l'autre ?!
| results = [ | ||
| (nlp.meta.name, nlp.meta.nvar, nlp.meta.ncon, quad_penalty(nlp)) | ||
| for nlp in test_set | ||
| ] |
Contributor
There was a problem hiding this comment.
Ton rapport fait 1,859 pages...
| alignment = [:l, :c, :c, :r, :r, :r, :r, :c, :c, :c], | ||
| formatters = (ft_printf("%.1e", 4:7), ft_printf("%d", [2,3,8,9])), | ||
| tf = tf_markdown # Meilleur rendu pour les rapports | ||
| ) |
Contributor
There was a problem hiding this comment.
On ne voit pas toutes les colonnes...
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.
Complétion du laboratoire 7 (pénalisation quadratique)