Questions tagged [rete]

The rete algorithm is frequently used in rules engines / systems, which provides an efficient pattern matching algorithm to determine which rules should fire based on a knowledge base of facts.

The rete algorithm is frequently used in rules engines / systems, which provides an efficient pattern matching algorithm to determine which rules should fire based on a knowledge base of facts.

The original rete algorithm was developed by Dr Charles L Forgy between 1974 and 1979 and has been released to the public domain.

Rete is used by many commercial rules engines including:

38 questions
1
vote
1 answer

How can I develop a rule editor for my users with NRule at the back end?

I've gone through how to guide of NRule. However, I am not clear on how can I provide a user interface where one can define their rules and later execute them on some model. For example: I have a web application where authorized users drafts a…
talaa123
  • 123
  • 1
  • 2
  • 14
1
vote
1 answer

What exactly does bsave, save in Jess?

I am quite new to Jess and am looking into persisting the Rete algorithm. It's come to my attention that in Jess there is the bsave function that saves the rete object, but what exactly does that mean? Does it save the facts, functions and rules…
1
vote
2 answers

graph library (c#) for Rete algorithm

Can you give me suggestions of graph libraries that are best to develop Rete algorithm. I'm using .net 4.0 I found QuickGraph but I'm not sure if it's useful in this case.
Abir BY
  • 63
  • 3
  • 13
1
vote
1 answer

What are hybrid inference engines?

I've tried searching a lot for this, even so, if a similar post has been made I apologize. I understand that a rule engine has basically two methods of inferences, forward and backward chaining. I also believe I understand how both work…
0
votes
1 answer

Applying NRules on excel dataset

I have an excel with the number of records. I want to apply Nrule on it. I want to match two rows and apply rules on them and check whether it is breaking it or not. for example…
0
votes
2 answers

Rete.js do not render editor until window is resized

I'm using Angular 7.1.4 and "rete": "^1.4.4". If I use editor inside components it renders ok, but if pass editor as child to another components with ng-content it does not render Nodes inside editor until window is resized. As a workaround I tried…
0
votes
1 answer

How would you structure Alpha Nodes in a Rete Network that has a rule with two conditions found in other rules?

Let's say I have three rules: When Object's foo property is 1, output "foo" When Object's bar property is 1, output "bar" When Object's foo property is 1 and bar property is 1, output "both foo and bar" What would the structure of alpha nodes look…
mrryanjohnston
  • 353
  • 2
  • 7
0
votes
1 answer

_rete.createEditor is not a function, where is the problem in my code?

I try to implement rete.js visual programming framework in my codesandbox and used the following code in my canvas.js file: import "../../styles.css"; import { createEditor } from "../../rete"; function Canvas() { return (
0
votes
1 answer

What is the time complexity of Rete Algorithm?

Rete Algorithm is an efficient pattern matching algorithm that compares a large collection of patterns to a large collection of objects. It is also used in one of the expert system shell that I am exploring right now: is drools. What is the time…
Emarlou
  • 1
  • 1
0
votes
1 answer

How to update state of list so that Rete picks up the objects added therein for rules re-evaluation

I am using IBM 8.9.2 and we have a scenario where I need to create a list X based on values from the list Y while grouping on those values. For example, lets say I have a list of cities and every City object (in cityList list) has an attribute -…
0
votes
1 answer

How to read Drools memory in order to detect partially matched rules

I'd like to be able to read Drools memory in such a way that I can detect which condition has matched, even though the rule didn't fire in the end. Say I have this rule: rule "MyRule" when FirstFact(condition == "str") …
Shuny
  • 175
  • 1
  • 7
0
votes
1 answer

Does Drools keeps track of the matches of the previous run ?

Let me describe an abstraction of my use case so the intention of the question will be clear. Use Case: (i). If there is already an object objA of type A, create another obj2A of type A. (ii).If there are more than one object of type A, create…
0
votes
1 answer

CLIPS- How to understand constructs-to-c output files?

I'm using constructs-to-c command in top-level to convert my constructs to c code. Till the moment I know how to use these source files as black boxes. I think in these files, CLIPS implement the RETE algorithm, right? I'd like to know how can I…
Salahuddin
  • 1,617
  • 3
  • 23
  • 37
0
votes
0 answers

How to deduct VAT for Guernsey in Magento?

My Magento won't deduct VAT from the order if the customer is from the Guernsey Island. Magento is hiding TAX but not deduct it? Any suggestions?
Rob D. A.
  • 142
  • 1
  • 11
0
votes
2 answers

Ideal Topology of Rete Tree for Rule Engine

As you know many rule engines use Rete algorithm when processing rules and this algorithm constructs a tree so called Rete tree. What is the ideal topology for Rete tree to ensure better rule processing performance? In other words, I want to know…
mostar
  • 4,723
  • 2
  • 28
  • 45