2020-06-16 14:39:40 +00:00
|
|
|
using Markdown
|
|
|
|
using Test
|
|
|
|
using LinearAlgebra
|
2020-06-15 17:20:15 +00:00
|
|
|
using Test_Optinum
|
2020-06-16 14:09:56 +00:00
|
|
|
using Sujet_Optinum
|
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")
|
|
|
|
include("../src/Pas_De_Cauchy.jl")
|
|
|
|
include("../src/Regions_De_Confiance.jl")
|
2020-06-16 12:11:16 +00:00
|
|
|
|
2020-06-16 19:14:38 +00:00
|
|
|
# Tester l'algorithme de Newton
|
2020-06-16 17:43:05 +00:00
|
|
|
printstyled("Lancement des tests sur ",bold=true,color=:white)
|
|
|
|
printstyled("l'algorithme de Newton ",bold=true,color=:blue)
|
|
|
|
println("")
|
|
|
|
try
|
2020-06-16 19:14:38 +00:00
|
|
|
Test_Optinum.test_Algo_Newton(false,Algorithme_De_Newton)
|
2020-06-16 17:43:05 +00:00
|
|
|
catch exception
|
|
|
|
printstyled("$exception "*"\n"*"\n",bold=true,color=:red)
|
|
|
|
end
|
2020-06-16 12:11:16 +00:00
|
|
|
|
2020-06-15 17:20:15 +00:00
|
|
|
|
2020-06-16 19:14:38 +00:00
|
|
|
# Tester l'algorithme du pas de Cauchy
|
2020-06-16 17:43:05 +00:00
|
|
|
printstyled("Lancement des tests sur",bold=true,color=:white)
|
|
|
|
printstyled(" le pas de cauchy ",bold=true,color=:blue)
|
|
|
|
println("")
|
|
|
|
try
|
2020-06-16 19:14:38 +00:00
|
|
|
Test_Optinum.test_pas_de_cauchy(false,Pas_De_Cauchy)
|
2020-06-16 17:43:05 +00:00
|
|
|
catch exception
|
|
|
|
printstyled("$exception "*"\n"*"\n",bold=true,color=:red)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2020-06-16 19:14:38 +00:00
|
|
|
# Tester l'algorithme des Régions de confiance avec PasdeCauchy | GCT
|
2020-06-16 17:43:05 +00:00
|
|
|
printstyled("Lancement des tests sur",bold=true,color=:white)
|
|
|
|
printstyled(" les régions de confiance ",bold=true,color=:blue)
|
|
|
|
println("")
|
|
|
|
try
|
2020-06-16 19:14:38 +00:00
|
|
|
Test_Optinum.test_regions_de_confiance(false,Regions_De_Confiance)
|
2020-06-16 17:43:05 +00:00
|
|
|
catch exception
|
|
|
|
printstyled("$exception "*"\n"*"\n",bold=true,color=:red)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2020-06-16 19:14:38 +00:00
|
|
|
# Tester l'algorithme du Lagrangien Augmenté
|
2020-06-16 17:43:05 +00:00
|
|
|
printstyled("Lancement des tests sur ",bold=true,color=:white)
|
|
|
|
printstyled("le Lagrangien augmenté ",bold=true,color=:blue)
|
|
|
|
println("")
|
|
|
|
try
|
2020-06-16 19:14:38 +00:00
|
|
|
Test_Optinum.test_Lagrangien_Augmente(false,Lagrangien_Augmente)
|
2020-06-16 17:43:05 +00:00
|
|
|
catch exception
|
|
|
|
printstyled("$exception "*"\n"*"\n",bold=true,color=:red)
|
|
|
|
end
|