12.07.2015 Views

flex Examples - LPIS

flex Examples - LPIS

flex Examples - LPIS

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

20 Flex Example Listings*/The forward-chaining method looks at the attributes provided priorto starting the forward-chaining process and attempts to build onthese attributes until a full description of a species is given.Running The Example-------------------The species identification example reports a species appropriate tothe answers to some discriminating questions.To run the forward-chaining method enter the following goal at thecommand line:?- find_species_forward .To run the backward-chaining method enter the following goal at thecommand line:Flex Technical Points---------------------The following <strong>flex</strong> technical points are demonstrated in this example:1. Disjunctions ("or") used in the conditions of forward-chainingrules.2. The constraining of backward-chaining relations to a singlesolution.% The attribute question is used in the forward-chaining method.% It gives a list of attributes which the user can provide before% forward-chaining starts.question attributesWhich attributes do you know to start with? ;choose some of attribute_types .group attribute_typesbody_covering, colour, eats, eyes, feeds_young_on, feet,legs_and_neck, marking, motion, reproduction, teeth .% The following questions and groups are used in both the forward and% backward chaining examples.question body_coveringWhat is the body_covering? ;choose one of body_covering_typesbecause 'hair indicates a mammal, while feathers a bird' .group body_covering_typeshair, feathers, other.question colourWhat is the colour? ;choose one of colour_types .group colour_typestawny, black_and_white, other.A Guide to the Flex Expert System Toolkit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!