;;;====================================================== ;;; Crime Prediction - forward chaining ;;; ;;; ;;; CLIPS Version 6.0 Example ;;; ;;; To execute, merely load this and relatives.clp, reset and run. ;;;====================================================== (defrule startup => (printout t "we are predicting crime levels" crlf ) (assert (community (name Trenton) ; establish facts about the community being predicted (pop low) (unemploy med) ; (ownerocc med) (twoparent low) (poverty med) (popdens low) (income low) (education med) ) ;; correct answer - crime is ok ) )