add try/catch
This commit is contained in:
parent
5f6f06fab9
commit
135f3d42dc
|
@ -10,47 +10,46 @@ include("../src/Lagrangien_Augmente.jl")
|
||||||
include("../src/Pas_De_Cauchy.jl")
|
include("../src/Pas_De_Cauchy.jl")
|
||||||
include("../src/Regions_De_Confiance.jl")
|
include("../src/Regions_De_Confiance.jl")
|
||||||
|
|
||||||
|
|
||||||
|
# Tester l'algorithme de Newton
|
||||||
printstyled("Lancement des tests sur ",bold=true,color=:white)
|
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.test_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
|
||||||
|
|
||||||
|
|
||||||
|
# Tester l'algorithme du pas de Cauchy
|
||||||
printstyled("Lancement des tests sur",bold=true,color=:white)
|
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.test_pas_de_cauchy(false,Pas_De_Cauchy)
|
||||||
catch exception
|
catch exception
|
||||||
printstyled("$exception "*"\n"*"\n",bold=true,color=:red)
|
printstyled("$exception "*"\n"*"\n",bold=true,color=:red)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
# Tester l'algorithme des Régions de confiance avec PasdeCauchy | GCT
|
||||||
printstyled("Lancement des tests sur",bold=true,color=:white)
|
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.test_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
|
||||||
|
|
||||||
|
|
||||||
|
# Tester l'algorithme du Lagrangien Augmenté
|
||||||
printstyled("Lancement des tests sur ",bold=true,color=:white)
|
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.test_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
|
||||||
|
|
Loading…
Reference in a new issue