2020-06-16 14:39:40 +00:00
|
|
|
using Markdown
|
|
|
|
using Test
|
|
|
|
using LinearAlgebra
|
2020-06-15 17:20:15 +00:00
|
|
|
|
2020-06-16 14:26:14 +00:00
|
|
|
include("../src/Algorithme_De_Newton.jl")
|
|
|
|
include("../src/Gradient_Conjugue_Tronque.jl")
|
|
|
|
include("../src/Lagrangien_Augmente.jl")
|
2021-11-17 17:30:44 +00:00
|
|
|
include("../src/Pas_De_Cauchy.jl")#
|
2020-06-16 14:26:14 +00:00
|
|
|
include("../src/Regions_De_Confiance.jl")
|
2020-06-16 12:11:16 +00:00
|
|
|
|
2021-11-17 17:30:44 +00:00
|
|
|
#include("cacher_stacktrace.jl")
|
|
|
|
#cacher_stacktrace()
|
2020-06-19 16:54:27 +00:00
|
|
|
|
2021-11-17 17:30:44 +00:00
|
|
|
|
|
|
|
# Tolérance pour les tests d'égalité
|
|
|
|
tol_erreur = sqrt(eps())
|
|
|
|
|
|
|
|
## ajouter les fonctions de test
|
|
|
|
include("./fonctions_de_tests.jl")
|
|
|
|
|
|
|
|
include("./tester_algo_newton.jl")
|
|
|
|
|
|
|
|
include("tester_pas_de_cauchy.jl")
|
2021-12-08 07:51:27 +00:00
|
|
|
|
2021-11-17 17:30:44 +00:00
|
|
|
include("tester_gct.jl")
|
|
|
|
|
|
|
|
include("tester_regions_de_confiance.jl")
|
|
|
|
|
|
|
|
include("tester_lagrangien_augmente.jl")
|
|
|
|
|
2021-12-08 07:51:27 +00:00
|
|
|
# affiche = true
|
|
|
|
# println("affiche = ",affiche)
|
|
|
|
# # Tester l'ensemble des algorithmes
|
|
|
|
# @testset "Test SujetOptinum" begin
|
|
|
|
# # Tester l'algorithme de Newton
|
|
|
|
# tester_algo_newton(affiche,Algorithme_De_Newton)
|
2020-06-17 10:57:22 +00:00
|
|
|
|
2021-12-08 07:51:27 +00:00
|
|
|
# # Tester l'algorithme du pas de Cauchy
|
|
|
|
# tester_pas_de_cauchy(affiche,Pas_De_Cauchy)
|
2020-06-16 17:43:05 +00:00
|
|
|
|
2021-12-08 07:51:27 +00:00
|
|
|
# # Tester l'algorithme du gradient conjugué tronqué
|
|
|
|
# tester_gct(affiche,Gradient_Conjugue_Tronque)
|
2020-06-20 12:05:57 +00:00
|
|
|
|
2021-12-08 07:51:27 +00:00
|
|
|
# # Tester l'algorithme des Régions de confiance avec PasdeCauchy | GCT
|
|
|
|
# tester_regions_de_confiance(affiche,Regions_De_Confiance)
|
2020-06-22 10:20:57 +00:00
|
|
|
|
2021-12-08 07:51:27 +00:00
|
|
|
# # Tester l'algorithme du Lagrangien Augmenté
|
|
|
|
# tester_lagrangien_augmente(affiche,Lagrangien_Augmente)
|
|
|
|
# end
|