Skip to content

Commit

Permalink
corrections for asprin section (#16)
Browse files Browse the repository at this point in the history
* fixed bug in heuristic priorities
* updated asprin description to version 3.1
* revision of philip changes in asprin
* corrected cp nets definition
  • Loading branch information
javier-romero authored and rkaminsk committed Dec 9, 2018
1 parent b6cb8a6 commit 8af8ffc
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions prefopt.tex
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ \subsubsection{Preference relations and preference types}

The full generality of preference elements is not always needed.
%
For example for \code{subset}, we are only interested in preference elements that are Boolean formulas.
For example, for \code{subset} we are only interested in preference elements that are Boolean formulas.
For this reason, we specify for each preference type its \emph{domain},
i.e., the ground preference elements for which the preference type is well defined.
Hence, the domain of \code{subset} consists of Boolean formulas.
Expand Down Expand Up @@ -708,7 +708,7 @@ \subsubsection{\asprin\ library}
%this is preferred to the conjunction of \code{a(X)} being false and \code{b(X)} being true.
Together with the base program in Example~\ref{asprin:example1}, this yields optimal answer sets $X_2$ and $X_3$.
%
Using \code{maxmin} (simply adding \code{-c minmax=maxmin} to the command line) we obtain $X_1$ as the optimal answer set.
Using \code{maxmin} (simply adding \code{-c minmax=maxmin} to the command line) we obtain $X_1$, $X_2$ and $X_3$.
\end{example} %


Expand Down Expand Up @@ -806,19 +806,25 @@ \subsubsection{\asprin\ library}
The semantics of CP-nets rely on the notion of \emph{improving flips}.
%
Consider a set $E$ of ground preference elements,
and two sets of atoms $X$ and $Y$.
and let $\boldsymbol{S}$ be the set of atoms that appear in $E$.
%
There is an improving flip from $X$ to $Y$ if there is some preference element in $E$ such that
all literals in $\boldsymbol{L}$ are satisfied by $X$ and $Y$, and
either $L_1$ is $A$ and $Y$ is $X\cup\{A\}$, or
$L_1$ is $\code{not}~A$ and $Y$ is $X\setminus\{A\}$.
For sets of atoms $S_1, S_2 \subseteq \boldsymbol{S}$,
there is an improving flip from $S_1$ to $S_2$
if there is some preference element in $E$ such that
all literals in $\boldsymbol{L}$ are satisfied by $S_1$ and $S_2$, and
either $L_1$ is $A$ and $S_2$ is $S_1\cup\{A\}$, or
$L_1$ is $\code{not}~A$ and $S_2$ is $S_1\setminus\{A\}$.
%
Then, $W \succ Z$ holds if there is a sequence of improving flips from $Z$ to $W$.
Then, $X \succ Y$ holds if there is a sequence of improving flips
from $Y \cap \boldsymbol{S}$ to $X \cap \boldsymbol{S}$.
%
A preference statement is said to be consistent if there is no set of atoms $X$
such that $X \succ X$.
%
\asprin\ assumes that the input \code{cp} preference statements are always consistent.
Note that the \emph{ceteris-paribus} assumption of CP-nets
only applies to the atoms in $\boldsymbol{S}$,
while the value of the other atoms in $X$ and $Y$ may vary.
%
A preference statement is said to be consistent
if there is no set of atoms $X$ such that $X \succ X$,
and \asprin\ assumes that the input \code{cp} preference statements are always consistent.

\begin{example}
%
Expand Down Expand Up @@ -1157,9 +1163,9 @@ \subsubsection{Implementing preference types}\label{asprin:implement}
Otherwise, the behavior of \asprin\ is undefined.
\end{note}

For implementing composite preference types,
For implementing composite preference types
we also define predicate \code{better/1},
but in this case, the implementation relies on predicates
but in this case the implementation relies on predicates
that must be defined by other preference types.
%namely, by those preference types related via naming atoms.

Expand Down

0 comments on commit 8af8ffc

Please sign in to comment.