Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Outline

Projection

This folder contains examples of using the #project directive for answer set projection.

Files

  • kk_encoding.lp - ASP encoding with choice rules
  • kk_show.lp - Show directive for output
  • kk_project.lp - Project directive for projection

Usage

clingo 0 kk_encoding.lp kk_show.lp kk_project.lp --project=auto

Without projection:

clingo 0 kk_encoding.lp kk_show.lp --project=auto

Concepts

  • #project directive: Specifies which atoms to project on
  • --project=auto: Automatically includes #project directives from files
  • Projection: Reduces answer sets to only the projected atoms
Morty Proxy This is a proxified and sanitized view of the page, visit original site.