Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Optimisation numérique - Projet
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
toc
Etudiants N7
Optimisation numérique - Projet
Commits
088c9c50
Commit
088c9c50
authored
3 years ago
by
gergaud
Browse files
Options
Downloads
Patches
Plain Diff
maj tester_gct.jl
parent
ddf71b4a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+10
-0
10 additions, 0 deletions
README.md
test/tester_gct.jl
+1
-1
1 addition, 1 deletion
test/tester_gct.jl
with
11 additions
and
1 deletion
README.md
+
10
−
0
View file @
088c9c50
# 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.
...
...
This diff is collapsed.
Click to expand it.
test/tester_gct.jl
+
1
−
1
View file @
088c9c50
...
...
@@ -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]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment