Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SAT4J
sat4j
Commits
746e2223
Commit
746e2223
authored
May 24, 2017
by
Lonca Emmanuel
Browse files
Fixed a bug that made the solver crash for optimization tasks.
parent
875dd60b
Pipeline
#168
passed with stage
in 12 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
org.sat4j.csp/src/main/java/org/sat4j/csp/CSPLauncher.java
View file @
746e2223
...
...
@@ -23,7 +23,6 @@ import java.util.Map;
import
org.sat4j.AbstractLauncher
;
import
org.sat4j.ILauncherMode
;
import
org.sat4j.pb.tools.PBAdapter
;
import
org.sat4j.reader.ECSPFormat
;
import
org.sat4j.reader.ParseFormatException
;
import
org.sat4j.reader.Reader
;
...
...
@@ -55,7 +54,7 @@ public class CSPLauncher extends AbstractLauncher {
if
(
args
.
length
==
2
)
{
asolver
=
SolverFactory
.
instance
().
createSolverByName
(
args
[
0
]);
}
else
{
asolver
=
new
CspSatSolverDecorator
(
new
PBAdapter
(
SolverFactory
.
newDefault
())
)
;
asolver
=
new
CspSatSolverDecorator
(
org
.
sat4j
.
pb
.
SolverFactory
.
newDefault
());
}
log
(
asolver
.
toString
(
COMMENT_PREFIX
));
this
.
shouldOnlyDisplayEncoding
=
asolver
.
shouldOnlyDisplayEncoding
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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