Comments (3)
From what I understand from the code you could write it like this, solving the problem
and making it faster :
virtual void InitialPropagate() {
// Build active_ structure.
for (int var_index = 0; var_index < arity_; ++var_index) {
for (ConstIter<hash_map<int64, uint64*> > it(masks_[var_index]); !it.at_end();
++it) {
if (!vars_[var_index]->Contains(it->first)) {
for (int i = 0; i < length_; ++i) {
active_tuples_[i] &= ~(active_tuples_[i] & it->second[i]);
}
}
}
}
(...)
}
Reported by phil.vank
on 2011-09-16 06:17:20
from or-tools.
I will have a look right away.
Thanks for the bug report.
Reported by laurent.perron
on 2011-09-17 08:26:00
from or-tools.
I have added you suggestion and cleaned up the code around.
Thanks!
Reported by laurent.perron
on 2011-09-17 08:49:00
- Status changed:
Fixed
from or-tools.
Related Issues (20)
- OR-Tools v9.9 regression: incorrect negative transit variables (with modulo > capacity) handling in heterogeneous VRP
- ARM C++ build for Debian 11 HOT 4
- AttributeError: 'CpModel' object has no attribute 'AddReservoirConstraintWithActive'
- Renaming of python methods leads to confusion HOT 3
- Segmentation fault in CP-SAT HOT 4
- 0<=1 not accept by math_opt HOT 3
- Java SIGSEGV when running CP-SAT solver HOT 4
- Multiple trips , such that no new pickup is made in the trip 40mins after first pickup. HOT 1
- Segmentation fault in Github runs HOT 1
- VRP Resource Constraints bug - solver over allocating resources
- Performance regression from v9.7 -> v9.8/v9.9 HOT 20
- order of constraints changes cp-sat outcome from feasible to infeasible HOT 2
- solver crash; Check failed: SolutionIsFeasible HOT 5
- Unexpected "debug" output running fzn-cp-sat HOT 4
- Compiling with MSVC 17.9.6 Win32 fails in GurobiCallback
- Unsatisfied linear constraint with no free enforcement literal: enforcement_literal [occurs sometimes] HOT 3
- Invalid pointer error when using cbc HOT 1
- Check failed: Assignment().LiteralIsAssigned() Has this bug been fixed? HOT 4
- CP-SAT (v9.9) crashes silently (regression from 9.8) HOT 1
- Performance regression after 9.9.4133 (3194fd5) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from or-tools.