Skip to content

Remise du rapport pour le Lab7#4

Open
oufog24 wants to merge 1 commit intodpo-mth8408:mainfrom
oufog24:main
Open

Remise du rapport pour le Lab7#4
oufog24 wants to merge 1 commit intodpo-mth8408:mainfrom
oufog24:main

Conversation

@oufog24
Copy link

@oufog24 oufog24 commented Jul 18, 2025

Complétion du laboratoire 7 (pénalisation quadratique)

Complétion du rapport du laboratoire 7 (pénalisation quadratique)
@github-actions
Copy link

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

@@ -0,0 +1,462 @@
# This file is machine-generated - editing it directly is not advised
Copy link
Contributor

Choose a reason for hiding this comment

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

Ne pas me remettre ces fichiers.

ls_iter += 1
end
return t
end
Copy link
Contributor

Choose a reason for hiding this comment

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

Copilot ? 😬

Copy link
Contributor

Choose a reason for hiding this comment

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

Et si on atteint max_ls, que se passe-t-il ?

C = nlp.meta.ncon

f_penal(x) = begin
cst = similar(x, C)
Copy link
Contributor

Choose a reason for hiding this comment

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

À chaque évaluation de $\phi(x; \rho)$, tu alloues un nouveau tableau cst...

c = cons(model, x)
J = jac(model, x)

stationarity = grad_f + J' * y
Copy link
Contributor

Choose a reason for hiding this comment

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

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 ≤ ϵ
Copy link
Contributor

Choose a reason for hiding this comment

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

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
]
Copy link
Contributor

Choose a reason for hiding this comment

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

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
)
Copy link
Contributor

Choose a reason for hiding this comment

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

On ne voit pas toutes les colonnes...

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