93
LOGICA FUZZY

Sistema fuzzy - Cruzar una calle

Embed Size (px)

DESCRIPTION

Descripción de un sistema fuzzy coon un ejemplo Cruzar una calle

Citation preview

Page 1: Sistema fuzzy - Cruzar una calle

LOGICA FUZZY

Page 2: Sistema fuzzy - Cruzar una calle

PASOS

● Etapa estática:● Definir variables (rangos y gráfico)

– Entrada

– Salida

● Definir reglas si ... entonces ... (cuadro)

● Etapa dinámica:● Captar valores de entrada

● Ubicar valores de entrada en sus respectivos gráficos.

● Seleccionar reglas

● Aplicar and para cada regla y graficar en la salida (encontrar área de soluciones)

● Calcular centroides parciales

● Calcular centroide solución

● Presentar la solución.

Page 3: Sistema fuzzy - Cruzar una calle

Ejemplo: Cruzar una calle

● Variables de entrada generadas sobre un auto que se aproxima:● Velocidad del auto.● Distancia del auto.

● Variable de salida (acción del peatón):● Velocidad del peatón.

Page 4: Sistema fuzzy - Cruzar una calle

Velocidad del auto

0,2

0,4

0,6

0,8

1,0

10 20 30 40 50 60

LENTOLENTOLENTO

Page 5: Sistema fuzzy - Cruzar una calle

Velocidad del auto

0,2

0,4

0,6

0,8

1,0

10 20 30 40 50 60

NORMAL

Page 6: Sistema fuzzy - Cruzar una calle

Velocidad del auto

0,2

0,4

0,6

0,8

1,0

10 20 30 40 50 60

RAPIDO

Page 7: Sistema fuzzy - Cruzar una calle

Velocidad del auto

0,2

0,4

0,6

0,8

1,0

10 20 30 40 50 60

LENTOLENTOLENTO NORMAL RAPIDO

Page 8: Sistema fuzzy - Cruzar una calle

Distancia del auto

0,2

0,4

0,6

0,8

1,0

20 40 60 80 100

CERCA

30 50 70

Page 9: Sistema fuzzy - Cruzar una calle

Distancia del auto

0,2

0,4

0,6

0,8

1,0

20 40 60 80 100

LEJOS

30 50 70

Page 10: Sistema fuzzy - Cruzar una calle

Distancia del auto

0,2

0,4

0,6

0,8

1,0

20 40 60 80 100

MUY LEJOS

30 50 70

Page 11: Sistema fuzzy - Cruzar una calle

Distancia del auto

0,2

0,4

0,6

0,8

1,0

20 40 60 80 100

CERCA LEJOS MUY LEJOS

30 50 70

Page 12: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO

Page 13: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

LENTOLENTOLENTO

Page 14: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

CAMINAR

Page 15: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

TROTAR

Page 16: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

CORRER

Page 17: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

CORRERMUCHO

Page 18: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Page 19: Sistema fuzzy - Cruzar una calle

REGLASVELOCIDAD

AUTODISTANCIA

AUTOVELOCIDAD

PEATON

Page 20: Sistema fuzzy - Cruzar una calle

REGLASVELOCIDAD

AUTODISTANCIA

AUTOVELOCIDAD

PEATON

LENTO (0-30) CERCA (0-30) CAMINAR (2-4)

Page 21: Sistema fuzzy - Cruzar una calle

REGLASVELOCIDAD

AUTODISTANCIA

AUTOVELOCIDAD

PEATON

LENTO (0-30) CERCA (0-30) CAMINAR (2-4)

LENTO (0-30) LEJOS (20-80) LENTO (1-3)

Page 22: Sistema fuzzy - Cruzar una calle

REGLASVELOCIDAD

AUTODISTANCIA

AUTOVELOCIDAD

PEATON

LENTO (0-30) CERCA (0-30) CAMINAR (2-4)

LENTO (0-30) LEJOS (20-80) LENTO (1-3)

LENTO (0-30) MUY LEJOS (70-mas) MUY LENTO (0-2)

Page 23: Sistema fuzzy - Cruzar una calle

REGLASVELOCIDAD

AUTODISTANCIA

AUTOVELOCIDAD

PEATON

LENTO (0-30) CERCA (0-30) CAMINAR (2-4)

LENTO (0-30) LEJOS (20-80) LENTO (1-3)

LENTO (0-30) MUY LEJOS (70-mas) MUY LENTO (0-2)

