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 +};