Comments (3)
Thanks for your information. Another question: except “-1”, is it likely that clingo_propagate_init_solver_literal returns a negative literal (e.g., -2)?
Such kind of literals might be introduced during equivalence preprocessing. A simple example should be
{a}.
b :- not a.
Note that equivalence preprocessing is limited in some settings. In API mode, the solver is started by default in multi-shot mode, option --single-shot
can be used to disable it. Equivalence preprocessing can also be disabled using option --eq=0
. However it sometimes speeds up solving a lot and I not know if it completely prevents negative literals. I can also not say how likely negative literals are.
from clingo.
Yes, literals are negated using -
. The current implementation guarantees that the solver literals -1/1 are false/true.
from clingo.
Thanks for your information.
Another question: except “-1”, is it likely that clingo_propagate_init_solver_literal returns a negative literal (e.g., -2)?
from clingo.
Related Issues (20)
- TypeError: unsupported operand type(s) for +: 'ASTSequence' and 'ASTSequence' HOT 1
- Problems building clingo for static linking HOT 1
- Performance degradation when an incremental solve times out HOT 2
- Optional HOT 1
- quick arithmetic between two aggregate expression in place HOT 1
- Tychecking control.solve HOT 1
- I am confused with the OR logic. HOT 2
- domRec ignored for heuristic with external atom HOT 3
- Evaluate using Profile-Guided Optimization (PGO) and Post Link Optimization (PLO) for Clingo HOT 1
- Issues Running Python Inside Clingo - MacOs - M2 Chip HOT 4
- disable printing info HOT 1
- Build Failure with Ubuntu 22.04.3 HOT 1
- A propagator-based approach to timeout a solve? HOT 8
- How to to Make Preference Criteria Effective HOT 1
- Clingo/gringo/clasp: incorrect behavior on Android 11+ HOT 9
- Capture the logger HOT 2
- C++ API throws exception from destructor that cannot be caught HOT 3
- Code that has no effect HOT 1
- The Python extension fails to compile: 'math/wide_integer/uintwide_t.h' file not found HOT 6
- Clingo programs with python scripts hang with Python3.12 HOT 4
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 clingo.