2023-02-16 18:51:31 +08:00
|
|
|
#include "circuit.h"
|
2023-02-12 18:14:12 +08:00
|
|
|
|
2023-02-16 18:51:31 +08:00
|
|
|
std::vector<int> Circuit::local_search(const std::vector<Fault*> &faults) {
|
2023-02-12 18:14:12 +08:00
|
|
|
|
|
|
|
// local search vector
|
2023-02-16 18:51:31 +08:00
|
|
|
ls_init_circuit();
|
2023-02-12 18:14:12 +08:00
|
|
|
|
|
|
|
printf("local search!\n");
|
|
|
|
|
|
|
|
return std::vector<int>();
|
|
|
|
}
|
|
|
|
|
2023-02-16 18:51:31 +08:00
|
|
|
void Circuit::ls_init_circuit() {
|
|
|
|
for(auto pi : PIs) {
|
2023-02-12 18:14:12 +08:00
|
|
|
pi->value = rand() % 2;
|
|
|
|
}
|
|
|
|
}
|