NORMAL (10-60) CERCA (0-30) CORRER (4-6)

Page 24: Sistema fuzzy - Cruzar una calle

REGLASVELOCIDAD

AUTODISTANCIA

AUTOVELOCIDAD

PEATON

LENTO (0-30) CERCA (0-30) CAMINAR (2-4)

LENTO (0-30) LEJOS (20-80) LENTO (1-3)

LENTO (0-30) MUY LEJOS (70-mas) MUY LENTO (0-2)

NORMAL (10-60) CERCA (0-30) CORRER (4-6)

NORMAL (10-60) LEJOS (20-80) TROTAR (3-5)

Page 25: Sistema fuzzy - Cruzar una calle

REGLASVELOCIDAD

AUTODISTANCIA

AUTOVELOCIDAD

PEATON

LENTO (0-30) CERCA (0-30) CAMINAR (2-4)

LENTO (0-30) LEJOS (20-80) LENTO (1-3)

LENTO (0-30) MUY LEJOS (70-mas) MUY LENTO (0-2)

NORMAL (10-60) CERCA (0-30) CORRER (4-6)

NORMAL (10-60) LEJOS (20-80) TROTAR (3-5)

NORMAL (10-60) MUY LEJOS (70-mas) CAMINAR (2-4)

Page 26: Sistema fuzzy - Cruzar una calle

REGLASVELOCIDAD

AUTODISTANCIA

AUTOVELOCIDAD

PEATON

LENTO (0-30) CERCA (0-30) CAMINAR (2-4)

LENTO (0-30) LEJOS (20-80) LENTO (1-3)

LENTO (0-30) MUY LEJOS (70-mas) MUY LENTO (0-2)

NORMAL (10-60) CERCA (0-30) CORRER (4-6)

NORMAL (10-60) LEJOS (20-80) TROTAR (3-5)

NORMAL (10-60) MUY LEJOS (70-mas) CAMINAR (2-4)

RAPIDO (40-mas) CERCA (0-30) CORRER MUCHO (5-mas)

Page 27: Sistema fuzzy - Cruzar una calle

REGLASVELOCIDAD

AUTODISTANCIA

AUTOVELOCIDAD

PEATON

LENTO (0-30) CERCA (0-30) CAMINAR (2-4)

LENTO (0-30) LEJOS (20-80) LENTO (1-3)

LENTO (0-30) MUY LEJOS (70-mas) MUY LENTO (0-2)

NORMAL (10-60) CERCA (0-30) CORRER (4-6)

NORMAL (10-60) LEJOS (20-80) TROTAR (3-5)

NORMAL (10-60) MUY LEJOS (70-mas) CAMINAR (2-4)

RAPIDO (40-mas) CERCA (0-30) CORRER MUCHO (5-mas)

RAPIDO (40-mas) LEJOS (20-80) CORRER (4-6)

Page 28: Sistema fuzzy - Cruzar una calle

REGLASVELOCIDAD

AUTODISTANCIA

AUTOVELOCIDAD

PEATON

LENTO (0-30) CERCA (0-30) CAMINAR (2-4)

LENTO (0-30) LEJOS (20-80) LENTO (1-3)

LENTO (0-30) MUY LEJOS (70-mas) MUY LENTO (0-2)

NORMAL (10-60) CERCA (0-30) CORRER (4-6)

NORMAL (10-60) LEJOS (20-80) TROTAR (3-5)

NORMAL (10-60) MUY LEJOS (70-mas) CAMINAR (2-4)

RAPIDO (40-mas) CERCA (0-30) CORRER MUCHO (5-mas)

RAPIDO (40-mas) LEJOS (20-80) CORRER (4-6)

RAPIDO (40-mas) MUY LEJOS (70-mas) TROTAR (3-5)

Page 29: Sistema fuzzy - Cruzar una calle

EJEMPLO

Un auto se aproxima a una velocidad de

25 kph y a una distancia de 22 mts

Page 30: Sistema fuzzy - Cruzar una calle

Velocidad del auto (25 kph)

0,2

0,4

0,6

0,8

1,0

10 20 30 40 50 60

LENTOLENTOLENTO NORMAL RAPIDO

25

Page 31: Sistema fuzzy - Cruzar una calle

Velocidad del auto (25 kph)

0,2

0,4

0,6

0,8

1,0

10 20 30 40 50 60

LENTOLENTOLENTO NORMAL RAPIDO

