Generating Stable Models
To find a stable model of the Lparse program stored in file we use the command
Option 0 instructs smodels to find all stable models of the program. For instance, if file test contains the rules
then the command
% lparse test | smodels 0produces the output
Answer: 1 Stable Model: q p Answer: 2 Stable Model: p Answer: 3 Stable Model: r p Answer: 4 Stable Model: q s Answer: 5 Stable Model: r s Answer: 6 Stable Model: r q sRead more about this topic: Answer Set Programming
Famous quotes containing the words stable and/or models:
“My whole working philosophy is that the only stable happiness for mankind is that it shall live married in blessed union to woman-kindintimacy, physical and psychical between a man and his wife. I wish to add that my state of bliss is by no means perfect.”
—D.H. (David Herbert)
“Friends broaden our horizons. They serve as new models with whom we can identify. They allow us to be ourselvesand accept us that way. They enhance our self-esteem because they think were okay, because we matter to them. And because they matter to usfor various reasons, at various levels of intensitythey enrich the quality of our emotional life.”
—Judith Viorst (20th century)