# ANEXO.docx - ANEXO EJERCICIOS PRCTICOS DE SISTEMAS EXPERTOS...

• Homework Help
• 8

This preview shows page 1 - 3 out of 8 pages.

ANEXO: EJERCICIOS PRÁCTICOS DE SISTEMAS EXPERTOS ASIGNATURA: OPTATIVA I- SI (INGENIERÍA DEL CONOCIMIENTO) ALUMNO: Antonio Cabrera Cano NUM. CONTROL: 1214100019 GRUPO: GITI8072-E INDICACIONES: Resuelva de forma correcta los siguientes ejercicios. I. En CLIPS defina las reglas necesarias para indicar las acciones que debe seguir un conductor de auto ante un semáforo. (incluya las acciones para eliminar hechos redundantes) (Valor 1.2 puntos) CLIPS> (defrule regla-semaforo-verde (luz verde) ?x<-(auto ?auto) ?y<-(luz roja) => (assert (auto avanza)) (retract ?x) (retract ?y)) CLIPS> (assert (auto detenido)) <Fact-1> CLIPS> (assert (luz roja)) <Fact-2> CLIPS> (assert (luz verde)) <Fact-3> CLIPS> (run) CLIPS> (defrule regla-semaforo-amarilla (luz amarilla) ?x<-(auto ?auto) ?y<-(luz verde) => (assert (auto avanza-con-precaucion)) (retract ?x) (retract ?y)) CLIPS> (assert (auto detenido)) FALSE CLIPS> (assert (luz verde)) FALSE CLIPS> (assert (luz amarilla)) <Fact-3>

Subscribe to view the full document.

CLIPS> (run) CLIPS> (defrule regla-semaforo-roja (luz roja) ?x<-(auto ?auto) ?y<-(luz amarilla) => (assert (auto detenido)) (retract ?x) (retract ?y)) CLIPS> (assert (auto avanza)) <Fact-5> CLIPS> (assert (luz amarilla)) FALSE CLIPS> (assert (luz roja)) <Fact-7> CLIPS> (run) CLIPS> II.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern