2020-06-16 14:39:40 +00:00
|
|
|
using Markdown
|
|
|
|
using Test
|
|
|
|
using LinearAlgebra
|
2020-06-19 20:30:27 +00:00
|
|
|
using TestOptinum
|
2020-06-19 20:06:07 +00:00
|
|
|
using SujetOptinum
|
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-19 20:30:27 +00:00
|
|
|
TestOptinum.cacher_stacktrace()
|
2020-06-19 16:54:27 +00:00
|
|
|
|
2020-06-22 08:52:23 +00:00
|
|
|
# Tester l'ensemble des algorithmes
|
2020-06-20 20:58:04 +00:00
|
|
|
try
|
|
|
|
res = @testset "Test Optinum" begin
|
|
|
|
# Tester l'algorithme de Newton
|
|
|
|
TestOptinum.tester_Algo_Newton(false,Algorithme_De_Newton)
|
2020-06-16 12:11:16 +00:00
|
|
|
|
2020-06-20 20:58:04 +00:00
|
|
|
# Tester l'algorithme du pas de Cauchy
|
|
|
|
TestOptinum.tester_pas_de_cauchy(false,Pas_De_Cauchy)
|
2020-06-17 10:57:22 +00:00
|
|
|
|
2020-06-20 20:58:04 +00:00
|
|
|
# Tester l'algorithme du gradient conjugué tronqué
|
|
|
|
TestOptinum.tester_gct(false,Gradient_Conjugue_Tronque)
|
2020-06-16 17:43:05 +00:00
|
|
|
|
2020-06-20 20:58:04 +00:00
|
|
|
# Tester l'algorithme des Régions de confiance avec PasdeCauchy | GCT
|
|
|
|
TestOptinum.tester_regions_de_confiance(false,Regions_De_Confiance)
|
2020-06-20 12:05:57 +00:00
|
|
|
|
2020-06-20 20:58:04 +00:00
|
|
|
# Tester l'algorithme du Lagrangien Augmenté
|
|
|
|
TestOptinum.tester_Lagrangien_Augmente(false,Lagrangien_Augmente)
|
|
|
|
end
|
|
|
|
catch
|
2020-06-19 18:43:23 +00:00
|
|
|
end
|