25

Page 32: Sistema fuzzy - Cruzar una calle

Velocidad del auto (25 kph)

0,2

0,4

0,6

0,8

1,0

10 20 30 40 50 60

LENTOLENTOLENTO NORMAL RAPIDO

25

Page 33: Sistema fuzzy - Cruzar una calle

Velocidad del auto (25 kph)

0,2

0,4

0,6

0,8

1,0

10 20 30 40 50 60

LENTOLENTOLENTO NORMAL RAPIDO

0,25

25

Page 34: Sistema fuzzy - Cruzar una calle

Velocidad del auto (25 kph)

0,2

0,4

0,6

0,8

1,0

10 20 30 40 50 60

LENTOLENTOLENTO NORMAL RAPIDO

25

Page 35: Sistema fuzzy - Cruzar una calle

Velocidad del auto (25 kph)

0,2

0,4

0,6

0,8

1,0

10 20 30 40 50 60

LENTOLENTOLENTO NORMAL RAPIDO

0,75

25

Page 36: Sistema fuzzy - Cruzar una calle

Velocidad del auto (25 kph)

0,2

0,4

0,6

0,8

1,0

10 20 30 40 50 60

LENTOLENTOLENTO NORMAL RAPIDO

0,25

0,75

25

Page 37: Sistema fuzzy - Cruzar una calle

Distancia del auto (22 mts)

0,2

0,4

0,6

0,8

1,0

20 40 60 80 100

CERCA LEJOS MUY LEJOS

30 50 7022

Page 38: Sistema fuzzy - Cruzar una calle

Distancia del auto (22 mts)

0,2

0,4

0,6

0,8

1,0

20 40 60 80 100

CERCA LEJOS MUY LEJOS

30 50 7022

Page 39: Sistema fuzzy - Cruzar una calle

Distancia del auto (22 mts)

0,2

0,4

0,6

0,8

1,0

20 40 60 80 100

CERCA LEJOS MUY LEJOS

30 50 7022

Page 40: Sistema fuzzy - Cruzar una calle

Distancia del auto (22 mts)

0,2

0,4

0,6

0,8

1,0

20 40 60 80 100

CERCA LEJOS MUY LEJOS

30 50 7022

0,0666

Page 41: Sistema fuzzy - Cruzar una calle

Distancia del auto (22 mts)

0,2

0,4

0,6

0,8

1,0

20 40 60 80 100

CERCA LEJOS MUY LEJOS

30 50 7022

Page 42: Sistema fuzzy - Cruzar una calle

Distancia del auto (22 mts)

0,2

0,4

0,6

0,8

1,0

20 40 60 80 100

CERCA LEJOS MUY LEJOS

30 50 7022

0,2666

Page 43: Sistema fuzzy - Cruzar una calle

Distancia del auto (22 mts)

0,2

0,4

0,6

0,8

1,0

20 40 60 80 100

CERCA LEJOS MUY LEJOS

30 50 7022

0,0666

0,2666

Page 44: Sistema fuzzy - Cruzar una calle

ACTIVACIONDE

REGLAS

Page 45: Sistema fuzzy - Cruzar una calle

Velocidad del auto

0,2

0,4

0,6

0,8

1,0

10 20 30 40 50 60

LENTOLENTOLENTO NORMAL RAPIDO

0,25

0,75

25

LENTO

Page 46: Sistema fuzzy - Cruzar una calle

Velocidad del auto

0,2

0,4

0,6

0,8

1,0

10 20 30 40 50 60

LENTOLENTOLENTO NORMAL RAPIDO

0,25

0,75

25

NORMAL

Page 47: Sistema fuzzy - Cruzar una calle

Distancia del auto

0,2

0,4

0,6

0,8

1,0

20 40 60 80 100

CERCA LEJOS MUY LEJOS

30 50 7022

0,0666

0,2666

LEJOS

Page 48: Sistema fuzzy - Cruzar una calle

Distancia del auto

0,2

0,4

0,6

0,8

1,0

20 40 60 80 100

CERCA LEJOS MUY LEJOS

30 50 7022

0,0666

0,2666 CERCA

Page 49: Sistema fuzzy - Cruzar una calle

BUSCAMOS LAS REGLAS DE ACUERDO AL EJEMPLO

VELOCIDADAUTO

DISTANCIAAUTO

VELOCIDADPEATON

LENTO (0-30) CERCA (0-30) CAMINAR (2-4)

