- 1、本文档共23页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
01122011.ppt
Intro to CLIPSPaula MatuszekCSC 9010, Spring, 2011 CLIPS History CLIPS = C Language Integrated Production System Developed at NASA in the 1980s C was used as implementation language (because of restricted availability of LISP compilers and problems of integration LISP-code with non-LISP applications) Initial version: a production rule interpreter. This is what we will use. Extensions include COOL: CLIPS Object-Oriented Language JESS: Java Expert Systems Shell Fuzzy Clips: Fuzzy logic, for capturing uncertainty What is it? Classic Rule-Based Expert System shell Core is facts and rules Inference is forward chaining using the RETE algorithm Multiple conflict resolution strategies Advantages: Written in C; portable, embeddable, fast Public domain, readily available Easy to set up, low initial effort Versions of CLIPS CLIPS is written in C = CLIPS is portable = there are different versions that run on different platforms: mac, unix, windows. Latest released version 6.24 can be downloaded from the CLIPS web site for Windows and OS X. There is a beta version 6.30, but we are not going to use it. Feel free to explore it if you wish. Download from / CLIPS Components A basic CLIPS program has three primary components: Facts Rules Agenda Facts represent information about the state of the world. Rules represent things to do with/about facts. CLIPS Facts Facts are what CLIPS believes to be true. The simplest form of a fact is a single string. (snowing) (“January 11”) An ordered fact is a list of one or more strings: (snowing “January 11”) Valid Facts Examples of valid ordered facts (single-field) (two fields) (speed 38 mph) (cost 78 dollars 23 cents) (name “John Doe”) Adding Facts Putting facts into the CLIPS fact base is done by asserting. CLIPS (assert(snowing)) Fact-1 This is the fact index. CLIPS (assert(snowing Jan11)) Fact-2 You can also ask CLIPS what facts it knows. CLIPS (facts) f-0 (initial-fact) f-1 (snowing) f-2 (snowing Jan11) For a
文档评论(0)