www.gmindo.web.id/forum
Forum ini sudah tidak dipakai lagi. Silakan ke forum baru di www.gmindo.web.id/forum Very Happy

Terima kasih

Join the forum, it's quick and easy

www.gmindo.web.id/forum
Forum ini sudah tidak dipakai lagi. Silakan ke forum baru di www.gmindo.web.id/forum Very Happy

Terima kasih
www.gmindo.web.id/forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Fuzzy Logic & Inference System

3 posters

Go down

Fuzzy Logic & Inference System Empty Fuzzy Logic & Inference System

Post by Asuna Sat 30 Nov 2013, 22:21

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.


Terakhir diubah oleh Asuna tanggal Sun 08 Dec 2013, 15:25, total 1 kali diubah (Reason for editing : v1.1 update)
Asuna
Asuna
Global Moderator
Global Moderator

100%
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13

Kembali Ke Atas Go down

Fuzzy Logic & Inference System Empty Re: Fuzzy Logic & Inference System

Post by Kevin Blaze Coolerz Sun 01 Dec 2013, 09:50

masih gk terlalu mudeng dgn example ny Very Happy
tunggu simple game ny aja deh Smile

btw nice share Jempol2 
Kevin Blaze Coolerz
Kevin Blaze Coolerz
Admin
Admin

100%
Jumlah posting : 3323
Points : 3795
Join date : 06.01.13
Age : 28
Lokasi : Palembang

http://kevin-blaze-coolerz.blogspot.com/

Kembali Ke Atas Go down

Fuzzy Logic & Inference System Empty Re: Fuzzy Logic & Inference System

Post by Asuna Sun 01 Dec 2013, 20:24

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 Very Happy
Asuna
Asuna
Global Moderator
Global Moderator

100%
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13

Kembali Ke Atas Go down

Fuzzy Logic & Inference System Empty Re: Fuzzy Logic & Inference System

Post by Kevin Blaze Coolerz Sun 01 Dec 2013, 21:04

nice (y)
I need this for my project Very Happy
still waiting for the example Razz
Kevin Blaze Coolerz
Kevin Blaze Coolerz
Admin
Admin

100%
Jumlah posting : 3323
Points : 3795
Join date : 06.01.13
Age : 28
Lokasi : Palembang

http://kevin-blaze-coolerz.blogspot.com/

Kembali Ke Atas Go down

Fuzzy Logic & Inference System Empty Re: Fuzzy Logic & Inference System

Post by Asuna Sun 08 Dec 2013, 15:37

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)
Asuna
Asuna
Global Moderator
Global Moderator

100%
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13

Kembali Ke Atas Go down

Fuzzy Logic & Inference System Empty Re: Fuzzy Logic & Inference System

Post by zebrakelabu Sun 08 Dec 2013, 19:11


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.

zebrakelabu
zebrakelabu
Admin
Admin

100%
Jumlah posting : 933
Points : 960
Join date : 06.01.13
Lokasi : Jakarta

http://www.project25games.com

Kembali Ke Atas Go down

Fuzzy Logic & Inference System Empty Re: Fuzzy Logic & Inference System

Post by Asuna Sun 08 Dec 2013, 20:58

^
fuzzy logic merupakan salah satu aspek yg cukup sering dipake dalam game AI Very Happy

ebook yg ane punya bukan donlotan sih tapi ak uploadin deh Very Happy
[You must be registered and logged in to see this link.]
Asuna
Asuna
Global Moderator
Global Moderator

100%
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13

Kembali Ke Atas Go down

Fuzzy Logic & Inference System Empty Re: Fuzzy Logic & Inference System

Post by Kevin Blaze Coolerz Mon 09 Dec 2013, 09:43

^
kyk ny file *.html ny musti di upload juga Very Happy
ak udah download file *.chm ny, tpi gk bsa buka konten ny Confused
Navigation to the webpage was canceled
Kevin Blaze Coolerz
Kevin Blaze Coolerz
Admin
Admin

100%
Jumlah posting : 3323
Points : 3795
Join date : 06.01.13
Age : 28
Lokasi : Palembang

http://kevin-blaze-coolerz.blogspot.com/

Kembali Ke Atas Go down

Fuzzy Logic & Inference System Empty Re: Fuzzy Logic & Inference System

Post by Asuna Mon 09 Dec 2013, 10:42

@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 Very Happy
Asuna
Asuna
Global Moderator
Global Moderator

100%
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13

Kembali Ke Atas Go down

Fuzzy Logic & Inference System Empty Re: Fuzzy Logic & Inference System

Post by zebrakelabu Mon 09 Dec 2013, 16:48

aku view pake android aja. thanks for the book
zebrakelabu
zebrakelabu
Admin
Admin

100%
Jumlah posting : 933
Points : 960
Join date : 06.01.13
Lokasi : Jakarta

http://www.project25games.com

Kembali Ke Atas Go down

Fuzzy Logic & Inference System Empty Re: Fuzzy Logic & Inference System

Post by Kevin Blaze Coolerz Mon 09 Dec 2013, 18:44

ak pke win XP kok Pacman
ss:
Kevin Blaze Coolerz
Kevin Blaze Coolerz
Admin
Admin

100%
Jumlah posting : 3323
Points : 3795
Join date : 06.01.13
Age : 28
Lokasi : Palembang

http://kevin-blaze-coolerz.blogspot.com/

Kembali Ke Atas Go down

Fuzzy Logic & Inference System Empty Re: Fuzzy Logic & Inference System

Post by Sponsored content


Sponsored content


Kembali Ke Atas Go down

Kembali Ke Atas

- Similar topics

 
Permissions in this forum:
Anda tidak dapat menjawab topik