From 874fa0ee76fa7237bdfc4ba608ac822b9184ebc2 Mon Sep 17 00:00:00 2001 From: relmo Date: Tue, 16 Jun 2020 16:21:08 +0200 Subject: [PATCH] add .travais.yml and using Test_Optinum --- .travis.yml | 14 ++++++++++++++ src/Regions_De_Confiance.jl | 2 +- src/Sujet_Optinum.jl | 7 ++++--- 3 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1e3a7a4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: julia +os: + - osx + - linux + - windows +julia: + - 1.4 + - 1.5 + - 1.0.5 +before_script: + - julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/mathn7/Test_Optinum.git"))' +notifications: + email: false + diff --git a/src/Regions_De_Confiance.jl b/src/Regions_De_Confiance.jl index 106fd73..d1a7952 100644 --- a/src/Regions_De_Confiance.jl +++ b/src/Regions_De_Confiance.jl @@ -74,7 +74,7 @@ function Regions_De_Confiance(algo,f::Function,gradf::Function,hessf::Function,x n = length(x0) xmin = zeros(n) - fxmin = 0 + fxmin = f(xmin) flag = 0 nb_iters = 0 diff --git a/src/Sujet_Optinum.jl b/src/Sujet_Optinum.jl index 15c8dc0..03915d6 100644 --- a/src/Sujet_Optinum.jl +++ b/src/Sujet_Optinum.jl @@ -3,20 +3,21 @@ module Sujet_Optinum using LinearAlgebra using Test using Markdown +using Test_Optinum include("Algorithme_De_Newton.jl") export Algorithme_De_Newton -include("Regions_De_Confiance.jl") -export Regions_De_Confiance - include("Pas_De_Cauchy.jl") export Pas_De_Cauchy include("Gradient_Conjugue_Tronque.jl") export Gradient_Conjugue_Tronque +include("Regions_De_Confiance.jl") +export Regions_De_Confiance + include("Lagrangien_Augmente.jl") export Lagrangien_Augmente