From 859b34308ca8e5f5bed102b6576af10374a9f326 Mon Sep 17 00:00:00 2001 From: Segcolt <9hmbzr275@mozmail.com> Date: Sat, 12 Oct 2024 19:11:24 -0300 Subject: [PATCH] Fix this stupid mistake Now it works! --- main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.cpp b/main.cpp index 15992e4..e28923e 100644 --- a/main.cpp +++ b/main.cpp @@ -4,15 +4,15 @@ #include "sa.hpp" #ifndef TEMP -#define TEMP 1000 +#define TEMP 100000 #endif #ifndef ALPHA -#define ALPHA 0.99 +#define ALPHA 0.999 #endif #ifndef TEMP_MIN -#define TEMP_MIN 10 +#define TEMP_MIN 0.01 #endif int main() @@ -27,7 +27,7 @@ int main() } sa::solution act = sa::solution::simulated_annealing(capacity, items, - TEMP, ALPHA, TEMP_MIN); + ALPHA, TEMP, TEMP_MIN); act.print_sol(); }