34 lines
424 B
C++
34 lines
424 B
C++
#include "basis_pms.h"
|
|
#include "build.h"
|
|
#include "pms.h"
|
|
#include "heuristic.h"
|
|
#include <signal.h>
|
|
|
|
|
|
Satlike s;
|
|
void interrupt(int sig)
|
|
{
|
|
s.print_best_solution();
|
|
s.free_memory();
|
|
exit(10);
|
|
}
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
start_timing();
|
|
|
|
signal(SIGTERM, interrupt);
|
|
|
|
s.build_instance(argv[1]);
|
|
|
|
s.settings();
|
|
|
|
s.local_search_with_decimation(argv[1]);
|
|
|
|
//s.simple_print();
|
|
|
|
s.free_memory();
|
|
|
|
return 0;
|
|
}
|