Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • N ndl
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pro
  • ndl
  • Wiki
  • knowledge base

Last edited by Mateusz Ślażyński Oct 12, 2018
Page history
This is an old version of this page. You can view the most recent version or browse the history.

knowledge base

Constraint Programming model representation in NDL

2018-10-12

Features

Every model consists of:

  • variables indexed by tuples of integers (mimicking multidimensional arrays)
  • constraints defined on the pairs of variables
  • constants:
    • integers: may be used as ranges boundaries
    • ranges: may be used as domains or index sets for variables

Limitations

  • domains have to be ranges (no holes)

Examples

The SWI-Prolog based prototype is available in the noodle-prolog directory. There is one basic example available for now. To run it, write from the noodle-prolog directory:

./run_example.sh nqueens

Then you can check examples/nqueens.ndl to see ndl model of the basic 8-queens problem.#

Clone repository
  • 20181018
  • Theory
  • Home
  • knowledge base
  • specification