satlike3.0/pms.cpp

34 lines
424 B
C++
Raw Normal View History

2023-02-14 16:58:22 +08:00
#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;
}