Вы находитесь на странице: 1из 10

DEPARTAMENTO DE ELCTRICA Y ELECTRNICA

CARRERA DE INGENIERA DE SOFTWARE

INFORME DE LABORATORIO No. 02


ASIGNATURA:
INTELIGENCIA
ARTIFICIAL I

CDIGO:
COMP
22039

NRC:

1727

NIVEL:
VIII

SEMANA CLASE:
III

DURACIN:
2 HORAS

DEPARTAMENTO:
ELCTRICA Y
ELECTRNICA

CARRERA:
INGENIERA DE
SOFTWARE

REA DEL
CONOCIMIENTO:
SOFTWARE

TEMA:
AGENTES
Y
SU
ENTORNO: EL MUNDO
DE
UN
VEHICULO
AUTOMATICO
EN
CIRCULACION
Y
EL
MUNDO
DE
UNA
ASPIRADORA

DOCENTE:
ING. LUIS ALBERTO
GUERRA CRUZ MsC

ALUMNOS:
OLIVAREZ TENELEMA
JANETH NATALY
*ROMERO REINOSO
JHOSELIN VANESSA
*VERA VELASQUEZ
DIANA GUADALUPE

FECHA REALIZACIN:
04-NOVIEMBRE-2016
FECHA DE ENTREGA:
07-NOVIEMBRE-2016

EJE DE FORMACIN:
PROFESIONAL

A. FUNDAMENTACIN:INTELIGENCIA ARTIFICIAL -AGENTES Y SU


ENTORNO
Un agente es cualquier cosa capaz de percibir su medio ambiente y esto lo
logra con la ayuda de sensores y actuar en ese medio utilizando
actuadores. A continuacin se muestra esta idea de forma ms simple:

El trmino percepcin se utiliza para indicar que el agente puede recibir


entradas en cualquier instante. La secuencia de percepciones de un agente
refleja el historial completo de lo que el agente ha recibido. En general, un
agente tomar una decisin en un momento dado dependiendo de la
secuencia completa de percepciones hasta ese instante. Si se puede
especificar qu decisin tomar un agente para cada una de las posibles
secuencias de percepciones, entonces se habr explicado ms o menos
todo lo que se puede decir de un agente. En trminos matemticos se
puede decir que el comportamiento del agente viene dado por la funcin del
agente que proyecta una percepcin dada en una accin.

B. DESCRIPCIN:
ste laboratorio est formado por una investigacin sobre los agentes y su
entorno y la implementacin de dos ejemplos, en lenguaje java con las
validaciones correspondientes, donde se identifica
lo mencionado
anteriormente.

C. OBJETIVO:
Implementar y disear dos ejemplos: el mundo de una aspiradora y el
mundo de un vehculo automtico en circulacin realizado en clases en
lenguaje java, IDE Neatbeans.

D. PROYECTO:

Investigar sobre los agentes y su entorno.


Documentar lo investigado.

E. TAREAS A REALIZAR:
Describir las actividades o tareas que el estudiante debe desarrollar para
alcanzar el objetivo de la prctica:
Describa cada punto requerido en la prctica, de manera que
permitan resolver un problema general.
Implementar los ejemplos prcticos realizados en clases en lenguaje
Java.

F. ANALISIS:
EJEMPLO EN CLASES: EL MUNDO DE UN VEHCULO AUTOMTICO
EN CIRCULACIN
Medio ambiente: Una carretera
H1: Semforo en rojo = 0
H2: Semforo en verde = 1
H3: Trfico vehicular
H4: Trayectoria de circulacin =1
H5: Sealizacin vehicular =1

H6: Consumo de combustible =1


H7: Vehculo en circulacin
Percepcin: De precaucin
Accin del agente automtico: desacelerar cuando observa las luces rojas del
vehculo que circula delante de l
Programa del agente:
S, vehculo-que-esta-circulando-delante-esta-frenando, entonces iniciar-frenada
TRFICO VEHICULAR
H
1
0
0
1
1

OR
H H3
2
0
0
1
1
0
1
1
1

X
AND

XH1 H2 H3 R
0
0
X
X0
0
1
0
X
1
0
0
X
VEHCULO
1
1
1
X
AND
OR H4 H5 H6 H7
H H H H
R
0
0
0
0
4
5
6
7
0
0
1
0
0
0
0
0
X
0
1
0
0
0
0
1
1
X
0
1
1
0
0
1
0
1
X
1
0
0
0
0
1
1
1
X
1
0
1
0
1
0
0
1
X
1
1
0
0
1
0
1
1
X
1
1
1
1
1
1
0
1
X

