程式設計入門

Similar documents
《哈佛考考你·智力》

[9] R Ã : (1) x 0 R A(x 0 ) = 1; (2) α [0 1] Ã α = {x A(x) α} = [A α A α ]. A(x) Ã. R R. Ã 1 m x m α x m α > 0; α A(x) = 1 x m m x m +

Microsoft Word - 01李惠玲ok.doc

Microsoft Word - A doc

Microsoft Word - 33-p skyd8.doc

borrowing) 與 借 出 (educational lending) 探 討 如 何 全 球 政 策 已 經 實 施 本 地, 檢 查 的 範 圍 內, 他 們 在 不 同 的 語 言 環 境 中 工 作 二 的 方 法 論 中 有 一 派 典 (paradigm) 強 調 對 於 一 個

(Microsoft Word - 001\253\312\255\261.doc)

TI 3 TI TABLE 4 RANDBIN Research of Modern Basic Education

2. 熟 读 题 目 3. 积 累 核 心 句 式 4. 列 出 每 道 题 的 提 纲 5. 构 造 各 部 分 的 论 证 模 板 6. 全 文 练 习 10 到 20 篇 文 章 如 何 分 析 Argument 题 目 1. Argument 题 目 的 文 字 结 构 1) 题 目 的 出

國家圖書館典藏電子全文

2

附件2:

2014年度厦门市工程系列高级专业技术职务任职资格

第 25 屆 國 家 磐 石 獎 - 卓 越 中 小 企 業 選 拔 表 揚 活 動 申 請 須 知 一 依 據 : 本 須 知 依 據 經 濟 部 中 小 企 業 處 國 家 磐 石 獎 卓 越 中 小 企 業 選 拔 表 揚 作 業 要 點 訂 定 二 目 的 : 中 小 企 業 為 國 家 經

第一章

書本介紹


,,.,, : 1),,,,, 2),,,,, 3),,,,,,,,,, [6].,,, ( ),, [9], : 1), 2),,,,, 3),,, 2.,, [10].,,,,,,,,, [11]. 2.1,, [12],, ;, ; Fig. 1 1 Granular hier

Avision


Microsoft Word - 論文封面 修.doc

天 主 教 輔 仁 大 學 社 會 學 系 學 士 論 文 小 別 勝 新 婚? 久 別 要 離 婚? 影 響 遠 距 家 庭 婚 姻 感 情 因 素 之 探 討 Separate marital relations are getting better or getting worse? -Exp

Microsoft PowerPoint ARIS_Platform_en.ppt

Process Data flow Data store External entity 6-10 Context diagram Level 0 diagram Level 1 diagram Level 2 diagram

高層辦公建築避難演練驗證與避難安全評估之研究

Microsoft Word - 4羅筱芬.doc

% % 34

Microsoft PowerPoint - ATF2015.ppt [相容模式]

Microsoft PowerPoint - Aqua-Sim.pptx


第 8 章 法家的政治思想.pps

目 次 摘 要 3 壹 進 修 目 的 4 貳 進 修 過 程 4 一 就 讀 學 校 與 進 修 方 式 4 二 課 程 內 容 7 叁 進 修 心 得 8 一 美 國 法 介 紹 9 二 合 同 法 11 三 商 業 組 織 法 13 四 法 律 研 究 及 寫 作 14 五 證 據 法 15

untitled

Microsoft Word - 09王充人性論_確定版980317_.doc

