Skip to content
Snippets Groups Projects
Commit 088c9c50 authored by gergaud's avatar gergaud
Browse files

maj tester_gct.jl

parent ddf71b4a
No related branches found
No related tags found
No related merge requests found
# Optinum
## Mise à jour pour jupyter-notebook
- Supprimer les répertoires `.julia` et `.jupyter`
- lancer julia et ajouter le package `IJulia`:
- `julia> ]`
- `(@v1.4) pkg> add IJulia
Dans un terminal vous pouvez alors lancer `jupyter-notebook`
## Mise à jour des tests unitaires
Afin de tester vos codes il faut faire une mise à jour d'optinum.
......
......@@ -53,7 +53,7 @@ function tester_gct(afficher::Bool,Gradient_Conjugue_Tronque::Function)
grad = [2,1] # g^T H g > 0 sol à l'itération 2, saturation
delta = 6
s = Gradient_Conjugue_Tronque(grad,Hess,[delta;max_iter;tol])
@test s [0.48997991959774634, 5.979959839195494] atol = tol_test
@test isapprox(s, [0.48997991959774634, 5.979959839195494], atol = tol_test) || iapprox(s, [-4.489979919597747, -3.979959839195493], atol = tol_test)
# le cas de test 3
#grad = [-2 ; 1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment