Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions examples/csp1.lp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
&dom{-3..3} = a.
&dom{-3..3} = b.
&minimize{3*a-b}.
4 changes: 4 additions & 0 deletions examples/csp2.lp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
&dom{0..1} = x.
&dom{0..1} = y.
{a}.
&sum{x; -1*y} < 0 :- a.
3 changes: 3 additions & 0 deletions examples/csp3.lp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
&dom{0..1} = x.
&dom{0..1} = y.
a :- &sum{x; -1*y} < 0.
13 changes: 13 additions & 0 deletions examples/csp4.lp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
machine(1). machine(2).
task(a). duration(a,1,3). duration(a,2,4).
task(b). duration(b,1,1). duration(b,2,6).
task(c). duration(c,1,5). duration(c,2,5).

% jobs start at zero and must finish before a given bound
&dom { 0..B } = (J,M) :- duration(J,M,T), B=bound-T.

% a job has to be finished on a machine before starting on the next one.
&sum{ (J,M)+T } <= (J,M+1) :- duration(J,M,T), machine(M+1).

% the processing times of two jobs must not overlap on a machine
&disjoint { (J,M)@T : duration(J,M,T) } :- machine(M).
167 changes: 0 additions & 167 deletions guide.ind

This file was deleted.

2 changes: 1 addition & 1 deletion guide.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
\usepackage{listings}
\usepackage[dvipsnames]{xcolor}
\usepackage[pdfborder={0 0 0},pagebackref=true]{hyperref}
%\usepackage{comments}
\usepackage{comments}
\usepackage{pict2e}
\usepackage{tikz}
\usetikzlibrary{arrows,chains,positioning,automata,decorations,shapes}
Expand Down
Loading