From c6cc25c0f1b683a97fc55f1e54ede0a461b2e92f Mon Sep 17 00:00:00 2001 From: CharlesLakes Date: Fri, 20 Feb 2026 00:32:25 -0300 Subject: [PATCH] fix: SA spaces --- content/combinatorial/simulated-annealing.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/combinatorial/simulated-annealing.cpp b/content/combinatorial/simulated-annealing.cpp index 3a55519..c4b4448 100644 --- a/content/combinatorial/simulated-annealing.cpp +++ b/content/combinatorial/simulated-annealing.cpp @@ -16,7 +16,11 @@ template struct simulated_annealing { T val; - double get_time(){ return chrono::duration(chrono::high_resolution_clock::now().time_since_epoch()).count(); } + double get_time(){ + return chrono::duration( + chrono::high_resolution_clock::now().time_since_epoch() + ).count(); + } double P(double old_val, double new_val, double temp) { return exp(((old_val-new_val))/temp); } simulated_annealing(double time_limit, double t_i, double t_f, repr & q){ q.init(); @@ -35,4 +39,4 @@ struct simulated_annealing { } } } -}; \ No newline at end of file +};