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
Assad Montasser
sat4j
Commits
d7168eec
Commit
d7168eec
authored
Nov 21, 2017
by
Jan Elffers
Browse files
this gives a more honest version of 'no division'
parent
d2430427
Changes
1
Hide whitespace changes
Inline
Side-by-side
org.sat4j.pb/src/main/java/org/sat4j/pb/constraints/pb/MapPb.java
View file @
d7168eec
...
...
@@ -131,7 +131,8 @@ public class MapPb implements IDataStructurePB {
}
}
if
(
newcase
)
{
BigInteger
value
=
this
.
weightedLits
.
getCoef
(
0
);
return
false
;
/*BigInteger value = this.weightedLits.getCoef(0);
for (int i = 1; i < size(); i++) {
if (!this.weightedLits.getCoef(i).equals(value)) {
return false;
...
...
@@ -141,7 +142,7 @@ public class MapPb implements IDataStructurePB {
BigInteger[] division = degree.divideAndRemainder(value);
if (!division[1].equals(BigInteger.ZERO))
division[0] = division[0].add(BigInteger.ONE);
this
.
cardDegree
=
division
[
0
];
this.cardDegree = division[0];
*/
}
else
this
.
cardDegree
=
degree
;
return
true
;
...
...
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