add test gct

This commit is contained in:
relmo 2020-06-17 12:57:22 +02:00
parent d18333e5dc
commit 57d4eaed1b

View file

@ -15,7 +15,7 @@ printstyled("Lancement des tests sur ",bold=true,color=:white)
printstyled("l'algorithme de Newton ",bold=true,color=:blue) printstyled("l'algorithme de Newton ",bold=true,color=:blue)
println("") println("")
try try
Test_Optinum.test_Algo_Newton(false,Algorithme_De_Newton) Test_Optinum.tester_Algo_Newton(false,Algorithme_De_Newton)
catch exception catch exception
printstyled("$exception "*"\n"*"\n",bold=true,color=:red) printstyled("$exception "*"\n"*"\n",bold=true,color=:red)
end end
@ -26,7 +26,17 @@ printstyled("Lancement des tests sur",bold=true,color=:white)
printstyled(" le pas de cauchy ",bold=true,color=:blue) printstyled(" le pas de cauchy ",bold=true,color=:blue)
println("") println("")
try try
Test_Optinum.test_pas_de_cauchy(false,Pas_De_Cauchy) Test_Optinum.tester_pas_de_cauchy(false,Pas_De_Cauchy)
catch exception
printstyled("$exception "*"\n"*"\n",bold=true,color=:red)
end
# Tester l'algorithme du gradient conjugué tronqué
printstyled("Lancement des tests sur",bold=true,color=:white)
printstyled(" le gradient conjugué tronqué ",bold=true,color=:blue)
println("")
try
Test_Optinum.tester_gct(false,Gradient_Conjugue_Tronque)
catch exception catch exception
printstyled("$exception "*"\n"*"\n",bold=true,color=:red) printstyled("$exception "*"\n"*"\n",bold=true,color=:red)
end end
@ -37,7 +47,7 @@ printstyled("Lancement des tests sur",bold=true,color=:white)
printstyled(" les régions de confiance ",bold=true,color=:blue) printstyled(" les régions de confiance ",bold=true,color=:blue)
println("") println("")
try try
Test_Optinum.test_regions_de_confiance(false,Regions_De_Confiance) Test_Optinum.tester_regions_de_confiance(false,Regions_De_Confiance)
catch exception catch exception
printstyled("$exception "*"\n"*"\n",bold=true,color=:red) printstyled("$exception "*"\n"*"\n",bold=true,color=:red)
end end
@ -48,7 +58,7 @@ printstyled("Lancement des tests sur ",bold=true,color=:white)
printstyled("le Lagrangien augmenté ",bold=true,color=:blue) printstyled("le Lagrangien augmenté ",bold=true,color=:blue)
println("") println("")
try try
Test_Optinum.test_Lagrangien_Augmente(false,Lagrangien_Augmente) Test_Optinum.tester_Lagrangien_Augmente(false,Lagrangien_Augmente)
catch exception catch exception
printstyled("$exception "*"\n"*"\n",bold=true,color=:red) printstyled("$exception "*"\n"*"\n",bold=true,color=:red)
end end