1
1
1
1

EN CIRCULACIN
R
X
X
X
X
X
X
X

EJEMPLO: EL MUNDO DE LA ASPIRADORA


Medio ambiente: Una casa
H1: Modo off desactivado = 0
H2: Modo on activado = 1
H3: Limpieza de casa
H4: Aire cargado con polvo = 1
H5: Retencin de polvo = 1
H6: Filtracin de aire = 1
H7: Expulsin de aire limpio

Percepcin: De funcionamiento
Accin del agente automtico: ingresar aire con polvo para lograr su filtracin y
expulsar aire limpio.
Programa del agente: S, se retuvo el polvo correctamente, entonces iniciar expulsin
de aire limpio

LIMPIEZA DE CASA
H
1
0
0
1
1

OR
H H3
2
0
0
1
1
0
1
1
1

X
AND

XH1 H2 H3 R
0
0
X
X0
0
1
0
X
0
0
X
EXPULSIN 1
1
1
1
X
AND
OR H4 H5 H6 H7
H H H H
R
0
0
0
0
4
5
6
7
0
0
1
0
0
0
0
0
X
0
1
0
0
0
0
1
1
X
0
1
1
0
0
1
0
1
X
1
0
0
0
0
1
1
1
X
1
0
1
0
1
0
0
1
X
1
1
0
0
1
0
1
1
X
1
1
1
1
1
1
0
1
X

1
1
1
1

DE AIRE LIMPIO
R
X
X
X
X
X
X
X

G. IMPLEMENTACION:
EJEMPLO EN CLASES: EL MUNDO
AUTOMTICO EN CIRCULACIN

DE

UN

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package labar2;
import javax.swing.ImageIcon;
/**

VEHCULO

*
* @author PERSONAL
*/
public class lab2 extends javax.swing.JFrame {
/**
* Creates new form lab2
*/
public lab2() {
initComponents();
}
private void cborActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
String mensaje="";
if (cbor.isSelected() ) {
jLabel2.setVisible(false);
mensaje="No cumple condicion";
}
if (cbor.isSelected() && cbov.isSelected()) {
mensaje="No cumple condicion";
jLabel2.setVisible(false);
}
if (cbov.isSelected() ) {
mensaje="Trafico vehicular";
jLabel2.setVisible(true);
ImageIcon image = new ImageIcon("C:\\Users\\PERSONAL\\Pictures\\trafico.gif");
jLabel2.setIcon(image);
cbor.setVisible(false);
}
txlres.setText(mensaje);
}
private void ACEPTARActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
String men="";
if (jRadioButton1.isSelected()) {
ImageIcon image = new ImageIcon("C:\\Users\\PERSONAL\\Pictures\\frenar1.gif");
jLabel2.setIcon(image);
men="Las luces rojas del vehculo ";
}
else if (jRadioButton2.isSelected()) {
ImageIcon image = new ImageIcon("C:\\Users\\PERSONAL\\Pictures\\sena.gif");
jLabel2.setIcon(image);
men="Desaceler cuando observa senalizacion";
} else if (jRadioButton3.isSelected()) {
ImageIcon image = new ImageIcon("C:\\Users\\PERSONAL\\Pictures\\combustible.gif");
jLabel2.setIcon(image);
men="Inicia frenado";
}
else if (jRadioButton4.isSelected()) {
ImageIcon image = new ImageIcon("C:\\Users\\PERSONAL\\Pictures\\circu.gif");
jLabel2.setIcon(image);
men="VEHICULO EN CIRCULACION CUMPLIO LAS OPCIONES";
}
txlres.setText(men);
}

private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new lab2().setVisible(true);
}
});
}
// Variables declaration - do not modify
private javax.swing.JButton ACEPTAR;
private javax.swing.ButtonGroup buttonGroup1;
private javax.swing.JCheckBox cbor;
private javax.swing.JCheckBox cbov;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JRadioButton jRadioButton1;
private javax.swing.JRadioButton jRadioButton2;
private javax.swing.JRadioButton jRadioButton3;
private javax.swing.JRadioButton jRadioButton4;
private javax.swing.JLabel txlres;
// End of variables declaration
}

EJEMPLO: EL MUNDO DE LA ASPIRADORA


