From 9c7c6e20963f73a914434488ca8c4d4cccc29b8b Mon Sep 17 00:00:00 2001 From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk> Date: Wed, 21 Feb 2024 21:31:36 +0000 Subject: [PATCH] update message --- src/build_sequences.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build_sequences.jl b/src/build_sequences.jl index cbd0cc7..3b7cf75 100644 --- a/src/build_sequences.jl +++ b/src/build_sequences.jl @@ -58,11 +58,11 @@ function build_sequence(f::Function, scanner::Union{Nothing, Scanner}, model::Mo for attempt in 1:100 optimize!(model) if termination_status(model) in (LOCALLY_SOLVED, OPTIMAL) - println("Success after $(attempt-1) restarts.") + println("Optimisation succeeded after $(attempt-1) restarts.") break else old_values = value.(all_variables(model)) - size_kick = 0.2 / attempt + size_kick = 0.5 / attempt new_values = old_values .* (2 .* size_kick .* rand(length(old_values)) .+ 1. .- size_kick) for (var, v) in zip(all_variables(model), new_values) set_start_value(var, v) -- GitLab