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
24b06390
Commit
24b06390
authored
Sep 11, 2021
by
Daniel Le Berre
Browse files
Greedy OPB solver
parent
9c04ce7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
org.sat4j.pb/src/main/java/org/sat4j/pb/SolverFactory.java
View file @
24b06390
...
...
@@ -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.RandomWalkDecorator
;
import
org.sat4j.minisat.orders.UserFixedPhaseSelectionStrategy
;
import
org.sat4j.minisat.orders.VarOrderHeap
;
import
org.sat4j.minisat.restarts.ArminRestarts
;
...
...
@@ -1207,6 +1208,13 @@ public final class SolverFactory extends ASolverFactory<IPBSolver> {
return
solver
;
}
public
static
IPBSolver
newCuttingPlanesGreedy
()
{
PBSolverCP
solver
=
newCuttingPlanes
();
solver
.
setOrder
(
new
RandomWalkDecorator
((
VarOrderHeap
)
solver
.
getOrder
(),
1.0
));
return
solver
;
}
public
static
IPBSolver
newPartialRoundingSatPOS2020
()
{
PBSolverCP
solver
=
(
PBSolverCP
)
newPartialRoundingSat
();
...
...
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