private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
if(cboff.isSelected() && cbon.isSelected()){
lblrespuesta.setText("La aspiradora no esta een funcionamiento");
}
else if(cboff.isSelected() && cbon.isSelected()==false){
lblrespuesta.setText("La aspiradora se encuentra apagada");
}
else if(cboff.isSelected()==false && cbon.isSelected())
{
lblrespuesta.setText("Aspiradora en funcionamiento");
}
else{
lblrespuesta.setText("No ha seleccionado ninguna opcion");
}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:

if(cboff.isSelected()==false && cbon.isSelected())


{
if(cb1.isSelected() && cb2.isSelected() && cb3.isSelected()){
lblrespuesta1.setText("Expulsin de aire limpio");
}
else if(cb1.isSelected()==false && cb2.isSelected() && cb3.isSelected()){
lblrespuesta1.setText("No se ha expulasado el aire correctamente");
}
else if(cb1.isSelected()==false && cb2.isSelected()==false && cb3.isSelected())
{
lblrespuesta1.setText("No se ha expulasado el aire correctamente");
}
else if(cb1.isSelected()==false && cb2.isSelected() && cb3.isSelected()==false)
{
lblrespuesta1.setText("No se ha expulsado el aire correctamente");
}
else if(cb1.isSelected()&& cb2.isSelected()==false && cb3.isSelected()==false)
{
lblrespuesta1.setText("No se ha expulasado el aire correctamente");
}
else{
lblrespuesta1.setText("No ha seleccionado ninguna opcion");
}
} else{
lblrespuesta1.setText("La aspiradora no se encuentra en modo ON");
}

}
H. PRUEBAS:
EJEMPLO EN CLASES: EL MUNDO
AUTOMTICO EN CIRCULACIN

DE

UN

VEHCULO

EJEMPLO: EL MUNDO DE LA ASPIRADORA

I. REPORTE:
REQUERIMIEN
TOS
FUNCIONALES

ANLISI
S

DISEO

IMPLEME
NTACIN

PRUE
BAS

NOT
A

AGENTES Y SU
ENTORNO:
EL
MUNDO DE UN
VEHICULO
AUTOMATICO EN
CIRCULACION
Y
EL
MUNDO
DE
UNA ASPIRADORA
CALIFICACIN

J. RESULTADOS Y CONCLUSIONES:

El entorno en que se encuentren los agentes es una parte muy


importante ya que es ah donde este se va a desenvolver y por
tanto lo debe conocer exactamente para poder actuar de forma
adecuada, sabemos que este entorno puede variar de un
momento a otro y por lo tanto el agente debe estar preparado
tambin para estas variaciones, por eso debe aprender de lo que
est sucediendo.

Por lo tanto, las percepciones que tiene un agente son importantes

para las siguientes acciones que desempear es por lo tanto que


el agente guarda una especie de lista con las secuencias de las
percepciones en cuanto a su entorno.

K. ACTIVIDADES SEGN CRONOGRAMA:


ENTREGA:

07 de Noviembre del 2016

AGENTES Y SU ENTORNO: EL MUNDO DE UN VEHICULO AUTOMATICO EN CIRCULACION Y EL MUNDO DE UNA

ASPIRADORA

L. REFERENCIAS BIBLIOGRFICAS:
[online]:
Tema:

https://es.wikipedia.org/wiki/Agente_inteligente_(inteligencia_artificial)
agentes y su entorno inteligencia artificial

[online]:
Tema:

https://inteligenciaartificialkarlacevallos.wordpress.com/2014/11/04/2-1-agentes-y-su-entorno/
agentes y su entorno inteligencia artificial

[online]:
Tema:

https://poiritem.wordpress.com/2009/11/16/6-4-2-agentes-inteligentes-y-la-naturaleza-de-su-entorno/
agentes y su entorno inteligencia artificial

[online]:
Tema:

http://www.ia.urjc.es/cms/sites/default/files/userfiles/file/ia3/2010-11/teoria/tema01_to_print.p df
agentes y su entorno inteligencia artificial

[online]:
Tema:

http://ceidis.ula.ve/cursos/pgcomp/IA/semestrea03/IA-Clase2.pdf
agentes y su entorno inteligencia artificial

[online]:
Tema:

agentes y su entorno inteligencia artificial

http://inteligenciaartificial-raquelmurillo.blogspot.com/2014/11/agentes-y-su-entorno.html

Вам также может понравиться