亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? winedemo.clp

?? clips源代碼
?? CLP
字號:
;;;======================================================;;;   Wine Expert Sample Problem;;;;;;     WINEX: The WINe EXpert system.;;;     This example selects an appropriate wine;;;     to drink with a meal.;;;;;;     CLIPS Version 6.3 Example;;;;;;     For use with the CLIPSJNI;;;======================================================(defmodule MAIN (export ?ALL));;*****************;;* INITIAL STATE *;;*****************(deftemplate MAIN::attribute   (slot name)   (slot value)   (slot certainty (default 100.0)))(defrule MAIN::start  (declare (salience 10000))  =>  (set-fact-duplication TRUE)  (focus CHOOSE-QUALITIES WINES))(defrule MAIN::combine-certainties ""  (declare (salience 100)           (auto-focus TRUE))  ?rem1 <- (attribute (name ?rel) (value ?val) (certainty ?per1))  ?rem2 <- (attribute (name ?rel) (value ?val) (certainty ?per2))  (test (neq ?rem1 ?rem2))  =>  (retract ?rem1)  (modify ?rem2 (certainty (/ (- (* 100 (+ ?per1 ?per2)) (* ?per1 ?per2)) 100))))   ;;******************;; The RULES module;;******************(defmodule RULES (import MAIN ?ALL) (export ?ALL))(deftemplate RULES::rule  (slot certainty (default 100.0))  (multislot if)  (multislot then))(defrule RULES::throw-away-ands-in-antecedent  ?f <- (rule (if and $?rest))  =>  (modify ?f (if ?rest)))(defrule RULES::throw-away-ands-in-consequent  ?f <- (rule (then and $?rest))  =>  (modify ?f (then ?rest)))(defrule RULES::remove-is-condition-when-satisfied  ?f <- (rule (certainty ?c1)               (if ?attribute is ?value $?rest))  (attribute (name ?attribute)              (value ?value)              (certainty ?c2))  =>  (modify ?f (certainty (min ?c1 ?c2)) (if ?rest)))(defrule RULES::remove-is-not-condition-when-satisfied  ?f <- (rule (certainty ?c1)               (if ?attribute is-not ?value $?rest))  (attribute (name ?attribute) (value ~?value) (certainty ?c2))  =>  (modify ?f (certainty (min ?c1 ?c2)) (if ?rest)))(defrule RULES::perform-rule-consequent-with-certainty  ?f <- (rule (certainty ?c1)               (if)               (then ?attribute is ?value with certainty ?c2 $?rest))  =>  (modify ?f (then ?rest))  (assert (attribute (name ?attribute)                      (value ?value)                     (certainty (/ (* ?c1 ?c2) 100)))))(defrule RULES::perform-rule-consequent-without-certainty  ?f <- (rule (certainty ?c1)              (if)              (then ?attribute is ?value $?rest))  (test (or (eq (length$ ?rest) 0)            (neq (nth 1 ?rest) with)))  =>  (modify ?f (then ?rest))  (assert (attribute (name ?attribute) (value ?value) (certainty ?c1))));;*******************************;;* CHOOSE WINE QUALITIES RULES *;;*******************************(defmodule CHOOSE-QUALITIES (import RULES ?ALL)                            (import MAIN ?ALL))(defrule CHOOSE-QUALITIES::startit => (focus RULES))(deffacts the-wine-rules  ; Rules for picking the best body  (rule (if has-sauce is yes and             sauce is spicy)        (then best-body is full))  (rule (if tastiness is delicate)        (then best-body is light))  (rule (if tastiness is average)        (then best-body is light with certainty 30 and              best-body is medium with certainty 60 and              best-body is full with certainty 30))  (rule (if tastiness is strong)        (then best-body is medium with certainty 40 and              best-body is full with certainty 80))  (rule (if has-sauce is yes and            sauce is cream)        (then best-body is medium with certainty 40 and              best-body is full with certainty 60))  (rule (if preferred-body is full)        (then best-body is full with certainty 40))  (rule (if preferred-body is medium)        (then best-body is medium with certainty 40))  (rule (if preferred-body is light)         (then best-body is light with certainty 40))  (rule (if preferred-body is light and            best-body is full)        (then best-body is medium))  (rule (if preferred-body is full and            best-body is light)        (then best-body is medium))  (rule (if preferred-body is unknown)         (then best-body is light with certainty 20 and              best-body is medium with certainty 20 and              best-body is full with certainty 20))  ; Rules for picking the best color  (rule (if main-component is meat)        (then best-color is red with certainty 90))  (rule (if main-component is poultry and            has-turkey is no)        (then best-color is white with certainty 90 and              best-color is red with certainty 30))  (rule (if main-component is poultry and            has-turkey is yes)        (then best-color is red with certainty 80 and              best-color is white with certainty 50))  (rule (if main-component is fish)        (then best-color is white))  (rule (if main-component is-not fish and            has-sauce is yes and            sauce is tomato)        (then best-color is red))  (rule (if has-sauce is yes and            sauce is cream)        (then best-color is white with certainty 40))                     (rule (if preferred-color is red)        (then best-color is red with certainty 40))  (rule (if preferred-color is white)        (then best-color is white with certainty 40))  (rule (if preferred-color is unknown)        (then best-color is red with certainty 20 and              best-color is white with certainty 20))    ; Rules for picking the best sweetness  (rule (if has-sauce is yes and            sauce is sweet)        (then best-sweetness is sweet with certainty 90 and              best-sweetness is medium with certainty 40))  (rule (if preferred-sweetness is dry)        (then best-sweetness is dry with certainty 40))  (rule (if preferred-sweetness is medium)        (then best-sweetness is medium with certainty 40))  (rule (if preferred-sweetness is sweet)        (then best-sweetness is sweet with certainty 40))  (rule (if best-sweetness is sweet and            preferred-sweetness is dry)        (then best-sweetness is medium))  (rule (if best-sweetness is dry and            preferred-sweetness is sweet)         (then best-sweetness is medium))  (rule (if preferred-sweetness is unknown)        (then best-sweetness is dry with certainty 20 and              best-sweetness is medium with certainty 20 and              best-sweetness is sweet with certainty 20)));;************************;;* WINE SELECTION RULES *;;************************(defmodule WINES (import MAIN ?ALL)                 (export deffunction get-wine-list))(deffacts any-attributes  (attribute (name best-color) (value any))  (attribute (name best-body) (value any))  (attribute (name best-sweetness) (value any)))(deftemplate WINES::wine  (slot name (default ?NONE))  (multislot color (default any))  (multislot body (default any))  (multislot sweetness (default any)))(deffacts WINES::the-wine-list   (wine (name "Gamay") (color red) (body medium) (sweetness medium sweet))  (wine (name "Chablis") (color white) (body light) (sweetness dry))  (wine (name "Sauvignon Blanc") (color white) (body medium) (sweetness dry))  (wine (name "Chardonnay") (color white) (body medium full) (sweetness medium dry))  (wine (name "Soave") (color white) (body light) (sweetness medium dry))  (wine (name "Riesling") (color white) (body light medium) (sweetness medium sweet))  (wine (name "Geverztraminer") (color white) (body full))  (wine (name "Chenin Blanc") (color white) (body light) (sweetness medium sweet))  (wine (name "Valpolicella") (color red) (body light))  (wine (name "Cabernet Sauvignon") (color red) (sweetness dry medium))  (wine (name "Zinfandel") (color red) (sweetness dry medium))  (wine (name "Pinot Noir") (color red) (body medium) (sweetness medium))  (wine (name "Burgundy") (color red) (body full))  (wine (name "Zinfandel") (color red) (sweetness dry medium)))    (defrule WINES::generate-wines  (wine (name ?name)        (color $? ?c $?)        (body $? ?b $?)        (sweetness $? ?s $?))  (attribute (name best-color) (value ?c) (certainty ?certainty-1))  (attribute (name best-body) (value ?b) (certainty ?certainty-2))  (attribute (name best-sweetness) (value ?s) (certainty ?certainty-3))  =>  (assert (attribute (name wine) (value ?name)                     (certainty (min ?certainty-1 ?certainty-2 ?certainty-3)))))(deffunction WINES::wine-sort (?w1 ?w2)   (< (fact-slot-value ?w1 certainty)      (fact-slot-value ?w2 certainty)))      (deffunction WINES::get-wine-list ()  (bind ?facts (find-all-facts ((?f attribute))                               (and (eq ?f:name wine)                                    (>= ?f:certainty 20))))  (sort wine-sort ?facts))  

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区二区不卡免费| 国产综合久久久久影院| 欧美中文字幕一区二区三区| 亚洲免费在线播放| 91精品久久久久久久91蜜桃| 免费成人你懂的| 国产日产欧美一区二区三区| 成人妖精视频yjsp地址| 亚洲色图欧洲色图| 欧美四级电影在线观看| 日韩avvvv在线播放| 精品国产乱码久久久久久老虎| 丰满少妇在线播放bd日韩电影| 国产精品白丝在线| 91黄色免费网站| 蜜桃一区二区三区在线观看| 久久久久九九视频| 在线视频你懂得一区| 男人操女人的视频在线观看欧美 | 国产不卡一区视频| 国产精品久久久久aaaa| 欧美久久久一区| 狠狠v欧美v日韩v亚洲ⅴ| 国产精品久久毛片av大全日韩| 在线视频你懂得一区| 精品中文字幕一区二区小辣椒| 国产精品毛片久久久久久久| 7878成人国产在线观看| 国产iv一区二区三区| 亚洲国产精品一区二区久久恐怖片| 欧美成人a∨高清免费观看| jvid福利写真一区二区三区| 日本网站在线观看一区二区三区| 国产精品嫩草99a| 8v天堂国产在线一区二区| 岛国一区二区三区| 爽好久久久欧美精品| 中文字幕日韩一区二区| 精品国产自在久精品国产| 色婷婷综合在线| 国产一区二区在线影院| 亚洲成人激情av| 中文字幕一区二区视频| 欧美成人精品福利| 欧美日本免费一区二区三区| 成人精品视频一区二区三区尤物| 日产欧产美韩系列久久99| 亚洲日本电影在线| 国产蜜臀av在线一区二区三区| 欧美日韩一本到| 99久久久久久| 国产精品 欧美精品| 免费观看日韩电影| 亚洲国产精品麻豆| 亚洲精品高清在线观看| 国产精品私人影院| 欧美精品一区二区三区蜜臀| 精品国产sm最大网站| 欧美日韩成人综合在线一区二区| 91亚洲午夜精品久久久久久| 国产一区 二区 三区一级| 轻轻草成人在线| 日韩国产精品久久久| 亚洲国产综合91精品麻豆| 最新中文字幕一区二区三区| 日本一区二区三区免费乱视频| 欧美成人精品福利| 欧美电影免费观看高清完整版| 91精品国产色综合久久久蜜香臀| 91久久精品日日躁夜夜躁欧美| 不卡一卡二卡三乱码免费网站| 国产制服丝袜一区| 国产成人精品综合在线观看| 国产精品1区二区.| 丁香亚洲综合激情啪啪综合| 国产激情偷乱视频一区二区三区| 国产精品自在在线| 高清视频一区二区| 不卡欧美aaaaa| av中文一区二区三区| 99久久精品免费| 色综合中文字幕| 欧美视频在线一区| 欧美一区二区三区在线视频| 777午夜精品免费视频| 欧美一级在线观看| 久久精品视频在线看| 国产欧美综合色| 最新日韩av在线| 夜夜爽夜夜爽精品视频| 亚洲成人久久影院| 卡一卡二国产精品| 国产suv精品一区二区三区| 成人黄色综合网站| 亚洲高清视频在线| 精品久久99ma| 国产区在线观看成人精品| 欧美国产综合色视频| 亚洲三级在线观看| 天天免费综合色| 国产精品综合在线视频| av在线不卡观看免费观看| 欧美一a一片一级一片| 欧美日韩在线播放三区| 久久人人97超碰com| 亚洲激情六月丁香| 久久成人免费电影| 99re成人精品视频| 日韩视频在线永久播放| 国产欧美精品一区aⅴ影院| 伊人性伊人情综合网| 青青青伊人色综合久久| 成人av影视在线观看| 欧美日本在线观看| 欧美国产丝袜视频| 国产精品一区二区久久精品爱涩| 福利91精品一区二区三区| 欧美午夜精品一区二区蜜桃| 久久亚区不卡日本| 亚洲理论在线观看| 精品一区二区三区在线播放视频 | 国内精品伊人久久久久av影院 | **欧美大码日韩| 免费看黄色91| 91丨九色porny丨蝌蚪| 日韩欧美国产麻豆| 亚洲精品videosex极品| 国产精品自在欧美一区| 91精品国产91久久综合桃花| 中文字幕一区二区不卡| 精品一区二区三区影院在线午夜 | 蜜臀av性久久久久蜜臀aⅴ流畅| 成人午夜电影久久影院| 日韩欧美一二区| 亚洲精品国产成人久久av盗摄| 国产精品一区二区不卡| 欧美一级二级三级蜜桃| 亚洲女与黑人做爰| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 精品国产乱码久久久久久影片| 亚洲国产乱码最新视频 | 99精品欧美一区二区蜜桃免费| 欧美一区二区三区系列电影| 亚洲欧美一区二区三区极速播放| 国产乱码精品一区二区三| 日韩一区二区精品在线观看| 亚洲免费观看高清在线观看| 成人午夜私人影院| 久久久噜噜噜久久中文字幕色伊伊 | 国产午夜精品一区二区三区嫩草| 日韩不卡手机在线v区| 欧美日韩高清一区| 亚洲综合色丁香婷婷六月图片| 99视频在线精品| 亚洲国产精品黑人久久久| 国产成人精品亚洲午夜麻豆| 久久综合狠狠综合久久综合88| 蜜臀久久99精品久久久画质超高清| 欧美在线free| 亚洲一区二区三区自拍| 色婷婷av一区二区三区之一色屋| 亚洲欧洲国产日韩| 91亚洲国产成人精品一区二区三| 国产精品国产自产拍高清av王其| 北岛玲一区二区三区四区| 中文字幕 久热精品 视频在线| 国产精品1区2区3区| 久久久久久**毛片大全| 国产精品一品二品| 国产精品色哟哟网站| 99久久精品国产精品久久| 亚洲男同1069视频| 91久久国产综合久久| 天天综合网 天天综合色| 欧美一区二区网站| 久久91精品国产91久久小草| 欧美videossexotv100| 国产高清不卡二三区| 国产精品美女久久福利网站| 99re成人在线| 首页国产欧美日韩丝袜| 精品乱码亚洲一区二区不卡| 国产一区二区看久久| |精品福利一区二区三区| 日本大香伊一区二区三区| 亚洲不卡av一区二区三区| 欧美一区二区三区视频在线观看| 久久99久久99小草精品免视看| 久久亚洲二区三区| 色吊一区二区三区 | 精久久久久久久久久久| 国产性色一区二区| 91精品福利在线| 久久电影网站中文字幕| 中文字幕一区在线观看视频| 色婷婷av一区二区三区gif| 日韩va亚洲va欧美va久久| 中文字幕不卡在线播放| 在线观看国产日韩| 麻豆国产欧美日韩综合精品二区|