Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
SAT4J
sat4j
Commits
b0e95aeb
Commit
b0e95aeb
authored
Oct 04, 2020
by
Daniel Le Berre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow non deterministic behavior.
parent
0e6a8142
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
org.sat4j.core/src/main/java/org/sat4j/minisat/orders/RandomLiteralSelectionStrategy.java
.../sat4j/minisat/orders/RandomLiteralSelectionStrategy.java
+3
-1
org.sat4j.core/src/main/java/org/sat4j/minisat/orders/RandomWalkDecorator.java
...in/java/org/sat4j/minisat/orders/RandomWalkDecorator.java
+3
-1
No files found.
org.sat4j.core/src/main/java/org/sat4j/minisat/orders/RandomLiteralSelectionStrategy.java
View file @
b0e95aeb
...
...
@@ -56,7 +56,9 @@ public final class RandomLiteralSelectionStrategy
/**
* @since 2.2
*/
public
static
final
Random
RAND
=
new
Random
(
123456789
);
public
static
final
Random
RAND
=
System
.
getProperty
(
"NONDETERMINISTIC"
)
==
null
?
new
Random
(
123456789
)
:
new
Random
();
public
void
assignLiteral
(
int
p
)
{
}
...
...
org.sat4j.core/src/main/java/org/sat4j/minisat/orders/RandomWalkDecorator.java
View file @
b0e95aeb
...
...
@@ -53,7 +53,9 @@ public class RandomWalkDecorator implements IOrder, Serializable {
private
double
p
;
private
static
final
Random
RAND
=
new
Random
(
123456789
);
private
static
final
Random
RAND
=
System
.
getProperty
(
"NONDETERMINISTIC"
)
==
null
?
new
Random
(
123456789
)
:
new
Random
();
private
ILits
voc
;
private
int
nbRandomWalks
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment