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
ea618d84
Commit
ea618d84
authored
May 17, 2021
by
Daniel Le Berre
Browse files
Do the loop on each enclosed constraint.
parent
ac1ce775
Changes
1
Hide whitespace changes
Inline
Side-by-side
org.sat4j.pb/src/main/java/org/sat4j/pb/reader/OPBReader2005.java
View file @
ea618d84
...
...
@@ -182,7 +182,7 @@ public class OPBReader2005 extends Reader implements Serializable {
constr
=
this
.
solver
.
addExactly
(
this
.
lits
,
this
.
coeffs
,
this
.
d
);
ConstrGroup
cg
=
((
ConstrGroup
)
constr
);
for
(
int
i
=
0
;
i
<
cg
.
size
();
i
++)
{
constr
.
setId
(++
this
.
currentConstraintId
);
c
g
.
getC
onstr
(
i
)
.
setId
(++
this
.
currentConstraintId
);
}
}
else
if
(
"<="
.
equals
(
this
.
operator
))
{
constr
=
this
.
solver
.
addAtMost
(
this
.
lits
,
this
.
coeffs
,
this
.
d
);
...
...
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