Está en la página 1de 32

UNIVERSIDAD DE LAS FUERZAS

ARMADAS ESPE
SEDE LATACUNGA

AUTOMATIZACIÓN INDUSTRIAL
MECATRÓNICA

Ing. Patricia Constante


LÓGICA BORROSA
INTRODUCCIÓN
Variables lingüisticas
La computadora es de nueva tecnología.
La computadora es de vieja tecnología
Variables lingüisticas
La habitación esta fría

A habitación esta caliente


Tipos de incertidumbre y modelización
de la incertidumbre
La mayoría de las palabras y
evaluaciones que usamos en
nuestro razonamiento diario no
están claramente definidas de
una manera matemática. Esto
permite a los seres humanos
razonar en un nivel abstracto!
Representación tradicional

Slow Fast
Speed = 0 Speed = 1
bool speed;
get the speed
if ( speed == 0) {
// speed is slow
}
else {
// speed is fast
}
Representación en FUZZY LOGIC
Slowest
 For every problem
[ 0.0 – 0.25 ]
must represent in
terms of fuzzy sets.
Slow
 What are fuzzy [ 0.25 – 0.50 ]
sets?
Fast
[ 0.50 – 0.75 ]

Fastest
[ 0.75 – 1.00 ]
Representación en FUZZY LOGIC

Slowest Slow Fast Fastest


float speed;
get the speed
if ((speed >= 0.0)&&(speed < 0.25)) {
// speed is slowest
}
else if ((speed >= 0.25)&&(speed < 0.5))
{
// speed is slow
}
else if ((speed >= 0.5)&&(speed < 0.75))
{
// speed is fast
}
else // speed >= 0.75 && speed < 1.0
{
// speed is fastest
}
Dominio clásico y borroso
Preparación taza de café

Ingredientes:
Café
Azúcar
Agua

Preparación:
Coloque dos cucharadas de café en la taza, agregue agua
caliente y azúcar al gusto.
CLÁSICO O BORROSO????
Conjunto borroso
Reglas
Preparación taza de café

Reglas:

Si café no tiene azúcar agregar mucha azúcar.


Si café tiene poca azúcar agregar poca azúcar.
Si café tiene mucha azúcar no agregar azúcar.
LÓGICA BORROSA
Dominio Clásico y borroso

Conventional (Boolean) Set Theory:

38.7°C
38°C
40.1°C 41.4°C

42°C Fuzzy Set Theory:


39.3°C
“Strong Fever” 38.7°C
37.2°C 38°C
40.1°C 41.4°C

42°C
39.3°C
“Strong Fever”
“More-or-Less” Rather Than “Either-Or” ! 37.2°C
Slide 16
Conjuntos borrosos

Discrete Definition:
µSF(35°C) = 0 µSF(38°C) = 0.1 µSF(41°C) = 0.9
µSF(36°C) = 0 µSF(39°C) = 0.35 µSF(42°C) = 1
µSF(37°C) = 0 µSF(40°C) = 0.65 µSF(43°C) = 1

Continuous Definition:

µ(x)
No More Artificial Thresholds!
1

0
36°C 37°C 38°C 39°C 40°C 41°C 42°C
Variable lingüística

...Terms, Degree of Membership, Membership Function, Base Variable...

µ(x)
low temp normal raised temperature strong fever
1 … pretty much raised …

A Linguistic Variable
Defines a Concept of Our
... but just slightly strong … Everyday Language!

0
36°C 37°C 38°C 39°C 40°C 41°C 42°C
OPERACIONES ENTRE CONJUNTOS
ESTRUCTURA DE UN CONTROLADOR
DIFUSO
Controlador difuso
The Outputs of the Fuzzy Logic System Are the Command Variables of the Plant:

Command
IF temp=low
AND P=high
Variables
THEN A=med

IF ...
Plant

Fuzzification Inference Defuzzification

Measured Variables

Fuzzy Rules Output


Absolute Values !
Lógica de decisión
Interfaz de desdifusificación
Salida del controlador

También podría gustarte