修改了一些参数
This commit is contained in:
parent
17e95ded9b
commit
c15186ad01
@ -10,7 +10,7 @@ void Circuit::init_stems() {
|
||||
if(gate->outputs.size() >= 2) {
|
||||
gate->stem = true;
|
||||
}
|
||||
gate->stem = true;
|
||||
//gate->stem = true;
|
||||
if(gate->stem) {
|
||||
stems.push_back(gate);
|
||||
}
|
||||
|
4
ls.cpp
4
ls.cpp
@ -38,7 +38,7 @@ bool Circuit::local_search(std::unordered_set<Fault*> &faults) {
|
||||
std::swap(stems_random[i], stems_random[rand()%stems_random.size()]);
|
||||
}
|
||||
|
||||
const int T = 100;
|
||||
const int T = 25;
|
||||
int t = 0;
|
||||
|
||||
for(int i=0; i<stems_random.size(); i++) {
|
||||
@ -49,7 +49,7 @@ bool Circuit::local_search(std::unordered_set<Fault*> &faults) {
|
||||
stem = t_stem;
|
||||
}
|
||||
if(t_score > 0) t++;
|
||||
if(i >= T) break;
|
||||
//if(i >= T) break;
|
||||
}
|
||||
|
||||
if(max_score > 0) {
|
||||
|
131405
output.txt
131405
output.txt
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user