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 |
1926
| public SearchParams() {
|
46 |
1926
| this(0.95, 0.999, 1.5, 1.1, 0.5, 100);
|
47 |
| } |
48 |
| |
49 |
105
| public SearchParams(int conflictBound) {
|
50 |
105
| this(0.95, 0.999, 1.5, 1.1, 0.5, conflictBound);
|
51 |
| } |
52 |
| |
53 |
0
| public SearchParams(double initLearntbound, int conflictBound) {
|
54 |
0
| 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 |
2031
| public SearchParams(double d, double e, double f, double g, double h, int i) {
|
79 |
2031
| varDecay = d;
|
80 |
2031
| claDecay = e;
|
81 |
2031
| conflictBoundIncFactor = f;
|
82 |
2031
| learntBoundIncFactor = g;
|
83 |
2031
| initLearntBoundConstraintFactor = h;
|
84 |
2031
| initConflictBound = i;
|
85 |
| } |
86 |
| |
87 |
| |
88 |
| |
89 |
| |
90 |
4378
| public double getClaDecay() {
|
91 |
4378
| return claDecay;
|
92 |
| } |
93 |
| |
94 |
| |
95 |
| |
96 |
| |
97 |
4378
| public double getVarDecay() {
|
98 |
4378
| 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 |
| |
128 |
0
| e.printStackTrace();
|
129 |
| } catch (IllegalAccessException e) { |
130 |
| |
131 |
0
| e.printStackTrace();
|
132 |
| } |
133 |
0
| stb.append(" ");
|
134 |
| } |
135 |
0
| return stb.toString();
|
136 |
| } |
137 |
| } |