案例正文:(幼圆、小三、加粗)(全文段前与段后0

Microsoft Word doc

web - Web Grid Web Service - semantic -RDF Semantic Web -

!!! #!!! $##%!!! $!!!! &!!!! (!! %!! )!!! *!!!!!!! #!!!!! $

!##$ %!!##$ & (!##$ %!!##$ &!##$!##(!##$! "

<4D F736F F D20D5D0B1EACEC4BCFEBCB0C7E5BDE0B7FECEF1BACFCDAC28C2C9CAA6B0E631A3A92E646F6378>

國立中山大學學位論文典藏.PDF

"#" " "" " " "# $ " %( )# #( %& ( " % " " # ) *# " # " $ " #(( " " "#+( % " % $ " & # " " $ $ " " $ % & " #$ % $ "& $ "" " ") # #( "( &( %+"(

89,,,,,,,,,,,,,,,,?,???,,,,,,,,,,,,,

Microsoft PowerPoint _代工實例-1

國立嘉義高中96學年度資優班語資班成班考國文科試題

上海浦~1


SHIMPO_表1-表4

國立中山大學學位論文典藏

(baking powder) 1 ( ) ( ) 1 10g g (two level design, D-optimal) 32 1/2 fraction Two Level Fractional Factorial Design D-Optimal D

102BFDB800023_merge.pdf

~ ~

- MP <34 P<0.001 UA UA/MCA MCA P<0.05 UA UA/MCA UtA PI RI P<0.05 UtA 24 BP 24 MP III

03施琅「棄留臺灣議」探索.doc

Microsoft Word - TIP006SCH Uni-edit Writing Tip - Presentperfecttenseandpasttenseinyourintroduction readytopublish

xueshu004.doc

附 件 :2015 年 度 普 通 高 等 学 校 本 科 专 业 备 案 和 审 批 结 果 教 育 部 2016 年 2 月 16 日 抄 送 : 国 家 发 展 改 革 委 财 政 部 国 家 卫 生 计 生 委 国 家 中 医 药 管 理 局 部 内 发 送 : 有 关 部 领 导, 办 公

杭师大党字〔2011〕15号中共杭州师范大学委员会关于进一步加强和改进发展党员工作的意见

<4D F736F F D B2C431A6B8A4A4A4DFA8C6B0C8B77CC4B3ACF6BFFD E646F63>

untitled

<4D F736F F D A67EAF64BEC7BCFABEC7AAF7C2B2B3B95FA5FEB3A1AAA95F2D31312E31362E646F63>

得 依 法 召 集 股 東 臨 時 會 第 十 一 條 : 股 東 常 會 之 召 集 應 於 開 會 三 十 日 前, 股 東 臨 時 會 之 召 集 應 於 開 會 十 五 日 前, 將 開 會 日 期 地 點 及 召 集 事 由 通 知 各 股 東 並 公 告 之 第 十 二 條 : 本 公

同 時, 那 些 百 萬 富 翁 們 正 乘 坐 着 私 家 噴 射 機 駛 往 歐 洲, 甘 願 花 大 把 的 鈔 票 接 受 替 代 療 法 並 且 重 獲 了 健 康 替 代 療 法 總 是 很 靈 嗎? 不, 當 然 不 是 在 這 世 界 上 没 有 盡 善 盡 美 的 事 物 但 是

Microsoft PowerPoint 文化大學.ppt

untitled

A Study of the Educational Thoughts of Wang Lung-Hsi Wen-Shu Huang* Abstract Wang Lung-Hsi( ), the leader of the Wang School in the central Ch

高中英文科教師甄試心得

( ) [11 13 ] 2 211,,, : (1),, 1990 ( ) ( ),, ; OD, ( ) ( ) ; , ( ), (2) 50 %,, 1999 ( ) ( ) ; (3),,

27 :OPC 45 [4] (Automation Interface Standard), (Costom Interface Standard), OPC 2,,, VB Delphi OPC, OPC C++, OPC OPC OPC, [1] 1 OPC 1.1 OPC OPC(OLE f

p

Construction of Chinese pediatric standard database A Dissertation Submitted for the Master s Degree Candidate:linan Adviser:Prof. Han Xinmin Nanjing

唐彪《讀書作文譜》述略

PowerPoint 演示文稿

政治哲學要跨出去!

Transcription:

模糊理論 -- 邏輯與模糊邏輯 email: chlee@mail.nhu.edu.tw 1

一些問題 電腦主要功能 四則及邏輯計算 如何讓電腦表示不精確及模糊的概念和事實 IF 天氣熱 and 陽光大 THEN 灑些水 IF 大盤漲 and 買量大 THEN 買進小量股票 冷熱 高矮 長短 漲跌 多少 大小...

知識的階層 Meta Knowledge Knowledge If gold is less than 500 and the price is rising (+) Then buy gold Information Data Noise GOLD 438+ 717976683252515643 137179766832525156430015 J. Giarratano and G. Riley, Expert Systems, PWS Publishing, 1998

傳統邏輯的知識表達 表達知識的方法 Information 有尾巴 ( 多多 ) 自然語言 邏輯表示 多多是條狗 所有的狗都有尾巴 狗 ( 多多 ) x 狗 (x)-> 有尾巴 (x) Knowledge

Logic and Sets 電腦中最基本的知識表示方法 Logic Syllogism 4th century B.C. by Aristotle Two premises One conclusion example Premise: Premise: All men are mortal Socrates is a man Conclusion: Socrates is mortal

Logic and Sets (cont.) Logic study of the rules of exact reasoning for the inference engine to reason from facts to conclusions automated reasoning systems

Logic and Sets (cont.) Premise: Premise: Conclusion: 如果 AI 課的老師是猴子, 則 AI 課的老師是哺乳動物 AI 課的老師是哺乳動物 AI 課的老師是猴子 Premise: Premise: Conclusion: 所有中國明代的帝王是男人 有些男人曾到過月亮 有些中國明代的帝王曾到過月亮

Logic and Sets (cont.) Sets Premise: Premise: Conclusion: All men are mortal Socrates is a man Socrates is mortal Socrates Man Mortal Creature

Propositional Logic Formal logic concerned with the syntax of statements rather than their semantics Premise: Premise: Conclusion: All squeegs are moofs John is a squeeg John is a moof nonsense words

Propositional Logic (cont.) By separating the form from the semantics, the validity of an argument can be considered objectively, without prejudice caused by the semantics. Premise: Premise: All X are Y Z is a X Conclusion: Z is a Y z X Y

An Expert System (Knowledge Based System) Knowledge Base (Rules) If X then Y If A then B Agenda If B and C then D If D or E then F and G If M and N then Z and X Explanation Facility Because B and C then D Inference engine Why D ABB User interface A Working Memory (Facts) F,G D Knowledge Acquisition Facility C B A Tell me more

在專家系統中的推理方式 Rule 1: IF Y is true AND D is true THEN Z is true Rule 2: IF X is true AND B is true AND E is true THEN Yis true Rule 3: IF A is true THEN X is true A X B E Y D Z

真實生活中的不確定性 Information in real application Incomplete Inconsistent Uncertain Uncertainty the lack of the exact knowledge that would enable us to reach a perfectly reliable conclusion. Classical logic ( 無法表示天氣冷這種模糊不精確概念 ) law of the excluded middle ( 二分法 ) IF A is true IF A is false THEN A is not false THEN A is not true True False

模糊的知識 如果人們的年收入超過 180 萬則他們是高收入老李的年收入是 181 萬 老李是高收入 True 老張的年收入是 179.99 萬 老張是高收入 False

模糊的知識 如果室溫超過 30 度則是高溫室溫是 31 度 室溫是高溫 室溫是 29.9 度 室溫是高溫 True False 如何讓電腦處理有些熱, 熱, 冷, 有些冷, 好冷或有些胖, 瘦, 等等的模糊詞句 如果路是滑的 則開車速度要放慢

模糊與不確定性 如果路可能是滑的 則開車速度快出車禍的機會很高 滑的, 快 -> 模糊詞句 可能 -> 不確定詞句 機會很高 -> 不確定又模糊

模糊的知識 1 歸屬函數 1 歸屬函數 0 180 收入 0 60 180 收入 有錢人 高收入 一般的邏輯 模糊的邏輯

歸屬函數 歸屬函數 A(x) 1 0.5 0 120K 150K 180K A: 模糊集合高收入 150K -> 高收入的歸屬度 = 0.5 收入 x

模糊的知識表達 歸屬函數 1 低收入 普通收入 高收入 0 60 120 180 收入

模糊理論的基本概念 模糊字詞 歸屬函數 1 低收入 普通收入 高收入 模糊集合 0 60 120 180 收入 模糊歸屬度的分佈 模糊規則 如果上班的人領的是高薪則他是有錢人

模糊規則 如果 x 是 A 前題 則 y 是 B 結果 如果路是滑的 如果番茄是紅的 如果速度是快的 則開車是危險的 則它是成熟的 則煞車是稍微的踩

模糊推理 模糊化模糊推理引擎解模糊化 數據輸入 模糊規則庫 數據輸出 倒單擺的應用

模糊智慧型自動化洗衣機 洗衣量 衣物柔軟度 自動化選擇行程 洗衣行程 洗衣時間 洗衣量 : 少量 small, 中量 medium, 大量 large 衣物柔軟度 : 軟 soft, 普通軟 normal soft, 普通硬 normal hard, 硬 hard 洗衣行程 : 微洗 delicate, 輕洗 light, 普通 normal, 強力洗淨 strong

設計柔軟度的歸屬函數 1 Hard Normal hard Normal soft Soft Laundry softness 柔軟度

設計洗衣量的歸屬度函數 1 Small Medium Large Laundry quantity 洗衣量

設計洗衣行程的歸屬度函數 1 Delicate Light Normal strong Washing cycle 洗衣行程

洗衣行程的模糊規則庫 Laundry quantity Laundry Small Medium Large softness Soft Delicate Light Normal Normal soft Light Normal Normal Normal hard Light Normal Strong Hard Light Normal Strong R5: IF Laundry quantity is Large AND Laundry softness is Hard THEN Washing Cycle is strong R6: IF Laundry quantity is Normal AND Laundry softness is Normal Hard THEN Washing Cycle is Normal

模糊推理 模糊化模糊推理引擎解模糊化 數據輸入 模糊規則庫 數據輸出

Fuzzy matching 模糊比對 1 Small Medium Large 0.5 0.2 Degree of match =0.5 Degree of match =0.2 Ri Rj 量測到的衣物高度 Height=40cm Laundry quantity

Fuzzy matching 1 0.5 Degree of match=0.2 0.2 IF 1 Small IF Medium Input Laundry quantity Laundry quantity 1 0.2 1 0.3 Normal soft Laundry softness Laundry softness Input Min (AND) Soft Then Min (AND) Degree of match=0.2 Then

方式一 1 Degree of Match=0.8 如何得到結論 Inference Clipping method 1 方式二 1 Degree of Match=0.8 Fuzzy consequent y Scaling method Inferred conclusion 1 y Fuzzy consequent y Inferred conclusion y

Combining Fuzzy conclusions Clipping method Scaling method

解模糊化 Defuzzification 1.Center of gravity defuzzifier Continuous Discrete 2.Mean of maxima defuzzifier Defuzzified output 3.Modified mean of maxima defuzzifier 4.Center average defuzzifier