;;;====================================================== ;;; 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 Vineland) ; establish facts about the community being predicted (pop low) (unemploy low) ; (ownerocc hi) (twoparent med) (poverty low) (popdens low) (income low) (education med) ) ;; correct answer - crime is ok ) )