LENTO (0-30) LEJOS (20-80) LENTO (1-3)

LENTO (0-30) MUY LEJOS (70-mas) MUY LENTO (0-2)

NORMAL (10-60) CERCA (0-30) CORRER (4-6)

NORMAL (10-60) LEJOS (20-80) TROTAR (3-5)

NORMAL (10-60) MUY LEJOS (70-mas) CAMINAR (2-4)

RAPIDO (40-mas) CERCA (0-30) CORRER MUCHO (5-mas)

RAPIDO (40-mas) LEJOS (20-80) CORRER (4-6)

RAPIDO (40-mas) MUY LEJOS (70-mas) TROTAR (3-5)

Page 50: Sistema fuzzy - Cruzar una calle

Activación de reglas

● Velocidad del auto: lento, normal● Distancia del auto: cerca, lejos● Seleccionamos las reglas combinando las

variables del ejemploVELOCIDAD

AUTODISTANCIA

AUTOVELOCIDAD

PEATON

LENTO CERCA CAMINAR

LENTO LEJOS LENTO

NORMAL CERCA CORRER

NORMAL LEJOS TROTAR

Page 51: Sistema fuzzy - Cruzar una calle

Velocidad del auto (recordar los valores a la izquierda)

0,2

0,4

0,6

0,8

1,0

10 20 30 40 50 60

LENTOLENTOLENTO NORMAL RAPIDO

0,25

0,75

25

LENTO

NORMAL

Page 52: Sistema fuzzy - Cruzar una calle

Distancia del auto (recordar los valores a la izquierda)

0,2

0,4

0,6

0,8

1,0

20 40 60 80 100

CERCA LEJOS MUY LEJOS

30 50 7022

0,0666

0,2666 CERCA

LEJOS

Page 53: Sistema fuzzy - Cruzar una calle

Aplicando operador and a las variables de entrada

(velocidad auto) and (distancia auto) = mínimo

RS VELOCIDADAUTO

DISTANCIAAUTO

AND(mínimo)

VELOCIDADPEATON

1 LENTO0,2500

CERCA0,2666

0,2500 CAMINAR

Page 54: Sistema fuzzy - Cruzar una calle

Aplicando operador and a las variables de entrada

(velocidad auto) and (distancia auto) = mínimo

RS VELOCIDADAUTO

DISTANCIAAUTO

AND(mínimo)

VELOCIDADPEATON

1 LENTO0,2500

CERCA0,2666

0,2500 CAMINAR

2 LENTO0,2500

LEJOS0,0666

0,0666 LENTO

Page 55: Sistema fuzzy - Cruzar una calle

Aplicando operador and a las variables de entrada

(velocidad auto) and (distancia auto) = mínimo

RS VELOCIDADAUTO

DISTANCIAAUTO

AND(mínimo)

VELOCIDADPEATON

1 LENTO0,2500

CERCA0,2666

0,2500 CAMINAR

2 LENTO0,2500

LEJOS0,0666

0,0666 LENTO

3 NORMAL0,7500

CERCA0,2666

0,2666 CORRER

Page 56: Sistema fuzzy - Cruzar una calle

Aplicando operador and a las variables de entrada

(velocidad auto) and (distancia auto) = mínimo

RS VELOCIDADAUTO

DISTANCIAAUTO

AND(mínimo)

VELOCIDADPEATON

1 LENTO0,2500

CERCA0,2666

0,2500 CAMINAR

2 LENTO0,2500

LEJOS0,0666

0,0666 LENTO

3 NORMAL0,7500

CERCA0,2666

0,2666 CORRER

4 NORMAL0,7500

LEJOS0,0666 0,0666

TROTAR

Page 57: Sistema fuzzy - Cruzar una calle

APLICANDO LOS MINIMOS

ENCONTRADOS A LA VARIABLE DE

SALIDA

Page 58: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónRS1 sobre CAMINAR

0,2500

0,25

Page 59: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónRS1 sobre CAMINAR

0,2500

0,25

Page 60: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónRS1 sobre CAMINAR

0,2500

0,25

Page 61: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónRS2 sobre LENTO

0,0666

0,0666

Page 62: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónRS2 sobre LENTO

0,0666

0,0666

Page 63: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónRS2 sobre LENTO

0,0666

0,0666

Page 64: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónRS3 sobre CORRER

0,2666

0,2666

