Fuzzy Logic & Inference System
3 posters
Halaman 1 dari 1
Fuzzy Logic & Inference System
Fuzzy Logic & Inference System
Version 1.1 by Alissa Liu
for Game Maker 8.0 (and works in GMS too!)
Description:
Implements fuzzy inference system to find defuzzified (crisp) decision value; given defined fuzzy model and input values of fuzzy linguistic variables sets (FLV). The model properties are: FLV sets (the first one is concluding FLV), and set of expressions of rules. The problem stated in this example is weapon selection. Here fuzzy inference system is used to find desirability score of a particular weapon: rocket launcher.
Link: [You must be registered and logged in to see this link.]
Implementation usage:
- The fuzzy model is defined and initialized in script fuzzy_init().
- par[1..flv_n-1]: input values of non-concluding FLV
- fuzzymem(x,par1,par2,par3,par4) computes membership value of the linguistic term with given parameters
- fuzzyinf(flvn,flv_p1,flv_p2,flv_p3,flv_p4,rules) does fuzzy inference and returns defuzzified decision value.
* flvn: List ID of number of linguistic terms in the FLV set
* flv_p1, ..., flv_p4: List ID of fuzzy membership function parameters (trapezoid) of the linguistic term
* rules: List ID of fuzzy rule as a parsable string, where the first charater is the consequent linguistic term index (in concluding FLV) and the rest are parsable logical expression of the antecendent.
Note:
This example only solves the weapon selection problem with given model and input values and outputs the resulting decision value. A simple game example applying this fuzzy logic implementation may be coming next.
Version 1.1 by Alissa Liu
for Game Maker 8.0 (and works in GMS too!)
Description:
Implements fuzzy inference system to find defuzzified (crisp) decision value; given defined fuzzy model and input values of fuzzy linguistic variables sets (FLV). The model properties are: FLV sets (the first one is concluding FLV), and set of expressions of rules. The problem stated in this example is weapon selection. Here fuzzy inference system is used to find desirability score of a particular weapon: rocket launcher.
Link: [You must be registered and logged in to see this link.]
Implementation usage:
- The fuzzy model is defined and initialized in script fuzzy_init().
- par[1..flv_n-1]: input values of non-concluding FLV
- fuzzymem(x,par1,par2,par3,par4) computes membership value of the linguistic term with given parameters
- fuzzyinf(flvn,flv_p1,flv_p2,flv_p3,flv_p4,rules) does fuzzy inference and returns defuzzified decision value.
* flvn: List ID of number of linguistic terms in the FLV set
* flv_p1, ..., flv_p4: List ID of fuzzy membership function parameters (trapezoid) of the linguistic term
* rules: List ID of fuzzy rule as a parsable string, where the first charater is the consequent linguistic term index (in concluding FLV) and the rest are parsable logical expression of the antecendent.
Note:
This example only solves the weapon selection problem with given model and input values and outputs the resulting decision value. A simple game example applying this fuzzy logic implementation may be coming next.
Terakhir diubah oleh Asuna tanggal Sun 08 Dec 2013, 15:25, total 1 kali diubah (Reason for editing : v1.1 update)
Asuna- Global Moderator
-
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13
Re: Fuzzy Logic & Inference System
masih gk terlalu mudeng dgn example ny
tunggu simple game ny aja deh
btw nice share
tunggu simple game ny aja deh
btw nice share
Re: Fuzzy Logic & Inference System
salah satu contoh penerapannya yaitu pengambilan keputusan pada game RPG, apakah unit mau attack, lari atau tidak melakukan apa2 (idle state), yang dipengaruhi oleh faktor2 seperti kondisi HP unit, jarak ke musuh, kekuatan musuh relatif terhadap unit (heuristically), dsb
ok the example game is coming
ok the example game is coming
Asuna- Global Moderator
-
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13
Re: Fuzzy Logic & Inference System
v1.1 update released!
Changes:
- This works in GMS too
- Fuzzy model properties are initialized as ds_list IDs and used as parameters of function fuzzyinf()
- A bit different string structure in rules definition (see example on the contents of script fuzzy_init)
Changes:
- This works in GMS too
- Fuzzy model properties are initialized as ds_list IDs and used as parameters of function fuzzyinf()
- A bit different string structure in rules definition (see example on the contents of script fuzzy_init)
Asuna- Global Moderator
-
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13
Re: Fuzzy Logic & Inference System
Ada resource recommended tentang fuzzy logic yang bisa aku pelajari? Ga cari yang susah sih, sekedar bisa ngerti aja... sekalian di share disini biar yang lain juga mungkin bisa mengambil manfaat dan pakai di game mereka.
Re: Fuzzy Logic & Inference System
^
fuzzy logic merupakan salah satu aspek yg cukup sering dipake dalam game AI
ebook yg ane punya bukan donlotan sih tapi ak uploadin deh
[You must be registered and logged in to see this link.]
fuzzy logic merupakan salah satu aspek yg cukup sering dipake dalam game AI
ebook yg ane punya bukan donlotan sih tapi ak uploadin deh
[You must be registered and logged in to see this link.]
Asuna- Global Moderator
-
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13
Re: Fuzzy Logic & Inference System
^
kyk ny file *.html ny musti di upload juga
ak udah download file *.chm ny, tpi gk bsa buka konten ny
kyk ny file *.html ny musti di upload juga
ak udah download file *.chm ny, tpi gk bsa buka konten ny
Navigation to the webpage was canceled
Re: Fuzzy Logic & Inference System
@Kevin
ebooknya emang udah lama gan, bukanya musti pake help viewer lama yg di win XP (hh.exe)
kalo punya win XP open with-nya bisa diset ke program tsb
ebooknya emang udah lama gan, bukanya musti pake help viewer lama yg di win XP (hh.exe)
kalo punya win XP open with-nya bisa diset ke program tsb
Asuna- Global Moderator
-
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13
Re: Fuzzy Logic & Inference System
ak pke win XP kok
- ss:
[You must be registered and logged in to see this image.]
Similar topics
» [App] Logic Gate
» Ini Basic Options System
» Request Example Disini!
» [example] pause system
» [Share] Dialog system
» Ini Basic Options System
» Request Example Disini!
» [example] pause system
» [Share] Dialog system
Halaman 1 dari 1
Permissions in this forum:
Anda tidak dapat menjawab topik
|
|