Avisos
Vaciar todo

[Resuelto] Control jFuzzy


Wilmer
(@wilmer)
Active Member
Registrado: hace 3 años
Respuestas: 7
Topic starter  

Estimados, necesito realizar un control difuso pero no puedo manipular el icono existente, y realizar la inferencia difuza, serian gentiles en proporcionar informacion


Citar
admin
(@admin)
Miembro Admin
Registrado: hace 4 años
Respuestas: 119
 

Hola,

Para realizar la edición del control difuzo debe seleccionar el elemento en el panel de circuito, luego en las propiedades seleccionar el icono de los tres puntos ilustrado en la imagen adjunta y se debe abrir una ventana como la de la segunda imagen y en ella puede editar el código.

Se debe tener en cuenta que este elemento está basado en la librería jfuzzylogic, por lo cual puede consultar la documentación de dicha librería para verificación de la sintaxis de control, este es el enlace de la librería:

http://jfuzzylogic.sourceforge.net/html/index.html

Espero le sea de utilidad,

Cordial saludo,

Javier Velásquez


ResponderCitar
Wilmer
(@wilmer)
Active Member
Registrado: hace 3 años
Respuestas: 7
Topic starter  

Muchas gracias! por tu tiempo y la pronta respuesta, voy analizar el linnk


ResponderCitar
Wilmer
(@wilmer)
Active Member
Registrado: hace 3 años
Respuestas: 7
Topic starter  

Buenas tardes estimado administrador, realice el codigo y funcionana perfectamente en jfuzzy, pero al copiar el codigo en el escrip, de myopenlab me sale error y no se modifica las entradas, y la salida que se puede hacer para solucionar el inconveniente.

me aparece el siguiente error

FIS.createFromLexer(86): Exception: java.lang.RuntimeException: Unknown (or unimplemented) ruleblock item : ACCU
java.lang.RuntimeException: Unknown (or unimplemented) ruleblock item : ACCU
at net.sourceforge.jFuzzyLogic.rule.FuzzyRuleSet.fclTreeRuleBlock(FuzzyRuleSet.java:555)
at net.sourceforge.jFuzzyLogic.rule.FuzzyRuleSet.fclTree(FuzzyRuleSet.java:150)
at net.sourceforge.jFuzzyLogic.FIS.createFromLexer(FIS.java:75)
at net.sourceforge.jFuzzyLogic.FIS.createFromString(FIS.java:105)
at Fuzzy.init(Fuzzy.java:128)
at Fuzzy.loadFromStream(Fuzzy.java:378)
at tools.JVSMain.xLoadFromStream(Unknown Source)
at VisualLogic.Element.loadFromStream(Element.java:1040)
at VisualLogic.VMObject.readElements(VMObject.java:3352)
at VisualLogic.VMObject.loadFromStream(VMObject.java:3564)
at VisualLogic.Basis.loadFromStream(Basis.java:1890)
at VisualLogic.Basis.loadFile(Basis.java:1442)
at VisualLogic.Basis.loadFromFile(Basis.java:1517)
at VisualLogic.FrameMain.addBasisToVMPanel(FrameMain.java:1008)
at VisualLogic.FrameMain$1.doInBackground(FrameMain.java:419)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
FIS.createFromLexer(86): Exception: java.lang.RuntimeException: Unknown (or unimplemented) ruleblock item : ACCU
java.lang.RuntimeException: Unknown (or unimplemented) ruleblock item : ACCU
at net.sourceforge.jFuzzyLogic.rule.FuzzyRuleSet.fclTreeRuleBlock(FuzzyRuleSet.java:555)
at net.sourceforge.jFuzzyLogic.rule.FuzzyRuleSet.fclTree(FuzzyRuleSet.java:150)
at net.sourceforge.jFuzzyLogic.FIS.createFromLexer(FIS.java:75)
at net.sourceforge.jFuzzyLogic.FIS.createFromString(FIS.java:105)
at Fuzzy.init(Fuzzy.java:128)
at Fuzzy.propertyChanged(Fuzzy.java:320)
at Peditor.PropertyEditorItem.processChanged(PropertyEditorItem.java:70)
at Peditor.OpenPropertyDialogEditor.jChanged(PropertyEditor.java:366)
at Peditor.OpenPropertyDialogEditor$1.mousePressed(PropertyEditor.java:388)
at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
FIS.createFromLexer(86): Exception: java.lang.RuntimeException: Unknown (or unimplemented) ruleblock item : ACCU
java.lang.RuntimeException: Unknown (or unimplemented) ruleblock item : ACCU
at net.sourceforge.jFuzzyLogic.rule.FuzzyRuleSet.fclTreeRuleBlock(FuzzyRuleSet.java:555)
at net.sourceforge.jFuzzyLogic.rule.FuzzyRuleSet.fclTree(FuzzyRuleSet.java:150)
at net.sourceforge.jFuzzyLogic.FIS.createFromLexer(FIS.java:75)
at net.sourceforge.jFuzzyLogic.FIS.createFromString(FIS.java:105)
at Fuzzy.init(Fuzzy.java:128)
at Fuzzy.propertyChanged(Fuzzy.java:320)
at Peditor.PropertyEditorItem.processChanged(PropertyEditorItem.java:70)
at Peditor.OpenPropertyDialogEditor.jChanged(PropertyEditor.java:366)
at Peditor.OpenPropertyDialogEditor$1.mousePressed(PropertyEditor.java:388)
at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
FIS.createFromLexer(86): Exception: java.lang.RuntimeException: Unknown (or unimplemented) ruleblock item : ACCU
java.lang.RuntimeException: Unknown (or unimplemented) ruleblock item : ACCU
at net.sourceforge.jFuzzyLogic.rule.FuzzyRuleSet.fclTreeRuleBlock(FuzzyRuleSet.java:555)
at net.sourceforge.jFuzzyLogic.rule.FuzzyRuleSet.fclTree(FuzzyRuleSet.java:150)
at net.sourceforge.jFuzzyLogic.FIS.createFromLexer(FIS.java:75)
at net.sourceforge.jFuzzyLogic.FIS.createFromString(FIS.java:105)
at Fuzzy.init(Fuzzy.java:128)
at Fuzzy.propertyChanged(Fuzzy.java:320)
at Peditor.PropertyEditorItem.processChanged(PropertyEditorItem.java:70)
at Peditor.OpenPropertyDialogEditor.jChanged(PropertyEditor.java:366)
at Peditor.OpenPropertyDialogEditor$1.mousePressed(PropertyEditor.java:388)
at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

de antemano muy agradecido por su pronta respuesta

 

 


ResponderCitar
Wilmer
(@wilmer)
Active Member
Registrado: hace 3 años
Respuestas: 7
Topic starter  

anjunto link https: https://drive.google.com/open?id=1LQ5pL-dyN4ek8SvYYFGH1HrAQICU3HzB

el archivo con el escrip se graba pero se produce erro


ResponderCitar
Wilmer
(@wilmer)
Active Member
Registrado: hace 3 años
Respuestas: 7
Topic starter  

Mil disculpas ha sido problema de tipografia el eroor EXELENTE aplicacion.


admin me gusta
ResponderCitar
Compartir: