|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
| |
|
18 |
| |
|
19 |
| |
|
20 |
| |
|
21 |
| |
|
22 |
| |
|
23 |
| |
|
24 |
| |
|
25 |
| |
|
26 |
| |
|
27 |
| |
|
28 |
| package org.sat4j.minisat.core; |
|
29 |
| |
|
30 |
| import java.io.Serializable; |
|
31 |
| import java.lang.reflect.Field; |
|
32 |
| |
|
33 |
| |
|
34 |
| |
|
35 |
| |
|
36 |
| |
|
37 |
| |
|
38 |
| |
|
39 |
| |
|
40 |
| |
|
41 |
| public class SearchParams implements Serializable { |
|
42 |
| |
|
43 |
| private static final long serialVersionUID = 1L; |
|
44 |
| |
|
45 |
1703
| public SearchParams() {
|
|
46 |
1703
| this(0.95, 0.999, 1.5, 1.1, 0.5, 100);
|
|
47 |
| } |
|
48 |
| |
|
49 |
107
| public SearchParams(int conflictBound) {
|
|
50 |
107
| this(0.95, 0.999, 1.5, 1.1, 0.5, conflictBound);
|
|
51 |
| } |
|
52 |
| |
|
53 |
696
| public SearchParams(double initLearntbound, int conflictBound) {
|
|
54 |
696
| this(0.95, 0.999, 1.5, 1.1, initLearntbound, conflictBound);
|
|
55 |
| } |
|
56 |
| |
|
57 |
0
| public SearchParams(double learntincfactor, double confincfactor,
|
|
58 |
| double initLearntbound, int conflictBound) { |
|
59 |
0
| this(0.95, 0.999, learntincfactor, confincfactor, initLearntbound,
|
|
60 |
| conflictBound); |
|
61 |
| } |
|
62 |
| |
|
63 |
| |
|
64 |
| |
|
65 |
| |
|
66 |
| |
|
67 |
| |
|
68 |
| |
|
69 |
| |
|
70 |
| |
|
71 |
| |
|
72 |
| |
|
73 |
| |
|
74 |
| |
|
75 |
| |
|
76 |
| |
|
77 |
| |
|
78 |
2506
| public SearchParams(double d, double e, double f, double g, double h, int i) {
|
|
79 |
2506
| varDecay = d;
|
|
80 |
2506
| claDecay = e;
|
|
81 |
2506
| conflictBoundIncFactor = f;
|
|
82 |
2506
| learntBoundIncFactor = g;
|
|
83 |
2506
| initLearntBoundConstraintFactor = h;
|
|
84 |
2506
| initConflictBound = i;
|
|
85 |
| } |
|
86 |
| |
|
87 |
| |
|
88 |
| |
|
89 |
| |
|
90 |
5124
| public double getClaDecay() {
|
|
91 |
5124
| return claDecay;
|
|
92 |
| } |
|
93 |
| |
|
94 |
| |
|
95 |
| |
|
96 |
| |
|
97 |
5124
| public double getVarDecay() {
|
|
98 |
5124
| return varDecay;
|
|
99 |
| } |
|
100 |
| |
|
101 |
| private double claDecay; |
|
102 |
| |
|
103 |
| private double varDecay; |
|
104 |
| |
|
105 |
| public double conflictBoundIncFactor; |
|
106 |
| |
|
107 |
| public double learntBoundIncFactor; |
|
108 |
| |
|
109 |
| public double initLearntBoundConstraintFactor; |
|
110 |
| |
|
111 |
| public int initConflictBound; |
|
112 |
| |
|
113 |
| |
|
114 |
| |
|
115 |
| |
|
116 |
| |
|
117 |
| |
|
118 |
0
| @Override
|
|
119 |
| public String toString() { |
|
120 |
0
| StringBuilder stb = new StringBuilder();
|
|
121 |
0
| for (Field field : SearchParams.class.getFields()) {
|
|
122 |
0
| stb.append(field.getName());
|
|
123 |
0
| stb.append("=");
|
|
124 |
0
| try {
|
|
125 |
0
| stb.append(field.get(this));
|
|
126 |
| } catch (IllegalArgumentException e) { |
|
127 |
0
| e.printStackTrace();
|
|
128 |
| } catch (IllegalAccessException e) { |
|
129 |
0
| e.printStackTrace();
|
|
130 |
| } |
|
131 |
0
| stb.append(" ");
|
|
132 |
| } |
|
133 |
0
| return stb.toString();
|
|
134 |
| } |
|
135 |
| } |