Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Romain WALLON
sat4j
Commits
81030b6a
Commit
81030b6a
authored
Sep 15, 2021
by
Daniel Le Berre
Browse files
Phase selection strategy is also random
parent
24b06390
Changes
1
Hide whitespace changes
Inline
Side-by-side
org.sat4j.pb/src/main/java/org/sat4j/pb/SolverFactory.java
View file @
81030b6a
...
...
@@ -39,6 +39,7 @@ import org.sat4j.minisat.learning.MiniSATLearning;
import
org.sat4j.minisat.learning.NoLearningButHeuristics
;
import
org.sat4j.minisat.orders.PhaseInLastLearnedClauseSelectionStrategy
;
import
org.sat4j.minisat.orders.RSATPhaseSelectionStrategy
;
import
org.sat4j.minisat.orders.RandomLiteralSelectionStrategy
;
import
org.sat4j.minisat.orders.RandomWalkDecorator
;
import
org.sat4j.minisat.orders.UserFixedPhaseSelectionStrategy
;
import
org.sat4j.minisat.orders.VarOrderHeap
;
...
...
@@ -1210,8 +1211,10 @@ public final class SolverFactory extends ASolverFactory<IPBSolver> {
public
static
IPBSolver
newCuttingPlanesGreedy
()
{
PBSolverCP
solver
=
newCuttingPlanes
();
solver
.
setOrder
(
new
RandomWalkDecorator
((
VarOrderHeap
)
solver
.
getOrder
(),
1.0
));
IOrder
order
=
new
RandomWalkDecorator
((
VarOrderHeap
)
solver
.
getOrder
(),
1.0
);
order
.
setPhaseSelectionStrategy
(
new
RandomLiteralSelectionStrategy
());
solver
.
setOrder
(
order
);
return
solver
;
}
...
...
Write
Preview
Supports
Markdown
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