Fix this stupid mistake

Now it works!
This commit is contained in:
Segcolt 2024-10-12 19:11:24 -03:00
parent d8086caa18
commit 859b34308c

View File

@ -4,15 +4,15 @@
#include "sa.hpp" #include "sa.hpp"
#ifndef TEMP #ifndef TEMP
#define TEMP 1000 #define TEMP 100000
#endif #endif
#ifndef ALPHA #ifndef ALPHA
#define ALPHA 0.99 #define ALPHA 0.999
#endif #endif
#ifndef TEMP_MIN #ifndef TEMP_MIN
#define TEMP_MIN 10 #define TEMP_MIN 0.01
#endif #endif
int main() int main()
@ -27,7 +27,7 @@ int main()
} }
sa::solution act = sa::solution::simulated_annealing(capacity, items, sa::solution act = sa::solution::simulated_annealing(capacity, items,
TEMP, ALPHA, TEMP_MIN); ALPHA, TEMP, TEMP_MIN);
act.print_sol(); act.print_sol();
} }