Page 65: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónRS3 sobre CORRER

0,2666

0,2666

Page 66: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónRS3 sobre CORRER

0,2666

0,2666

Page 67: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónRS4 sobre TROTAR

0,0666

0,0666

Page 68: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónRS4 sobre TROTAR

0,0666

0,0666

Page 69: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónRS4 sobre TROTAR

0,0666

0,0666

Page 70: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónUnimos los resultados

anteriores

0,06660,0666

Page 71: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónUnimos los resultados

anteriores

0,06660,0666

0,25

Page 72: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónUnimos los resultados

anteriores

0,06660,0666

0,25

Page 73: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónUnimos los resultados

anteriores

0,0666

0,2666

0,0666

0,25

Page 74: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónUnimos los resultados

anteriores

0,0666

0,2666

0,0666

0,25

Page 75: Sistema fuzzy - Cruzar una calle

CALCULAMOS EL CENTROIDE DE LA FIGURA RESULTANTE

SEPARAMOS TRIANGULOS Y RECTANGULOS PARA

FACILITAR EL CÁLCULO

Page 76: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónCreamos triángulos y

calculamos elcentroide de c/u de ellos

0,0666

0,2666

0,0666

0,25

1

Page 77: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónCreamos triángulos y

calculamos elcentroide de c/u de ellos

0,0666

0,2666

0,0666

0,25

1 22

Page 78: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónCreamos triángulos y

calculamos elcentroide de c/u de ellos

0,0666

0,2666

0,0666

0,25

1 22 3

Page 79: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónCreamos triángulos y

calculamos elcentroide de c/u de ellos

0,0666

0,2666

0,0666

0,25

1 22 3 4

Page 80: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónCreamos triángulos y

calculamos elcentroide de c/u de ellos

0,0666

0,2666

0,0666

0,25

1 22 3 4

5

Page 81: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónCreamos triángulos y

calculamos elcentroide de c/u de ellos

0,0666

0,2666

0,0666

0,25

1 22 3 4 6

55

Page 82: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónCreamos triángulos y

calculamos elcentroide de c/u de ellos

0,0666

0,2666

0,0666

0,25

1 22 3 4 6 7

555

Page 83: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónCreamos rectángulos y

calculamos elcentroide de c/u de ellos

0,0666

0,2666

0,0666

0,25

8

Page 84: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónCreamos rectángulos y

calculamos elcentroide de c/u de ellos

0,0666

0,2666

0,0666

0,25

8 9

Page 85: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónCreamos rectángulos y

calculamos elcentroide de c/u de ellos

0,0666

0,2666

0,0666

0,25

8 9 10

Page 86: Sistema fuzzy - Cruzar una calle

CentroidesTriángulo 1: 1,0444444Triángulo 2: 2,0444434Triángulo3: 2,16666567Triángulo 4: 3,89666567Triángulo 5: 4,00222117Triángulo 6: 4,15777523Triángulo 7: 5,90444123Rectángulo 8: 1,53333265Rectángulo 9: 2,989999Rectángulo 10: 4,9866635

CENTROIDE DE TODA LA FIGURA:3,8598

Page 87: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónCentroide de toda

la figura

0,0666

0,2666

0,0666

0,25

3,8598

Page 88: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatón Centroide de todala figura

0,0666

0,2666

0,0666

0,25

3,8598

Page 89: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatón Centroide de todala figura

0,0666

0,2666

0,0666

0,25

3,8598

Page 90: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatón Centroide de todala figura

0,0666

0,2666

0,0666

0,25

3,8598

0,5

Page 91: Sistema fuzzy - Cruzar una calle

Velocidad del peatón

0,2

0,4

0,6

0,8

1,0

1 2 3 4 5 6

MUY LENTO CAMINAR CORRERLENTOLENTOLENTO TROTAR

CORRERMUCHO

Velocidad del peatónCentroide de toda

la figura toca la recta de “Caminar”

0,0666

0,2666

0,0666

0,25

3,8598

0,5 SOLUCIONINTERSECCIONDEL CENTROIDECON LA RECTADE “CAMINAR”

Page 92: Sistema fuzzy - Cruzar una calle

RESULTADO

Cuando un auto se aproxima a una

“velocidad” de 25 kph y a una “distancia” de

22 mts, el peatón debe “caminar”

Page 93: Sistema fuzzy - Cruzar una calle

Muchas gracias