Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
sat4j
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
51
Issues
51
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SAT4J
sat4j
Commits
9feb2296
Commit
9feb2296
authored
Nov 21, 2017
by
Jan Elffers
Committed by
Daniel Le Berre
Nov 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
this gives a more honest version of 'no division'
parent
5b5b1a0a
Pipeline
#378
passed with stages
in 26 minutes and 47 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
org.sat4j.pb/src/main/java/org/sat4j/pb/constraints/pb/MapPb.java
...j.pb/src/main/java/org/sat4j/pb/constraints/pb/MapPb.java
+3
-2
No files found.
org.sat4j.pb/src/main/java/org/sat4j/pb/constraints/pb/MapPb.java
View file @
9feb2296
...
...
@@ -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
Markdown
is supported
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